I'm using Ubuntu 14.04 LTS on a virtual machine and I'm trying to set it up so that when it starts up it also automatically follow the description on the startmeup.sh.desktop to start the script taskhome.sh.      The startmeup.sh.desktop script has the following code:  [Desktop Entry] Type=Application Exec=/home/kvm/scripts/taskhome.sh Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en]=Startmeup Name=Startmeup Comment[en]= Comment=   I put the file startmeup.sh.desktop on the folder config\autostart and I made it executable with the chmod +x command, but when I reboot Ubuntu the script taskhome.sh is not executed (I guess it's just because the startmeup.sh.desktop is simply not executed either).   If I launch the taskhome.sh script manually I don't have any problem.     If I open the folder that contains the script startmeup.sh.desktop, and I double click on it, the taskhome.sh script starts without any problem.   However if I try to execute the startmeup.sh.desktop script on a terminal with the command ./startmeup.sh.desktop then I get the error "  line 1: [Desktop: command not found.   Is there something I can do to make the script work on Ubuntu start up?

I'm using 10.10 and I need to run a script in order to get a windows-like international keyboard layout - basically, it changes how dead keys work.  (Original script from this page  )  Since I can't seem to manage to get it going from boot, I have to run a custom script to launch any application.    The script:  export GTK_IM_MODULE=xim  setxkbmap us intl   xmodmap -e 'keycode 48 = dead_acute dead_diaeresis dead_acute dead_diaeresis acute diaeresis'  application_name   So if I put abiword in the application_name, it runs abiword respecting the keyboard script.    Ideally, the original script would start at boot and then any applications I use would function with it - just like what happens if I run it first in Terminal (without the app_name line) and then run apps from it.  I tried to make the script run from boot by adding it to /etc/rc.local but to no avail. Tried to add it to init.d but that also didn't work.  If anyone can help, I'd be most grateful.


When do we calculate the population parameter instead of sample statistics?   If there is a this kind of case which statistical tool should we use population parameter or sample statistics?  A car company wants to know the average age of cars of their brand that are still on the road. How would you define the appropriate population? Will the car company calculate a population parameter or sample statistic? Why?

What is the difference between a population and a sample? What common variables and statistics are used for each one, and how do those relate to each other?


I have a CSV file containing the fields like       input.csv     "1","12","3"     "4","2","6"     "8","10","9"     "9","9","12"     "10","8","18"     "12","10","27"   I want to remove the "" from each column which gives the output as   output.csv     1,12,3     4,2,6     8,10,9     9,9,12     10,8,18     12,10,27   Any help is appreciated.


I been trying to restart explorer.exe so my other script that hides the icons can take effect. I tried to do this by executing a command prompt window through my C# program:  /k taskkill /f /im explorer.exe start explorer.exe   When I run this the first half of it work and the explorer.exe is killed, and my screen is black except the files that were already open, but when the second half of the script is run only the windows explorer (file manager) starts. By the way the above command works if I start cmd on a regular terminal but it doesn't through my C# program. the only way I could turn the explorer back on was using ctl+alt+del to bring up the task manager and run a new task "explorer" no quotation. If you know how to fix this please let me know. Thank you

I'm working on a windows shell extension, and unfortunately, when making changes to the DLL, I must restart windows explorer (since it keeps the DLL in memory).  I found this program from Dino Esposito, but it doesn't work for me.  void SHShellRestart(void) {     HWND hwnd;     hwnd = FindWindow("Progman", NULL );     PostMessage(hwnd, WM_QUIT, 0, 0 );     ShellExecute(NULL, NULL, "explorer.exe", NULL, NULL, SW_SHOW );     return; }   Does any one have something they can share to do this?  P.S. I realize that I can go to task manager and kill the explorer process, but I just want to do it the lazy way.  Besides, this enables automation.  P.P.S I am using .NET for the development, but the shell restart functionality could be in C, C++ or a .NET language.  It will simply be a small stand-alone executable.


If we have a clause like $$(x,y)$$ and $$(x,\neg y)$$ we can derive empty clause but why do we derive the empty clause and not the empty set? When would we derive the empty set?  My question is regarding the difference between an empty SET and CLAUSE not how to derive them. I know how to derive the clauses above. I was just using a previous question as an example.  For example why do we get the symbol on line 7 while in the other picture we get { } on line 5.

The question says, Which of the following statements apply?   And the answer says this one does but I'm not sure why.   The clauses {a,b},{a,-b},{-a} are unsatisfiable The clauses {a},{-a,b},{-b} are unsatisfiable   Also, why is it not possible to derive the empty clause from {x,y},{-x,-y}?


So  I am US citizen and I want to travel to the UK but I heard you have to wait 12 months after you have gotten off probation. My misdemeanor only came with a fine, but I wanted to get it removed from my record, so I asked for a withheld judgment which they gave me 6 months of unsupervised probation before I could apply to have it dismissed from my record. So my trip date falls 3 months short of a year from the end of that probation. I want to know that since I got the misdemeanor dismissed will that affect me? Should I wait the year or can I go earlier?

I have been travelling to the U.K for 25 years at least 8-10 times a year,  receiving 5 year visas, never breaking the stay period, with no problem. I've gone through immigration with no problem till my last time in London. I was stopped for eight hours and questioned about a run with the law while I was in college. This was in the US, I was around 20, it was for a credit card use. I received a conditional discharge / probation conviction which was discharged one year later. It was stupid, I was young and in college, more than 28 years ago.  After being questioned about the issue in the US, I was allowed in. They were very polite and professional.  I was also asked if I ever changed my name: I did not change it, but one letter was added in the middle of my first and last names around 20 years ago as our names are translated from Arabic to English and before the digital biometric passports, hand written passports some times varied. It was a common thing at the time.  Now I am applying for my new 5 year visas and I intend to answer truthfully  about previous conviction (previously I answered no because my conviction was spent and I expunged my record.) I want to answer yes and explain it. Is that the right thing to do?  Should I answer yes to the question about having a different name even though it was something as simple as spelling Bryan instead of Brian or Teresa and Theresa -- not really changing it and never thought of it as a change.  I have an impeccable credit rating in the Uk and the last 28 years have never received a moving violation or ever had a run in with the law.  I made one mistake when I was very young but I am  very worried about how to go ahead. I believe honesty is the best approach, is it?


Hello I am writing code in javascript to find out if 4 digits number is palindrome or not. First I check if the number has for digits and if it does I find every digit using / and % and then check if the first digit matches the last and the second digit matches the third digit. The thing is the result is always number not palindrom.Can someone help me out?    var numri = window.prompt("Vendosni numrin"); numri = parseInt(numri); while (numri > 9999 || numri < 1000) {   alert("Number not 4 digits");   var numri = window.prompt("Vendosni numrin");   numri = parseInt(numri); } var shifra4 = numri % 10; numri = numri / 10; var shifra3 = numri % 10; numri = numri / 10; var shifra2 = numri % 10; var shifra1 = numri / 10;  if (shifra4 == shifra1 && shifra2 == shifra3)   alert("Number palindrome"); else   alert("Number not palindrome");

How do I check if a number is a palindrome?  Any language. Any algorithm. (except the algorithm of making the number a string and then reversing the string).


I just noticed that $\int_{0}^{\pi/2} \ln|\sin x| \, dx = -\pi \ln(2)/2$ and my question is why is the area in this case a negative number?

Whenever I take a definite integral in aim to calculate the area bound between two functions, what is the meaning of a negative result? Does it simly mean that the said area is under the the x - axis, in the negative domain of the axis?


The question is very simple:  Is there another type of bracket that can grow as the equation increases in size?  I wish it could look like this:    But unfortunately I only got this:    \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}  \begin{document} \begin{equation} \int\int_D[\int_0^{16-x^2-y^2}(8+x+y)\,dz]\,dA \end{equation}  \end{document}

I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis.  Any idea how to make the parenthesis completely enclose the whole summation?  \documentclass{article} \begin{document} We have: \[ \sum_{i=1}^n i = (\sum_{i=1}^{n-1} i) + n = \frac{(n-1)(n)}{2} + n = \frac{n(n+1)}{2} \] \end{document}


Should it be:     Due to the rain the children didn't go out and play.   Or     Due to the rain, the children didn't go out and play.   This question has come up before, but I can't find an answer that includes an explanation of introductions saying why. I don't know what sort of phrase it is.  I think the latter.

I am no native speaker and always confused about the comma in introductory phrases, in particular in prepositional phrases. Is there any hard rule when a comma must be set? If I make a google search for certain phrases, I often find both variants. Typical examples where I am not sure whether a comma must be set are:        First[ly][,] I must phone mother   In this case[,] we must...   For simple problems[,] the algorithm...   From Lemma 1.2[,] we obtain...   For a typical user[,] the algorithm...   In our theory[,] we...   A dark line on the horizon[,] the mountain range we were headed for seemed somehow not as threatening as when we had started out on the trip.   Avidly reading her novel[,] Jane did not notice that her stop was approaching.   To be sure[,] it is not easy to see a solution.   When you get to Rome[,] give me a ring.


Short version: I have a CentOS 6.5 with two NICs, one connected to the internet and one connected to the internal network.  The services that shouldn't be accessible to the internet don't listen on that interface.  Do I still need iptables?  Longer version:  I have a machine running CentOS 6.5. eth0 is connected to our internal network (actually a DMZ that is protected, but it is RFC1918 space). eth1 is connected to our external network (directly accessable from the internet).  For the purpose of discussion, let's pretend eth0 is 10.1.1.1 and eth1 is 198.252.206.140.  The machine is running 2 services: ssh and http.  We only want HTTP to be accessible from the internet, so we have iptables with rules that block traffic on eth1 if it isn't port 80.  We also permit ICMP.  However we just reconfigured SSH to only listen on 10.1.1.1 and 127.0.0.1.  SSH'ing to 198.252.206.140 gets a "connection refused".  What do we lose if we turn off iptables?  I assert we lose nothing by turning off iptables.  In fact, we gain a small performance win.  Yes, there are non-technical issues, for example if someone accidentally enables a new service and it is listening on all interfaces, we're vulnerable.  However this question is specifically about how the Linux kernel processes packets once they are received.

