Why are switchers more efficient than linear regulators?

It is well-know that switching regulators are more efficient then linear regulators.  I also know that linear regulator have to dissipate the difference between the input voltage and output voltage times the current as heat.  But why does this not apply to switching regulators with the same conditions: same input voltage and output voltage and current?  I know switchers can get hot; I have one on a board that gets so hot you can barely touch it, but then again it's only 2 1/2 millimeters on each side and looks like an ant compared to a through-hole 7805 with its heat sink.


Searching for single Layer in Layers Panel of QGIS?

I'm working on a project that requires a lot of layers.   Because of this, even if i make different folders, it's sometimes hard to find the layers I want.  Is there a way to simply write a keyword somewhere to find (or highlight) the layer I want in the layers panel?  Is there a plugin for this?  For Example: I want to find the layer "Layer-Orange".   Where can I write "Orange" to find the specific layer?


How to do seperate render passes in blender?

I a lot of VFX breakdown that uses something they call "render passes". From what I see, they are rendering the clip in seperate ways (like rendering the ambient occlusion, specular, shadows, depth of field, etc individually and then combine it). Is there any way I can do this?


We have the series $\sum_{n=1}^\infty nx^n$. The ratio test tells us simply the series is convergent when $|x|<1$ and divergent when $|x|>1$. Of course, when $|x|=1$, the series is $\sum n$ or $\sum -n$, which are obviously divergent. Thus, this series is convergent if and only if $-1<x<1$.  The difficulty comes when we want to find another expression of the function to which this series converges. When I first tried this exercise, I integrated the series, obtaining an antiderivative with no infinite sums, and then  differentiated the result: $$\int\sum nx^n dx=\int x\sum nx^{n-1} dx$$ $$u=x\implies du=dx$$ $$dv=\sum nx^{n-1} dx \implies v=\sum\int nx^{n-1} dx=\sum x^n=\frac{x}{1-x}$$ $$\int\sum nx^n=\int x\sum nx^{n-1}=\frac{x^2}{1-x} -\int\frac{x}{1-x} dx=...$$  The rest are basic calculations. However, I've been told there's are more direct approach to this exercise, finding an easy expression of the partial sums. I hope you can help me find this other way.


Is it possible to customise the ‘fixed’ controls at the top of Control Center?

iOS 11 provides the ability to customise the lower toggle controls in Control Center (show/hide and rearrange) from Settings → Control Center.  Is it possible to customise the other controls at the top of Control Center, showing/hiding or rearranging toggles and controls?


How do we use zero conditional and first conditional to talk about things in the past

Important: I also posted this question on English Learner Stack Exchange and set a bounty. (Link: ) But apparently, this question is too complex for the learner community, so I posted it here. If you are interested in getting a bounty, you can go there and help answer it.  Enter the reasons why I asked: From my understanding, zero conditional is used to talk about facts or habitual stuff, and the first conditional is used to talk about a specific event or case. (Source: ) I am wondering how to use zero and first conditional when talking about things in the past. Do we just need to backshift the verbs and modal verbs? I came up with some examples below.  My examples: Example 1 - zero conditional in the past to talk about a general fact)  When I was young, my parents were strict with me. Unless I received good scores in school, they didn't allow me to play video games.  Example 2 - first conditional in the past to talk about a specific event)  I once played a truth-or-dare game with my friends and sister. My sister ended up sharing a lot of secrets with us. She wanted me to keep her secrets. As long as I kept her secrets, she would reward me by telling our parents that I did well in school.  Example 3 - first conditional in the past about to talk about a specific event)  A Few years ago, I met a lovely girl at the beginning of school. Unless I talked to her, I would not have a chance to make friends with her. So I talked to her.   My questions: Question 1:  In my examples, I used "would" when it is first conditional and simple past when it is zero conditional. Are my examples correct? Do we just need to backshift the verbs and modal verbs?  Question 2:  When using zero and first conditional in the past, do we also use zero conditional to talk about general or habitual stuff and first conditional to talk about a particular case?


I'm running Ubuntu 14.04 on a laptop with an nVidia 850m. I installed proprietary drivers and bumblebee and everything worked fine for weeks.  I have a black screen on boot. I tried reconfiguring Xorg but I receive an error message  Missing output drivers. Configuration failed.   What could I do?


How passively monitor for tcp packet loss? (Linux)

How can I passively monitor the packet loss on TCP connections to/from my machine?  Basically, I'd like a tool that sits in the background and watches TCP ack/nak/re-transmits to generate a report on which peer IP addresses "seem" to be experiencing heavy loss.  Most questions like this that I find of SF suggest using tools like iperf.  But, I need to monitor connections to/from a real application on my machine.  Is this data just sitting there in the Linux TCP stack?


I'm getting a new computer soon and I want to know how to get a backup of my Ubuntu system, and transfer it over to my new computer? How do i do that?


The search is *incorrectly* returning a *no results* message

Steps to reproduce:   Click on StackOverflow icon   Click on popular tab   Click to sort by votes   Click to show all time     I could manually reproduce that every time I tried.  The following is a print screen of the message shown after going through the steps:    And if I subsequently do a F5 refresh, it works.  And considering the fact that I clicked on all time option, it makes me think that what happened, actually, was a timeout.  If my guess is right, I think that . So, while resolving the performance issue (therefore,  avoiding the timeout), a proper timeout message and a link to refresh the page would be a perfect fallback.  Note that it might not related to timeout - it was just a guess on the issue - it could, for example, be some weird caching problem due to current . Anyway, it still seems to be a bug.


wrapping long equation using square stretched bracket

How do we split long equation in which a command \left[ and \right] is used? My equation is as follow  \begin{align} \begin{split} z &=-2Re\left[B^\ast\left(\frac{1}{2}\sum_{k=0}^{N}\alpha_k\zeta^{1-k}\left(1-is_1\right)+\alpha_k\frac{1}{\zeta^{1-k}}\left(1+is_1\right)+\beta_k\zeta^{1-k}\left(i+s_1\right)+\beta_k\frac{1}{\zeta^{1-k}}\left(s_1-i\right)\right)\\ &+\left(B^{\prime\ast}+iC^{\prime\ast}\right)\left(\frac{1}{2}\sum_{k=0}^{N}\alpha_k\zeta^{1-k}\left(1-is_2\right)+\alpha_k\frac{1}{\zeta^{1-k}}\left(1+is_2\right)+\beta_k\zeta^{1-k}\left(i+s_2\right)+\beta_k\frac{1}{\zeta^{1-k}}\left(s_2-i\right)\right)\right] \end{split} \end{align}   LaTeX complains because the \left[ and \right] command are now separated by the \\. I am also using split command, unlike other identical post.  I am using \usepackage{amsmath}  I use \left[ and \right] because I must stretch the bracket; unless there is another way to do it. Could anyone help me, please?


If someone from Russia is leaving to visit the US, do they need plane tickets before they get a visa?

If someone from Russia is leaving to visit the US, do they need plane tickets before applying for a visa?


The system cannot find the file specified (error)

I have been using Windedt with Texlive since many days. But I stopped using it for a while, and when I now compile a tex file, its giving error "The system cannot find the file specified". I don't know wats wrong. I have used this before. I tried re-installing Winedt, no use. I have recently changed the System Path for installing some software. Has it affected in anyway?? Please help me.


Irreducible polynomials over $\mathbb Q$ and $\mathbb Z $

When I read "Contemporary Abstract Algebra" by Joseph gallian, under the topic irreducible polynomials, his first example is the  polynomial $$2x^2+4=0$$ is reducible over $\mathbb  Z$ but irreducible over $ \mathbb Q$. I dont know how is this possible? Since it is of degree 2, we can see the roots of the polynomial, where it lies? if it lies in $\mathbb Z$ then it would lie in $ \mathbb Q$, then how can it be reducible over $\mathbb Z$ when the roots are complex numbers? pls explain


Normal lens on cropped sensor camera and distortion

I'm a novice on photography, so I hope I can explain myself clearly. I have a Nikon D5100 (cropped DX sensor) with kit lens, 18-55mm. I'd like to buy a normal prime lens, getting faster shutter speeds, greater aperture and overall better "normal" photo quality. Given my cropped sensor camera, a 35mm would probably be the best focal length to look for, as far as my research goes (50mm, some would argue).  And now it's when my speculation comes in: the distortion I get from moving away from normal focal lengths I suppose is mostly a factor of the focal length itself, not the sensor size. If I get a FX 10mm lens on my camera, it would give a 15mm field of view, but the fish eye distortion would remain the same, even if giving me just a smaller portion of the picture I'd get with a full frame sensor and hence not showing the more distorted outer edges, isn't it? Does that mean that with such 35mm DX lens I'll get a normal field of view and at the same time a slight fish eye distortion? And that a fully "normal" photo (field of view and minimal distortion) would only be obtained with a 50mm FX camera or a 50mm DX while standing far away from my subject?


changing the original object inside two different functions in java

