so I'm trying to make a game menu, but both buttons that switch to totally different scenes lead to the same one.There are two planes, and one is connected to one scene, while the other is to another scene. but when i play the game, both scenes go to the same one. help.

I am learning how to make interfaces in the game engine, and I have set up 2 buttons: an exit button and a play button. When one of the buttons receives a left click, it either closes Blender or goes to another screen with a monkey.  The problem is that both buttons are doing the same stuff at the same time. They're switching scenes and closing the program, and the biggest problem is that I don't have to click on the buttons at all. When testing, I can click anywhere in the Blender and it does this.  Here is  if you need it.


Who will you voting for in the Lok Sabha Elections 2014? Whom will you voting for in the Lok Sabha Elections 2014?   Which one is correct, and why? Please explain in detail.

Many times, I've been asked the difference between "who" and "whom". I myself know the difference, but it is hard to explain to others. What is the easiest way to explain it to those with a basic understanding of English? A mnemonic (if possible) would help.


Hello most helpful humans. I have read endless other threads on this subject, and typed a myriad of commands in terminal, but have caused myself more trouble than benefit it seems.  The problem is Plex, and its ability to find my external drive. Or that was the problem. Now the problem is that I can't seem to update or install anything.  Full error message is:  E: Type 'wget' is not known on line 1 in source list /etc/apt/sources.list.d/plexmediaserver   Please could somebody help me sort this out? I'm afraid I'm not much clued up on how to use Ubuntu properly - my usual approach when problems arise is to search online and copy code/follow instructions that someone else has written, which usually does whatever trick I'm hoping it will. I don't care at this point if I get Plex working (though it would be an added bonus for sure), but being able to update the computer again would be nice.   I realise it would be more helpful if this post had more information, but I'm afraid I need help knowing what to type in to get such information!  Thank you in advance for any help.   EDITS:  john@john-Inspiron-15-3552:~$ cat /etc/apt/sources.list.d/plexmediaserver cat: /etc/apt/sources.list.d/plexmediaserver: No such file or directory    I have read the malformed line thread, but I find it really hard to understand a lot of the time. Not sure if it pertains to my issue or not. Sorry.  john@john-Inspiron-15-3552:~$ cat /etc/apt/sources.list.d/plexmediaserver.list wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add - deb https://downloads.plex.tv/repo/deb public main

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I am getting this message (attached) that says:     An ActiveX control on this page is not safe.  Your current security   settings prohibit running unsafe controls on this page. As a result   this page might not display as intended.   I have ArcGIS version 10, and installed it on Windows 7, 32 bit.  What should I do?

