I have installed a windows application using wine and I tried to create a text file on desktop containing the following line:  wine ".wine/drive_c/Program Files/app1/app2018/app.exe"   then I saved the file as a .sh file and I made the file executable to be able to open this application directly by double clicking the text file, but it didn't work.  Note that when I write the same line in terminal the application opens directly with no problems.  Any ideas please?

This a specification of my previous question () where I wondered how to create a .desktop file in order to create an icon on the launcher for a Wine application.  I don't understand what do we have to do with the following code:   [Desktop Entry] Name=FooBar Comment=Foo & Bar Exec=sh -c "cd /home/USER/.wine/drive_c/Program\ Files/FOOBAR_FOLDER; wine foobar.exe" Icon=wine Terminal=false Type=Application Categories=Wine; StartupNotify=true       Replace USER and FOOBAR_FOLDER with appropriate values. So you'll be   able to locate your application in the Launcher by typing "FooBar".   This is the top answer given to a question similar to my previous one, which you can see here: , but I don't understand how shall I handle the code I just provided. I tried to copy and paste on the terminal, but it wouldn't work.  In other words, I need that same answer but more comprehensively explained and easier to understand since I don't get what to do with the code provided! Please note, I have few skills with computers. Thank you very much! :)


At times I am really frustrated with constant rejections when the papers just fail to make it to acceptance. And if this keeps happening for quite some time, especially when your peers are moving on, how do you deal with it? I am working, trying to address the reviews but somehow at some point, it is getting too much for me.

I have received feedback from reviewers on my latest conference paper (this is in Computer Science). It was an acceptance, which is nice.  I feel I really need to consider in depth the reviewer feedback.  I have consciously noticed I have a emotional reaction. Which is not rational, practical, or useful.  How can I clear myself from it, and handle the review on a factual basis?  Is it better to sleep on it? Perhaps it would help to strip the acceptance from it. Or maybe to rewrite it in my words as if I were reviewing the paper?  Overall I guess I should feel happy, but of course the written reviewer feedback only points at the weaknesses in the work. Which is reasonable, since they can indicate it was generally good with their accept statement. (At the end of the day, an accept is an accept, right?)


In ArcCatalog I'm looking at a feature's table fields.   The DATECREATED column is empty for all features.   How can one determine when a specific feature was created?

I am using Arc Desktop 10.3.1 in a versioned environment.  In the geodatabase for the service requests there is a field called Date Notified.  I would like this field to be auto-populated with the current date\time when a new feature is created. ( See attached picture)  I have tried setting the field to Now() (Now) (Current_Timestamp) and others and each time it tells me my syntax is incorrect.  Is this possible to do and if so what is the correct syntax to accomplish this.  Also I am aware of attribute assistant but I do not want to use that.


While looking through an old codebase of ours, I came upon this little snippet:  var getElementByXpath = function (path) {     return document.evaluate(path, document, null, 9, null).singleNodeValue; };   Why did they declare a variable and assign an anonymous function to it, rather than simply create a named function? How is that any different from the (much more normal and common) following?  function getElementByXpath(path) {     return document.evaluate(path, document, null, 9, null).singleNodeValue; };

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


