My situation is similar to but not same as - Please skip to edit 2 below if you want to know the problem in short. Details Talking of my career so far,    I completed undergraduate in CS(computer-science) with WSN (wireless-sensor-networks) as thesis topic (Networks) Joined an MNC(multi-national-company) in Android GPS team and stayed for a year (More Networks! ) Completed masters in CS with Social Network Analysis as main thesis. At this point I got interested in ML (machine-learning), NLP(natural-language-processing) and during my entire program I took related courses. Joined another MNC 11 months back, in their router OS QOS (quality-of-service) team (Networks again! )   I now want to apply for a PhD in ML / NLP from colleges like Carnegie Melon or N NUS, Singapore. But I find I don't have enough recommendation/ work experience in the same field. What should I do - Personal projects in these areas? Personal publication? Working with a startup in these fields ? Kindof desparate now to prepare and apply for some program within the next year.   I know its difficult to suggest something that will definitely work in my case but still wanted some advice from the community.  Edit:- Expanding on the acronyms as suggested in comments. Sorry for the long background but I wanted others to understand my situation by stating "some" of my backgound.  Edit 2 : - Editing this again to highlight my problem in short. I want to pursue phd in fields(ML, NLP) in which I have somewhat less experience. My GPA is not extraordinary for an international student and have only single recommendation in the same. I do have a publication but not related to these areas. Any suggestions for getting my CV to be accepted by any faculty in ivory colleges?

Can I be admitted to graduate school in a different field from my degree?  Specific cases include:   If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field?  Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment?   Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.


I was wondering if there was a general explanation as to why it is that all the planets we observe are roughly spherical, and never flat/planar like galaxies.   Could there potentially be flat or planar planets?

Is it possible to use the Lagrangian formalism involving physical terms to answer the question of why all planets are approximately spherical?  Let's assume that a planet is 'born' when lots of particles of uniform density are piled together, and constrained only by the Newtonian gravity of the $N$ particles with no external gravity.    My question is: Is it possible to use the variational calculus starting from this situation to prove that planets should be spherical?


I'm trying to pass an array of char * defined with braces and with static strings, and I want to pass it as an argument to a function.  The array is the next:  char * phrase[] = {"my", "name", "is", "John"};   and the function which is going to receive the argument is implemented as follows:  void composeList(char * phrase[]){   //I'm getting the size of the list   int phrase_list_size = sizeof(*phrase)/sizeof(phrase[0]);   printf("%d\n",phrase_list_size); }   I call that function in this way:  composeList(phrase);   But when I print the size the value is 1 instead of 4. Could you help me?

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I want to trail the output of a double to 2 decimals or less. Consider following example:  #include <stdio.h>  int main() {     printf( "%.2f\n", 2.    );     printf( "%.2f\n", 2.5   );     printf( "%.2f\n", 2.25  );     printf( "%.2f\n", 2.125 ); }   The output is  2.00 2.50 2.25 2.12   Is there any way to print the values with less than 2 decimals, in case less are needed? I mean the desired output is  2 2.5 2.25 2.12   Answers with iomanip are allowed. I'm focusing on C++, not C but the example is c-only.  I know, that it is often not possible because double values are not precise, but in my examples they are because all fractional parts are powers of 2

I keep stumbling on the format specifiers for the printf() family of functions.  What I want is to be able to print a double (or float) with a maximum given number of digits after the decimal point.  If I use:  printf("%1.3f", 359.01335); printf("%1.3f", 359.00999);   I get  359.013 359.010   Instead of the desired  359.013 359.01   Can anybody help me?


Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


So I have the following bibitem  \bibitem[Finkelstein(2016)]{2016PASA...33...37F} Finkelstein, S.~L.\ 2016, \pasa, 33, e037    That causes texshop to choke -- but only on my desktop Mac. Its fine on my laptop -- which both have the same version of TeXShop installed?!  On the desktop I get the following error ... and I know it doesn't like   \pasa   because if I change it to \apj it works fine. Anyone have any idea? TeXShop says 'unknown control sequence' for that bib line.