I have been running ArcGIS 10.5 on my PC (Windows 10 Home) since December with no issues.  This past week I have started to get ActiveX Security Warnings when I click into a parameter field in any ArcToolbox tool.       Windows Security Warning      An ActiveX control on this page might be unsafe to interact with other parts of the page.  Do you want to allow this interaction?   It doesn't seem to matter whether I click Yes or No, I can still modify the field and the tool still functions fine.  Answering Yes:   Answering No:   I am working through the answers to , although there doesn't appear to be an actual answer on that Q&A. Additionally it's back in the Windows XP/7 days with IE 7/8, and I'm running Win 10 with IE 11 (although that's never used).  If it matters, the browsers we use are Firefox 53.0 (64-bit) and Chrome 58.0.3029.81 (64-bit).  The issue I am having sounds different as it's happening only when I click on the parameter field - not when I open the tool or, as I read elsewhere, ArcMap.  The warning messages on that Q&A also have different text so it may be a completely different problem.  I have opened Internet Explorer (for the first time since getting this PC!) and looked at the Local Zone settings and everything for ActiveX is marked Enabled, including one about running without prompting:    I have also Disabled another one "Automatic Prompting for ActiveX Controls" but that didn't stop the message appearing.  I went through the suggested ActiveX settings from , updated all my settings to match (the only one I had to change was the "Automatic Prompting for ActiveX Controls" one I changed in my testing above).  No new software has been installed on my PC in the past week.    What could have caused this to start appearing, and how do I fix it?


public class User implements  GameObject{  private Scanner userScanner; private int result = 0;  public User() {     userScanner = new Scanner(System.in); }  public int getGameObject() {     System.out.println("Rock: 1, Paper: 2 or Scissors: 3");     String userInput = userScanner.nextLine();      if (userInput == "1" || userInput == "2" || userInput == "3") {         // User has entered a valid input         switch (userInput) {             case "1":                 return 1;             case "2":                 return 2;             case "3":                 return 3;         }     }     return getGameObject(); }   }  My problem is the result from getGameObject() method. When I am using this in the application its always return 0 or a value I set in the last return (int fex 2). I want to get user values (0,1,2). My plan is to return at the end method itself to get back to the first propmpt line in case wrong selection from the user. In such case method always return method recall and I fall in kind of infinite loop.  Could you 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?


I'm a developer working a lot with Android Studio. When it compiles the Java classes it spins up 4+ threads of CPU intensive work. Often I play music in the background when that goes on. Here's what happens:   The music skips or completely stops at the most intensive section of the compilation The mouse point jitters or stops responding altogether   Most often things normalize after compilation is done, but other times the computer freezes totally and I have to hard reset it. How come? Is not Linux/Ubuntu/Unity designed to prioritize the UI thread? How does it allow Java to take 100% of the CPU resources? Is there any way I can throttle this?  Disclaimer: I don't know much about OS code.

The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS.  Here's the specs of my laptop:  Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD   And when gradle is compiling, my entire system slows to a crawl, videos begin stuttering, browser scrolling lags... etc.  The same goes when a page refresh occurs in another window in Chrome, and while it refreshes, the HTML5 video in another tab begins stuttering.  How can I fix this?  Here are some logs:  $ vmstat -a 1 5 -   $ iostat -x 1 5 -   $ top -b -


I have been trying to calculate the magnetic field due to a circular loop using . However, I am unable to do the same.   Whenever I apply the law, while integrating length element $\mathrm{d}l$, I get $2\pi r$ [the circumference of the loop]. However, when we apply Biot - Savart Law, the $\pi$ from the circumference gets cancelled with the $\pi$ from the constant of proportionality. Please do point out the error in my derivation.   I would also like to know if the usage of  is any different from Ampere's Law when considering the restrictions or required conditions.

What is the difference between these laws? Which law is more useful? When to use  and when to use ?


Please see the screenshot here:    At the top of the window I have 3 toolbars packed together, they are all the same. How can I remove them?

I can't find a way to close a view panel, in particular the horizontal at the bottom, is pretty useless to me at this moment.


What happens if we really dim down the light in young's double slit experiment? How does the result relates to particle nature of light?

In a double-slit experiment, interference patterns are shown when light passes through the slits and illuminate the screen. So the question is, if one shoots a single photon, does the screen show interference pattern? Or does the screen show only one location that the single photon particle is at?


mpg = mileage per gallon and hp = horsepower    Why is this model a linear model despite having a square of horsepower in it?

I was reading the following link on non linear regression . My understanding from reading the first section "Nonlinear Regression vs. Linear Regression" was that the equation below is actually a linear regression, is that correct? If so why?  $$y = b_1x^3 + b_2x^2 + b_3x + c$$  Am I also to understand that in non linear regression multicollinearity isn't an issue? I know that multicollinearity can be an issue in linear regression so surely if the model above is in fact a linear regression there would be multicollinearity?


I'm normally pretty confident with my punctuation, but this one has been stumping me, and it's probably because I don't know the proper phrasing for what I'm trying to ask:  How to we add a possessive apostrophe to a proper noun when that noun is a plural word?  I.e., I'm working with a company named WeBuyAssets. Assets is clearly a plural, but "WeBuyAssets" is the proper name of a singular entity. Would the correct possessive here be:  WeBuyAssets's CEO (my best guess)  or  WeBuyAssets' CEO (looks more likely to be used).  Thanks for your help!

What is the possessive of a noun ending in ‑s?  Are these both right, or is the second one wrong?   the boys' books the boss' car


Whenever I select classified symbology for a raster layer ArcMap will crash/close and give the message/ prompt to send error report: "ArcGIS has encountered a serious error.."  The problem is not associated with the data itself as it happens for any raster.  I have uninstalled ArcGIS 10.3 and reinstalled ArcGIS 10.4 and reset my normal file and the error still happens. There doesn't seem to be any issues with the install and the issue is new. I had been using ArcGIS 10.3 for a while with no issues.  The only change on my computer I can think of is I updated my AMD Radeon Display driver recently. However I have tried disabling it and running ArcMap and the same error occurs.

I'm facing an issue with ArcGIS 10.3. When I try to use symbology type "category" the program crashes. It seems that is not a matter of data because I used the data before and nothing happened. The problem started yesterday after a windows 10 update so I consider something relate do this update (may 10).   I tried the complete uninstall and reinstall and didn't solve the problem.  I tried also save the MXD with another name in other location.   So my question is related to the possibility of a problem caused by an windows update.   Any ideas?


How we can solve this equation :  $$y^3=x^{3}+8x^{2}-6x+8$$ for positive integers  $x, y $?  I tried to factories the $L. H. S $  but I couldn't complete the solution. How I can solve it?  Thanks.

Solve for the equation $y^3=x^3+8x^2-6x+8$ for positive integers x and y.  My attempt- $$y^3=x^3+8x^2-6x+8$$             $$\implies y^3-x^3=8x^2-6x+8$$             $$\implies (y-x)(y^2+x^2+xy)=8x^2-6x+8$$  Now if we are able to factorise $8x^2-6x+8$ then we can compare LHS with RHS.Am I on the right track?Please help.


I've a classified image and polygon. The classified image pixels have two type of values (0 and 1) where 1 represents urban and 0 represents non-urban land cover. I found some wrong classified pixels as urban land and I marked the pixels' boundary by a polygon. Now I want to change the pixels' value to 0 as non-urban land cover in the polygon.  I tried to do that after converting the polygon to raster and set its value as 0. Then, I multiplied it with the main image but it didn't work.  Here is my code:  var mainImage = image1 var polygonImage = polygon.reduceToImage({     properties: ['type'],     reducer: ee.Reducer.first() }).multiply(ee.Image(0));  var finalImage=mainImage.multiply(polygonImage);   I'm looking for an effective solution regarding the issue.

I am working on a classification problem on agricultural fields. To make things easier, I first identified road, cities, water, fields, and etc. I am planning to eliminate road, cities, and water out of the image to improve my model. I got all these areas as polygons in a .shp file and I want to mask out these areas.  Wherever I check, all applications are for clipping a polygon.   Is there a method to mask the polygons I provided in GEE code editor?


Can I print an image of artwork taken on my Fuji XT2  on fabric 100 x 120 inches, or would I need to have that image scanned at a higher resolution on a flatbed scanner, or photographed by professional services?  Thank you in advance for your advice!  My artwork is a drawing of an elephant that will be created at a size to optimize maximum image size in a photograph.  What would that size be? A size that fills my fixed lens?  The viewing distance would be 10-20 feet in an interior gallery space. The fabric is polyester georgette, a sheer, smooth surface. The printer of this fabric says that they print at 200dpi and that my image should be scaled to 100%.

What size images do I need for common print sizes, such as wallet size, 8x10, and 16x20?  Is there a general formula?  How could that size change if, for example, a 16x20 was printed on canvas rather than photopaper?


Suppose $F\colon\mathcal{A}\to\mathcal{B}$ and $G\colon\mathcal{B}\to\mathcal{A}$ are adjoint functors between some $R$-linear abelian categories ($R$ a ring), via a fixed counit-unit adjunction $\epsilon\colon GF\Rightarrow 1$ and $\eta\colon 1\Rightarrow FG$. Why is the following an isomorphism of $R$-algebras?  $$ \operatorname{Nat}(G,G)\to\operatorname{Nat}(F,F):\alpha\mapsto (F\ast\epsilon)\circ (F\ast\alpha\ast F)\circ (\eta\ast F) $$  My primary issue is I don't see how to invert it, since the counit-unit equations $F\epsilon\circ \eta F=1$ and $\epsilon G\circ G\eta=1$ don't seem to allow me to "undo" the $F\ast\epsilon$ and $\eta\ast F$ from the left and right.

I'm currently self-studying "Categories and Sheaves"by Schapira and Kashiwara, and I've been stuck on problem 1.19 all day today, so I was hoping that someone could help me out.  Let $\mathcal{C}$, $\mathcal{C'}$ be categories and $L_v:\mathcal{C} \rightarrow \mathcal{C'}$, $R_v:\mathcal{C'} \rightarrow \mathcal{C}$ be functors such that $(L_v,R_v)$ is a pair of adjoint functors (v=1,2). Let $\epsilon_v: id_\mathcal{C} \rightarrow R_v L_v$ and  $\eta_v: L_v \circ R_v  \rightarrow id_{\mathcal{C'}}$ be the adjunction morphisms. Prove that the two maps $\lambda$,$\mu$ : $$Hom_{Fct(\mathcal{C},\mathcal{C'})}(L_1,L_2) \rightleftarrows^{\lambda}_{\mu} Hom_{Fct(\mathcal{C'},\mathcal{C})}(R_2,R_1)$$ given by : $$\lambda(\varphi):R_2 \rightarrow^{\epsilon_1 \circ R_2} R_1 \circ L_1 \circ R_2 \rightarrow^{R_1 \circ \varphi \circ R_2} R_1 \circ L_2 \circ R_2 \rightarrow^{R_1 \circ \eta_2} R_1$$ for $\varphi \in Hom_{Fct(\mathcal{C},\mathcal{C'})}(L_1,L_2)$ $$\mu(\psi) : L_1 \rightarrow^{L_1 \circ \epsilon_2} L_1 \circ R_2 \circ L_2 \rightarrow^{L_1 \circ \psi \circ L_2} L_1 \circ R_1 \circ L_2 \rightarrow^{\eta_1 \circ L_2} L_2$$ for $\psi \in Hom_{Fct(\mathcal{C}',\mathcal{C})}(R_2,R_1)$ are inverse to eachother.  So far, I've been trying to play around with the zig-zag identity, but it doesn't seem to lead me anywhere. Any help will be greatly appreciated!


Im trying to get a list of all the date formats salesforce expects for all the supported locales in my org.  I already have the list of locales codes displayed on a visualforce page. I just need the date formats. Is there a way to get this? The formats I have are incorrect.   Update:  Im asking  where can I get the dateformats I want to add a new locale to my map or is there a way I can write  apex to just spit out all the date formats for me so I can update this map with the correct format versus referring to  this .   I want to do something like this solution  but with the date formats also.  Example below:  en_US(locale) = mm/dd/yyyy(date format)

i am trying to fetch the date format for the logged-in User in javascript  on visualforce page. Usually I used to get this data by using:      window.UserContext.dateFormat   Expected Output should be: "dd.mm.YYYY"  but this seems to return blank to me on my page. Could I get this from SOQL query somehow or some other util method?


My piece of code is                   String gps = "gps";             if (loc.getProvider() == gps){                 forCampaignCopy.setText(loc.getProvider());                 locationManager.removeUpdates(locationListener); //to stop using the sensor             }             else{                 forCampaignCopy.setText(loc.getProvider());             }   When I run the debugger, it stops at the if statement and I can see that loc.getProvider() says gps (since that is the provider im using), however it then jumps to the else statement but prints out "gps". Why is this happening?

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?


I have run a stepwise regression on R. However, the summary of the final model includes some factors that are not significant. Why have these factors not been removed? Should I remove these from my model? The VIFs of these factors are all under 5.

What is the critical p-value used by the step() function in R for stepwise regression? I assume it is 0.15, but is my assumption correct? How can I change the critical p-value?


I have a few questions about Wolverine's regenerative properties.  So I heard that Magneto ripped out Wolverine's metal skeleton. This left Wolverine back to his bone form, so he had his bone claws.  My question is as follows... if Wolverine can survive his metal skeleton being ripped out of him and then he lives.    What would happen if you ripped his metal skeleton out then cut him vertically in two. Would he die, or regenerate? I believe if you do this to a worm, the worm will die.  If he'd die in Q1 then then what happens if you cut him horizontally at the waste? If one half would regenerate the other in Q2, could he cut off his own arm and use it as a weapon, and have the arm he cut off regenerate?

Clearly, if Wolverine bleeds on the ground, a new Wolverine doesn't reconstitute himself from the drop. Presumably, if somehow his arm could be severed, that wouldn't happen there, either. If his head were cut off...probably not either.  So it seems that there's a minimum amount of contiguous body mass Wolverine has to have from which he can heal.  Maybe limbs are the limit...are there examples of Wolverine regenerating a lost limb? If so, well, this question. If not, is there anything else in the canon to suggest an answer?


The Alien queen was in the exterior landing gear space of the Sulaco shuttle in Aliens.  Even if she laid eggs on that exterior space, how did those eggs enter the shuttle?  If two did, as many state, what would be the reason the eggs open on hibernating passengers? Aren't their triggers to open movement/proximity/noise as we've seen from Alien to Prometheus?

How did an alien egg (or facehugger) get aboard the Sulaco at the end of the movie, ?  We know there was one aboard because of the movie, .  The  stowed aboard the dropship, but she could not have laid any eggs because her ovipositor was destroyed in a fire. And she would not have had much time to lay eggs during the battle with Ripley aboard the Sulaco.  Did a facehugger sneak aboard the dropship too?


Is the following sentence correct?     A number of researchers are expected to attend the conference   Notice that the sentence is using the plural verb "are" after "researchers" but I don't know if it needs the singular verb "is" instead, since it says "A number" before "researchers".

I looked up a few grammar-teaching websites (in Chinese language). The website says many people do not use the phrase "A xxx of" correctly because they do not identify the subject of the phrase correctly.   The website says phrases like "A range of; A high percentage of" is singular, while "a number of; a group of; a couple of; a total of" is plural.  Therefore according to the website, the correct sentences should be as follows.     A wide range of courses is available. ("A wide range" is the subject)      A high percentage of peptides that are made of amino acids is present   in the sample. ("A high percentage" is the subject)      A number/ group/ couple of people were killed in the earthquake.("people" is the subject )       A total of 230 employees were laid off. ("employees" is the subject)   I don't get the pattern here. All of this looks (or should I use "look"?) arbitrary to me. In fact I thought this phrase is supposed to be arbitrary and whether the phrase is plural or singular should depend on the the person's own judgment.   How do I identify the correct subject in the "A xxx of" phrase?


$$\lim_{(a,b)\rightarrow (0,0))}\frac{x^3y^2}{x^4+y^6}$$  i tried approaching from y = mx and various polynomials of x which all produced 0.  i am told that i should now be using squeeze theorem but im not too sure how to find the right function

$$ \lim_{(x,y)\to (0,0)} \frac {x^3y^2}{x^4+y^6}  $$ Does this limit exist?   I've tried substituting y=x^0.5 and y=x^(2/3) which both goes to 0.


Why is it required to use a "fresh name/variable"? And because of that requirement, Existential instantiation always precedes universal instantiation. What I am thinking is, If we are picking elements at random from our universe of discourse then why can't universal instantiation pick that random element first before existential instantiation does? I would understand the rule that we cannot existentially instantiate more than one element(which will need more than one name/variable) because we can never be sure there is more than one, but the reason EI precedes UI in picking a random element eludes me.  let's say we pick an object "a" for EI then use that same "a" for UI. when we picked "a" from the universe, its properties does not change even if we universally instantiate first or existentially instantiate first.

Abbreviate: Existential Statement to ES, Existential Instantiation to EI, Universal Instantiation to UI, and Universal Statement to US.   Source:  A Concise Introduction to Logic (12 Ed, 2014) by Patrick Hurley           [p 468:] [...] Notice that the line involving existential instantiation is listed   before the line involving universal instantiation. There is a reason for this. If the   order were reversed, the existential instantiation step would rest on the illicit assumption that the something that is both an A and a G has thesamename as the name   used in the earlier universal instantiation step. In other words, it would involve the   assumption that the something that is both an A and a G is the very same something   named in the line Ad ⊃ Cd. Of course, no such assumption is legitimate. To keep   this mistake from happening, we introduce   [...]   [p 469:] These two restrictions can easily be combined into a single restriction that requires that   the name introduced by existential instantiation be a new name that has not occurred   in any previous line, including the line adjacent to the last premise that indicates the   conclusion to be derived.   I recognise the possible problem that I coloured grey in the above quote; but how is it a genuine problem? And why does it necessitate EI always to precede UI? I agree that writing EI before UI is visually convenient, but does the grey above exaggerate?  To me, the illicit assumption can be evaded simply by knowledge of EI vs UI. Only US (Line 1) are true for ANY value of x; so only US empower you to choose whatever Constant (ie: letter) you need, such as the specific Constant  needed  to match the Constants in any subsequent PS.  One must start always by applying EI to the ES (Line 2) which generates the first Constant, before one can even know which Constant needs to be matched from applying UI to the US.   So knowing the previous sentences, how can someone be confused by whether the 'something' in EI is identical to what is named in the UI? If they are not identical, then EI and UI would use different Instantial Letters to name the 'something'!


I am trying to create templated abstract base class. This class will have couple of pure virtual functions. It will also have two methods that are defined in it.   Then I derive from this templated abstract base class  (I derive by specializing the template) and call those two methods that were defined in the templated abstract base class from the overloaded functions.   When I do this and try to compile I get undefined reference to. I am using cmake for building. Compilation works when I remove those two methods that were defined in base class.

When I write C++ code for a class using templates and split the code between a source (CPP) file and a header (H) file, I get a whole lot of "unresolved external symbol" errors when it comes to linking the final executible, despite the object file being correctly built and included in the linking.  What's happening here, and how can I fix it?


The term "you guys" is so widely used, I'm surprised it doesn't have a possessive. I hear "Your guys'es" all the time but surely that's not correct. What should be used for the possessive of a group of people.

Most people seem to stumble over this. The problem can arise with any multi-word phrase that needs a possessive but ends in S, and so sounds awkward using the clitic apostrophe-S. I've heard this particular one variously rendered as:   You guys' You guys's Your guys' / your guy's   What's you guys...your...guises...what's your take on it?


I installed Ubuntu 18.10 on a laptop. When I opened Gparted I saw this little partition and do not know what it is (see image). Gparted also has a warning about it:     Unable to read the contents of this file system! Because of this some operations may be unavailable. The cause might be a missing software package. The following list of software packages is required for fat32 file system support:  dosfstools, mtools.   fdisk has it as:  /dev/nvme0n1p1    2048       6143       4096     2M BIOS boot   What is this partition, why is it there and do I need it? I have never noticed such a partition before.  Update: I find this hard to understand even after having read up on it. I add my disk layout here:  sudo parted -l /dev/sda Model: SAMSUNG MZSLW1T0HMLH-000L1 (nvme) Disk /dev/nvme0n1: 1024GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:   Number  Start   End     Size    File system  Name  Flags  1      1049kB  3146kB  2097kB  fat32              bios_grub  2      3146kB  543MB   540MB   fat32              boot, esp  3      543MB   1024GB  1024GB  btrfs   I guess I have a gpt partition so therefore I have the bios_grub partition? This is a relatively new install of 18.10 and I wonder why the partition table is gpt?

Why do I need these? I have installed Ubuntu under a non UEFI (master boot record) and have installed Ubuntu with no 'biosgrub' and it works fine, whereas other times I am asked to make a 'biosgrub' partition.  I have no idea why sometimes I need it and others I don't (these have both been on the same system).  And the same thing happens when I use UEFI (GUID Partition Table).  The only difference is I am asked to make a 'EFI boot partition', but as with the 'biosgrub', sometimes I am asked to make it and sometimes I am not asked to make it.  For my current install I was asked to make one but I didn't and my system is fine. There is no change in the system, same hardware, BIOS etc... Could anyone shed light on this?


I remember that there was a word that meant being knowledgeable about many words, but I've forgotten what the word was.

What's a big-vocabulary word for someone with a big vocabulary?  I'd like to say I'm looking for a "_____".


I have this code <?php $query1 = "SELECT users.id, testtable_result.id as result_id, testtable_result.user_id, testtable_result.cad_id, testtable_result.medication, testtable_result.color, testtable_category.category_id, testtable_category.name FROM users INNER JOIN testtable_result ON testtable_result.user_id=users.id INNER JOIN testtable_category ON testtable_result.cad_id=testtable_category.category_id WHERE users.id = '{$userID}' AND color LIKE '%blue%';"; $result1 = query($query1); confirm($result1); if (row_count($result1) > 0) : while($row1 = fetch_Array($result1)) {   $medication = $row1['medication'];   $data[] = $row1; } foreach ($data as $value) { $categoryname = $value['name']; $medication = $value['medication']; $arrmaincatname = explode('(', rtrim($categoryname, ')')); if($categoryname == "Saba"){ $datacat = $arrmaincatname[0]; $medicacat = $medication; ?> In <?php echo $datacat; ?> category -- [<?php echo $medicacat ?>] <?php }} ?>  it shows result like this In Saba category -- [ProAir RespiClick®] In Saba category -- [Proventil® HFA] I want to remove all the duplicate results and want to show it like this. In Saba category -- [ProAir RespiClick®, Proventil® HFA]

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I have a bunch of data points, however I think that some might be too close to each other due to sampling error and could therefore have an impact on my subsequent analyses.  How can I remove data points which are less than 200 meters from each other?  I'm using ArcGIS 10.2

I have a certain number of generated node features using FME 2016. They are coming as output of one FME workbench and actually representing characteristic points of underground cables. Total number of these points is several hundreds of thousands and, as you can imagine, they are unevenly distributed accross the area of the city.  My task is to reduce the number of points in the way that there are no two points on the distance less than 50 m. Points should be treated equally and they do not have assigned weights. Point features after reduction should be loaded into ESRI geodatabase.  What I can do is to take each of these points at the time and to remove all others in the circle of 50 meters. In that case my only requirement, that there are no two points on the distance less than 50 meters, will be fulfilled, but distribution of the points is in some areas very poor.  What I am thinking of, is there has to be some kind of comprehensive solution which will not analyze each point individually but complete set of features and result is best possible distribution of the points in complete area.   Don’t hesitate to advise me any kind of ESRI tool or even mathematical approach that you can think of, since as far as I see, we do not have built-in FME transformer which will do this job for me.  Current result   Needed result


When you press the windows key, type Chrome, but spell it wrong, IT OPENS EDGE! I had an option configured, that Cortana was completely disabled and I wouldn't get web-results either, after updating to Windows 10 Home 1803 (17134.228), I get the web results again, I've played around in the registry, and the group policy editor, but still, I get these web-results.  I tried this trick I found at , It said to run this registry file:  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search] „BingSearchEnabled“=dword:00000000 „AllowSearchToUseLocation“=dword:00000000 „CortanaConsent“=dword:00000000   But as mentioned, this was useless. not even after a restart.

It  to disable internet search results in start menu searches before the Windows 10 Creators Update, but I've just clean installed a new Windows 10 Pro image and that setting is gone. Is there some way to disable it through editing the registry/etc?


If I gain control of another players commander, does it still deal commander damage or does that only work with your own commander?

I know that if I gain control of my opponent's commander, it won't lose the status of commander. How is the commander damage calculated in this case? Can I do the 21 commander damage with the stolen commander to win the game? Does the damage add to the damage of my own commander?


Can I untap an opponent's attacking creature with 's ability, and avoid the combat damage that I would be dealt by that creature in the combat phase?

If someone declares an attacker and that creature does not have vigilance, if I untap that creature, for example with , does it stop the creature from attacking?


Why does a larger mass in a pendulum have the same period as a lighter mass? i know it has something to do with gravity and length but how can this be explained in depth? like for example the galileo's experiment where both masses were nearly the same but the lighter mass was slower (air resistance)

The gravitation formula says $$F = \frac{G m_1 m_2}{r^2} \, ,$$ so if the mass of a bob increases then the torque on it should also increase because the force increased. So, it should go faster and thus the oscillation period should be decrease.  My physics book says that period is only affected by effective length and $g$. Why doesn't mass of bob affect the period?


I was going through a c++ code and saw a header file with below declaration:  file a.h class xyz;   But that class was not defined any where in the file. I also wrote a code and it perfectly compiles fine. Just wanted to know what is the use of declaring a class like this as it does't enforces programmer to define.  Thanks in advance!!

I am looking for the definition of when I am allowed to do forward declaration of a class in another class's header file:  Am I allowed to do it for a base class, for a class held as a member, for a class passed to member function by reference, etc. ?


I come from League of Legends, there most of the games, but not necessarily all, are composed by:   Top lane: Bruiser / Tank Jungle: Tankish... Mid lane: Mage Bottom lane: Physical Damage Carry Bottom lane: Support   Usually something like that.  And now I want to understand if there is any meta on Smite, is there some team composition that is recommended to follow? How should we pick our team? Do we have/need a full support?  Are there junglers?

I'm very new to Smite, and I'm wondering if there is some kind of standard team composition in high level play, comparable to the top, jungle, mid, dual lane meta in LoL.  What are the roles, and where should they go to start the game?


Based on what is measurable, how much energy is in the universe if the initial time is the big bang and the final time is the present?

In popular science books and articles, I keep running into the claim that the total energy of the Universe is zero, "because the positive energy of matter is cancelled out by the negative energy of the gravitational field".  But I can't find anything concrete to substantiate this claim. As a first check, I did a calculation to compute the gravitational potential energy of a sphere of uniform density of radius $R$ using Newton's Laws and threw in $E=mc^2$ for energy of the sphere, and it was by no means obvious that the answer is zero!  So, my questions:   What is the basis for the claim – does one require General Relativity, or can one get it from Newtonian gravity? What conditions do you require in the model, in order for this to work? Could someone please refer me to a good paper about this?


I am looking for some suggestions on what methods are appropriate for training a dataset with a high skew in the outcome classes. The ratio of Class 0: Class 1 is about 20:1 and I am looking to maximize the accuracy for identifying Class 1 outcomes. This is similar to oft discussed topics such as cancer detection.  I have used some methods before but am trying to find if there is any comprehensive resource / suggestions that talks to the different methods for these cases. Examples of how they are applied in R (packages, etc) or with caret would be useful. It is a sparse dataset with about 100K examples of which 5000 belong to Class 1 and the rest to Class 0. Each example has about 20 features, and includes null values.

We already had multiple questions about unbalanced data when using , , ,  and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with unbalanced data.  Quoting , dealing with unbalanced data     (...) heavily depends on the learning method. Most general purpose   approaches have one (or several) ways to deal with this.   But when exactly should we worry about unbalanced data? Which algorithms are mostly affected by it and which are able to deal with it? Which algorithms would need us to balance the data? I am aware that discussing each of the algorithms would be impossible on Q&A site like this, I am rather looking for a general guidelines on when it could be a problem.


Since I updated my iPhoto to new Photos App from Apple, I cannot find where to change or add location information to pictures. I had a rich collection of places in my iPhoto.

I have tried anything I could think of and also consulted the "photos" help as well as google but I could not find a way to geotag photos in "photos".  Is there a way to do this or is it really only possible to view photos on a map if they have been geotagged when imported to "photos"?


I saved my data from an numberDecimal edit text using sharedpreference. When I want to get that data in another activity, it always appears as null, so it wasn't saved correctly. Any suggestion?   This is my code from where I save the data :  public void Start(View view) {     EditText LevelEdit = (EditText) findViewById(R.id.editText_LevelCurrent);     String User_Level = LevelEdit.getText().toString();     if (User_Level == "") {         Toast.makeText(this, "Select a level",                 Toast.LENGTH_LONG).show();      } else {           SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);         SharedPreferences.Editor editor = sharedPref.edit();         editor.putString(GameConstants.StringvalueOfLevel,User_Level);         editor.commit();           Intent myIntent = new Intent(Mygame_Menu.this, Mygame.class);         startActivity(myIntent);     } }

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?


How can I delete the 3 in "1,2,3,4"?  Dirty hack: Slice the sliced arrays and join them again.  $s = "1,2,3,4";  $array = explode(',', $s); $a = array_splice($array, 0, -2); $b = array_splice($array, 1, 1); $s = implode(',', $a).','.implode($b);  echo $s; // 1,2,4   Test:

Is there an easy way to delete an element from an array using PHP, such that foreach ($array) no longer includes that element?  I thought that setting it to null would do it, but apparently it does not work.


I write blog posts for multiple WordPress.org blogs and where content overlaps, I wonder if I should post it separately on multiple blogs or not. Often this happens with posts I write to my personal blog which are pertinent for groups I volunteer for who share my interests. Will this kind of cross-posting hurt or help search engine optimization for the sites, and is there anything other than SEO to consider related to this? If anything, I imagine linking a post between multiple websites improves SEO for either/both since both become linked to by at least one additional node of the internet.  If it is OK to cross-post to different, separately hosted Wordpress.org blogs on independent URLs, are there better and worse ways to do it? Is copy and pasting the content between sites any better or worse than using a plugin to do it aside from work involved either way?

This is a general, community wiki question regarding duplicate content.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .     What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content?


Whenever I try to add an image to my JPanel I get an NPE. (The error is when I initialize a new ImageIcon!) What I've tried:  Class loader Main class's get resource '/' before path and without '/' before path  Code in main class: public class Main {     public static void main(String[] args) {         GameWindow game = new GameWindow();          game.setSize(1280, 720);         game.center();          game.addImage(new ImageIcon(Main.class.getResource("player.png")).getImage(), 0, 0);          game.setVisible(true);     } }  Inside the engine GameWindow class: public class GameWindow {     private final JFrame frame = new JFrame("Game Window");     private final JPanel board = new JPanel();      public GameWindow() {         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     }      public void addImage(Image image, int x, int y) {         board.getGraphics().drawImage(image, x, y, null);     }      public void center() {         frame.setLocationRelativeTo(null);     }      public void setVisible(boolean visible) {         if (visible) {             if (!board.isVisible()) {                 board.setVisible(true);                 frame.add(board);             }         }         frame.setVisible(visible);     }      public void setSize(int x, int y) {         frame.setSize(x, y);     } }  Here's what the file path looks like before building it into a JAR and running it.  Any help would be appreciated, I've spent so long (1 day + 1/2) trying to find an answer.

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?


2-part question:  (1) Is there a name for this type of construction in English?  Examples:  "We can't go, can we?"  "I am here, aren't I?"  "We mustn't get ahead of ourselves, must we?"  "You are going, aren't you?"  The basic construction involves making a statement, and then asking the negation. So is there a name for this?  (2) Is this construction unique to English?

"I can have a cookie, can't I?"  (Please ignore the double quotes while reading)  What is this type of question called?  Also, is it grammatically correct under American English?


I have a document that I'm currently compiling with pdflatex that contains pstricks-pictures (using \usepackage[pdf]{pstricks} and \usepackage{auto-pst-pdf})  To publish the document online I want it to be compiled to HTML and the pstricks-pictures to be converted to SVG.  Is there an automated way to do so?

Consider the following MWE:  \documentclass{article} \usepackage{pst-all}  \begin{document}   \begin{pspicture}(0,-3)(12,5)       \psline[linewidth=2pt]{->}(1.5,0)(0,0)   \end{pspicture} \end{document}   This compiles fine with latex (not with pdflatex) but when run with htlatex it leads to the ghostscript error:  System call: dvips -E -q -Ppdf -f q.idv -pp 2 > zzq.ps System return: 0 System call: gs -sDEVICE=pngalpha -sOutputFile=q0x.png -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zzq.ps -c quit Error: /configurationerror in --setpagedevice-- Additional information: [/PageSize [0 0]] Operand stack:    --nostringval--   (%%BoundingBox: 72 72 72 72)   --dict:1/2(ro)(G)--   --nostringval--   --nostringval--   (%%BoundingBox: 72 72 72 72)   1   72   72   false   --dict:1/1(L)-- Execution stack:    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1951   1   3   %oparray_pop   1950   1   3   %oparray_pop   --nostringval--   1934   1   3   %oparray_pop   1820   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   %ztokenexec_continue   (scanner state)   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   1913   10   3   %oparray_pop   --nostringval--   --nostringval--   --dict:1/10(L)--   --nostringval--   15   %dict_continue Dictionary stack:    --dict:1190/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)-- Current allocation mode is local Last OS error: Invalid argument Current file position is 169 GPL Ghostscript 9.16: Unrecoverable error, exit code 1 --- Warning --- System return: 256 Entering q.css Entering q.tmp   This code used to work fine. From other examples I suspect that the problem has something to do with dvips having trouble determining the bounding box for the image (compare with  -- although the solution given here, of using separate files for each image, is not a viable solution for me), but I have not been able to work out what the problem is.  Does anyone have any ideas?


I often run Java .jar files, but in order to do so, I must invoke it with the command java -jar myJar.jar.  Simply making the .jar executable will not allow it to be run, since it is not fully compiled.  The .jar must also be in my current directory to do so.  What I am asking is is there any way to make it so that I can run a .jar by simply invoking it with myJar, provided it is in somewhere defined by $PATH?  Is there any way to specify that it must be run with the Java interpreter?    I am using the Oracle JDK.

I know that to execute a file, I use the . command, then the file name with a space between them. But I'm trying to execute a .jar file using the . and it does not work. I went into the properties and marked it as executable and made it run with Java.   Is there a way to execute a file with Java in the Bash Terminal?    I am trying to execute the Minecraft.jar file.


I need to prove that:  $\sin(x) \leq x$ on the interval $[0,1]$ using Calculus. First I calculated the area between the graph of the function $x$ and $\sin(x)$ on the interval $[0,1]$, if it is positive then $\sin(x) \leq x$:  $$\int_0^1 x - \sin(x)  dx = \frac{x^2}{2} \vert_0^1 +\cos(x) \vert_0^1=\frac{1}{2} - 0 + \cos(1) -1=\cos(1)-\frac{1}{2}$$   With the help of the calculator I know that $\cos(1) > \frac{1}{2}$, but I don't know how to prove it without help of the calculator. Any idea of how to prove that $\cos(1) > \frac{1}{2}$ or another way to prove $\sin(x) \leq x$?

$$\sin x<x\,(0<x<\frac{\pi}{2})$$ In most textbooks, to prove this inequality is based on geometry illustration (draw a circle, compare arc length and chord ), but I think that strict proof should be based on analysis reasoning without geometry illustration. Who can prove it? Thank you very much.    ps:   By differentiation, monotonicity and Taylor formula, all are wrong, because $(\sin x)'=\cos x$ must use $\lim_{x \to 0}\frac{\sin x}{x}=1$, and this formula must use $\sin x< x$. This is vicious circle.  If we use Taylor series of $\sin x$ to define $\sin x$, strictly prove $\sin x<x$ is very easy, but how can we obtain geometry meaning of $\sin x$?


Can GTA V  Online Network Merge Xbox 360 and PS3 players, or is it two individual networks? (Can crews cross platform)

Grand Theft Auto Online exists on five different platforms: XBox 360, PS3, XBox One, PS4, and PC. Do any of these play on the same servers, allowing people on differing platforms to play together?


Set of all finite subsets of $\mathbb{N}$ the set of all natural numbers is finite or infinite?

Could someone verify my proofs?  Proposition: the set of all finite subsets of $\mathbb{N}$ is countable  Proof 1:  Define a set $ X=\{A\subseteq\mathbb{N}\mid \text{$A$ is finite} \}$.  We can have a function $g_{n}: \mathbb{N} \rightarrow A_{n} $ for each subset such that that function is surjective (by the fundamental theorem of arithmetic). Hence each subset $A_{n}$ is countable.   By the "Union of countable sets is countable" theorem, X is countable.  Q. E. D.  Proof 2: Suppose we have an ordered list of prime numbers $p_{1}, p_{2}, ..., p_{n}$. Define a function $g: X \rightarrow \mathbb{N}$  such that $ g(A) = (p_{1})^{a_{1}}*(p_{2})^{a_{2}}*...*(p_{k})^{a_{k}} $ with $k=$ number of elements of each subset and $ a_{1}, a_{2}, ..., a{k} $ the ordered elements of them. By the fundamental theorem of arithmetic, that function is injective, hence $X$ is countable.   Q. E. D.


The range of the heights of the female students in a certain class is 13.2 inches, and the range of the heights of the male students in the class is 15.4 inches. Which of the following statements individually provide(s) sufficient additional information to determine the range of the heights of all the students in the class? Indicate all such statements. "A The tallest male student in the class is 5.8 inches taller than the tallest female student in the class. "B The median height of the male students in the class is 1.1 inches greater than the median height of the female students in the class. "C The average (arithmetic mean) height of the male students in the class is 4.6 inches greater than the average height of the female students in the class.  What does the term "sufficient" mean?

If $p\implies q$ ("$p$ implies $q$"), then $p$ is a sufficient condition for $q$. If $\lnot p\implies \lnot q$ ("not $p$ implies not $q$"), then $p$ is a necessary condition for $q$.   I don't understand what sufficient and necessary mean in this case. How do you know which one is necessary and which one is sufficient?


While asking a question we get some suggestions for duplicates with the number of votes. But it is not place correctly. Have a look at this:        Those questions are listed as follow:          OS: Windows XP, Chrome 28.0.1500.95 m, Firefox 22.0

The alignment of items in the block Questions that may already have your answer is weird. The first question score is shown before the question and subsequent question and scores doesn't match. Here is a screenshot:     Right now, I'm using Chrome Version 28.0.1500.95 m, but it looks the same on Internet Explorer. Reproduced on Firefox 22.0  Edit: Stack Overflow looks normal.


When you mix cooked noodles or other "prevailing 1D pasta" like spaghetti with other ingredients like olives, pieces of meat (not minced) etc. you will probably experience the fact, that the mixture is not "homogenous" - larger pieces tend to fall out of the upcoming meal and usually they are gathered on the bottom or at the side of a pan.  After doing careful and regular experimental observations, my preliminary conclusions are, that this phenomenon is not present when the pieces are of equal or less diameter than the pasta and are "prevailing 1D" as well (could be done e.g. with ).   Could that be generalised and theoretically proven somehow? Could there be some statistical-mechanics formulation of this kind of stickness as a many particle system?

When I cook spaghetti with a sauce that includes meatballs or chopped vegetables, those stay in chunks and won't get uniformly mixed in the pasta.  Is there a simple reason for that?  Has it been studied? you know some people study piles of sand with various grain sizes?


The sum of numbers $1,\ldots,n$ is equal $n(n+1)/2$ so it will be divisible by $3$ only for $n=3k$ and $n=3k+2$. I am interested is that partition always possible for that cases.  Let's exclude $n=2$ and $n=3$ because clearly it is not possible to do partition them.  For $n=8$ we can do $\{4,8\}$, $\{1,5,6\}$ and $\{2,3,7\}$.

Let $p$ be a prime natural number. For which positive integer $k$ can the set $\{1,2,\ldots,k\}$ be partitioned into $p$ subsets with equal sums of elements ?  Obviously, $p\mid k(k+1)$. Hence, $p\mid k$ or $p\mid k+1$. All we have to do now is to show a construction. But I can't find one. I have tried partitioning the set and choose one element from each set but that hasn't yielded anything. Any hint will be appreciated.


Does anyone have insight into the best practice to style a Visualforce page to match the SLDS for inclusion in a lightning component and printing?  I can hear the choirfolk chanting: Visualforce is so stale!  To which I say: Unless you want to actually print your work. (It would be amazing if lightning could print in a useful way.)  I'm working on a Visualforce page that will be included included in a lightning component that will also be used for a printed version of the VF page contents renderd as pdf.     To prevent recommendations to use the SLDS in Visualforce, it seems this is a dead end.  I've personally tried every permutation of apex:slds, lightningStylesheets="true", applyHtmlTag="false", applyBodyTag="false", renderAs="pdf", and renderAs="advanced_pdf".  I appears that any attempt to render Visualforce that includes the SLDS CSS causes Salesforce to puke with      An internal server error has occurred.   I'm not the first to discover this .  I haven't tried embedding the LDS CSS in a static resource because it appears this didn't work .  As @Ronnie , it seems using the SLDS CSS itself will not work because the pdf rendering engine Salesforce uses doesn't support modern CSS.  Which leave me asking: Can you recommend a best practice for styling a Visualforce page to conform with the SLDS without actually including the SLDS?

I have a VF page built on Lightning Design system (LDS) framework. When I add the renderAs="PDF" attribute, pdf does not show the content with LDS CSS/Style.  Reference Link:   Note1: apex:page tag has all the usual attributes which is required for pdf *     (showHeader="false" sidebar="false" standardStylesheets="false"   docType="html-5.0" applyHtmlTag="false" applyBodyTag="false")   Note2: Salesforce supports external stylesheet. That is, CSS file stored in Static resource. Link of example:   I also copied the whole css content from the LDS CSS file (Path: 'assets/styles/salesforce-lightning-design-system-vf.min.css') and applied as inline CSS in VF page. But still, there is no luck.  My styleSheet is referred in VF page as below  apex:stylesheet value="{!URLFOR($Resource.SLDS221,      'assets/styles/salesforce-lightning-design-system-vf.min.css')}"   Page works absolutely fine if it is not rendered as PDF.  Any suggestions?


For complicated reasons (not C#'s fault I love that language very much) I have to learn Java. I hate learning new langages and i dont wanna have to learn what I already know from C#.   What are some resources that teach whats different without learning it all?

I just want to clarify one thing. This is not a question on which one is better, that part I leave to someone else to discuss. I don't care about it. I've been asked this question on my job interview and I thought it might be useful to learn a bit more.  These are the ones I could come up with:   Java is "platform independent". Well nowadays you could say there is the  project so C# could be considered too but I believe it is a bit exaggerating. Why? Well, when a new release of Java is done it is simultaneously available on all platforms it supports, on the other hand how many features of C# 3.0 are still missing in the Mono implementation? Or is it really  vs.  that we should compare here? Java doesn't support events and delegates. As far as I know. In Java all methods are virtual Development tools: I believe there isn't such a tool yet as Visual Studio. Especially if you've worked with team editions you'll know what I mean.   Please add others you think are relevant.  Update: Just popped up my mind, Java doesn't have something like custom attributes on classes, methods etc. Or does it?


Is there a (Unix) shell script to format JSON in human-readable form?  Basically, I want it to transform the following:  { "foo": "lorem", "bar": "ipsum" }   ... into something like this:  {     "foo": "lorem",     "bar": "ipsum" }


I am trying to typeset some content to the top of the page and some to the bottom of the page and both should be centered. Initially I tried this:  \documentclass{scrbook} \usepackage{showframe} \begin{document} \begin{center}     Top     \vfill     Bottom \end{center} \end{document}   However this leaves whitespace between the word Bottom and the actual bottom of the page:    If I am using \centering instead I acheive my result, but I don't understand why and I thin the environment would be the more logic approach, then the \centering switch.  \documentclass{scrbook} \usepackage{showframe} \begin{document} {\centering     Top     \vfill     Bottom  } \end{document}   Result as expected:    The same is true for flushleft and I therefore think it might be expected behaviour, but would like to understand how to prevent it and use the correct approach.

After reading this question , I want to know the answer of the following.  When should we use \begin{center} instead of \centering?  For example, should we use this one?  {% \centering <other contents> }   or this one?  \begin{center} <other contents> \end{center}


I have the following PHP code to run a MySQL query: $stmt = $pdo->prepare('SELECT * FROM my_table WHERE first_row = :first_row AND second_row LIKE "%:second_row%"'); $stmt->execute(array(':first_row' => "foo", ':second_row' => "bar"));   PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /home/kd37875/public_html/my_file.php:5  Why that?

Here's my attempt at it:  $query = $database->prepare('SELECT * FROM table WHERE column LIKE "?%"');  $query->execute(array('value'));  while ($results = $query->fetch())  {     echo $results['column']; }


need to enum all points on a line between two points defined by coords p1(x1,y1) p2(x2,y2) which count of digit numbers are equal to predefined number:  e.g. take a points   with two digits only   (1.234456, 2.345567) - not meets a requirement    (2.34, 5.4)           - meets a requirement  (3.45,6.67567567567)  - not meets the requirement  this looks clear in terms of arithmetic.  1. find a function for that line like y = A*x + B  2. go throu all X numbers between first and second points with a step of 0.01 and check that Y is also having two digits.  but the problem is in understanding e.g. number : 5.54999999 - doesn't really accept my requirement  or just wrong representation of 5.55?  any idea how to solve the problem?

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


Recenly I started experimenting with Ubuntu on my laptop (HP Pavilion X360). I chose the newest Ubuntu Gnome, because it's my favourite desktop environment. It looks really great for me, but there are some issues.  I left my laptop powered on few times. There are no "critical battery status" power options in my settings. But I think it should not recovering journal and start from 1% after plugging in to the wall.  What can I do to force my computer to hibernate or power off if battery is at, for example, 10%?  Thanks!    Excuse me, I do not think that my question is duplicate, as marked by moderator. My question is about making computer to perform ANY action and not let battery go to complete zero. And linked question is about changing behavior - sleep instead of shutdown.  My computer does not even shutdown. Does not hibernate. Just goes out of power and turns off.

I accidentally clicked on the option "When power is critically low" under System Settings>Power. The original entry was blank, but the only two options after I clicked were Hibernate and Shutdown. I want to set it back to Suspend.


I use Opemshift to host my Wordpress site. I use a custom domain name for my site. I have also added an alias for www.example.com.  I use Cloudflare for DNS and I have created a CNAME record for www.example.com to wp-myapp.rhcloud.com as instructed on the Openshift docs.  While my naked domain name works, example.com, prefixing it with 'www' leads to an infinite waiting mode.

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


A few days ago, my computer WiFi was getting interrupted. Because of this, I connected the modem directly to the computer. But I still had a problem connecting to the Internet, and sometimes my connection to the Internet was interrupted. So I decided to remove the Gnome Network Manager and install WICD instead. Currently, my connection problem is fixed, but Ubuntu sometimes install Gnome Network Manager and I have the same problem again. How can I prevent Ubuntu from installing the Gnome Network Manager? Here are the commands that I use to remove Gnome Network Manager.  sudo apt-get remove network-manager network-manager-gnome sudo dpkg --purge network-manager network-manager-gnome   I run the last command after installing WICD and rebooting.

I'm using Ubuntu 18.04.1 LTS. I want to disable network manager on an Ubuntu machine, because (1) I don't need it, (2) I prefer having hardcoded configuration, and (3) network manager regularly causes issues by changing the DHCP configuration. I tried to follow :  Stop network manager sudo systemctl stop NetworkManager.service  Disable network manager (permanently) to avoid it restarting after a reboot sudo systemctl disable NetworkManager.service   Despite this, the network manager is back again every time I reboot the machine. How can I make it go away?


I have a doubt whether 'His mathematics is bad' is correct or 'His mathematics are bad' is correct ?

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


Can I say:  There is a shop, market and pharmasy.  I have a car, house and swimming pool.  I mean, could I sometimes not duplicate articles a/an. If yes, then when?

What does applying the indefinite article to a group of things signify?   Inside the box was a pen, pencil and eraser.  Inside the box was a pen, a pencil and an eraser.    Or, perhaps #2 is ungrammatical and you can only use #1?


I'm reading Dummit&Foot and got stuck at page 290. Let O be a quadratic integer ring and $\pi$ be prime in O. Then $(\pi)\cap \mathbb{Z} =pZ$ for some prime integer. Since $p\in (\pi)$ we have $p=\pi \pi'$. So $p^2=N(\pi)N(\pi')$. Assume that $N(\pi)=\pm p^2$. Then $N(\pi')=\pm 1$ so $\pi'$ is a unit and $p=\pi$ (up to assoicates) is irreducible in $\mathbb{Z}[i]$.  Why $\pi$ is irreducible?  If we consider the case where $p=\pi$, then $p$ is not always irreducible. For example, $p=2=(1+i)(1-i)$ and none of these factors are units, because their norms are $1^2+1^2=2$. So what am I missing?

I'm trying to understand a proof of  which says that in a integral domain every prime element is irreducible:    I didn't understand why this implication $p=ab\implies p|a$ or $p|b$, is not the contrary $p=ab\implies a|p$ and $b|p$ ?  I'm a little confused  Thanks in advance


I understand that it is a string comparison, however i dont understand how "abc" & "123" are compared against each other. Thanks in advance!

In bash manual, Section 6.5 Shell Arithmetic says  <= >= < > comparison == != equality and inequality   && logical AND || logical OR   Their meanings seem to imply they are used for conditional expressions. But they appear in the section for arithmetic expressions.   So can they be used in conditional expressions?  In Section 6.4, we already have operators for conditional expressions, which are similar to <=,>=,<,>,==,!= for arithmetic expressions:     arg1 OP arg2      OP is one of ‘-eq’, ‘-ne’, ‘-lt’, ‘-le’, ‘-gt’, or ‘-ge’. These   arithmetic binary operators return true if arg1 is equal to, not equal   to, less than, less than or equal to, greater than, or greater than or   equal to arg2, respectively. Arg1 and arg2 may be positive or negative   integers.   We also already have operators for  conditional expressions, which are similar to && and || for arithmetic expressions:   -a and -o for test i.e. [...] && and || for [[...]].   Since we have the operators introduced for conditional expressions, why do we need those similar operators introduced for arithmetic expressions? Can they be used in test commands?  We know that if is followed by a test command     The syntax of the if command is:  if test-commands; then consequent-commands; [elif more-test-commands; then more-consequents;] [else alternate-consequents;] fi    [...] and [[...]] both take conditional expressions within and create test commands. Can they take arithmetic expressions?  What makes me even confused is when [...] and [[...]] with arithmetic expressions in them are used as test command, [...] behaves incorrectly, while [[...]] correctly:  $ if [ 1 > 2 ]; then echo h; else echo b; fi h $ if [ 1 < 2 ]; then echo h; else echo b; fi h $ if [[ 1 < 2 ]]; then echo h; else echo b; fi h $ if [[ 1 > 2 ]]; then echo h; else echo b; fi b


I've got a doubt with the below code. any help will be appreciable.  class Test {      static void test(List<Object> obj) {         obj.add(5);         obj = new ArrayList<>();     }      public static void main(String[] args) {          List<Object> list = new LinkedList<>();         list.add(10);         System.out.println(list);         test(list);         System.out.println(list);     } }   what will be the content of list object after test method returned to main method?    Expected Output:  [10]  [] //empty  since we are creating a new arraylist object in the same list reference which is passed to test method from main method.  Actual Output :   [10] [10, 5]  could please explain this?

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


I am using Wordpress 3.3.1 and building a small API to be able to send an SMS to insert data.  <?php  /**  * Template Name: API: Response  *  */  print_r('hello');  ?>   The following $_POST variables are being sent from the SMS provider  $_POST['message'] $_POST['from']   When using $_POST['message'], $_GET['message'] or $_REQUEST['message'] Wordpress gives me a 404. Works like a charm when using $_POST['_message'].  Any ideas? Can't find it in the reserved taxanomies.

I have a problem with my page. I'm trying to make a "Contact Us" page. It's working perfectly fine design-wise. But when I try to send the form to the same page as origin. It returns 404 error.  It only happens when I'm sending the form. I've tried both with GET and POST requests. Nothing seems to work.  I've even commented out the PHPMailer part. It's caused entirely by the extra variables.  If it helps anything, they're "name", "email" and "message".


Do i need to escape characters when inserting into prepared statements? Do prepared statements escape the code for me?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


To,  The Competent Authority,  Subject: Application for the Commercial Meter  with due veneration and most humbly it is requested to your kind-self that I the undersigned being a representative of the Company is hereby applied for the commercial electricity meter. it is further requested that kindly issue directions to the concerned quarter for the subject purpose. Your timely favourable action in this regard will be highly solicited.   HR/Admin Manager Muhammad Saleem Bhatti Al-Ghani Group of Companies

Specifically, in F. Scott Fitzgerald's 'The Great Gatsby':     With the influence of the dress her personality had also undergone a change.   The phrase "With the influence of the dress" is known as a 'prepositional phrase', but is there a specific term for the preposition starting a prepositional phrase? If so, what is this language technique?


Suppose an enemy casts Time Stop and then makes an attack against me, rolling a 20 to hit against my 16 AC. Normally, I could cast Shield to cause this attack to miss. And of course, this attack also ends the Time Stop. So, does time start flowing "soon enough" for me to cast Shield against the attack that ends the Time Stop spell?

Say a character casts  on themselves. While the spell is active, they target another creature with a spell (thus ending the time stop). Can that targeted character make a reaction to the spell?   For instance, if the caster of time stop then cast finger of death at the enemy, could the enemy:   Counterspell it? Try to reduce the damage from it? Retaliate using hellish rebuke?


Suppose that $\{p_n\}$ is an arbitrary positive sequence that $\lim\limits_{n\to\infty} p_n=+\infty$. How to prove that $\lim\limits_{n\to\infty}\left(1+\dfrac{1}{p_n}\right)^{p_n}=e$?

What would be the nicest proof of the following theorem:  If $\lim\limits_{n \rightarrow \infty} a_{n} = \infty$, then $\lim\limits_{n \rightarrow \infty} \left(1 + \frac{1}{a_{n}} \right) ^ {a_{n} } = e$. If $\lim\limits_{n \rightarrow \infty}b_{n} = 0$, then $\lim\limits_{n \rightarrow \infty} \left(1 + b_{n} \right) ^ {\frac {1} {b_{n}} } = e$.  I somehow failed to find a proof here on the website and in the literature.


I have set Seamonkey as default browser within Seamonkey and under preferred applications.  Yet apps that have a help section always use Firefox to go to their help website.  Any way to stop that?  $ sudo update-alternatives --config x-www-browser There is only one alternative in link group `x-www-browser` (providing `/usr/bin/x-www-browser`): `/usr/bin/firefox`. Nothing to configure.     Ubuntu-Mate 16.04 LTS Xenial Mate Desktop    Update in response to request:  update-alternatives --get-selections | grep -i browser gnome-www-browser auto /usr/bin/firefox  infobrowser auto /usr/bin/info  x-www-browser auto /usr/bin/firefox

How do I set the default program that I use?  I have tried to open System Info → Default Program → change my program, but it won't work,  Any idea? Or should I use Terminal?   I want to replace the default movie player with VLC media player, because the current movie player is useless to me.


I Was watching one of the actually good movies. In one of the scenes the grandpa tries to "preach" the teens.    Its not very obvious but for some reason the chair and the granpa looks like inflated while rest of the scene looks "smaller" . Why exactly?

I am looking for a prime lens to pick up, and I'm wondering if there is any difference between 35mm and 50mm in terms of the end product if I just stand back more with the 50mm. I use the Sony a6000 and am looking at the SEL50F18 and SEL35F18.  I understand that something like a fish eye lens will give a different effect, but is that what is going on in 35 vs 50mm? Or is 50mm effectively just taking a 35mm and cropping the center out (but with increased quality)?


Trying to figure out how to rotate the cube as a whole while it being solved with the separate sub cubes

I am animating a Rubik's cube, and as soon as I get to the second rotation the blocks that have previously been rotated start tripping out even though it should have been reset. I tried making the graph linear which fixed a lagging issue I had, but the blocks still start to spin instead of rotating around a single axis.


I need to store specific number of spaces in a variable.  I have tried this:  i=0 result="" space() {     n=$1     i=0     while [[ "$i" != $n ]]     do         result="$result "         ((i+=1))     done }  f="first" s="last" space 5  echo $f$result$s   The result is "firstlast", but I expected 5 space characters between "first" and "last".  How can I do this correctly?

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


Using SHA-256 I created a 32 length byte array that I have no problem converting to a String using           StringBuilder sb = new StringBuilder();         for(int i = 0; i < byteArray.length; i++){             sb.append(String.format("%02X", byteArray[i]));         }         String str = sb.toString().toLowerCase();   However, I am having trouble converting the resulting 64 character String back into a 32 byte array. How should I proceed?

I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array.  I couldn't have phrased it better than the person that posted .  But to keep it original, I'll phrase it my own way: suppose I have a string "00A0BF" that I would like interpreted as the  byte[] {0x00,0xA0,0xBf}   what should I do?  I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple.


Recently I've decided to remove windows completely and just use linux. For the past couple of months I've noticed the entire system freezing completely and my laptops fans start to spin really loud, I assume this is because of a kernel panic because it doesnt just happen with ubuntu it also happens on LM, arch, any distro really.  I checked acer's website and my bios version is 2.11 but the latest is 2.14 which includes some updated micro code for intel or something ? So I think updating the bios might help the only issue is I don't use windows and dont want to install it on my pc ...  I've tried booting into the windows 8 install disc that came with my pc but i cant find my usb drive inside cmd( I thought it would be best to just run cmd and open the exe file for updating the BIOS that way.)  Any help is much appreciated.

I want to update the BIOS on Toshiba QOSMIO-G30. The exe file that I downloaded from the manufacturer web site is supposed to be Operating System independent! Yet using Wine I could not execute the file to FLASH System BIOS. Is there any way to update the BIOS in Ubuntu?


A friend of Mine gave me a system of two equations and asked me to solve them $\rightarrow$  $$\sqrt{x}+y=11~~ ...1$$ $$\sqrt{y}+x=7~~ ...2$$  I tried to solve them manually and got this horrendously complicated fourth degree equation $\rightarrow$  $$\begin{align*} y &= (7-x)^2 ~...\mbox{(from 2)} \\ y &= 49 - 14 x + x^2 \\ \implies 11&= \sqrt{x}+ 49 - 14 x + x^2 ...(\mbox{from 1)}\\ \implies~~ 0&=x^4-28x^3+272x^2-1065x+1444 \end{align*}$$   Solving this wasn't exactly my piece of cake but I could tell that one of Solutions would have been 9 and 4   But my friend kept asking for a formal solution.  I tried plotting the equations and here's what I got $\rightarrow$    So the equations had two pairs of solutions (real ones).  Maybe, Just maybe I think these could be solved using approximations.  So How do i solve them using a formal method (Calculus,Algebra,Real Analysis...)   P.S.  I'm In high-school.

I want to solve this system of equations, I have been out of Maths for a long!!  $$\sqrt{x}+y=7$$  $$\sqrt{y}+x=11$$  Just wondering easiest step to find values for $x$ and $y$ from the above equations?


I have been playing for a couple of days now (during which I've grown addicted) and I don't seem to know what to do from where I am. I have full Meteor Armor and some other good items (good to me that is) such as the Space Gun and the Butcher thing. I have killed the Eye of Cthulu (Several Times), Skeltron (Around 3 Times), and that's it although I know I could kill the Queen Bee, Brain, EOW, etc. I don't really feel like doing that because it consists of no challenge. Anybody have any tips on where to go from here?

I'm kind of stuck in Terraria. I have full silver armor and 12 hearts (gold/silver gear).  I have just killed the Eye of Cthulhu.  I was thinking about gathering gold armor, but gold is damn scarce. I have tried searching for floating islands (at 406 altitude) but if I go to far I get attacked by Harpies, and I can't build a sky bridge and fight them at the same time.  My meteorite landed in corruption and it's impossible to collect it (I get swarmed by meteor heads with no way to run).  So what is the most natural progression? Should I try and find gold (where?), try to kill the Eater of Worlds, try to mine meteorite or try to fight off imps and collect some hellstone?


Error:                                                                                java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kritisharan.tictactoe/com.example.kritisharan.tictactoe.starter_activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   Code in MainActivity:  public class MainActivity extends AppCompatActivity {  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.content_main);      FloatingActionButton reset = (FloatingActionButton) findViewById(R.id.reset);      reset.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View view) {             startActivity(new Intent(MainActivity.this, MainActivity.class));         }     }); }   XML Code in activity_main.xml  <include layout="@layout/content_main"/>  <android.support.design.widget.FloatingActionButton     android:id="@+id/reset"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="bottom|end"     android:layout_margin="10sp"     android:src="@android:drawable/ic_menu_revert"/>   Don't know why it is considering a null reference. Searched all the solutions but couldn't find anything that works. Please help.

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?


