Am travelling from Bahrain to USA via heathrow international airport on British air way. Do I need to have a transit visa to make this trip?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I am getting a series of what appears to be RAM related errors on a server. Are these something to worry about? This is being used for scientific computation, is there a risk of data corruption that is undetected?  Message from syslogd@heracles at Dec  2 13:03:03 ...  kernel:[Hardware Error]:   MC4_ADDR: 0x0000004603048430  Message from syslogd@heracles at Dec  2 13:03:03 ...  kernel:[Hardware Error]: Northbridge Error (node 4): DRAM ECC error detected on the NB.  Message from syslogd@heracles at Dec  2 13:03:03 ...  kernel:[Hardware Error]: cache level: L3/GEN, mem/io: MEM, mem-tx: RD, part-proc: RES (no timeout)  Message from syslogd@heracles at Dec  2 13:05:33 ...  kernel:[Hardware Error]: CPU:32 MC4_STATUS[-|CE|MiscV|-|AddrV|-|-|CECC]: 0x9c01400004080a13  Message from syslogd@heracles at Dec  2 13:05:33 ...  kernel:[Hardware Error]:   MC4_ADDR: 0x000000460304c070  Message from syslogd@heracles at Dec  2 13:05:33 ...  kernel:[Hardware Error]: Northbridge Error (node 4): DRAM ECC error detected on the NB.  Message from syslogd@heracles at Dec  2 13:05:33 ...  kernel:[Hardware Error]: cache level: L3/GEN, mem/io: MEM, mem-tx: RD, part-proc: RES (no timeout)  Message from syslogd@heracles at Dec  2 13:14:18 ...  kernel:[Hardware Error]: CPU:32 MC4_STATUS[Over|CE|MiscV|-|AddrV|-|-|CECC]: 0xdc15400054080813  Message from syslogd@heracles at Dec  2 13:14:18 ...  kernel:[Hardware Error]:   MC4_ADDR: 0x0000004603048430  Message from syslogd@heracles at Dec  2 13:14:18 ...  kernel:[Hardware Error]: Northbridge Error (node 4): DRAM ECC error detected on the NB.  Message from syslogd@heracles at Dec  2 13:14:18 ...  kernel:[Hardware Error]: cache level: L3/GEN, mem/io: MEM, mem-tx: RD, part-proc: SRC (no timeout)

I have a 64-core AMD server running CEntOS on which I was running a long job. In the midst of the output, I see these lines. It appears to be a memory error. How severe is this and what exactly does it indicate?  Message from syslogd@heracles at Nov  7 21:00:02 ...  kernel:[Hardware Error]: MC4_STATUS[Over|CE|MiscV|-|AddrV|-|-|CECC]: 0xdc10410040080a13      Message from syslogd@heracles at Nov  7 21:00:02 ...  kernel:[Hardware Error]: Northbridge Error (node 4): DRAM ECC error detected on the NB.  Message from syslogd@heracles at Nov  7 21:00:02 ...  kernel:[Hardware Error]: cache level: L3/GEN, mem/io: MEM, mem-tx: RD, part-proc: RES (no timeout)


I was watching a video and there was this step where you had to find your resource folder and I tried finding the folder but I couldn't. I clicked the Windows key and r and it brought me to this run thing. Then I typed %appdata%.minecraft. I tried to find the folder from there but I couldn't I'm on a Windows 10 computer.

I don't have a minecraft folder. I've looked through forums and videos, followed all the steps. I just don't have one. I have windows 7, and I have "view hidden files" turned on. I have look in the roaming folder of my app data folder, with hidden files turned on. I want to find my folder so I can install a mod, could someone please tell me why my folder isn't showing up?


Let's take a standard ACME Thought Experiment Division car with a max speed of a leisurely, constant 0.75c in a straight line.  So, for an external observer, the body of the car behaves like a typical Thought Experiment Car, it's shorter than at rest, the dashboard clock goes slower than the clock in the observer's pocket, and so on.  Thing is, the car uses oft-neglected in thought experiments, wheels.  The surface of the wheel in contact with the road surface remains at rest relative to the road (friction etc). But from the classical mechanics point of view, the upper surface of the wheel would be moving at 1.5c relative to the ground (and the external observer). Obviously this is impossible.  What gives? What shape will the wheels be to the external observer? Will they shatter as the shearing forces grow towards infinity? What shape will they have to the driver of the car?    Just to avoid trivial answers ( e.g. "wheels explode in all directions torn apart by centrifugal force") let's impose some limits:  The wheels are extremely (though, let's say, not infinitely) durable, and quite (though not infinitely) flexible and stiff: you need a very strong force to distort them - certainly more than the their centrifugal force alone. And once that force is exerted it doesn't instantly break them - they distort flexibly for an observable while before an eventual critical failure.  They move over the surface without slipping, and the car's motor provides just enough torque (if any) to keep the car moving at constant speed despite any flexibility/friction/other forces the wheels might exert on it; the car retains its 0.75c no matter what the cost to the wheel integrity or such.

Imagine a bar   spinning like a helicopter propeller,  At $\omega$ rad/s because the extremes of the bar goes at speed  $$V = \omega * r$$  then we can reach near $c$ (speed of light) applying some finite amount of energy just doing   $$\omega = V / r$$  The bar should be long, low density, strong to minimize the amount of energy needed  For example a $2000\,\mathrm{m}$ bar  $$\omega = 300 000 \frac{\mathrm{rad}}{\mathrm{s}} = 2864789\,\mathrm{rpm}$$  (a dental drill can commonly rotate at $400000\,\mathrm{rpm}$)  $V$ (with dental drill) = 14% of speed of light.  Then I say this experiment can be really made and bar extremes could approach $c$.  What do you say?   EDIT:  Our planet is orbiting at sun and it's orbiting milky way, and who knows what else, then any Earth point have a speed of 500 km/s or more agains CMB.  I wonder if we are orbiting something at that speed then there would be detectable relativist effect in different direction of measurements, simply extending a long bar or any directional mass in different galactic directions we should measure mass change due to relativity, simply because $V = \omega * r$  What do you think?


I've recently had some issues with my Dell Vostro laptop and Dell sent me out some OS discs to reinstall Windows 7 Ultimate SP1. I expected to get 64-bit discs in the mail, but instead received 32-bit.   So I called up Dell and asked what type of processor I have. The person on Dell's side said 32-bit. So I looked up my processor: Intel Core i3 CPU M370 @ 2.4GHz, and the documentation I found online says it's a 64-bit instruction set.   So I'm guessing it actually is 64-bit. Should I request new discs?

How can I determine whether my processor is 32-bit or 64-bit? My processor is AMD Phenom 8450 triple-core.


Is the word "mechanics" singular or plural? For example, should I say that the skin mechanics vary or varies?

I'd always thought that words like "physics" and "mathematics" were singular: after all, we say "physics is the study of…" etc. But apparently, according to the the comments , each of these words is actually a "plural noun [usually treated as singular]":   (highlighting/ellipsis added by me) (NOAD = New Oxford American Dictionary)  One, Is this categorization valid? That is, is it correct to say, as the NOAD does, that these words are indeed plural (but treated as singular), rather than to say that they are singular? The accepted answer on that question, by user RegDwigнt, has a different analysis that speaks in terms of “news” being "uncountable", "used with singular verbs", and "etymologically, it used to be a plural form", and thereby carefully avoids addressing this issue, of whether these nouns are indeed plural-treated-as-singular. So my question remains.  Two, If so, what makes these words plural? Is it the fact that they end in s? (Surely "bus" is not plural?) Is it history? (Were they used as plural at some time? How far back in history does one go to decide whether a noun is singular or plural?) Is it the fact that they don't have any distinct forms treated as plural?  Most importantly, why do we even have a grammatical category of "plural nouns treated as singular"? What purpose does it serve, and how are such nouns functionally distinguishable from nouns that are actually singular? When/if the reason is history, is there a rationale for saying "plural nouns treated as singular" rather than "singular nouns that were formerly plural"?  Edit: My question isn't just about "-ics" words, but all words in the category "plural nouns treated as singular" (assuming that the category isn't just -ics words).  Edit 2: The image and part "One" of the question were added later; previously I took for granted that the categorization was valid.


Which of the following URL structures would be best for a non-ecommerce site:  fishingbob.com/fishing-lure-companies  or  fishingbob.com/lure-companies  Would repeating the keyword in the first URL be considered keyword stuffing since I have an important keyword already in my domain name?

For example i have the domainname buyhouse.com The keywords "buy house new york"  buyhouse.com/new-york/   buyhouse.com/buy-house-new-york/   Whats the best url option for SEO?


I've got a MicroSD card which I believe I used as a bootable Raspberry Pi disk many year ago which I now want to reformat. Everything I've tried - disk utility on OSX, Disk Management Windows, Command line, terminal, EaseUS, etc has not worked in either removing partitions, erasing contents or formatting drive. I've also checked and it's not set to read only. Not sure what else to do now!

When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.  Why did this happen and what can I do about it? Is there a way to remove the write protection?  (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.)     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