I admin a handful of cloud-based (VPS) servers for the company I work for.   The servers are minimal ubuntu installs that run bits of LAMP stacks / inbound data collection (rsync). The data is large but not personal, financial or anything like that (ie not that interesting)  Clearly on here people are forever asking about configuring  and such like.   I use a bunch of approaches to secure the servers, for example (but not restricted to)   ssh on non standard ports; no password typing, only known ssh keys from known ips for login etc https, and restricted shells (rssh) generally only from known keys/ips servers are minimal, up to date and patched regularly use things like rkhunter, cfengine, lynis denyhosts etc for monitoring   I have extensive experience of unix sys admin. I'm confident I know what I'm doing in my setups. I configure /etc files. I have never felt a compelling need to install stuff like firewalls: iptables etc.  Put aside for a moment the issues of physical security of the VPS.  Q? I can't decide whether I am being naive or the incremental protection a fw might offer is worth the effort of learning / installing and the additional complexity (packages, config files, possible support etc) on the servers.  To date (touch wood) I've never had any problems with security but I am not complacent about it either.


For it to be transitive (1,2) would need to exist in the relation. And it does, because a and b happen to be the same number. But sets don't contain duplicates, so it either is transitive, or it cant be transitive if a and b are the same value.

The generalize rule for a transitive relation is   a -> b b -> c therefor a -> c   If an element has less than 3 elements, can it still be transitive? If so, does that provide any useful information?


I've used Google Lighthouse for the first time and my main problem are offscreen images, meaning I should lazy load. I already do that but I have and script preventing bots to lazy load, so they get the whole content.  I want to:   lazy load images get them indexed in google images rank good at lighthouse (to focus on other issues and also I guess it would affect my score)   Most articles I've seen are at least 2 years old and I don't get what should I do. Should I stop blocking bots to lazy load?

Note:My question is not about Javascript.  I'm developing a plugin for jQuery/Mootols/Prototype, that work with DOM.  This plugin will be to improve page performance (better user experience).  The plugin will be distributed to other developers so that they can use in their projects.  How does the lazyload: The images are only loaded when you scroll down the page  (will look like this:  LazyLoad).  But he does not need HTML5, I refer to this attribute: data-src="image.jpg"  Two good examples of website use LazyLoad are: youtube.com (suggested videos) and facebook.com (photo gallery).  I believe that the best alternative would be to use:  Content for ALT=""   and convert using javascript, for this:     Then you question me: Why do you want to do that anyway?  I'll tell you: Because HTML5 is not supported by any browser (especially mobile)  And the attribute data-src="image.jpg" not work at all Indexers.  I need a piece of HTML code to be fully accessible to search engines. Otherwise the plugin will not be something good for other developers.  I thought about doing so to help in indexing:     But noscript has negative effect on the index (I refer to the contents of noscript)  I want a plugin that will not obstruct the image indexing in search engines.  This plugin will be used by other developers (and me too).  This is my question: How to make a HTML images accessible to search engines, which can minimize the requests?


I have two sentences below, what the difference between them? Which sentence imply now I still work in construction industry?     I have worked in construction industry for years   and     I have been working in construction industry for years

I am very much confused with two aspects which are perfect aspect and present perfect continuous.  From the sentences below I am not sure what to use..  Perfect aspect:     I've lived here for ten years.   Perfect Continuous aspect:     I've been living here for ten years.


My regex pattern looks something like  <xxxx location="file path/level1/level2" xxxx some="xxx">   I am only interested in the part in quotes assigned to location. Shouldn't it be as easy as below without the greedy switch?   /.*location="(.*)".*/   Does not seem to work.

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I write program to get data(text) from json and show it in list view , i write the code and its working but now i get url of image with json but i dont know how to show the image in list view with image view , please help me  here is my code  MainActivity:  public class MainActivity extends ListActivity {  private ProgressDialog pd; JSONParser jParser=new JSONParser(); ArrayList<HashMap<String,String>> P; JSONArray s=null; private final String url="http://192.168.1.4:81/upload/travel.php";   @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); P = new ArrayList<>(); new travel().execute();  }  @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); String id_code=((TextView)v.findViewById(R.id.id_code)).getText().toString(); Intent in=new Intent(MainActivity.this,ADD.class); in.putExtra("id",id_code); startActivity(in);  }  class travel extends AsyncTask<String,Void,String>{  @Override protected void onPreExecute() {     super.onPreExecute();     pd=new ProgressDialog(MainActivity.this);     pd.setMessage("login");     pd.show(); }  @Override protected String doInBackground(String... params) {      List<NameValuePair> parms=new ArrayList<>();     JSONObject json=jParser.makeHTTPRequest(url,"GET");      try {         int t=json.getInt("t");         if(t==1){             s=json.getJSONArray("travel");             for(int i=0;i<s.length();i++){                 JSONObject c=s.getJSONObject(i);                 String id=c.getString("id");                 String companyname=c.getString("companyname");                 String cod=c.getString("cod");                 String bign=c.getString("bign");                 String stop=c.getString("stop");                 String date=c.getString("date");                 String time=c.getString("time");                 String price=c.getString("price");                 String url_image=c.getString("url_image");                  HashMap<String,String>map=new HashMap<String,String>();                 map.put("id",id);                 map.put("companyname",companyname);                 map.put("cod",cod);                 map.put("bign",bign);                 map.put("stop",stop);                 map.put("date",date);                 map.put("time",time);                 map.put("price",price);                 map.put("url_image",url_image);                  P.add(map);              }         }else {             Toast.makeText(MainActivity.this,"No Data Found",Toast.LENGTH_SHORT).show();         }       } catch (JSONException e) {         e.printStackTrace();     }      return null; }  @Override protected void onPostExecute(String s) {     super.onPostExecute(s);     pd.dismiss();     runOnUiThread(new Runnable() {         @Override         public void run() {             ListAdapter adapter = new SimpleAdapter(MainActivity.this, P, R.layout.item_list,                     new String[]{"url_image","companyname", "cod", "bign", "stop", "date", "time", "price"},                     new int[]{R.id.id_code,R.id.companyname, R.id.cod, R.id.bign, R.id.stop, R.id.date, R.id.time1, R.id.price});               setListAdapter(adapter);         }     });  }  } }

I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load images so while the text displays, the UI is not blocked and images are displayed as they are downloaded?   The total number of images is not fixed.


I had to solve the following problem. Newborn screening has been implemented for a very rare pathology. For 6 months, and out of 50,000 births observed, no sick case was observed. What is the prevalence of the disease studied? The answer is less than 3 in 50.0000. I do not understand at all where this answer comes from. The prevalence is however calculated as the incidence multiplied by time, but the incidence here is zero! My idea is to use the fact that incidence is below 1/50000 on 6 months and to then calculate prevalence. Thanks for any suggestion !

The rule of three in statistics states that if an event is binomially distributed and does not occur with in $n$ trials the maximum chance of it occurring is approximately $3/n$.  Suppose we have a roulette table with only two options, red or black.  The chance of either of these occurring is clearly 1/2.  Suppose, however, that we don't see black for 10 turns of the wheel.  We might then decide to reason, ignoring the prior knowledge of the distribution, that the chance of black occurring is at most 3/10, which is not true.  Is this a misapplication of the rule?  If so, why, and how does one determine when it is proper to apply it.


Over time I end up with a lot of completed reminders, and I haven't found an easy way to delete them out. Right now I have to go into each reminder and delete it - something that is particularly cumbersome on the iPad, but easier on the iPhone.  Is there an easy way to delete completed reminders, or have it do that automatically?

I run the latest versions of OS X and iOS. Is there a way to mass-delete all completed reminders in both iOS and OS X? I’ve looked but can't seem to find a way so far.


Basically I am wondering if I can use  to pin a variable to either rax, rbx, rcx or rdx and then use the registers 1 byte extension in inline assembly. I want to let the compiler decide which register would be best to use but it needs to be one of these and I need to be able to access its 1 byte extension register in the inline assembly. Is there any way to do this? Edit: I need to stayoff the stackoverflow for a bit, getting a bit too lazy for my own good