Two slackware 14.2 systems,ssh is 7.9p1.  On local system  mkdir -p -v "I want to create long dir name with spaces" mkdir: directory 'I want to create long dir name with spaces' created   And is OK  On remote  ssh remote mkdir -p -v "I want to create long dir name with spaces" mkdir: created directory 'I' mkdir: created directory 'want' mkdir: created directory 'to' mkdir: created directory 'create' mkdir: created directory 'long' mkdir: created directory 'dir' mkdir: created directory 'name' mkdir: created directory 'with' mkdir: created directory 'spaces'   Why?  I have tried using ' instead of " and  ssh remote mkdir -p -v 'I want to create long dir name with spaces'   Exit with 0(success) but no dir created

I often end up issuing complex commands over ssh; these commands involve piping to awk or perl one-lines, and as a result contain single quotes and $'s.  I have neither been able to figure out a hard and fast rule to do the quoting properly, nor found a good reference for it.  For instance, consider the following:  # what I'd run locally: CMD='pgrep -fl java | grep -i datanode | awk '{print $1}' # this works with ssh $host "$CMD": CMD='pgrep -fl java | grep -i datanode | awk '"'"'{print $1}'"'"   (Note the extra quotes in the awk statement.)  But how do I get this to work with, e.g. ssh $host "sudo su user -c '$CMD'"?  Is there a general recipe for managing quotes in such scenarios?..