I'm very new to Java and I don't understand why the value of the variable "A" changes when passed as argument to a function. I do change it's value in the function but I think this shouldn't be a problem since the function creates its own "copy" of the argument.  My project consists of a main function and a class in which my functions are declared and implemented as shown below.      package NewtonRapson;      public class Main {          public static void main(String[] args) {               division2 d2 = new division2();               double A[] = {1, -2, 0, 7};             double B[] = {0,1,1};             double D[];             double res = 0;              d2.imprimir(A);             res = d2.p_eval (A, 0.707);             System.out.println();             System.out.println( res);               d2.p_div(A,B);              d2.imprimir(A);             res = d2.p_eval (A, 0.707);             System.out.println();             System.out.println( res);           }      } `      package NewtonRapson;     public class division2 {         int grado(double A[]){         int grado = A.length -1;         int cont = 0;          for (int i = (A.length - 1); i>= 0; i--){             if (A[i] != 0){break;}             if (A[i] == 0){ cont++; }            }         return grado - cont;         }          double [] incrementar_grado(double A[], int k){             double r[] = new double[A.length];             for (int i = 0; i < A.length; i++){                 r[i] = 0;                     }              for (int i = 0; i < A.length; i++){                 if (i+k < A.length){                     r[i+k] = A[i];                 }                     }         return r;     }          double [] p_div(double A[], double B[]){             double cte;             double C[] = new double[A.length];              while (grado(A) >= grado(B)){                  for(int i = 0; i < C.length; i++){                     C[i] = 0;                  }                 cte = A[grado(A)] / B[grado(B)];                      for(int i = 0; i < C.length; i++){                         if(i >= B.length) break;                         C[i] = -cte*B[i];                       }                     for(int i = 0; i < C.length; i++){                             if (grado (A) > grado (C)){                             C = incrementar_grado( C, grado(A)-grado(C) );                             }                           A[i] = A[i]+C[i];                     }             }             double res[] = new double[grado(A) + 1];             for (int i =0; i< res.length; i++){                 res [i] = A[i];              }             return res;          }          double p_eval(double A[], double x) {             double res = 0;             for (int i = 0; i < A.length; i++) {                 res = res + A[i] * Math.pow(x, i);              }              return res;         }          void imprimir(double A[]){             System.out.println();              for(int i=0;i<A.length;i++){                 //System.out.println( dividir(polinomio,d)[i] );                 System.out.print(  A[i] );                 System.out.print(" | ");              }         }          double [] p_derivar(double A[] ) {              double d[] = new double [grado(A)];             for(int i=0;i< d.length; i++){                 d[i]= A[i+1] * (i+1);             }          return d;            }      }   The reason as to why A changes its value still remains unknown to me.

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?


I have this code,      $('#gogo').click(function(e){      var data='GoogleMicrosoft";             $("#showResults").html(data);      });       $(".myButtons").click(function(e) {         e.preventDefault();         alert($(this).attr("href"));         $("#result").attr("src", $(this).attr("href"));     });   <button id="gogo">Click me</button>

     I was wondering why it is not working. Perhaps is it because there is no event handler of new added html tags?   I don't want to use a target="result"  Thank you.

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.


I am among the batch of students who now require to submit their PhD thesis entirely online instead of paper. While that is good (for the trees), it makes document navigation a bit harder. This is a concern as I feel my external examiner may not be very tech savvy and may be used to turning pages. Is it possible to make a Table of contents where, if I click Chapter 3, subsection 4, I go to that place? Likewise, if I click on the chapter header, I want it to come back to the table of contents (it really helps with navigation). Similarly, I would to click on list of Figure, say, figure no. 4 and go to that spot and vice versa. Oh and the same with references as well?

Possible Duplicate:          I need links for the Table of Contents, so that I can navigate fast to different sections. I apparently need some package.  I tried the package url unsuccessfully.


I was suggesting an edit to a question, while submitting it says:     Oops! Your answer couldn’t be submitted because:   Should this read as Your edit suggestion couldn’t be submitted or better verbiage?

Noticed this on Bicycles, but I presume it affects any Stack Exchange site   Write question Edit question, write a new tag Submit edit   When performing the above steps, I properly get an error message, but it says "answer" instead of "question" or "edit".


i wanted to know what happens in the background when you install a package in linux?

What does the apt-get install ... command do?  When I enter apt-get install ... command, there are some texts appearing on the screen, but that does not have enough information for me. I want to know if any file is created / edited, any service is started and other activities...  Is there any .sh file executed when the apt-get install ... run? If so, how can I see the content of that sh file?  The reason for this question is recently I tried to install tomcat7 with apt-get install tomcat7. Everything works fine until I install tomcat7-admin (manager web application), the server became unresponsive to any request. I tried this many times, and this always happen.


I'm using lightning experience for all new apps.  Is it possible to set the default list view to not Recent in lightning?   This may be something that is in the Summer 2016 release which is what I'm working in for my prototype.

Is there a way to give a profile a different default list view then "Recently Viewed" in Lightning?


I have the following jquery function that auto populates a textbox based on the selection of a radio button option:  <script>     $(document).ready(function() {         $("#DinnerYes").click(function() {             $("#ThursdayDinnerFee").attr("value", 90);         });     });     $(document).ready(function() {         $("#DinnerNo").click(function() {             $("#ThursdayDinnerFee").attr("value", 0);         });     }); </script>   The script works and it auto populates the textbox (ThursdayDinnerFee), but I want the numbers to appear in the textbox as 0.00 and 90.00. I also need to keep the format as number because they will be used in a credit card transaction. If someone could help, I would greatly appreciate it. Thank you.

I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this: "$ 2,500.00"  What's the best way to do this?


What do the Squared Brackets stand for in e.g.  $\mathbb{Z}[\mathrm{i}] $?

I've found  (first answer) this expression: $\mathbb{Z}\left[\sqrt{3}\right]$, where $\mathbb{Z}$ stands for the set of integers. What is the meaning of the expression?


I have an abstract class and I wanted to force all the implementations of the class to implement there own equals and hashCode method. The class has just one method which returns a String.  The abstract class is defined like this  public abstract class Type {    public abstract String getType();    public abstract boolean equals(Object other);    public abstract int hashCode(); }   I have implemented the equals method. Now I am implementing the hashCode method for this class. I have a couple of questions:  1) Is this the right approach to override the == behavior in all implementations of the class.  2) What would be the best way to implement the hashCode method for this class which only has one function that returns a string?  Is this is a duplicate, please point me to the right answer.

What issues / pitfalls must be considered when overriding equals and hashCode?


This is more like a feature-request than a question. Anyway: I have some questions and I would like to delete some of these questions (some have upvoted answers). By deleting I mean that I don't want to show those questions in my profile page. I can send an email to stackoverflow team, but this sounds an overkill to me. I don't care if those questions remain on stackoverflow or on another website network, I simply want to hide them from my profile page.  I am the OP of those questions and I have also a good amount of reputation on stackoverflow +10k, so I think users like me should have this possibility, without resorting to send an email to stackoverflow asking for a complete removal, or flag for a moderator. For example there could be a an option to transfer the ownership of the question to a fake-account such as Community ♦, ONLY for trusted users with, for example, more than 10k reputation. This would be a win-win for both users and stackoverflow:  the questions will not be deleted (i.e. it will continue to get views from Google); the user will not have that question in his profile page AND the user will keep all the downvotes if any;  Maybe give this possibility with a reputation cost, such as each time you hide a question you get -1 reputation and also you keep all the downvotes (if any). Final note: Considering stackoverflow has more than 3 million users, I don't think there is any added value by showing an user nickname under a question (rather than a fake user) if the user doesn't want to be associated with that question.

I think sometimes there is a need to post question as anonymous, reason being to avoid linking content of a question with the identity of the questioner. This may not be so evident or required on technical sites like stackoverflow.com but sometimes is a necessity on sites like  or maybe in future depression.stackexchange.com  On such sites user may not want to link his identity to some questions where he may detail about his being over-weight or skinny or maybe some other attribute which he may like to keep private and avoid making his concerns public, but still want to ask a question with valid data.  I am not suggesting that user asking question should not be registered or not responsible for content. I think all down-votes or up-votes should still be attributed to user, but this way most users would not suffer , and reputation could even be used for a bounty. The only change should be that while asking question a valid registered user can hide his identity (the whole user signature block/user card and the reputation should be replaced by "identity-hidden") and that question should not be listed in his public profile.  Anyway identity of questioner doesn't add much value to question. If we think such anonymous question may reduce social nature of Stack Exchange sites, and maybe majority of questions will become anonymous we can curb that by putting a daily or monthly limit per user or put a price of say 50 reputation per anonymous question.  PS: I don't think this is duplicate of        because motive for question and reason for feature request are different, and I propose a different solution too, because creating another account for asking such questions has many problems which having a single account doesn't have    I don't have to manage other account If I keep single account I still may want to keep my details to be linked to my non-anonymous questions I may want to use reputations I earned as bounty for anonymous questions    also allows anonymous questions and may be we can take some hint from there.


I understand degrees of freedom as the number of things that can independently change.  And typically, in coming up with the degrees of freedom, if you have n terms, then you just subtract out the number of things which aren't independent (the typical example being the n-1 degrees of freedom in the sample variance).  My problem is that I'm not quite seeing how the SSR degrees of freedom (simple linear regression) is just "1" using the previous way of thinking about it.  After a little bit of algebra, I can transform it as:  $SSR=\sum_{i=1}^{n}\left ( \hat{y}_i-\bar{y} \right )^2=\sum_{i=1}^{n}\left[\hat{\beta}_0+\hat{\beta}_1x_i- \left(\hat{\beta}_0+\hat{\beta}_1\bar{x} \right) \right]^2=\hat{\beta}^2_1\sum_{i=1}^{n}\left(x_i-\bar{x} \right )^2$  And, I do see that my $\hat{\beta}_1$ is the only estimator (hence one degree of freedom?), however, I'd like to be able to understand this in a similar context of how I understand the n-1 degrees of freedom of the sample variance, namely "adding up n terms, subtracting out the number of terms that aren't independent" to somehow get 1.

I Googled this, but some answers still leave me confused. One of the answers says:       "I just think of it in terms of the fitted line having 2 parameters, the intercept and the slope. But the intercept doesn't count after we adjust for the mean (which we do in obtaining SStotal), so that leaves just one df for regression."   How can you drop the intercept after adjust for the mean?


I need advice on how I can design an Android browser with an on-the-fly HEVC conversion capability to reduce the file size of media files.   Is there a Stack Exchange site appropriate for this question?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I just installed ubuntu on my brand new built computer. I ended up buying ASUS USB-N53 network adapter for wifi but I cannot connect it to internet. I see few wifi selections but when I click on the wifi, it would only attempt to connect but fails.. please help!!

I bought an ASUS USB-N53 wireless-N Dual-band USB wifi adapter. It does not install on my Ubuntu 11.10 system automatically. I cannot figure out a way to get it installed.  Any advice?


Are there any workarounds for creating a query using the LIKE operator on a set of strings? I would like to create a new object(Exclusions) which would house records that have a field for keywords that should be excluded from a query. I would like to have the method query for the exclusion records, and then exclude the cases where the subject matches any of the keywords the query brings back.   The only workaround I can think of would be using a string query, then looping through exclusion results and adding additional OR clauses with a single LIKE operator for each exclusion record. I feel like there may be SOQL limits I may run into here (string length of query depending on how many exclusion records)?

Is there a way to mix LIKE operator with IN ? Something Like  SELECT Id FROM Account WHERE Name LIKE IN:nameList   Where nameList is list of String? Is this is possible ? (I can make a dynamic query by doing OR with all the elements, but was looking for a more elegant way to do this)


If my friend lets me play his copy of The Witcher 3 via Steam family sharing, is he still able to play Dota 2 while I play The Witcher? If not, am I able to go into offline mode to play The Witcher while he plays? I'm pretty sure Steam does not want you doing this but do they ban people for it or anything like that?

My brother just got me a new computer but he is always on so I can't play his steam shared games. Is there a way to play his games while he is playing a game too?


In almost every Dravidian language, there are two versions of you, one is friendly version and another one is a  respect version.    Is there any respected version of you in English?

From the top of my head, Danish "De" (practically never used), German "Sie", Chinese "您", French "vous", Spanish "usted" are a formal way of addressing someone, especially if one isn't familiar with the addressee. Did English ever have this? It sounds as though Proto-Indo-European might have had this (based on my 4 examples), but perhaps someone can enlighten me?


This may seem like a dumb question, I've tried many different solutions with setting the charset but nothing helps. I've got a database with different texts for each day, some of them has got the letters åäö and when loading the page, åäö is just visible as question marks in a black rhombus.   It's working perfectly on my other page but I can't figure out what's wrong.  Here's my code.  $conn = mysqli_connect($servername, $username, $password, $dbname);                          if (!$conn) {                             die("Connection failed: " . mysqli_connect_error());                         }                          $sql = "SELECT * FROM xxxx WHERE xxx = 'xxxxx'";                         $result = mysqli_query($conn, $sql);                          if (mysqli_num_rows($result) > 0) {                             // output data of each row                             while($row = mysqli_fetch_assoc($result)) {                         echo '                                                                            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />                                                                          '.$row["stackinfo"].'
                         '.$row["monday"].'
                         '.$row["tuesday"].'
                        '.$row["wednesday"].'
                       '.$row["thursday"].'
                        '.$row["friday"].'                                                 ';                                 }     } else {                         echo "0 results";                         }                          mysqli_close($conn);   Also, it would be useful if ü, ø, and æ worked as well.  The db uses latin1_swedish_ci.  Thanks in advance!  Update, the full php but without the table name (just for security.)  <?php                       header('Content-Type: text/html; charset=utf-8');                             define('INCLUDE_CHECK',true);                              require 'connection file';                               $conn = mysqli_connect($db_host, $db_user, $db_pass, $db_database);                             if (!$conn) {                                 die("Connection failed: " . mysqli_connect_error());                             }                              $sql = "SELECT * FROM xxx WHERE ClassID = 'xxx'";                             $result = mysqli_query($conn, $sql);                              if (mysqli_num_rows($result) > 0) {                                  while($row = mysqli_fetch_assoc($result)) {                             echo '                                                                                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                             '.$row["stackinfo"].'
                             '.$row["monday"].'
                             '.$row["tuesday"].'
                             '.$row["wednesday"].'
                             '.$row["thursday"].'
                             '.$row["friday"].'
                                                         ';                                 }                             } else {                                 echo "0 results";                             }                              mysqli_close($conn); ?>

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


As the title suggests is it possible to run LookupOrderedRows with a @variable in the WHERE clause.  SET @getAccounts = LookupOrderedRows(@AccountDE, 25, @orderByClause, "location_id", @AccountLocationId,"column1","true","column2","false")   I have a requirement where the field matches need to be dynamic, and may not be a fixed number of columns to do the match on. Has anyone got a workaround for this?

Using AMPScript, I want to pass from a URL Attribute lookup variables and use these variables in my LookupOrderRows function.   The challenge is that not all lookup variables have to be passed by the URL e.g I might lookup just 'office' or I could also lookup both 'office' and 'score.   I've tried several approaches of Concat the string etc - but can't see to make the lookup work.  Has anyone had any success performing similar?   IF not empty( Requestparameter("office") ) then  Set @field1_name = "OFFICE" Set @field1_value = Requestparameter("office")  EndIf  IF not empty( Requestparameter("specialism") ) then  Set @field2_name = "SPECIALISM" Set @field2_value = Requestparameter("specialism")  EndIf  IF not empty( Requestparameter("score") ) then  Set @field3_name = "SCORE" Set @field3_value = Requestparameter("score")  EndIf   set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc",@Field1_Name,@Field1_Value,@Field2_Name,@Field2_Value,@Field3_Name,@Field3_Value)   My current solution is a lot If then statements and combinations i.e. :  /* OFFICE ONLY*/ IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office) ENDIF  /* OFFICE + ORG*/ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation) ENDIF /* OFFICE + ORG + SPECIALISM */ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation,"SPECIALISM",@input_specialism) ENDIF /* OFFICE + ORG + SCORE */ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND NOT EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation,"Engagement Score",@input_score) ENDIF /* OFFICE + ORG + SPECIALISM + SCORE  */ IF NOT EMPTY(@input_office) AND NOT EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"ORGANISATION_NAME",@input_organisation,"SPECIALISM",@input_specialism,"Engagement Score",@input_score) ENDIF  IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"SPECIALISM",@input_specialism) ENDIF  IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND NOT EMPTY(@input_specialism)  AND NOT EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"SPECIALISM",@input_specialism,"Engagement Score",@input_score) ENDIF  IF NOT EMPTY(@input_office) AND EMPTY(@input_organisation) AND EMPTY(@input_specialism)  AND NOT EMPTY(@input_score) then     set @rows = LookupOrderedRows(@LeadsDE,0,"[Engagement Activity Date] desc","OFFICE",@input_office,"Engagement Score",@input_score) ENDIF


I'm trying to update a maps command blocks to 1.13. I found a spot where it replaces a block with a command block, and the command block needs a command already in it. How do I replace a block with a command block with a command in it? This is what I got so far. /setblock 106 83 159 command_block replace {Command:/scoreboard players test EnderEnterprises Money 750}

Does someone know how to set a command block with a command inside using the setblock command?  I have created this code /setblock <x> <y> <z> command_block {TileEntityData:{Command:"testfor @p[_=1]"}} but it doesn't works.  Do someone know how to do that?


After migrating from windows XP (they still exist ;) I "lost" the disk with 3 partitions on it. One of these partitions  was the windows system disk. This disk is now marked as "unallocated". How do I get access to this disk again?   Thnx for helping out...

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


Yesterday, I couldn't publish a question in Arqade about a game called Waves because there isn't a tag for that game.  What do I have to do when this happens? Is there a site where people can suggest tags?  Note: I'm writing from the SE Android App. I can't know if that exists.

Can someone please create the tag  on our site? We need to have it because        Foo is a recent/upcoming release / edition / model / episode of a popular, established OS / board game / bike brand / TV show   Foo is a hot new language / ingredient / game   we're currently using some other tag for questions about Foo, but it's causing ambiguity with a separate thing that's also named Foo      This is not a joke post. We get a lot of feature requests that ask for this or that tag to be created, and every time, a discussion ensues wherein people explain that there is no "tag creation department" and that community members create tags just by using them. I'm posting this "question" so that future requests of that type can be closed as a duplicate of this, saving time and eliminating redundant conversations for everyone involved.     See also:


I have this CSV with this format, I need to split in 16 Parts, according with the text's:  "MY TEXT","EVER, OK",,,,,,,,,,"The, CARLO","DO","ALFA","OME, GA",,   I have this way, but when appear case's with commas inside "OME, GA" doesn't work.  String[] lineToMap = line.split(",");   How I can control this cases?  Solution  I discovered this library: OPEN CSV, in my Test's work very well, but I have a problem with the codification (strange symbols like � instead ü), with characters like ü, ö, etc.. I'm using languages like German and French. I was testing with UTF-8 but didn't work, Any idea to fix this?  CSVReader reader=new CSVReader(new InputStreamReader(new FileInputStream("data/test.csv"), "UTF-8"),                  ',', '"', 0);          //Read CSV line by line and use the string array as you want           String[] nextLine;           try {             while ((nextLine = reader.readNext()) != null) {                  if (nextLine != null) {                     for (String element : nextLine) {                         System.out.println(element);                     }                                     }                }         } catch (IOException e) {             // TODO Auto-generated catch block             e.printStackTrace();         }

Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it.  A quick google has found  which looks promising.  I just wanted to check what others are using before I couple myself to this API.


I have an object in JavaScript: var obj = {    "a": "test1",    "b": "test2" }  How do I check that test1 exists in the object as a value?

How do I check if an object has a specific property in JavaScript?  Consider:  x = {'key': 1}; if ( x.hasOwnProperty('key') ) {     //Do this }   Is that the best way to do it?


I have folder named play which contains a file damn file (with space). When I use find and pipe the output to tar:  find play/ -name 'damn*' | tar cf archive.tar -T -   It works perfectly. Why does this works The output of find contains space that should cause problem for tar. When I use this command:  tar cf archive.tar $(find play/ -name 'damn*')   bash shows these errors:  tar: play/damn: Cannot stat: No such file or directory tar: file: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors   I'm confused. Why does the first example work?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


How does one change the HREF value of a table using the following
  test1 test2  test3 	 foo1	 foo2	 foo3
   To this:
  test1 test2  test3 	  foo1	 foo2	 foo3
   Essentially I am relabling the anchors based on data from another column. I would prefer to use jquery. THanks!

How can you change the href for a hyperlink using jQuery?


I get a message that no new versions are available. Any idea, why this happens?

Today is the release of Ubuntu 21.04 (Hirsute Hippo). And I can't update to this version. And also I selected ‘Notify me of a new Ubuntu version’ and changed it to ‘For any new version' on the Updates tab on Software & Update, but it's still not working. In addition, in the terminal, I've written: sudo do-release-upgrade -c  And output was: Checking for a new Ubuntu release No new release found.  What should I do?


I have two classes (Date and Employee).  Class Date doesn't have a constructor, but it has 3 variables with their setters.  Class Employee has a constructor where I initialized its variables. But I have to attach the 3 variables in Class Date to it.  I tried using Setter method, but when I run the code, it says that there's an error with:               hire_date.setDay(1); hire_date.setMonth(1);  hire_date.setYear(2018);     //In class Empolyee   private String name;  private Date hire_date;  private double monthly_salary;       public Employee() {         name = "Jody";         hire_date.setDay(1);         hire_date.setMonth(1);          hire_date.setYear(2018);                  monthly_salary = 2000.0;     }   //In class Date   private int day;     private int month;  private int year;      public void setDay(int day) {         this.day = day;     }      public void setMonth(int month) {         this.month = month;     }      public void setYear(int year) {         this.year = year;     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


When applying for a tourist visa via , when it asks me for an address, am I required to specify a hotel or can I directly choose a location from Airbnb?  This differs from other questions as it is specific to how VisaToRussia operates.

I believe there are certain countries which in order to be granted a visa you must submit your intended itinerary. I am pretty sure I've heard Russia is or was formerly such a country.  What do independent travellers do? I've been thinking of hitch-hiking across Russia without a precise plan and a friend of mine has wanted to do a road trip across Russia also without an exact plan.  Is this a no-brainer or is there lots of red tape we would have to deal with? Or is it just official-speak / bureaucracy where they make it look complicated but in practice it turns out to be easy?


I mistakenly answered a question and got voted down. Now, I've learned the lesson, can I delete the answer to cancel the votes (after all, the voting mechanism purpose is to give feedback to the writer, and help the readers to get the right answers)?

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


Consider the following:  $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors  performance powersave $ cat /proc/config.gz | gunzip | grep -i ondemand CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=m   I do not understand why ondemand is not an available governor. Where else do I need to look and what do I need to do to enable ondemand?

I'm trying to change the cpu frequency on my laptop (running Linux), and not having any success. Here are some details:    # uname -a Linux yoga 3.12.21-gentoo-r1 #4 SMP Thu Jul 10 17:32:31 HKT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux  # cpufreq-info cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0:   driver: intel_pstate   CPUs which run at the same hardware frequency: 0   CPUs which need to have their frequency coordinated by software: 0   maximum transition latency: 0.97 ms.   hardware limits: 800 MHz - 2.60 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 800 MHz and 2.60 GHz.                   The governor "powersave" may decide which speed to use                   within this range.   current CPU frequency is 2.42 GHz (asserted by call to hardware). (similar information for cpus 1, 2 and 3)  # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors performance powersave   I initially had the userspace governor built into the kernel, but then I also tried building it as a module (with the same results); it was loaded while running the above commands (and I couldn't find any system messages when loading it):  # lsmod Module                  Size  Used by cpufreq_userspace       1525  0 (some other modules)   And here are the commands I tried for changing the frequency:  # cpufreq-set -f 800MHz Error setting new values. Common errors: - Do you have proper administration rights? (super-user?) - Is the governor you requested available and modprobed? - Trying to set an invalid policy? - Trying to set a specific frequency, but userspace governor is not available,    for example because of hardware which cannot be set to a specific frequency    or because the userspace governor isn't loaded?  # cpufreq-set -g userspace   Error setting new values. Common errors: - Do you have proper administration rights? (super-user?) - Is the governor you requested available and modprobed? - Trying to set an invalid policy? - Trying to set a specific frequency, but userspace governor is not available,    for example because of hardware which cannot be set to a specific frequency    or because the userspace governor isn't loaded?   Any ideas?


I was given the following problem:  Let $f:[0,1] \to \Bbb R $ be a differentiable function on $[0,1]$ such that $f(0)=0$, and $\forall x \in[0,1]$ : $\lvert f'(x)\rvert \le \lvert f(x)\rvert$. Prove that $f(x)=0$ $\forall x \in [0,1]$.  I tried to solve it using mean value theorem iteratively, and got to a point where I have a series that holds $f(x_1) \ge f(x_2)  \ge f(x_3) \ge  \dots $ pretty much stuck from here, is it a good start? any advice on how to move on / solve it differently? Thanks

Let $f:\mathbb{R}\to\mathbb{R}$ be a function such that $f(0)=0$ for all real numbers $x$, $\left|f^\prime(x)\right|\leq\left|f(x)\right|$. Can $f$ be a function other than the constant zero function?   I coudn't find any other function satisfying the property. The bound on $f^\prime(x)$ may mean that $f(x)$ may not change too much but does it mean that $f$ is constant?  I thought for a while and found that $f^\prime(0)=0$ and by using mean value theorem, if $x\neq0$ then there's a real number $y$ between $0$ and $x$ such that $\left|f(x)\right|=\left|xf^\prime(y)\right|\leq\left|xf(y)\right|$. Anything further?


Is there a cubic $Q(x)\in \mathbb{Z}[x]$ so that $|Q(p_1)|=|Q(p_2)|=|Q(p_3)|=|Q(p_4)|=3$, where $p_1, p_2, p_3, p_4$ are distinct primes? Clearly there must be at least one $Q(p_i)=3$ and at least one $Q(p_j)=-3$ (otherwise there will be 4 roots of a third degree polynomial) Lets suppose that $Q(p_1) = 3$ and $Q(p_2) = -3$. $Q(p_1) - Q(p_2)/ (p_1-p_2) = n$ where $n \in \mathbb{Z}$ The dividers of $6$ are $1, 2, 3, 6$.  $(p_1-p_2) \in \{1, 2, 3, 6\}$ That’s what I’ve got so far.

Here's an interesting question I came across.The person who gave it to me told me that it should not take more than $3$ minutes to solve this question. But I could not find any definite solution :( Maybe you guys could give me some help.Any hints would be appreciated.Here's the question:  Let $f(x)$ be a polynomial with integer coefficients. Suppose for $5$ distinct integers $a_i$, $1\le i\le5$, $f(a_i)=2$. Find an integer b (if it exists) such that f(b) = $9$.


I'm looking for an app like KeyCue for the Mac that will reveal all the keyboard shortcuts for the app you are currently using. For example in Photoshop the app would display a list of all the photoshop keyboard commands. Such a thing might not be possible on windows.  Are there any?

Is there any way to get a list of the system-wide keyboard shortcuts currently in use, including what programs they are attached to?  I have noticed that some are overriding others unexpectedly and a couple are mysteriously tied up with something, on my main computer.


How will I be able to apply a hamming code that is a single error correcting code,any non-codeword is distance 1 from a unique codeword to show that the weight distribution of the binary hamming code $H_2(r)$ follows the recurrence relation $\begin{pmatrix} n \\ \omega \end{pmatrix}=A_\omega+(\omega +1)A_{\omega +1}+(n-\omega +1)A_{\omega -1}$, for $\omega \geq 1$ where n is the length of $H_2(r)$?

Define $A_i$ as the number of words in binary Hamming code of weight $i$. Prove:   $$A_1=0, A_0=1$$   $$(i+1)A_{i+1}+A_i+(n-i+1)A_{i-1}= {n \choose i}$$   I am a tad clueless as to how to proceed. I can show that for a given weight $i$, the number of columns of such weight of the parity-check matrix $H$ are precisely $n\choose i$. Every codeword $c$ of Ham must hold $c*H^t$. Furthermore, I can describe the generating matrix $G$ as being a matrix of the form [$A|I_{n-r}$], where there are $n\choose i$ rows in $A$ of weight $i$, for $2\le i \le n$.  I am certain the proof has to do with these two properties, yet I am unable to connect the points. Perhaps a proof with induction could be of use?  Any hints/direction towards the right way and what I should be looking at or focusing on will be extremely appreciated!


Show that the congruence   $$(x^2 - 2)(x^2 - 3)(x^2 - 6) \equiv 0 \text{ mod } p$$   For every prime $p$   I am quite stuck on this problem and not sure how to approach it. Do I argue by contradiction?

So far: I know that$\mod(p)$ is a field thus one of the factors in the expression has to equal $0$ $\mod(p)$ for some $x$. However I just don't know where to continue from this point? How do I approach a congruency like this? Are there any general tips for problems like these?  Thanks for all the help.


This is supposed to be an application of AM-GM inequality.     if $abc=1$, then the following holds true: $a^2+b^2+c^2\ge a+b+c$   First of all,  $a^2+b^2+c^2\ge 3$  by a direct application of AM-GM.Also,we have  $a^2+b^2+c^2\ge ab+bc+ca$  Next,we consider the expression  $(a+1)(b+1)(c+1)=a+b+c+ab+bc+ca+abc\le a+b+c+a^2+b^2+c^2+1$  but that hardly helps.I know that  $3(a^2+b^2+c^2)\ge (a+b+c)^2$  From the first derived inequality,we know that the left hand side of the above inequality is greater than or equal to 9.But I can't see how that can be used here.I know that we can get $a+b+c\ge 3$ using AM-GM but that does not take me a step closer to finding the solution(from what I can understand).Also,  $a^3+b^3+c^3\ge a^2b+b^2c+c^2a$  $(a+b+c)[(a-b)^2+(b-c)^2+(c-a)^2]\ge a^2b+b^2c+c^2a$ A hint will be appreciated at this point.

Let $a, b, c$ be positive real numbers such that $abc = 1$. Prove that   $a^2 + b^2 + c^2 \ge a + b + c$.   I'm supposed to prove this use AM-GM, but can't figure it out. Any hints?


In classical mechanics non-relativistic Lagrangians rely only on the coordinates and their first derivatives to describe a physical system. Is there a deep reason why particle acceleration etc does not make an appearance as a Lagrangian argument?

Why is the Lagrangian a function of the position and velocity (possibly also of time) and why are dependences on higher order derivatives (acceleration, jerk,...) excluded?  Is there a good reason for this or is it simply "because it works".


I am trying to add some JSON format as listing to a slide but I am getting the error:     Paragraph ended before \lst@next was complete.   How can I add a listing in the latex beamer?  code  \documentclass[xcolor=dvipsnames]{beamer}  \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usetheme{Antibes} \usecolortheme[named=Maroon]{structure}  \setbeamercovered{transparent}   \title{Test} \author{Alex XYZ} \institute{University XYZ} \date{20.01.16}    \begin{document} \beamertemplatenavigationsymbolsempty  \begin{frame} \titlepage \end{frame}  \begin{frame}{Service Provider - Request and Response}  \begin{lstlisting} {   "mac": "10:B5:S3:06:C6:E9",   "route":0,   "latitude":53.834588,    "longitude":10.704048,     "time":"12.09.2015 13:45:00",   "speed":3,   "direction":"",   "flag": "true" }   \end{lstlisting}  \end{frame}  \end{document}

I want to put some PHP code in my slide with the package listings but I have this error message:  Argument of \frame has an extra }.<inserted text>\par }   My latex code :   \documentclass{beamer}  \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} \usepackage{setspace} \usepackage{color} \usepackage{listings}  \usetheme{CambridgeUS}   \begin{frame} \begin{large}     Contexte : \newline \pause \end{large}  \begin{itemize}     \item Avertir Drupal \end{itemize} \begin{lstlisting}  // Gestion du contexte ete2013 // Utilisation d'un nouveau template if (%variables['ctpage'] == "ete2013") {     variables['template_files']=array('page-ete'); } \end{lstlisting} \end{frame}


Salutations.  I have a question about evolving certain pokemon. I have a Golbat with a CP of 242 and has two sets of attack with (10,15) power respectively. I also have another Zubat with CP of 105 but with a attack set of (10,25). Which one should I evolve? I am confused between whether to prioritize attack sets or CP for evolution. Thank you!

Many people are evolving their pokemons based on the CP. However, there's a growing number of people evolving based on Moves instead of CP. In other words, choosing pokemons that have the highest Moves to keep, even if it isn't necessarily the highest CP. I am new to pokemon and don't quite understand the difference between the two. Thus, which strategy is better?


I am happy to maintain the sites that I create for customers, but I want to make sure their site will be maintainable into the forseeable future, no matter who maintains it, be it me or someone else.  Suppose, WLOG, the site is running on a VPS somewhere.  As the maintainer, certain aspects of the site's configuration are important to know about (in no particular order):   VPS login credentials (username and password / SSH key) SQL root password Web server setup (apache vs nginx, htdocs locations if the VPS services multiple different domains, etc., any customized configuration settings) SSL setup (if done via Certbot, otherwise expiry date and any other relevant details) Whether site's files exist in a git repository (I almost always run git init inside the htdocs folder just to get some level of source control and safety) Any other unique aspects of the site's functionality such as SystemD daemons necessary for its operation, etc, etc.   How do you document all of this for the future maintainer?

Assuming you are micro independent software vendor (MISV) or one man web shop (OMWS), how do you reduce your ?  In my specific case, I'm supporting a few websites that takes me a few minutes every couple of weeks when there is an update to publish, and once a year I renew the domain name. Easy tasks, but effectively I am the only person who has all the credentials. Ideally I would like to sleep better knowing that even if I become incapacitated there will be someone to support these online entities. I would like to know what are the best practices and what are the interim solutions. In essence: How do you ensure websites run smoothly after your death? (I guess very few have hands-on experience here) My suggestions:  deposit credentials / sensitive URLs in a safe box (next to your will) pay upfront for 10 years of hosting / domain (and teach someone how to extend this lease) create a trusted peer circle so you can exchange credentials (just in case) create a company, become CEO, cash out on IPO  (this is obviously not the case since supporting websites is not a lucrative business)  Or maybe there is already a service that securely stores all the credentials and takes action if the primary point of contact is out of reach? (if you want to grab this idea and build a startup please take me onboard) Related: . Someone can live without my Gmail account, but someone will not be happy if their website dies and domain is squatted on by a main competitor...you get the point.  I believe this is an issue that applies to many webmasters and I'd be inclined to know the answer or at least some ways to make this easier to manage.


Given: $A_1 = \{a, b, c\}$ We can say: $a ∈ A_1$. For: $A_2 = \{\{a, b\}, c\}, A_3 = \{\{ \{a, b\}, c\}, d\}$, $a$ is somewhere in $A_2$ and $A_3$ What is the notation and what is the formal word (similar to ‘is element of’ or ‘is subset of’) to say $a$ ‘is element of $A_3$ or is element of subset $A_3$ or is element of subset of subset…’ regardless to the level of nestedness?

Assume I have a set, the elements of which may be sets, some of which may have sets as elements in turn, and so on. Is there an operator or a convenient way to express this relationship?


I am using Amelia for multiple imputation, and I am satisfied with the imputed results. But I want to restrict the imputed variable to positive values. Is there a way that Amelia can handle it or should I use some other package which can take care of it.

I would like to use imputation for replacing missing values in my data set under certain constraints.   For example, I'd like the imputed variable x1 to be greater or equal to the sum of my two other variables, say x2 and x3. I also want x3 to be imputed by either 0 or >= 14 and I want x2 to be imputed by either 0 or >= 16.   I tried defining these constraints in SPSS for multiple imputation, but in SPSS I can only define maximum and minimum values. Is there any way to define further constraints in SPSS or do you know any R package which would let me define such constraints for imputation of missing values?  My data is as follows:     x1 =c(21, 50, 31, 15, 36, 82, 14, 14, 19, 18, 16, 36, 583, NA,NA,NA, 50, 52, 26, 24)    x2 = c(0, NA, 18,0, 19, 0, NA, 0, 0, 0, 0, 0, 0,NA,NA, NA, 22, NA, 0, 0)    x3 = c(0, 0, 0, 0, 0, 54, 0 ,0, 0, 0, 0, 0, 0, NA, NA, NA, NA, 0, 0, 0)    dat=data.frame(x1=x1, x2=x2, x3=x3)    > dat        x1 x2 x3    1   21  0  0    2   50 NA  0    3   31 18  0    4   15  0  0    5   36 19  0    6   82  0 54    7   14 NA  0    8   14  0  0    9   19  0  0    10  18  0  0    11  16  0  0    12  36  0  0    13 583  0  0    14  NA NA NA    15  NA NA NA    16  NA NA NA    17  50 22 NA    18  52 NA  0    19  26  0  0    20  24  0  0


I'm compiling a table comparing the usage of prepositions 'in' and 'at' with the word 'university' using example sentences. Which preposition would be best suited to the following sentence:  I'm in my third year in university. I'm in my third year at university.  Explanations accompanying your answer would be much appreciated, and if possible, a rule of thumb non-native speakers can follow when choosing between 'in' and 'at'.

Is at university more common than in university?   I wish to convey a meaning that I am expecting life in/at university, which one shall I use?


In HTML, only text controls like text-box, text-area, password-box have read-only property. Why didn't they support check-box/radio-button?  I know I can achieve this feature using script by putting onclick="return false;". (I don't want any workaround, I want to know only the reason for not providing native support to achieve this)  But my question is there any specific reason for not supporting read-only in check-box/ radio button even-though it accepts input from user.  EDIT 1: I found  but it doesn't answer my question - Why there is no native way to restrict the user to change the state without disabling it?

I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything.  I'd rather not use Disabled, since I want the checked check boxes to be submitted with the rest of the form, I just don't want the client to be able to change them under certain circumstances.


So I'm having a bit of trouble with my Ubuntu 13.10 installation. I cannot for the life of me figure out what I did to break it, I think it had something to do with an update not finishing. Anyway, When I got to check for updates or try and install a package I get the following errors:  Updating Software:  THE PACKAGE SYSTEM IS BROKEN Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f  Installing a package from the repos (in this case compiz, for the sake of example):  dj@ThetaDome:~$ sudo apt-get install compiz [sudo] password for dj:  Reading package lists... Done Building dependency tree        Reading state information... Done compiz is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  ca-certificates-java : Depends: ca-certificates (>= 20121114) but it is not going to be  installed  liblwp-protocol-https-perl : Depends: ca-certificates but it is not going to be installed  libwww-perl : Depends: ca-certificates but it is not going to be installed  python-httplib2 : Depends: ca-certificates but it is not going to be installed  python3-httplib2 : Depends: ca-certificates but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   This is the result of apt-get -f install:  dj@ThetaDome:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following package was automatically installed and is no longer required:   libc6-i386 Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded. 2 not fully installed or removed. Need to get 183 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ saucy/main ca-certificates all 20130610 [183 kB] Fetched 183 kB in 0s (262 kB/s)          dpkg: error processing ca-certificates (--configure):  package ca-certificates is not ready for configuration  cannot configure (current status `half-installed') dpkg: dependency problems prevent configuration of python3-httplib2:  python3-httplib2 depends on ca-certificates; however:  Package ca-certificates is not installed. dpkg: error processing python3-httplib2 (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.        Errors were encountered while processing:  ca-certificates  python3-httplib2  E: Sub-process /usr/bin/dpkg returned an error code (1)   Can anybody please help me resolve this issue? I'd like to troubleshoot through this problem and keep my installation!   What happens when you try to remove one of these packages?  sudo apt-get purge ca-certificates Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  ca-certificates-java : Depends: ca-certificates (>= 20121114) but it is not going to be installed  liblwp-protocol-https-perl : Depends: ca-certificates but it is not going to be installed  libwww-perl : Depends: ca-certificates but it is not going to be installed  python-httplib2 : Depends: ca-certificates but it is not going to be installed  python3-httplib2 : Depends: ca-certificates but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I just recently bought an arduino and requires gcc-avr/avrdude to compile the software. I installed avr for another microprocessor component a while ago but is obviously an outdated version (gcc version 3.3 20030512 (prerelease)) so I went ahead to update these but it didn't work.   (Please note that before hand I also broke my aptdaemon through an incomplete wine installation (couldn't get passed font installation agreement) but I fixed that via a re-installation then accepting the agreement.)   I am trying to update these by running  but the dependencies it requires cannot be installed due to avr... terminal reports   Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. libncurses5-dev is already the newest version. libncurses5-dev set to manually installed. libusb-0.1-4 is already the newest version. libx11-dev is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: arduino-core : Depends: gcc-avr but it is not going to be installed avr-libc : Depends: gcc-avr (>= 1:4.3.4) but it is not going to be installed Depends: binutils-avr (>= 2.20) but it is not going to be installed binutils-dev : Depends: binutils (= 2.21.0.20110327-2ubuntu3) but 2.21.0.20110327-2ubuntu2 is to be installed libcwidget-dev : Depends: libcwidget3 (= 0.5.16-3ubuntu2) but it is not going to be installed Depends: libsigc++-2.0-dev but it is not going to be installed Depends: libncursesw5-dev but it is not going to be installed libmpfr-dev : Depends: libgmp3-dev (>= 4.2.dfsg-1) but it is not going to be installed python-dev : Depends: python (= 2.7.1-0ubuntu5.1) but 2.7.1-0ubuntu5 is to be installed Depends: python2.7-dev (>= 2.7.1-1~) but it is not going to be installed tk8.4-dev : Depends: tk8.4 (= 8.4.19-4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   But running   apt-get -f install   results in   (Reading database ... 163021 files and directories currently installed.) Unpacking binutils-avr (from .../binutils-avr_2.20.1-1ubuntu2_i386.deb) ... dpkg: error processing /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb (--unpack): trying to overwrite '/usr/bin/avr-size', which is also in package avr-binutils 2.13.90.030512-2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Unpacking gcc-avr (from .../gcc-avr_1%3a4.3.5-1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb (--unpack): trying to overwrite '/usr/bin/avr-g++', which is also in package avr-gcc-c++ 3.2.90.20030512-2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried running update manager and updating my system via it but all I get is an error message  The following packages have unmet dependencies: arduino-core: Depends: gcc-avr but it is not installed avr-libc: Depends: gcc-avr (>= 1:4.3.4) but it is not installed Depends: binutils-avr (>= 2.20) but it is not installed   which then tells me to try running apt-get -f install which just results the same as last time.  So how can I fix my system, I really need the new avr, please :) BTW, my system is Ubuntu 11.04


I have this program that requires libbz2-1.0.so.1. I recently downloaded the libsdl1.2 library for i386 which is what the program was saying it required before. When I attempt to run the program, however, it still responds saying that it doesn't have the the other library libbz2-1.0 despite the fact that its in my /lib/x86_64-linux-gnu/libbz2.so.1.  kyle@GamingPC:~$ /home/kyle/golly/powder-89.2-lin32/powder  /home/kyle/golly/powder-89.2-lin32/powder: error while loading shared libraries: libbz2.so.1: cannot open shared object file: No such file or directory   I guess I need to explicitly state where the required library is or something, which honestly seems very inefficient.

I have a 64-bit version of Ubuntu 13.10.  I want to run a 32-bit version of a program.  However I see ia32-libs is not included in 13.10.  Is there a replacement package for this or what?


Suppose $N=111\dots1$ ($n$ ones). For which numbers $n$ is $N$ prime?  $n \ne 1, 3k$ is all progress I have made!

For which $n$ is the sum: $$\sum_{k=0}^{n}10^k$$ a prime number? Are they finite?


I'm trying to convert an answer into a comment, but the system keeps rejecting my conversion with an irrelevant reason:    Well, I guess the message is true, but not particularly relevant in this situation

Apparently, an image is not worth a thousand words, as without at least a few words this won't meet quality standards.


Successfully filled a glass with wine, and the liquid (wine) creates a nice smooth skin on top, but!... the bottom of the wine, which is also visible through the glass, doesn't bother to smooth out, and looks kinda lego'ish.    Any ideas on how to coax the liquid physics to apply its smoothness where the wine meets the surface of the glass?

Hi Guys, this is my first time to make a fluid simulation. However, I got some problem. The surface looks so weird. I am trying to make an animation so I do not decide to use sculpt mode to fix it. Is it any other method to fix this problem


Definition. A subset $E$ of a metric space $(X,\tau)$ is compact if every open cover of $E$ has a finite subcover.    Theorem (Compactness Theorem). A set $\Gamma$ of formulas is satisfiable if and only if every finite subset $\hat \Gamma\subseteq \Gamma$ is satisfiable.  I've recently began studying metric spaces, and I remembered about the compactness theorem for propositional logic, so I wanted to know what's the connnection between it and the notion of compactness. Could someone explain this in rather simple terms?

In logic, a semantics is said to be compact iff if every finite subset of a set of sentences has a model, then so to does the entire set.   Most logic texts either don't explain the terminology, or allude to the topological property of compactness. I see an analogy as, given a topological space X and a subset of it S, S is compact iff for every open cover of S, there is a finite subcover of S. But, it doesn't seem strong enough to justify the terminology.   Is there more to the choice of the terminology in logic than this analogy?


I have a 2 week old blog with 10 articles. Submitted to google search console and sitemap is also submitted. Used yoast seo plugin and on page optimization is good.  The problem   When I type one of my blog headline (it's unique) in google and search, my blog isn't appearing in any page of google search result.  Why is that?

It's been sometime and Google has yet to index my site. How can I get Google to index my website?


I am having a mighty difficult time interpreting the following results given to me based on a generalized linear model with a Poisson distribution:    Data: data represents the number of visitors to a store and whether their visits were necessary (they really needed something) while they were store members or not. Comparing stores 1 and 2.   Question 1: I am trying to interpret the meaning IRR here. What does IRR of 0.77 mean for Unnecessary category? Also, what does IRR of 1.12 mean (since it's above 1).   Question 2: so given all z-values are below 2, does it mean none of the results are statistically significant?

So, I want to fit a random effects negative-binomial model. For such a model STATA can produce exponentiated coefficients. According to the help file such coefficients can be interpreted as incidence-rate ratios. Unfortunately I am not a native English speaker and I do not really understand what incidence-rate ratios are or how I could translate them.  So my question is, how can I interpret incidence-rate ratios. E.g.:  If the model gives me an incidence-rate ratios of .7 for one var. would that mean that the number of expected observations (counts) on the dependent var. changes by .7 if the independent var changes by one unit?  Can anyone help?


I've been looking for a proverb like the one below for long, and some people say its root is British English. But the more I search, the more I get disappointed. Would any one please tell me the correct form of that proverb if any?     I'm not rich enough to buy cheap things!

I'm looking for other proverbs similar to "We're not rich enough to buy cheap things". This is because I want to use it for a similar but a little bit different purpose. I want it to be meant that to get something valuable you must pay more than the price that is common place.


Today I saw, someone has written      I got 70+ application forms   What is the purpose of the plus sign in that statement?

What's the meaning of 90-plus? More than 90? If so, please tell me more ways to say "more than 90". Thank you!


Suppose I have a program called mktemp which creates a random tmp directory in /tmp and also produces a string output of the directory address  Input[0]: mktemp Output[0]: /tmp/tmp.MkrKAscwwk   How can I redirect the output of mktemp so that I can change my directory to that I just created? Meaning I Don't have to do cd /tmp/tmp.MkrKAscwwk.

How to store output command in a variable and use this variable again for next command after pipe?  lsblk | awk {'print $1'} | grep ^sd | parted $input mklable gpt mkpart primary "1 -1" -s   $input is output lsblk | awk {'print $1'} | grep ^sd command and use $input again in parted command.


I am trying to print an array of some prime numbers which are divided by a number, the output I get for this code:      [J@15db9742     How can I print the array I get by the function.  public static long[] primes(int n) {     int count = 0;     long arr1[] = new long[n];     for (int i = 2; i < n; i++) {         boolean prime = true;         if (n % i == 0)             for (int j = 2; j < i && prime; j++) {                 if (i % j == 0) prime = false;             }         if (prime && n % i == 0) {             arr1[count] = i;             System.out.println(arr1[count]);             count++;         }     }      long arr[] = new long[count];     for (int i = 0; i < arr.length; i++) {         arr[i] = arr1[i];     }     return arr; }

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I have been invited to travel to the US in June and my trip would be fully paid for.  I live in Mexico but I was born in Italy and have dual citizenship. I would like to  use my Italian passport to enter and exit the US under the Visa Waiver Program and I already have an approved ESTA application to do so.  I have doubts regarding what to do when leaving Mexico. According to the ESTA website, I would need to board the plane using my Italian passport, but if I only use that for check-in, they would consider me a foreigner and ask me for my FMM paperwork. Of course I could show them my Mexican passport as proof of residency, but could they use both to process my flight? With my Mexican passport, I would fill the "Solicitud de salida del territorio nacional para mexicanos", a small paper that is used to track nationals when leaving Mexico. But, would the airline accept my Italian passport and my Mexican passport and paperwork at the same time for boarding? Is this even possible? I do not know where to find more information.

I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?


I would like to align the caption of my table to the left of the entire document. I checked for some similar questions but those were asking to align caption to the left of the table.  Here's an MWE. The code for the table was generated automatically via an R package. I'm new to latex and can only suspect that it's something in the table's code.  Please have a look and help me out!  Thank you.  \documentclass[aspaper,12pt,titlepage,oneside]{report} \usepackage[a4paper,left=40mm,right=25mm,bottom=25mm,top=25mm]{geometry} \usepackage{titlesec}  \begin{document} \chapter{Chapter!} \begin{table}[!htbp] \centering      \caption{Chi-Square Test on Demographics}      \label{}      \begin{tabular}{@{\extracolsep{5pt}} ccc}          \\[-1.8ex]\hline          \hline \\[-1.8ex]          variable & stat & pValue \\          \hline \\[-1.8ex]          Gender & $0$ & $1$ \\          Level of Education & $5.658$ & $0.129$ \\          Forecast Expertise & $0$ & $1$ \\          Forecast Education Type & $1.380$ & $0.710$ \\          Use of Calculator & $0.573$ & $0.449$ \\          \hline \\[-1.8ex]      \end{tabular}  \end{table}  \end{document}

How to make table caption left-aligned.  I tried \usepackage[singlelinecheck=off]{caption} but it did not work out. In other words it gives an error:   \DeclareFloatFont                       {tiny}{\tiny}% "scriptsize" is defined by floatrow, "t...       \documentclass[a4paper]{article}     \usepackage{graphicx}     \usepackage[cmex10]{amsmath}     \usepackage{mathtools}     \usepackage[usenames]{color}     \usepackage[table]{xcolor}     \usepackage[left=2cm, right=2cm]{geometry}     \usepackage{authblk}      \usepackage{floatrow}     \usepackage[labelsep=space]{caption}      \DeclareFloatFont{tiny}{\tiny}     \floatsetup[table]{font=footnotesize,capposition=top}      \linespread{1.6}     \renewenvironment{abstract}{%     \noindent\bfseries\abstractname:\normalfont}{}      \newcommand{\affilmark}[1]{\rlap{\textsuperscript{\itshape#1}}}      \begin{document}      \centerline{\LARGE Title}     \vspace*{3ex}     \begin{flushleft}\large     A.B \affilmark{a},\quad     A.D\affilmark{b}\\[2ex]     \normalsize\itshape     \textsuperscript{a}\,University of nowhere,\     \upshape Corresponding author's email: \texttt{A.D@ieee.org}     \end{flushleft}     \date{}      \begin{abstract}     abstract goes here     \end{abstract}       \section{Introduction}     some text goes here.      \begin{figure}[!t]     \includegraphics[width=0.4\textwidth, height=0.2\textwidth]     \ffigbox[\FBwidth]     \caption{Conventional  (a) ABCD. (b) EFGH.}     \label{ABCDEFGH}     \end{figure}      \begin{table}[!t]      \caption{performance of .}     \label{tableII}     \centering     \definecolor{latexbl}{RGB}{28,220,240}     \rowcolors{12}{black}{latexbl}      \begin{tabular}  {|m{0.8cm}|m{0.6cm}|m{1.35cm}|m{1.1cm}|m{1.5cm}|m{1.1cm}|m{1.4cm}|m{0.7cm}|m{1.75cm}|m{1.2cm}|m{0.5cm}|}     \hline     \center Ref. & A &  B& C & D& E& F &G &H&I &J\\     \hline     \end{tabular}     \begin{flushleft}     some explanation     \end{flushleft}     \end{table}     \end{document}   EDIT BY LOCKSTEP (moved from separate "answer"):  Here's a compilable example that doesn't show the problematic behaviour mentioned by you. Please use it as start-up aid to post a compilable example which does show the behaviour.  \documentclass{article}  \usepackage{floatrow} \usepackage[singlelinecheck=off]{caption}  \begin{document}   \begin{table} (Table content) \caption{A table} \end{table}  \end{document}


I have 100 names no passwords and i have to create accounts for them under directory /home/top100  how do I do this? Because using useradd 100 times does not sound fun, and even if i did, I have no clue how o make the accounts appear under /home/top100/ directory.

I have a set of users I need to add to a new system as part of a BASH script that preps my server. How can I non-interactively add the user, create their home directory, set the group, and enter a default password?  For example, if I needed to add the following users, how would I go about that?  user: node password: spoon group: ultraMegaPermissions  user:serve password: spoot group: sortaNotMega  user:watcher password: spoogle group: notMega


My boyfriend (Peruvian citizen) is coming to visit me in the Philippines. He has a connecting flight to Narita airport that has a 2hour layover. Does he need a transit visa?

I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita?


I used the "type on a path" to make a curved textbox on the top of a circle but when I want to have the text curved on the lower part of the circle it has to be upside down.. Any help is appreciated.

I'm using adobe illustrator, and I'm trying to get the text to orient from left to right(counterclockwise) and not upside down but I cannot get it to do that on the path I've created. Im pretty beginner with illustrator, any help would be greatly appreciated. thank you


I have a question on creating a batch script. I want to get the folder name as a variable in inside a path. For example:  I have a path, E:\ and there is several folders, i.e., E:\folderA, E:\folderB.  Could anyone tell me how to run a for loop and set the name of the two folders, folderA and folderB, inside a variable in a for loop using batch file?

How can I iterate over each file in a directory using a for loop?  And how could I tell if a certain entry is a directory or if it's just a file?


I am using a specific preamble for my thesis, a preamble which I cannot say I completely understand. Sometimes large gaps appear between paragraphs or between text and math equations although there is no visible pattern. Does anyone have any idea ? Thanks.

I use \documentclass{book}.   If I use \flushbottom, I get messages of the sort Underfull \vbox (badness 10000) has occurred while \output is active []. See . These messages disappear when I use \raggedbottom but then of course the height of page content varies form page to page.   So there seems to be no optimal solution but a trade off between to "evils" ... What is the point of view of LaTeX pros on this matter? Which option should be chosen in this situation?


By axiom of infinity, we have a set. By axiom of specification, we can create all of its subsets. By axiom of pairing and axiom of unions, we can create a set containing all of theses created subsets.   Example: Suppose a set $S$ has $a,b$ and $c$ as its only distinct subsets. (Well it isn’t possible, but for the time’s sake let it be. It is also applicable for correct number of subsets.) Now, by pairing we have $\{ a,b\}$ and $\{ c\}$. By pairing again, we have $\{ \{ a,b\} ,\{ c\} \}$. By union, we have $\{ a,b,c\}$.  We have thus constructed the power set of the given set.  Why then do we need axiom of powers?

What does the axiom of power set add to ZF or ZFC set theory?    More specifically, it seems that once the axiom of infinity and the axiom schema of specification are used, then all of the elements of the power set of integers, P(N), could exist.  If that is true, then wouldn't the axioms of pairing and union ensure that P(N) itself also existed?  P(N) contains many elements that are not computable sets:    Perhaps the axiom schema of specification could not be relied upon to assert the existence of any element of P(N) that is not computable (because there is no specifying formula)?  So, what is the point of the axiom of power set?  It must add something to the other axioms...  What elements of P(N) would not exist without the axiom of power set?  Bonus question:  Given the existence of P(N), could the axiom schema of specification be used to assert the existence of...:  $$\{ p \in P( \,\mathbb{N}) \, : p \text{ is a computable set} \}$$  ...where the formula for determining whether a set is computable is itself non-computable (think halting problem) and may not exist even though it is easily defined?  I'm wondering what the limitations are when it comes to formulas that can be used in conjunction with the axiom schema of specification, thinking maybe it allows formulas to be used that literally cannot exist...


Which steps do we have to perform in Ubuntu 14.04.2 when there's no icons and terminal window...  How to open a terminal window? Because when I type ctrl+alt+t I still get no response.

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


I am wondering if there is any tool or way to kind of Weld (merge) multiple vertices at once,     AltM > Merge at Center doesn't do the job.    Doing by one takes a lot of time so it's inefficient way of going about it.

This is a Q&A so I answer it myself. I searched for an answer to this question for ages and didn't find anything so I'll add this here if anybody else struggles with the same issue.  So, how can I merge two edge loops to one? I do not want to connect them (I have seen many answers that suggest to just bridge the edge loops), nor do I want to merge each vertex by hand. I just want each vertex to be merged with the closest opposing vertex.  Also, I find it highly unpractical and in most situations useless to remove doubles after moving the vertices to overlap each other by scaling and moving the edge loops. This is another common suggested answer.


\section{Introduction} In this chapter, the results of six different lab groups will be presented. The data is collected from 6 different lab groups and the data is analyzed and finalized by the groups. The test results will be presented in graphs and tables.    \section{Results 1a - Measurements} Before and during the lab experiment, the data was collected by all six lab groups.  \begin{table}[]     \centering     \begin{tabular}{c|c}     \end{tabular}     \caption{Group 1:Test Data For LL}     \label{tab:my_label} \end{table} \begin{table}[] \begin{tabular}{|l|l|l|l|l|l|} \hline Property                                  & Unit             & Test 1 & Test 2 & Test 3 & Test 4 \\ \hline Blows (Number of Drops                    & {[}-{]}          & 30     & 17     & 22     & 15     \\ \hline Oven Can ID                               & {[}-{]}          & 1      & 2      & 3      & 4      \\ \hline Mass of Oven Can                          & {[}g{]} {[}lb{]} & 63.49  & 62.67  & 62.06  & 62.29  \\ \hline Mass of Oven Can Lid                      & {[}g{]} {[}lb{]} & 24.84  & 26.09  & 26.33  & 75.79  \\ \hline Mass of Oven Can, (Lid,) and Wet Soil     & {[}g{]} {[}lb{]} & 70.85  & 73.43  & 77.52  & 75.79  \\ \hline Mass of Oven Can and, (Lid,) and Dry Soil & {[}g{]} {[}lb{]} & 69.45  & 71.19  & 74.25  & 72.91  \\ \hline \end{tabular} \end{table}

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?


after I made a setup with my project and made it .exe in c#,i want to make my application(.exe) to open just once.Is there anyone who can help me with my problem ?thanks in advance.  I want to prevent my application from opening it again.

Using C# and WPF under .NET (rather than  or console), what is the correct way to create an application that can only be run as a single instance?  I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to stop and explain what one of these are.  The code needs to also inform the already-running instance that the user tried to start a second one, and maybe also pass any command-line arguments if any existed.


I just played a Tavern Brawl and encountered the following board situation:   Sylvanas Windrunner is the only minion on my side. My opponent has Sylvanas, Kel'Thuzad, and another minion.   I attack with my Sylvanas into the enemy Sylvanas, killing them both. The deathrattle of my Sylvanas steals Kel'Thuzad, but then the deathrattle of the enemy Sylvanas is resolved, stealing Kel'Thuzad back.  How do I predict the outcome of the deathrattles if two Sylvanas are involved?

I was using  and my opponent has a . I attacked Sylvanas, fearing that the Deathrattle will take control of one Hyena. I feel lucky, because it did not happen.  I want to know if there are some general rules of effect precedence.   Has Blizzard published something about this?  Are there articles teaching about precedence?   Please note, I want guidance about effect precedence in general, not just about Deathrattle.


I am trying to sort a list based on a nullable ArrayList in java 8. List as follows Patient1  visits = [02/15/2010, 02/10/2010] Patient2  visits = [02/16/2010] Patient3  visits = [02/17/2010, 02/10/2010] Patient4  visits = null  I am trying to sort the Patient objects based on the descending order of their date of visit (first element in the visits list) using streams sort. The nulls should be placed last. The final result must be Patient3  visits = [02/17/2010, 02/10/2010] Patient2  visits = [02/16/2010] Patient1  visits = [02/15/2010, 02/10/2010] Patient4  visits = null   Patient {   String name;   List<Date> visits; }  I have tried the following approach but ends up in null pointer exception even after null check.    list.stream()     .sorted(Comparator.nullsLast((Comparator.comparing(s -> s.getVisits() == null ? null : s.getVisits().get(0), Collections.reverseOrder()))))     .collect(Collectors.toList());

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Technically, this is a math problem but I think it is better here than in the math stacks. Consider the differential equation   \begin{equation} y''  = (x^4 - E)y \end{equation}  The boundary conditions are the usual $y(\pm\infty)=0$. I want to find the eigenvalues, $E$, using WKB. According to my textbook (Bender and Orszag), we have the guessed form  \begin{equation} y=e^{S_0(x)} \end{equation}  where   \begin{equation} S_0'(x) = \pm\sqrt{x^4-E}  \end{equation}  One picks the sign such that the boundary conditions are obeyed.  Now, let us consider the "classical region" where $E>x^4$. After lots of work, the book reaches the eigenvalue condition \begin{equation} \int_{-E^{1/4}}^{E^{1/4}} \sqrt{E-x^4}dx =\left(n+\frac{1}{2}\right)\pi  \end{equation}  Notice, that in this condition, the  $\pm$ disappeared and the sign under the square root flips. The way this condition was obtained was fairly complicated, patching together solutions at infinity with an Airy function in between the turning points but can someone explain, in a simple way, how the boundary conditions forbade   \begin{equation} \int_{-E^{1/4}}^{E^{1/4}}-\sqrt{E-x^4}dx=\left(n+\frac{1}{2}\right)\pi~?  \end{equation}

In deriving the quantization condition for a bound state in a potential with "no verticle walls" we start with the WKB connection formulas to find the wavefunction in the interior of the well ($x_1<x<x_2$), namely $$\psi(x) \cong \begin{cases}\displaystyle\frac{2C_1}{\sqrt{p(x)}}\sin\left[\frac{1}{\hbar}\int_{x_1}^x{dx\ p(x)}+\frac{\pi}{4}\right]&\quad\text{for}\quad x_1<x\\ \\\displaystyle \frac{2C_2}{\sqrt{p(x)}}\sin\left[\frac{1}{\hbar}\int_x^{x_2}{dx\ p(x)}+\frac{\pi}{4}\right]&\quad\text{for}\quad x<x_2 \end{cases}$$  Our task is to connect the two wave functions in the interior region together. Seeing that the coefficients are easily handled, it is then necessary that the arguments of the sine functions be equivalent. Denoting  $$\theta_1(x) = -\frac{1}{\hbar}\int_{x_1}^x{dx\ p(x)}-\frac{\pi}{4}$$  $$\theta_2(x) = \frac{1}{\hbar}\int_{x}^{x_2}{dx\ p(x)}+\frac{\pi}{4}$$ we have  $$\theta_1(x)+n\pi = \theta_2(x)\quad\text{for}\quad n = 0,1,2,3..$$  since  the relative minus can be absorbed into either coefficient. Thus $$-\frac{1}{\hbar}\int_{x_1}^x{dx\ p(x)}-\frac{\pi}{4}+n\pi= \frac{1}{\hbar}\int_{x}^{x_2}{dx\ p(x)}+\frac{\pi}{4}$$ \begin{equation}\int_{x_1}^{x_2}{dx\ p(x)} = \left(n-\frac{1}{2}\right)\pi\hbar\quad\text{for}\quad n=0,1,2,3..\end{equation} This is our quantization condition for the allowed energies.   However, following the derivation in Griffiths or Sakurai, $n=0$ is not included. Why?   My ideas: Well this would imply  $$\theta_1(x) = \theta_2(x)$$ \begin{equation}\int_{x_1}^{x_2}{dx\ p(x)} = -\frac{\pi}{2}\hbar\end{equation} \begin{equation}\int_{x_1}^{x_2}{dx\ \sqrt{2m(E-V(x))}} = -\frac{\pi}{2}\hbar\end{equation} I am trying to imagine why a negative value of the action integral might be prohibited. Am I correct in assuming that if we were to restrict all possible values of the energy to be real, it would that imply $$p(x)>0\ $$ Can someone provide a proof as to why  $$p(x)>0\rightarrow E\in\mathbb{R}. $$It would then follow the the integral of a strictly positive integrand must itself be positive, which means we cannot have $-\frac{\pi}{2}\hbar$.


QGIS 2.8.1 Does anyone have the answer to why a generated heatmap appears without coordinates and therefore is not on top of the vectorlayer that it was generated from? I checked the CRS setting but that should be okay.  Any suggestions?

I noticed that the heatmap calculation on the new upgrade version of qgis is given the raster map without any coordinate system.   Have you got the same problem?