Does anyone know how I can get rid of the following assembler warning?  Code is x86, 32 bit:  int test (int x) {   int y;   // do a bit-rotate by 8 on the lower word. leave upper word intact.   asm ("rorw $8, %0\n\t": "=q"(y) :"0"(x));   return y; }   If I compile it I get the following (very valid) warning:  Warning: using `%ax' instead of `%eax' due to `w' suffix   What I'm looking for is a way to tell the compiler/assembler that I want to access the lower 16 bit sub-register of %0. Accessing the byte sub-registers (in this case AL and AH) would be nice to know as well.   I've already chosen the "q" modifier, so the compiler is forced to use EAX, EBX, ECX or EDX. I've made sure the compiler has to pick a register that has sub-registers.  I know that I can force the asm-code to use a specific register (and its sub-registers), but I want to leave the register-allocation job up to the compiler.


How do I clear a string stream. I am tokenizing a file line by line, and the stringstream is global. I can tokenize the first line, but I can't get the second line working  stringstream currentLine;  while (!inputFile.eof()) { currentLine << getlinefromfile(); //Gets the next Line tokenizeLine(); //Tokenizes the line using the global stringstream peek() fnc currentLine.str(""); currentLine.clear(); }   The above is my current attempt, but it doesnt work.

I've tried several things already,  std::stringstream m; m.empty(); m.clear();   both of which don't work.


I have a Nigerian passport and a Ukraine visa and will be travelling from Nigeria to Kiev (Ukraine) via Amsterdam. I have a 3-hour stopover for the KLM flight in Amsterdam. I do not have time to get a Schengen visa to go out of the airport. So in this case can I stay inside the terminal for 3 hours without a visa? I can manage only with cabin bag and all the flights are with KLM. I have exactly the same situation during return trip.

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


I want to split a string by commas and then add them to an array. So far I have the following:  var temp = new Array(); temp = element.innerHTML.split(",");  for (i = 0; i < temp.length; i++) {   var data = [{     type: 'image',     src: '/resources/'+ temp[i],   }, }];   However, at the moment, if I run this it will reset the value of data everytime. How could I change it so that for each of my array values it adds to the data array?

How do I append an object (such as a string or number) to an array in JavaScript?


I'm DMing for a group of five people. One player, Swashbuckler with the Inspired Blade archetype, wanted to select critical feats which have Improved Critical as a prerequisite. The following Inspired Blade feature describes it as follows:  Rapier Training (Ex): At 5th level, an inspired blade gains a +1 bonus on attack rolls and a +2 bonus on damage rolls with rapiers. While wielding a rapier, she gains the benefit of the Improved Critical feat. These attack and damage bonuses increase by 1 for every 4 levels beyond 5th (to a maximum of +4 on attack rolls and +5 on damage rolls at 17th level). This ability replaces swashbuckler weapon training.  It seems to me that the player cannot do it, but I've house ruled otherwise. The reason is because his character looks pretty bad in the game (I did not tell him this) and is already getting behind others on the table. Charmed Life with Opportune Parry and Riposte are letting his immediate actions overloaded whilst his char is too squishy due to spending ability points on Dex, Int and Cha. Taxing him another feat with improved critical seemed bad from a balancing perspective. There is a vanilla warrior on the group who does everything the swashbuckler does but significantly better. That being said I've got two questions for you:  Does the "Rapier Training" Swashbuckler class feature count as having the Improved Critical feat? (From the title)  What would you have done in such situation?   Obs.: this class seems quite unbalanced and badly designed to me. Thanks!

This is really three questions.  If a class says that it grants the benefits of a certain feat, do I need to meet the prerequisites for that feat in order to actually receive the benefits? For example, a  "gains the benefit of the Deflect Arrows feat when using a light or one-handed piercing weapon" at 9th level. Although it does state that I don't need a free hand to use the ability, do I still need IUS and Dex 13 as per ? I would assume not, because the ability gives the duelist the benefits of the feat, not the actual feat.  Can I take the actual Deflect Arrows feat in addition to this ability? Because the conditions are different (holding a light/one-handed piercing weapon for the duelist ability; free hand for the feat), it would still carry some benefit.  Do I need to take Deflect Arrows separately, as a feat, in order to meet some other requirement that I have Deflect Arrows?


I'm currently reading Discrete Mathematics: Elementary and Beyond of Springer Mathematical Series; and come across a fact in the review questions that seems quite obvious, but difficult to prove. It goes like:   All prime numbers greater than 3 give remainder 1 or -1 when divided by 6.    How about proving this?  Won't it require us to know the general term, i.e. the formula for nth prime number?

Show that every prime $p>3$ is either of the form $6n+1$ or of the form $6n+5$, where $n=0,1,2, \dots$


To paraphase my textbook:  Use that $1001 = 7 \cdot 11 \cdot 13$ to prove that if $a= a_n a_{n-1}\dots a_1 a_0$ in base $10$, then, respectively, $7$ or $11$ or $13$ divides $a$ if and only if it divides $a_2 a_1 a_0- a_5 a_4 a_3 +a_8 a_7 a_6- \cdots $.  I'm on the chapter of my textbook in which modular congruences are introduced.

Prove the divisibility test by $7,11,13$ for numbers more than six digits    Attempt:  We know that $7\cdot 11 \cdot 13 = 1001$. The for a six-digit number, for example, $120544$, we write it as $$ 120544 = 120120 + 424 = 120\cdot1001 + 424 $$ thus we just check the divisibility of $424$ by $7,11,13$.  Know for a number with more than six digits,  for example: $270060340$,  $$270060340 = 270270270 - 209930$$ $$ = 270 \cdot (1001001) - 209930 $$ $$ = 270 \cdot (1001000) + (270 - 209930) =270 \cdot (1001000) - 209660$$  so we check the divisibility of $209660 = 209209 + 451$, or just $451$.  But the test states that: for $270060340$, we group three digits from the right: $$ 270, 60, 340$$ then check divisibility of $340+270 - (60)$.  How to prove this?


I flagged this answer as, "not an answer":   The answer begins (emphasis mine):     This won't solve your problem, but at least will shorten your code and make it maintainable. Replace your code with following, it will do the same.   In the comments the answerer states:     I don't know the answer. His code seems fine to me, just that style is really bad.   The text describing the "not an answer" flag says:     This was posted as an answer, but it does not attempt to answer the question. It should possibly be an edit, a comment, another question, or deleted altogether.   The flag was declined:     a moderator reviewed your flag, but found no evidence to support it   I cannot imagine a more clear cut match between the text that describes "not and answer", and this particular answer. Since the flag was declined, I am clearly misunderstanding what this flag means.  I'd appreciate it if somebody could put me straight and tell me where my disconnect is.

A few hours ago, I flagged  as not an answer. Additionally, I left a comment, basically saying that this answer has nothing to do with the question.  My flag got declined with the following reason:     flags should not be used to indicate technical inaccuracies, or an altogether wrong answer.   However, when flagging as not an answer, the following description is displayed (emphasis mine):     This was posted as an answer, but it does not answer the question. It should possibly be an edit, a comment, another question, or deleted altogether.   <rant> Basically, I am a bit wary about this declined flag right now, because it matches the description on what should be flagged as an answer and with my current flag weight, this declined flag destroyed about two days worth of flagging. That just took all the fun out of it for me, especially, because I am a responsible flagger, and open the questions to really read them and the answer if I am unsure - even if the answer already has several flags. </rant>  So, what am I asking... Well: Was it correct to decline my flag? If so, please fix the description of that flag option. If it was not correct, how can we prevent such "false flag declines" in the future?  Especially in the context of high flag weights where one declined flag really hurts.  UPDATE:    And another one!!   I didn't even flag as not an answer, but as "Other". My comment was: "Although this is the accepted answer it doesn't help. See comments for more info, basically: Contains not much more than a dead link." It is common sense to flag answers that contain only links, even more so, if the link is dead. As this was an old accepted answer, downvoting didn't help, because I still couldn't delete it. And my flag didn't even ask for deletion, but for "Mod attention", whatever that might be.  You just lost an active flagger, because every dismissed flag costs the equivalent of 50 to 100 "helpful" flags at my current flag weight. All because of some arbitrary decision from some anonymous mod? That just sucks and shows how little the honest flagging effort is honored.


In  answer (which I suggested an edit for), the owner of the answer did not use spoiler tags. I suggested an edit with the spoiler tags added, but they are not functioning as expected. Instead of hiding the text in the quote, the ! (from >!) is showing up. Any ideas why this happens?

The markdown >! a  >! b  >! c  Will be shown as a blockquote with ! in front of it:   a    b    c  Instead of a spoiler for 3 paragraphs (or 3 spoiler blocks, whatever).


I'm rendering in eevee, the antler of my stag appears in viewport but doesn't in image render. Does anyone have idea of what the problem is?

I have a model which you can see here (camera perspective).    In the second image, you can see how the render turned out.    I'm at my wit's end trying to figure our why it's not showing up in the render. If anyone needs more information, just ask and I'll get it to you. I've already checked the normals and they're not the cause.


There was no one who would not talk ill of him.  What does this "would" mean grammatically?

“Jeremy Finch, I told you you’d live to regret tearing my camellias.   You regret it now, don’t you?” Jem would say he certainly   did. “Thought you could kill my Snow-on-the-Mountain, did you?   Well, Jessie says the top’s growing back out. Next time you’ll know   how to do it right, won’t you? You’ll pull it up by the roots, won’t   you?” Jem would say he certainly would. “Don’t you   mutter at me, boy! You hold up your head and say yes ma’am. Don’t   guess you feel like holding it up, though, with your father what he   is.” Jem’s chin would come up, and he would gaze at Mrs.   Dubose with a face devoid of resentment. Through the weeks he had   cultivated an expression of polite and detached interest, which he   would present to her in answer to her most blood-curding inventions.   (Harper Lee, To Kill A Mockingbird)   What’s the meaning of ‘would’s in the example?


I made a fire+smoke simulation as shown:  then when I render, it shows only the block of domain but I want to see fire in rendered view please help me how to fix it the screenshot of rendered view is:

I am trying to render smoke in cycles, but the relevant blender  is designed for Bender Internal. I have everything set up except for the material.  I imagine you would set up the material nodes something like this:    But the problem is that there is no Voxel Data texture node, ans I am not sure what kind of shader should be used.  Is smoke in Cycles simply not supported yet? Or do I need to go about this a different way?   Reference:


The second postulate of STR was made exclusively for light (electromagnetic waves)?  If gravitational waves also travel at velocity $c$, then are they obliged to fulfill this second postulate?  Any wave of field (anti matter, dark matter, dark energy), traveling at velocity $c$, must obey this same postulate?  Since gravitational waves are not contained in the second postulate, does the invariance of these waves need to be proved?  Is Ligo results a proof of the velocity $c$ of gravitational waves?  Can Ligo prove the invariance of gravitational waves?

A thought experiment: Imagine the Sun is suddenly removed. We wouldn't notice a difference for 8 minutes, because that's how long light takes to get from the Sun's surface to Earth.   However, what about the Sun's gravitational effect? If gravity propagates at the speed of light, for 8 minutes the Earth will continue to follow an orbit around nothing. If however, gravity is due to a distortion of spacetime, this distortion will cease to exist as soon as the mass is removed, thus the Earth will leave through the orbit tangent, so we could observe the Sun's disappearance more quickly.  What is the state of the research around such a thought experiment? Can this be inferred from observation?


Starting from this thread . I'm also aware of  I'm just wondering if there is any quick way like this to create a box spanning across rows and columns rather than having to use TikZ  \documentclass{article} \usepackage{xcolor} \def\boxit#1{%   \smash{\color{red}\fboxrule=1pt\relax\fboxsep=2pt\relax%   \llap{\rlap{\fbox{\vphantom{0}\makebox[#1]{}}}~}}\ignorespaces } \begin{document}  \begin{tabular}{| c | c  c  c  c | }        \hline       Location & \multicolumn{4}{c|}{Rounds}\\         \hline         0 &  2 &  23 &  41 &  42\\     \boxit{1.47in} 1 &  3 &  24 &  42 &  43\\     2 &  4 &  25 &  43 &  44\\     3 &  5 &  \boxit{0.77in} 16 &  26 &  34\\     4 &  6 &  17 &  27 &  35\\     \hline    \end{tabular} \end{document}

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):  $$ A = \begin{bmatrix} \fbox{0} & \fbox{0} & 0 \\  \fbox{0} & \fbox{0} & 0 \\ 1 & 1 & 1 \\  \end{bmatrix}$$   But how can I outline elements of the submatrix like in the picture below? I need just a frame where some elements are located.