Suppose the infinite series $\sum a_n$ converges ($a_n \in \mathbb{R}$ not all positive or negative).  (1) Is it true that $\sum a_n^2$ converges?  (2) Is it true that $\sum a_n^3$ converges?  For (1), the answer is no. I found the counterexample $a_n = (-1)^n / \sqrt{n}$ which converges by alternating series, but $\sum a_n^2 = \sum1/n $ is divergent.  I'm unsure about proving truth of (2) and can't seem to find a counterexample.  Thanks for help.

Per the title, if $\sum_{1}^{\infty}(a_n)^3$ diverges, does this imply that $\sum_{1}^{\infty}(a_n)$ diverges?   I'd appreciate hints (!) for dealing with this excercise.  EDIT Per the contrapositive, it is not given that $a_n$ converges absolutely, or that it is nonnegative for all $n$.  Thank you!


Should I use   What fraction of the residents are married?  or  What fraction of the residents is married?  Technically, as fraction is singular, I would use the latter version. Am I correct?

This is from a recent article:     He was rushed to the hospital immediately and a battery of tests was   conducted.   Now shouldn't it be     He was rushed to the hospital immediately and a battery of tests were   conducted.   Which is correct and why is it correct? :)


Is it possible to dual boot Ubuntu 12.04.3 and Windows 8, both 64bit?

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