Is it possible to consume the GeoJSON from Geoserver as a 'dynamic' service in a Leaflet application?  So far I have only seen how to consume a static GeoJSON file.  Being able to construct GeoJSON from what GeoServer publishes means we can publish PostGIS data to a Leaflet app without having to re-build a GeoJSON file.  The URL from GeoServer looks like this:    ...and the GeoJSON itself looks like this (for a single feature):  {"type":"FeatureCollection","totalFeatures":221,"features":[{"type":"Feature","id":"Schools_Current.521","geometry":{"type":"Point","coordinates":[-105.02726842,39.66184512]},"geometry_name":"geom","properties":{"school_name":"DSST: College View High School","abbreviation":"DSST:CV HS  ","elem":0,"mid":0,"high":1,"schnum":521,"classification":"Charter                  ","school_level":"High                     ","current_config":"9-10      ","final_config":"9-12      ","b_elem":0,"b_mid":0,"b_high":0,"label_x":-105.025346737628,"label_y":39.6620286090456}

I have a PostGIS database and have successfully consumed a table into GeoServer and published a WFS.  Are there REST endpoints available for these WFS' akin to ESRI's feature services?  How are parameters to be constructed?


I'm purchasing a digital camera & it says, "Effective pixels: Approx. 18.00 Megapixels".  What is this compared to 12.00 megapixels?

Are more megapixels good?  Are more megapixels bad?  Do more megapixels increase detail? Do they make my images sharper? On the other side, is there a point that is too much? Do megapixels cause increased noise and other problems? How does print and viewing size come into it?  Widespread Internet-forum wisdom used to be that 6 megapixels was the sweet spot — below that just wasn't enough, but above that, there wasn't much benefit. File sizes got larger, but detail was lost to noise and other problems. The arguments are that cramming too many pixels into a small sensor makes each pixel too small to provide any real benefit, and that higher-megapixel sensors outresolve cheap lenses anyway. (Substitute something like 12 instead of 6 if we're discussing APS-C DSLRs, or 24 for full-frame.)  By 2011,  was in the range of 12-18 megapixels. In 2016 most were are in the 16-24 megapixel range. Certainly none are at 6 anymore; even smartphones come with 8 megapixel cameras. Does this offer any real improvement over that old "sweet spot"? Has technology improved to the point where the "wisdom" needs to be updated, or are we all suffering for marketing? Or have we gone past the sweet spot in some ways, but it's okay because of previously-un-argued points. (For example: more noise, sure, but more detail as well.)  Within the 16-24 megapixel common-today range, for the same sensor size, is there any actual benefit to the higher end? How do megapixels directly affect image quality with today's technology? What are the benefits and when do they apply? What are the drawbacks, and when do they apply? How should I adjust my technique (and expectations) based on my camera's megapixel count?


I know in computer graphic, we can set a world window in world coordinate system, and then mapping it to viewport which is the display window. Things that are not in the world window should not be displayed and we can do this through Clipping (like in OpenGL). I have a question that do we have alternative methods?

Would it be, at least theoretically, possible to render without a near clipping plane? Could raytracing ignore this perchance?   Quite many budding 3d artists have a WTF moment the first time they encounter the clipping plane. If this could be avoided then it would be a big win for usability of 3D authoring apps. Its not one of those things a normal artist would think about until explained.


I have the following question:     Prove  $$ n2^{n-1} + n(n-1)2^{n-2} = \sum_{k=0}^{n} {n\choose k} k^2 $$   The best I could do was get to   $$ \sum_{k=0}^{n} {n\choose k} \frac{1}{n-k-1} + \sum_{k=0}^{n} {n\choose k} \frac{1}{(n-k-1)(n-k-2)}$$

Find a combinatorial argument for the following binomial identity:   $$n(n+1)2^{n-2} = \sum_{k=1}^{n}k^2\binom{n}{k} .$$   Algebraic proofs can be found at  , and a related identity at  .


I was wondering why you would say "There is people coming" as you can hear in the last trailer of Game of Thrones. English is not my native language but I'd think that you have to use plural in this sentence such as "There are people coming".  Is this "urban"-talk or am I missing something?

There are so many questions on this website. There is so many questions on this website.  The former "sounds right," but the contracted form of the latter does as well:  There's so many questions on this website.  Which is correct?


@Override     protected void onStart() {         super.onStart();          databaseVaccine.addValueEventListener(new ValueEventListener() {             @Override             public void onDataChange(@NonNull DataSnapshot dataSnapshot) {                 String k;                   vaccineList.clear();                  for(                         DataSnapshot vaccineSnapshot :dataSnapshot.getChildren())                  {                     //getting farm                     Vaccine vaccine = vaccineSnapshot.getValue(Vaccine.class);                     k= getSfuff();                     if (vaccine.CattleVaccineID.equals(k)) {                          vaccineList.add(vaccine);                      }                     //adding farm to the list                  }                  VaccineList adapters = new VaccineList(ViewVaccination.this, vaccineList);                 ListViewVaccine.setAdapter(adapters);             }              @Override             public void onCancelled(@NonNull DatabaseError databaseError) {              }         });     }     public  String getSfuff() {         Bundle bundle = getIntent().getExtras();           String stuff = bundle.getString("cattleID");         return stuff;       }   It's showing following error on the line   "if (vaccine.CattleVaccineID.equals(k)) "  java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference  Can someone find a solution to solve this error? I have tried many options and those didn't work properly.

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


I'm looking for some good tools in the Ubuntu platform which does convert the PDF to CHM files. I googled a lot. But I almost finding the tools for other way around (i.e CHM to PDF).

I am looking for any package or tool to convert pdf files to  chm. Is there such a tool?  I am running Ubuntu 13.04


I am a New Zealander on a resident permit in Holland. When my permit expires I plan to be travelling through France. Is this ok under the 90 day visa? I am exiting the Schengen zone for a weekend in London soon but will re enter to Holland living for another month before leaving to France.. Am I ok?   Dates:  Permit expires 9/9/14 Will be in France 10/9/14 returning home to NZ from Spain on 16/9/14 Travelling outside of schengen zone 18/7/14 for a weekend.

I am an Australian currently on a Netherlands working holiday visa that ends in May next year. I would like to know if when my visa ends I then get another 90 days just as a regular tourist visa as I would like to do some more travel within Europe when my visa ends before going home to Australia.


I am currently slowly mapping field boundaries of old agriculture map areas using QGIS. Has anyone designed a magic plugin or method so that the black outlines of the boundaries are automatically detected. A bit like finding edges in photoshop. I realise that some manual editing would be required, but I thought I would ask.

I have a raster (.sid extension) file. I want to digitize roads automatically in ArcMap, QGIS, etc. Digitizing by hand would be too time consuming.    How can I do this ?


I just got a program that can "shred" files so they cannot be recovered. It offers 4 erasing methods:   Random Data Method (1 pass) US DoD 5200.22M-STD (3 passes) US DoD 5200.28-STD (7 passes) Peter Gutmann Method (35 passes)   The program claims that the Gutman algorithm is the most secure, however I've read that that method is not necessary now with modern hard drives (not SSDs) and only a few passes or random scrubbing should be enough.  Which is the most secure method (with out actually having to physically destroy the drive)?

I am about to sell my old desktop PC and I am cautious about some of my sensitive information being available to the purchaser, even after reformatting the hard-drive, using data recovery software.  How can I securely wipe the hard drive so that the data on it cannot be recovered?  Although I specifically want help with my Windows PC, it wouldn't hurt if there were suggestions for Macs as well.


I am confused of all that different Quantum computers. please correct me if I say something wrong. There are two main different types of quantum computing:  Quantum Gates based computing quantum annealing  For quantum gate based computing, I know that there are different kind of architectures -- that's clear for me. But why I am so confused is, there is the Quantum Annealing, which is used by D-Wave Systems and that Q. annealer is using the adiabatic theorem , right ? So then we can say that Adiabatic Quantum Annealer = Quantum Annealer ? The next confusing term is Adiabatic Quantum Computer , is that Adiabatic Quantum Annealer? And the last is what is Quantum Simulator ? Where is that used ? which type of quantum computing are that simulated? And is there a difference between them and quantum annealing ? Too many questions :/

It seems that quantum computing is often taken to mean the quantum circuit method of computation, where a register of qubits is acted on by a circuit of quantum gates and measured at the output (and possibly at some intermediate steps). Quantum annealing at least seems to be an altogether different method to computing with quantum resources1, as it does not involve quantum gates.  What different models of quantum computation are there? What makes them different?  To clarify, I am not asking what different physical implementations qubits have, I mean the description of different ideas of how to compute outputs from inputs2 using quantum resources.     1. Anything that is inherently non-classical, like entanglement and coherence. 2. A process which transforms the inputs (such as qubits) to outputs (results of the computation).


I need to create a command that works as \hat[1], but instead of adding a hat on the argument I want to add a flipped hat -- the same symbol but rotated by 180 degree -- on the argument. I found the following code from a paper on Arxiv which adds a flipped hat on the word "HM".  \RequirePackage{rotating}        \def\Hto{    \setbox0=\hbox{$\widehat{\mathit{HM}}$}    \setbox1=\hbox{$\mathit{HM}$}    \dimen0=1.1\ht0    \advance\dimen0 by 1.17\ht1    \smash{\mskip2mu\raise\dimen0\rlap{       \begin{turn}{180}           {$\widehat{\phantom{\mathit{HM}}}$}        \end{turn}} \mskip-2mu                 \mathit{HM} }{\vphantom{\widehat{\mathit{HM}}}}{}}   The command creates this symbol:   Is there a way to change the code so that it can take an argument? I would like to change the word "HM" to different words, possibly with different length.  By the way, is there a place where I can learn to write more advanced LaTeX codes, like the one above, by myself?  Thank you very much!

I've come across this in a book I'm looking through, but I can't find the code for it. I want it to look exactly like the \widehat and go above text like \widehat does...I just want it to be (vertically) flipped!


I was waiting for a plane to take off last week, when we had to taxi back to the terminal building to disembark a sick passenger. We weren't told whether the passenger was male or female.   I was thinking about how to tell people about it, but realised I couldn't say that 'He' or 'She' disembarked, because I didn't know the sex. I couldn't say 'They' because I knew there was only one and I couldn't say 'It', because it wasn't an object. Without saying 'The sick passenger' disembarked, what word could I use?

Possible Duplicate:    Plural versus singular:  Anyone can learn to dance if they want to. Anyone can learn to dance if he or she wants to.  Resources online tell me that anyone is a singular indefinite pronoun. Then why is it sometimes acceptable to use the plural 'they' with 'anyone' in some cases? Does it substitute and replace 'he/she'? note: this previous posts also says anyone is [singular]:


Says something like "Fraud on tax return and you need to call this number as soon as possible."  I know there is a high probability that this is a total scam, but just-in-case:   How can I be absolutely sure? This is happening more frequently every year and they're getting more clever - anyone know of any new dangers this year?   I swear, I am about to terminate having a cell phone forever.

We got a recorded call with a message claiming to be from the IRS.  It said they were giving final notice and preparing to file a lawsuit against us.  In our case, the message went to voicemail so the end was cut off, but it seemed like a scam all the way. (We don't have any pending problems with the IRS as far as we know.)  The question was whether this is a known scam?


I'm having trouble getting a variable that is modified during a for loop to retain the new value after exiting the loop.  So I have an array called 'outputP' that stores String values. Then I have a for loop with a nested if statement that checks to see if another String value matches one of the strings in outputP and then sets a value for the int variable 'visitCode.':   String[] outputP = { "SC", "BL", "V04", "V06" };   int index = folder.getName().indexOf("_R");  String[] split = folder.getName().substring(index +1).split("_");  subjectInfo = new String[]{folder.getName().substring(0,index), split[0], split[1]};   if (subjectInfo[0].charAt(0) != 'S'      || subjectInfo[1].charAt(0) != 'R'      || Arrays.asList(outputP).contains(subjectInfo[2] != true ){        //Code here outputs error message  }   int groupCode;  int visitCode = 0;   groupCode = Integer.parseInt(subjectInfo[1].substring(1));   for (int i = 0; i < outputP.length; i++)  {       if (subjectInfo[2] == outputP[i])       {            visitCode = i + 1;       }  }   During debugging I've verified during one run that outputP[0] and subjectInfo[2] are both "SC", when I step through the code, it skips over the if statement and visitCode is left equaling 0. I also included above that first if statement, because, it functions as you would expect it to, recognizing that subjectInfo[2] (which was set to "SC") is a string that is also in the outputP array. Does anyone see something that I'm missing that would cause the compiler to skip over the nested if statement?  Thanks in advance to anyone who can help.

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


texdoc package-name provided package's manual in previous in my system. But, now it results -      $ texdoc beamer     Sorry, no documentation found for beamer.       If you are unsure about the name, try searching CTAN's TeX catalogue at     http://ctan.org/search.html#byDescription.   I am running Ubuntu 14.04 and my LaTeX-2016. I have installed it from tug.org. A few days ago I noticed that when I updated my ubuntu packages from ubuntu software updater there was latex-base. I have installed all those updates. I don't know whether the problem occurs for those updates or not.  Edit 1 provided that tlmgr update --self results -    $ tlmgr update --self (running on Debian, switching to user mode!) /usr/bin/tlmgr: Initialization failed (in setup_unix_one): /usr/bin/tlmgr: could not find a usable xzdec. /usr/bin/tlmgr: Please install xzdec and try again. Couldn't set up the necessary programs. Installation of packages is not supported. Please report to texlive@tug.org. tlmgr: exiting unsuccessfully (status 1).   and which texdoc results - /usr/bin/texdoc  I will be highly glad if you provide any fruitful solution.

I'm using Lubuntu 11.10. I have TeXlive 2011 full insttaled.   I've just installed TeXlive 2013 running install-tl script. Everything was fine. I choose the small scheme. No problem.   So according to  we should do this:     After the installation finishes, you must add the directory of TeX   Live binaries to your PATH—except on Windows, where the installer   takes care of this. For example:        PATH=/usr/local/texlive/2013/bin/i386-linux:$PATH       Use the syntax for   your shell, your installation directory, and your binary platform name   instead of i386-linux.    No problem until here. I changed my $PATH and when executing pdflatex --version on the terminal I got      pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)   kpathsea version 6.1.1   But I'd like to know how to take care of the last suggestion:     If you have multiple TeX installations on a given machine, you need to   change the search path to switch between them.   How to do that?


Let $X_i$, $1 \le i \le N$ be iid Bernoulli random variables with $P(X_i = 1) = 0,92$. Let $N = min\{n: \sum_{i=1}^{n} X_i \ge 1000\}$. What is the approximate probability of $N$ being greater than 1100? I understood that this probability could be calculated as follows: $$\begin{aligned}P(N > 1100) &= \sum_{n=1101}^\infty P\left(\sum_{i=1}^n X_i = 1000\right) \\ &= \sum_{n=1101}^\infty \binom{n}{1000} 0,92^{1000} 0,08^{n - 1000} \end{aligned}$$ I don't know how to approximate this expression without programming. I also tried to use simulations that got me a different answer. I'm not sure if this is not the correct expression or if my simulations are wrong. Any ideas would be helpful. Thanks

You and I decide to play a game where we take turns flipping a coin. The first player to flip 10 heads in total wins the game. Naturally, there is an argument about who should go first.  Simulations of this game show that the player to flips first wins 6% more than the player who flips second (the first player wins approx 53% of the time).  I'm interested in modelling this analytically.  This isn't a binomial random variable, as there are no fixed number of trials (flip until someone gets 10 heads). How can I model this?  Is it the negative binomial distribution?    So as to be able to recreate my results, here is my python code:  import numpy as np from numba import jit   @jit def sim(N):      P1_wins = 0     P2_wins = 0      for i in range(N):          P1_heads = 0         P2_heads = 0         while True:              P1_heads += np.random.randint(0,2)              if P1_heads == 10:                 P1_wins+=1                 break              P2_heads+= np.random.randint(0,2)             if P2_heads==10:                 P2_wins+=1                 break     return P1_wins/N, P2_wins/N   a,b = sim(1000000)


I come from Norway, and here the formatting of maths are a little bit different than in the U.S. and the UK. If you want to factorize 25, you know that it is 5 times 5. How would you write this with LaTeX? In Norway we would write 5⋅5, and as far as I've seen, with LaTeX, you would write: $5\times 5$ ( 5 x 5 )  Is there a difference, or is one of them wrong? Which one actually means times?

Is this purely personal style, or are the generally accepted guidelines? Clearly, when dealing with numbers either $2 \cdot 2$ or $2 \times 2$ is needed, but within formulae where an absence of an operator implies multiplication, when should a \cdot be used? I tend to use it only sparingly if it aids in grouping. (Of course, barring the cases where it's required, e.g. a dot product.)


I'm looking for a book with problem-solving approach to the intermediate classical mechanics. The book I expect should have:   Solutions to all of its problems Be Calculus based(!) - try to show me the way to solve the problem with integration techniques or using differential equations, even much more advanced material. Give clear definition of concepts and no  more fluff, going to solve the problems straightforward. Keep me focused on the problems rather than the amount of text remained to be read.   To put it in a nutshell, I don't want a book with bunch of useless text, I want something to help me go through problems. It would be really helpful to introduce the topics which are alike this topic.Moderators only specialty is to close topics for fun and profit.

I'm a bachelor student majoring in math, and pretty interested in physics. I would like a book to study for classical mechanics, that will prepare me to work through . What books would be good for a beginner?


Let an Infinity Axiom be any first-order sentence $\varphi$ such that for any model $M$, if $M \models \varphi$, then the universe of $M$ has to be infinite. An example of such a sentence is a $\forall\exists$-formula over the signature consisting of one unary function symbol, say $f$, asserting that $f$ is a non-surjective injection. It is well-known that in a functional language consisting of one unary function symbol, say $S$, and one constant (i.e. $0$-ary function symbol), say $z$, there is a $\forall$-formula (i.e., a purely universal one) that is an Infinity Axiom, according to the definition above. Question: if we restrict ourselves to a signature that consists only of one (unary, or binary, whatever), function symbol, does there exist a purely universal formula that is an Infinity Axiom? If not, how can one prove it?

Following up this question - :  Does there exist a universal sentence $A:=\forall x_1 \dots \forall x_n \varphi(x_1 ,\dots ,x_n )$ (where $\varphi$ does not contain quantifiers) that is satisfiable but not in finite models (i.e. only in infinite models)?


I tried setting my birthday to an old age to see if it would work, but I was stopped by a message that said "Birthday must be after 1920/01/01". According to  1.9 million people in the U.S. lived to 90. This number has nearly tripled since 1980.  Shouldn't we have a more realistic age cap (hence even more), like 107?

There is a restriction on setting your birthday:     Oops! There was a problem updating your profile:   - Birthday must be after 1920/01/01   I realize the number of 90 year old users is small, but shouldn't the restriction be a bit more relaxed, such as larger than any ?  Either 120 or 150 seems appropriate.  For example, my grandfather turns 90 next year (and just barely misses the current cutoff), but I can't imagine he's the only one around that age who is computer literate and still active enough to be interested in (the increasingly broad range of) SE sites.  I don't think he has contributed yet (mostly because of the comment restriction, I'd see him commenting before asking or answering), but I have emailed him with links that I know he's read.  Incidentally, the error message is wrong: birthday must be after 1919/12/31 and using the next day is accepted.


Like the title says, I would like to know if it is possible to connect the 0V reference output of any switching power supply to the neutral conductor. Here is an image of what the connection should look like:    What would happen if I place this connection? Is it safe? If that isn't such a good idea, is there another way to reference de 0V output to the neutral?  Regards.

If you connect the negative terminal of a Class II (isolated) wall-wart-type power supply to the neutral of the mains circuit feeding the wall wart, will that cause any damage or hazards that I should be aware of, besides the wall-wart's + terminal being considered a "live" mains wire at that point (as its now mains-referenced)?  Would the results be different if a switching wall-wart was used instead of an iron-core one?  Update: this application is being wired to the interconnect circuit on hardwired smoke detectors, which is the reason it's neutral-referenced -- it seems that all interconnected hardwired smoke detectors use the '9V on interconnect wire with respect to neutral = alarm' convention -- this only works if your supply for this is neutral-referenced.  Obviously, this'd be in a sealed box where wayward fingers, tongues, etal couldn't get at it, and I was planning on removing the barrel plug anyway as it's a hinderance to chassis wiring.


I can't see any available WiFi networks or anything that even resembles WiFi settings. Output of lshw -C network   lshw -C network  WARNING: you should run this program as super-user.  *-network UNCLAIMED    description: Network controller    product: BCM43142 802.11b/g/n    vendor: Broadcom Limited    physical id: 0    bus info: pci@0000:03:00.0    version: 01    width: 64 bits    clock: 33MHz    capabilities: bus_master cap_list    configuration: latency=0    resources: memory:f7900000-f7907fff   Output of lspci -knn | grep Net -A3:  lspci -knn | grep Net -A3     03:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)         Subsystem: Lite-On Communications Inc BCM43142 802.11b/g/n [11ad:6605]         Kernel modules: wl     04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.   RTL8411B PCI Express Card Reader [10ec:5287] (rev 01)  Output of wget -N -t 5 -T 10  &&   chmod +x wireless-info &&   ./wireless-info

This issue happens only on UEFI systems with enabled Secure Boot.  When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them.  VirtualBox complains that vboxdrv is not loaded.  Broadcom wl driver is shown in lspci -k as a kernel module but is not in use. sudo modprobe wl throws Required key not available.  Also this issue may happen when I install some kernel modules from git sources.  This issue may appear after a kernel update as disabled wireless adapter, black screen after a reboot, etc.   How can I fix it?


I am working on a Rock/Paper/Scissors game like as usual. Somehow my if and switch statements cannot read the values set by the other two functions and when I console.log result it returns undefined However when I manually set user and computer variables decideWinner function works as intended. I've been tinkering with it for a couple of hours and some help would be greatly appreciated. Thanks.   let user let computer let result //1 function userChoice() {   let user = prompt(`rock, paper, scissors`) }  //2 function computersTurn() {   let randomNumber = Math.floor((Math.random() * 3) + 1);   switch (randomNumber) {     case 1:       computer = `rock`;       break;     case 2:       computer = `scissors`;       break;     case 3:       computer = `paper`;       break;   } }  //3 function decideWinner() {   if (user == `rock`) {     switch (computer) {       case `rock`:         result = `tie`         break;       case 'scissors':         result = `player`         break;       case `paper`:         result = `computer`         break;     }   } else if (user == `paper`) {     switch (computer) {       case `rock`:         result = `player`         break;       case 'scissors':         result = `computer`         break;       case `paper`:         result = `tie`         break;     }   } else if (user == `scissors`) {     switch (computer) {       case `rock`:         result = `computer`         break;       case 'scissors':         result = `tie`         break;       case `paper`:         result = `player`         break;     }   } }  userChoice(); computersTurn(); decideWinner(); console.log(result);

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


I'm on 19.10. It has been days since 20.04 came out, how long before  those on 19.10 get offered to upgrade???

Update  appear to have been updated recently (as of writing this the last update appears to have taken place on 3rd of June) to include the following statement:  The -d switch is necessary to upgrade from Ubuntu 18.04 LTS as upgrades have not yet been enabled and will only be enabled after the first point release of 20.04 LTS.  Also note that .  TLDR (as of 15 Aug 2020):   is the canonical tracking document for the first Focal Fossa point-release (20.04.1). It’s a live document. The Ubuntu release team will be updating it as we work on releasing 20.04.1. […] Upgrades from 18.04 to 20.04.1 are still disabled as we are working through a few upgrade blockers   Edit The answers (so far) do not answer the question. The question is pretty simple. Ubuntu.com points to a "FinalRelease", which turns out to be a "Development Release", see evidence below. I'm not asking how and when to upgrade. I'm pointing out what seems to me to be an apparent inconcistency (in semantics, linguistics, logic) in the way Ubuntu names or labels its releases. From an answer to the question I'd except someone to pick up and acknowledge this inconsistency. An answer could start with a "Yes, ..." or a "No, ...", for starters. (Moreover, a good answer could distinguish between the release being in dev stage and/or the upgrade process (e.g. from LTS to LTS) being in dev stage, if appropriate.) This question, as I see it, is not a duplicate. Futher, I think it is a question which deserves a non-patronizing answer. Thanks.   indicates that today (23rd April 2020) the new Ubuntu 20.04 LTS is to be released.  See "condensed screenshot" here:  Indeed, it seems that that's what happened, see  and :  However, when following the instructions to upgrade (from 18.04 LTS to 20.04 LTS) found  and elsewhere (edit: actually , too!), even prior to the July point release, I'm a bit confused to see that the instruction is to use update-manager -d which also points to the "Development Release" (see screenshot below) rather than the "FinalRelease" (see screenshot and link above). Is the "Final Release" (which I'm after) the/a "Development Release"? Why isn't it called something like "Production Release" or "Final Release"? When will it no longer be referred to as "Development Release"? In July? I'm confused :(


Maybe it's elementary, but is it possible that a non-negative continuous function satisfies $\int_{0}^{\infty}f(x)dx$ exists (finite) and the limit $\lim_{x\to\infty}f(x)$ doesn't exist (neither finite nor infinite)?   Also, is it possible to find a function such that the integral $\int_{0}^{\infty}f(x)dx$ exists (finite) but $f(x)$ is not bounded?  If you could show me examples it would be appreciated. If these are not possible, please explain why.

I am wondering whether there exists a function such that:  $$\lim_{x \rightarrow a}f(x)=\infty$$  at some point $a$ on the real axis but yet,  $$\int_{-\infty}^{+\infty}\left|f(x)\right|\ dx<\infty$$  Does the fact that a function is unbounded imply that it has no finite integral?


Reality is that lots of irredeemable questions get asked. There are lots of questions which can't be improved in order for them to become acceptable. The flag dialog should not have been changed to put everything under the heading of "needs improvement" when that is not true for many close reasons.  Please change it to something else. Perhaps "needs to be closed".  For example: in what way should this question be improved?

This week we rolled out a series of changes to  of the question close workflow.  You can read more about the details of these changes .    For context, the overall effort to improve the question close experience will be optimized for Stack Overflow. Given Stack Overflow’s scale, many of the pain points we hear about with question closing and reopening are unique to Stack Overflow and won’t make sense for other network sites. However some  changes are general improvements that should improve usability and guidance overall. Wherever possible, we plan to roll these changes out network wide as well. Any time we roll out a change network wide, we’ll make sure to cross-post here. This first phase is being rolled out to the network and is why I’m posting today.  Let us know if you run into any issues or have questions regarding the network here.


I connect to my server via Putty SSH client.  With the key ↑ I see previous entered commands, one by one. I just wondering is there a some command, which show all previous entered commands out of a simple list. Something like the command ls show the list directory contents.     I mark the list of all commands, but cant click with the second mouse button or Ctrl + C to copy all commands. Do you have idea how i can copy all commands list?

Is there a way to save all my typed terminal commands and view it like history in a log book?


If (M,d)  is a compact metric space and f:M→M  is an isometry (d(x,y)=d(f(x),f(y))  for any x,y∈M ), then f  is a homeomorphism.   I proved that $f$ is continuous as its inverse,I proved that it is injective also. I couldn't prove that it is also surjective...  thanks for any advance.

Possible Duplicate:          Let $X$ be a compact metric space and $f$ be an isometric map from $X$ to $X$. Prove $f$ is a surjective map.


When I call the_content(), I want to show only text and don't want to show images. Notable that, I don't want to remove text style. The text style should be display as well. How can I do this?

Trying to learn more about creating my own themes and not using any plugins I wanted an ability to display all the images in a post excluding the thumbnail in my single-foobar.php file and I can do that with:  <?php if ( have_posts() ) : while ( have_posts() ) : the_post();      $thumb_ID = get_post_thumbnail_id( $post->ID );  $args = array(    'post_type' => 'attachment',    'numberposts' => -1,    'post_status' => null,    'post_parent' => $post->ID,    'exclude' => $thumb_ID   );  $attachments = get_posts( $args );  if ( $attachments ) {     foreach ( $attachments as $attachment ) {        echo '
';        $image_res = wp_get_attachment_image( $attachment->ID, ' img-responsive' );        echo $image_res;        echo '
';       }  }  else { ?>      No pictures loaded at this time  <?php } endwhile; endif; ?>   However, when I apply my static HTML and then try to call get_the_content() with:  <?php  $content = get_the_content(); $content = preg_replace("/]+\>/i", "(image) ", $content);           $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>   it removes the images but leaves a (image) in the post with spaces then displays the remaining text. I did find a similar  but it suggests using get_the_content() but that strips all the styling from the post.  So my question is how can I strip images from the_content()?  I did find "" from my searches but that still uses the get_the_content() approach.


I created an eye with a lot of nodes in eevee but the problem is, there is no way to export the nodes with the model (I didn't import any texture I created them with nodes). What should I do? As you can see the materials are all gone and there is no node neither and it created another material using the same name.  Q: How I can export my model along with procedurally created shaders?

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


how can I find a bijection from R to (0,$\infty$)?

I've been working on some problems in topology, and it is odd to start working again on sets, so I've needed some help. I want to build a bijective continuous function $f$ such that its inverse is continuous from $(0,\infty)$ and $(-\infty,\infty).$ I have a feeling that this problem is similar to the Hilbert's Hotel problem, but I am having issues figuring out the trick to make this surjective. I understand that I need to negate the negatives, but how to differentiate the mapping of the negatives and the positives to $\mathbb{R}^+$ seems peculiar to me.


When working with a project in the intellij idea, after making any changes (changing the text of the code or creating a file), these changes are immediately transferred to other branches.   If you delete them (these changes or files) on any of the branches, they will also be deleted from anywhere. Previously, this was not and the changes were stored only on one branch, what could be the problem?

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?


An Ubuntu 16.04 udev rule is defined:  target='SUBSYSTEMS=="usb", ATTRS{product}=="Metrologic Scanner", GROUP:="username"'   Command to append a rule to test udev file fails:  sudo echo $target > /etc/udev/rules.d/test.txt   What must be done to overcome the response \ error:     bash: /etc/udev/rules.d/test.txt: Permission denied   Examples and explanations are highly appreciated: thank you

Why do I get   -bash: test: Permission denied   when I run   sudo echo "xyz" > test   The directory permissions are:  drwxr-xr-x 3 root root 4096 2014-08-05 16:26    I have no problem creating a file in the directory using sudo.  But why can't I sudo echo into it?


prove triangular inequality for $$ d(x,y)= \frac{||x-y||}{1+||x-y||}$$ that is $d(x,y) \leq d(x,z)+d(z,y)$ ofcourse ||.|| is a norm and has properties of norms    this usually works    $$ \begin{aligned}                 d(x,y) = &\frac{||x-z+z-y||}{1+||x-y||}                          \\ & \leq \frac{||x-z|| +|| z-y||}{1+||x-y||}  = \frac{||x-z||}{1+||x-y||} +\frac{||z-y||}{1+|x-y|} \\& \vdots \\ & =\frac{||x-z||}{1+||x-z||} +\frac{||z-y||}{1+|z-y|}=d(x,z)+d(z,y)       \end{aligned}$$ therefore $d(x,y) \leq d(x,z)+d(z,y)$  but this dosent work. the next thing to do for mylself is try to go the other way start with right side of $\leq $ and get the other side. thiniking need to use schartz inequality. if this was on a quiz or test it would be taking too much time for me  second way attempt (I think it is closer) $$ \begin{aligned}    d(x,z)+d(z,y) &= \frac{||x-z ||}{1+|x-z||}+\frac{||z-y ||}{1+||z-y||}                 \\ & = \frac{||x-z ||}{1+|x-z||} * \frac{1+||z-y||}{1+||z-y||}           +\frac{||z-y ||}{1+||z-y||} * \frac{1+|x-z||}{1+|x-z||} \\&=\frac{||x-z||+||x-z|||z-y||}{1+||z-y||+||x-z||+||x-z|||z-y||}     +\frac{||z-y||+||z-y||||x-z||}{1+||z-y||+||x-z||+||x-z|||z-y||} \\&=\frac{||x-z||+||x-z|||z-y||+_||z-y||+||z-y||||x-z||}{1+||z-y||+||x-z||+||x-z|||z-y||}   \\&= \frac{2||x-z|| ||z-x||}{1+||z-y|| ||x-z||} \\& \vdots (missing steps, )  \geq  \frac{||x-y|||}{1+||x-y||}=d(x,y) \end{aligned}$$  stuck, im going to be stubborn and still try to finish this proof later hopefully and think is done diff from the "duplicate"excersises (but I just glanced at them). after some thinking, The duplicate does answer the question way elegantly and I did a stupid mistake on my second attempt on second to last line.

Let $(X,d)$ be a metric space and for $x,y \in X$ define $$d_b(x,y) = \dfrac{d(x,y)}{1 + d(x,y)}$$ a) show that $d_b$ is a metric on $X$  Hint: consider the derivative of $f(t)$ = $\dfrac{t}{1+t}$  b) show that $ d$ and $ d_b $ are equivalent metrics. c) let $(X,d) $ be $(\mathbb{R}, |\cdot|)$ Show that there exists no $ M>0$ such that $ |x-y| $ $\leq$ $Md_b$ $(x,y)$ for all $ x,y$ $\in$ $\mathbb{R}$  I have calculated $f(t)$ and $f'(t)$ and from this I know $f(t)$ is an increasing function as $f'(t)$ is strictly positive. But I don't know where to go from here or how to do parts b) and c)


I went to get some prints and they were super blurry. I asked the photo center workers and they said it is because the resolution is way too low, so I can't print anything bigger than 5x7. I'm not a photography expert, so I have NO idea how to fix this problem. How do I get a higher resolution?

All of my pictures come out super blurry if they are anything bigger that 5x7 and I want to fix it. So how do I change the resolution? Is it something I have to do BEFORE I take the pictures or am I able to do it after? I need help! Thank you!


My ubuntu Grub not detecting my Windows 7 after upgrading to Ubuntu 14.10. What should i do?

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I'm learning c and try to understand how c handles the memory space.  When I read the topics about struct and union, I learned that struct do some kind of lining in memory to save space and union put the elements in the same memory location.  I tried code like:  typedef struct {    double a;    char b; } number;   when I try to find the size of the struct, it shows 16 bytes, if I changed  the type of a to int, size will be 8 bytes. So I'm a bit confused because the addition of char byte seems to increase the size of struct differently.  Another question is about the union, I did something like:  typedef struct{     double a;     union{         int b;         double c;         long d;     }; } number;   and I set all the fields to the MAX of its type.  In my understanding, union is like a "shared memory", but this test somehow violates this definition.  It turns out that size of this entire struct is 16 bytes, where should the numbers be stored if I set them all to the max, where should the extra bits go. I'm confused.

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


I have a road network (vector) that i'm interested in carrying out some  on.  Predictably my GIS data is in a pretty terrible state. For example, there are a bunch of roads on the network that look like they join but do not. I've managed to fix some of this (on the surface at least) with the GRASS v.clean tool in QGIS.  My big problem though is polylines. In nearly every case I have long stretches of road that are stored as separate polylines. For example, a long trunk road, split into 5 or 6 separate lines even if they have all snapped together. Worse still in some cases these sections have been given different (or slightly different) road names and have no common identifying attribute. If I run the 'topology checker' in QGIS - it identifies these as 'pseudo-nodes'.   I now want to clean these pseudo-nodes and I was really hoping that there would be a (fairly) simple method of simplifying this network to allow me to run the space syntax analysis tools to actually give a meaningful output. Unfortunately the 'topology checker' only shows you where the errors are, I now need a tool to help me clean them. I had though v.clean from GRASS would do the trick but haven't had much luck. I have been looking at the suggested answers here:    There are a lot of reference to the sextante plugin for QGIS - though I have a feeling this has been incorporated into QGIS's tool now as the 'This plugin is deprecated!' according to the repository. If so, I can't find  "Extract endpoints of lines" and "Join adjacent lines". Does anyone know where I can find these functions - or alternatives?   p.s. using QGIS 2.10 on Ubuntu 14.04 - but open to suggestions of other opensource software/solutions: R; Python, GRASS 7, Open Jump etc.

Software gvSIG OA Digital Edition 2010 have tools topology for finding pseudo nodes in linear geometry. I set cluster tolerance 0.00002 and maximum number of errors -10000 for 20000 link count linear geometry. But unsuccessful result.   Are there any solutions that find pseudo nodes in free GIS software?   I need to layer pseudo nodes (one solution to this problem - to use tools topology of ArcInfo, but priority for me is to use free software). Linear geometry created several users in QGIS 1.8.0 in PostGIS (v. 2.0.1) database.  Add new image: 12 linear features with three pseudo nodes in A (line 4/5), B (line 6/7), C (line 9/10). Pseudo nodes should be points instead - two linear features with intersection in one point (node) should be one linear feature (line 4/5 - line 4, ...).  Is it possible to make a request in PostGIS, which will result in a layer of pseudo nodes?  Add new image of examples pseudo nodes: if I receive for linear layer point layer pseudo nodes (blue rects) I corrected following errors in linear layer: A - add missing geometry, B - snapped line in intersection, C - remove pseudo node.


How can I get all the properties from extends class? class Fish {   constructor(name) {     this.name ="this is the name"   } }  class Trout extends Fish {   constructor(name, length) {     super(name)     this.length = "10cm"   } }  let newFish =new Trout() console.log (newFish.name) console.log (newFish.length)  Is there any way to get in a loop to get name,length,etc what every set it in the extends classes? console.log(newFish[0]) something like that

Say I create an object thus:  var myObject =         {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"};   What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that:  keys == ["ircEvent", "method", "regex"]


Problem: when printing a sorted array with data type "int" it is returning funny character "[I@edf4efb". It looks like the address of the array  Question: how to print a sorted array?  Code listed below:  import java.util.Arrays;  public static void main(String[] args) {   int [] sa = {8,200,10};   Arrays.sort(sa);   Arrays.sort(sa);   System.out.println(sa); }   Actual result: [I@edf4efb  Expected result: 8, 10, 200

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


Consider the following simulation experiment:  In order to estimate the area ($\theta$) of a circle drawn somewhere on a square of known side=10, a collection of random vectors $(X_i,Y_i), i=1,...,10$ are generated. Each $X_i$ and $Y_i$ are iid $\text{Uniform}[0,10]$.   From this, iid random variables $Z_i$ are obtained. Each $Z_i$ is $1$ if $(X_i,Y_i)$ is within the circle and $0$ otherwise.    I asked a version of this questions earlier and the comments below have been very helpful in getting me to an answer. However, while reviewing it again today, I encountered an issue that I would like to ask about.  From comments below, I got that the $Z_i \sim \text{Bern}(\theta/100)$ where $\theta$ is the area of the circle. Using this, I was able to get the estimator $100\frac{\sum_{i=1}^{10} z_i}{10}$ and prove that this is unbiased for $\theta$.   I was also able to show that $\sum_{i=1}^{10} Z_i$ is a sufficient complete statistic for $\theta$ and so $100\frac{\sum_{i=1}^{10} z_i}{10}$ is UMVUE for $\theta$.  However, if I use this estimator I can end up with an estimate of the area that is not possible (one larger than the largest possible circle). That is if all or almost all my points happen to fall in the circle (8, 9 or 10), I can get an estimate that's $(>25\pi)$.  My question is this: why isn't $25\pi\frac{\sum_{i=1}^{10} z_i}{10}$ a better estimator of $\theta$? This never gives an impossible value.  If I let my $Z_i's$ be $Bern(\frac{\theta}{25\pi})$ I think the rest of the solution for all of the requirements of the problem will follow, but I can't seem to justify that when the instruction of the problem is to have $Z_i$ be the indicator function that the point $(X_i,Y_i)$ is in the circle.

I am fairly sure that I understand the how Monte Carlo integration works but I am not understanding the formulation of how it is used to estimate Pi.  I am going by the procedure outlined in the 5th slide of this presentation   I understand the preliminary steps.  Pi is equal to 4 times the area of a quarter of the unit circle.  And the area of the top-right quarter of the unit circle centered at (0,0) is equivalent to the integral of the curve that is the top-right quarter of the unit circle in $0<x<1$ and $0<y<1$.    What I don't understand is how this integral is  $\iint I((x^2+y^2)<1)P(x,y)dxdy$  where $P(x,y)$ is uniformly distributed in the unit square around the quarter circle (i.e. it is always equal to 1 if $0<x<1$ and $0<y<1$ and 0 otherwise).  So this would mean that  $I((x^2+y^2)<1)P(x,y)$ is the function that is the top-right quadrant of the unit circle at $0<x<1$ and $0<y<1$ but I do not understand how this is true since the indicator function can only be 1 or 0.  I understand that it is probably written in this way to make Monte Carlo sampling easy (i.e. it is an expectation so just sample from $P(x,y)$ and get the average of the samples applied to $I((x^2+y^2)<1)$) but it just does not make intuitive sense to me why that integral represents the area under that curve.  Could someone provide an intuitive explanation of this.  Maybe show how that integral was derived in a step-by-step way?  EDIT:  I was able to gain a better understanding by relating the expectation to an area.  I will explain it here in case it helps anyone.  First start with relating Pi to the area of the top-right quadrant of the unit circle  $\pi=4\times A_{tr}$  Then we place the top-right quadrant into the unit square.  And under a uniform distribution over the unit square, the area of the circle quadrant is proportional to the probability of obtaining a sample from it.  It follows that the following equality holds  $P(x^2+y^2<1)=\frac{A_{tr}}{A_{square}}$  and $A_{square}=1$ so  $P(x^2+y^2<1)=A_{tr}$  And substituting into the original equation  $\pi=4\times P(x^2+y^2<1)$  and it is also true that $P(x^2+y^2<1)=E[I(x^2+y^2<1)]$ which is equal to the original double integral.  So I understood it by relating the area to a probability then relating that probability to an expectation that is equivalent to the integral.  Let me know if I have made any mistakes.


I know it isn't. But I have trouble understanding how energy conservation would work in that case.  I might be confused. Please explain.

For the sake of simplicity, let's imagine that the entire universe is empty except for a single lump of (classical) matter with mass $m$. In its center of momentum frame, it is clear that the total energy is simply $E_\text{CoM}=mc^2$. However, in a frame moving relative to it with speed $v$, we have $E_\text{moving}=\sqrt{m^2c^4+p^2c^2}> mc^2$ for all nonzero $v$.  Are we to infer that the energy content of a system can be different relative to the observer? Does this not violate the first law of thermodynamics?


Let's say we have base class Table  template <typename T> class Table { public:   Table();   virtual ~Table() = default; private: // get all column names as list virtual std::list<std::string> getAllColumnsImpl(); };   and I want inherit TestTable class and override method getAllColumnsImpl from base class:  class TestTable : public Table<TestTable> { public:  TestTable();  virtual ~TestTable() = default;  std::string Description; int Count;   private: // get all column names as list std::list<std::string> getAllColumnsImpl() override; };   Is it possible in general ?  For example I have linker errors like:   error LNK2019: unresolved external symbol "public: __cdecl Table<class TestTable>::Table<class TestTable>(void)" (??0?$Table@VTestTable@@@@QEAA@XZ) referenced in function "public: __cdecl TestTable::TestTable(void)" (??0TestTable@@QEAA@XZ)

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am trying to install some applications but some of them fail to install. The three applications I tried are Vim, Emacs and GNOME-Do. I am using Ubuntu 10.10 installed as a guest OS in VirtualBox. The kernel version installed is 2.6.35-26.  The error I got is :  alvinsim@ubuntu:/etc/apt$ sudo apt-get install emacs Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies: emacs : Depends: emacs23 or emacs23-lucid but it is not going to be installed emacs23-nox but it is not going to be installed E: Broken packages   What is wrong and how do I fix this?  Thanks.

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I am trying to flag a question as off-topic because it's a code review question posted in stackoverflow. I follow the steps :     Flag > should be closed... > off-topic because... > This question belongs on another site in the Stack Exchange network.   But now I don't find the option to select codereview.stackexchange.com, I see other 5 options (see image). What should I select now?

Sometimes I want to flag a question on Stack Overflow because it belongs to  or , but I don't see those sites on the list provided when you click on:  It doesn't belong here > off topic  I usually see:


I'm looking to find the top flaggers on a given site, and am trying to do so in SEDE.  I was inclined to write up a SEDE query, but, to my amateur eye, there doesn't seem  to be  that lists helpful flags. Nor are there any  that seem to do this already.  Also, on the post  no SEDE options are given.  Is this data just not available on SEDE? Or am I missing it?  If not, and simply out of curiosity as I learn more about SEDE, is there a specific reason why this field is not captured in SEDE?

There are a few members of Stack Overflow especially who have a ridiculous number of helpful flags.  At the moment, there does not appear to be any way to display the top users with the most helpful flags. Even though this information is already available publicly, there does not seem to be any way to query all users and make a custom leaderboard, using SEDE, or other programming tools.  A quick search on main META did not yield anything related to this topic.  This is not limited to Stack Overflow (although that site will no doubt prove to be the most voluminous).   Is there any way to see a short list of top flaggers on the Stack Exchange sites?    See this? This is what I'm talking about! Totally awesome.


Suppose that $\lim_{x→0} f(x^3) = A$, where $A$ is a constant number. Prove that $\lim_{x→0} f(x) = A$.  The domain of f is R. But that is the only information provided.  I am completely lost on how to approach this. Any help would be greatly appreciated!

Prove that if one of $\displaystyle\lim_{x \rightarrow 0 }{f(x)}$ and $\displaystyle\lim_{x \rightarrow 0}{f(x^3)}$ exists, then the other one also exists. Can anyone guide me on this ? I have no idea on how to start .


I am looking for a way to have LaTeX render strings of more than one letter as upright (in math mode).  For example, I want it to render   $Hom$ as $\mathrm{Hom}$, $apple$ as $\mathrm{apple}$, $apple + orange$ as $\mathrm{apple} + \mathrm{orange}$,   while rendering   $a$ and $a + o$ as normal.   The answers at  are close to what I want, but they fail the last example.

Is there something I can add to the preamble of my document such that multiple letters without spacing in a Math environment (such as $NP$) do not have extra spacing between them and are not considered multiple distinct variables? Right now, I have to use $\mathit{NP}$ to prevent any extra spacing, but I feel that it is more natural to add a space between the letters if they are a different variable ($N P$). For example, if I want the multi-letter variable NP, I want to be able to say $NP$ which would automatically be replaced by $\mathit{NP}$. If I want N and P to have the proper inter-variable spacing, I want to do that only when they are separated by a space, like so: $N P$. Is there a way to achieve this? Would it break something that I'm unaware of? Edit: Here's a screenshot that shows what I mean:  So basically, is it possible for line 1 to automatically give me line 3 and for line 2 to give me line 2?


I looked through all questions regarding seeing thestrals but couldn't find an answer, as they all debate Harry's ability to see thestrals at the age of 1. Please mark as duplicate if question is already asked.  In Harry Potter and the Philosopher's stone, Quirell nearly killed Harry. However, Harry placed his hands on Quirell causing him to perish. Wether or not this is seen as actually killing Quirell or as self defense, Harry actually sees Quirrel die.   So how come he couldn't see thestrals since year two?

Why couldn't Harry see Thestrals at the end of Goblet of Fire after the senseless and shocking death of Cedric Diggory?   At the end of Goblet of Fire, the carriages still appeared horseless to Harry:     Hermione turned away, smiling at the horseless carriages which were now trundling towards them up the drive, as Krum, looking surprised, but gratified, signed a fragment of   parchment for Ron.   Goblet of Fire - Page 629 - British Hardcover - Adult Edition   At the beginning of Order of the Phoenix, Harry sees the Thestrals for the first time:     Here stood the hundred or so horseless stagecoaches that always took the students above first year up to the castle. Harry glanced quickly at them, turned away to keep a lookout for Ron and Hermione, then did a double-take.   The coaches were no longer horseless. There were creatures standing between the carriage shafts.   Order of the Phoenix - Page 178 - British Hardcover - Adult Edition   We know that only those who have seen death can see Thestrals:     ‘Don’ worry, it won’ hurt yeh,’ said Hagrid patiently. ‘Righ’, now, who can tell me why some o’ yeh can see ’em an’ some can’t?’   Hermione raised her hand.   ‘Go on then,’ said Hagrid, beaming at her.   ‘The only people who can see Thestrals,’ she said, ‘are people who have seen death.’   ‘Tha’s exactly right,’ said Hagrid solemnly [...]   Order of the Phoenix - Page 394 - British Hardcover - Adult Edition   A month went by between Cedric's death and the end of the spring term -- is this enough time for Harry to have truly internalized Cedric's death? Goblet of Fire indicates that Harry was in shock following Cedric's murder, but was able to relate the story of Cedric's death to Mr. and Mrs. Diggory.     When he looked back, even a month later, Harry found he had few memories of the following days. It was as though he had been through too much to take in any more. The recollections he did have were very painful. The worst, perhaps, was the meeting with the Diggorys that took place the following morning.   [...]   ‘He suffered very little, then,’ she said, when Harry had told her how Cedric had died.'   Goblet of Fire - Page 621 - British Hardcover - Adult Edition   So, then, why couldn't Harry see Thestrals at the end of Goblet of Fire?


How do you use the PricebookEntryHistory in the Apex Test Class? I have a batch job that reads off the PricebookEntryHistory object to check if a field value has changed, and I'm trying to figure out how to cover that line of code in the Apex Test Class Coverage but everytime I query the PricebookEntryHistory in Apex Test Class, its always returning null in Apex test Class. Any advice?

I have some code that relies on field history tracking by querying the History for a custom object. This works fine, but it appears that the history records aren't created during the test so none of my tests will pass.


Let's say I buy a game. And after a few months, the bundle that contains the game (e.g. all games from specific publisher or developer or franchise) go on sale and I wish to buy that bundle. What happens to that game? is it removed from the bundle and I not pay for it? Do I get charged twice? Do I get the game as a gift?

I am debating whether or not to get the Potato Sack (yes, I realize I've been debating for several weeks now) bundle through steam.  I already own: Defense Grid: The Awakening, Super Meat Boy, and Audiosurf, all of which are part of the sack pack. What happens if I buy the Potato Sack?  Do I get 2nd copies of the three above mentioned games to gift elsewhere?  Is the price of the bundle reduced by the games I already have?  Do I get nothing special for already owning those 3 games?


...instead of killing them right away?  I mean, they tatoo people's wrists so that they can be scanned, and gather them in concentration camps, etc.  This happens in Genisys and in Terminator Salvation, at least.  It's acceptable that the terminators always waste a lot of time when attacking, but that is due to drama of course.  But the very point of planning a methodical way of gathering people, transporting them, etc. instead of killing them right away seems to me very unplausible.  Note: I know that concentration camps have some reasons to exist[citation needed] if we examine the history of human warfare, but in a machine-vs-human warfare I guess most of those reasons don't apply.

In the Terminator franchise, extermination camps are often mentioned. But from a machine-logic POV, wouldn't it make more sense to just kill all humans on sight, period? Or herd them into small areas and nuke them? (even today's military electronics are hardened against EMPs and Skynet wouldn't care about the environment.)   IIRC, the reasoning behind ghettoization / concentration camps / extermination camps / gas "showers" is to misdirect or mislead people both inside and outside the country as to what was really going on. But Skynet doesn't have to worry about bad publicity, and can manufacture all the free labor it needs. Is there any in-universe explanation for keeping large groups prisoners?


Today on Stack Overflow I came across a question which was, I don't know why, filled with profanity in comments and logs. There were so many instances of those foul words that it discouraged me to involve any of my little programming knowledge that I have in answering the question.  I flagged the question Offensive in full awareness of the severity of the flag. The flag was deemed helpful. Then somebody more sensible then me edited the question and changed the foul words to "censored". My flag was disputed.  I understand that flags are to draw moderators' attention and should be used with care and sense of responsibility. My question is: does a disputed flag affect my profile in a negative way in front of SO members and moderators?   Edit: I understand the literal effect of a disputed flag. It means flag was neither helpful nor declined. But it does imply that I blamed some body of very serious mistake and my blame did not stand other moderators' scrutiny. All I wanted to know was: Is the presence of disputed flag is frowned upon by members and moderators?

In my flagging summary under the statistics, there is 1 flag listed as "disputed".  This is the first time I've ever seen a disputed flag in my summary, so I'm just curious, what is a disputed flag? How would you even dispute a flag? Is this the same as voting a flag as invalid?


Show that:          a) The field Extension $\mathbb{F_p}(X,Y)|\mathbb{F_p}(X^p,Y^p)$ is not simple.          b)Find a primitive element of the field extension $\mathbb{Q}(\sqrt2+i,\sqrt3-i)|\mathbb{Q}$          c) Let $L|K$ be a separable field extension and there exists a $n\in \mathbb{N}$ so that $[K(x):K]\le n$ for all $x \in L$. Show that: $|L:K| \le n$.      Now in a) I don't have a clue. For be I could find the minimal polynoms, but I don't know how to continue... .  It would be nice if you gave me some advice how to start. Thank you for taking your time.

Let $F=\mathbb{F}_p(X,Y)$ be the field of rational functions in variables $X,Y$ over the finite field of $p$ elements. Let $K=\mathbb{F}_p(X^p,Y^p)$ be a subfield. Note that for any $f\in F$, $f^p\in K$. Deduce from this that $F/K$ is not a simple extension.


Let define $f:\mathbb{R}\rightarrow\mathbb{R}$ as $f(x)=3^x+4^x-5^x$.  Prove that there exists only one $x_0$ such as $f(x_0)=0$.  My approach:  We can see that $\lim_{x\rightarrow-\infty}f(x)=0$ and $f(2)=0$. I don't know how to use the derivatives of $f$ to prove that it is firstly increasing and then decreasing for $x\in(-\infty,2)$ and for $x\in(2,\infty)$ it is only decreasing.

I would like to prove that the equation $ 3^x+4^x=5^x $ has only one real solution ($x=2$)  I tried to study the function $ f(x)=5^x-4^x-3^x $ (in order to use the intermediate value theorem) but I am not able to find the sign of $ f'(x)= \ln(5)\times5^x-\ln(4)\times4^x-\ln(3)\times3^x $ and I can't see any other method to solve this exercise...


I am having trouble at aligning the following plots (see code below). I have removed the x values to better use the available space. But as you can see in the picutre the horizontal distance is not equal because of the x-labels in the last row. Additionally the labels on the right side are off. I could solve the issue with the y-values by introducing phantom characters but there should be a better way I think.  Is there a way to solve these problems?    \begin{figure} \centering \begin{tikzpicture} % longitudinal speed without disturbance \begin{axis}[...,      name=plot1,      clip mode=individual,...]      ... \end{axis} \begin{axis}[...,      name=plot2,      clip mode=individual,      at=(plot1.right of south east), anchor=left of south west,...]      ... \end{axis} \begin{axis}...\end{axis} \begin{axis}...\end{axis} \begin{axis}...\end{axis} \begin{axis}...\end{axis} \end{tikzpicture} \end{figure}

I once already asked a very similar question; . But this is some what different.  I have the following code;  \documentclass{standalone} \usepackage{graphics} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.6} \begin{document} \begin{tikzpicture}  \begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\phi_{\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot1]  \end{axis}  \begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=0.2, ymax=1.2, ylabel={$h(t)$}, ymajorgrids, yminorgrids, name=plot2, at=(plot1.right of north east), anchor=left of north west]  \end{axis}  \begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\phi_{\mathrm{o}}(t)$}, ymajorgrids, yminorgrids, name=plot4, at=(plot1.below south west), anchor=above north west]  \end{axis}  \begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=2000, ymax=12000, ylabel={$p_{\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot5, at=(plot4.right of north east), anchor=left of north west]  \end{axis}  \end{tikzpicture} \end{document}   This creates the following plot:    I think there is to few vertical/horizontal spacing between the plots. I want to increase this. Currently I use x- yshift, this gives the following result:  \documentclass{standalone} \usepackage{graphics} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.6} \begin{document} \begin{tikzpicture}  \begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\phi_{\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot1]  \end{axis}  \begin{axis}[% xshift=1cm, width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=0.2, ymax=1.2, ylabel={$h(t)$}, ymajorgrids, yminorgrids, name=plot2, at=(plot1.right of north east), anchor=left of north west]  \end{axis}  \begin{axis}[% yshift=-1cm, width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\phi_{\mathrm{o}}(t)$}, ymajorgrids, yminorgrids, name=plot4, at=(plot1.below south west), anchor=above north west]  \end{axis}  \begin{axis}[% xshift=1cm, width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\scriptsize\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\scriptsize\color{gray!80!black}}, ymin=2000, ymax=12000, ylabel={$p_{\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot5, at=(plot4.right of north east), anchor=left of north west]  \end{axis}  \end{tikzpicture} \end{document}     I want to know if there is a more consistent manner to do this.


During the re-tagging of questions, tags sometimes become orphaned from existing questions.  Are these zombie tags ever removed from the ?  What if a tag is misspelled and needs to be removed? How do we get rid of it?


I have the batch class which delete all the Cases which are 30 days older than today(means createdDate is 30 day before of today) whose Sub-Status=Sample. I have developed batch class like below   global class PurgeDraftcasesBatch implements Database.Batchable<sObject> {      private static final String sample = 'Sample';     String query = 'SELECT id,SubStatus__c,CreatedDate FROM Case ' +                      'WHERE SubStatus__c = :sample AND createdDate < LAST_N_DAYS:30';      global PurgeDraftcasesBatch() {      }      global Database.QueryLocator start(Database.BatchableContext BC) {         return Database.getQueryLocator(query);     }      global void execute(Database.BatchableContext BC, List<Case> scope) {         if(!scope.isEmpty()){             List<Case> casesToBeDeleted = new List<Case>();             for(Case myCase : scope){                 casesToBeDeleted.add(myCase);             }              if(!casesToBeDeleted.isEmpty()){                 Database.DeleteResult[] srList = Database.delete(casesToBeDeleted,false);             }         }     }      global void finish(Database.BatchableContext BC) { } }   This batch class works fine, but I am really struggling to create a Case which is 30 days older using Apex Test class. Any guidance how we can do that ?  I am getting the below error -      Field is not writeable: Case.CreatedDate (Line: 15, Column: 11)   I tried below, but not sure how we can do that ??  @isTest private class PurgeDraftcasesBatchTest {     private static final Id sampleId = Schema.SObjectType.Case.getRecordTypeInfosByName().get('Sample').getRecordTypeId();      @isTest static void test_method_one() {     Test.startTest();         //crate case         Case c = new Case();         c.Origin = 'Social';         c.ELC_SubStatus__c = 'Sample';         c.ELC_ProjectName__c = 'This my project !';         c.RecordTypeId = sampleId;         c.CreatedDate = Date.today().addDays(-30);         insert c;         PurgeDraftcasesBatch b = new PurgeDraftcasesBatch();         Id batchId = Database.executeBatch(b);         System.assert(batchId != null);          Test.stopTest();     }    }

I have a class that processes some data returned by a query. The query is based on the createddate column of the object. In this case, the query specifically retrieves data created 3 days before today.  So as an example, the query would have the  Select Id, Name, Amount__c FROM MyCustomObject__C WHERE CreatedDate = TODAY - 3 as the condition to fetch records.  In my test class any records I insert in the MyCustomeOBject__c would always have the CreatedDate = TODAY  So how can I make test data that was created 3 days ago?


I am looking to pursue an online master's in MIS starting next spring. I'm in the process of deciding on a school and I've narrowed it down to two choices: Florida State or Illinois-Springfield.  Both are accredited, but I'm trying to think about which would benefit me more in the long run. Florida State seems to be the more well-known, popular university, and, I would assume, would "pop" more on a resume. However, each credit hour is $810 and the program itself is upwards of $27,800.  In contrast, UIS is a much smaller school, and probably less well known. However, their program is $403 an hour and would come out closer to the $15,000 range.  I could probably pay for the UIS degree out of pocket, but FSU would require me to get loans.  Is it worth the extra money for a more recognizable name on your resume? Does anyone pay that much attention to the school?

I'm in the process of trying to decide on which graduate program to attend.  I am pursuing a Master's level degree in Computer Science in hopes of furthering my web development career.  I would love to be able to teach web development/programming at a community college someday after getting a few more years of industry experience (teaching requires at least a Master's degree).  Previously I taught secondary science before transitioning into web development.  I've been accepted to the following programs:  Boston University - Master's in Computer Information Systems / Web Application Development  (U.S. News ranked #51 nationally)  Brandeis University - Master's of Software Engineering (U.S. News ranked #31 nationally)  University of Bridgeport - Master's of Computer Science (not ranked nationally)  I keep going back and forth in regards to which program I should choose.  University of Bridgeport seems to have a good curriculum and it looks like it will be cheaper (I may get a scholarship), but I'm concerned that it's not viewed as a "top" school.  I would be happy to pay for a more expensive school if it helped provide greater opportunities in the future.  Do you find that going to a "better" school has affected your resume to the point that you may have more teaching opportunities after school?  I realize that a certain school won't earn me the actual position, but having a highly regarded school on my resume MAY lead me to getting more interviews.  Any insights are greatly appreciated.  Thanks and have a good day.


Is the expansion of the space between the galaxies caused by stretching of existing space or the creation of new space?  The fact that the energy content remains constant, and is therefore not being diluted, would suggest to me that it is not being stretched and therefore must be the result of the creation of additional space.  If this is so, are there any theories as to how space is created.

Is new space(time?) being created as the Universe expands, or does the existing spacetime just get stretched?  If it just gets stretched, why do galaxies move along with the expansion instead of just getting smeared (like a drawing on an inflatable balloon)?


I fully understand why .  That makes sense.  I can log in as username, then sudo back to root functions just fine from the terminal.    What I'm unable to do is utilize a graphic type of secure file transfer protocol (SFTP) tool (e.g. filezilla) to get access to key directories.  Is there a way to keep the root login disabled and use SFTP, or am I stuck using a terminal $ ssh login with wget or curl for all of my file transfer needs?    The problem is that I can only use wget or curl for content loaded on a server somewhere.  I can't directly upload content from my laptop/desktop development machine to the server.  Yes, I am aware that git style transfers are an other possibility.  I would need a private git repo somewhere to make that work.    Is there a way to set a sudo access for the SFTP tool, without using a root login?  Is there an alternative method to send new content to a online server via remote access, without compromising security?    Same thing goes for downloading / reading systems content.  I know I can do a lot of things via terminal and su - or sudo, but I have to say, reading a systems log file that is 10 megs long is just out of the question with vim or nano.

I want to download files from a linux system using a windows client. While there are many SFTP clients I am having the problem, that I need to access files where I need to be root. On the linux system I have the root account disabled, I am using sudo to get root privileges. How to execute "sudo" using an SFTP client? I don't want to change my linux system! Thanks for any hint!


I am unsure on how to prove the following problem:  If a $2 \times 2$ matrix $A$ is non-singular, prove $|A| = \frac{1}{|A^{-1}|}$  I know that $|A|\cdot|A^{-1}| = I$ but i’m not sure where to go from there. Any help on proving this would be appreciated.

If I have a single matrix A that is non-singular, how can I prove the determinant of its inverse = $\frac{1}{\det(A)}$?  Prove: $$ \det(\mathbf{A^{-1}}) = \frac{1}{\mathbf{\det(A)}} $$  I know that $(A)(A^{-1}) = I$, but I am not sure what to do with that knowledge.


What is the net worth of Stack exchange network and the Stack overflow?  A website  that  is worth $2.8 billion and SE network is  $1 billion, is it true that SO is much bigger than the whole of SE network itself?

I get  it makes money.  I'm curious about the financial data, how much profit, etc. it makes.  I've tried searching  to no avail.


Suppose I wanted to find the number of solutions of $$e_1 + e_2 + e_3 = 17$$ where $e_1, e_2,$ and $e_3$ are nonnegative integers with $2 \leq e_1 \leq 5, 3 \leq e_2 \leq 6, 4 \leq e_3 \leq 7$.  The solution [apparently] lies in the fact that the number of solutions with the indicated constraints is the coefficient of $x^{17}$ in the expansion of $$\bigg(\sum_{k=2}^5 x^k \bigg)\bigg(\sum_{k=3}^6 x^k \bigg) \bigg(\sum_{k=4}^7 x^k\bigg) $$Why is this the case? Why, on a fundamental level, do elementary generating function-based counting methods (such as this one) work?

Find the number of solutions of $a_0+a_1+a_2=17$ if $2\le a_0\le 5$,   $3\le a_1\le 6$, $4\le a_2\le 7$.   This is an exmaple given by my professor, and his solution is:       The number of solutions to this equation satisfying the given   constraints is equal to the coefficient of $x^{21}$ in the expression   $$\left(\sum_{n=2}^5x^n\right)\left(\sum_{n=3}^6x^n\right)\left(\sum_{n=4}^7x^n\right)=x^9\left(\sum_{n=0}^3x^n\right)\left(\sum_{n=0}^3x^n\right)\left(\sum_{n=0}^3x^n\right).$$   This must be 3, since the coefficient of $x^8$ in $(1+x+x^2+x^3)^3$ is   3.   I understand actually nothing here. The expression of summation just pops up, and then comes the answer. What I only know that the idea of generating function is used here. Can someone help explain how the steps in the solution come?


I am travelling from Chicago, USA to Hyderabad, India. I have a valid USA student visa on my Indian passport. I requested my booking agent for a 20-hour layover in Paris to visit the city (Been a dream for so long). Do I need a tourist visa before starting my journey or can I get one at the airport?  While coming to the USA two years ago, I had a 16-hour layover in London Heathrow and I got a 24-hour transit visa. I was able to go into the city. Can the same be possible for Paris?

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


It's a shame they didn't just repeat the API, or at least didn't try to keep it as close as possible... So, what's the JS equivalent of tf.random.set_seed(5)? Thank you. And no,  is not an answer for mine, I don't need to implement my own PRNG, I don't need "random seed" for my own purposes, I need to seed TensorFlow so it initializes my neural networks in a repeatable way.

Is it possible to seed the random number generator () in JavaScript?


I've looked up pdal documentation on how to clip LAS point cloud files:-   Referencing this example, and having a quick look around, it seems like there only is an option for one output file. Please correct me if I'm wrong.   I am after the input LAS files being split into four separate output LAS files (following the geometries of the indextile shapefile).  I was able to achieve this with the LASTools command lasclip.exe, however I've reached the limit of the 'unlicenced' version of lasclip:-  lasclip -i C:/a/test/BY17_1401merged_test.las -split -poly C:/a/cropped_topo50.shp -o newfile.las     In the stdout for the above command; WARNING: unlicensed. over 3 million points. output slightly distorted.          tiny xyz noise. points permuted. intensity, gps_time, user_data          and point_source_ID zeroed.  In the lasinfo report for one of the output LAS files.  WARNING: real max x larger than header max x by 0.020000 WARNING: real min x smaller than header min x by 0.020000 WARNING: real max y larger than header max y by 0.020000 WARNING: real min y smaller than header min y by 0.020000 WARNING: real min z smaller than header min z by 0.010000   Is there any other way of splitting a LAS file into multiple output files using shapefile geometries?  I have a Global Mapper license but cannot find a way to do it with this software. Unfortunately I was unable to get SAGA to work on my laptop and Whitebox is almost unusable (very slow) on my ubuntu computer.

I am trying to clip or filter lidar files (.las, .xyz) using a shapefile that contains multiple polygons.  Is there open source software that can do this spatial operation?  My .las files are enormous, and I should say that I am very new to DEM data and analysis so any help would be very welcome.


I am new in regular expression so I ask you for help.  I have a string value, say, 102-105+106-10605-10605 -10610-10610+10613. How can extract easily all values of three digits, all values of five digits. An additional task is to take into account the + or - signs before the values. Say, extract all  values of 5 digits that have sign - before.   I know that there are some packages in R that enable you to do that. But I don't know how to do that exactly. I've tried various code, but unfortunately I failed each time.  UPD:  From yhe vector I've mentioned  I would like to extract all values of three digits and only five digits.  I used the code  str_extract_all(d, ("\\d{3}"))   And it gives me   [1] "102" "105" "106" "106" "106" "106" "106" "106" "106" "106".    But I want the following result "102" "105" "106". i.e. the code should not take into acconts 5-digits values and extract from them any three digits in a row.  In case of 5-digits query str_extract_all(d, ("\\d{5}")) it gives me   [1] "10605" "10605" "10610" "10610" "10613" "10613" "10620".    This result is true.  I hope I explained properly.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


I need to run many (about 10) android emulators (android virtual devices) on a 1 host machine.  AVDs should be optimized to run graphic applications (video rendering, games). What computing power is recommended? Processor? Video card? Ram? What OS fits best?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I'm learning how to simply add records to a table with a child table using MS Access, please see the figure at the bottom. Below, c is just an instance of a class that I made where I set up the connection for the database.   public void addRecord(String name, String itemName){     long key = 0;     try {         c.openConnection();         String sql = "INSERT INTO custDetail ([custName]) VALUES('"+name+"')";         // After hopefully inserting the values to the fields of custDetail,         // I'm trying to get the custID from the newly inserted record         c.stmt.executeUpdate(sql, Statement.RETURN_GENERATED_KEYS);         c.rs = c.stmt.getGeneratedKeys();          if (c.rs != null && c.rs.next()){             key = c.rs.getLong(1);         }         c.closeConnection();          c.openConnection();         c.ps = c.con.prepareStatement("INSERT INTO rentDetail (custID, rentItemName)" + "VALUES (?, ?)");         c.ps.setString(1, String.valueOf(key));         c.ps.setString(2, itemName);         c.ps.executeQuery();         c.closeConnection();     } catch (SQLException ex) {         Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);     } }   Right now I'm getting this error:  Exception in thread "main" java.lang.NullPointerException at test.Test.addRecord(Test.java:34) at test.Test.<init>(Test.java:24) at test.Test.main(Test.java:16)   So I can't really see if it will work even if I got rid of that error. I'm just a beginner so I apologize if the code is beyond unpleasant, but I've been trying to figure this out for 5 hours now so I took the guts to post it here.    EDIT  Here's my complete code for NewConnection  public class NewConnection {     Connection con = null;     PreparedStatement ps = null;     ResultSet rs = null;     Statement stmt;      public void openConnection(){         String url = "C://Users//Lenovo//Documents//PROGRAMS//JAVA//Test//Test.accdb";         try{             Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");             String driver = "jdbc:ucanaccess://" + url;             con = DriverManager.getConnection(driver);         }         catch(SQLException ex){             System.out.println(ex);         } catch (ClassNotFoundException ex) {             Logger.getLogger(NewConnection.class.getName()).log(Level.SEVERE, null, ex);         }       }      public void closeConnection(){         try {             if (con != null)                 con.close();             if (ps != null)                 ps.close();             if (rs != null)                 rs.close();         }          catch (SQLException ex) {             Logger.getLogger(NewConnection.class.getName()).log(Level.SEVERE, null, ex);         }     } }

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


I want to have a 'newline'-function to pass a string to it and print it on pdf. my function so far is   var array = new Array(); function newLineFunction_PDF(text) {   var arr = text.replace(/.{70}\S*\s+/g, "$&@").split(/\s+@/);   return arr; }  array = newLineFunction_PDF('some Text');  for( var i in array) {   print(array[i]); }   What it does is cut the text in to pieces of length-70 incl. the last word, push it into the array and print it afterwards with new lines. Now i want to pass a number to the function, like 100, so i can decide the max-length of the text per line.  So far I tried:  function newLineFunction_PDF(text, num) {   var re = new RegExp(/.{num}\S*\s+/g);   var arr = text.replace(re, "$&@").split(/\s+@/);   return arr; }   but I dont know how and where to add escapes into the new RegExp.

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


Whenever my phone can be plugged (via a USB cable) into my laptop computer, my laptop will charge my phone's battery. But how can I reverse this charging, to command my phone's battery to charge my laptop?

Can I charge computers by inducing 5-volt into their USB connectors? Is this possible? I noticed that when my EeePC 900 is off but plugged in charger, there is power coming out of the USB port. Can this be a sustainable way of charging a PC, or a flaw in design?


I have a point-shape-layer with existing features and an attribute table. But none of these features have a geometry  yet(i.e. no points that are shown). How can I now add a point to each feature?  Ideally I want to click on a row in the attribute table and then click on the map to set that new point.

I have a PostGIS point layer with mixed features (with and without geometry). When a non geometry feature is selected from attribute table I don´t know how to set its geometry with QGIS editing tools. The add spatial object is only for new features.


So I have two json files, I want to go through one of them and match all the values from the second json file into the matching keys.  For example, suppose I have  var json1 = {val1: 1, val2:2, val3:3}; var json2 = {val1: 52, val2:56, val7: 7, val5: 5, val3:33};  parseandmatchjson(json1, json2) => {val1: 1, val2:2, val7: 7, val5: 5, val3:3};   So basically match all the keys in the first json to all the keys that also exist in the second json and replace the values.  Is there a library that does that? or if you can give me an example of how that can be done in javascript that would be very much appreciated. Thank you.  EDIT: I should be more specific in that what I'm looking for is something that works when the structure is not necessarily the same,   For example  suppose I had  var json1 = {wrapper:      {val1: 1, val2: 2} } var json2 = {val1: 'without wrapper'}   can I still get something like with some library out there?  {wrapper: {val1: 'without wrapper', val2:2}}

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


I am writing a test about passive constructions and I have the following questions: Where do I have to put the by-agent. For example:  Sarah wrote the email yesterday.     A: The email was written by Sarah yesterday.      B: The email was written yesterday by Sarah.   Which of them is correct? Are both correct?  Thank you for your help!

I am always confused about where to put adverbs in sentences. For example, consider the questions below:        Why did they target us specifically?   Why did they target specifically us?   Why did they specifically target us?      I believe all these sentences mean the same. Am I correct? I am always confused about where to put adverbs such as always and specifically, etc. Is there a particular grammar rule for this?  Funny, you see, I can even form the above sentence in different ways.         I always confuse where to put this kind of adverb   Always I confuse where to put this kind of adverb