$\newcommand{\p}{\mathfrak{p}}$ $\newcommand{\a}{\mathfrak{a}}$ Let $A$ be a one-dimensional Noetherian domain. I am thinking about this claim:     If all prime ideals of $A$ are invertible, then $A$ is a Dedekind domain.   Is that true?  I tried to show a unique factorization into prime ideals. Indeed, an integral domain is a Dedekind domain, iff all nonzero ideals admit a unique prime factorization.  To show this, I'm going to show following two lemmas. If it is proved, we can prove a unique factorization by the same way as a Dedekind domain (cf. Neukirch, Algebraic Number Theory).  Let $\a \neq 0$ be an ideal of $A$. I proved the first lemma:     There exists prime ideals $\p_1, \dots, \p_r$ such that   $$ \a \supseteq \p_1\dots \p_r $$   by the same way as a Dedekind domain, because it is not used that $A$ is integrally closed.  But I can't show the second lemma:     $$\a\p^{-1} \supsetneq \a.$$   I found that to show the second lemma, it is sufficient to show that $$ \bigcap_{n=1}^\infty \p^n = 0. \label{a}\tag{1}$$ We assume that it is proved. If $\a\p^{-1} = \a$, $\a = \a\p$. By induction, we get $\a = \a\p^n$ for $\forall n > 0$. We use $\eqref{a}$, then we get $\a = 0$. It is a contradiction.  However, I can't prove $\eqref{a}$.

Suppose that $R$ is an integral domain. How to show that if every non-zero prime ideal of $R$ is invertible, then every non-zero ideal of $R$ is invertible?    Actually, I am trying to prove the unique prime factorization of ideals in $R$, so I cannot use the fact that any ideal can be factored as a product of primes.


In my applicatin I want to change the value of a variable dynamically , Based on string . Here is what I have tried   public void onClick(View v)     {         switch (v.getId())         {             case R.id.btCalculate:                  int column = Integer.parseInt((String) spColumn                         .getSelectedItem());                 int inch = Integer.parseInt((String) spInch.getSelectedItem());                 int colum_inch = column*inch ;                 int MULTIUPLIER ;                  if (page_number=="FirstPage(Color)Minimum12Maximum80ColumnInch-14500PerColumn/Inch")                  {                         MULTIUPLIER=20;                 }                  else if (page_number=="3rd Page Color: 9000") {                     MULTIUPLIER=9000;                  }                 else {                         MULTIUPLIER=10;                 }                 if (colum_inch<4) {                     tvAmount.setText(page_number);                  } else {                     tvAmount.setText((MULTIUPLIER *colum_inch) + "");                 }                  break;         }     }   Here the variable page_number is a string which stores the text of clicked button .  In my previous activity I have two button , one button text is "FirstPage(Color)Minimum12Maximum80ColumnInch-14500PerColumn/Inch" another "3rd Page Color: 9000"  .  But the problem is in my  out the MULTIPLIER is always set to "10" . No matter which button I have clicked . How can I resolve this . How can I change the value of that variable (MULTIPLIER) based the text of clicked button .

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


In actions that involve another person, we can structure sentences like the following examples:  I drove him home. I cooked him a meal. I gave him a spoon. I threw him the ball.  I'm not sure of the name of this grammar pattern, but the use of the pronoun "him" is simply a shortening of "for him" or "to him" or "at him", depending. Is there a reason why we can't (or at least, don't) say:  I opened/closed him the door.  to mean "I opened/closed the door for him"?  Is there a grammar rule, or is it just not idiomatic?

When I call the buzzer outside my girlfriend's flat, she sometimes says *"I'll open you the door". I correct this to "I'll open the door for you".  I've never heard a native speaker say it the first way, which is why I think it's wrong. But I can't explain why.  There is a pattern in lots of English phrases that would suggest both are correct. A few common examples:   Give the keys to me before you go — Give me the keys before you go I'll buy a coffee for you at the cafe — I'll buy you a coffee at the cafe We sent a text to Martin on his birthday — We sent Martin a text on his birthday   The left-hand side is more formal, and the right-hand side is more common in everyday speech.  What do you call this pattern?  What makes the 'open-the-door' sentence an exception?


I was doing a do-release-upgrade from command line and it was taking a lot of time. So I left it overnight and in the morning I saw that the charge gas been exhausted and my laptop turned off. When I tried to reboot, grub menu appeared, but when I chose ubuntu , it just gets stuck at the screen that appears before file checking (where it shows the name of the company of laptop). Is there any way to recover the system? I have a bootable usb stick with ubuntu 20.04. I booted from that and checked my /home partition. My files are safe. So I was thinking whether it is possible to just overwrite the root (/) partition and install ubuntu 20.04 on it while keeping my /home partition intact. Is it a feasible option? If yes, how? P.S. I don't have any backup

I was attempting to update my 11.10 install to 12.04beta. During the install step, I accidentally lost power to my laptop (the power cable came unplugged) and it shut down. Whenever I go to boot now, I can select my install via Grub and it loads up to where the sign-in should happen, but I get a display that looks like what you see as soon as you shut down. It looks like it locks after checking for the battery.   Is there anyway, with or without Live media, to restore my machine's install/update to 12.04 but still keep my settings/applications/files?


Is it possible to convert an image to a tex formula? I would like to know free and paid solutions (which of them free and which of them paid).  Thank you!

Is it feasible to convert math in a picture, say written by hand, into LaTeX?   For example, I'd deem it faster to write down (de novo)  a 10 x 10 matrix with long, complex entries, rather than typing it in LaTeX or MathType. If I then take a picture or scan my writing, how can it be rendered or transformed into LaTeX?


i have a laptop with Windows Vista but Grub detects as Windows 8 no matter what distro i use, Grub always detects my Windows Vista as Windows 8, how can i fix this?

I am taking about the naming of existing/default GRUB boot entry. Currently I've the following options at GRUB screen:  Trisquel GNU/Linux Advanced options for Trisquel GNU/Linux Trisquel GNU/Linux, with Linux-Libre 3.13.0-39-lowlatency (recovery mode) Windows 7 (loader) (on /dev/sda1) Edubuntu ISO   Where First three entries are default with Trisquel GNU/Linux, 4th is for Windows boot loader and 5th is custom entry defined at /etc/grub.d/40_custom.Now suppose I want to change the name/text of say 4th entry Windows 7 (loader) (on /dev/sda1), then which is the right way?   I found above menu entries at /boot/grub/grub.cfg. Example for that I want to change:  ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-0A7072DF7072D145' {     insmod part_msdos     insmod ntfs     set root='hd0,msdos1'     if [ x$feature_platform_search_hint = xy ]; then       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0A7072DF7072D145     else       search --no-floppy --fs-uuid --set=root 0A7072DF7072D145     fi     parttool ${root} hidden-     chainloader +1 } ### END /etc/grub.d/30_os-prober ###   So, Can I safely replace the name/text 'Windows 7 (loader) (on /dev/sda1)' with which I want and then update-grub2?  Briefly I want to know How do I change the name of GRUB boot entry?


What is the rule determinating whether or not we need to capitalize them?  Sometimes I see "Math" ; "Physics" in the middle of a sentence, and sometimes lower case is used.

Do I say "I study computer science," or "I study Computer Science"? Similarly, "I really liked that computer science course," vs. "I really liked that Computer Science course."


I been using Ubuntu 18.04 for months, Last night it was working fine but when logged back today it was showing me black screen. So i just installed new Ubuntu 18.10 and try to install AMD graphic driver and i can't find driver for Ubuntu 18.10 and now I'm struck with AMD Oland.  Card AMD Radeon HD 8570 OEM  lspci -vnn | grep VGA -A 12 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] [1002:6611] (prog-if 00 [VGA controller])     Subsystem: Dell Oland [Radeon HD 8570 / R7 240/340 OEM] [1028:2121]     Flags: bus master, fast devsel, latency 0, IRQ 34     Memory at e0000000 (64-bit, prefetchable) [size=256M]     Memory at f7dc0000 (64-bit, non-prefetchable) [size=256K]     I/O ports at dc00 [size=256]     Expansion ROM at 000c0000 [disabled] [size=128K]     Capabilities: <access denied>     Kernel driver in use: radeon     Kernel modules: radeon, amdgpu  01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] [1002:aab0]     Subsystem: Dell Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] [1028:aab0]

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I know to re-enter the USA you are required to leave the continent and neighbouring islands. I plan to go to the USA at the end of May, stay for up to 90 days, but I would like to visit again and want to know how much time anybody has spent between visits.   Is one month enough? I will enter first with my girlfriend who is from the US, I am a British citizen, then we will leave to somewhere outside the continent, then we would like to go again for another period of time before finally leaving again to go elsewhere.  From what I can find out it appears it's totally up to the border official. I have funds to support myself for the entire duration of both stays, I will not be working, I will have onward travel plans each time, i.e. a flight out after the first visit and after the second.  Unfortunately I'm not in the UK now and won't be before I go to the US otherwise I would apply for a 6 month visa, and from what I understand, applying for a 6 month visa outside your home country reduces the chances of it being granted anyway. So basically what are the chances of me being allowed to enter again after just 3 or 4 weeks outside the US? Or is it just a chance I'll have to take? And anyway who would be responsible for me leaving the states if I was refused entry? I'd have to get a flight myself or the US immigration would put me on a plane somewhere? Ha, I know it's a lot but any help, or if anybody has experience of multiple entries, any advice would be greatly appreciated!! Thanks!  Ok, clearly similar questions have been asked before, I explained the information I have already gathered from such questions and posts. It is all theoretical. What I want to known is people's actual experiences. How long HAVE people actually left for, WHERE did they go, and how were the border officials attitudes and questions asked upon re-entering?  I explained what I have already found out which you kindly marked my question as a duplicate and linked a similar question to it. But what I am after is people's personal accounts of doing this, not just how it works in theory, it is not difficult to find this information, it is however difficult out to find personal accounts!  Thanks again!