Because I shall have done all my exams by then, I'll have much more time next week.  Is this correct? Can we use "conjunction + shall" If so, when and how do we have to use it?

What does it mean and where would I use it?


I want to install ns3.33 simulator on my ubuntu 20.04.2LTS and when I run the command: apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev ipython I have these errors: Package ipython is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Unable to locate package python-pygraphviz E: Unable to locate package python-kiwi E: Unable to locate package python-pygoocanvas E: Unable to locate package libgoocanvas-dev E: Package 'ipython' has no installation candidate I have tried these commands, but the same problem: sudo apt update sudo apt install python-pip python3-pip sudo -H pip install ipython sudo -H pip3 install ipython How to solve this ?

When I used  pip install ipython   or  pip install "ipython[notebook]"   I get the following error:  Downloading/unpacking ipython   Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB downloaded Installing collected packages: ipython Cleaning up... Exception: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main     status = self.run(options, args)   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run     requirement_set.install(install_options, global_options, root=options.root_path)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1435, in install     requirement.install(install_options, global_options, *args, **kwargs)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 671, in install     self.move_wheel_files(self.source_dir, root=root)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 901, in move_wheel_files     pycompile=self.pycompile,   File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files     clobber(source, lib_dir, True)   File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber     os.makedirs(destsubdir)   File "/usr/lib/python2.7/os.py", line 157, in makedirs     mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/IPython'  Storing debug log for failure in /home/username/.pip/pip.log   What does this error mean? How do I fix it?