I am new to java. I have created the following two classes for adding cities (partial code has been shown here):  public class TourManager {  // Holds our cities private static ArrayList destinationCities = new ArrayList<City>();  // Adds a destination city public static void addCity(City city) {     destinationCities.add(city); } }  public class Tour{  // Holds our tour of cities private ArrayList tour = new ArrayList<City>();  // Constructs a blank tour public Tour(){     for (int i = 0; i < TourManager.numberOfCities(); i++) {         tour.add(null);     } }  public ArrayList getTour(){     return tour; }  }   Now I have created the following two tour class objects:  Tour currentSolution = new Tour(); Tour newSolution = new Tour(currentSolution.getTour());   I have declared  two functions as follows:  void Fuction1(Tour newSolution); void Fuction2(Tour newSolution);   I want to pass the newsolution object as an argument to the above two  functions so that we can manipulate the original object inside both of these functions  So, truly speaking, I want to pass the value by reference. Now If I pass it in the following way:  Function1(newsolution); Function2(newsolution);   Will it change the original object inside both of these functions? If not, then what is the proper way of doing this?


Is There Any Way to get the template Name By full URL for example  If the full url is  www.example.com/hello-world   I need a function that return the template name (page.php)  I know that WordPress matches every url with regular expression to determine the query and decide which template to include.  That's exactly what I need, a built in or (custom made) function that takes the URL and returns back the corresponding template


Prove the statement $\forall x\in\mathbb N (x > 1\to\exists k\in\mathbb N\exists m \in\mathbb N (m \equiv 1 (\text{mod }2) \wedge x = 2^km))$.

Can someone please show me how to prove this statement? $$\forall x\in\mathbb N (x > 1\to\exists k\in\mathbb N\exists m \in\mathbb N (m \equiv 1 (\text{mod }2) \wedge x = 2^km))$$ I can only assume $m = 3$ and when $x > 1$.


I am using a non-public class that has an option named english for setting up certain texts.  I wish to use babel for hyphenation and to specify the language (variant) as british.  However, \usepackage[main=british]{babel}  produces the warning  Package Babel Warning: The package option `english' should not be used  (Babel)                with a more specific one (like `british') on input line 4.  I get the same warning if I try \PassOptionsToPackage{main=british}{babel} before loading the documentclass. Here is a minimal working example using the article class instead: \documentclass[english]{article}  \usepackage[main=british]{babel}  \begin{document}  Some text.  \end{document}  What is the correct way to load babel with british when the document class uses english to set other document features that I need.


Does every protein starts with Methionine amino acid

During process of protein synthesis we need AUG Codon to start translation .As we know this codon codes for Methionine amino acid so can we say that every protein starts with Methionine amino acid ?


I'm trying to create a shortcut that will run a .sh file deep in some directory without having to navigating to the absolute path.  I have tried using aliases, which did not work as.  Using soft/hard links, they did not work too as there are certain dependencies in that directory which the shell script reference to.  Anyone has any idea how to ./ a file without having to traverse down that absolute path?  The alias I have tried is :   alias minecraft='/var/www/owncloud/data/admin/files/Spigot/start.sh'   I have tried the Path variant by adding PATH=/var/www/owncloud/data/admin/files/Spigot:"$PATH" into  ~/.bashrc.  Which then brings the message :  Error: Unable to access jarfile spigot.jar   I'm using a cli version of Ubuntu if it helps, so no Nautilus.


NullPointerException when calling PrimeFaces.current().ajax().update(...) from a bean on a CDI event

I want to update component from JSF bean . but receive NullPointerException :    java.lang.NullPointerException     at org.primefaces.PrimeFaces$Ajax.update(PrimeFaces.java:335)     at org.primefaces.PrimeFaces$Ajax.update(PrimeFaces.java:359)     at ir.moke.logmag.view.LogView.start(LogView.java:21)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)     at [internal classes]     at ir.moke.logmag.api.TestLog.addLog(TestLog.java:20)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.ibm.ws.jaxrs20.cdi.component.JaxRsFactoryImplicitBeanCDICustomizer.serviceInvoke(JaxRsFactoryImplicitBeanCDICustomizer.java:302)     at [internal classes]       this is my example code :   LogView.java  @SessionScoped @Named public class LogView implements Serializable {     private String name;      public void start(@Observes String name) {         this.name = name;         System.out.println("Receive : " + name);         PrimeFaces.current().ajax().update("form:log");     }      public String getName() {         return name;     } }    TestLog.java  @Path("/log") public class TestLog {      @Inject     private Event<String> event;      @POST     @Path("/add")     public Response addLog(String name) {         System.out.println("API " + name);         event.fire(name);         return Response.accepted().build();     } }   HTML  <h:body>     <h:form id="form">         <p:outputLabel value="Output : "/><br/>         <p:outputLabel id="log" value="#{logView.name}"/>     </h:form> </h:body>       I want to send message from rest api and update component on JSF page . How can fix this problem ?      My environment : Liberty 19.0.0.4 JavaEE 8 JSF 2.3


How much water can an object raise after its fall?

Suppose that there is a small object (e.g. hand sized) with volume $V$ and mass $m$ that falls into a water container from a height $h_0$ and with initial velocity $v_0$. Is there a way to compute the height $h_{\mathrm{water}}$ that the water will reach after the object impacts on it? What I mean is something like this: .


A question about a proposed "big bounce"

This may be a silly question, but it popped into mind while reading this article on Scientific American:   One of the early bits of evidence for Mirror Symmetry in string theory, as I understand, is that a compact circle of radius $R$ produces identical physics to one of radius $1/R$. So suppose that the macroscopic part of the universe were nevertheless compact (say for the sake of argument a 4-torus). Would one be able to produce a big bounce by having the universe shrink asymptotically to zero in size, with the bounce occurring as the radii reach $R = 1$?  (This is perhaps a silly question; I'm mixing pop-science articles with pop-science takes on string theory, which is probably bound to produce mostly poppycock. Still, I'm curious if there is any sense in what came to mind.)  Edit: My question is really more about whether or not this would provide a possible model for a big bounce, not whether or not the big bounce is a valid theory.


Javascript variable scope in anonymous function

I'm confused as to why the below will output "1".  If I use var to declare a in myFunc that should limit the scope of a to that function.   Calling "a" in the anonymous function (in the setInterval call) is a different function so why is that considered with the scope of myFunc?  Is it only because the function is anonymous? I would expect a to be available to another function unless bind() was used.  myFunc = function(){      var a = 1;      var int = setInterval(function () {          console.log(a);      }, 5);      }


My situation is the following:    I had a Visa issued from 20.9 till 20.12 for 90 days. I stayed in Croatia for 80 days, I went back to my country @ 20.12 and my visa has ended.   does the 90/180 still apply even if i issued a new visa as my last one has ended?  I called the embassy and they told me it is per visa so if my visa has ended, I am eligible to apply for a new visa and stay for the period specified in the new Visa regardless of the history of the old visa.  However my friends are telling me that it still applies regardless ir your visa has ended or not so the rule isn't per visa and I am now pretty confused as they said they may accept the visa however, the officer can refuse my entry.  Does anyone has a similar experience?!


Expected value of a variable that possibly decreases n times

Assume I have a program that executes the following pseudocode  x = 1 for 0 to n     y = random real in [0,1)     if y < x         x = y return x   What is the expected value of the return of this function wrt to n?  In english, set X to 1000.  Choose a random real in the half-open interval [0,1) n times, setting the minimum to X.  What is the expected value of X in terms of n?


I have this code but i would like the numbers to be printed next to one another but it doesn't do that it just prints down the screen instead of filling up the screen.  import random count=2 while count>0:    print(random.randint(0,1))


How does the Higgs field enable masses to attract each other?

Please refrain from quoting general relativity. I'd like to know whether the exchange of virtual Higgs bosons, which are responsible for giving particles their masses, can produce an attractive force between particles.  You may mention other virtual particles such as the graviton if it is helpful. This is really confusing me because I kept wondering how the momentum is transferred by the virtual particle presuming a virtual Higgs boson or a virtual graviton (theoretically).


I am using Ubuntu 16.04 for the first time. Software center shows only the apps that were installed by default. When I tried to install vlc, playforubuntu or any other app, it show no app found.  I have also tried using terminal but not successful.       As requested in comments, images of software home page:


What is a good way to harrass Bloodseeker in the middle lane?

Bloodseeker is a pain to lane against, because of his passive health regeneration whenever he last hits or denies a creep. I cannot harass him for too long before getting out of sight, because his Q deals decent damage over time (DOT) early game, and his ultimate has significant burst damage. After his ultimate, he will certainly start running towards me, and I die if I run or die if I stand still.   It is incredibly frustrating and I am at a loss about how to counter him.


I want a formula that will return a date that depends on the date in another cell, but modified by the day of the week of the date in that cell.   If cell A1 has a date value that is a Sunday, Monday, or Tuesday, I want cell A2 to return the date of the Friday before (e.g. if A1 is Monday 16 Oct 2017, A2 would return Friday 13 Oct 2017). If the date in cell A1 is Wednesday through Saturday then the date in cell A2 would be two days prior to the day (e.g. If A1 is Thursday 19 Oct 2017 then cell A2 would return a date of Tuesday 17 Oct 2017).   I want the formula to do all of the above calculations in one formula.


I need to calculate this $\int_{-\infty}^\infty \frac{sin(z)}{z}dz$ using the residue of $\frac{sin(z)}{z}$.  Then I write $\int_{-\infty}^\infty \frac{sin(z)}{z}dz$ = $\lim_{R\to\infty}Im(\int_{-R}^R \frac{e^{iz}}{z}dz+\int_{CR}\frac{e^{iz}}{z}dz)=2\pi i Res(\frac{e^{iz}}{z},0)$  where CR is the the half circunference of radius R>0 over the plane.  Then I need to show that $\lim_{R\to\infty}|\int_{CR}\frac{e^{iz}}{z}dz|=0$  Can someone help me?


while using hindi content in jsp , inside either in div or  tag.it is showing some different symbols at the place of my text. how can I use the hindi content in my jsp file.


What's a word used when you don's see flaws on a person, even when they are there?

I'm trying to remember a word, which definition I found on a movie if I remember correctly. The idea is to see someone as almost free of defects, even if those defects are there. It is what happens when someone is in love, thinking that everything the other person do is great. It is similar to bedazzled, but a false sense of it. I've been looking all over the internet and I just can't find it.  Thank you.


Canon Multifunctional MG3150 - printer OK, but scanning is NOT

Any ideas where the driver can be found or how to activate the scanner driver if it is hidden in the printer driver?


What are the advantages of partitioning a non-OS hard disk?

What's the advantage of keeping the sdb1 partition in a single 455 Gb? Is there any reason why I should divide it in more partitions?  Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors  Device     Boot     Start       End   Sectors   Size Id Type /dev/sda1            2048 233066495 233064448 111.1G 83 Linux /dev/sda2       233066496 250068991  17002496   8.1G 82 Linux swap / Solaris   Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors  Device     Boot     Start       End   Sectors   Size Id Type /dev/sdb1            2048 955283455 955281408 455.5G  7 HPFS/NTFS/exFAT /dev/sdb2       955283456 976773119  21489664  10.3G 82 Linux swap / Solaris


Exception in thread "main" java.lang.NullPointerException error keeps pointing to the get methods