I entered the USA on a Visa Waiver Program (VWP) on 1 July 2012 and stayed until 16 Sep 2012 (78 days).  On what date in 2013 will I be able to travel to USA again under VWP?


I'm playing a Fighter in my friends new campaign and I recently leveled up and gained Action Surge. When I was reading it, it said     On your turn, you can take one additional action on top of your regular action and one possible bonus action.   It confused me when it said a possible bonus action and gave no example of when you could get a possible extra bonus action from Action Surge or if you're suppose to roll dice to determine whether or not you get the extra bonus action on top of your other bonus action.

We were trying to understand how the "Action Surge" rule works, and after some discussion we came to a standstill.      Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one additional action on top of your regular action and a possible bonus action   The keyword "possible" is what threw us off. Half the group thought it meant "additional action or bonus action", and the other half thought it was "additional action and bonus action".  So which is it?


I have an SVG element which is an arrow into a circle :   <svg version="1.1" id="layer" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"                          viewBox="15 15 102 102" style="enable-background:new 0 0 132 132;" xml:space="preserve" data-link="go_down">             <g class="cross-circle">                 <g class="go-clockwise">                     <circle class="st0" cx="66" cy="66" r="43.7"/>                 </g>             </g>             <g class="down">                 <polyline class="st1" points="76.4,71 66,81.4 55.6,71 "/>                 <line class="st1" x1="66" y1="81" x2="66" y2="47"/>             </g> </svg>   I would like to translate the arrow position with css. I tried to use position relative on the g element with the class "down" but it doesn't work. I tried to put a foreignObject but doesn't work too.. Does anybody have an idea ?

I'm having a play with SVG and am having a few problems with positioning. I have a series of shapes which are contained in the g group tag. I was hoping to use it like a container, so I could set its x position and then all the elements in that group would also move. But that doesn't seem to be possible.   How do most people go about positioning a group of elements which you wish to move in tandem? Is there any concept of relative positioning? e.g. relative to its parent


I want to add two JSON objects which have structure like this (It has more data and I ignore them in here):  { "total_count":100 , "types":20 , { "a" : 5 , "b" : 6 }}  {"total_count" : 1 , { "a" : 2 } }   I want to add these objects in node.js in order to get following object:   { "total_count":101 , "types":20 , { "a" : 7 , "b" : 6 }}   I use mongodb which has $inc function which add current json to existing one in db and reduce load and store load. I'm interested to find a method which handle this action in nodejs.What should I do ( I dont want to do it manually preferly. instead i like to use existing functions)?

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


The title says it all.  I have some conditional formatting rules, it seems I'm limited to some basic formatting options;    Is there any workaround to apply further formatting options (such as border)?

I'm looking to have cell borders automatically applied when a cell is not empty. I thought I could use conditional formatting for this, but it doesn't seem to be an option.


I've got issue with stopping setInterval timer. I know It should stop after using claeerInterval, but in my case something wrong.  This is part of code what I have:      function startTimer(duration, display) {         var timer = duration, minutes, seconds;         var tmr = setInterval(function () {             minutes = parseInt(timer / 60, 10)             seconds = parseInt(timer % 60, 10);              minutes = minutes < 10 ? "0" + minutes : minutes;             seconds = seconds < 10 ? "0" + seconds : seconds;              display.textContent = minutes + ":" + seconds;              if (--timer < 0) {                 timer = duration;             }         }, 1000);     }      function beginTimer() {         var fiveMinutes = 60 * 5,         display = document.querySelector('#time');         startTimer(fiveMinutes, display);     }      function gameOver() {         // some more code         clearInterval(tmr); // there throws an error     }   And after It I got an error:     Uncaught ReferenceError: tmr is not defined   Have you ideas what's wrong with It? should I make It public or something else?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I was making a bootable usb(using unetbootin) stick for kali-linux but the process was interupted before it finished and now the usb stick is read-only and can neither format it nor change the permision. your help will be appreciated.

I recently made my pen-drive bootable with Ubuntu 14.04. But I need to unboot my pen-drive now. I formatted my pen-drive once,But the size of the pen-drive still shows 2.25 MB. Whereas,this is an 8GB pen-drive. How can I get rid of this problem. I'm still using Windows 7.


I created a diagonal stripe image in Photoshop, just dragging the lines an "equal" distance from each other for a blueprint website design. I knew it would be much more complicated to recreate this diagonal texture in a seamless manner:    Perhaps there are tools to do this easily in Illustrator, but I'm limited to PS CS5.   How can I achieve a seamless stripe texture at the angle shown here in Photoshop?

How does one draw a tile with diagonal lines that can seamlessly tiled with Photoshop?


I had configured an ftp server in Centos 7, in which I used the vsftp package and in the vsftpd.conf file I used a command called deny_file in which I only indicated the file extensions that I would not allow to be uploaded to the server, however I saw that the ftp server was not safe and I wanted to put it secure with SSH, that is with SFTP, but despite having the deny_file in the vsftpd.conf it does not block the files by extension and I really want to know if any of you knows a way to do it  please help me,the other question is not explained clearly and I do not understand it.

How can I restrict certain file extensions and file upload size via SSH?  I am using Ubuntu 12.10 default installation and Open-ssh server.


My friend just answered to one of my important questions. Now how should I reply to him?     1.Oh! That question had been on my mind for a long time, finally, I got my answer. ( Oh! I had that question on my mind for a long time, finally, I got my answer)    or        Oh! That question has been on my mind for a long time, finally, I got an answer. ( Oh! I have that question on my mind for a long time, finally, I got my answer)      Basically, I am confused with had and have. Since that question is not anymore on my mind after having got an answer, which one of the above two sentences should be used?

My friend just answered to one of my important questions. Now how should I reply to him?        That question had been in my head for a long time, finally, I got my answer      or        That question has been in my head for a long time, finally, I got an answer.      Basically, I am confused with had and have. Since that question is not anymore in my head after having got an answer, what should be used? (I am also confused whether it is possible to use having instead.)


There are a number of models (String theory, Cascading Gravity, Emergent Dimensions) that contain extra space like dimensions. Why do people tend to avoid considering extra timelike dimensions?  The only reason I have heard so far is that you want to avoid close timelike curves (which would violate causality). I would think that if causality is respected in our usual time dimension, we could (at least for the purpose of initial toy models) demand causality be respected in other time dimensions as well.  (The m+n dimensional question linked to was asking about what happens if m and n are be integers.)

The following image serves to aid the reader in understanding the "privileged character" of $3+1$-spacetime.    The wikipedia article on , and the  "The priveleged character of $3+1$-dimensional spacetime" in particular, made me think a bit about the possibility that we might live in a non-integer amount of spatial and/or time dimensions.   The notion of attaching a non-negative real number to a metric space has at least mathematically already been described by such concepts as "" and "".   This may sound silly/ignorant/absurd to professional practicing theoretical physicists. To me (a layman), however, it doesn't sound much stranger than the idea of wrapping up six extra dimensions (which is, from what I understand, considered to be a serious possibility by those who study $10$-dimensional String Theory) into intricate shapes called "Calabi-Yau Manifolds".   Has any research on $(a +b)$-dimensional spacetime (where $a,b \in \mathbb{R}_{\geq 0} $) ever been done? If so, what where the findings? If not, why not?


I need to write a script that prompts the user to enter a username and then if that username exists, lists all of the user's information from the password file and a list of all commands they are currently running. So far I have this:   #!/bin/bash  echo "Please enter username" read username  if [ "$username" = cat /etc/passwd | cut -d: -f1 ] then      //list all user info from passwd file     id $username      //list all commands they are running     i dont know how to code this fi     If you guys can help me fill in or change anything that will be great, thanks!

I want to see list  of  process created by specific user or group of user in Linux Can I do it using ps command or is there any other command to achieve this?


My Gmail account is formatted as Firstname.LastName@gmail.com. However I have been receiving emails addressed to: FirstNameLastName@gmail.com.  It's been going for a little while, but now over the last couple of months it has become worse. I was letting the senders know. I'm afraid some of my email may be going to this other person's mailbox!  What can I do?

E.g.: If your Gmail ID is abc.xyz@gmail.com, it considers this the same as abcxyz@gmail.com.  Why is this so?