Though correlation doesn't imply causation I think there's a link between me hitting 10k rep and seeing this review count in the top bar:    It makes no sense at all and is always more than 200. This even happens when I reviewed 20 of almost each queue and certainly had nothing to review. The count doesn't add up even if I subtract 200 from the number.  What does the number exactly mean? If it's broken I'm gonna ad-block it because it harms my attention for no reason.

What is the actual source of the number displayed next to the review link in the top bar? I found  (via  and similar) but, and apologies if I'm being dense, the answer there didn't seem to have an explanation of where the specific number comes from.  I can't make any combination of task counts on /review (that are visible to me, at least) add up to the number in the top bar. I had thought that perhaps it was a count that just lagged a little behind the /review counts, but it changes often and quickly enough (and is so far off from the other numbers that I see on /review) that I can't imagine how this could be the case. Perhaps there are items or queues that I do not have the privileges to see, but I don't know what those are, and finding out what they are (if that's the case) is part of this question. I've also been told in chat that it is actually the


I have a page which changes the ID of input fields every time. So for example if I visit the page now, the ID can be "stack_15_overflow" and next time it can be "stack_293_overflow".   I want to use a wildcard value for getElementById, such as "stack_ * _overflow" (where * matches anything), to get that value related to any input field starting and ending with some specific text, no matter what text is in between.  Code:  function HelloId(string){     var name=string     document.getElementById('stack_*_overflow').value=name; }