This is one of the BibTex entries giving the problem:  @ARTICLE{2015ApJ...808L..36B,    author = {{Bonnivard}, V. and {Combet}, C. and {Maurin}, D. and {Geringer-Sameth}, A. and      {Koushiappas}, S.~M. and {Walker}, M.~G. and {Mateo}, M. and      {Olszewski}, E.~W. and {Bailey}, III, J.~I.},     title = "{Dark Matter Annihilation and Decay Profiles for the Reticulum II Dwarf Spheroidal Galaxy}",   journal = {\apjl}, archivePrefix = "arXiv",    eprint = {1504.03309},  primaryClass = "astro-ph.HE",  keywords = {dark matter, galaxies: dwarf, galaxies: individual: Reticulum II, gamma rays: galaxies, methods: statistical, stars: kinematics and dynamics},      year = 2015,     month = aug,    volume = 808,       eid = {L36},     pages = {L36},       doi = {10.1088/2041-8205/808/2/L36},    adsurl = {http://adsabs.harvard.edu/abs/2015ApJ...808L..36B},   adsnote = {Provided by the SAO/NASA Astrophysics Data System} }   and corresponding bbl file giving the error at compilation is  \bibitem{2009ApJ...697.1071A} {\sc W.~B. {Atwood}, A.~A. {Abdo}, M.~{Ackermann}, W.~{Althouse},   B.~{Anderson}, M.~{Axelsson}, L.~{Baldini}, J.~{Ballet}, D.~L. {Band},   G.~{Barbiellini}, and et~al.} \newblock {\bf {The Large Area Telescope on the Fermi Gamma-Ray Space Telescope   Mission}}. \newblock {\em \apj}, {\bf 697}:1071--1102, June 2009.   My guess is that Kile doesn't like references of the form 2015ApJ...808L..36B since these are the only ones giving the error.    Can somebody hint me to the problem in this? Thank you very much


I am new to the stock market and currently trying to just get a basic understanding of the stock markets using online sources (investopedia).   I came across this sentence when I was reading on a topic about the representation of a company's value. And I don't quite understand what it meant.   "Because of the time value of money, profits to be earned in the future must be discounted back to represent today’s dollars – just as a dollar put into a bank account today will be worth more in the future after it has earned some interest, but in reverse."  Can someone please clarify this sentence? Why do profits earned in the future must be discounted back to represent today's value (whatever this means)?  Thank you. (Link to this website --> ) The sentence is located at the start of the 4th paragraph.

Can you explain the time value of money concept, including present value and future value?  How does compound interest work?  Why is compound interest a powerful concept when it comes to borrowing, saving, or investing?


I want to upgrade to Bionic Beaver from 17.10, but the Software Updater says everything is up to date.  I followed  but at the step the upgrade button should pop in Software Updater it still says everything is up to date. I did change the settings to notify me for "Any new version".  What else could be wrong?

I'm following the , but on launching the upgrade tool I get this response:  Checking for a new ubuntu release No new release found   Am I doing something wrong? Is there a workaround?


My chain broke today and I want to get a new replacement for it I just don't know what size I need my bike has 3 gears in front and 6 in the back which I'm guessing is an 18 speed and if you can leave any suggestions for a chain I will appreciate it preferably under $30 I just commute to school.

I measured from the middle of each sprocket and it's 17 inches. Not sure what length of chain I should get


I'm using lightning input of type date in my lighting component. Once the date is selected it is showing date as **Feb 12, 2019 ** But we want the date to be shown as MM/DD/YY. is it possible  Here is the code:

                                     <lightning:input type="date" aura:id="fieldId" label="Start Date of Travel"                                                      name="startDateOfTravel"                                                      value="{!v.startDateOfTravel}"                                                      required="true"/>

I'm trying to change date format of this component but I dont find any attribute (like ui:inputDate has) to change the date format.   <lightning:input type="date" name="input8" label="Dates" value="2017-09-07" min="2017-09-05" max="2017-09-22" />   NOTE:Also I have used the new <lightning:inputField fieldName="date__c" /> for dates and actually works really nice but date format is a must I need to change.  This is an example of official lightning input here:     The first one is Lightning input, the second one is ui:inputDate component.  I'm guessing it is changed by your Time Zone but actually, there is no change at all.   Any ideas about how can I use it with the date format I want (DD/MM/YYYY)? Thanks


I want to convert a face duplicated object into a permanent object.  For example: If I have a Plane with 100 faces and each face is duplicated by an object (let say: a cylinder), then the converted Plane should create 100 individual cylinders or a single object with 100 cylinders.  Is there any way to do it?

Is it possible to bake dupliverts into one mesh for the BGE? (I have a large ground landscape that I use as the parent to duplicate trees, and the BGE doesn't support most modifiers.)


In  (Argument on Page 4, accompanying diagram on Page 11), the author attempts to prove Proposition 70 in Newton's Principia (gravitational force = 0 inside a hollow sphere) with a more streamlined version of Newton's original argument.   But the problem is I don't understand why we need to use infinitesimal cones instead of normal ones, since the area on the sphere formed by the cone can be calculated from $r^2\theta$, where $\theta$ is the solid angle of the cone's vertex, shouldn't the conclusion just fall out?  If, however, I resort to infinitesimal cones, why should the elemental area $dS$ be $\frac{r^2d\Omega}{\cos \alpha}$? Where does $\cos\alpha$ come from, and why does it matter that the angle between the normal to the surface and the cone be equal on both sides?

It is quite easy to derive the gravitational field intensity at a point within a hollow sphere. However, the result is quite surprising. The field intensity at any point within a hollow sphere is zero.   What exactly is the reason behind this? Except for, of course, the mathematics behind it. Is there any logic why the field intensity should be zero within a sphere? For example, it is logical to say that the field intensity would be zero at the center, as all the intensities cancel out. However, this cannot be the case for any point within the sphere.


Do the explanatory variables need to have normal distribution in linear regression? Why are there z-tests rather than t-tests in logistic regression?

I understand that the Wald test for regression coefficients is based on the following property  that holds asymptotically (e.g. Wasserman (2006): , pages 153, 214-215): $$ \frac{(\hat{\beta}-\beta_{0})}{\widehat{\operatorname{se}}(\hat{\beta})}\sim \mathcal{N}(0,1) $$ Where $\hat{\beta}$ denotes the estimated regression coefficient, $\widehat{\operatorname{se}}(\hat{\beta})$ denotes the standard error of the regression coefficient and $\beta_{0}$ is the value of interest ($\beta_{0}$ is usually 0 to test whether the coefficient is significantly different from 0). So the size $\alpha$ Wald test is: reject $H_{0}$ when $|W|> z_{\alpha/2}$ where $$ W=\frac{\hat{\beta}}{\widehat{\operatorname{se}}(\hat{\beta})}. $$  But when you perform a linear regression with lm in R, a $t$-value instead of a $z$-value is used to test if the regression coefficients differ significantly from 0 (with summary.lm). Moreover, the output of glm in R sometimes gives $z$- and sometimes $t$-values as test statistics. Apparently, $z$-values are used when the dispersion parameter is assumed to be known and $t$-values are used when the dispersion parameter is esimated (see ).  Could someone explain, why a $t$-distribution is sometimes used for a Wald test even though the ratio of the coefficient and its standard error is assumed to be distributed as standard normal?  Edit after the question was answered   also provides useful information to the question.


I have a singleton class that has 2 Hashmaps, both private with their own individual(tested and working) getters and setters private static Property property = new Property();  public static Property getInstance(){     return property; }  private HashMap<String, Object> roomReturnedObj = new HashMap<>(); private HashMap<String, Object> roomTasks = new HashMap<>();  public void setRoomObjectFromResult(HashMap<String, Object> roomHashMap) {     roomReturnedObj.putAll(roomHashMap); }  public HashMap<String, Object>getRoomObjectFromResult(){     return roomReturnedObj; }   public HashMap<String, Object>getRoomTasks(){     return roomTasks; }  public void setRoomTasks(HashMap<String, Object> tasksHashMap){     roomTasks.putAll(tasksHashMap); }  The lifecycle of the app gathers tasks in the roomTasks HashMap, once gathered a parent name is assigned to this HashMap, the parent name becomes a new roomObject HashMap key with the roomTasks HashMap becoming it's object. It all behaves strangely though when I try to begin a new run through of room tasks gathering, before I begin I clear with: Property.getInstance().getRoomTasks().clear();  That function above clears the roomReturnedObj HashMap? Setting class saveBtn.setOnClickListener(View ->{             Bundle resultFinal = new Bundle();             String roomName = Property.getInstance().getRoomCount()+ ": " + Property.getInstance().getRoomName();              HashMap<String, Object> room = new HashMap<>();             room.put(roomName, Property.getInstance().getRoomTasks());              Property.getInstance().setRoomObjectFromResult(room);              Property.getInstance().setRoomCount(Property.getInstance().getRoomCount());              Log.d("Test", Property.getInstance().getRoomObjectFromResult()+ " : " + Property.getInstance().getRoomTasks());              Intent returnedResultIntent = new Intent(getBaseContext(), NewJobStart.class);             returnedResultIntent.putExtra("addRoomResult", "Success");             startActivity(returnedResultIntent, resultFinal);         });  Class that clears if (bundle != null) {             tradeTitles = bundle.getStringArrayList("TradeTitleArray");             Log.d("Test", "NewJobStart, tradeTitles received from bundle" + tradeTitles + ", Room count: " + Property.getInstance().getRoomCount());              if(Property.getInstance().getRoomCount() > 0) {                 String test = bundle.getString("addRoomResult");                 Log.d("Test", "NewJobStart, result from jobRoomDetails received from bundle" + test);                  if (test.equals("Success")) {                     Log.d("Test", "NewJobStart - return, before clear: " + Property.getInstance().getRoomObjectFromResult());                     Property.getInstance().getRoomTasks().clear();                     putToList();                 }             }         }

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 apologize if this is a duplicate question (please provide me a link if there is an answer already out there).  I cannot find my saves for minecraft.      One post says to look here "C:\Users{myname}\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe"  I do not have a Microsoft.MinecraftUWP_8wekyb3d8bbwe folder  Another post says look for saves folder in the installation folder.  For me that is C:\games\minecraft.  There is no saves folder here. Another post says in App data.  for me that's C:\Users{myname}\AppData\Local.minecraft.  There is no .minecraft folder here. I did find this folder.  C:\Users{myname}\AppData\Roaming.minecraft but there's no worlds here.   I'm totally lost.  I have 4 worlds created.  My changes to the worlds are saved.   Where are my worlds saved?  Btw, I'm running windows 10.

I want to copy/modify/delete a Minecraft world. Where can I find my saves folder?


I'm rendering some simple 3d shapes to an isometric perspective (orthographic cameras etc) using the Blender internal.  The render is lightning fast so I dragged out another 3d view so Blender is divided into two 3d Views, one on the left one on the right. (Properties editor is on the far right as usual).    When I press F12, initially Blender displayed the render result on the right hand view.  This was great as I could make small changes to the camera (on the left) and immediately see changes in the full render just by pressing F12 again.  However every so often when I press F12, Blender seems to randomly decide to put the render result in the left hand view and the right view now returns to the 3d View.      This a a real pain as I then have to re-open the tool and information panels and select the camera again etc.  It then also happens in reverse after a while (right now I'm rendering to the right window again).  I thought it may depend on which view I last selected an object in, but in my testing it seems to make no difference.    Does anyone know how I can lock the render result to a specific 3d view when there are multiple 3d views visible?

This has puzzled me for years: How does Blender decide the window where it will display the rendered image when I hit F12 to render?


often i see some gdb guide using examples without parameters. But in parctice, i need to gdb debug a programe with parameters.    this program is run as "./voronoi -t outputfile", -t is programme voronoi itself parameter,  is input, and outputfile is outputfile.  but when i using "gdb ./voronoi -t outputfile", it will tell me some error, but when using no gdb debug, run "./voronoi -t outputfile" is OK.  How make it both can gdb debugging and aslo with parameters? How to set the parameters?

I have a program that takes input from   stdin and also takes some parameters   from command line. It looks like this:  cat input.txt > myprogram -path "/home/user/work"       I try to debug the code with gdb   inside emacs, by M-x gdb, I try to   load the program with the command:  gdb cat input.txt > myprogram -path "/home/user/work"       However, gdb does not like it.   Question cribbed from . Unfortunately I don't understand the solution and am not sure what to do beyond compiling with the -g option and running the command M-x gdb.


I feel ill or sick. Both mean the same. But when they modify a noun, do they mean the same? For example,  Sentence A: He is a sick person.  Sentence B: He is an ill person.  Do they mean the same?  I want to know the difference because 'ill' can mean 'bad' in some senses.

I can say I'm ill or I'm sick. But what is the difference between the usage of these terms?  I've heard that one can use sick for longer-term and ill for shorter-term, but is that really correct? How are these terms different for native speakers?


This is easy to see in the ring of integers. In fact, the ideals don't even have to be prime. It's enough to be coprime. Then their GCD is 1, so 1 can be written as a linear combination of the generators of your ideals, and once you get 1 in the ring, you have the whole ring.  Is this true for rings in general? If not, what conditions must we impose on the ring (euclidean domain, principal ideal domain, etc.) in order to make it true?

Essentially as the title suggests - in some commutative ring $K$ (with 0,1), if we have 2 distinct proper prime ideals $\mathfrak{p}_1 \neq \mathfrak{p}_2$, is it necessarily the case (or if not, when is it the case?) that $\mathfrak{p}_1 + \mathfrak{p}_2 = K$ ?  I ask because I'm working through some lecture notes which frequently take some $K$ complete with respect to a discrete valuation, a prime ideal in a valuation ring  $\mathfrak{p} \subset \mathcal{O}_K$, a finite extension $L/K$, and then use the fact $\mathfrak{p}\mathcal{O}_L$ factors uniquely as some $\mathcal{P}_1^{a_1} \ldots \mathcal{P}_r^{a_r}$ (where $\mathcal{O}_L$ is the integral closure of $\mathcal{O}_K$ in $L$). Then we say $\mathcal{P}_i + \mathcal{P}_j = \mathcal{O}_L$ $(\forall$ $ i \neq j)$.   However it isn't clear to me, because we've made so many different assumptions along the way, what the reason is that $\mathcal{P}_i + \mathcal{P}_j = \mathcal{O}_L$. Is it because these primes occur in the factorisation of $\mathfrak{p}$, is it because of some property of Dedekind domains or fields, or is it not really possible to say out of context? Many thanks, and if anything needs clarification please ask.


I do not find information about how to calculate the $c(\alpha)$ "by hand" (see wikipedia article for two samples: ) for the formula:  $ D_{n,m} > c(\alpha)\sqrt{\frac{n+m}{nm}} $  I would like to try different levels of $\alpha$ not included in the table provided in the article.

I am using the Kolmogorov–Smirnov two-sample test to compare distributions, and I noticed a $p$-value is frequently reported as the test statistic. How is this $p$-value determined? I know it's the probability of obtaining a result at least as large as the one obtained, but how is this $p$-value determined given this is a nonparametric test? That is, we can't assume Gaussian fluctuations in the distribution and compute the $p$-value using a $t$-test.  Thanks!


This is an old screenshot but basically these two processes (eriocaulaceae and stahlhelmer) just popped out of nowhere, and I couldn't find any information online. Just now they were hogging 99% of CPU but it disappeared when I opened stack exchange tab to post this question.  Any help identifying these two processes would be greatly appreciated.  I have mid 2012 MacBook Pro with 10.14.5 Mojaves.

Anyone knows why this happens and how to resolve it? they show up out of nowhere and stay until I kill each manually. some of these names change to something new too. I thought this might be because I left the root access open so I closed it later..


If I have a Warlock who takes magic initiate in cleric and chooses cure wounds as the first level spell, could I use my Warlock spell slots to cast that spell as well as the 1/day casting of cure wounds? I know that Pact Magic can be used to cast spells using the Spellcasting class feature (PHB 164), so shouldn't you be able to use your Warlock slots to cast the magic initiate spell?

Can you cast a spell learned from the Magic Initiate feat using spell slots? Say I play a wizard who learns cure wounds by taking the Magic Initiate feat. Could I cast that spell using the Wizard's spell slots?


I'm trying to use RegEx to select all strings between two dollar signs.  text = text.replace(/\$.*\$/g, "meow");   I'm trying to turn all text between two dollar signs into "meow" (placeholder).  EDIT: Original question changed because the solution was too localized, but the accepted answer is useful information.

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


I recently tried to install a custom ROM in my samsung j6+ but halfway through it my PC turned off(disconnected while flashing). Then the problem starts i decided to reboot my phone but it shows this message "No command" " #Reboot recovery cause is [[check_bootmode]RebootRecoveryWithKey]# Block-based OTA Supported API: 3 MANUAL MODE v1.0.0# E:Failed to mount / cache: Invalid argument The error message keeps appearing for just a fraction of a second then disappear and appear again I tried to go to recovery mode but no luck i cant get to it I drained the battery to turn off the device then go download mode but after get to it, it also keep restarting Please help me thanks so much

I recently tried to install a custom ROM in my samsung j6+ but halfway through it my PC turned off. Then the problem starts i decided to reboot my phone but it shows this error "No command" " #Reboot recovery cause is [[check_bootmode]RebootRecoveryWithKey]# Block-based OTA Supported API: 3 # MANUAL MODE v1.0.0# E:Failed to mount / cache: Invalid argument  The error message keeps appearing for just a fraction of a second then disappear and appear again I tried to go to recovery mode but no luck i cant get to it I drained the battery to turn off the device then go download mode but after get to it, it also keep restarting help me please. thank you


I like the dynamic range of RAW files, but I don't want raw sensor data, but I don't want 8-bit jpegs. What can I do to get the desired result?  Request camera manufacturers to allow TIFF file creation? Perhaps DNG format offers an alternative to the RAW data?  Any insight appreciated

JPG files use  (I've never heard of any camera that uses the alleged 12-bit-per-color-per-pixel extension) and is a compact way of storing images.  RAW files are huge but have the full image data from the image sensor which is likely to be more than 8 bits. (judging from recent DSP specs I would assume 12 bit ADCs are the norm... but how would you actually find out how many bits a particular camera provides?)  Is there anything similar to JPG which stores the file in a form that allows lossy compression for high spatial frequencies, but has more dynamic range than 8 bits?


I was trying to block an ip of ( network stresser tool - a ddos websites selling ddos bots by seconds online ) the first one i was trying to block with iptables :  iptables -A INPUT -d 173.193.26.73 -j DROP iptables -A INPUT -s 173.193.26.73 -j DROP   however i still see the ip and bandwidth still up on iftop. also still see the ip going on tcpdump.  is that normal? what's the problem in here?

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


Every topic I find shows how to keep the transparency but I want to remove it without having to change the image format. Camtasia is crashing when I import the ffmpeg encoded MP4 file using the PNG files. The advice was to use a video format without transparency.

I have a video with a transparent background. How can I replace this transparency with a color (e.g. white)?


I read this series in the 80s I think. It was set in the Stone Age or earlier.   There was the usual disparate band of youngsters but who had time travelled from the near future. Think there was a reality show theme to it. One or more had increasing telekinetic powers.  The climax of one of the books was a was the breaching of a the straits of Gibraltar leading to the formation of the Mediterranean.

Please help me identify this book series:  In the future, humanity has started to develop psychic powers by encouraging breeding of genetic traits. Humans find a way to travel back to a specific time in the past, and everyone is really excited. Then, the travelers discover that time (possibly different place as well?) is already ruled by aliens, and the humans get enslaved.  The aliens and humans have different kinds of psychic powers, like farseers, psychokinetic powers, mind readers, and so on, and are very powerful. There is one human whose psychic abilities were limited in the future, but in the past he becomes one of the most powerful psychics.  There is a big war pitting all the psychics against each other.  The aliens might be some sort of proto-humans. I vaguely remember them looking like humans, but bigger. Please help!


I would like a simple way to decompile Java. I want to examine the conversions and modifications that the javac compiler makes on my code. What would be some good products and what would be the good/bad of them.

What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?  On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain things.


I currently have ubuntu 14.04 and mainly use windows 7. I don't know what partitioning is and I don't know how ubuntu was originally installed on my computer. All I know is that the 14.04 is very buggy and won't even boot properly.  So I just downloaded another ubuntu 14.04 iso file and burned it to a dvd. Now I want to uninstall my current ubuntu and install it again using the cd.  The problem is, I don't know how. I read a thread that said to download MiniTool Partition Wizard Home Edition to get rid of ubuntu but it didn't say anything else.  When I run the wizard I get this image and I'm too scared to change anything.    So here is my main problem in case I wasn't clear.  I want to install ubuntu 14.04 alongside my windows 7. To do this, I need to uninstall my current buggy ubuntu then install ubuntu again from a cd. How do I uninstall my current buggy ubuntu?

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


I am from Oman, travelling from Vancouver, Canada, to Frankfurt. My final destination is Casablanca, Morocco. I have booked a separate ticket for the final destination. I need to collect my luggage in Frankfurt and check-in my next flight. Flight is after 9 hours from arrival in Frankfurt. I have a valid visa for Canada and my Schengen visa expired in April 2019.

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


What was that Science Fiction story about the (what we would today call) "smart house" that made breakfast every morning for the owner, had a list of activities, etc. But the owners had died (in a nuclear war - can't remember) centuries before.

Media: Short story collection When I read it: 2011 but the story itself was much older (unsure how much) so this information only serves to clarify that it is by no means new. Plot summary: A futuristic home with household robots that help around the house (cooking, cleaning etc.), we learn about their routines and behaviour and later on it's revealed that nobody is home, in fact everyone is dead, and a description of the outside seems to imply post-nuclear apocalypse. Setting: I seem to remember snow or winter What it isn't: with Google I stumbled upon  by Ray Bradbury, and  is very similar, and the beginning made me think "Bingo!", but I do not remember there being a fire in the story I read, and I also remember a view from a briefly opened door, or window, of a snowy setting, so while it may be that I am confusing elements of another story, or my imagination, with There Will Come Soft Rains, I would still like to run this through here as a question, because I'm not convinced. Additional info: The short story collection had other short stories that I will include as I remember them, details will be fuzzy:   Meteor, by John Wyndham , by Charlotte Perkins Gilman A short story about a man who is driving a car and it is revealed in the end that he was dead the whole time , by Charles Dickens


How can I get the length of an array in C, I tried it how i get it in other languages but it doesn't work like this:  int array [5];  for(int i = 0; i < array.length; i++) {..

How do I determine the size of my array in C?   That is, the number of elements the array can hold?


Is it good practice to show all content that is in desktop version to mobile browser. Can mobile browser handle this kind of data,With low bandwidth. How far is it legible to read with that huge content on small screen Here i have attached screen on table from desktop version and mobile view(responsive design). Will it be good if some fields are limited in mobile version. and what are Cons of responsive design for content heavy based websites with large data and table structures.

Related to , I'm interested in what I should do with a responsive design theme where the users have control over the columns which are displayed in a tabular, data rich page. Users are able to manipulate which columns are displayed, so I can't just limit the data to a few columns, as the other question's answers suggest. A potential work-around is to have a custom "mobile" query set up with pre-defined columns which I design for, but I can't control whether the users use this view or not. Right now, I just have each column in each row stacking on top of each other and centered. I think this is not a very good design, as it wastes space and doesn't look organized. How should I best tackle this problem? Desktop:  Mobile View:


I have string    string s1="5 2 13 * +" //as prefix expression.   I want to obtain reversed of above matrix like this.  "+ * 13 2 5"  I have tried stringstream but it make "+ * 31 2 5" and I lost my "13" and I gets "31". This not good my computation.   How can I do? For helping thanks.

How do you reverse a string in C or C++ without requiring a separate buffer to hold the reversed string?


Suppose my visa start date is 15-Aug-2019, and I book a flight that lands in Germany on the 14-Aug-2019 at 22:00 PM, will they allow me in?

I'll be traveling to Germany this May and my planes would arrive at 4 May 20.30 at Frankfurt Airport but the Schengen visa that I received is valid only at 5 May.  Is it possible to enter if it's only a few hours before the day change? Or do I have to wait until day change in the transit area?  Another thing, would the airline rejected me from boarding the plane?


In the card game ($32$ cards, $3$ players receive $10$ cards each, $2$ remain),   $A$ = "The remaining ones contain $2$ aces" $K$ = "I get at least one king".  In total there are $4$ aces and $4$ kings.   What is the probability of $P(K)$?  What is the probability of $P(K|A)$?   apart from "Conditional Probability", may I know which topics or formulas should I study and use to solve the questions?  Thanks for the help and kindness!

I don’t know how to handle this 3 players case, may anyone give a hand? Thanks!     When playing card game, there are 3 players playing 32 cards, each   receive 10 cards, 2 remind on the table. Overall are 4 aces and 4   kings in the game. How likely is P (E | D)? D = "The table remains 2   aces" E = "I (at least) get one king".   I guess I should have steps as follows.   P(E) = P(1King)+P(2K)+P(3K)+P(4K) P(D) = (4/32) * (4/32) = 1/256 P (E | D) = P(E) + P(D)   Equations may be used:  Counting combinations      The number of combinations of n objects taken r at a time is     nCr = n(n - 1)(n - 2) . . . (n - r + 1)/r! = n! / r!(n - r)!                 Number of favorable outcomes P(I) =     Total number of possible outcome


I am trying to make a JK flip-flop in ActiveHDL environment. I want to make it with logic gates.  It should look like this:     This is my code:  --nand3.vhd library ieee; use ieee.std_logic_1164.all;  entity nand3 is      port(     A,B,C: in std_logic;     D: out std_logic     ); end entity;  architecture nand3 of nand3 is  begin     D <= not(A and B and C); end architecture;     --nand2.vhd library ieee; use ieee.std_logic_1164.all;  entity nand2 is      port(     A,B: in std_logic;     C: out std_logic     ); end entity;  architecture nand2 of nand2 is  begin     C <= not (A and B); end architecture;     --JK.vhd library ieee; use ieee.std_logic_1164.all;  entity JK is      port(     J,K: in std_logic;     Q, NQ: out std_logic;     CLK: in std_logic     ); end entity;  architecture JK of JK is component nand3      port(     A,B,C: in std_logic;     D: out std_logic     ); end component;  component nand2     port(     A,B: in std_logic;     C: out std_logic     ); end component;    signal s1, s2: std_logic;  begin     C11: nand3 port map(NQ,J,CLK,S1);     C12: nand3 port map(Q,K,CLK,S2);     C21: nand2 port map(S1,NQ,Q);     C22: nand2 port map(S2,Q,NQ); end architecture;   The problem is that i am getting this error when I compile JK.vhd file:  # Error: COMP96_0411: JK.vhd : (31, 22): Actual of mode "out" can not be assigned to formal "A" of mode "in" # Error: COMP96_0411: JK.vhd : (32, 22): Actual of mode "out" can not be assigned to formal "A" of mode "in" # Error: COMP96_0411: JK.vhd : (33, 25): Actual of mode "out" can not be assigned to formal "B" of mode "in" # Error: COMP96_0411: JK.vhd : (34, 25): Actual of mode "out" can not be assigned to formal "B" of mode "in"   I think the problem is the backward signals.    Edit1 Improved JK.vhd file. It compiles, but it still does not work:  --JK.vhd library ieee; use ieee.std_logic_1164.all;  entity JK is      port(     J,K: in std_logic;     Q, NQ: out std_logic;     CLK: in std_logic     ); end entity;  architecture JK of JK is      component nand3 port(         A,B,C: in std_logic;         D: out std_logic     );     end component;      component nand2 port(         A,B: in std_logic;         C: out std_logic     );     end component;  signal s1, s2: std_logic;  -- internal copies of output signals -- initialize signal Q_int: std_logic := '1'; signal NQ_int: std_logic := '0';  begin     C11: nand3 port map(NQ_int,J,CLK,S1);     C12: nand3 port map(Q_int,K,CLK,S2);     C21: nand2 port map(S1,NQ_int,Q_int);     C22: nand2 port map(S2,Q_int,NQ_int);      -- Assign values to output ports     Q <= Q_int;     NQ <= NQ_int; end architecture;


If $a$ and $b$ are positive real numbers such that $a+b=1$, prove that    $$\bigg(a+\dfrac{1}{a}\bigg)^2+\bigg(b+\frac{1}{b}\bigg)^2\ge \dfrac{25}{2}.$$     My work: $$\bigg(a+\dfrac{1}{a}\bigg)^2+\bigg(b+\dfrac{1}{b}\bigg)^2\ge \dfrac{25}{2}\implies a^2+\dfrac{1}{a^2}+b^2+\dfrac{1}{b^2}+4\ge \dfrac{25}{2}$$ Now, we have $a^2+\dfrac{1}{a^2}\ge 2$ and $b^2+\dfrac{1}{b^2}\ge 2$. Here, I am stuck, I cannot use the information provided, $a+b=1$ to any use. Please help!

If $a, b$ are positive real numbers and $a+b = 1$, prove that :  $$\left(a+\frac{1}{a}\right)^2 + \left(b+\frac{1}{b}\right)^2 \geq \frac{25}{2}$$  I can see that the value $\frac{25}2$ is attained for $a=b=\frac12$. But I do not know how to show that this is the minimal possible value.  Thank you.


I want to test my pages in IE7 and need a good debugging toolbar like Firebug.. I know there is the default IE Developer toolbar which comes, but that does not seem very helpful, specially for script debugging..  I need a tool like Firebug which can be very useful (like I can view what is there in the markup as well after script execution)

I need to debug JavaScript in Internet Explorer 7. Unfortunately, its default debugger doesn't provide me with much information. It tells me the page that the error showed up on (not the specific script) and gives me a line number.  I don't know if that is related to my problem. It'd be nice if it could narrow down the error to a line number on a specific script (like Firebug can). Is there an addon to debug JavaScript in IE7 like Firebug does in Firefox? Thank you! See also:


HashMap<String,Integer> map = new HashMap<String,Integer>(); map.put("a", 4); map.put("c", 6); map.put("b", 2);   Desired output(HashMap):       c : 6 a : 4 b : 2   I haven't been able to find anything about Descending the order by value. How can this be achieved? (Extra class not preferred)

I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values.  Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key.  Is there an easier way?


I'm trying to create a sort sort of semitransparent blur filter image that I can use over some backgrounds on a website. But Photoshop doesn't let me to do so on an empty layer. Is there a work around? Or maybe I could achieve a similar effect in a deferent way?

How can I create a generic blurred background that can be used on multiple images similar to the example below?  I need a white frosted glass looking png that I can set use to layer over regular images to give them all a frosted glass look (like you can almost make out whats behind it; maybe some colors).  Examples:       Maybe a white background with texture (grainy texture) then Gaussian blur that and then use it as a layer over all my images.  I know the link I posted above is probably just an image blurred, but I need a layer that can be reused in an iOS project. This way it can be used a view layer over sections of an image and make the image underneath look blurred.  Maybe I shouldn't use blur as the term here. I am looking for frosted glass look.  What I am trying to do with this image is import it to my iOS app use it a view background. Then when this view is over other views (a map view, a photo, etc...) they all are frosted. I am trying to create the effect of this image from iOS 7. And no I don't want to use the new iOS 7 design features, because most of my users are on iOS 5 still. And no I don't want to force them to upgrade.


Is there any place with good sets of free jpgs or pngs for use in collages or just any work in general?   I see so many great collages and work in general with a lot of great images incorporated, but I just don't know where to get started doing so for myself.  I mean yes you could obviously search through thousands of images for the right one to cut out, but is there any site where you can find pre-made sets of images?  I found a few on Deviantart.  I'm personally mostly looking for illustrations of any type to use in collages.   Thanks again!

I'm always on the hunt for free stock images to use while I design, what are some good resources for images that are under a a royalty free or creative commons licence?


Per the title, where is the logout button?  All the existing questions I can find refer to the previous design of the site, where hovering over your name in the top bar brought up a menu.

In the previous version the logout button is under your username, which it can be found by clicking the down arrow. However, in the new version, after a couple minutes of searching, it is under the "site-switcher" button:        This is really illogical since the logout button is usually under your username, including Google and Yahoo! services.  I suggest bringing back the  which will definitely benefit new users and even old users.


For example, if they somehow got a function that would churn out any arbitrary amount of primes in a row. Could they break the RSA problem then?

Would it be possible to break an RSA key, in for example 1 week of time, if the cracker have already spent X number of years building an index of primes by performing every permutation of existing prime keys up to $2^{2048}$?  I understand this would take an immense amount of time to do, but it would only be done once. Obviously, computing such an index would take a considerable amount of time and would have to be done with someone having the right amount of resource. Given the public key, you would be able to look up what the two primes are, and hence retrieve the private key instantly.  Breaking an 256 AES would then be easier, as AES keys are often generated using the RSA private key.  Would it be possible to build such an index? How long would that take in permutations and perhaps with the fastest computer in the world?


I need to find out for what parameters a,b converge/diverge this sum.I tried integral test and i know that it converge for a>1 but i do not know how to continue.Thanks in advance for advice.     $$\sum _{n=1}^{\infty }\frac{1}{n^aln^b(n)}$$

Study the convergence of the following series: $$\sum_{n=2}^\infty \frac{1}{n^\alpha \cdot\ln^\beta(n)} \text{ where }\alpha,\beta \geq 0 $$   Applying d'Alembert criterion I have that $$ \lim_{n\to\infty} \frac{n^\alpha  \ln^\beta(n)}{(n+1)^\alpha  \ln^\beta (n+1)} = \lim_{n\to\infty} \left(\frac{n}{n+1}\right)^\alpha\left(\frac{\ln(n)}{\ln (n+1)}\right)^\beta = 1$$ so the nature of the series is inconclusive.  If $\alpha = \beta = 0$, then the series diverges, since $\sum_{n=2}^\infty 1 = \infty$.  Should I study the rest of the cases (i.e. if $\alpha = 0, \beta > 0$ the root test and the ratio test are also inconclusive). What is the best form to study the series?.  Thanks in advance


I'm having some problems when i try to save my project in Eclipse. The error is because of the character encoding that is Cp1252 that is because i copyed the file from another that i have created in my Linux computer, then i cant save my file in Eclipse, but how i can solve this problem? But if is needed here is an screenshot of the error:   Thanks!

How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse?  When I try to use them directly, e.g. in the source code, Eclipse cannot save the file.  What can I do?  Edit: How can I find the unicode escape sequence?


hello im new to javascript <script type="text/javascript">     $(document).ready(         function(){             Dashboard("<?php echo base_url();?>Kasir/display")             var again = setInterval(function(){Dashboard("<?php echo base_url();?>Kasir/display")},2000);         }     )     function klik2(){         alert('jwqeoiqej');         clearInterval(again);     } </script>  my alert works but i dunno why my clearinterval doesnt seems to work when i run that function

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


I'm a Dungeon Master, and I can't figure out how passive wisdom works. In the Player's Handbook it says:      A passive check is a special type of check that dose not use any dice rolls.   That is good to know, but it does not say how you determine if something is a failure or a success!

For Christmas my kiddo got the D&D Starter Set and we've been going though it and the full rules we downloaded online. I'm having a hard time figuring out how the example listed in the rules gets to a final value of 14.  The example is a level 1 character with wisdom of 15 and a proficiency in perception.  I understand that you start with  10 (base) + 2 (character level) + 2 (wisdom 15) which gets you to 14 but then how does the "proficiency in perception" help or factor in?   What gets more confusing is on one of the pre-generated character sheets has a level 1 character with wisdom of 10 but a passive perception value of 10. If I follow the math from above shouldn't it be 10 (base) + 2 (char lev 1) + 0 (wisdom 10 = 0 bonus) for a final score of 12?  How to calculate passive perception?


A.S. The question  answers only a part of my question as already mentioned in "EDIT" made shortly after this question was asked & answers here (below) are much detailed, in-context & easy to understand. Definitely not a duplicate; marking as duplicate for 2-3 points     I am reading a book on Arduino & I just do not understand the concept of push-up resistor, following is a quote from the book:           Why do we need the resistor R1? R1 guarantees that the Arduino’s digital input pin 7 is connected to a constant voltage of +5V whenever the push button is not pressed. If the push button is pressed, the signal on pin 7 drops to ground (GND), at the same time the Arduino’s +5V power is connected to GND, we avoid a shorted circuit by limiting the current that can flow from +5V to GND with a resistor (1 - 10 KΩ). Also, if there was no connection from pin 7 to +5V at all, the input pin would be “floating” whenever the pushbutton is not pressed. This means that it is connected neither to GND nor to +5V,  picking up electrostatic noise leading to a false triggering of the input.      Another book called it Arduino's pull-up resistance because it pulls current towards 5V, which confuses me even more - how can a resistor increase voltage, shouldn't the voltage drop?     Edit - thanks to @Golaž for pointing to helpful material at  , in comments (this edit was inserted on Mar 30 at ~6).      So, what is this whole concept? And which term push-up/pull-up is correct?  Also, with reference to that circuit above -   What is floating pin? How does R1 avoid a shorted circuit? Why does it count as short cicuit & not closed circuit. After all GND is a sink. Is a short circuit serious problem at mere 5V   I have already read:       But I still don't quite grasp it.

I'm wondering why pull up resistors in text books are told such that they pull up the voltage to \$V_{CC}\$. Here is a diagram:    When the button is open what will be the input voltage to the micro controller? \$V_{CC}\$? No voltage drop at \$R_1\$?


My wife and I have been talking for a few years now about getting some solar panels installed on our roof.  We even went so far as to have a sales rep for an installer come out and talk through our options.  He told us that we could:   Have a system that ties into the grid and sells electricity back to the power company.  This sounds like a great idea, and seems cost-effective as well. Have batteries that store surplus power to provide our home with backup power in case of a blackout.  Again this sounds like a great idea, but it also sounds like the cost would be prohibitively expensive for us. Have a battery-less system that provides power to our house when the power goes out, but only when the sun is shining.   .... but that we could not have both (1) and (3) without (2).  He insisted that if we are connected to the grid, there is no way to switch our system to directly powering our house in the event of a blackout; if we wanted to be connected to the grid and have emergency power, a battery backup system is the only way.  This makes no sense to me, and he was unable to explain why (other than "it's just a different kind of system").  I suspect he was just trying to upsell me to a battery backup system. But since I don't really understand the technology I thought I would ask here.  Can someone explain to me what, if anything, are the issues here?  Please be gentle, as this stuff is well beyond my zone of competence.

I am considering a home solar photovoltaic installation, probably 5 kW or so.   The usual configuration around here is with a  and .  But when the grid goes down, the inverter shuts off (to avoid back-feeding into the power grid and electrocuting linemen). We are interested in being able to use the solar when the power goes down (not infrequent in this rural area).   According to the solar installer, the only way it is possible to do this is to also install a battery system like .   The idea is that when the inverter loses the 60 Hz sinewave from the grid it shuts off; the inverter in the PowerWall supplies this sinewave, so the inverter doesn't shut off, and there's also a mechanism to disconnect from the grid. That sounds reasonable.   But the cost is not.  Two PowerWalls would roughy double the cost of the installation.  During outages, we would be satisfied to only have power when the sun shines; this would keep food safe, allow us to draw water, etc.  Electrically, there is no reason this can't be done without the expensive battery system.  All that is necessary is to generate the 60Hz reference for the solar system's inverter, and to disconnect from the grid. Has anyone been able to manage such an installation? Would it be strictly DIY (perhaps feasible as I'm a electrical engineer)?


Despite "warming up" via repetitions, and a bit of complexity added to the algorithm, parallelSetAll() seems consistently slower here. I'm not really trying to micro-benchmark here, just getting a rough feel for what's happening.  import java.util.*; import java.time.*;  public class SlowParallelSetAll {   static final int SIZE = 20_000_000;   static long timeIt(Runnable test) {     Instant start = Instant.now();     test.run();     long millis = Duration.between(start, Instant.now()).toMillis();     System.out.println(millis);     return millis;   }   public static void main(String[] args) {     int reps = 10;     long[] la = new long[SIZE];     for(int i = 0; i < reps; i++)       timeIt(() -> Arrays.setAll(la, n -> n * n * 11 + n * 7));     System.out.println("###");     for(int i = 0; i < reps; i++)       timeIt(() -> Arrays.parallelSetAll(la, n -> n * n * 11 + n * 7));   } } /* Output: 38 37 35 34 35 34 35 34 34 35 ### 52 42 43 44 46 46 44 44 43 43 */   The (lambda expression) algorithm should be independent as it only relies on the index value n, and therefore seems like it should be easily parallelizable.  Moving the calls around, alternating the two approaches, etc. does produce different results, but it also seems like there's something more here than just micro-benchmarking noise. For one thing, I was expecting bigger time differences between the normal and parallel versions. Also, it seems like one might stumble across situations where the parallel version might seem like the right choice but the normal version would actually be more appropriate. Basically I'm looking for some insights on this---including whether there's some easy way to show that what I'm seeing is purely a micro-benchmarking phenomenon.  For what it's worth, here it's rewritten to use System.nanoTime() and just alternating the tests. These results seem reasonable, although the whole microbenchmarking issue is daunting:  import java.util.*; import java.time.*; import java.util.concurrent.*;  public class SlowParallelSetAll {   static final int SIZE = 20_000_000;   static long timeIt(Runnable test) {     long start = System.nanoTime();     test.run();     long delta = System.nanoTime() - start;     long millis = TimeUnit.NANOSECONDS.toMillis(delta);     System.out.println(millis);     return millis;   }   public static void main(String[] args) {     int reps = 10;     long[] la = new long[SIZE];     for(int i = 0; i < reps; i++) {       timeIt(() -> Arrays.parallelSetAll(la, n -> n * n * 11 + n * 7));       timeIt(() -> Arrays.setAll(la, n -> n * n * 11 + n * 7));     }   } } /* Output: 41 74 41 73 41 67 40 67 40 67 41 67 41 67 40 67 40 67 40 67 */

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


I recently went to the US and was a little bit confused about the tipping procedure sometimes. I found many resources on how much to tip, but now how exactly it goes down. To my understanding, tipping in cash is preferred in most places, so that is what I tried to do. The problem is, that I used the credit card more often than cash, so I did not have enough change/small bills to pay an adequate tip. Let's see how I usually payed:   Receive check Give credit card Receive receipt Leave tip in cash Leave restaurant   What do I do if I do not have the right amount of cash to tip at step 4? Assuming I want to tip $10, is it okay to give a $20 and ask for $10 back? If I have no cash left, when do I say how much I want to tip? Is it acceptable to leave the tip at the table and leave?

I'm supposed to write down something on the bill I get? Do I hand the waiter my credit card after doing so?  Since I need a receipt, do I wait for the waiter to bring things back? What's the process, from asking for the check till I can walk out with a receipt?


Need help, my question here is how can I code it such when the result is not expected testNG will display the test case as failure/fail? if the result is expected test case result is passed? very new to TestNG. my problem here is no matter how many times I run, the testNG result is PASSED.  public class TestNgbasic{  DesktopOptions option=new DesktopOptions();    @BeforeMethod public void setup() { //  DesktopOptions option=new DesktopOptions();  // Start your outlook session     option.setApplicationPath("C:\\Windows\\System32\\calc.exe");       }  @Test public void testcase1 () throws MalformedURLException, InterruptedException {     WiniumDriver driver=new WiniumDriver(new URL("http://localhost:9999"), option);     Thread.sleep(5000);     driver.findElement(By.name("Seven")).click();     driver.findElement(By.id("plusButton")).click();     driver.findElement(By.name("Eight")).click();     driver.findElement(By.id("equalButton")).click();     Thread.sleep(5000);     String result = driver.findElement(By.id("CalculatorResults")).getAttribute("Name");             if ("Display is 15".equals(result))     {         System.out.print("Pass");        }     else          System.out.print("Fail");    }      }

I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this?


I have looked at what was marked as the duplicate of this and it is not. I'm pulling from two tables, not one.  First, allow me to say I had nothing to do with the design of this database.  I have two tables that must be joined, and then an unknown amount of rows where the data must be concatenated into one giant string. They are joined by the Record ID.   Item table:  Item         RecordID --------------------- Car A        123 Car B        456 Car C        789   Yes, the words literally cut off in the middle. There should be nothing added between the values, and I also need to keep the commas and other special characters.  Details table:  RecordID     Details -------------------------------- 123          black pain 123          t, radials 123          , green le 123          ather, spo 123          rt steerin 123          g wheel, b 123          uilt-in GP 123          S 456          standard 789          black leat 789          her, teles 789          coping ste 789          ering whee 789          l, seven c 789         up holders 789         , heavy du 789         ty mudflap 789         s   What I want to end up with is this:  ItemID       RecordID     Details ---------------------------------------------------------------------------- Car A        123          black paint, radials, green leather, sport steering wheel, built-in GPS Car B        456          standard        Car C        789          black leather, telescoping steering wheel, seven cup holders, heavy duty mudflaps   I've looked at all the XML ones and can't figure out how to do this.  Thanks in advance.

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


So I'm trying to create a flat 3D world map from a .svg file which I grabbed from this site:   I've imported it to Blender and did some research on how to create a 3D object from this by filling with shape. However, it does not fill all the countries only a bit on the top and I am wondering what's wrong?  This is how it looks (when the "curve" layer is not seen, note there are two layers "curve" and "curve.001" if you try this yourself):    I'm also wondering if it would be possible to create each country into it's own 3D object?

I exported an svg 1.1 file from Adobe Illustrator CS6. I joined all the shapes by pressing Ctrl+J. I set the curve shape to 2D. Then I extruded using the right hand side panel:    So far so good. But when I try to apply even a slight bevel, all hell breaks loose:    It does get less insane if I bring the bevel down by multiple factors of 10... But then I really don't have much of a bevel.  Am I doing something wrong? Am I using the wrong kind of object? Should I be doing this with meshes? Do my curves just need cleaning up?


This was photographed near Budapest, Hungary, though my friend said she'd only ever seen these in the USA before.

I found a dozen of these small trees in a local park that is just an overgrown homestead.  The leaves look something like an elder but the flower clusters surrounded by white, four petaled false flowers are completely unknown to me. What species is this?     Location:  Shenandoah valley in central Virginia, U.S.A.   Sandy soil on inside of a sharp curve of the South River, just above the flood plain.  This area has been occupied by people, for a couple hundred years,  so this could very well be a cultivated plant.


Having downloaded and installed a sound recording software which contained viruses causing unwanted web pages and javascript panels to pop up, I thought I would get rid of the problem by installing AVIRA, but that did not work. So I've just uninstalled Avira and installed the commercial software McAfee. Having run a complete 8 hour or more scan on my Windows 7 Home Premium 64-bit coomputer, I now have ended up with the following window:    I can't believe the problem couldn't be fixed. I always thought McAfee could get rid of all PC problems. Now what? Am I stuck forever with these two viruses????    EDIT: Now I get it. McAfee would have blocked these programs before they could actually get installed had I installed it before running any programs from the Internet without checking out any comments by other users (and the program I downloaded that contained the viruses, called Free Audio Converter 2015, actually was the first result when I typed free audio converters in the google search box (an inorganic paid result). What a scam. Now these viruses have opened the door for many more viruses. I have even called McAfee support and they would only help me for a fee and would not offer free support, not even as a one-off, for my localized version of Windows. So now, my decision is: back up my user directory and reinstall everything from scratch!!!! (that will get rid of all viruses and malware for good), and install McAfee as soon as the Windows installation is finished.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I think this is not an unusual situation for many Stack Exchange users: I might have a beginners' question concerning some area I am not familiar with, for example, about JavaScript, SQL, sed, ... (to name a few examples from Stack Overflow) or about cooking, DIY, German language ... (to add examples from other sites).   It is quite likely that such basic questions have been already asked and answered - so I might be able to find it by searching on that site or I might be directed by Google to a question on some Stack Exchange site. Since I have enough reputation (thanks to the association bonus), I will also upvote the question and probably some of the answers - after all, they have been useful to me. However, from the viewpoint of people familiar the given area, the answers are very likely quite trivial. (I looked up the question mainly because I am new to this area.)  In several discussions about HNQs and upvotes on the HNQs1, a frequent complaint was that upvotes coming from users unfamiliar with the site distort the score as a measure of the quality of the questions/answers. Various measures to prevent this were suggested.  Question: Don't the questions which are often asked (or searched) by beginners have the same problem as HNQs? (Or, more generally, questions which gain many views because people are often interested in that particular topic for whatever reason.) And if this is considered a problem, should something be done about that?  On one hand, one could see this as positive thing: The questions which are useful to "general public" get a lot of upvotes. This makes them a bit more noticeable and they serve as some kind of "showcase" where the site displays how good answers the community can give to the topic which are frequently asked. On the other hand, the objection raised in the discussions about HNQs (a lot of reputation points for a trivial answer) might be applicable also here.  I should probably stress a bit that I am asking this partly in relation with the ongoing discussion about HNQs. (There are several discussions related to this aspect HNQs both here and on per-site-metas.)  These questions are somewhat similar to HNQs in the sense that many views (and some of the votes) might come from people who come from other sites. Of course, this effect is more prominent in HNQs, since people who visit a question from the HNQ list are already coming from some Stack Exchange site. (Unlike people who found some frequently question, for example, from Google.)    I have searched a bit for related questions posted on this site in the past. This seems (to some extent) related:  and .   Easy questions have also been discussed in connection with . However, in discussions about FGITW the concern seems to be more about the reputation gained by users who are first to answer.    1HNQ stands for . Some examples of past discussions related to them:  and .

Recently I answered two questions on SO: The  is a completely trivial answer to a really basic question (kind of "read the manual and follow the one liner example there"). On the other hand, my  is a much more complicated answer that requires much more specialized knowledge of a very specific domain (happens to be related to my PhD research).  Clearly, the first answer could have been given by many SO users - I just happened to be the first to pick up the glove on this question. However, this is not the case for the second answer.  In contrast, when it comes to reputation - the first answer instantly got upvoted (everyone can relate to a simple question/answer), while the second one - I don't believe it will get much upvotes...  So, life isn't fair: for the one answer that really very few people could provide (the second answer) and is much harder to find and get -- is not rewarded, while the trivial answer is rewarded fast and strong...  How can we amend this? How can we encourage rare and specialized answers for difficult and deep questions?  Do we want SO to turn into a pool of trivial and superficial questions?    Update: Thanks to many meta-users who took the time to read through this question and ponder its implication, both answers I used as examples got exposed far beyond their fair-share. So, despite the fact that my original claim that the specialized answer get less reps is no longer valid, this does not change fact that in general my claim is stil valid: specialized answers requiring expert knowledge will recieve less attention at first.    Bottom line: (following my wish to have some sort of ). Indeed it sometimes seems like life isn't fair, but this is only in the short term. In the long run high quality answers do get their proper credit and exposure and their fair share of reputation. The reputation system of SO works quite well balancing and accounting for many factors and parameters. It would require a really strong argument backed up with serious research to change this mechanism.   Thank you all for the lively discussion and for showing me that life is fair after all.


I have been rendering my very first animation and all has gone well (albeit very slowly). I had to stop the rendering to do something else and when I started it up again all the rendered images (png) have started to come out purple! Any suggestions please.

I made a character, and its one of my first times texturing, and I saved my character into a new folder, and when I came back to the model ALL the textures were pink, I used to know what to do, but I stopped texturing, how do I bring my textures back?


I have to know size of an array after passing it to a function. For example,  #include<stdio.h> void func(char *ptr) {      printf("%d\n",------); //Here i want the actual size of the array passed to ptr. What to fill in the blank to get total size of the arr[] } main() {     char arr[10] = "Hello";     printf("%d\n",sizeof(arr));  // here it is giving 10 bytes that is equal to total size of the array     func(arr); }

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I have Ubuntu 14.04  running as a virtual machine through Virtualbox and I'm trying to set up a directory to share with the Host (windows 8.1). Under settings I have specified a windows directory that I want to be shared:    However, when I boot up the virtual machine I can't see any reference to it under devices - just VBOXADDITIONS and Computer. Does anyone know what I could be doing wrong?

I have Ubuntu installed in Virtualbox. I want to mount my VirtualBox shared folder in Ubuntu automatically when I log in Ubuntu. I put the following line in my ~./bashrc and ~/.bash_profile:  sudo mount -t vboxsf windows_share /media/windows_share   where windows_share is the name I created with Virtualbox. But everytime I start my Ubuntu, it asks me for passwd since it needs sudo. Is there anyway to automatically mount Windows share without entering password every time I log in?


I want the latest version of GCC, namely the GCC 6.0, for running a software. The linux version installed is 14.04 LTS. Every time I am trying to upgrade the GCC version I am ending up installing the version 4.8.4.

I want to compile my program with the latest version of gcc.  Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: . I tried to install it  sudo apt-get install gcc-4.9   but it says  Reading package lists... Done Building dependency tree        Reading state information... Done Note, selecting 'gcc-4.9-base' for regex 'gcc-4.9' gcc-4.9-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   Looks like it is already installed, just not as the default one? How do I utilize it to build my program?


I have installed eclipce using  // command sudo snap install eclipse --classic  Now, i want remove eclipse. What i tried rahul@rahul:~/Desktop/projects/temp$ sudo apt-get purge Eclipse Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package Eclipse   rahul@rahul:~/Desktop/projects/temp$ sudo apt-get purge eclipse Reading package lists... Done Building dependency tree        Reading state information... Done Package 'eclipse' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I used this command line  sudo snap install pwgen-tyhicks   to install pwgen but I can't findout how to use it. So I want to uninstall it. How to  uninstall it?


Hey I'm pretty new to university math and one of my assignments wants me to determine whether this formula converges or diverges. My reasoning was that it is bigger than 1/n and that diverges. so it should diverge as well.

I want to prove that $\sum\limits^{\infty}_{n=1} \frac {2^n} {n^n}$ is convergent.  Therefore I want to use that it will be convergent if $\lim\limits_{n \to \infty}|\frac {2^{n+1}} {n^n}| < 1$ is true.  But I am not sure if all of my steps are legal to do in order to do it. Here is what I came up with:  $$\lim_{n \to \infty}|\frac {2^{n+1}} {n^n}| < 1$$ $$\lim_{n \to \infty}|\frac {\sqrt[n]{2^{n}} \sqrt[n]{2}} {\sqrt[n]{n^n}}| < \sqrt[n]1$$ $$\lim_{n \to \infty} \frac {2 \sqrt[n]2} {n} < 1$$ $$0<1$$  $\Rightarrow$ It is true.


If I find similar questions on StackOverflow that haven't been updated in years (which likely include outdated information), is it better to ask a new question, or continue the conversation in the old thread?  Would commenting in the old thread even get any attention?

What is the endorsed way of requesting updated answers to an old question?  Say I'd like to know the best GUI application for some command line tool. Of course this question already exists and has an accepted answer dating of two years ago. Since then new applications have seen the light and are maybe also featured in some comments or answers, but I'm not sure that their votes have catched up because old questions don't get that much attention.  Should I just ask a new question pointing out that I consider the duplicate question stale?   There's another  where the answer suggests that the mechanism for keeping answers up to date is downvoting older and upvoting newer answers. I don't have the impression that this mechanism really works for all types of questions.


I've created a new partial caster class that focuses on using spell slots solely for the purposes of suppressing magic in the world. I'm calling it the Void Mage. I've done my best to make it balanced using the guidelines from . I've also had the players I regularly play with contribute to balancing as well.   Now I feel like I should have it reviewed by someone outside of our circle in order to have a more unbiased opinion. Where can I upload my home-brew class so that others may comment and critique my work?

I would like to post my homebrew subclass to get reliable feedback from the d&d 5e community. Do you have any suggestions as to what forums I should look to for that?


The following alerts 2 every time.  function timer() {     for (var i = 0; i < 3; ++i) {         var j = i;         setTimeout(function () {             alert(j);         }, 1000);     } }  timer();   Shouldn't var j = i; set the j into the individual scope of the setTimeout?  Whereas if I do this:  function timer() {     for (var i = 0; i < 3; ++i) {         (function (j) {             setTimeout(function () {                 alert(j);             }, 1000);         })(i);     } }  timer();   It alerts 0, 1, 2 like it should.  Is there something I am missing?

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


Is there a mirror symbol for the $\neg$ symbol, or a symbol like $\vdash$ without the bottom part of the vertical line? I couldn't find it. Thanks.

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


It is said: “The Flash” teased fans with Iris finding out that her best friend is the Scarlet Speedster in the erased timeline.  So does it mean that the original timeline is erased?   Can the Flash go back to the original timeline or does he have to live in a new timeline?

At the end of Out Of Time, Barry has to run so fast that he accidentally jumps back in time by approximately one day, and becomes the doppelganger he had seen running alongside himself the day before... To Be Continued.  The next episode, Rogue Time, picks up right where Out Of Time left off, and Future!Barry starts living the previous day over.  But since he hadn't jumped back in time yet, for the next day at least, Past!Barry should still be around, but he never shows up.  As far as we can tell, except for those few seconds when the two versions of Barry saw each other running beside them, there was only ever one Barry Allen in Central City that day. (And, just to make things worse, because Future!Barry prevented the tsunami from happening, Past!Barry would never have ended up jumping back in time, so there should have been two of them indefinitely!)  So what happened to Past!Barry?  It's never explained on the show, but has anyone involved with the show provided any insight into what happened?


This function always return "0" in IE  function getFlashVersion(){  var flash = 'None';  // Count down from 10.  for(var i = 10; i > 0; i--)  {    try{     flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+String(i));    }catch(e){      //console.log(e);    }    if(flash != 'None')     return flash.GetVariable("$version");   }  return 0; }   but chrome return 11.8.r800  how to detect flash player version in IE.

Does anyone have an example of script that can work reliably well across IE/Firefox to detect if the browser is capable of displaying embedded flash content. I say reliably because I know its not possible 100% of the time.


Given a lightning component with a design component included and said lightning component is used in a quick action....  Is there any way for the sf admin creating the quick action to set the values of said design attributes for the quick action?  I know this can be done if the component was placed in the page layout but the component is designed as a quick action and not meant to be in the page layout.  Just in case this is not possible, I created an  that can be voted on.  Use Case for the above:   Quick action makes a callout (Apex controller) that requires a specific property value to be sent. (ex. "I", "O", or "H")  Said property can be 1 of 3 values and needs to be specified to determine the types of records the endpoint returns. While it does not typically change within an org it could change between orgs Thus a design component specifies the options and the user chooses which value to set the property to when definining the quick action When quick action is executed, the property is set to the choosen value.   Right now all we can do is default the value which make it tough to implement for a large customer base.   Current workaround is to use a custom setting, but that requires significantly more work expecially if there are differing values for different recordtypes, objects, etc.  Update:  Had to abandon the quick action because the size of the modal could not be increased. No way to get a handle on the DOM for the modal. Had to go with a first class component.  Please vote for this idea as well:

I have a lightning component that is available for use as lightning component quick action. I need to use this component from various object actions, for example, I will add a lightning component quick action to account object and to contact object. Now on the lightning component itself, I want to know if it was invoked from the account object or from the contact object, but I cannot find a way to do that. I have found a way to get the record Id by adding <aura:attribute name="recordId" type="String" /> (see code snippet below) It is working but not good enough. What I really need is to send a parameter from the lightning component quick action invocation:  And get it in my component: <aura:component implements="force:lightningQuickAction,force:hasRecordId,flexipage:availableForAllPageTypes">     <aura:attribute name="recordId" type="String" />     <aura:attribute name="param" type="String"/> </aura:component>  Is this possible? And if not - any workaround for achieving that?


I am trying to obtain the plain text from a string containing RTF formatting. For example, I have:    originalText = {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} \viewkind4\uc1\pard\f0\fs20 the temp is forty degrees\par}   and I want to obtain:  plainText = the temp is forty degrees    I found the following Regex online: ({\)(.+?)(})|(\)(.+?)()  So I tried this but it just gave me back the original expression:           pattern = "({\\)(.+?)(})|(\\)(.+?)(\b)";         plainText = originalText.replace(pattern,"123");

I was looking for a way to remove text from and RTF string and I found the following regex:  ({\\)(.+?)(})|(\\)(.+?)(\b)   However the resulting string has two right angle brackets "}"  Before: {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}{\f1\fnil MS Shell Dlg 2;}} {\colortbl ;\red0\green0\blue0;} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\tx720\cf1\f0\fs20 can u send me info for the call pls\f1\par }  After: }   can u send me info for the call pls }  Any thoughts on how to improve the regex?  Edit:  A more complicated string such as this one does not work:  {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}}  {\colortbl ;\red0\green0\blue0;}  {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\tx720\cf1\f0\fs20 HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\test\\myapp\\Apps\\\{3423234-283B-43d2-BCE6-A324B84CC70E\}\par  }


Please, explain, how to calculate this limit?  $$\lim_{n \rightarrow \infty} \frac{1}{n} \sum_{k=1}^n \frac{k}{k^2 + 1}$$

Could please give me a hint.  $$\lim_{n\rightarrow\infty}\frac{1}{n}\sum_{k=1}^{n}\frac{k}{k^{2}+1}$$  It looks like an integral, but I failed to figure out the function.


When using the title method, can it only be used on a string or can it run through an entire field and update Names to proper case in a table?   str.title()   I have tried the following and it did not work;  arcpy.title(table,'Field')

Does anyone know how to use the .upper() in a stand alone python script so it can be used to change all characters in a table into UPPER case?  I don't want to use the field calculator since I have multiple tables, etc...  I currently am using a cursor to correct mistakes in my tables, but can't figure out the correct syntax to use it to convert all the strings to UPPER case!    The above question would apply equally well when the change of case desired is to lower or title.


I create dynamic content via jQuery that looks like:  $('#usersList tbody').append(' \
 \     Dan	 \     id }}" data-toggle="modal" data-target="#userEditModal"> \         <button class="btn btn-default btn-sm edit-user-btn"> Edit</button> \     	 \
 \ ');   Then, I try accessing the content in ".users-list-name" with:  $('.users-list-edit', '#usersList').on('click', function () {     var name        = $(this).parent().find('.users-list-name').text();     console.log(name) // dynamic content not working here });   #usersList is the id of the table.  That click function works for the data that was already there on page load.  How can I access data in this dynamic appended content?

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 booting Ubuntu 15.10 from my flash drive, and I am getting the error for kernel image vesamenu.c32 (i cant recall the exact error message. The original OS on the C:/ drive is Windows XP.  Can I find the vesamenu.c32 on the internet, download it, and copy it to the correct directory? If so, how many places is it used? Also, if its possible, can you write me a batch (.bat) file for windows to copy it to all the right places? (Or tell me how to write one?)  Thx  Addition to question:  What I am saying is 'is it possible to find the vesamenu.c32 on the internet, download it, and copy it to the appropriate directories? If so, pls tell me where

Can't boot Live-USB. Error: 'Cant find vesamenu.c32'. Do I have to Download and install on USB pen again?


I came across this notation in a question. Where a and b are column vectors. What does it mean? To me, it looks like an inner product but it is separated by a pipeline instead of a comma.

So I was reading "Resistance Distance" (D. J. Klein, M. Randić) (Journal of Mathematical Chemistry 12(1993)81-95) when I came up with strange notation.  From the paper:  The graph adjacency matrix is defined as: $$A_{xy} = (x|A|y) =  \begin{cases} 1/r_{xy} & x \sim y \\ 0 & \text{otherwise}  \end{cases}$$  The graph degree matrix of a graph is defined as:  $$\Delta_{xy} = (x|\Delta|y) = \delta(x,y) \sum_{z}^{\sim x} 1/r_{xy}$$  $$ |\phi) \equiv \sum_x |x)  $$  My main question is what does the combination of the vertical bar parentheses mean. Thanks in advance.


I want to access PC in LAN from other devices. I cannot use static ip for my PC. Is there a way to use hostname instead of dynamic ip to access PC so that even if ip changes i can access PC with its hostname? I am usin Linux.

I'm new to Linux (currently running Ubuntu 10.04) and I have just finished setting up SSH access to my Linux Machine.  Currently, I have to use ssh root@x.x.x.x to connect but would much rather be able to swap the IP for the computer name (like in Windows with \\name) or a domain name (like computername.example.com). I don't really know where to start so any help would be most appreciated.  Please go slowly, as mentioned - I am still new to this.  EDIT 1 Completely forgot to mention that I am trying to connect from Windows 7 (via PuTTY) - sorry.


I have seen posts about the difference between ML and Statistics. And I have also seen posts explaining that Statistical Learning is a statistical approach to ML. But then, this is confusing because what is the difference between Statistics and Statistical Learning anyways?  To finally resolve this confusion, I was hoping someone would be able to provide an answer.

Last year, I read a blog post from  entitled  that discussed some of the differences between the two fields.  :  Simon Blomberg:      From R's fortunes   package: To paraphrase provocatively,   'machine learning is statistics minus   any checking of models and   assumptions'.   -- Brian D. Ripley (about the difference between machine learning   and statistics) useR! 2004, Vienna   (May 2004) :-) Season's Greetings!   Andrew Gelman:     In that case, maybe we should get rid   of checking of models and assumptions   more often. Then maybe we'd be able to   solve some of the problems that the   machine learning people can solve but   we can't!   There was also the  by Leo Breiman in 2001 which argued that statisticians rely too heavily on data modeling, and that machine learning techniques are making progress by instead relying on the predictive accuracy of models.  Has the statistics field changed over the last decade in response to these critiques?  Do the two cultures still exist or has statistics grown to embrace machine learning techniques such as neural networks and support vector machines?


I want to know the value of $$\sum_{k=1}^\infty \frac{k^2}{2^k}=\frac{1}{2}+\frac{4}{4}+\frac{9}{8}+\frac{16}{16}+\frac{25}{32}+\cdots+\frac{k^2}{2^k}+\cdots$$ I added up to $k=50$ and got the value $5.999999999997597$, so it seems that it converges to $6.$ But, I don't know how to get the exact value. Is there any other simple method to calculate it?

How to evaluate those infinite series? How are they called?  $$ \sum_{k=1}^\infty \frac{k}{2^k} \quad \text{and} \quad \sum_{k=1}^\infty \frac{k^2}{2^k} $$  I'm really sorry for asking, but I can't figure out how to google such stuff when I even don't know the names/categories.


Download stack is missing from the iMac Dock. The Download stack was originally present but may have been removed with the High Sierra update. Presently all downloads go directly to the download file and plus be recovered from the Finder application. I have not been able to find guidance on how to solve this problem in the Safari help.

I did something stupid apparently and lost my Downloads folder both from Dock and then when I opened Finder to drag it down to the Dock it somehow got deleted in the desktop.  Now although I can see the folder exists (e.g. by searching in Spotlight) I do not know how to restore it in the Dock and in Finder as well. Any help please?


$e^x \le x+ e^{x^2}$ for $x\in \mathbb{R}$.   I'm struggling to show this inequality. I've tried differentiation but to no avail. How can I show this? I would greatly appreciate some help.

Does anybody have a simple proof this inequality  $$e^x\le x+e^{x^2}.$$  Thanks.


I checked out master and then created a branch out of it (with checkout): patchA I made some changes, committed, pushed, even made a pull request for branch patchA Pull Request has not yet been reviewed (and not yet merged into master, of course) I then created another branch out of master (with checkout): patchB I made some changes, didn't even commit those...  *** Now, I wanted to take a look into patchA, so I checked it out - I see my changes that I pushed but also the changes I made in patchB ! Why is that? I thought the whole idea of branches is to isolate work, to make things a little neater for delivering units of work and reviewing them... More info: When checking out patchB, I don't see the changes from patchA

I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that same file is shown as modified.   For example:  git status in git-build branch:  # On branch git-build # Changes to be committed: #   (use "git reset HEAD <file>..." to unstage) # #       modified:   cvsup_current #   Switch to master branch  [root@redbull builder_scripts (git-build)]# git co master M       builder_scripts/cvsup_current Switched to branch "master"   git status in master branch  [root@redbull builder_scripts (master)]# git status # On branch master # Changes to be committed: #   (use "git reset HEAD <file>..." to unstage) # #       modified:   cvsup_current #   Why is that the file is shown as modified in master branch even though it was modified in git-build branch?   My understanding was that the branches are independent of each other and when I change from one branch to another the changes do not "spill over" from one branch to another. So I am obviously missing some thing here.   Anyone got a clue stick?


I had struggle to find the answer to this question: Imagine two charged identical particles, one stationary relative to earth, and the other one is free falling (to earth). We know that an accelerated charged particle radiates. But the real problem is, according to Newton, the free falling particle will radiate but with Einstein's relativity, the stationary one will radiate. (I'm not sure about this, correct me if I'm wrong). Can anyone explain which one is correct?

A charged particle undergoing an acceleration radiates photons.  Let's consider a charge in a freely falling frame of reference.  In such a frame, the local gravitational field is necessarily zero, and the particle does not accelerate or experience any force. Thus, this charge is free in such a frame. But, a free charge does not emit any photons. There seems to be a paradox. Does a freely falling charge in a gravitational field radiate?


Took a boneless ham (shrink wrapped) out of freezer at 5 pm, and left it in sink all night, til 8 am. Room temp 65 degrees.  Is it safe to eat?

I generally defrost meat on the kitchen counter. A friend of mine suggested that this was dangerous and suggested that I defrost meat in the refrigerator. I am no biologist but it seems to me that as long as the meat doesn't get warm defrosting it on the counter should be safe.  Generally, I remove the frozen items from the freezer and place them on a plate on the counter in the packaging they were frozen in. When they are mostly / completely thawed I place the meat in the refrigerator.  Am I wrong and should I be defrosting in the refrigerator?


my question is as simple as this: How can I pass parameters as reference or as value in JavaScript as I could do in PHP. Example with PHP:     function increase(&$value){          $value++;         return $value;      }     $number = 4;     echo increase($number) . "<br/>";     echo $number;  How can I accomplish something similar with JavaScript? Thank you and Blessings.

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