Suppose in the 2D space we have an array of points, and each point has a weighting factor, which is a float value ranging from 0 to 1. Each point also has a coordinate in the 2D grid. The following pseduo-codes show the property of the point:  class Point {  public:     float weightingFactor_; // [0,1].     float x_;     float y_;  }   Now my question is: given an array of points, how can we select the best point pair? The criterion for best point pair is: (1) both points should have large weighting factors; (2) the two points should be as far as possible spatially based on the Euclidean distance. For the time being, my solution is for each point pair calculate the following criterion:  Point1.weightingFactor_*Point2.weightingFactor*Distance(Point1, Point2)   Among all the point pair, then select the pair whose criterion value is the largest. I am not sure whether this is the best solution. Any ideas? Thanks.

I have four numeric variables. All of them are measures of soil quality. Higher the variable, higher the quality. The range for all of them is different:  Var1 from 1 to 10  Var2 from 1000 to 2000  Var3 from 150 to 300  Var4 from 0 to 5  I need to combine four variables into single soil quality score which will successfully rank order.  My idea is very simple. Standardize all four variables, sum them up and whatever you get is the score which should rank-order. Do you see any problem with applying this approach. Is there any other (better) approach that you would recommend?  Thanks  Edit:  Thanks guys. A lot of discussion went into "domain expertise"... Agriculture stuff... Whereas I expected more stats-talk. In terms of technique that I will be using... It will probably be simple z-score summation + logistic regression as an experiment. Because vast majority of samples has poor quality 90% I'm going to combine 3 quality categories into one and basically have binary problem (somequality vs no-quality). I kill two birds with one stone. I increase my sample in terms of event rate and I make a use of experts by getting them to clasify my samples. Expert classified samples will then be used to fit log-reg model to maximize level of concordance / discordance with the experts.... How does that sound to you?


From a large minified css file I want to extract the style inside specific media queries. Something like:  .some-class{aaa:bbb;ccc:ddd;}@media (min-width: 500px){.some-other-class{aaa:bbb;ccc:ddd;}}.another-class{aaa:bbb;ccc:ddd;}   The following regex selects the media queries, with a capturing group for the style inside the media query:  regex = new RegExp("@media.\\(min-width:\\d{3,4}px\\){(.+?\\})\\}", "g");   The capturing group result is the part I actually want. But when there are more than one hits how do I access multiple capturing group results. When there is only one the result I am after is the second item in the resulting array, when using str.match(regex);.   Is the only solution using regex.exec(str)[1] in combination with a while loop? Like:  while(result != null){     result = regex.exec(str)[1];     resultArr.push(result); }   I'd much rather use match()...I find that more readable and a more elegant solution, you immediately get an array with you results...although the results I am looking for are only a subset of the results I am getting...   I guess I will have to use the last code snippet I gave, regex.exec(str). Ahh well...

I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.


I'm trying to trim out most data across a few dozen tables in a copy of a database.  This is an ad hoc need I'm performing on a local machine running SQL Server 2008R2 Standard SP1.  Tables are notable but not tremendously large, with the larger ones at tens of millions of records.    When running large DELETEs, I'm getting an "insufficient memory available in the buffer pool" error.  I can see physical memory continue growing without any indication of releasing memory.  I have set recovery to simple, and have tried chunking the deletes using rowcount to throttle.  At the end of each chunk I see no evidence of the memory being released.  Next attempt was to wrap in an explicit transaction, with no difference in the outcome.  I've also had no luck with   DBCC FREESYSTEMCACHE ('ALL')   Does anyone have suggestions around where else I might free up the memory mid process?  Because this is a rare, ad hoc need being done on a local machine, I'm okay with some choices that might otherwise be not a best practice for ongoing production scenarios.  I'd like to steer clear of rewriting all sorts of involved rewriting to a "perfect" solution, e.g. dropping constraints and indexes, then rebuilding after truncating and adding data.

I'm the only one working on this server and followed documentation about optimizing SQL memory usage when I saw that SQL was using all of the memory available of the server.  One of the steps I did is to fix the max memory size to 20 Gb (server for test purposes with 32 Gb memory).  After tuning, yesterday, SQL Server was only using 3-4 Gb but today, it has again reached the max memory usage I allocated.  Why is SQL Server keeping all 20 Gb? What will happen when users will begin to use the server if the max memory size is already used?


Ok, I was misunderstanding the problem. After reading it a couple of times I figured out randInt is actually the method itself i am using to populate the array. So when it says to call randInt its some sort of recursive call I think. This is somehow what it should look like:     static int[] randInt(int i, int j) {     int[] temp = new int[(j - i) + 1];     for ( i = 0; i < j; i++) {         temp[i] = i + 1; // here i populate the array     }     System.out.println(Arrays.toString(temp)); // this prints [1, 2, 3, 4, 5]     for ( i = 1; i < j;i++){         swapReferences(temp[i], temp[randInt(0,i)] ); //this is some sort of recursive call that swaps the references          // btw that statement does not compile, how can i pass a method as a parameter?        }     return temp; }  static void swapReferences(int a, int b) { //these parameters are wrong, need to be changed    //Method to swap references  }   Sorry for the confusion, but I think thats how it should be correctly.

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


Give a space $X$ such that $H_i(X;\mathbb{Z}/3) \cong 0$ for all $i > 0$, but such that there is an $i > 0$ for which $H_i(X; \mathbb{Z})$ is non-trivial.   We know that the chain complex of $C_i(X; \mathbb{Z}/3) \cong C_i(X; \mathbb{Z}) \otimes \mathbb{Z}/3$. I think the best approach is to first find a chain complex satisfying this, using as many $\mathbb{Z}$-linearizations of sets as possible so we can use a CW-complex and cellular homology to realize the chain complex.  I have done nothing useful, but as posts should show some sort of effort, this is one of my failed attempts:  Consider the chain complex   $$... \to 0 \to 0 \to \mathbb{Z} \xrightarrow{1 \mapsto 6}  \mathbb{Z} \xrightarrow{1 \mapsto 1} \mathbb{Z}/3$$  This has $H_1(C)$ is non-trivial since $3$ is in the kernel, but not in the image.  Tensoring with $\mathbb{Z}/3$ gives  $$... \to 0 \to 0 \to \mathbb{Z}/3 \xrightarrow{0} \mathbb{Z}/3 \xrightarrow{a \mapsto 1 \otimes a} \mathbb{Z}/3 \otimes \mathbb{Z}/3$$  using the isomorphism $\mathbb{Z} \otimes A \to A: 1 \otimes a \mapsto a$.  Fails because $H_2(C \otimes \mathbb{Z}/3) \cong \mathbb{Z}/3$.

I want to find a topological space $X$ such that $H_i(X,\mathbb{Z}_3)=0$ for all $i$, but there is some $i$ such that $H_i(X,\mathbb{Z})$ is non zero.  I have tried using the integral coefficient theorem to come up with an example but that hasn't been fruitful, we also have not covered the universal coefficient theorem I assume there is some way to do this question without that.   I feel I am missing some key point about homology with coefficients in $\mathbb{Z}_3$. Possibly something similar to how homology with coefficients in $\mathbb{Z}_2$ in a sense forgets orientation.


How can I get the character's ASCII value without using any library function using python.

How do I get the  value of a character as an int in ?


I'm trying to render a model over existing video footage. So I need to render the shadows on a transparent background so it can be superimposed on the footage. I know there is a way to do this in the blender render and not cycles but I'm getting stuck with this file. I can't get the model of the building to show up in the render, I think it has something to do with me converting this from cycles. And I can't get any shadows to be cast at all. I've attached a link to the .blend any help would be greatly appreciated, thanks.

I'm trying to make a logo that will be on the header of a website. What I'd like to achieve, and the reason I'm using Blender, is the projected shadows on the background looking perfectly real (as opposed to doing a drop-shadow in Photoshop).  The only thing is, the background has to be transparent because the website might use different background colors / gradients that make it impossible to match with the exported 3D background.  I made this dummy file (not the real logo... duh!):    If I use the file as is, the grey borders of the image will be impossible to match with the website's background color.  Here what I want:    So obviously, I tried masking the plane, which made the shadows disappear. I tried having a plane set to glass, which didn't work either.  And I looked around for a similar question, but didn't find one.   I am not trying to render , or a . I've seen  which has a very difficult solution to this problem, and  that is very similar but in Blender Internal.  is similar too but has never been solved. I'm only a beginner at Compositor, and I'm trying to learn more any chance I get, so any solution in Compositor is welcome if detailed enough. Although if there's a simpler or faster way, it's welcome too!  .blend file:


I activated the Bash shell on Windows 10 (with the new update on Windows 10 which offers a Linux Bash shell).  The installation was a success, but I can't install anything... When I ran, for example   sudo apt-get install cmatrix   it returned  Unable to locate package cmatrix   Can somebody help me with this?

When I try to install any package through the command line, I get an error.   $ sudo apt-get install <package> Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package <package>   Can anyone help me on this?


I'm reading Larson's AP Calculus textbook and in the section on limits (1.3) it suggests finding functions that "agree at all but one point" in order to evaluate limits analytically.  For example, given  $$ f(x) = \frac{x^3-1}{x-1} $$ we can factor and reduce to get $$ \frac{x^3-1}{x-1} = \frac{(x-1)(x^2+x+1)}{x-1} = \frac{\require{cancel} \bcancel{(x-1)}(x^2+x+1)}{\require{cancel} \bcancel{(x-1)}}=x^2+x+1 $$ But it then refers to this reduced expression as  $$ g(x) = x^2+x+1 $$ suggesting that $f(x) \neq g(x)$ (also implied by the figure below).      Is it true that $f(x) \neq g(x)$?  I realize that $f(x)$ as originally expressed is indeterminate at $x=1$, but doesn't the cancellation of $(x-1)$ allow us to calculate the "true" value of $f(1)$?  If so, I believe the graph of $f(x)$ in the figure is misleading at best by drawing the plot as being undefined at $x=1$.

Is $\frac{x^2+x}{x+1}$ a polynomial?  Fist question can be: on which field/ring or etc? In basic, let's take over $\mathbb R$.  Actually, it is $x$ if $x \ne -1$.  Can we say again it is a polynomial, or a near-polynomial or what?   Can we say it is a polynomial over $\mathbb R - \{-1\}$? But there is structure here for $\mathbb R-\{-1\}$.  This question can be academically, not sure, but I want to ask it in the level of primary school, then academically.


I've started seeing these dark regions at the bottom of my screen. They go away temporarily when I close the laptop, but come back every now and then. Is there an easy fix for this, or is there something wrong with my display?

When screen brightness is low I get this dark spot in my screen. Is this something serious ?


Story starts with a guy buying a terrarium with 4 groups of beetle-like insects brought and installed in his own house by an alien race. A different color each. Each tribe were supposed to start a kind of colony on its share of the terrarium and sooner or later they were supposed to fight small strategic wars between them. They also changed its shape as they developed stronger.  The owner, against recommendations, is not patient enough to wait and starts to force such fights. Things go terrible wrong and one of the groups, I think it was the weakest yellow colored ones, get out of the container and he kills them. And everything goes downhill after that, as the beetles hate him and he actually has to fight them when they get free.  The yellow ones actually fully developed far from the house to be exactly like the aliens. It's just that the aliens didn't considered them as their offspring because they were way very underdeveloped if kept inside the terrarium.

I am trying to recall the name of a story I read when I was fairly young (maybe 20 years ago, but not sure how old the story is).    What I remember: A man acquires a set of creatures that he keeps in his house, I think in an aquarium.  They evolve over time, quickly, and think of him as their benevolent god. They build statues in his likeness.   Then, I believe some sort of accident happens, and the statues they build become a little less benevolent, which bothers him.  This pattern continues on with his cruelty increasing and their depiction of him becoming more cruel.


Can anyone help explain the under hood of the following three examples(they have puzzled me a long time and I can't find an answer by google)? Why they produce complete different results?    Example 1.  I created a global variable named myArray and directly changed its value with a function. Everything is going on as expected. I changed the value of 'myArray'.  var myArray = [1, 2, 3, 4, 5];  function alterArray(){   myArray = [5, 4, 3, 2, 1]   return myArray;  }  alterArray(); console.log(myArray);  //-> Array(5)[ 5, 4, 3, 2, 1 ]   Example 2.  To make the alterArray function more efficient, I added a parameter to it so that the function can change any global variable into an array [5, 4, 3, 2, 1]. Then the function just doesn't work. myArray is still [1, 2, 3, 4, 5]. Why? What happened?   var myArray = [1, 2, 3, 4, 5];  function alterArray(arr){   arr = [5, 4, 3, 2, 1];   return arr; }  alterArray(myArray); console.log(myArray); //--> Array(5)[ 1, 2, 3, 4, 5 ]   Example 3.  I changed  arr = [5, 4, 3, 2, 1]; into arr[0] = "number one"; (inspired by an exercise in chapter 4 Eloquent Javascript) in the function. And the function works again! Why? Why the function doesn't work when I assign myArray a complete new value via the parameter, but works well when I only change part of myArray via the parameter?  var myArray = [1, 2, 3, 4, 5];  function alterArray(arr){   arr[0] = "number one";   return arr; }  alterArray(myArray); console.log(myArray); //--> Array(5)[ number one, 2, 3, 4, 5 ]

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


I am new to StackOverflow, and I edited few posts based on how I had seen many posts being written and one 'celeb' person here pointed out where I was wrong. I thanked him for letting me know, and that I was doing what I saw in good posts. But, I got downvotes on all my questions at the same time.   I don't think it s fair. (Not saying it because I lost reputation.) It just decreases credibility of my questions to anyone who sees it. This, to me, is just having advantage of being someone with high reputation and they can just go downvoting anyone because -1 reputation won't matter to them.

I just noticed that I lost a bunch of points from my reputation score, and I used the "reputation" tab on my user profile page to try and track down the cause.  During my investigation, I noticed there was an unusual event of type "reversal". In the normal place of a question title, it says "voting corrected".     What does this mean, and what caused it?  Did I do something wrong? Why did I lose all of that reputation? Is the system punishing me for leaving too many good answers?  Is there any way to earn it back?


I would like to disable so I never get this popup. And also I would like to know what application has asked for it, so maybe I can stop it. Does anyone know?    Edit: A solution can be found here:

If more than one person is logged in on my computer, Ubuntu requires super user authentication when shutting down the computer. How can I make it so that any user can shutdown the computer without being asked for a password?


There is a committee of 18 people, and a board of 5 people will be randomly chosen. What is the probability John, Jane, and Randy will all 3 be on the board of 5?

If I am selecting 232 people from a pool of 363 people without replacement what is the probability of 2 of a list of 12 specific people being in that selection?  This is a random draw for an ultra race where there were 363 entrants for 232 spots. There is an argument about whether the selection was biased against a certain group of 12 people.  My initial attempt at calculating this was that there was 232 choose 363 possible selections. The number of combinations of any one person from the list of twelve is 1 choose 12 + 2 choose 12 + ... + 11 choose 12 + 12 choose 12. Thus 1 choose 12 + 2 choose 12 .... / 232 choose 363. Which ends up being a very low number which is clearly too low.  How do I calculate this?


I'm trying to subtract the Barium object from a cube to effectively create the inverse surface using Boolean modifier --> Subtract but can't seem to get it to work.   How would I go about doing this?

I need to create a cross section of a surface (which takes the form of a cube), and therefore there are certain areas which need to be "empty". A visual description of what it would look like is below:.  Moreover, it might be necessary to include that there is a particle system that is emitted from the surface, and these particles should not be emitted from "empty area".  Things I have tried:   The cell fracture add-on... to not much success. Not sure if I am using it incorrectly. Simply deselecting 50-80% of the faces (I subdivided the cube already) and then deleting them.   None of these methods create an optimal output. Any help would be appreciated!  EDIT: Here is what I have so far:   The yellow portion is to be modeled like the green cross-section provided before. As you can see, the small black-white bits on top of the yellow is a particle system that is frozen to 1 frame. So, tying everything together, I'm trying to model yellow area to look like the green image shown earlier, however the particle system must only emit from the non-empty areas.


Is there some way that I don't have to go to one layer by one and open their layer style one by one?? I wanna be able to apply the dither option of the gradient overlay for every layer style. Is that possible? I'm not sure if I explained it correctly but does anyone know how to do it??

I think what I may be looking for exists in Fireworks maybe, but I haven't messed with it. Basically, is there a way to make a style sheet for an object?  Say I have an object and I apply x layer styles to it, then I want all those layer styles on multiple objects throughout a document. Then I want to change the strength of a drop shadow, how would I set it up so all I had to do is change the drop on the master file and it would apply to all with this "style" set on it?


Today, I updated my Ubuntu 18.04 machine to 20.04. My laptop has both an SSD (where the OS is located) and a larger HDD (where most of my data is). Since the update, an icon for the hard drive appears permanently in the dock. This was not the case before I updated.  It does not have any open instances (indeed, it can't have any 'opened instances' of its own - clicking it just opens the HDD's root directory in the file explorer), so that's not its excuse for appearing in the dock. Ordinarily, if I don't want a particular icon in the dock, I can easily remove it:  However, this does not seem to be possible with the HDD icon:  Of course, I could get rid of the icon by unmounting the HDD, but that is not an option - this is not some external drive I only use occasionally; it is a built-in hard drive containing nearly all my data and needs to be mounted during my routine use of the system.

I just upgraded from Ubuntu 19.04 to Ubuntu 19.10. This made that my second internal HDD show up in the launcher bar or Ubuntu Dock, which it did not before.  I read that I should mount it to /mnt instead of /media, but this device was auto-mounted years ago (I believe in Ubuntu 16.04 or so) and I have a lot of symlinks and other references to the path in /media already.  How can I remove the icon from the dock without unmounting it or having to mount it to a different location? I can not even move it to another location on the bar.


How to stabilise the camera when it follows a curve path ? Camera is shaking when it follows the curve path

I render a short movie. I set the camera to the circle curve to make it fly in circle. The problem is after render, the camera is a little shaky. Can anyone help me? Thanks first.


I'm not sure how to prove this:  Show that there exists a measurable set $E \subset [0,1]$ such that $$0 < \frac{m(E \cap (a,b))}{b-a} < 1 \text{ for every interval } (a,b) \subset [0,1],$$ where $m$ denotes the Lebesgue measure on $\mathbb{R}$.  I'm having trouble understanding what direction to take with this exercise. Instead of constructing $E$ explicitly, the idea is to show that the class of sets $A \subset \mathcal{L}([0,1])$ (the Lebesgue measurable sets in $[0,1]$) which satisfy the inequality is a countable intersection of open dense sets, and then conclude that it's non-empty using the Baire Category Theorem. I honestly have no idea where to start on this, so any guidance or proof ideas would be appreciated.

This is from problem $8$, Chapter II of Rudin's Real and Complex Analysis.  The problem asks for a Borel set $M$ on $R$, such that for any interval $I$, $M \cap I$ has measure greater than $0$ and less than $m(I)$.  I was thinking of taking the Cantor approach: taking $R$ to be the union of $[a,b]$ with $a$ and $b$ rationals, and for each $[a,b]$ we construct Cantor sets inside it. During theconstruction of each Cantor set, in order to have positive measure on it, we need to take off smaller and smaller intervals from it, namely the proportion goes to $0$. As a result, these Cantor sets are extremely "dense" on their ends. If for an interval $I$ it intersects with the Cantor set on $[a,b]$ while $b-a>>m(I)$, we shall expect the measure of intersection to be rather close to $m(I)$ and then we lose control on these cases.  Is there any way to fix this or shall I consider other approaches?  Thank you


Thanks to  there is a template of a "step by step" programming tutorial (with a sample layout in his question):  .  I wonder if it is possible to achieve similar functionality with source highlighting ?  Simply changing environment from semiverbatim to lstlisting , does not work (as is easy to guess).  %Generate with : `pdflatex filename` \documentclass{beamer} \usepackage{listings} \lstset{     language=C++,     basicstyle=\small,     numbers=left,     numberstyle=\tiny\color{gray}, } \begin{document} \begin{frame}[fragile]% %\begin{semiverbatim} \begin{lstlisting}[language=C++,caption={C++ as C++ TexTests},label=cppascpptextests] \only<1-2>{\frametitle{General program structure}} \only<3>{\frametitle{Variables}} \only<4>{\frametitle{Reading numbers from standard input}} \only<5>{\frametitle{Printing results on standard output}} \only<6>{\frametitle{Assigning results of computation}} \only<7>{\frametitle{Working example :)}} \only<8>{\frametitle{Enjoy programming :)}} \only<4>{(4)How to include needed header file?}\only<5->{\#include <cstdio>} \only<1>{(1) How to construct main function ?}\only<2->{int main() \{}    \only<3>{(3) How to declare variables?}\only<4->{long a,b,c;}    \only<4>{(4) How to read data?}\only<5->{scanf("\%ld\%ld", \&a, \&b);}    \only<6>{(6) How to compute result?}\only<7->{c = a * b;}    \only<5>{(5) How to print result?}\only<6->{printf("\%ld\textbackslash n", c);}    \only<2>{(2) How to exit program correctly?}\only<3->{return 0;} \only<2->{\}} \end{lstlisting} %\end{semiverbatim} \end{frame}  \end{document}

Problem  I want to explain C# programming language step by step using overlay in beamer.cls. But it does NOT works as shown in the following figure.  How to solve this problem?    Code Snippet  \documentclass[dvipsnames,cmyk]{beamer}  \usepackage{listings}  \begin{document}  \defverbatim[colored]\Lst{% \begin{lstlisting}[language={[Sharp]C}] using System; public delegate void Foo(object o); \uncover<1>{public class Foo} \uncover<2>{\{} \uncover<3>{public static void Main()} \end{lstlisting}}  \begin{frame}{MyListing} \Lst \end{frame}  \end{document}


Let's assume I have black card with "player must exile a creature" and one of mine opponents have only one creature on the battlefield, but it has "protection from black".  Does mine card affect his?

Example 1) Let's say I have some random creature with protection from white, and my opponent plays , a white card with the effect "Destroy all creatures." Can my creature with protection from white be destroyed by a white card that isn't actually targeting it specifically?  Example 2) I was playing a match with a friend where I had  on the field against his 3 zombies. Is he able to declare his zombies as blockers even though Elite Inquisitor has "protection" from zombies?  If he can declare them as blockers, does protection mean that no damage is dealt by the zombies to  Elite Inquisitor?


I am primary Windows User and now Learning Linux. There different Software which I need to Install in Linux. I don't have Internet Connection at home. Is there any way that I can download Software in the office using Windows then Install in to Linux. Like Windows you can download Software (setup file .exe) simply run

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


Many years ago I read that the word dog entered the English language when some Dutch traders in late Medieval times brought "dogges" to sell in England.  I do not remember the source.  Has anyone else read or heard of this?

I discovered on  the other day that the word "dog" appears to have come from nowhere and displaced the German word "hund".  Has any research revealed how it arrived in the English language?


The determinant of a matrix can be interpreted as the signed volume of the unit square/cube/hypercube, etc.  Taking the latter as the definition of the determinant, I can understand why, in the $2\times2$ case, the determinant is computed in such a way, yet why is it that when dealing with a $3\times3$ matrix (or more generally, a $n \times n$ matrix) the determinant is computed the way it is?  Would appreciate any help!

For $n = 2$, I can visualize that the determinant $n \times n$ matrix is the area of the parallelograms by actually calculating the area by coordinates.  But how can one easily realize that it is true for any dimensions?


My requirement is to get the number of days between two dates.   For example, the start date is 02/20/2020 to 01/03/2020 I would like to display the results like      Feb 20 Thursday, Feb 21 Friday,....01 Mar Monday.   I went through this scenario in StackOverflow but I didn't get the expected solution for the same.  Could anyone please guide in achieving this scenario using javascript or react?

How do I get the number of days between two dates in JavaScript? For example, given two dates in input boxes:  <input id="first" value="1/1/2000"/> <input id="second" value="1/1/2001"/>  <script>   alert(datediff("day", first, second)); // what goes here? </script>


I am trying too add some text into my host file. I tried this. echo xx | sudo -S cat AddTo_hosts.txt >> /etc/hosts  I still get permission denied. How can I get it to work?

When using sudo to allow edits to files, I regularly get 'permission denied'.  For example, my mouse is jittery and sluggish, so I want to disable polling:  sudo echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf   I'm prompted for a password, and then get:  bash: /etc/modprobe.d/local.conf: Permission denied   So I tried to do a temporary change to disable polling by using:  sudo echo N> /sys/module/drm_kms_helper/parameters/poll   Yet again the system responded with:  bash: /sys/module/drm_kms_helper/parameters/poll: Permission denied   Any ideas?


During my searches I've come to a strange position; The Probit definition in Wikipedia is simple; $$\operatorname{probit}(p) = \sqrt{2}\,\operatorname{erf}^{-1}(2p-1)$$ Then, I've come to a  that explains using  The probit $Y$ of the proportion $P$ is defined by; $$P(Y) = \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^{Y-5} e^{-\frac{1}{2}u^2}du. $$ I've verified both using the Sagemath, but there is no relation that I can see between these two functions. Am I missing something? Are those the same (actually the inverse of each other)? Note: I'm trying to understand the probits on the concept of the $\text{LD}_{50}$.

If the Standard Normal PDF is $$f(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}$$  and the CDF is  $$F(x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^x e^{-x^2/2}\mathrm{d}x\,,$$  how does this turn into an error function of $z$?


I need help with the deep copying of objects in VB.net. I am aware of the fact that there is a great amount of topics dealing with that, but I was not able to adapt it to my problem. So hopefully someone can explain it to me using my code.  The problem: I have designed a class clsParameter which has one name, one unit, one value type and one value. The value can be a double or an object of type clsVectorParameter with the properties X,Y,Z. Now I want to do a deep copy of a parameter so that X,Y,Z are also copied.  Here are the two classes. The clone function below just represents a dummy. I know that it doesn't work like this but I didn't know a better way...  Public Class clsParameter ' Using the ICloneable interface Implements ICloneable  ' Variable definition Private m_Name As String Private m_Unit As String Private m_Type As String Private m_Value As Object  ' Define set and get methods Public Property Name As String     Get         Return m_Name     End Get     Set(ByVal value As String)         m_Name = value     End Set End Property  Public Property Unit As String     Get         Return m_Unit     End Get     Set(ByVal value As String)         m_Unit = value     End Set End Property   Public Property Value As Object     Get         Return m_Value     End Get     Set(ByVal value As Object)         m_Value = value     End Set End Property  Public Property Type As String     Get         Return m_Type     End Get     Set(ByVal value As String)         m_Type = value     End Set End Property  ' Define constructor Public Sub New(ByVal p_Name As String, ByVal p_Unit As String, ByVal p_Value As Object, ByVal p_Type As String)     m_Name = p_Name     m_Unit = p_Unit     m_Type = p_Type     m_Value = p_Value End Sub  ' Define Clone function to create independent copies of parameter instances Public Function Clone() As Object Implements System.ICloneable.Clone     Dim cloneParam As New clsParameter(m_Name, m_Unit, m_Value, m_Type)     Return cloneParam End Function End Class   and the other class:  Public Class clsVectorParameter  Implements ICloneable   ' Variable definition Private m_x As Double Private m_y As Double Private m_z As Double  Public Property X As Double     Get         Return m_x     End Get     Set(ByVal value As Double)         m_x = value     End Set End Property   Public Property Y As Double     Get         Return m_y     End Get     Set(ByVal value As Double)         m_y = value     End Set End Property   Public Property Z As Double     Get         Return m_z     End Get     Set(ByVal value As Double)         m_z = value     End Set End Property  ' Define constructor Public Sub New(ByVal p_x As Double, ByVal p_y As Double, ByVal p_z As Double)     m_x = p_x     m_y = p_y     m_z = p_z End Sub  ' Define Clone function to create independent copies Public Function Clone() As Object Implements System.ICloneable.Clone     Dim cloneVecParam As New clsParameter(m_x, m_y, m_z, "Vec")     Return cloneVecParam End Function End Class   I use the class in this line:  Dim aNewParam As New clsParameter("Name", "Unit", New clsVectorParameter(x,y,z), "Type")   or  Dim aNewParam As New clsParameter("Name", "Unit", Double, "Type")   Later I need to create a deep copy of this aNewParam, so the x,y,z values are also independent for all parameters.  Thank you very much for your help! Best regards,  Sebastian

I want to do something like:  MyObject myObj = GetMyObj(); // Create and fill a new object MyObject newObj = myObj.Clone();   And then make changes to the new object that are not reflected in the original object.  I don't often need this functionality, so when it's been necessary, I've resorted to creating a new object and then copying each property individually, but it always leaves me with the feeling that there is a better or more elegant way of handling the situation.  How can I clone or deep copy an object so that the cloned object can be modified without any changes being reflected in the original object?


I'm building a server for my friends and I would want items to have infinite durability on my server. How can I do that with command blocks? Please include super high unbreaking enchantments! I also do not want mending books!

In Minecraft, is there any way to make tools indestructible (without using mods)? I want to make some tools indestructible (for an adventure map). Is it possible to do this using enchantments (or a command of some kind?)


This is the script that I've written. The first click function works fine but the other two don't work as expected. The  tags follow the href link and the function for its click doesn't work. Is it because they have been created by jQuery and are not in the original html page?  $("#edit-description").click(function(){     $("#add-description").replaceWith( "
<textarea cols='43' rows='9' placeholder='Add a description...'></textarea>UpdateCancel
" );     return false;   });     $("#add-description-cancel").click(function(){     $("#add-description").replaceWith( '
Write a description about the college.
');     return false;   });     $(".u-update").click(function(){     $("#add-description").replaceWith( '
Write a description about the college.
');     return false;   });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.