How would I generate every possible combination of 2 lists

So I would have 2 lists, with a random amount of values. for example: listx = [15513, 813, 984949, 5000], listj = [76815, 75, 8484, 9419419, 418841814, 84848, 84848]  How would I generate every possible combination of these lists? Like: combination = [15513, 75, 9419419]  it can take as much values as it wants from both list to use in the combination, I want to check every single combination, like it can take 2 values from the first one and 5 from the other, or all from the first one and 3 from the other.


Send a message when your question is closed

I recently added , unfortunately this question was closed because I could have looked it up quite easily.  However that is not my point, normally when there is interaction on your question you will get a notifier any sites header under the 'inbox'.  This does not happen when your question is closed.  That means that I won't be educated about the etiquette required from this (a special) site and continue with bad questions.  I would ask for the feature, that upon being closed of your question, you would receive a message about this in your general SE inbox.


Quick question: When do you decide to use properties (in C#) and when do you decide to use methods?  We are busy having this debate and have found some areas where it is debatable whether we should use a property or a method. One example is this:  public void SetLabel(string text) {     Label.Text = text; }   In the example, Label is a control on a ASPX page. Is there a principle that can govern the decision (in this case) whether to make this a method or a property.  I'll accept the answer that is most general and comprehensive, but that also touches on the example that I have given.


Can any one help me to write test class for below mentioned code trigger ContactTriggerWithList1 on Contact (before insert) { List<Account> lacc = [select Id, Name, Type from Account];  for(Contact c :trigger.New) {          for(Account a :lacc)     {         if(c.AccountId==a.Id)         {             c.Type__c=a.Type;         }     } }  } Test Class********** @isTest public class ContactTriggerWithList1_TriggerHandler { @isTest  static void test_insertContact() {     Account a = new Account(name='TestAccount', Type='Prospect');     insert a;          Contact c = new Contact();     c.LastName= 'TestContact';     if(c.AccountId==a.Id)     {       c.Type__c=a.Type;     }         insert c;     System.assertEquals(c.Type__c, a.Type);    }  } This test class is giving 85% coverage. Can anyone help here? It is not covering C.Type__c == a.Type portion. Even though, I have written System.assert method as well.


Best book for theory of probability and statistics

I need a proof based book to study theory of probability and statistics. I have read that one of the best is Mood & Graybill. I just want that it is proof-based, rigurous, and it talks about probability, statistics, and statistical inference.


I've just defeated the Ender Dragon and a portal opened somewhere below it. on the top is an egg. I've managed to get it down by right-clicking on it but can you do anything with it? Does it hatch? Can you place in your inventory and spawn Ender Dragons?


Trying to find correct site to ask how I can find HTML snippets

I'm trying to find the correct exchange to ask a question about HTML snippets. I'm trying to find a library of eCommerce snippets to help with a site I'm designing.  Stack Overflow has already closed my question and Web Applications doesn't take development questions.


I'm new to C++. I'm trying to create a utility function to execute commands on the commandline from the application. There are multiple places where it will be called from so I wanted to abstract it out. This is how the method looks like. std::string ExecuteCommand(const string& arguments) const {     ipstream iStream;     auto childProcess = child(cmd, std_out > iStream);     string response;     string line;      while (getline(iStream, line) && !line.empty())     {         response += line;     }      childProcess.wait();      auto exitCode = childProcess.exit_code();      return response; }  I'm interested in the response from running the command as well as the exit code. I'm thinking of the following: From the caller string cmd = "dir" // For simplicity sake int exitCode = -1; string response = ExecuteCommand(cmd, exitCode);  Change to method signature: std::string ExecuteCommand(const string& arguments, &exitCode)  Will something like work? Also, is it possible to not initiate the exitCode and just get the return value from the method? Looking forward to your responses. Thanks!


Apex class getting the product fields from pricebookentry where pricebook name ='Test'

We are having Product , Pricebookentry and pricebook in SFDC as a standard object. here pricebookentery is having look up to product and pricebook.  so i want to get all the prodcuct fields which is associated with pricebook.  public class test123{          Public test123(){         List<PricebookEntry> pb = [select id, product2.name,Unitprice from Pricebookentry where pricebook2.name = 'Test'  ];         system.debug('@@@@' +pb);      }    List<PricebookEntry> pb = [select id, product2.name,Unitprice from Pricebookentry where pricebook2.name = 'Test'  ];    this query is working in developer console getting all the values of priceboook and products. if you call from apex class its not working please see the log below .. please help to understand Not- pricebook and prodcut is not having any relationship.         DEBUG|@@@@(PricebookEntry:{Id=01u28000007nkSJAAY,   Product2Id=01t28000001Fq7gAAC, UnitPrice=5000.00,   Pricebook2Id=01s2800000DF6PtAAL},   PricebookEntry:{Id=01u28000007nkSKAAY, Product2Id=01t28000001Fq7ZAAS,   UnitPrice=2300.00, Pricebook2Id=01s2800000DF6PtAAL},   PricebookEntry:{Id=01u28000007nkSLAAY, Product2Id=01t28000001Fq7YAAS,   UnitPrice=212.00, Pricebook2Id=01s2800000DF6PtAAL},   PricebookEntry:{Id=01u28000007nkSMAAY, Product2Id=01t28000001Fq7nAAC,   UnitPrice=1236.00, Pricebook2Id=01s2800000DF6PtAAL}


So i want to install Ubuntu and im booting from USB. Im new to Ubuntu.  When i click SOMETHING ELSE, it shows 4 partions: the first of 1mb, sda1, unknown free space, second of 100mb sda2 (that i know its system recovery from win7), third is 170gb (win7) sda3, and the last one is like 830gb, i dont know where this came from.... on windows i have them separated.  is this a bug or something? How to install without losing all my data and keeping Win7?  When i try without installing i get to see my 3 partions (170gb, 600gb, 230gb) but not when i try to install.  Edit  ubuntu@ubuntu:~$ sudo gdisk -l /dev/sda   outputs this:  GPT fdisk (gdisk) version 0.8.7   Partition table scan:   MBR: MBR only   BSD: not present   APM: not present   GPT: not present   *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory.  ***************************************************************  Disk /dev/sda: 1953525168 sectors, 931.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): 2729AEE7-A594-4A07-91DF-96116B581067 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1953525134 Partitions will be aligned on 8-sector boundaries Total free space is 2044 sectors (1022.0 KiB)  Number  Start (sector)    End (sector)  Size       Code  Name    1              63            2047   992.5 KiB   4200  Windows LDM data    2            2048          206847   100.0 MiB   4200  Windows LDM data    3          206848       245762047   117.1 GiB   4200  Windows LDM data    4       245762048      1953523119   814.3 GiB   4200  Windows LDM data   And,  ubuntu@ubuntu:~$ sudo fdisk -l   outputs this:  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x13344b63     Device Boot      Start         End      Blocks   Id  System /dev/sda1              63        2047         992+  42  SFS Partition 1 does not start on physical sector boundary. /dev/sda2   *        2048      206847      102400   42  SFS /dev/sda3          206848   245762047   122777600   42  SFS /dev/sda4       245762048  1953523119   853880536   42  SFS


I am trying to compile a java program I found on the internet and it says that I must check if javac is installed. I installed the JDK a long time ago so it should be working but I get command not found error:    how can this be resolved?


How can I rename multiple files, since using mv or rename *.* doesn't work?

Note: After asking this question, I found that the file browser Thunar, which comes with Xubuntu and is installable in any Ubuntu version, provides a bulk-renaming utility that works well for me.    I am trying to append timestamp hashes to files in directory or a userFileCode like a file password (for example all files of user have a prefix or suffix).   My problem is the mv command only works once so I cannot use wildcards like so  mv *.* *.*_dateHashsuffix   error says it's not a directory.   Seems like mv cannot handle multiple renames or do I have to use it like in cd /usr/bin && sudo mv test test_disabled && mv sudo sudo_disabled... in other words perhaps I have to pipe the ls > filelist.tst and then parse (do I use |grep here?) that separately in a .sh file script with executable permission run as so ./myscriptsname.sh or cant I use ls > directly in the script?  I see a use for this on my servers in the future to rename variables and files to prevent hacking. But a better idea altogether might be torrentDNS and zipSites in perhaps voxel based web browser with links to webpage content.


Add CSS to iframe elements using the page .css file

First of all, it seems  like there are a lot of posts with the same kind of title, but none of them is focusing on the problem I am facing. That is the reason why I opened this new question, and I hope the title is explicit enought.   I am working on a text-editor on my own, and I was using a <textarea> at first, but I wanted to add various styles to the elements I was writing. After reading a lot of topics about it, I decided to change my <textarea> for an <iframe>.  Before trying anything new with design or whatever, I would like to have the same behaviour with this <iframe> and my previous <textarea>. But I am facing an issue :  My <iframe> element is in a page, index.html, which is linked with a CSS file, style.css. I am able to change the global <iframe> design (like width, height, border...) of the frame in style.css, but I can't add a special design to the elements inside the <iframe> with properties I added in my style.css.  I saw in the inspector that the iframe has a #document before any tag   But even if I tried to add this strange tag to the CSS, the style is not applied to the elements I want to change.   So to be concise, my question is this one : Is it possible to add some style to elements inside an iframe in the stylesheet file of the host page ?  Here are some relevant parts of my code, which shows what I would like to do : add a custom font to the <p> tags inside the <iframe>.    window.onload = function() {   var frameElement = document.getElementById("text-field");   var doc = frameElement.contentDocument;   doc.body.contentEditable = true; }   html, body {  margin : 0px;  background : #f5f5f5;  font-family: 'Roboto', sans-serif; }  input:focus, textarea:focus {  outline: none; }  .text-editor {  min-width : 800px;  width : 1200px;   max-width : 1600px;  min-height : 400px;  height : 850px;  max-height : 850px;  background : #f0f0f0;  box-shadow : 0px 1px 4px #ccc;  margin : auto;  overflow:auto }  .text-editor .text-field {  display : block;  background-color : white;  min-height : 300px;  height : 600px;  max-height : 600px;  width : 90%;  margin : auto;  padding : 5px;  border: 1px solid #ccc; }  .text-editor .text-field #document html body {  font-family: 'Source Code Pro', monospace;  font-size : 14px; } <!DOCTYPE html>  <html>   <head>   <title>A Text Editor Project</title>   <link rel="stylesheet" type="text/css" href="CSS/style.css">   <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">   <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>  </head>    <body>      <div class="text-editor">    <iframe class="text-field" id="text-field" src="about:blank" contenteditable="true">        </iframe>   </div>    </body>  </html>


Prove the following equality: $\sum_{k=0}^n\binom {n-k }{k} = F_n$

I need to prove that there is the following equality:  $$ \sum\limits_{k=0}^n {n-k \choose k} = F_{n} $$ where $F_{n}$ is a n-th Fibonacci number.  The problem seems easy but I can't find the way to prove it. Could you give me any hints? I'm looking for a combinatorial proof.


I've been retagging posts matching [special] -character -[character] is:question  The sidebar gives this helpful description of my query:     results found not containing   and not containing   tagged with       not       search options   questions only   It looks like there are some words missing there...


How to open a terminal from within Atom?

I'm currently working with Atom, and sometimes I want to open a terminal on the directory my working file is. To do this, I usually have to open the folder in nautilus (right clicking the file in atom) and then I open a terminal on that directory from nautilus (right click).  I wonder if there is a way to open the terminal in the file directory without having to open nautilus first.


I upgraded Ubuntu from 17.10 to 18.04.  Under 17.10 there is no issues with the boot -  I did a clean install and used LVM as well.   When upgrading to 18.04 I have a hang for about 35 seconds.  I have read the forums where it says to get are suggesting changes to this file /etc/initramfs-tools/conf.d/resume where I have a uuid device listed and change it to Resume=None. Before I make changes like that I do not want to end up with a system that is will not boot.  I do have a swap drive (checked) it is 8GB.   Here is the file I see on boot.  Is there something I am missing?  I have enabled boot to visual and there is a 35 second hang on this load  Running /scripts/local-premount ...   Am I looking at the right problem?  mike@mike-Inspiron-1564:~$ systemd-analyze blame       18.479s dev-mapper-ubuntu\x2d\x2dvg\x2droot.device      15.634s systemd-journal-flush.service      11.098s lvm2-monitor.service       8.693s systemd-udevd.service       7.095s NetworkManager-wait-online.service       6.976s dev-loop2.device       6.973s dev-loop0.device       6.936s dev-loop1.device       6.186s snapd.service       4.835s udisks2.service       4.658s teamviewerd.service       4.293s apparmor.service       3.363s networkd-dispatcher.service       3.112s NetworkManager.service       3.097s systemd-sysctl.service       3.090s ModemManager.service       2.774s accounts-daemon.service       2.715s apport.service       2.436s nmbd.service       2.419s colord.service       2.365s keyboard-setup.service       2.189s systemd-tmpfiles-setup-dev.service       1.713s smbd.service       1.567s wpa_supplicant.service       1.532s avahi-daemon.service       1.518s thermald.service       1.510s speech-dispatcher.service       1.507s gpu-manager.service       1.501s pppd-dns.service       1.499s alsa-restore.service       1.473s systemd-logind.service       1.473s rsyslog.service       1.448s systemd-rfkill.service       1.290s sys-kernel-debug.mount       1.242s systemd-remount-fs.service       1.211s dev-hugepages.mount       1.204s dev-mqueue.mount       1.121s fwupd.service       1.106s systemd-modules-load.service       1.000s user@121.service        692ms systemd-journald.service        579ms grub-common.service        562ms dns-clean.service        530ms packagekit.service        485ms upower.service        406ms gdm.service        392ms lvm2-pvscan@8:1.service        367ms systemd-udev-trigger.service        365ms networking.service        363ms systemd-tmpfiles-setup.service        269ms systemd-resolved.service        265ms plymouth-read-write.service        264ms systemd-timesyncd.service        236ms ufw.service        233ms blk-availability.service        215ms snap-core-4571.mount        210ms systemd-random-seed.service        206ms polkit.service        203ms motd-news.service        183ms kmod-static-nodes.service        170ms snap-canonical\x2dlivepatch-39.mount        132ms snap-core-4486.mount        105ms bolt.service        105ms systemd-update-utmp.service         95ms systemd-tmpfiles-clean.service         95ms user@1000.service         88ms setvtrgb.service         48ms sys-kernel-config.mount         46ms sys-fs-fuse-connections.mount         35ms dev-mapper-ubuntu\x2d\x2dvg\x2dswap_1.swap         19ms snapd.socket         18ms kerneloops.service         18ms console-setup.service         13ms systemd-backlight@leds:dell::kbd_backlight.service         11ms systemd-update-utmp-runlevel.service         11ms systemd-backlight@backlight:intel_backlight.service          9ms systemd-backlight@backlight:acpi_video0.service          9ms ureadahead-stop.service          8ms rtkit-daemon.service          5ms systemd-user-sessions.service          5ms plymouth-quit-wait.service   lines 59-81/81 (END)


How to open Nautilus (File Manager) preferences?

Please could you tell me where can I find the File Manager Preferences in Ubuntu ... (now for 16:04 LTS).  The menu bar has disappeared from Nautilus, as also have the resize handles and the top-bar right-click menu (except for 'Close').  The window gets a little smaller every time I open it, it's gradually disappearing and I can't presently correct it.  I'm using Gnome not Unity, so the fixes for unity don't work.  I would have preferred to add these observations as comments, but I still have too few reputations to do that, so have to ask a new copy of the same question instead.


How was Padme's death handled by the surviving Jedi and the Empire?

When Padme died on Polis Massa, her body was in the possession of Obi-Wan, Yoda and Bail Organa. However, we can assume she was handed over to Imperial management since she was permitted a very public state funeral on Naboo - something the Jedi cannot personally organise at this point in time without attracting Imperial attention.  How did they deliver it to the Empire without arousing suspicion?  Also, what is the official Imperial statement on her cause of death? Since the Empire permitted the state funeral, we can assume that the Emperor did not expose her relationship with the "traitorous" Jedi Anakin Skywalker. The surviving Jedi also covered up the birth of the Skywalker twins by setting up the illusion her child (Anakin nor Palpatine knew there was more than one until Endor) died with her, still in the womb. So it can't be said that she died of a "broken heart" nor in childbirth.  So what did the Empire tell the galaxy?


How do you title a letter to a family surname?

I am writing a letter to some family members and it is a thank you to a whole family. Would it be written as Dear Smiths,?  Do I need an apostrophe, so it is Dear Smith's? What if it ends in an s like the surname 'Stokes'? Do you write Dear Stokes' or simply Dear Stokes, because Dear Stokeses seems wrong? Thank you very much.


how to vertical align a span and a div in the same row

I have multiple rows of texts and divs like this:
   Adeline
hi

   Ted
hi

   Sara
hi

   How can I make sure in each row the span and the div are vertically aligned?


Physiological function of CFTR gene product?

I just need a clarification.  If I am to talk about the physiological function of the CFTR gene product? Then what should I do research and talk about?  The only physiological function that I can think of is the control of the thickness of mucus.  Is there any other ones?  On top of that, if i am to search for research paper for this topic. Do I just search for comparative study that compare the gene product in normal individuals and CF individuals in terms of mucus thickness?  Thanks


NullPointerException when refreshing the recyclerview

So I have an AsyncTask class to handle populating my RecyclerView. It works well but when it needs to be refreshed then it crashes with a NullPointerException. I kind of know why but then I can't do it because I am creating a new object and adding it to my list.  This is my code:    @Override         protected void onPostExecute(String s) {             try {                 userslist.clear();                 JSONArray jsonArray = new JSONArray(s);                 for(int i=0; i < jsonArray.length(); i++){                     ...                     UsersData usersData = new UsersData(var1, var2);                     userslist.add(UsersData);                 }                 cAdapter.notifyDataSetChanged(); // Culprit line, despite the list being deleted and added again in the try block             } catch (JSONException e) {                 e.printStackTrace();             }         }   I suspect is it something to do with the userslist.  This is my error logs:  java.lang.NullPointerException             at lukazs.newapp.UserInfo$GetUserList.onPostExecute(UserInfo.java:218)             at android.os.AsyncTask.finish(AsyncTask.java:741)             at android.os.AsyncTask.access$600(AsyncTask.java:197)             at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:654)             at android.os.Handler.dispatchMessage(Handler.java:100)   EDIT: This is the method call where I populate the recyclerview:  public void populateRecyclerList(){     GetUserList getUserList = new GetUserList();     getUserList.execute(); }  @Override protected void onCreate(Bundle savedInstanceState) {     ...     setContentView(R.layout.usersdetails);      populateRecyclerList();     }   This is where cAdapter is initialised, in onCreate method:  RecyclerView.Adapter cAdapter; ArrayList<UserDetailsProvider> userslist = new ArrayList<UserDetailsProvider>();  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     recyclerView = (RecyclerView) findViewById(R.id.recycleMusic);     cAdapter = new UserDefinedAdapter(userslist);     recyclerView.setAdapter(cAdapter);     populateRecyclerList(); }   EDIT: I have done something now, but the populateRecyclerList() is crashing in another AsyncTask class on onPostExecute. Basically, I want to repopulate the recyclerView after a user has been added. This is my code for the onPostExecute() method, where I am calling the populateRecyclerList() method:  @Override         protected void onPostExecute(String s) {            populateRecyclerList();         }   Maybe you are not meant to call this method here? But then how would I update the RecyclerView?


Swapping positions of an unallocated partition with a Ubuntu partition

My partitions are: Windows10 > Ubuntu19.10 > Free Partition. I want to move the Free partition to the left of Ubuntu so I can assign it to windows, how would I go about doing this? I know I'll likely need some third party software like GParted but I'm not sure how to do this. easeus on windows tells me the trial version wont allow me to swap around the Ubuntu and the free partition, but I'm not really looking to drop $40 to swap two partitions once and then never think of it again. any advice would be appreciated, Kind regards


Is there a way of installing Ubuntu (Windows Subsystem for Linux) on Win10 (v1709) without using the Store?

The Microsoft Store app is disabled by Group Policy by my university. I have administrator rights on my computer and I was wondering if there was a way of installing Windows Subsystem for Linux (WSL) directly? Or maybe via Chocolatey or some other command line method? I would like to download and install the Ubuntu  on windows without using the Microsoft store.  Note that since version 1709 (Fall Creator's Upgrade), only enabling Developer Mode is no longer sufficient.


I can't see my background image in the 3D view

I try to set up an image as background for a basic blender tutorial, but it isn't visible.  This is the image I try to have as background:


(Windows 10) How can I disable Skype popping up on startup?

Whenever I startup my Windows 10 laptop and then log in, the second the home screen appears, Skype starts up, covering up the home screen completely.  I need to keep on closing the Skype window to get that thing off of my screen.  It's extremely annoying.  How can I disable this?


Hello guys I have this problem which has been really bugging me. And it goes as follows:  Using induction, we want to prove that all human beings have the same hair colour. Let       S(n) be the statement that “any group of n human beings has the same hair colour”.  Clearly S(1) is true: in any group of just one, everybody has the same hair colour.  Now assume S(k), that in any group of k everybody has the same hair colour. If we replace any one in the group with someone else, they still make a total of k and hence have the same hair colour. This works for any initial group of people, meaning that any group of k + 1 also has the same hair colour. Therefore S(k + 1) is true.  I cant seem to figure out where the problem lies in this proof. I have tried a few things and I have concluded the base case is correct. But other than that I can't seem to disprove this proof.


Exception in thread "main" java.lang.NullPointerException in Sikuli

Doing the desktop automation with help of sikuli but when trying to call the image that time give the "NullPointerException" exception.   Code :  public static Screen s;   public static void main(String arg[]) throws IOException, InterruptedException, Exception {         Runtime.getRuntime().exec("images/Nintei_launch.exe");         Thread.sleep(5000);         s.click("c:/Users/abc/Desktop/Winword/selectSession.PNG");   thank in advance


On Mine craft pocket edition I found Red stone ore deep down in the earth world thing. I can't mine it. I tried using a stone pickax on it , and it took around one minute to break and when it did I couldn't collect it BTW it's Minecraft pocket edition on kindle fire and it's version 7.00.


Can I claim compensation if I was refused boarding for lack of proper visa?

I booked travel on British Airways to fly from Stockholm to India with a transit at London Heathrow Airport. At the Stockholm Arlanda Airport, I was refused boarding as I didn't have the required UK transit visa. I had to rebook on another airline, at a cost of more than 1100€ (E90K INR).   Is there any way to get my money back? Can I file a complaint and against whom? Is it the Embassy's fault?


I recently  that was related to the BlazeMeter website, and wanted to add the blazemeter tag to it, but am lacking the 1500 reputation needed to create it. Can someone please help with this?  On an even more meta level, why don't we have a tag request page? where people can come and request tags, and maybe even vote on them?  Thanks


How exactly are the relative strengths of gravity and electromagnetism quantified?

I've often heard it said that gravity is much weaker than electromagnetism, and after looking at several questions on SE, I feel that I've got at least a qualitative handle on the concept -- gravity only appears to be stronger macroscopically because positive and negative charges in most everyday matter cancel each other out almost perfectly, leading to low Coulomb forces.  But I've also heard it said that gravity is "thirty orders of magnitude" weaker than EM. How is that figure arrived at, since charge and mass are pretty fundamentally different, at least from what I've learned?  This differs from  because I'm looking for a quantitative and hopefully more complete understanding of the issue than the answers to that question provided. The closest any of those answers come is vaguely mentioning a coupling constant, without really explaining its nature mathematically.


Where can I get flight info for a flight a month ago for an insurance claim? Flight stat sites will only show a weeks worth of data.


Explain whether “unordered” bases and “distinct” bases of a vector space meaning same thing?

Is the words unordered bases and distinct bases of a vector space meaning same thing ? Actually I have to solve the following problem.  $\underline{Problem}:$ Find the number of distinct bases of a two dimensional vector space of the finite field $\mathbb{F}_3$.  My approach: Any two dimensional vector space $V$ over $\mathbb{F}_3$ can be considered as $V=\mathbb{F}_3^2$. So we have to find the number of distinct bases (or unordered bases) of $\mathbb{F}_3^2$ over $\mathbb{F}_3$. Now as $V$ is two dimensional any basis will be like $\{v_1,v_2 \}$. So we have to check that given any non-zero vector $v_1 \in V=\mathbb{F}_3^2$, how many independent $v_2 \in V$ is there ? Let $v_1$ is non-zero then $v_1$ has $9-1=8$ choices as there are $9$ elements in $\mathbb{F}_3^2$. But how to count choices of $v_2$ for each choices of $v_1$  so that $\{v_1, v_2 \}$ are basis? Help me


Looking to implement a cross-product operator^ oveload for template Vector3D class ideally that overload (though I think highly improbable/impossible) should be able to receive two different parameter types and return a third s.t.     Vector3D<Distance> r;     Vector3D<Force> F;     Vector3D<Moment> M = r^F;  Since I assume that this is impossible and/or improbable I would be open to forcing the return parameter type to double s.t.     Vector3D<Distance> r;     Vector3D<Force> F;     Vector3D<double> M = r^F;  However when I do that in the code below I get the following linking error even though template class Vector3D is instantiated: 1>Source.obj : error LNK2019: unresolved external symbol "public: class    Vector3D<double> const __thiscall Vector3D<double>::operator^<double>(class    Vector3D<double> const &)const " (??$?TN@?$Vector3D@N@@QBE?  Thank you in advance for the help.     //Vector3D.h     template <typename T>     class Vector3D     {     public:     '''     template <typename Arg>     const Vector3D<double> operator^ (const Vector3D<Arg>& p_other) const;     '''     private:     //////////////////////////////////////////////////////////////////////////     // *** PRIVATE DATA MEMBERS ***     //////////////////////////////////////////////////////////////////////////     T m_elem[3];      }      //Vector3D.cpp     /// Calculate the cross product     //     template <typename T>     template <typename Arg>     const Vector3D<double> Vector3D<T>::operator^ (const Vector3D<Arg>& p_right) const     {         // Local variables         Vector3D<T> left(*this);         Vector3D<double> cross_product;         // Calculation         cross_product.m_elem[0] = left.m_elem[1] * p_right.m_elem[2] - left.m_elem[2] * p_right.m_elem[1];         cross_product.m_elem[1] = left.m_elem[2] * p_right.m_elem[0] - left.m_elem[0] * p_right.m_elem[2];         cross_product.m_elem[2] = left.m_elem[0] * p_right.m_elem[1] - left.m_elem[1] * p_right.m_elem[0];          return cross_product;     }      template class Vector3D<double>;


Which Ubuntu to use alongside Windows 7?

I have an old Samsung N148 Plus netbook (Intel Atom 1.66GHz, 1GB RAM, 250GB). I want to install Ubuntu alongside my Windows 7 Home Premium.   Any Ideas as to what flavor or what version of Ubuntu to install?


How do I boot Ubuntu from my usb flash drive?

I have been using Windows 7 Home Basic for years, and now I'm bored and my PC is getting slower by the day. So I decided to try Ubuntu. I formatted an 8GB Transcend USB Flash drive and put Ubuntu in it with the help of Universal USB Installer from pendrivelinux.com as instructed .  I tried to get help on how to boot from this USB  but I couldn't get my PC BIOS Setup to boot from it.  I press Enter to get to the menu as soon as the system starts, then try changing the primary boot to Removable Disk (my flash drive) by getting into the BIOS setup which doesn't help. I also try to change temporary boot location to the flash drive but in vain. The Windows Screen shows up no matter what I do and I never get a hint of the Ubuntu install menu.  I've tried doing this before and was unsuccessful a couple of times, and I really want to try Ubuntu. I want to know the exact steps I should follow to boot Ubuntu 12.10 from my USB stick.  My system specs are: Microsoft Windows 7 Home Basic Version 6.1.7601 Service Pack 1 Build 7601 System Type X86-based PC Processor   Intel(R) Atom(TM) CPU  330   @ 1.60GHz, 1596 Mhz, 2 Core(s), 4 Logical Processor(s)


I am a hvac tech, but my question is I have 2awg stranded and my plug is 6awg, will it matter much if I cut some strands to fit my plug? the plug is 60amp 250vac for a piece of kitchen equipment if the matters.


Why do the font names change every time a document is compiled

I just noticed today that our internal document generation system (using XeLaTeX under the hood) does not produce binarily identical PDFs given the same inputs (which is something that we need to ensure for our own traceability mandates). I set out today to fix the problem and came across  which helped me get part of the way there. Unfortunately, I was still seeing differences in the final output hashes. I recompiled the documents with \special{dvipdfmx:config z 0} so that I could try to see a textual diff and that helped me see that the font names themselves are getting prefixed with a string of 5 characters which change for each compilation.  MWE (xelatex): % filename: mwe.tex \documentclass{minimal}  \begin{document} A \end{document}  If I compile this document twice $ xelatex -jobname=mwe1 mwe.tex $ xelatex -jobname=mwe2 mwe.tex  and then look at the fonts contained in each $ pdffonts mwe1.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- AMLHNB+LMRoman10-Regular-Identity-H  CID Type 0C       Identity-H       yes yes yes      5  0 $ pdffonts mwe2.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- DVQZGA+LMRoman10-Regular-Identity-H  CID Type 0C       Identity-H       yes yes yes      5  0    then I see that this 5-character prefix seems to be changing at random. This is preventing me from achieving my ultimate goal of binarily reproducible builds. Question Is there anything I can do to prevent this prefix from changing each build? If not, then is there any way to coerce xelatex to avoid using a prefix altogether?  For further information, pdflatex does not seem to exhibit this problem (though the font name it derives is different from xelatex, which is to be expected, I suppose). $ pdflatex -jobname=pdftex1 mwe.tex $ pdflatex -jobname=pdftex2 mwe.tex  produces $ pdffonts pdftex1.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- GBZLEI+CMR10                         Type 1            Builtin          yes yes no       4  0 $ pdffonts pdftex2.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- GBZLEI+CMR10                         Type 1            Builtin          yes yes no       4  0


What is the maximum integer that can be saved in a LaTeX counter?

I am using counters to save positive integers, something like that:  \setcounter{mycoutervalue}{59}   Is there any limit in the value I can save in a counter, in this case mycountervalue? And what is the exact limit?  Thanks! I do not want to get an unexpected overflow.


I try to remove parts of the top bar in Ubuntu 18.04 with Gnome 3. First I have removed the whole top bar with a part of CSS because we didn't used it at all, but we have installed the TopIcons plugin for our notifications because our software work with that plugin. Removing the complete bar don't work anymore, because also the TopIcons are not visible then. I still like to remove the right top corner part of this bar, as we made our own "Shutdown and Restart" buttons in the menu. The reason is to avoid users using the settings panel and make it impossible to use the "wired settings".   I would like to remove this:    Is there any way to customize this bar or a way to remove parts of the top bar? I have used this CSS to remove the complete top bar, that was working well:  echo "#panel { height: 0px; margin-bottom: 20px; } #panel .popup-menu-arrow, #panel .system-status-icon { color: rgba(0,0,0,0); }" >> /usr/share/gnome-shell/theme/ubuntu.css


How to synchronize the progress with the time of the program?

I was trying to make the progress work in time with the program, while it's time goes on.  In the below code the progress is working but just inside the for loop. How to let the progress grow with the task of the program ?  private void readFromFile(File cf2) throws IOException, Exception {     //System.out.println("okay");     FileReader fr = new FileReader(cf2);     try (BufferedReader bw = new BufferedReader(fr)) {         System.out.println("Wait while reading !");         for (int i = 0 ; i <= 100 ; i++) {             Thread.sleep(10);             System.out.print(String.format("[%s]%d%%\r", progress(i), i));         }         while(bw.readLine() != null)         s1 += bw.readLine();     } }  private static final StringBuilder res = new StringBuilder();  static String progress(int pct) {     res.delete(0, res.length());     int numPounds = (pct + 9) / 10;     for (int i = 0 ; i != numPounds ; i++) {         res.append('#');     }     while (res.length() != 10) {         res.append(' ');     }     return res.toString(); }


Multiple buttons with Javascript confirm and window.location

I want to make a list of text/buttons that prompts a box with a yes/no-option when the user clicks it. If the user presses yes, they get redirected to another site. If no, they are just prompted with a explaining they can't continue without pressing yes.  This is what I have as of now:    <script type="text/javascript"> <!-- function confirmation() {  var answer = confirm("My message here.")  if (answer){   window.location = "www.google.com";  }  else{   alert("If not, then this.")  } } //--> </script> <body> <form> <input type="button" onclick="confirmation()" value="Go to Google.com"> </form> </body>  <head> <script type="text/javascript"> <!-- function confirmation() {  var answer = confirm("My message here.")  if (answer){   window.location = "https://www.stackoverflow.com";  }  else{   alert("If not, then this.")  } } //--> </script> </head> <body> <form> <input type="button" onclick="confirmation()" value="Go to StackOverflow.com"/> </form> </body>     Unfortunately, this makes both buttons refer the user to stackoverflow.com. It always seem to apply the last "window.location" to all buttons that I add.  I would want each button to link to a different site. Any help is greatly appreciated.


can a method be declared with static type argument in java ? if no, why?  ex:   class A {     void m(static int x)     {          System.out.println(x);     } }


If $a$ is a quadratic residue modulo $m$ and $ab \equiv 1 \;(\bmod\;m)$. Prove that $b$ is also quadratic residue modulo $m$.  The above question is from Niven & Zuckerman " Introduction to the Theory of Numbers". Actually if we consider $m$ as prime it's straightforward but how to handle this question for composite number?


Is it discouraged to use a sans-serif font for a scientific thesis?

I'm currently working on my bachelor's thesis in Computer Science at a European university. I've been fiddling around with the layout a lot recently, and specifically tried out using fonts other than the default one that comes with LaTeX . I found some sans-serif fonts, e.g. Fira Code or Karmilla, to be very easy to read and pleasing to the eye. I haven't checked with my advisors yet, but I'm almost certain they won't mind -- of course, I will still double check with them before handing in my final draft. There are no specific design guidelines set by my university in regards to fonts either.  Are there any other reasons to avoid using custom fonts, specifically sans-serif ones, when writing a thesis or dissertation?


SharePoint 2013 Online - Missing Follow Link

The Follow link is missing from out SharePoint 2013 Online team site. Share and Edit links are displayed.  In Site Settings > Site Features, Following Content is Active (having this active should have enabled the Follow link).  We have not customized template files or added CSS to hide anything.  How do I display the Follow link?


Why doesn't selecting a UV island select the corresponding vertices in the model?

I have a model and I selected an island from my UV map with L, but those vertices didn't get selected on the mesh. Why is that?  Is there any way to quickly select UV islands on the mesh?         This is a follow-up question to


If $f^2$ is Riemann Integrable is $f$ always Riemann Integrable?

Problem: Suppose that $f$ is a bounded, real-valued function on $[a,b]$ such that $f^2\in R$ (i.e. it is Riemann-Integrable). Must it be the case that $f\in R$ ?      Thoughts: I think that this is not necessarily true, but I am having trouble refuting or even proving the above. Of course, the simplest way to prove that it is not necessarily true would be to give an example, but I am unable to think of one! I also have tried using $\phi(y)=\sqrt y$ and composing this with $f^2$ (to try show $f$ is continuous); however, the interval $[a,b]$ may contain negative numbers so I can't utilise $\phi$ in that case.  Question: Does there exist a function $f$ such that $f^2\in R$ but $f$ $\not\in R$ ? Or conversely, if $f^2\in R$ does this always imply $f$ $\in R$ ? (If so, could you provide a way of proving this).


Can I add and remove elements of enumeration at runtime in Java

It is possible to add and remove elements from an enum in Java at runtime?  For example, could I read in the labels and constructor arguments of an enum from a file?    @saua, it's just a question of whether it can be done out of interest really. I was hoping there'd be some neat way of altering the running bytecode, maybe using  or something. I've also followed up with  because I realised I wasn't totally sure when an enum should be used.  I'm pretty convinced that the right answer would be to use a collection that ensured uniqueness instead of an enum if I want to be able to alter the contents safely at runtime.


Large transactional log won't shrink after transactional backup

I'll start by saying our databases use full recovery mode and we run SQL Server 2014.  Over the last few days our backups appeared to spiral out of control to the point that our full/differential backups were failing and only extremely large transactional backups were getting created. This of course caused a disk space issue and required a fair bit of manual intervention to restore order.  I manually ran a full backup on each database and then tried to follow up by running a transaction backup. During this period, one database's log file was increasing in size to the point that it ran out of disk space. Usually the log file would be around 1 GB, it is now sitting at about 30 GB.  Running a transactional backup did not reduce the size of the log file and I was stuck in a position where the log file was full and there was no room left on the disk. As a last ditch effort, I ran the SHRINKFILE( dbname, 4096) which instantly reduced the size and all appeared to be normal.  After doing so, I noticed my backups were no longer working and I was receiving an error:  Data error (cyclic redundancy check) failed. I tried running CheckDB and was presented with the following message:     A severe error occurred on the current command. The results, if any, should be discarded.   Given I was unable to back the database up, I decided to try and restore from earlier in the day off a full backup and 1 single transactional backup I had created. Both these files were large. The reason I only had 1 transactional backup was because I had disabled the job from running to avoid things spiralling further out of control.  New DB is up and running and backups work fine, but the issue of the large log file still prevails. My transactional backups are very small now but I can't seem to shrink the DB.  Anyone have any ideas? Alternatively, if there's a way to resolve the redundancy issue on the original database that would be a preferable solution as I'd have no data loss then.  No open transactions. The log_reuse_wait_desc is "LOG_BACKUP" which my understanding means that it is waiting for a log backup to run. This is madness because I have done several ;) dbcc sqlperf(logspace) is claiming I'm using 92% space.  Log backups run every 15 minutes in normal circumstances, but like I mentioned, these had been failing over the weekend. I've turned them off for the time being to stop the drive filling up and have just been manually running transactional backups. The database is not live at the moment so no additional data is going in there, I've run maybe 4 transactional backups as a test in the last hour or so.  None of replication, mirroring, or AOAG is configured here.


how can one get the size of an array via a pointer?

For the following scenario, how can I get the size (3) of the array a via the pointer c? What is the pattern for solving this sort of problems?  struct struct_point {   int x;   int y;   int z; };  typedef struct struct_point point;  int test_void_pointer () {   point a[3] = {{1, 1, 1}, {2, 2, 2}};   void * b;   point * c;   b = a;   c = b;   /* get_size_p (c) */ }


Finding the work done by friction when sliding on parabola

This is not exactly a homework question, because I myself came up with the problem. I hope that this is the right place to ask this :)  So, given a "ramp" that follows some function $f(x)=x^n$+ c how to find the work done by friction when some object "slides" from $f(b)$ to $f(a)$, if   The friction coefficient is tx. $0.1$   Mass of the object is $1kg$  I did not yet study integrals in school, but this is what I got:  I assume that the function is $0.5x²$, and that i want to know the work done by friction from $f(4)$ to $f(0)$  You can get the "slope" at any given point by the derivative $f'(x)=x$ and the angle between $G$ and $Gy$ is $tan⁻¹(x)$  at that point force of friction is  $F=0.1*g*m*cos$(tan⁻¹(x))  work done by friction $W=F*d$  and distance traveled is $dx\over cos(tan⁻¹(x))$ (the length of the hypotenuse of tanget slope if one cathetus is dx)  so by putting the values in we get $W=0.1*g*m*cos(tan⁻¹(x))*$$(dx)\over cos(tan⁻¹(x))$ But if you start to integrate that, we get $G*m*\int (dx)dx$ because the cosines cancel out and we get a constant. Can someone tell how this should be done?  ps. Sorry for my bad English :)


When comments are flagged, and the user is destroyed, the flags remain

This is an obscure bug that only can be seen by moderators. I found a flag on a few comments of a user that were just spam. When I looked at the user, it was obvious he was only created to spam, and I destroyed the user's account, as is usually done for such people. The comments are now deleted, however, the flags still remain, with the only option to dismiss them, which I believe will give the user who correctly flagged an invalid flag. This doesn't seem right.  Proposal: If a user is destroyed, any flags associated with the account should be dismissed and marked as valid.


Should I be concerned about my upvote/downvote ratio?

I posted a StackOverflow question earlier today and I received several answers which I personally regarded to be truly, ahem, uninformed. Up until now I was under the impression that answers which I find not useful should be downvoted. In fact, that is exactly what the tooltip says that appears when you hover on the down-arrow element.  However, I got some pretty harsh responses in the comments there; apparently downvoting several answers (three out of the four answers posted at that time) evoked some very hard feelings, even among people who haven’t posted an answer. They then proceeded to highlight my ratio of upvotes to downvotes, and furthermore, suggested that it should be displayed alongside the accept rate (presumably implying that they would then refrain from answering questions from people who have a tendency to downvote).  Up until now I never considered that ratio to even be a factor, much less to be problematic. Mine is approximately 1:1 at the moment. It used to be even lower (i.e. I used to cast more downvotes proportionally) and I didn’t really think that would be problem. But now that it was mentioned explicitly, I looked at some other people’s ratios and I was surprised that almost all of them have cast significantly more upvotes than downvotes, usually at a ratio of 5:1 or even 10:1. I honestly didn’t know that was the norm.  My questions therefore:   Should I be casting fewer downvotes? If so, why? What would be considered to be an “acceptable” ratio, and why? In an extreme case where most of the answers I get are seriously lacking, what should I do and why?


So i'm doing a program where i input some data into a file and read from it. The problem is i dont know how to handle this. I read from the file and recieve a string containing alot of different data that is seperated by a delimiter "|".     string data ="FirstName|LastName|Signature|Height";   So my question is, is there a way to seperate this string nicely and store each of the values in a seperate variable?  p.s I have tried this so far. I did find this function subrt() and find() which i could use in order to find the delimiter and take out a value but it doesnt give the correct value for me so i think i'm doing something wrong with it. Only the fname value is correct.      const string DELIM = "|";     string fname = data.substr(0, data.find(DELIM));     string lname = data.substr(1, data.find(DELIM));     string signature = data.substr(2, data.find(DELIM));     string height = data.substr(3, data.find(DELIM));


What does the line above a letter represent?

The image above is from Crash Course and I saw the equation the velocity is Delta.  What does the line above acceleration represent?


How to configure proxy settings "syntax error *extra junk at end of file"

I got the following error after configuring proxy in /etc/apt/apt.conf as Acquire::http::proxy http://192.168.96.0:8080:  e: syntax error /etc/apt/apt.conf:2: extra junk at end of file.   and I don't have the proxy authentication. How do I fix this?


Kernel:Why is the dot product a "measure of similarity" of instances?

Not a duplicate since the linked question does not answer this question: A measure of similarity should be maximal for instances which are the same (e.g. similarity between (1,1) and (1,1) should be higher than the similarity between (1, 1) and (1, 2) ). This is not the case. Therefore the dot product is not a measure of similarity. Where am I wrong?  All explanations of the kernel trick I read take for granted that the dot product is a good measure of similarity for instances. I know that the dot product is zero if the vectors are orthogonal.  However, in this image, from my intuitive understanding $x_1$ and $x_3$ are quite similar, while $x_1$ and $x_2$ are very different. Yet, the dot product between $x_1$ and $x_2$ is large, and between $x_1$ and $x_3$ is smaller.  Take for example $x_1 = (1, 1)^T$, $x_2 = (20, 20)^T$, $x_3 = (1, 0.9)^T$. In what sense are $x_1$ and $x_2$ more similiar than $x_1$ and $x_3$? Why does the angle matter so much in practise?


Update node revision programmatically don't save new value

If I try to edit a review:  $node = node_revision_load(56); $node->set('field', 'value); $node->save();   This has no effect. The value is not changed.  The function does not make mistakes, it seems to save everything, but it is not so.  How can I do ?


Where should I start to learn cryptography?

I want to learn cryptography. I just wanted to ask people who are experienced about the field where I should start. Any recommendation would be something for me.   Thank you in advance.


What typographic rules are there for indenting paragraphs?

I wonder what typographic rules there are for indenting. Does it require a certain amount of lines to be justified or should it be applied per default.    In my opinion, the text colour is not very nice, when having two-liners as in my example.  But what are the more qualified opinions on this?


Does this lemma, which have an easy proof for rational numbers, also hold true for all real numbers?

Recently, I answered   question. A generalized version of what was proved is the following.  Lemma: For $n\in\mathbb{N}$ and $a_1,a_2,\ldots,a_{2n+1}\in \mathbb{Q}$, if for each $1\le i\le 2n+1$, the numbers $\{a_j:1\le j\le 2n+1\wedge j\neq i\}$ can be divided into two sets of size $n$ with equal sum, then all $a_i$ must be equal.  Proof: At first, we limit ourselves to $\mathbb{Z}$. If for some $a_1,a_2,\ldots,a_{2n+1}\in \mathbb{N}$, for all $1\le i\le 2n+1$, the numbers $\{a_j:1\le j\le 2n+1\wedge j\neq i\}$ can be divided into two sets of size $n$ with equal sum, we call $a_1,a_2,\ldots,a_{2n+1}$ a solution.  For any solution $a_1,a_2,\ldots,a_{2n+1}$ and a positive integer $m$, $a_1-m,a_2-m,\ldots,a_{2n+1}-m$ is also a solution. If all the $a_i$ are even, then $\frac12a_1,\frac12a_2,\ldots,\frac12a_{2n+1}$ is a solution as well.  Now, the sum of every $2n$ elements is even, therefore, each $a_i$ has the same parity as the sum of all $a_i$, therefore, all $a_i$ have the same parity.  WLOG, we can assume one of the $a_i$ to be $0$, so all $a_i$ are odd. This means we can divide them all by $2$ and still have a valid solution. However, since one of them is still $0$, they're all even again, so we can divide them all by $2$ again, but then one of them is still $0$ and so on. So all the $a_i$ are finite and divisible by arbitrarily large powers of $2$, so all $a_i$ are equal to $0$.  For $a_1,a_2,\ldots,a_{2n+1}\in\mathbb{Q}$, simply multiply all of the $a_i$ by the product of the denominators to translate the problem to the integers. Q.E.D.  Question: Is the lemma also true for $a_1,a_2,\ldots,a_{2n+1}\in \mathbb{R}$?


I am having trouble with converting .htaccess files to nginx. I have 3 .htaccess files. The first .htaccess file is located in the document root and is as follows:  Options +FollowSymLinks RewriteEngine On RewriteRule ^img-(.*)\.html img.php?id=$1 [L] RewriteRule ^slide-(.*)\.html slider.php?id=$1 [L] RewriteRule ^page-(.*)\.html page.php?name=$1 [L] RewriteRule ^contact\.html$ contact.php [QSA,L,NC]   The second .htaccess file is located in a folder called upload:  RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?foo\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ nohotlink.gif [L] <Files ~ "\.(php|sql|php3|php4|phtml|pl|py|jsp|asp|htm|shtml|sh|cgi)$">   order allow,deny   deny from all </Files>   And the third and final .htaccess file is found in a subdirectory of the upload folder named "small":  RewriteEngine Off   Now I have created a folder in /etc/nginx called includes and made 3 seperate .access files with these rewrite rules:  For the first .htaccess file located in the document root directory I have created an file in /etc/nginx/includes called root.access. In this file I have:  # nginx configuration   location /img {  rewrite ^/img-(.*)\.html /img.php?id=$1 break;  }  location /slide {      rewrite ^/slide-(.*)\.html /slider.php?id=$1 break;  }  location /page {      rewrite ^/page-(.*)\.html /page.php?name=$1 break;  }  location /contact {      rewrite ^/contact\.html$ /contact.php break;  }   For the second file located in the "upload" folder I have crated a file in /etc/nginx/includes called upload.access. This file contains the following:  # nginx configuration   location /upload {  if ($http_referer !~ "^http://(.+\.)?foo\.com/"){  rewrite .*\.(jpe?g|gif|bmp|png)$ /nohotlink.gif break;  }  }  location ~ \.(php|sql|php3|php4|phtml|pl|py|jsp|asp|htm|shtml|sh|cgi)$ {  deny all;  }   And for the third and final file I have created a file in /etc/nginx/includes names small.access. The contents of this file are as follows:  # nginx configuration   location /upload/small {  }   In the server block configuration file I have:   location / {               try_files $uri $uri/ /index.php;               include /etc/nginx/includes/root.access;      }   location /upload {               include /etc/nginx/includes/upload.access;      }   location /upload/small {               include /etc/nginx/includes/small.access;      }   Now with this configuration when trying the site I receive 403 errors. Nginx error log reports:  [error] 18156#0: *7 access forbidden by rule, client: 111.**.**.**, server: foo.com, request: "POST /upload.php HTTP/1.1", host: "foo.com", referrer: "http://foo.com/"   Now under apache everything works no problems. But I can not see why I am getting 403 errors. I am also worried that the rewrite rules as I have stated them, beyond the 403 error will not function properly at all. Can anyone help me with this? I can not see what is wrong here.


Prove $ \frac{1}{x^{2n}}+x^{2n}$ is an integer for all $n$.

Question:  Suppose $ \frac{1}{x^2}+x^2$ is an integer. Prove that $ \frac{1}{x^{2n}}+x^{2n}$ is an integer for all natural $n$.  Hint: Use Strong Induction   My attempt:  Base Case is trivial.  I.H: Assume the result is true for $n = 1,2, ...., k.$  Consider $n = k+1$.  $ \frac{1}{x^{2\left(k+1\right)}}+x^{2\left(k+1\right)}\ =\ \frac{1}{x^{\left(2k+2\right)}}+x^{2k+2}$.  I am not sure what to do from here and how to use the induction hypothesis.


Why aren't comment up-votes converted to "stars" when the comment gets transferred over to chat?

Recently, a person commented on my answer to a ...  aroth: "...at least, according to Wikipedia" - Famous last words.  ...and received at least 2 upvotes (possibly even 3). However, that comment then get moved over to , and aroth's current comment has 0 stars. That doesn't make much sense.  When it was just a normal comment, aroth had received upvotes and stars in Chat seems very similar to upvotes for comments. There's probably a really good reason for this process, so I'm wondering why this process exists.


When I Render my image, the result is a Black Screen

I am trying to make a simple ink drop animation. The image looks great in Preview, but when I Render a second later the screen is just black. I can't figure out why this is happening.    Here's the project file!     Would love some help!


Are there any side effects when two distros share a swap partition?

In order to save disk space, I want to have two OS installations share a single swap partition (a dual-boot). Is this a good idea?


I have written a query to find the duplicate rows in a table. It outputs duplicate pairs (e.g.    row: 1,2  after that you enounter row: 2,1)  SELECT m1.ID, m2.ID FROM AccessLog_Manual m1     INNER JOIN AccessLog_Manual m2 ON          m1.ACCESS = m2.ACCESS AND          m1.EMPLOYEEID = m2.EMPLOYEEID AND         m1.LOGDATETIME = m2.LOGDATETIME AND         m1.MORPHOACCESSID = m2.MORPHOACCESSID AND         m1.ID <> m2.ID ORDER BY m1.ID   Now I want to use this query in a delete statement, such that removing only one row of pairs. (i.e. for example row 1,2 and row 2,1, only delete 1 and let 2 non-deleted)


Large Modular Arithematic Exponentiation


A bundle map $E\to \bigwedge^2 T^*M \otimes E$ corresponds to a global section of the bundle $\bigwedge^2 T^*M\otimes \text{Hom}(E,E)$

Let $M$ be a manifold and $E\to M$ a vector bundle. Why does a bundle map $E\to \bigwedge^2 T^*M \otimes E$ corresponds to a global section of the bundle $\bigwedge^2 T^*M\otimes \text{Hom}(E,E)$? (This is asserted in p.75 of Griffiths and Harris' Principles of Algebraic Geometry.) I know that a bundle map $E\to F$ over $M$ corresponds to a map $\Gamma(E)\to \Gamma(F)$ that is linear over $C^\infty(M)$. (I'm not sure that this fact is needed.)


How one can procedurally get in direct contact with a supervisor to ask for an investigation and perceived danger is suspected?

I cannot find anywhere I wish to get assistance with getting an investigation into the repeated follow to down vote me unfairly and then insult me as well as make fun of my disability making this unacceptable, violations abuse and I need a complaint immediately filed.  Can you help?


Windows 10 puts my first and last name to lock screen. How to avoid this?

After upgrading to Windows 10, I see my LastName and FirstName on the lock screen. Is there a way to change this? On Windows 8.1 there was just my nickname and email address (maybe there were my first name and last name, but not displayed so large as they are now).  I mean the name and surname parameters specified in my Microsoft account.  Another question: I prefer the format FirstName LastName, not vice versa.  Is there any way to change this as well?   Apart from Lock Screen I see it on the Start Menu.


How to login into PewDiePie's Tuber Simulator?

I did one of the following and can't play PewDiePie's Tuber simulator with the progress linked to my account:   I logged out and can't login I logged out and tried to login in another device I tried to login on a second device without logging out My device broke and I can't login from another one I restarted my device / reinstalled the game and my progress didn't save   And possibly even:   I don't know how to login I forgot my login name and password   How can I fix each of these problems, and can I prevent them somehow?


My advisor has literally no idea what my research is about and I am freaking out (phd student)

I am a PhD student. This is my first month in the program. I met my advisor a while ago. Very nice guy, but as the title says, he does not know what I am writing about. I don't mean it figuratively. He literally does not know what I am writing about. I was taken aback when I realized he is not specialized in my area of research. But not knowing what my research is about is just plainly freaking me out! (He thought that I was writing about a different subject, and he doesn't have any other PhD students besides myself) There is only one professor who is specialized in my area of research in the school, and she is not taking students. I thought about it, and decided that transferring to another school is on the table. The thing is that the closest school is ranked higher than mine. (Mine in the top 50, the other school in the top 15), and I am not sure if they are going to accept me. Should I go to the other school and talk to the admission office? To the dean perhaps? For my major, it is not common for students to contact prospective supervisors. (I don't know anyone in there who I am interested in working with because I did not see this coming). What should I do? *This a comment that I posted below, but just because it came up many times, I'll put it here: "Just to clarify, and this is something I clarified above, it is not a common practice in my field that we -students- contact supervisors before getting into the program. We apply and then the school itself assigns students to supervisors. Actually, some departments ask explicitly that you DON'T contact any faculty member. I did not choose my supervisor. I was not given his name until I get into the program and started" Someone has pointed out another question about a similar case, the lonk has been useful. But, my situation is different as I have no other alternatives. (Advisors)


USB Flash Drive became read-only during use

I was using  when my USB flash drive suddenly wasn’t being recognised and IntelliJ became unresponsive. I tried safely removing it but it wasn’t showing up there, so I force closed IntelliJ, plugged it out and plugged it back in and now the entire drive is read-only. Doesn’t appear to be corrupted. I can still access all my files. I just can't run any programs or write to any files without moving them off the drive.  I’ve tried changing the following value to 0 in regedit.exe. But I still get the error “The disk is write protected”.  Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect   I’ve tried using diskpart to remove its Read-Only attribute, to which it responds “Disk attributes cleared successfully”, despite not recognising that it was read-only in the first place. But then when I try to clean the flash drive using it, it says:     DiskPart has encounted an error: The request could not be performed   because of an I/O device error.   I’ve tried deleting its contents using diskmgmt.msc but when I right click it, its “Delete Volume” option is greyed out.  Is there anything I can do?  It’s a GOODRAM USB 3.0 64GB flash drive and I’m on Windows 8. Any other specs can be provided if needed.


Converting HTML string into DOM elements?

Is there a way to convert HTML like:

   or any other HTML string into DOM element? (So that I could use appendChild()). I know that I can do .innerHTML and .innerText, but that is not what I want -- I literally want to be capable of converting a dynamic HTML string into a DOM element so that I could pass it in a .appendChild().  Update: There seems to be confusion. I have the HTML contents in a string, as a value of a variable in JavaScript. There is no HTML content in the document.


I tried doing  just for fun. It is reproduced as follows:          (I'm not allowed to post the entire problem here since I'm a new user.)  Here are my equations:  $$T - mg = ma$$ (equation 1)  $$Mg - T = Ma$$  (equation 2)  (Upper case "M"  used for infinite series of masses on the right arm of the first pulley. Lower case "m" for the small, single mass on the left arm.)  algebra is as follows:  $$Mg - (ma + mg) = Ma$$ $$g (M - m) = a (M + m)$$ $$a = g (M - m) / (M + m)$$   Here is my reasoning to get final answer:   The limit of $a$ for large $M$ goes to $g$. Therefore, acceleration of the top mass is $g$. However, the correct answer is $g/2$. Why does my reasoning get the wrong answer? Any ideas?    (Please excuse the formatting, I'm a newbie here).


Below is my circuit which drive LEDs using 555 timer. ( Total 20 LEDs are connected in parallel to D20, I have shown only one here)    I am getting ringing / overshoot for the current flowing through LED as below.   Is there anything that I am missing here. I would also like to know why is it coming there.   When I added 1uF capcitor after R3 (470ohm), it disappears.  Thank you.


Is there a Python 3 command that when run could send me back to the top of a while loop and rerun it?

I was wondering if there was a command in Python 3 that could be nested within a while loop and when run would return to the top of the loop (including checking the condition to decide to reenter the loop or not)? I have a while loop that contains multiple if/elif statements, I'm looking for a way that if a condition is met (lets say an if statement), the command would follow and bring me back to the top of the while loop instead of moving on to test the next condition (elif statement).  I've tried utilizing break statements but my problem is I want to stay in the while loop and reiterate through it (as opposed to breaking out of it entirely). I've also tried continue statements (but I may be using them wrong).  Here is an example of what I'm trying to accomplish  a = 0 while(a <= 5):     a += 1     if a == (1 or 2 or 3):         print('1')         # some command here that sends me back to the top of the while          # loop (line 2: to check if a<= 5)     elif a <= 5:         print('2')  ######  #The result I'm looking for would print: 1 1 1 2 2  #The result I get is: 1 2 2 2 2   The result I actually get shows that the program stays within the while loop and moves on to the next elif condition. I'm hoping to find a way to send the program back to the top of the while loop and rerun the conditions from there.  Many Thanks!


If $$\frac{a}{(a,b)}\mid c \;\ \Rightarrow \;\ a\mid b\cdot c$$ $$\frac{a}{(a,b)}\mid c\Rightarrow c=\frac{a}{(a,b)}\cdot k\Rightarrow b\cdot c=\frac{a \cdot b}{(a,b)}\cdot k\Rightarrow b\cdot c=a(\frac{b}{(a,b)}\cdot k)\Rightarrow$$$$a\mid b\cdot c$$ This is correct?


Using replace in my twig returns a blank

I have what I think is a rather simple statement here  {{ (content.field_url.0)|replace("http://","") }}   but then I get an error     Warning: strtr() expects parameter 1 to be string, array given in   twig_replace_filter() (line 482 of   vendor\twig\twig\lib\Twig\Extension\Core.php).   twig_replace_filter(Array, 'http://', '') (Line: 57)     Changing it up a little  {{ (content.field_url.0)|replace('http://',"") }}   and then I get this error     Warning: Invalid argument supplied for foreach() in   Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 148   of core\lib\Drupal\Core\Asset\LibraryDiscoveryParser.php).     One more change up  {{ (content.field_url.0)|replace({'http://':""}) }}   and this returns nothing, nada, no value at all.


Option to hide rep/badges on the avatar block displayed of you

Allow the user to hide its own reputation value and/or badges similarly as visible on wiki pages. If the visitor wants to know your reputation, he/she has to view it on your user page.  Scenarios why to do it:   You have so much rep/badge, that your name gets recognized wherever you post You want to be just helpful and you show this by not advertising how 'good repped' you are, but rather focus on a good answer Implicit 'reputation' by name within the community - same as in the real world   Scenarios why not to do it:   Could impose transparency problems regarding to the site's basic concepts Hard to implement on a per user basis Concerns about showing/hiding it in the question part or in answers.   Discussion welcome.  Follow-up to  of mine.


Explanation for Binomial Coefficient Formula

I am confused regarding the derivation of  the fact that, $${n \choose k} =\frac{n!}{k!(n-k)!}$$  I understand that the number of sequences of $n$ objects arranged $k$ ways is   $$\frac{n!}{(n-k)!}$$  and I also understand why there could be $n!$ different permutations of the same $n$ letters, but my question is:   In the formula, why does one divide by $k$! to get rid of such combinations? How does that remove them?


Fixing the matching between combining accents and capital cyrillic letters

This question, which is a prosecution of the debate in  answered by @egreg, wishes to focus on the mechanism of combination of a combining accent (e.g. combining acute accets 0301) with an uppercase.  When you have to add an acute accent to a cyrillic uppercase Lua/Xe-LaTex joints the given capital letter to the combining acute accent unicode character (U+0301), because in the Unicode chart there is no given glyph for any cyrillic acute accented capital vowel.  This combination comes however with an error for a variety of font sets, as the following code demonstrates:  \documentclass[12pt,a5paper,openright,twoside]{memoir}  \usepackage{fontspec} \usepackage{xunicode}  \def\CyrillicAccents{А а А́ а́ \\ Е е Е́ е́ \\ И и И́ и́ \\ О о О́ о́ \\ У у У́ у́ \\ Ы ы Ы́ ы́ \\ Э э Э́ э́ \\ Ю ю   Ю́ ю́ \\ Я я Я́ я́}  \begin{document}  \fontspec{Linux Libertine}  \noindent\CyrillicAccents  \end{document}   The acute accent does not match the height of the capital letters.    This might be caused by an error in the font set, but if the same set of accented vowels is edited in MS Word or Pages (or Open Office, I guess) the result is without bugs:    It seems that XeLaTeX does not find the correct informations to correctly place the accents, while other editors do.  Which is the method of joining a letter to a combining character? How to control the parameters of this process?


I have been looking for a solution to this, have seen some sort of add on called dynamic text but I don't think that suits my needs.  Basically, I have a multi dimensional array. Basically what I want to do is pass a value from the array into the 'to' field in Contact Form 7. I know I could just write my own contact form but I'm using the plugin quite extensively on the site so for integration it would be nice to use it for this new thing I'm building too. Any clues, doesn't seem you can put php straight in to the to field, as this didn't work to well!:  <?php echo $passmein;?>


Using both JSON+LD and Microdata to markup the exact same information on a page

This Quora Answer:   The above answer from 2015 mentions there being a potential problem when marking up the same entity with JSON+LD and Microdata.   I am making a site that is hopefully SEO good for both Google and other search engines. Will I face a problem, in 2018, if I use both JSON+LD and Microdata to markup the exact same information on a page?   I understand that JSON+LD is the most recent recommended structured data to be used by Google. However, according to the official "do not"'s or "Make sure"'s, we are try to make sure that the structured data actually indicates something that is visible on the page. Also, I have read somewhere that JSON+LD is mainly for the knowledge graph -though that might be an outdated fact.   I would think that using both JSON+LD and Microdata for the exact same information would be a way to show that the structured data is marking up something "visible"/seen and what not as well as just make sure Google processes everything even if they do not act upon it in the way I may want, or at least right away. I.e, knowledge panels or other features.  Does it matter in 2018 if I use both JSON+LD and Microdata for the same information on a page? Or do I need to use one or the other for the same information just to be safe because Google has not revealed anything?  My website is largely static with the possibility of me implementing a blog with something like wordpress or django in the future as a separate part of my domain..


I'd like to form a 500 meter buffer around a coordinate. That coordinate is in WGS 84.  I've been playing with this for a little and seem to have a solution, but is seems way too complicated:  SELECT ST_AsText(ST_Transform(ST_Buffer((ST_Transform(ST_GeomFromText('POINT(-71.104 42.315)', 4326), 3857)), 500), 4326))   In this solution I first transform the point to a metric coordinates system (EPSG:3857) so the buffer distance is metric. Then I generate the buffer and then I transform the buffer back into WGS, as I need the result in WGS.  Isn't there a simpler solution?


Trying to figure out if my processor supported RAM I just brought

I just brought G. Skill RipJaws and this is my first time buying RAM to update my computer.   When it arrived today it said on the package it was compatible with Intel Core i7, Core i5, Core i3 and AMD AM3+ / APU platforms.   My processor is AMD FX(tm) - 6120 Six-Core Processor, so I wanted to check in with people here to see if the RAM I had was compatible.  The way I was reading it I thought it mean AMD AM3+ (meaning the + was above that version as well)  If my RAM for my processor isn't supported what is the worst thing that would happen?  Also it sounds like my computer is making more of a humming noise since I changed the RAM as well....


Django - How many simultaneous requests are possible

I have a Django app running on Heroku. At the moment I only have 1 dyno. One of the urls generates a pdf from database values and this takes about 4 seconds. Since I only have 1 dyno, does it mean that while the pdf is busy generating, my dyno can't respond to any other requests from any other users?  In other words, how many open requests can Django/Heroku handle at a given time?


What is this Phone/Eye Icon in my notification bar on LG Volt?

This icon appears seemingly at random, especially on my lock screen but not always. I can almost guarantee it pops up if I make a screenshot but I am not sure. I am on an LG Volt phone from Boost Mobile, and I was able to (finally) screenshot this icon after wondering about it for over a month.  A screenshot of the image is here:   Any guesses or preferably solid answers to what this could be are very much appreciated! It only appears for a brief moment (sometimes not even a second) before it disappears again.  I want to reiterate I see it most on my lock screen, but there could be other times it happens that I am not noticing.  Thank you in advance for your assistance in identifying what this is!


Help center still has the guidance about old Favorite tags

It has been a while Favorite tags were added Big Brother eye  changed to Watched tags and some user interface improvements were added. () Our faq is  to reflect that change. But the related help center still has guidance about old Favorite tags and ignored tags, and uses outdated instructions, terminology, and imagery. Look at .    Can this be updated to reflect the new change?


Why can't I get Android Studio from umake anymore?

I have used ubuntu-make aka umake to install Android Studio and setup the full Android SDK. But since I have upgraded to Ubuntu 16.04 LTS (Kubuntu to be precise) I am not able to install Android stack this way. Here is my console output:  $ umake android ERROR: A default framework for category Android was requested where there is none usage: umake android [-h] {android-ndk} ...   Apparently, there is no android-studio or android-sdk option available. Does anyone know why? Also, same goes for eclipse under ide section.


SQL Server - performance for filtering using LEFT JOIN ON condition versus WHERE condition

I have a query that was performing slowly that looked something like this:  DECLARE @TeamId INT = 123 ... SELECT ... FROM Player p LEFT JOIN PlayerTeam pt ON p.PlayerId = pt.PlayerId ... WHERE pt.TeamId = @TeamId ...   The PlayerTeam table has a large numer of records (ie. 30 million)  When I modified the query to have the condition on the left join instead of the where clause, then the query peformed much better.  DECLARE @TeamId INT = 123 ... SELECT ... FROM Player p LEFT JOIN PlayerTeam pt ON p.PlayerId = pt.PlayerId AND pt.TeamId = @TeamId ...   Is this a correct optimization and is the peformance improvement expected? I read that this shouldn't matter when using an inner join, but for a left join it seems to make a difference.


Can i turn off my fridge(refrigerator) at night?

Question I use refrigerator just for keeping 2-3 water bottles, 1colddrink bottle, and maximum 0.5 kg of fruits and nothing else (no food items)! So is it better to off my refrigerator at night and start it in morning? (As i will lost no food) and I think, I will save some amount of electricity and may be my refrigerator will last longer with me? Note: I had purchased new refrigerator and I am from India and tempreture range of my hometown is (24°c - 44°c) in complete year.


BCa confidence interval and p-value disagreement. What coefficient to be reported?

I am using propensity score matching with kernel matching to test for the average treatment effect on the treated.     The distribution of the bootstrapped differences is as follows:    I transformed them with the mean (as described in this ) and the SD to obtain z-scores. Afterwards, I counted how many observations (in abs. values) exceeded the 95% threshold of 1.65.  However, with this approach I get a p-value of 0.09.   How does this work with a (as in my case) skewed distribution?   If I simply count the observations exceeding the 2.5% and 97.5% seperately, then I obtain a summed p-value of 0.04 which is in line with the BCa confidence interval. Would this be a valid alternative?


Why is my object exporting into keyshot like this?

The top image is how it imported in keyshot.  The second image is my model in blender.  I can add the blender file if that helps!


How to fetch WP_User_Query with multiple role arguments

I have two user role   1) vendor 2)freevendor   Here i am trying to fetch user by there user role vendor and freevendor with the bellow code but query is fetching only freevendor.  $vendor_total_args = array (     'role' => 'vendor',     'role' => 'freevendor',    'orderby'            => $orderby,   'order'               => $order,     'meta_query' => array(         'relation' => 'AND',         array(             'key'     => 'pv_merchant__experiance_dropdwon',             'value'   => $_POST[ 'pv_merchant__experiance_dropdwon1' ],             'compare' => 'LIKE'         ),         array(             'key'     => 'pv_merchant_specialization',             'value'   => $_POST[ 'pv_merchant__experiance_dropdwon2' ],             'compare' => 'LIKE'         )     ) );   So how can i fetch multiple user role  vendor and freevendor using above snippet code.


I am a history teacher and I like to make my own maps (I can never find exactly what I want).  I am using QGIS 1.8 and .  I want to reproject their cross-blended hypso rasters into projections that are more familiar looking to my students, like Lambert Conic Conformal.  I have tried changing the crs for the whole project, and the warp and assign functions from the raster menu, and changing the crs for the raster layer itself.  None of these seem to work properly - the resulting maps are unrecognizable and extremely large (file size).  I feel like I am making some kind of basic mistake but I don't know where to begin with this.  Any help would be appreciated.


I have a dictionary contains keys and values:  dic1 = {'first': 13, 'second': 7, 'third': 5}   I want to compare the values and select key with the largest number: The output should be:        'first'   here is my code:  import operator dic1 = {'first': 13, 'second': 7, 'third': 5} total = [k:max(dic1.values()) for k,v in dic1.items()]   but I got SyntaxError.. any help?


Each of my projects is a directory in which I have the following folders:  Data/.. (contains .shp files, tables, and rasters in various formats)  Maps/.. (contains .mxd files that depend on the files in Data/)  I reuse some feature classes extensively between projects. Most of them I would probably never update, so I keep copies of them in each projects Data/ folder. My supervisors/colleagues depend on this data organization as well, so that they don't have to dig around to find the supporting shapefiles for a given project.  This system has worked decently for our purposes, but it has problems. Some files are large, yet need to be available in multiple Data/ folders. This is an inefficient use of space. In addition, on occasion changes have to be made to commonly used files that we wish to persist for all versions. This results in many headaches and a lot of extra work for me.  What if instead of maintaining separate versions of each of these large datasets between each project we had a "file shortcut" like what people frequently put on their Desktops, but as a sort of proxy or pointer to the actual shapefile that would be stored in a common File Geodatabase.  Does such a "shortcut" method exist for managing various geospatial data formats, especially shapefiles?


How can the black body radiation formula be so general?

In the derivation of the , there is nothing whatsoever that relates to a particular/specific material. But we nonetheless use this formula for several distinct sources in nature, such as the Sun and the CMB. How can it be applicable to so many different things? As far as I understand, the emitted photons come from the rotational and vibrational levels. But shouldn't these levels depend on the particular material/elements that the object is made of?   Summarising:   Is the black body radiation formula applicable to an macroscopic object composed of different elements only?  How can it describe so different things (eg Sun spectrum, CMB) if there is nothing in the formula that relates to a specific material/element? If the photons come from vibrational/rotational levels transitions, shouldn't these depend on the object in question? Also, what's the actual reason why there are no contributions from translational motion? And what about excited electrons?


Why should users never use normal sudo to start graphical applications?

I've read  and am interested in this line:     You should never use normal sudo to start graphical applications as Root.   Why? What is the difference? Please provide a simple explanation, as I'm just a normal desktop user.


How should references in non-Latin script language be treated in English paper?

Let's say I want to cite a Russian text in my own paper which is written in English. Should I:   reference it as is, in the original Cyrillic alphabet, although the readers won't be able even to pronounce it? transliterate the authors' names, while keeping the rest as is? transliterate the names and translate the title of the work, journal name, etc. into English?


Determine the derived series of $\mathfrak{b}_n (\mathbb{C})$.

Problem: Determine the derived series of $\mathfrak{b}_n (\mathbb{C})$, in which $\mathfrak{b}_n (\mathbb{C})$ is the space of all upper triangular matrices.   We knew that the derived series of a Lie algebra $L$ is $L^{(0)}=L, L^{(1)}=[LL],L^{(2)}=[L^{(1)}L^{(1)}], \dots, L^{(i)}=[L^{(i-1)}L^{(i-1)}]$.  How do I finding the derived series of $\mathfrak{b}_n (\mathbb{C})$?  First edited: $L = \mathfrak{b}_n (\mathbb{C})$, so for $n=2$, the basis of $\mathfrak{b}_2 (\mathbb{C})$ is $e_1=\begin{pmatrix}1 & 0\\ 0 & 0 \end{pmatrix}, e_2 =\begin{pmatrix}0 & 1\\ 0 & 0 \end{pmatrix}, e_3=\begin{pmatrix}0 & 0\\ 0 & 1 \end{pmatrix}$   $[e_1 e_2] = e_1, [e_1 e_3]=0, [e_2 e_3]=e_3$  $L^{(1)}=[LL] = \langle e_1,e_3 \rangle$  $L^{(2)}=[L^{(1)} L^{(1)}] = 0$  How to continue the computation?


Which is more accepted or more common, “for some reason” or “for some reasons”?

I often hear native speakers say for some reason, but I think reason is usually a countable noun and "some reasons" can have the meaning of "an unspecified number of reasons". I think for some reasons ought to be a correct form of it.  What's your comment?  Is "for some reasons" used in everyday English? If it is, what's the difference between it and "for some reason"?  ( doesn't help, because it lists both singular and plural words used with "some".)


What are the benefits of using wp_enqueue_script?

Is there any real benefit to using wp_enqueue_script on small self-managed sites? For instance, Modernizr, why enqueue it through a function rather than call it directly inside the document head?  I can see the benefit on large sites, where you may move around directories or have multiple people mucking around in the files, or in a publicly available theme with numerous unknowns, but what's the benefit on a small site like a personal blog that never - or rarely - changes and has a single user? It just seems like extra lines of code in that case.


Control + click acts as right-click in Ubuntu in VMWare on Mac

I am using 18.04 and currently when I control + Left-click it is actually just producing a single right-click.  This is a fresh install and I would ideally like it to use the default control + left-click behaviour.  It is a MacBook Pro 2018 running Ubuntu inside a VM, VMWare Fusion.


How long does it take to conduct UX Research?

If I'm preparing a project, what amount of time is reasonable to reserve for research? in terms of hours/days?   Yes, it varies, but what are some examples/situations that you can think of where user experience took a short time? or a particular case where research/tests took a long time?


After upgrading from Ubuntu 18.04 to Ubuntu 20.04 I get a black screen and nothing happens.


I added 500MB vdisk and it's showing 524MB at fdisk -l, Why?

I added via vSphere 5.5  a new Hard Disk of 500MB to a virtual machine and the server sees it as 524MB.     Any idea why?    fdisk -l >Disk /dev/sdg: 524 MB, 524288000 bytes >64 heads, 32 sectors/track, 500 cylinders >Units = cylinders of 2048 * 512 = 1048576 bytes >Sector size (logical/physical): 512 bytes / 512 bytes >I/O size (minimum/optimal): 512 bytes / 512 bytes >Disk identifier: 0x00000000


Who hired the Churchmice to steal the Shroud of Turin?

In Skin Game (chapter 9) Harry tells Ascher that Nicodemus once hired the Churchmice to steal the Shroud of Turin (back in Death Masks).  Anna Valmont later appears to confirm this.  By my recollection, though, in Death Masks it was clear that it was      Marcone.   Is this a continuity error, or perhaps a retcon, or did I miss something in Death Masks?  Nicodemus did catch up with the thieves suspiciously quickly (Gaston was killed the morning after the theft) which suggests he knew about it in advance, but I don't recall that we ever knew how.


After program abnormal exit, command is not echoed and new line doesn't work in bash output

Like the title, I have seen case where after a program is abnormally finished (because of bug I made usually), the shell doesn't echo my command anymore including the new-line (but I can see it accepts and runs it) so whatevery I type-in, it just prints everything in a single line without new-line. For example if I keep pressing enter key, the prompt string is printed to the right like this. ckim@chan-ubuntu:~/ProjectS/QEMU/qemu-5.1.0/test$ ckim@chan-ubuntu:~/ProjectS/QEMU/qemu-5.1.0/test$ ckim@chan-ubuntu:~/ProjectS/QEMU/qemu-5.1.0/test$ ckim@chan-ubuntu:~/ProjectS/QEMU/qemu-5.1.0/test$ ckim@chan-ubuntu:~/ProjectS/QEMU/qemu-5.1.0/test$ ckim@chan-ubuntu:~/ProjectS/QEMU/qemu-5.1.0/test$   Very annoying.. I have no choice but to exit the shell and open a new tab(which opens a new shell). In this abnormal situation, is there any method I can revive the shell behavior without openning a new shell?


Example of safety violation when cast char *argv[] to (const char * const *)

There's a well-known warning in gcc  warning: passing argument ... from incompatible pointer type [-Wincompatible-pointer-types]   and most often it occurs when trying to do something with parameter argv of function main.  I've read this answer:  . Ok, the C standard says so and the following code will compile with a warning:  int main(int argc, char *argv[]) {         const char * const * b = argv;         return b == 0; }   Not sure about C++, because g++ compiles same code without warnings.  Is there any reason behind this part of the standard? Can I do something bad after the cast, for example make argv point to non-writable memory?  This may be a duplicate of  , but Aaron's anwer is incorrect: read the comments.  Is Kevin's answer incorrect?  I'm thinking to add a convenience inline function like: const char * const *foo(char * const *a). Unlike C-style casts it would be type safe.


Illustrator CC: stroke issue with circular path

My goal is to create a circle with a .001 stroke in RGB red for laser cutting. For some reason I cannot create ANY .001 paths without a strange variable stroke and I cannot figure out why. With this path, my laser won't read it as vector and I can't cut the shape I want.  Why is my stroke all over the place?


Why didn't I get any bounty after the question was accepted?

I have answered a question, and after the bounty expired, I didn't get any bounty.  And the bounty was started by the question owner, the question owner accepted an answer during the bounty period, but the bounty award period expired without an explicit award.  So why?


i upgraded from 18.04 MATE to Ubuntu 20.04 MATE. After upgrading the graphics are unstable. I tried a live version of 20.04 from a USB stick and got the same result.  Ended up reinstalling 18.04 and the graphics are fine. I don't know if it's a GPU driver issue or something else.  Computer: Dell Precision 380 tower (desktop) GPU: Nvidia NV42GL Quadro FX 3450/4000 Graphics driver: Nouveau


How can I make a reference to a Glossary that typesets as \glossarytoctitle?

I'm using the glossaries package. I created a custom glossary called foo with the title, "My Foo Glossary Title":  \newglossary[fgg]{foo}{fgs}{fgo}{My Foo Glossary}   Ideally, I'd like to make a reference to this glossary in my text using \nameref or \autoref, such that it looks like "...please see My Foo Glossary." via something resembling the following code:  ...please see \nameref{foo}.   This doesn't work....  I understand that I needed to add a label to the glossary in order to reference it (isn't it already labelled somehow -- it has to have a label if it is on the Table of Contents page, right?). I redefined the \glossarypreamble macro as follows:  \renewcommand*{\glossarypreamble}{% \label{\currentglossary}% }   Then I was able to link to it as follows:  ...please see \autoref{foo}.   Trouble is, this produces the text "Appendix A.3" rather than "My Foo Glossary". How can I get the link to display the text equivalent to \glossarytoctitle?  Thanks in advance!


I have noticed that many French diplomas contain the mention "Pour en jouir avec les droits et prérogatives qui y sont attachés", which can be translated into "[The diploma is conferred upon Mr. X and gives the Y level] to be enjoyed with all rights and privileges pertaining thereto."   What does "to be enjoyed with all rights and privileges pertaining thereto" mean on a French diploma? I.e., what are those rights and privileges? For example, if someone obtained the , what rights and privileges does that give?  I'm not sure whether it refers to some legal consequences, academic consequences, or something else, so that's why I don't post on Law.SE.  Examples:


Default Cell Format Changing Automatically on Datagrid

I have a datagrid that I am trying to format with a specific font.  It is currently set to Arial 8 on the ColumnHeadersDefaultCellStyle, DefaultCellStyle, RowHeadersDefaultCellStyle, RowsDefaultCellStyle.  I am trying to change the font to Verdana 8. But everytime I try to make this change and rebuild my application it reverts back to Arial 8.   Can anyone offer any suggestions?  Thanks


So, I've seen from different sources that $\frac{d}{dx}$ and $\frac{\partial}{\partial x}$ function as basically the same thing. But then, I saw that if $$\frac{d}{dx}(z(x, y(x)) = 0$$ then $$ z(x, y(x)) = c$$ where c is a constant, because "if the ordinary (not partial…) derivative of something is zero, that something must have been a constant to start with." Related to this I think is the notion that in implicit differentiation, taking the $\frac{d}{dx}$ of a given $g(y)$ gets $\frac{d}{dy}\frac{dy}{dx}$, while in other cases I've heard that taking $\frac{d}{dx}$ of $g(y)$ simply equals zero since y can be treated as a constant. What are the distinctions here?


I need to convert a string with date to valid c# date time object.  input string example = "2015-03-24T12:31:33.8700000" output c# datetime   I tried doing this   DateTime.ParseExact(x.claimDetails.clmDOA, "yyyy-MM-dd HHmmss", CultureInfo.InvariantCulture)   Buit it gave exception   String was not recognized as a valid DateTime  Please Note: I googled thoroghly .    Somehow i couldnt find any string    with "T" included as in datetime string.   Prior to downvoting if one can suggest me exactly where a question is answered with datetime string containg a T in it or of this format.yyyy-MM-dd'T'hh:mm:ss.fffffff


Finding and merging duplicate points in ArcGIS Desktop?

I have two point shapefiles: Red and Blue.  Each point shapefile has a z value which represents a radius (i.e. represented as buffers in the example).  A duplicate point is defined as a point that lies within Z distance of another point, which can range from 2 - 10 m.  In this example there are ten pairs of duplicate points--seven pairs overlap perfectly, while three pairs overlap by falling within another point's Z value.  I would like to keep only one of each duplicate within Z and merge the two shapefiles together in ArcGIS Desktop.    How can I find and merge duplicate points?


Performing initial setup without an internet connection

Is it possible to perform initial setup of my Xbox One without an internet connection?


What is the meaning of "it" in the sentence, "What makes it rain"?

What is the meaning of "it" in "What makes it rain" ? What is the exact difference in meaning between "What makes it rain" and "What makes rain"? Does "What makes it rain" mean "What makes rain" ? If so, why is "it" used ?


How to start a bounty on the stackexchange Android app

I can't see any button for starting a bounty on the mobile application of Stack Exchange. Could someone please help me on where to find this feature ?  If it's impossible, could this feature be implemented?


I am using Ubuntu 17.04 and I cannot connect to archive.canonical.com. Is it normal?   $ sudo apt-get update Hit:1 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty InRelease Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease                                                             Ign:3 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease                                                     Hit:4 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release                                                       Hit:5 http://pt.archive.ubuntu.com/ubuntu zesty InRelease                                                                     Hit:6 https://apt.dockerproject.org/repo ubuntu-xenial InRelease                                                              Hit:7 http://pt.archive.ubuntu.com/ubuntu zesty-updates InRelease                                                             Hit:9 https://deb.nodesource.com/node_8.x zesty InRelease                                                                     Hit:10 https://download.sublimetext.com apt/stable/ InRelease                                                                 0% [Connecting to archive.canonical.com (2001:67c:1360:8c01::16)] [Connecting to security.ubuntu.com (2001:67c:1562::16)] [Connecting to dl.google.com (2a00:1450:400e:802::200e)]


My root filesystem is running out of inodes.  If this were an issue of disk space, I'd use du -s to get a top-level overview of where the space is going, then head down the directory tree to find particular offenders.  Is there an equivalent option for inodes?   will point out individual directories with high usage, but in my case, that's no good: the Linux source directory, for example, gets scattered across 3000+ directories with low inode counts, rather than showing up as /usr/src/linux-4.0.5 52183.


What causes refraction of visible light?

is the bending of a wave when it enters a medium where its speed is different. The refraction of light when it passes from a fast medium to a slow medium bends the light ray toward the normal to the boundary between the two media. My question is what is the fundamental reason for this refraction?is it something related to the atomic force?