private static void printReport(Country[] country) {          System.out.printf("%-25s%-16s%-10s%-18s%-17s%-14s\n",                 "Name", "Code", "Capitol", "Population", "GDP", "HappinessRank");          System.out.print("------------------------------------------------------------------------------------------------------");         System.out.println("");          for (Country b  : country) {             System.out.printf("%-26s%-17s%-7s%10d%8s%-18s%7d\n",                     b.getName(), b.getCode(), b.getCapitol(), b.getPopulation(), b.getGDP(), b.getHappinessRank());         }                }   Hey everyone! New to java programming,but I am stuck, I tried looking up how to fix it with no success.   What am I looking for? it keeps pointing at the b.getName(), b.getCode(), etc.  More of the code:  public static void main(String[] args) throws FileNotFoundException {     int maxCountries = 156;     Country[] countries = new Country[maxCountries];        String csvName = "Countries1.csv";     Scanner scanner = new Scanner(new File(csvName));     Scanner csvScan = scanner.useDelimiter("[,\n]"); {     System.out.println("Enter the File Name:"+csvName);     System.out.println("Amount of Countries Read:"+maxCountries);


How is Gauss' Law (integral form) arrived at from Coulomb's Law, and how is the differential form arrived at from that?

On a similar note: when using Gauss' Law, do you even begin with Coulomb's law, or does one take it as given that flux is the surface integral of the Electric field in the direction of the normal to the surface at a point?


I'm making an ordinary table in LyX and the table is going off-page. Seems that LyX isn't wrapping text inside the cells, and having done a search here on SE I still cannot find a solution which would simply   Restrict the overall table width to page width; and Wrap text inside table cells   I've tried some of the advice offered in other answers to this question, but it seems to scale the entire table which is definitely not what I want. I just want text wrapping inside the cells. Thanks.


Let's say we have a massless body connected to 2 strings. Now lets pull the body with a force $F$. As the body is massless tension in both strings will be equal. Let that be $T$. Now we know that $$F-2T=Ma$$ But as $M=0$, we get $F=2T$. Now although the forces are equal the body still has an non zero acceleration $a$. How can this be possible, even theoretically?


What exactly is the difference between a Ricci-flat manifold and Minkowski space?

Minkowski space describes a flat spacetime and a Ricci-flat manifold is a solution of GRT without curvature. Shouldn't they be the same? So, what's the difference?


Is there any way in Firefox, or any browser for that matter to save all open tabs/windows to disk?  I don't mean to save the state of windows and tabs I have open, bur rather to automatically save all pages to disk as files.  Is there any extension, or innate capability in any browser?


Remove read-only attribute from folder after Windows reinstall

I reinstalled a fresh copy of Windows 8.1 on my laptop after formatting drive C. Then I tried to access my Photos folder on drive D and got the error     Access is denied   It turned my folder into a Read Only folder. All other folders on the drive work normally.  I tried using Command Prompt to remove the Read Only attribute but the error message still appears. I tried doing it the simple way (right-click and so on) but the option to change the folder properties from read-only doesn't even appear.  How do I access the folder on my D drive?


Limit of a trig function. (Without using L'Hopital)

I'm having trouble figuring out what to do here, I'm supposed to find this limit:  $$\lim_{x\rightarrow0} \frac{x\cos(x)-\sin(x)}{x^3}$$  But I don't know where to start, any hint would be appreciated, thanks!


Long Comments moved to chat disabled unless user has high enough reputation

I have seen this a few times, when helping new users of SO, and the comments can sometimes drag on longer than SO usually allows for.  After ~6 comments, SO prompts to 'Automatically move discussion to chat', but if the user has less than 20 reputation, you are unable to do this.  Can the feature be disabled if the user is unable to enter chat?


What is the weekly newsletter? Who composes them?

Each Stack Exchange site has a weekly email newsletter.  What is in the newsletter? Who composes them and selects what is included? How do I subscribe and unsubscribe to a newsletter?


NSNumberFormatter w/ currency and NSDecimalNumber; $9.95 == 9.949999999999999

I'm using NSNumberFormatter to get the object value of a string currency.   No matter what combination of settings I try, I always get weird precision errors.   NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init]; [numberFormatter setNumberStyle: NSNumberFormatterCurrencyStyle]; [numberFormatter setGeneratesDecimalNumbers:YES]; [numberFormatter setMaximumFractionDigits:2]; [numberFormatter setMinimumFractionDigits:2]; [numberFormatter setRoundingIncrement:@(0.01)]; NSDecimalNumber *value; [numberFormatter getObjectValue:&value forString:@"$9.95" errorDescription:nil]; NSLog(@"value is %@ class %@", value,[value class]);   Produces:  2014-08-03 19:25:17.640 Test[50776:60b] value is 9.949999999999999 class NSDecimalNumber   It appears that minFractionDigits, maxFractionDigits and roundingIncrement are only relevent in the context of formatting a value to a string, not converting a string to a number.   What's even more baffling to me is that NSNumberFormatter is using NSDecimalNumber which is supposed to avoid these types of precision issues.  Am I missing something completely obvious here?


Installing Ubuntu 12.04 in win 7 core 2 duo machine using Vmware

I have a Intel(R) Core(TM) 2 Duo CPU with 2GB RAM,32-bit windows 7 loaded.   I need to run Ubuntu in Vmware, but even the Desktop of ubuntu is not loading properly.  What are the possible solutions ?   How much more RAM is required ?


I'm getting a NODATA error when trying to update

when I run   sudo apt-get update    this is the last line error i get  E: GPG error: http://viewizard.com debian/ InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)    This is being run on Ubuntu 13.10.  This is my sources.list:  # deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)]/ saucy main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ saucy main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ saucy main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ saucy-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ saucy universe deb-src http://us.archive.ubuntu.com/ubuntu/ saucy universe deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ saucy multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ saucy multiverse deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ saucy-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team.  deb http://security.ubuntu.com/ubuntu saucy-security main restricted deb-src http://security.ubuntu.com/ubuntu saucy-security main restricted deb http://security.ubuntu.com/ubuntu saucy-security universe deb-src http://security.ubuntu.com/ubuntu saucy-security universe deb http://security.ubuntu.com/ubuntu saucy-security multiverse deb-src http://security.ubuntu.com/ubuntu saucy-security multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu saucy partner # deb-src http://archive.canonical.com/ubuntu saucy partner  ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu saucy main deb-src http://extras.ubuntu.com/ubuntu saucy main ## Viewizard Games repository deb http://viewizard.com/linux debian/


Repeat 3000 times a sequence of characters "OW HW1 HW2" in a column

I would like to have the following sequence: OW HW1 HW2 being repeated in an output file 3000 times such as:  OW HW1 HW2 . . . OW HW1 HW2   I believe I can, by using bash, set the OW, HW1 and HW2 as independent variable and then make a do loop 3000 times and print the values in the output file.


Why didn't mastery of the Elder Wand move on from Harry?

There's a lot of emphasis on Harry becoming the master of the Elder Wand after he defeats Draco. But what constitutes a “defeat”?  It seems that Harry wins a wrestling match with Draco, so now he’s the master of the Elder Wand.  But lots of other stuff happens to Harry: Nagini almost kills him, and he escapes just in time, but his wand breaks. The Snatchers chase him through the forest. He and his friends practically surrender (and Hermione even tries to disguise Harry). Voldemort almost kills Harry in the Forbidden Forest (or actually does, depending on how you look at it).  Why are none of these considered to be “defeats”?


string words[5]; for (int i = 0; i < 5; ++i) {     words[i] = "word" + i; }  for (int i = 0; i < 5; ++i) {     cout<<words[i]<<endl; }   I expected result as :  word1 . . word5   Bu it printed like this in console:  word ord rd d   Can someone tell me the reason for this. I am sure in java it will print as expected.


What term to use to say "family" that includes relatives, not in same household sense but blood-connection sense

I am trying to write a sentence like the following: "No one within my extended family has ever gone abroad for higher education." Here by family I want to mean my parents, siblings, uncles, aunts and other relatives. But the wikipedia page of  defines extended family in a way that needs all to be living in the same household: "An extended family is a family that extends beyond the nuclear family, consisting of parents like father, mother, and their children, aunts, uncles, grandparents, and cousins, all living in the same household." So, what term should I use here?


I have a dual boot system in my laptop (windows 8 and ubuntu). I have decided to delete ubuntu and only use windows 8 in the system (I'm planning only to use ubuntu from usb boot). I tried to delete ubuntu partition from windows 8 and it wasn't ended up pretty good, I couldn't boot up to my windows 8 anymore. I've found that I need to uninstall GRUB first. I also found that I'll need a windows 8 recovery disk or bootable usb  to uninstalling GRUB but the problem is I can't boot up to my windows 8 bootable usb either (and I don't have any luck using recovery disk, mine is broken). How do I uninstalling GRUB then? Please help.


calling database connection object from another jframe

i know there is a similar post as this and they have answered it already but when i try it on my code there still is an error and netbeans show that it is a AWT-EventQueue-0 java.lang.NullPointerException Error and ithink it is because of the con variable. it declared in both class.  here is the code for DatabaseConnect() in my Login_System.java:  public Connection DatabaseConnect(){      try {          String host = "jdbc:mysql://localhost:3306/CPE541Project";         String userName = "root";         String userPass = "";         con = DriverManager.getConnection(host, userName, userPass);         return con;     }     catch (SQLException | HeadlessException err) {         javax.swing.JOptionPane.showMessageDialog(this, "Error:\n" + err);                }    return null; }   there is no error when i run Login_System.java but when i try to login to to UI_Staff.java that is when the error starts, here is the snippet of the code from UI_Staff.java where the error appears:   private void ViewVotersTable(){     try{          Login_System database = new Login_System();         database.DatabaseConnect();          String sql = "SELECT StudentID, Course, VoteProgression FROM Voters";         SQLStatement= con.prepareStatement(sql); //this is where the errors appears to according to netbeans         queryResultSet = SQLStatement.executeQuery();                tbl_ElectionProgress.setModel(DbUtils.resultSetToTableModel(queryResultSet));          sql ="SELECT COUNT(*) from Voters";         SQLStatement= con.prepareStatement(sql);         queryResultSet = SQLStatement.executeQuery();         while(queryResultSet.next()){             NumberOfVoters= queryResultSet.getString("COUNT(*)");         }         lbl_NumberOfVoters.setText(NumberOfVoters);          sql ="SELECT COUNT(*) from Voters where VoteProgression='DONE'";         SQLStatement= con.prepareStatement(sql);         queryResultSet = SQLStatement.executeQuery();         while(queryResultSet.next()){             ProcessedVotes = queryResultSet.getString("COUNT(*)");         }         lbl_ProcessedVotes.setText(ProcessedVotes);          sql ="SELECT COUNT(*) from Voters where VoteProgression='NOT DONE'";         SQLStatement= con.prepareStatement(sql);         queryResultSet = SQLStatement.executeQuery();         while(queryResultSet.next()){             UnprocessedVotes = queryResultSet.getString("COUNT(*)");         }         lbl_UnprocessedVotes.setText(UnprocessedVotes);      }     catch ( SQLException | HeadlessException err ) {     javax.swing.JOptionPane.showMessageDialog(this,"Error:\n"+err);      } }   here is there first line of error in the stacktrace:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at cpe541project.UI_Staff.ViewVotersTable(UI_Staff.java:869) at cpe541project.UI_Staff.formWindowActivated(UI_Staff.java:859) at cpe541project.UI_Staff.access$000(UI_Staff.java:15) at cpe541project.UI_Staff$1.windowActivated(UI_Staff.java:115)   please help. i don't know what the error is about.


I had installed gnome-tweaks to play around the visual appearance of my ubuntu system however for some reason the fonts have become really small and strain the eyes. I have removed the gnome-tweaks however the font size remain the same,this begins even before login. Any idea how this can be corrected ( I have tried to increase the size but it reverts after i logout )


How to install WiFi drivers for HP notebook laptop with RTL8723DE on Ubuntu 18.04?

I am having issue with HP notebook laptop with Ubuntu 18.04 installed. It is not detecting any WiFi signal. Looks like driver issue. Tried to find driver on HP website but did not get it.  How do I find and install third party driver?  lspci -knn | grep Net 02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]


What will happen to my Ubuntu/Windows set up upon upgrade to Windows 10?

Microsoft is offering free upgrades to Windows 10 for certain users. Currently I am running a Ubuntu/ Windows 8.1 dual boot set up on my laptop.   I rarely boot into Windows but just to keep up to date with what is going on there I would like to keep it. What can I expect when opting to upgrade to Windows 10? My suspicion is that the least it will do is make sure there is the Windows boot loader installed and there is only one option to boot.   With Win 10 being released today I wonder if anyone has gone through the upgrade path and would like to share his findings? What can I expect to happen?


Giving a bash script the option to accepts flags, like a command

I'm writing a simple bash scripts and I would like it to accept parameters from the command line in any order. I've browsed around the web and wrote a simple function with a case statement in a while loop. Right now, the 'any order' part works - but it only picks up the first parameter I set. I'm certainly doing something wrong but scripting is quite new to me and I hadn't been able to figure it out - your help would be greatly appreciated. The flags part of the script is as follows:     #Parameters - source,destination,credentials,bandwidth,timeout,port,help flags () {         while test $# -gt 0; do                 case "$1" in                         -s|--source)                                 shift                                 if test $# -gt 0; then                                         export SOURCE=$1                                 else                                         echo "No source directory specified!"                                         exit 1                                 fi                                 ;;                         -d|--destination)                                 shift                                 if test $# -gt 0; then                                         export DESTINATION=$1                                 fi                                 ;;                         -c|--credentials)                                 shift                                 if test $# -gt 0; then                                         export CREDENTIALS=$1                                 fi                                 ;;                         -b|--bandwidth)                                 shift                                 if test $# -gt 0; then                                         export BANDWIDTH=$1                                 fi                                 ;;                         -t|--timeout)                                 shift                                 if test $# -gt 0; then                                         export TIMEOUT=$1                                 fi                                 ;;                         -p|--port)                                 shift                                 if test $# -gt 0; then                                         export PORT=$1                                 fi                                 ;;                         -h|--help)                                 shift                                 if test $# -gt 0; then                                         echo "Help goes here"                                 fi                                 ;;                         -l|--compression-level)                                 shift                                 if test $# -gt 0; then                                         export COMPRESS_LEVEL=$1                                 fi                                 ;;                         *)                                 break                                 ;;                 esac         done } flags "$@" echo "source is $SOURCE, destination is $DESTINATION, credentials are $CREDENTIALS, bandwidth is $BANDWIDTH, timeout is $TIMEOUT, port is $PORT"  Ideally, some of those parameters would be mandatory, and others optional - but that's not a must. How can I fix this script to accept any of those parameters (both long and short forms, ideally) in any order? Thanks!


How to give to a user ability like root with visudo?

I add this line to visudo, in order to give full permissions to yael user:    yael ALL=(ALL) NOPASSWD: ALL   But when I want to update the /etc/hosts file, I get permission denied:   su – yael  echo "10.10.10.10 yael_host">>/etc/hosts  -bash: /etc/hosts: Permission denied    sudo  echo "10.10.10.10 yael_host">>/etc/hosts -bash: /etc/hosts: Permission denied    ls -ltr /etc/hosts  -rw-r--r--. 1 root root 185 Aug  7 09:29 /etc/hosts   How can I give to user yael ability like root?


Where's the WMD editor open source project?

Where is the open source project for the WMD editor used on this site?


Does there exist some infinite series such that even today we still can't test out if it converges or diverges?

I'm a college fresh man on my winter vacation and I'm previewing the part in my next term's Mathematical Analysis that deals with the infinite series. I have therefore learned some tricks for deciding if a series converges or not. Those tricks are quite useful, but only sometimes. When confronted with some very tricky series (perhaps in a rather simple form) they just don't work out very smoothly or even cannot work at all. So my notion is that our tricks for testing convergence are actually quite weak, and that there may well be a good many series whose convergence or divergence hasn't been revealed yet. And thus I'm asking for such an example. In addition, I want to briefly mention something interesting (my own experience): Before taking an elementary calculus course at the age of 14, I feel very strongly, by my intuition, that $\displaystyle\sum_{i=1}^{\infty}\frac1i$ must be something convergent. I "tested" it on my calculator, which told me that when $i$ turns large (in fact, no more than 50 I believe) the rate at which the sum increases has already been incredibly slow. So even without any proof I thought to myself that it would be a joke if such a thing should diverge. Of course, I was wrong, and I later learned many ways to prove I was wrong. Still, it is no surprise that someone who lacks this part of knowledge and trusts  their "mathematical intuition" will, you can almost guarantee, make the same mistake as I did. I simply get this feeling that when we are confronted with a brand new series which none of our tricks can work out (and intuition or technology is of no good help), it is just grossly difficult, or even not quite possible for us to decide its convergence or otherwise. So I firmly believe there are still some tricky ones that still bother us nowadays.


How do I run script on startup to fix screen orientation issue?

I've be looking for a way to run a script on startup but all old threads I've found on the subject seem to be before systemd came in and none of the answers I've found seem to work anymore. I'm new to Linux operating systems and I'm not sure where to look for instructions on how to do this under systemd.   For a bit of back story I recently replaced Windows on a little tablet/laptop with Ubuntu and I've found that on start up the screen orientation is the wrong way around, meaning every time I log in I have to enter xrandr -o right into the terminal, which is a bit annoying to do every time.   Additionally, if anyone has any resources for beginners entering Linux, I'd love to see them! I'm currently on a university degree and the programming side of things is all done on Ubuntu so it would be great to become more adept at using the system.  Thanks.


Object reference not set to an instance of an object error? (Unity)

I am creating a simple 2d game in Unity. I tried to make the player able to pick up objects whenever they are clicked, but I keep getting the error I mentioned. Here are the scripts I used : (Both of them are attached to the same object that the player wants to pick up)    First :      public class Select : MonoBehaviour     {         public GameObject selectionBox;         public bool isSelected;          void Start()         {             selectionBox.SetActive(false);         }          void OnMouseOver()         {             Vector2 pos = transform.position;              selectionBox.transform.position = pos;             selectionBox.SetActive(true);             isSelected = true;         }          void OnMouseExit()         {             selectionBox.SetActive(false);             isSelected = false;         }     }   Second : (that gives the error)      public class Pickup : MonoBehaviour     {         private Select select;         private Inventory inventory;          void Update()         {             OnMouseDown();         }          void OnMouseDown()         {             if (select.isSelected && Input.GetMouseButtonDown(0)) //Error here                 print("Click!");         }     }   Can anyone please tell me why I am getting this error? And how can I fix it?    Here is the error : Object reference not set to an instance of an object Pickup.OnMouseDown () (at Pickup.cs:17)


I have been searching SO to find the correct way to use a var as part of a regex . The idea is to get each of the searchable fields on the page and check if the text contains the search term, then if so, replace that portion of the text and wrap it in a styled span. this is the part of the code which is not working correctly, "/\\"+src+"/gi",    $('.srch').each(function () {          var txt = $(this).text(),             src = $('#Srch_Srch_txt').val();          var s = txt.replace("/\\"+src+"/gi", '' + src + '');          $(this).html(s);      })   Thank you in advance, Will.


Calling ajax request after processing another ajax request

User pushes the button on site and by this ajax request starts than Server returns True or False. If the result is True than another ajax request is to be processed, but I am getting nothing (I guess inside of ajax).  Here is my js code:  document.getElementById('next_in').onclick = function (){      $.ajax({         data: {             login: document.getElementById('log').value,             password: document.getElementById('pass').value         },         type: 'POST',         url: '/user_login',         success: function (localRes) {             if(localRes.result==true){                 $.ajax({                     data: {                         login: document.getElementById('log').value                     },                     type: 'POST',                     url: '/private',                     success: function () {                         alert('Connected')                     },                     error: function () {                         alert('There is a mistake!')                     }                  });             }             else{                 alert('Incorrect login or password!');             }         }     }); }   and python code:  @app.route('/private', methods=['POST']) def private():    return render_template("rates.html")   Then after pushing the button on site I recieved "Connected", but then (I supposed this event calls my python function) there is no redirect to rates.html...   I do not understand what is wrong here..   Please. I hope at leaste to understand problem of which side it is and how to fix it?   Thank you!  EDIT ONE  I did shorten my python function just to show the issue. In actual case before return render_template("rates.html") there is huge proccessing (request to database, some calculation and so on), so python function is:  @app.route('/private', methods=['POST'])     def private():        # ******************** HUGE processing        return render_template("rates.html")   Sorry, if I confused you, but simple redirect to .html is not what I want. I want calling python function in nested ajax requests.


Will leaving a device on an NFC tag do any harm?

I want to leave my phone sat on an NFC tag all day long - will it do any harm to either the phone or the tag?  I'm worried about Android constantly trying to read the tag all day, and that this could cause unecessary battery use, the tag could get hot from constantly being read, etc etc.  Is there anything to back up these concerns, or is it fine to leave a device on an NFC tag for a long period of time? Will Android read the tag over and over again, or does it somehow know when it's placed on a new tag?  Note the device is a Samsung Galaxy S7 (Android 7.0) and the tag is one of the cheap 'NFC stickers' you can get from amazon etc.  Edit: not a dupe of the linked question because that only asks about battery drain. This question is about adverse affects in general (e.g. over heating the tag).


I'm not understanding how to solve this problem.  I think the problem lies in the fact that I don't understand why normalize and the definition of directional derivative... It's in Portuguese. The question would be: Determine the directional derivative of f in P in direction of vector u:


Finding all pairs of integers satisfying gcd(a,b) = 6 and lcm(a,b)=540

Given that  $$a\cdot b=gcd(a,b)\cdot lcm(a,b)$$  How can we find all the integer solutions $(a,b)$ if $gcd(a,b)=6$ and $lcm(a,b)=540$?  The first thing I did was factorizing using the fundamental theorem of arithmetic.  $$a\cdot b=gcd(a,b)\cdot lcm(a,b)=6\cdot540=2^3\cdot3^4\cdot5$$  I also know that  $$gcd(a,b)=p_1^{min(a_1,b_1)}\cdot p_2^{min(a_2,b_2)}\dots p_n^{min(a_n,b_n)}$$  $$lcm(a,b)=p_1^{max(a_1,b_1)}\cdot p_2^{max(a_2,b_2)}\dots p_n^{max(a_n,b_n)}$$ where $a_1\dots a_n$ and $b_1\dots b_n$ are the exponents in the factorization of $a$ and $b$ respectively.  From there I am not sure where to go to obtain all the possible integers $a$ and $b$.  There is already a similar question on Mathematics SE, however the accepted solution is simply a hint towards the correct procedure to do it, while this question already acknowledged that hint.


How do I split a string, breaking at a particular character?

I have this string  'john smith~123 Street~Apt 4~New York~NY~12345'   Using JavaScript, what is the fastest way to parse this into  var name = "john smith"; var street= "123 Street"; //etc...


I'm aware of the "Heisenberg compensator" plot device to explain how transporters get around the Heisenberg Uncertainty Principle. However, it occurs to me that there is an even more basic (i.e., in terms of classical physics) flaw with their usage: matter spontaneously appearing or disappearing. Wouldn't the sudden infinite pressure differential be, well, problematic to say the least?  Is it ever explained how this is compensated for?  One could imagine that matter is simply swapped betweem the transporter source and destination. However, this still suffers from the same problem; albeit not to the singularity extent. That said, IIRC, transporting into the vacuum of space is a thing.


Probability of a 6-digit number with at most three digits repeated?

What is the probability that a 6 digit number selected at random contains at most three digits repeated?  I'm new to probability, and try as I might, I cannot solve this. Any help will be appreciated.  P.S. first digit cannot be zero


How to type full multilinear product symbol in LaTeX?

I want to know how to type the symbol above in LaTeX, thanks!


How to bypass the Goggle account password request on a Z353VL ZtE flip phone both touch screen and hard keys

So I have this old ZTE and I can't find a way to bypass the frp I looked all over online and nothing for the touchscreen hard button model like this I just bypassed a galaxy s7 running oreo for a friend so I thought for sure this phone would have a bypass that you can do using the phone itself


I am trying to setup bi-direction or two way sync with rsync. In my case I only need to delete the files when syncing from B to A. So, I was thinking of running rsync twice as follow :  rsync -rtuv ./A/ ./B/ rsync -rtuv --delete ./B/ ./A/   This problem with this solution is that when I run rsync (B->A) which would be right after running the rsync (A-B), Any new file that get created in between the sync will also get removed.  Is there a way I can specify a time stamp as condition that it only delete the file if it created before this date/time.  Updated:  I understand there is a unison solution but the problem with unison is required to install on both ends. I am syncing with a remote server and I can not install unison on the remote end.


Why the X is the symbol associated to the “Close application” action?

I was wondering about the reason of the choose of the X as symbol used to represents the "Close application" operation.


py2exe - generate single executable file

I thought I heard that  was able to do this, but I never figured it out.  Has anyone successfully done this?  Can I see your setup.py file, and what command line options you used?  Basically I'm thinking of it giving me a single executable file that does something like unzips itself to maybe /temp and runs.


Prove that edge coloring produces a cycle with all edges having the same color

For a complete graph with vertices $2n+1$ and its edges colored with $n$ colors, how to prove that there exists a cycle with all edges of the same color.  I have proceeded by calculating the number of edges in a complete graph of $2n+1$ vertices which gives $ \binom{2n+1}{2} = n(2n+1) $ edges.  Now using the pigeonhole principle there must be at least $2n+1$ edges of the same color. Now how do I show that this forms a cycle in the graph?


Remove Reduce Ads Privilege for MSE (only)

Note: Inspriation comes from Robert Longson from his comment on this .  I am asking that the privilege to see less ads be removed from MSE only.  Why? Because there aren't any ads in MSE. With no ads here, you can't really see a negative amount of ads here or see any at all. Like the linked question said, the users who find out that the privilege is useless will be kinda sad. Privileges should be new and this isn't new or going to give users something new.  So can we remove the privilege to see less ads in Meta.SE only?


Could we get a little more visibility on changes that affect the whole network?

I had a user on chat go  O_O SO's topbar is all funky now @JourneymanGeek would've been nice if, y'know, they asked for opinions on SE meta  Bob's one of my core users. Unlike me, Bob codes. Bob vaguely got caught by surprise by these changes. Bob even uses SO, and didn't know about it. I'm tempted to call it a bug. I hardly knew about it and as a mod, I ought to. This feels like a breakdown in communication between the folks who run the site and the wider communities. Mods are one element but we need to keep in mind that we also have a little more than a hundred other sites, including a few reasonably large communities outside SO. While SO in most cases is the site that gets the most attention, and love, some of the changes that are being tested on SO - such as the top bar will filter down elsewhere. I know of these changes primarily through complaining and complaints about complaints on the tavern on the meta and , rather than directly, and other sites have no input on the changes. This isn't just about the site bar though, but any change to the 'core' of site functionality. While the current 'crop' of changes to the top bar are finally acknowledged on MSE - quite a bit of it purely happened and is happening on MSO. In a sense, the rest of the network's kinda in the dark about it. I'm not saying we're getting treated like mushrooms, but it would be very nice if changes that affect the entire site at least got an announcement or discussion meta post. As a moderator - chances are I'm the first point of contact for the user who wakes up one morning, and finds that someone moved his cheese, and that his workflow has been disrupted. Could we have better visibility and communication about changes that eventually affect the whole network (Since there's plans to roll out the new ? It might mean one extra meta post (or better yet, that and a moderator newsletter or other notification!) but it would help us help get the word out.


If light is passed through two polarizing filters before arriving at a target, and both of the filters are oriented at 90° to each other, then no light will be received at the target. If a third filter is added between the first two, oriented at a 45° angle (as shown below), light will reach the target.  Why is this the case? As I understand it, a polarized filter does nothing except filter out light--it does not alter the light passing through in any way. If two filters exist that will eliminate all of the light, why does the presence of a third, which should serve only to filter out additional light, actually act to allow light through?


Using following code i want to get href of <A> but <A> could be at any number of inner iframes. Basically we are trying to fetch url on which our advertisement is redirecting and because of nested structure of iframe we are not able to fetch that url.  CODE:  <!DOCTYPE html>  <html> <head> <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>   <meta charset="utf-8">   <title>JS Bin</title> </head> <body> <div style="width:300px;border:1px solid #000;" id="test">  <SCRIPT SRC="http://ib.adnxs.com/ttj?id=3234436&cb=${CACHEBUSTER}&referrer=${REFERER_URL}&pubclickenc=${CLICK_URL_ENC}" TYPE="text/javascript"></SCRIPT>  </div> <script TYPE="text/javascript"> var href=''; function recurring(target){      $(target).each(function(){         var obj=$(this);         var tagNm=($(this).prop("tagName"));         alert(tagNm);         if(tagNm.toUpperCase()=='DIV'){             recurring($(this).find("*"));         }         else if(tagNm.toUpperCase()=='IFRAME'){             console.log(obj);             recurring(obj.find('body'));         }         else if(tagNm.toUpperCase()=='A'){             if($(this).attr("href")!="" && $(this).attr("href")!=undefined){                 alert('if->'+$(this).attr("href"));                 href=($(this).attr("href"));             }         }     }); } $(document).ready(function(e) {     recurring($('#test'));     //alert('34');     alert('my href->'+href); });  </script> </body> </html>


I would like to be able to post code in chat. I know that I can post inline snippets of code by using backticks, but I don't know how to post blocks of code, with the entire chat message formatted as code, and indentation respected. I am aware of . After reading the comments, I found out that I could format in "fixed width", but I can't see a "fixed width" button anywhere. What should I do?


I'm sure there is a really simple explanation to this but haven't found any pointers on this forum or elsewhere. I seem to have lost the 'processing' menu from QGIS and can't figure out how/why!? Any ideas what I might have done to make this happen?  I'm running QGIS 2.8 built against GDAL 1.10 on Ubuntu 14.04.


mathematical symbol, what does the open circle mean?

What does the circle in d) and e) means? In this exercise, I have to find inverse matrix. $h:\mathbb{R}^3 \to \mathbb{R}^3$ is given by $$h(x,y,z) = (4x+y,x+z,-2x+3y+z)$$ (d) $g \circ h$ (e) $h \circ g$


I'm running Ubuntu 14.04.4 LTS with two monitors and an Nvidia 970 Graphics Card.  Things worked fine.  Then I rebooted and now they don't work.  I can only see one monitor.  When I run nvidia-settings, it complains   You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server.   My xorg.conf file has:  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation" EndSection   Any ideas?


How to repair bad sectors on ntfs partition

I accidentally unplug the power line of my laptop, which seems cause some bad sectors on my hard drive. The partitions of that hard drive are all in ntfs format, is there a tool or a way to repair it under Ubuntu?


Why can't markdown used by Stack Exchange properly render a backward slash?

If I type it in between these parentheses -> () the backward slash inside the parentheses is removed.  As you see it is not there.  However if I surround it with spaces ( \ ), then it is rendered correctly.


How to deal with parsing JSON response when it contains a dynamic object?

While playing with the JSON parser I encountered a use case (described below in detail) for which using JSON.deserialize(JSONResponse, SampleParent.class) method for parsing doesn't work.  Below is the use case:  public class SampleParent{      public String a {get;set;}     public String b {get;set;}     public String c {get;set;}     public String d {get;set;}     public SampleChild test {get;set;}      public SampleChild{            // in response, for this class doesn't know about the fields. in each and            // every response the fields are changing i.e. it is dynamic with no structure     }  }   How to handle such response using JSON.deserialize  and store it in Apex class variable? Actually I want to store such response in String variable.  Response :- 1  {      "a": "Sometext",       "b": "Sometext",        "c": "Sometext",         "d": "Sometext",       "test": {         "Data1": {           "score": 2         },         "Data2": {           "score1": 1         },         "Data3": {           "score1": 2         }       }   }   Response :- 2   {      "a": "Sometext",       "b": "Sometext",        "c": "Sometext",         "d": "Sometext",       "test": {         "Data50": {           "score12": 2         }              } }   Actually I want to store such response in String variable like a = '{ "Data50": {"score12": 2}}'  Can we handle this use case in Salesforce ?    Any pointers on this would be highly appreciated. Thanks in Advance.


Associative array to normal array in PHP

I have a php variable which reads data from CSV file using str_getcsv() function as below:   $test = array_map('str_getcsv', file($path))   Now $test contains array as below:   Array (   [0] => Array     (         [0] => Array             (                 [0] => abc             )          [1] => Array             (                 [0] => def             )          [2] => Array             (                 [0] => ghi             )          [3] => Array             (                 [0] => jkl             )          )     )   I would like to convert it in simple array as follows:   Array  (     [0] => abc     [1] => def     [2] => ghi     [3] => jkl  )   Can somebody help?


Modifying CSV file in QGIS before joining it to shapefile?

I've imported a Delimited Text File that I want to join to a shapefile.    Unfortunately, the join field has a ' character before the actual string.    I wanted to delete that character, but I can't edit the file because I get:      This layer does not support adding new provider fields   Consequently, I cannot edit the file (and yes, I toggled the layer editing icon on and tried editing it after saving the imported CSV with a new name).  Is there a way to get around this?


Color halftone to vector instead of pixels

Before I start scripting myself with JS and SVG, I was wondering if there is an existing way to generate a color halftone in vectors, so that every dot is a perfect circle. So what I am looking for is a script that generates the raster in vectors rather than in pixels.


I could find  for $|(0,1)| = |\mathbb{R}|$, but could not find anything about $|(0, 1]| = |\mathbb{R}|$. I do not know how to prove this. The only way I can think of is showing that there is a bijection from $(0, 1] \rightarrow (0,1)$, then we will have $|(0, 1]| = |(0,1)| = |\mathbb{R}|$. However, I would like to prove this by using The Schroder-Bernstein theorem with $(0,1]$. What would be the key difference between $|(0,1)| = |\mathbb{R}|$ and $|(0, 1]| = |\mathbb{R}|$? I think there still should be the bijection from $(0,1]$ to $\mathbb{R}$, but I'm struggling with coming up with idea.


Convergence of $r_n$ = $a_n$ / $a_{n+1}$ where $a_n$ is Fibonacci sequence

Let $a_n$ be the Fibonacci sequence defined by   $$a_{n+1} = a_n + a_{n-1} \ \ \text{with} \ \  a_0 = a_1 = 1 $$  Let $$r_n = \frac{a_n}{a_{n+1}}$$  I have already found two subsequences which are $\{r_{2k-1}\}$ bounded above by $2$ and  increasing (thus is convergent), and $\{r_{2k}\}$, bounded below by $1$ and decreasing (thus is convergent,too)  Besides, $$ \lim_{k \to \infty} r_{2k-1} = \ell_1 $$ I found that $l_1^2 - l_1 - 1 = 0$ from above equation.  However, i cannot find $l_2$ where $ \lim\limits_{k \to \infty} r_{2k} = \ell_2.$


Is "singular noun + and + singular noun" singular or plural?

When I type "[singular noun] and [singular noun]" in Word 2010, I find some interesting things.        Bread and butter is essential. (the auto-correction warns me of subject-verb disagreement.)   Bread and butter are essential. (OK)   A knife and fork is on the table. (OK)   A knife and fork are on the table. (OK)   The needle and thread is new. (OK)   The needle and thread are new. (OK)   Cost and revenue is directly linked. (OK)   Cost and revenue are directly linked. (OK)      I wonder how a native speaker would consider this phenomenon.


Proving that elements in a finite ring are zero divisors or units AND deducing that every finite integral is a field

Prove that if R is a finite ring with an identity, then every nonzero element R is either a zero divisor or a unit.  Deduce that every finite integral is a field.  Hint: Let x be a nonzero element of R that is not a zero divisor.  Show that $x^n$ for some $n \in N$, and deduce from this that x must be a unit.


Environment variable substitution in sed

If I run these commands from a script:  #my.sh PWD=bla sed 's/xxx/'$PWD'/' ... $ ./my.sh xxx bla   it is fine.  But, if I run:  #my.sh sed 's/xxx/'$PWD'/' ... $ ./my.sh $ sed: -e expression #1, char 8: Unknown option to `s'    I read in tutorials that to substitute environment variables from shell you need to stop, and 'out quote' the $varname part so that it is not substituted directly, which is what I did, and which works only if the variable is defined immediately before.  How can I get sed to recognize a $var as an environment variable as it is defined in the shell?


What to call someone who has recently become rich but now his/her attitude has worsen?

I'm inclined to use parvenu but most meaning suggest about lacking refinement. I'm looking for someone who looks down on the poor. Maybe abusive to the poor.


Live Action English Language show about a virtual world with an human-appearing girl who tastes orange juice through her fingertips?  And she's not human, but might be under a hologram? ... I think she might have blue skin??  She never had orange juice before, or didn't know what it was, and another character covered for her strangeness, I think.  And I think it might be the answer the same show that "" is trying to find.  And it was broadcast in Canada during the 2000s, on Teletoon, Family Channel, or YTV?  That's all I remember.


How important are semicolon and "===" for ajax anonymous function?

My site has several ajax functions essentially identical (except different variable names, etc.) to the following:  function ajaxFunction(string) { var ajaxRequest;     try {         ajaxRequest = new XMLHttpRequest();     } catch (e) {         try {         ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");         } catch (e) {         try {             ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");         } catch (e) {                    alert("Your browser broke!");                 return false;         }         }     }//Anonymous function starts here ajaxRequest.onreadystatechange = function() {     if (ajaxRequest.readyState == 4) {             var ajaxDisplay = document.getElementById('div');             ajaxDisplay.innerHTML = ajaxRequest.responseText;     } } //and ends here     var QueryAjax = "?string=" + string;     ajaxRequest.open("GET", "AJAX_File.php" + QueryAjax, true);     ajaxRequest.send(null); }   For the indicated anonymous function, the javascript lint found at  warns me I should add a semicolon at the  end of this function (before the comment //and ends here in the code above) and that the function does not always return a value; the stricter lint found here:  warns me ajaxRequest.readyState == 4 should instead be ajaxRequest.readyState === 4.  Does anyone know how detrimental (if at all) the lack of semicolon and lack of "=== 4" are? Also, why does the function not always return a value? My site uses about 50 ajax functions similar to the one above and seems to perform great, but perhaps making these changes will speed up the execution of the functions? Any tips/advice would be greatly appreciated!


This code in JS gives me a popup saying "i think null is a number", which I find slightly disturbing. What am I missing?    if (isNaN(null)) {   alert("null is not a number"); } else {   alert("i think null is a number"); }     I'm using Firefox 3. Is that a browser bug?  Other tests:    console.log(null == NaN);   // false console.log(isNaN("text")); // true console.log(NaN == "text"); // false     So, the problem seems not to be an exact comparison with NaN?  Edit: Now the question has been answered, I have cleaned up my post to have a better version for the archive. However, this renders some comments and even some answers a little incomprehensible. Don't blame their authors. Among the things I changed was:   Removed a note saying that I had screwed up the headline in the first place by reverting its meaning Earlier answers showed that I didn't state clearly enough why I thought the behaviour was weird, so I added the examples that check a string and do a manual comparison.


Installing scott schema for oracle 11g express

I want to install scott schema, a sample database in oracle.  But in express edition, I can't find out it.  Please help me install it on Oracle 11g express.  I'm a newbie, pls help me


I am working on a Windows Forms application in VS 2008, and I want to display one image over the top of another, with the top image being a gif or something with transparent parts.  Basically I have a big image and I want to put a little image on top if it, so that they kinda appear as one image to the user.  I've been trying to use a picturebox, but this doesn't seem to have worked, any suggestions?


How can I add a custom form menu link to the administrative menu programmatically?  I am trying to add this form as admin menu link like content, structure and module.


Let $R$ be a graded ring, for example with nonnegative grading such that   $$R=R_0 \oplus R_1 \oplus \dots$$  Is then  $R^n= R \times \cdots \times R$ a graded ring (not with a trivial grading) ? If so, with what grading?


Can a single atom in vacuum space have a temperature?

Say that there was a single atom alone in a vacuum without any particles for it to bounce off of; would it have a temperature?  As we all know motion is relative, however with nothing to bounce or collide with, is the atom moving?  Or if it's not moving, then is absolute zero achieved?  Or if it is moving, then will it "slow down" as it gives off thermal energy, producing thermal energy?  note that i am not talking about : particle speeds in idealized gases where the particles move freely inside a stationary container without interacting with one another, except for very brief collisions   i am talking about no collisions with anything therefore the Maxwell–Boltzmann distribution is a different thing than what im talking about therfore Can a single molecule have a temperature is a totally different question


Proof that injective rearrangements of a convergent sequence preserves its limit

Is this statement true? i.e. If $f(n)$ is injective and $p_n \rightarrow L$, does $p_{f(n)} \rightarrow L$?? (I realize that it's technically only a rearrangement if $f(n)$ is bijective.)   My attempt at a proof:  Since $p_n \rightarrow L$, we have that, for all $n$ except $n \le N$, $d(p_n, L) < \epsilon$.  Let $S = \{n \ | \ f(n)\le N\}$, let $n_0$ be the largest $n \in S$, we know there is such a largest $n$ because $f(n)$ is injective. Now we have that $\forall \ n > n_0 \ f(n) > N$ which implies that $p_{f(n)} \rightarrow L$, as required.  Is this correct? Does my proof work?


Is there a word for "considering multiple view points"

We know how different sources of media can bias how they present information. So I want a word that says I will take into consideration "all" those different viewpoints. For example a sentence: "...different media, whether distinguished by country, culture, or politics often portray the same event in different ways. Because of this, I'll be taking a more [word] view analyzing the event." I was thinking of the word "holistic" to take place of [word], but would that be accurate? Thanks in advance.


ffmpeg limit number of images converted to video

Is it possible to instruct ffmpeg to combine a limited range of images together?   Lets say there is a folder of 1000 images named img_0001.jpg to img_1000.jpg and I only wanted to combine img_0250.jpg through img_0750.jpg.   The -start_number option specifies a starting point but from there it will run until the end of the sequence:  ffmpeg -start_number 250 -i img_%4d.jpg -vcodec mpeg4 output.mp4   Is there a way of specify a -stop_number or total number of frames to run for?


How to do sites uniquely identify a computer/network online?

I completed a survey that stated I am only allowed to do it once per day. If I try to do it again, I am not allowed as expected.  I am trying to find out how they know that it is from the same computer/network.  I tried doing the survey with another computer on the same LAN but it still didn't work. Then I thought they might be using my public IP and after changing that, it still didn't work on either computer.  Now I'm wondering how they uniquely identify my local network without relying on my public IP address? My next guess is that they are using the MAC-address of my router.  I want to know what are common/popular methods that websites use to do this type of thing.


Investigate potential breach in Azure App Service

We suspect we have had a data breach, but we are not sure how to investigate it to determine the source of the breach or what data was sent.  We have an app service that has been running for a while with steady usage. We noticed that over the last couple of nights there have been large spikes in data out. Our website has an authenticated user area and we are concerned that there may have been a breach or something unauthorized happening on the site.  The site has consistently always had below 10MB/15mins Data Out. But the sudden spike was over 180MB then instantly back down again. The second night the spike was 600MB. In the same 15 minute metric window the Average CPU time spiked to over one hour. Response time, number of requests and 4xx/5xx errors all remained steady.     Is there a way using Azure (Metrics or Security Center) to determine what caused the massive spike in Data Out? What data was sent, who it was sent to etc? Is there anything we can enable within Azure to allow us to view this data if it was to happens again tonight? (e.g. Azure Sentinel)  Looking at other metrics, there was no obvious spike in 4XX or 5XX errors or number of requests, so we do not suspect a brute force or DoS attack.


Does Super Mario physics work in reality?

This illustration summarizes my question:    Please assume no air resistance (unless that makes a large difference). Here's what we concluded, but I could use both confirmation and also help with the math:  Yes, jumping off of a plank will move you "up", but the timing of the jump makes a big difference. If you jump earlier in the fall, you'll move up, but you'll also add to the distance of the fall.. If you jump at the very end, you're essentially not adding to the fall at all, so you're getting essentially the maximum effect. In order to minimize the velocity at which you hit the ground, the best strategy would be to jump at the moment before impact.  To keep the math simple, let's say you can jump one meter off of solid ground, and also that the bridge is ten meters above the ground.  If you jump the instant the bridge crumbles, then you're actually doing yourself harm, since you will then fall from 11 meters. If you jump a less than a meter into the fall, you may get back up to the height of the bridge, get to "rest", but then still fall from 10 meters, as if you had done nothing.  The closer to the ground that you jump, the larger the share of your jumping velocity that will be subtracted from your downward velocity without later contributing to your downward acceleration.


I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments.  Is there a way to add a simgle tab like in any text editor? I use MathType to make equations writing much easier and there you can insert tabs, so when you export the code you see MathType uses & for that, but when you compile that code, LaTeX complains with:  Misplaced alignment tab character &.   So somehow LaTeX knows that I'm trying to add a tab and it's driving me crazy.  I thought to create my own "tab" macro or command: the idea is to tell LaTeX to go back to the left (or right) margin with \hspace and the move to the "tab" with another \hspace, something like:  Hi everybody. \hspace{-len_to_left_margin} \hspace{tab_value} My name is Agustin.   Is that posible?


How do I choose a replacement wheel rim?

These are my current rims: Wheeltech TD26 by Alex Rims (can't find much info about these online).  I need to replace the rear wheel as it is cracked (cracks on the rims around a few spokes) It's a 700C disc brake rim with quick releases.  What do I need to consider other than the size of the wheel when choosing a replacement?  I'll likely migrate over the cassette and rotor (if need be).  My knowledge of rims is limited so any help is appreciated!  Here is my bike:  (Must select Whistler 70 when on the site)


When is the present perfect tense used instead of the past tense?    I know that the present perfect tense is used when some adverbs (e.g., never, ever) are present in the sentence; the same is true for sentences like the following one.     When you returned, I have been at home since 3:00 PM.   In which other cases should I use the present perfect? Do the following sentences require it?     I have walked downtown everyday for a year.        I have been at home since 3:00 PM.


Fantasy book about two brothers in the afterlife

I read a great book once about two young brothers who die and go to the afterlife. The afterlife is a fantasy like world where they join the fight to free the world from an evil warlord. In the end, both boys die again, to join the final afterlife.  Do you know the name and author of the book?


Will painless upgrading from Drupal 8 alpha 3.x to beta be possible?

I'd like to create a website with Drupal 8 Alpha 3. But I'd like to know for sure if it's possible to do a harmless upgrade to Drupal 8 Beta once that it's released.  I heard something about the Drupal 8 API being frozen, but after reading this article () i'm not so sure anymore.  Can anyone help out?  PS: The website i'm going to build is fairly simple (few content-types, views, blocks etc)


Is there a way to disable/lock the mouse/touchpad zoom in the Chrome browser? I find myself accidentally triggering ctrl-wheel or touchpad-two-finger far more often than do intentionally.  As an afterwards bandaid fix, Ctrl-0 will quickly restore zoom to 100%.


My intuition told me E(X|X) is X. However,I get stuck when when I try to evaluate it from the definition. How do I define f(X|X) ? would it be constant? Thanks for your help.


When was the phrase "Timey Wimey" first invented by the Doctor?

The phrase "" was first used on TV by the 10th Doctor in the episode "Blink".  However, it then appears as if the Doctor had invented this phrase long before that in-universe, as it is used by the 5th Doctor in the mini-episode "".  But in the 50th anniversary episode "Day of the Doctor", when the 11th Doctor says "timey wimey" the War Doctor appears as he has never heard this phrase.  Is there any explanation for this? In his own timeline, when did the Doctor invent or first hear this phrase?  Edit:  This question is different from  because I'm not asking about the first “use” of that phrase in a television serial or the first broadcast of the phrase, but when it was invented (or known) by the Doctor in his personal timeline. And if the 5th Doctor was aware of it, then why didn’t the War Doctor recognise it?  I thought this was clear in the question.


Evading question ban by triggering the automatic merger of accounts

While trying to ask a question, one could get:  We are no longer accepting questions from this account. See the Help Center to learn more.  This is of course something counterproductive towards a single user, but for the best of the community. Seeing as individual users are barred from asking further questions they go looking for ways to regain that ability. The solution for that always boils down to getting a positive record again. Something that can be achieved by improving ones existing questions, or adding new positively scored questions to your account. The latter should not be a viable option, as the user is at that point banned from asking new questions, with the exception for one new question every 6 months. Recently in a comment thread a user proposed the following way to redeem yourself from a question ban:  ...you can ask questions anonymously(without logging in somesites), then after receiving the upvotes (1 is sufficient), you can request a merge which will be done immediately  It is true that in some cases an . This is something that isn't very well documented at all (which might be for the best of it). I wonder if this is currently a viable option to get your question ban lifted. I, for obvious reasons, don't feel like testing this in practice. Therefore any "official" answer is appreciated.


How many associative binary operations for a set of two elements?

Suppose we have a set  $S=\{a,b\}.$ Obviously, the total number of binary operations on $S$ is the number of all the pairs such that $$*(a,b)=a \, \text{or}  \, b,$$ which gives  $ 2 \cdot 2 \cdot 2 \cdot 2=2^4$ possible ones. Is there a way to find which of these $16$ binary operations are associative without writing all the operation matrices and checking it by hand?


US Citizen with UK resident visa - want to travel to Cuba

I am a US citizen but I live in the UK. I have called the Cuban consulate in London and was informed that I am allowed to travel to Cuba, as long as I get the permit.  I worry that due to the Embargo it will bring penalties later on when I enter the US.  Does anybody have any advice on this?


How can I see the queries (SQL statements) that are generated when I modify or edit the records of a PostGIS table, inside QGIS?

This is the DB manager, and it shows only the history of the statements that were used, but it does not show the records of the modified data in a table. How do I see the history of the statements made in the database when modifying records?


Thiessen Polygon delineation within a Feature

I am trying to create Thiessen (Voronoi) polygons, based on points within a defined shapefile extent. The output should be inclusive to the feature.  The output I receive now is the rectangular area around the selected points.    Steps I am using: 1. select points of interest (inside and outside spatial extent) 2. set primary display field to FID (aka:ObjectID) 3. Environment… > Set 'Analysis Mask' to shapefile with feature (in this case, a watershed)  Now here is where the problem starts. I have a set of instructions for arc 9.3, but I am now operating on ArcGIS 10 (Spatial Analyst installed & activated). Also, just to clarify, I did scour the inter-webs for some number of hours- Esri support, gis.SE, Professor Google...  ########  9.3.1 version: Spatial Analyst >> Distance >> Allocation - set 'Assign To' as point shapefile of selected data - set cell size  10.0 methods tried: Analysis >> Create Thiessen Polygons -- Many variations of selected features -- File locations, both inside and out of file geodatabase  I am open to any solution, using Arc 10.0 and/or python would be ideal.  The first image is an example.  The output does not need to be exact.  wiki:


Trouble installing Pokerstars on a Live USB without Persistence through WINE

I need to install any form of Texas Hold Em' on a Lubuntu Live USB that doesn't have persistence.  I was able to download PokerStars.net by emulating the .exe (a windows type file) using WINE for Linux (Lubuntu). But, when I try to install, I have no room. The only place on the Live USB is in the root folder which is set to read-only.  Is there any way I can change the read only properties of the Live USB while it's in use?  So, to recap. I am running Lubuntu 13.04 and can't start in Persistent mode. When I start normally everything worked fine. I proceeded to Chromium and successfully downloaded Wine and the Pokerstars.exe. I right clicked the downloaded fiel then clicked Wine, the installer loaded fine. There are about 8 different disk icons and only the one containing system files is active.  Is there any way I can use the terminal to install it to Root.


What's the most efficient iron golem farm design for SMP?

This takes into account size, materials required, and golems spawning and villager placement.  I'm aware that there's a design to spawn villagers and subsequently spawn iron golems when you reach around 12 villagers, but what's the most efficient design that utilizes the best of all of the above, yet is simply automated?


Is if __name__ == '__main__' in python same as the main() in java?

I am familiar with java but new to python and I wanted to know whether this piece of code is same as the main method in java if __name__ == '__main__'. Do all the python class need this code to execute. what if I did not have this code in my .py file. Will it throw any error message


I just installed Chrubuntu 14.04 LTS with unity and this is what happens when I try to run apt-get update.


What diagnostic plots (and perhaps formal tests) do you find most informative for regressions where the outcome is a count variable?  I'm especially interested in Poisson and negative binomial models, as well as zero-inflated and hurdle counterparts of each. Most of the sources I've found simply plot the residuals vs. fitted values without discussion of what these plots "should" look like.  Wisdom and references greatly appreciated. The back story on why I'm asking this, if it's relevant, is .  Related discussions:


Retrieve a string that was assigned into a random index inside of an array

So I need to locate where the "Nut" string is stored at. I thought my code would work just fine but obvious the ide just keep throwing me an error.    Random rd = new Random(); String[] hidingSpots = new String[100]; hidingSpots[rd.nextInt(hidingSpots.length)] = "Nut"; System.out.println("The nut has been hidden ..."); int nutLocation = 0; while (nutLocation < hidingSpots.length) {     if (hidingSpots[nutLocation].equals("Nut")) {         System.out.println("Found it! It's in spot# " + hidingSpots[nutLocation]);     }     nutLocation++; }


I found a file path, but I can not open it

I am using ubuntu terminal on my windows 10. I cloned a project, and I have been working on it inside VSC for a week now. I finally closed the program, and when I open it again I could not find my files even in recent. In ubuntu terminal, I found the directory and when I do yarn run dev the website opens with all the changes. I found the path using ls | xargs realpath and but I can not find it in my computer to open it in VSC. this is the path /home/'my user name in github'/'project-name'


The memory used by jvm increasing slowly.   use 'top', 'RES' is increasing slowly.    use 'jstat' to check heap memory:    heap memory is normal.  use 'jstack' print the thread info, about 180 threads and seems no problem. so stack memory is also OK.  other info:  java version "1.8.0_152"  jvm startup params: -Xms4096M -Xmx4096M -Xmn2048M -Xss256K -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=256M -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5 -XX:-OmitStackTraceInFastThrow -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=256M  Anyone can tell me some suggestions to solve this promblem?


Converters between formats in different journals

Often, a paper is submitted to a journal, rejected, then sent to a different journal. Each journal has different style guides. In theory, changing the style should be as easy as changing the document class. But in practice, this is never that easy. Each journal has several peculiarities such as: how exactly the author names are specified, how keywords are specified, whether "cite" or "citep" or "citeN" should be used for citations, etc.   After doing such technical changes manually several times, I wonder: are there any automatic converters that take a LaTeX file in e.g. the format of e.g. ACM/Springer/Elsevier, and converts it to the format required by a different publisher?


(Java) How do you generate a random integer between 1 to 4 using SecureRandom

An assignment I'm working on right now needs to generate a random number from 1 to 4 using SecureRandom that will be used for a switch statement. Cases have to start from 1 so I can't just use  SecureRandom rand = new SecureRandom(); int a; a = rand.nextInt(4);   right? I have to use SecureRandom to generate the integer as well.


GetProperties() to return all properties for an interface inheritance hierarchy

Assuming the following hypothetical inheritance hierarchy:  public interface IA {   int ID { get; set; } }  public interface IB : IA {   string Name { get; set; } }   Using reflection and making the following call:   typeof(IB).GetProperties(BindingFlags.Public | BindingFlags.Instance)    will only yield the properties of interface IB, which is "Name".   If we were to do a similar test on the following code,  public abstract class A {   public int ID { get; set; } }  public class B : A {   public string Name { get; set; } }   the call typeof(B).GetProperties(BindingFlags.Public | BindingFlags.Instance) will return an array of PropertyInfo objects for "ID" and "Name".  Is there an easy way to find all the properties in the inheritance hierarchy for interfaces as in the first example?


Technologies list (tag autocomplete) layout misalignment in My Profile in Stack Overflow Careers

Here's a screenshot of the error shown for the list layout alignment issue. I don't know what it is called, so I did my best.  I'm using Google Chrome version 38.0.2125.104 m, telling me that I'm up-to-date.   If it's a browser issue, then I can't update it, as I don't have admin rights and had to go report this issue to the admin.


Install Ubuntu in Windows 10 (Lenovo Z-40 Laptop)

I was trying to install Ubuntu as a dual boot option from my usb disk but every-time i tried i failed. I went to UEFI mode of windows. Then I disabled the Widnows secure boot option and selected the primary boot as USB. However it starts the windows again rather booting from USB. I tried multiple times but run out of luck. Any suggestion? I really appreciate your help .. Thanks


Can i dualboot UBUNTU 12.04 64 bit along with WINDOWS 7 32 bit?

I want to install ubuntu 12.04 64bit along side with windows 7 32 bit. Is it possible?


How to describe parts of equations underneath them?

I want to describe parts of equation underneath them similar to this:    How do I go about doing this? I have the following code so far:  \begin{algin} A = \frac{B}{C} + \frac{D}{E} + \frac{G}{H} \end{align}


How do I put a new installed program on the dock?

I installed a new program but I can't find it. I want to put a shortcut on the dock. So how do I find the icon for the new program?


Understanding values of variable importance of Random Forest in R

As far as I understand, the mean decreased accuracy of a variable is calculated in each tree recording the out of bag error of the variable and subtracting the out of bag error for the same sample used to construct the three but with the values of the variable permuted, then the differences across all trees are averaged and divided between the its standard deviation.  Let's use as an example the iris data:  > iris.rf <- randomForest(Species ~ ., data=iris, importance=TRUE,proximity=TRUE) > importance(iris.rf)                 setosa versicolor virginica MeanDecreaseAccuracy MeanDecreaseGini Sepal.Length  6.116697  7.5435799  7.778538            10.613957         9.794883 Sepal.Width   4.164530  0.2126826  5.441507             4.765478         2.466190 Petal.Length 22.008324 34.2143904 28.077054            34.708242        43.264116 Petal.Width  22.593229 31.8538872 32.629733            33.842020        43.715771   So, what is the interpretation for the values of response variable? I guess that it's the same interpretation of mean decrease accuracy but just for the values of the response variable, in this case "setosa" , "versicolor" and virignica". I read the documentation of the randomForest package and didn't find any explanation about that point.


How can I transfer files from one HDD to another?

I have two HDD's installed in my PC with two OS viz. One is Ubuntu 20.04, and the other is Windows 10. Would it be possible to send files and/or folders from Ubuntu to Windows?


Split found files to run find -exec commands in parallel

I have a multi-level directory of jpegs that I want to optimise on a semi-regular basis (as things are added). The command I'm using jpegoptim is single-threaded so when I run the following, only one CPU core is engaged and it takes a long time.  find media -exec jpegoptim --strip-all {} +   Given there are so many files and I have 8 CPU threads available, can I split the workload so it's running on all of them?


Are dependent picklists supported in Lightning Components?

It's possible to define dependent picklist in the setup and the are supported out-of-the-box in Visualforce.  Are they also supported in Lightning natively? Is it on the roadmap to support them soon? If not: is there a best practice or a easily reusable workaround available right now?


I know how to edit the user and select "change picture" But, when I click on "change picture", I am redirected to gravatar!  The duplicate answer is outdated, since other users on Area 51 have pics]  Also the problem described in the question marked as a possible duplicate differs from the one described here. It appears the other user made the change, but it didn't take effect.


Is there a Visual Studio style tool/IDE?

I have been developing in the windows space with Visual Studio for a while now with work, but I have also been using Ubuntu for a while and am keen to get into some software development for linux.  I should also note. I am not looking for .NET and I am aware of mono. I am also familiar with c++ development and some python, so the language isn't so much relevant as the "all in one" aspect.  I was interested to know if there is a useful all in one code/debug/design(gui) IDE similar to something like Visual Studio but for linux?