I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.  I have looked for this myself but have been unable to find information on the syntax and how to use it. Does anyone know where the documentation for the syntax is?  EDIT: The attribute filters allow you to select based on patterns of an attribute value.


I have a data structure that relies on a parent/child model. The top level parent can have multiple children where they can also be parents. Here's an example of how things can look in the tree: 900107     --> 200237             --> 100112             --> 100113     --> 200238             --> 100114             --> 100115                 --> 100120                     --> 100001                     --> 100002 --> 200239 --> 200501 --> 300112 --> 400987 --> 444444  In this example, 900107, 200237, 200238, 100120 are all parents where 900107 is going to be our grandparent. Here's how it looks in the table: ParentPart   Component 900107       200237 900107       200238 900107       200239 900107       200501 900107       300112 900107       400987 900107       444444 200237       100112 200237       100113 200238       100114 200238       100115 100120       100001 100120       100002      I have a recursive CTE that will get me all of the parents and children, but not the "grandkids" or "great grandkids" if they exist. Here's my CTE: CREATE TABLE #Hierarchy ( ParentPart NVARCHAR(6), Component NVARCHAR(6))  INSERT INTO #Hierarchy (ParentPart, Component) VALUES ('900107', '200237'),        ('900107', '200238'),        ('900107', '200239'),        ('900107', '200501'),        ('900107', '300112'),        ('900107', '400987'),        ('900107', '444444'),        ('200237', '100112'),        ('200237', '100113'),        ('200238', '100114'),        ('200238', '100115'),        ('100115', '100120'),        ('100120', '100001'),        ('100120', '100002')   ;WITH hier AS ( SELECT ParentPart AS MainPart, ParentPart, Component   FROM #Hierarchy UNION ALL SELECT hier.MainPart, p.ParentPart, p.Component   FROM hier    JOIN #Hierarchy AS p     ON p.Component = hier.ParentPart )  SELECT ParentPart      , Component   FROM hier     ORDER BY ParentPart, Component  OPTION (MAXRECURSION 0)  This works for the most part....I can get this if I use one ParentPart. We have thousands of ParentParts and we'd need to know who the grandparent is. Ideally we'd want the output to look like this where the parent part is the grandparent and every child and grand child is in the component field ParentPart    Component 900107        200237 900107        200238 900107        200239 900107        200501 900107        300112 900107        400987 900107        444444 900107        100120 900107        100112 900107        100113 900107        100114 900107        100115 900107        100001 900107        100002  What would be the best way to do this?

Given a hierarchical table like this:  CREATE TABLE [dbo].[btree] (   id INT PRIMARY KEY , parent_id INT REFERENCES [dbo].[btree] ([id]) , name NVARCHAR(20) );   I would like to obtain the whole tree structure.  For instance, using this data:  INSERT INTO [btree] VALUES (1, null, '1 Root'); INSERT INTO [btree] VALUES (2,    1, '1.1 Group'); INSERT INTO [btree] VALUES (3,    1, '1.2 Group'); INSERT INTO [btree] VALUES (4,    2, '1.1.1 Group'); INSERT INTO [btree] VALUES (5,    2, '1.1.2 Group'); INSERT INTO [btree] VALUES (6,    3, '1.2.1 Group'); INSERT INTO [btree] VALUES (7,    3, '1.2.2 Group'); INSERT INTO [btree] VALUES (8,    4, '1.1.1.1 Items'); INSERT INTO [btree] VALUES (9,    4, '1.1.1.2 Items'); INSERT INTO [btree] VALUES (10,   5, '1.1.2.1 Items'); INSERT INTO [btree] VALUES (11,   5, '1.1.1.2 Items'); INSERT INTO [btree] VALUES (12,   6, '1.2.1.1 Items'); INSERT INTO [btree] VALUES (13,   6, '1.2.1.2 Items'); INSERT INTO [btree] VALUES (14,   7, '1.2.2.1 Items');   I would like to obtain:  +----+-----------+---------------------+ | id | parent_id | description         | +----+-----------+---------------------+ |  1 |    NULL   | 1 Root              | |  2 |     1     |   1.1 Group         | |  4 |     2     |     1.1.1 Group     | |  8 |     4     |       1.1.1.1 Items | |  9 |     4     |       1.1.1.2 Items | |  5 |     2     |     1.1.2 Group     | | 10 |     5     |       1.1.2.1 Items | | 11 |     5     |       1.1.2.2 Items | |  3 |     1     |   1.2 Group         | |  6 |     3     |     1.2.1 Group     | | 12 |     6     |       1.2.1.1 Items | | 13 |     6     |       1.2.1.2 Items | |  7 |     3     |     1.2.2 Group     | | 14 |     7     |       1.2.2.1 Items | +----+-----------+---------------------+   I'm fetching records using a recursive query like this:  ;WITH tree AS (     SELECT c1.id, c1.parent_id, c1.name, [level] = 1     FROM dbo.[btree] c1     WHERE c1.parent_id IS NULL     UNION ALL     SELECT c2.id, c2.parent_id, c2.name, [level] = tree.[level] + 1     FROM dbo.[btree] c2 INNER JOIN tree ON tree.id = c2.parent_id ) SELECT tree.level, tree.id, parent_id, REPLICATE('  ', tree.level - 1) + tree.name AS description FROM tree OPTION (MAXRECURSION 0) ;   And this is the current result:  +----+-----------+---------------------+ | id | parent_id | description         | |  1 |    NULL   | 1 Root              | |  2 |     1     |   1.1 Group         | |  3 |     1     |   1.2 Group         | |  6 |     3     |     1.2.1 Group     | |  7 |     3     |     1.2.2 Group     | | 14 |     7     |       1.2.2.1 Items | | 12 |     6     |       1.2.1.1 Items | | 13 |     6     |       1.2.1.2 Items | |  4 |     2     |     1.1.1 Group     | |  5 |     2     |     1.1.2 Group     | | 10 |     5     |       1.1.2.1 Items | | 11 |     5     |       1.1.1.2 Items | |  8 |     4     |       1.1.1.1 Items | |  9 |     4     |       1.1.1.2 Items | +----+-----------+---------------------+   I can't figure out how to order it by levels.   Is there a way to set a rank for each sub-level?  I've set up a


I need to prove the following question  Question  Let $g(z)$ be an entire function such that there exists an $\alpha > 0$ such that $\left|\operatorname{Im}(g(z))\right| \le \alpha$. Prove that $g(z)$ is a constant function.    My first thought was to use Liouville's theorem. As that states, for an entire function $g$, if $g$ is bounded, then $g$ is constant.  So if we could prove that $g$ is bounded, then by Liouville's theorem, $g$ is constant.  I have attempted to prove that $g$ is bounded, but I am struggling. Some help would be much appreciated.

Greets  This is exercise 15.d chapter 3 of Stein & Shakarchi's "Complex Analysis", they hint: "Use the maximum modulus principle", but I didn't see how to do the exercise with this hint rightaway, instead I knew how to do it with the Casorati-Weiestrass Theorem, here is my answer:  Define $g(z)=f(1/z)$ for $z\neq{0}$,then by the hypothesis we must have that for any $\epsilon>0$ $g(D_{\epsilon>0}(0)-\{0\})$ is not dense in $\mathbb{C}$, then the singularity at $0$ of $g$ is not essential, this implies $f$ must be a polynomial, but if $f$ is a non-constant polynomial, it is easy to see that its real part must be unbounded, so $f$ must be constant.  I would like to know an answer with the the maximum modulus principle.  Thanks