Switch from OpenID to a Stack Exchange login

When I started using Stack Exchange sites several years ago, I logged in using Google since I wasn't sure I wanted yet another login. Well, at this point I value my Stack Exchange identity more than my Google identity, and I'd like to sever the connection.  I know you can add logins in the My Logins section of your settings, but I don't see a way to "add" the Stack Exchange login option I see in the new sign up screen.  Can this be done?


The company's annual revenues rose by 30%.  I'd like to ask if the preposition by there is indispensable. Is it wrong with it left out?


Grub not loading config file or booting into linux automatically

I was trying to dual boot elementary os with windows on my laptop (Asus Zenbook UX305). To do that I shrank the windows partition using the windows disk manager, and then used the Elementary installer's "install alongside windows" option to set up the linux partitions automatically. When I rebooted after installing I was put into the grub console. I was able to boot linux manually with the commands  grub> set root=(hd0,gpt4) grub> linux /boot/vmlinuz-3.19.0-26-generic root=/dev/sda4 grub> initrd /boot/initrd.img-3.19.0-26-generic grub> boot     and I found that running the command  grub> configfile (hd0,gpt4)/boot/grub/grub.cfg   would load the normal grub menu as is supposed to happen - so there don't seem to be any problems with the config file itself. I also found that the root and prefix are on (hd0,gpt1), so running  grub> set root=(hd0,gpt4) grub> set prefix=(hd0,gpt4)/boot/grub grub> insmod normal grub> normal   also loaded the normal grub menu. So possibly the problem is that grub is looking on the wrong partition?  In my BIOS, I have a choice between using grub and the windows bootloader to boot. Selecting the windows bootloader boots me directly into windows without any problems.  However, I can't find any way to get any fixes to stick after a reboot. I've tried rerunning grub-install /dev/sda, recreating the config file with grub-mkconfig, and using the Ubuntu boot repair gui tool - none of these have worked. Is there any way to fix this short of reinstalling either or both OSs? I'd rather not have to reinstall windows if possible.


Is it rude to remind an editor about a manuscript submission still waiting for an invitee after 2 months?

An original work has been submitted about 2 months ago to a journal thru their online interface and its status is still locked into "editor invited". Would it be rude to remind them about this?  Oddly I've talked to the editor sometimes before sending my manuscript and she was always quick to reply, so I guess this status has to do with looking for another editor specialized in that field or for reviewers? I fear this may cut down chances for paper to get published.  Thank you  Edit: I've seen that similar topic about 3 months but I believe it's different since it refers to a larger timeframe and a different, more advanced status in the peer-review process.


Copying folders from one repository to another

I have the following SVN structure:  iPhone -> Project A -> trunk, branch, tags  iPhone -> Project B -> trunk, branch, tags  iPhone -> Project C -> trunk, branch, tags  iPhone is a repository, the other levels are just folders within the repository.  I wish to change this structure so that each project is within its own repository. How do I do this whilst maintaining the version history? Is it possible to dump on a specific folder within a repository and then load that folder back in to a fresh repository?  Thanks,  Joe


Posts deleted since 2nd June 2014 can no longer be found via a search of `deleted:1`

As a mod on  I often do a search of deleted:1 to see what posts have been removed that I may not know about, or to refresh my memory of any spammy nonsense. Just doing a general check of the state of the site to see what's been going on.  However, doing so today I am not seeing anything since the end of May 2014.  A check with the mods from some other sites seem to say this is happening elsewhere too.   No deleted posts on Webapps since 1st June No deleted posts on DIY since 1st June No deleted posts on Programmers since 1st June   And even on StackOverflow the last one to appear in deleted:1 search is from the 2nd June.  So what is going on? Have they been completely expunged from the known universe? Or is the deleted:1 search string no longer the one to use - and if so, how do we find deleted posts nowadays?


Consider equations defined in $D_x = (0,\infty) \times (0,\infty)$  1) Find the maximal solution to  $$ \dot y = \frac{3t^2}{5y^4} $$ satisfying the initial value problem $y(1) = 2^{\frac{1}{5}}$  I have found the maximum solution to be $((0,\infty), (t^3+1)^\frac{1}{5})$  2) Find the maximal solution to   $$ \dot y = -\frac{2y}{5t}+\frac{3}{5y^4}$$  satisfying the IVP $y(1) = 2^{\frac{1}{5}}$.  (HINT: Use a transformation of the form $t^{\alpha}y(t)$.   I hope someone can explain how to use the transformation to find the maximal solution.


I have no idea how to do this. Any help would be appreciated. The chapter I'm on is about differentiation and the mean value theorem.  Prove $a^\alpha b^{1-\alpha} \le \alpha a + (1 - \alpha)b, \; a,b > 0,\; 0 < \alpha < 1$


Getting below NullpointerException in java library. I suspected that issue is due to updating combo Box values asynchronously in background thread after user logged into application.  Note: this issue is getting in production. Any workaround or fix would greatly appreciated.       Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException                         at              javax.swing.DefaultListCellRenderer.getListCellRendererComponent(Unknown Source)             at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(Unknown Source)              at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(Unknown Source)     at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.getMinimumSize(Unknown Source) at javax.swing.JComponent.getMinimumSize(Unknown Source)                         at java.awt.FlowLayout.minimumLayoutSize(Unknown Source)                         at java.awt.Container.minimumSize(Unknown Source)                         at java.awt.Container.getMinimumSize(Unknown Source)                         at javax.swing.JComponent.getMinimumSize(Unknown Source)                         at javax.swing.BoxLayout.checkRequests(Unknown Source)                         at javax.swing.BoxLayout.preferredLayoutSize(Unknown Source)                         at java.awt.Container.preferredSize(Unknown Source)                         at java.awt.Container.getPreferredSize(Unknown Source)                         at javax.swing.JComponent.getPreferredSize(Unknown Source)                         at java.awt.FlowLayout.preferredLayoutSize(Unknown Source)                         at java.awt.Container.preferredSize(Unknown Source)                         at java.awt.Container.getPreferredSize(Unknown Source)                         at javax.swing.JComponent.getPreferredSize(Unknown Source)                         at java.awt.BorderLayout.layoutContainer(Unknown Source)                         at java.awt.Container.layout(Unknown Source)                         at java.awt.Container.doLayout(Unknown Source)                         at java.awt.Container.validateTree(Unknown Source)                         at java.awt.Container.validateTree(Unknown Source)                         at java.awt.Container.validateTree(Unknown Source)                         at java.awt.Container.validateTree(Unknown Source)                         at java.awt.Container.validateTree(Unknown Source)                         at java.awt.Container.validate(Unknown Source)                         at javax.swing.RepaintManager$3.run(Unknown Source)                         at javax.swing.RepaintManager$3.run(Unknown Source)                         at java.security.AccessController.doPrivileged(Native Method)                         at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP                 rivilege(Unknown Source)                         at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)                         at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)                         at java.awt.event.InvocationEvent.dispatch(Unknown Source)                         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)                         at java.awt.EventQueue.access$500(Unknown Source)                         at java.awt.EventQueue$3.run(Unknown Source)                         at java.awt.EventQueue$3.run(Unknown Source)                         at java.security.AccessController.doPrivileged(Native Method)                         at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP                 rivilege(Unknown Source)


How to extend Raster layer without pixel value data losing

I got 2 different raster layers one of them black and white representing the river road. This river raster has pixel values stand for height. I want to extend the size of river in order to show, if the water increases which areas would be under the water But i don't know how to extent, Also the areas outside of the river raster(transparent in the picture) has no data values. Pixel values in extended areas should have pixel values same as nearest river pixel value. I guess i have to do it with raster calculator. But i can not find out how to code this.


Can I take a 24" computer monitor on board?

I am not a frequent traveler, at least not yet.  I would like to know if a 24" computer monitor in its original box the size of a large luggage would be allowed on board a plane even for an extra charge?  Moreover, I'd like to know what are the safest (and hopefully not expensive) ways I could ship the monitor.  PS: I would prefer to ship it as an extra check-in but I am afraid it gets damaged at some point due to mis-handling especially at the destination airport as I know for a fact that luggage is not well handled at the destination I will be arriving at.  This will be a one-time shipment. And it is one package.  Dimensions as provided by supplied: 53.2 x 35.1 x 4.57 cm (L x H x W)  Weight: ~ 8.5 kg  Item purchased from Amazon.fr:   PS: Original box has cardboard not foam frame.   Shipping origin: EU  Shipping destination: Middle East.  alternative idea 1: I think that taking it as hand luggage without the box would be possible as the monitor can be pivoted in landscape and portrait mode. Moreover the stand can be detached. The main weight is in the stand. Suggestions for protection and transport bag would be appreciated.  alternative idea 2: Detaching the screen and packing it in the luggage between clothes would probably keep it safe? And taking the stand as hand luggage along my backpack.


Replace all occurrence of character except first one

I have a text file as follows:  test1,test2,test3 test4,test5 test6,test7,test8,test9,test10 test11,test12,test13,test14   How can I replace commas with semicolons, starting with the second one (and continuing to the last one)?  I want to get output as follows:  test1,test2;test3 test4,test5 test6,test7;test8;test9;test10 test11,test12;test13;test14


How can i activate the alpha on Blender Render?

I already activated the transparency, the alpha, what i'm missing? if i see the texture preview it looks like it doesnt have a background, but when i render it it still appears. Help please!


After posting an answer, I noticed this alignment issue:        Browser: Google Chrome  As you see, the word "ok" on top-right is out of range. Can this please be fixed?


Can I visit the UK with Italian stay permit?

My wife and kids are Italian citizens.  Can I visit the UK with my stay permit without a visa?


Are melee combatants limited to standing around saying "I attack"?

Recently I heard a friend saying that melee combatants had fewer options than 4e or 3.x:     Ranged combat was somewhat interesting in that you could deal with   cover, aiming, and so forth. Fighters had no options other than "I attack". Rogues   ended up in a cycle of "Turn 1: hide. Turn 2: Sneak Attack. Repeat   till it's dead." You can dash, but that's only once. You can try to get Advantage, but chances are you won't get the opportunity (!). So basically a melee fight boils down to charging up to an enemy, then standing there and saying "I attack" every turn.   He went on to say that in 4e, Fighters and Rogues had as many options as Wizards in terms of Powers and in 3.x they had more options where you could trade attack for damage and so forth, but there were no such options in 5e.   I haven't played any melee classes in D&D 5e, so I'd like to know: is he right? Are melee combatants pretty much just limited to running up to an enemy and saying "I attack"? Or do they have other options that my friend didn't consider?


What is the best way to block ocsp.apple.com on mac?

There seems to be some bug where mac os is constantly contacting . You can prevent it by turning off the wifi, but then your computer is nothing more than a fancy calculator. Is there a program, vpn, or even the firewall option, to block this site from the whole os?


Allow "equiping" different types of hats at the same time

This is a longshot, and probably not worth it for a feature that's only available for a short period. However, it would still be cool to allow us to use hats as equipment. The different hat selection gets nicer year after year. It would be nice if I can have the sword, belt, and a hat for example. It can be something like:  1 handheld (ex. guitar, sword, flag) 1 headgear (ex. hats, hair, face accessories) 1 body gear (ex. bouncer, belt) 1 misc - anything that doesn't fit in the previous categories (ex. , , )


Any extrusions (including solidify modifier) only extrude faces in global y axis, rather than using normals

I'm trying to create a shirt for a model by extruding some faces out a bit, but no matter how hard I try, the faces won't extrude properly. I've scoured the internet already, but haven't had any luck finding a solution. I'll add the download for the file if you want to see for yourself.  As you can see, the normals on my mesh are correct. There aren't any duplicate verts or faces.    But when applying any extrusion or solidify, the generated faces only scale out in the y axis.    Here's the link to download.


Snap an inset face to edge instead of in the center?

I'm insetting a face and I want it to inset towards an edge instead of just insetting in the center. I know there is a way to achieve this. How do I do this? Photo 1: default inset Photo 2: Desired result (in this instance I just movied the insetted face down after inset)


What concept does an open set axiomatise?

In the context of metric (and in general first-countable) topologies, it's reasonably clear what a closed set is: a set $F$ is closed if and only if every convergent sequence of points in $F$ converges to a point also in $F$. This naturally generalises to the definition of a closed set in an arbitrary topological space using the concept of limit points... but limit points are defined in terms of open sets, which are, to me, somewhat more mysterious than closed sets.  I was once told that ultrafilters axiomatise the concept of (sets of) big sets. I'm hoping here to find a similar conceptual picture of topologies defined by systems of open sets, preferably without reference to closed sets. One such explanation I've seen is that open set axiomatise the concept of nearness, which, I suppose, is fair enough at least for metric topologies. Indeed, if something is "happening" at points near $x \in X$, then it's usually the case that every open neighbourhood $U \subseteq X$ of $x$ contains an open subset $V \subseteq U$, $x \in V$, such that the something "happens" at all points in $V$. But what about non-metrisable topologies, particularly the coarse ones where there are no "small" open sets?  Consider, for example, the Zariski topology on affine $n$-space $\mathbb{A}^n$. $\mathbb{A}^n$ is irreducible, so every non-empty open set is dense. It seems reasonable to interpret this to mean that every non-empty open set is "large". Indeed, if we work over the complex numbers, then in the usual metric geometry, Zariski-open sets are unbounded and have full measure, so are very large indeed, so I don't think it's fair to say that open sets are capturing the notion of nearness here.  I'm also curious about the history of point set topology. When were the axioms first written down? What were the first "non-geometric" examples of topological spaces — "non-geometric" here referring to either non-metrisable topologies or topologies on sets other than sets of points of some intuitively geometric object — and were they part of the motivations for creating point set topology?


try {            tch (IOException e) {                System.out.println("Test d");             }      When i run the above code i get below exception.Exception in thread "main"     java.lang.NullPointerException at test.testing.main(testing.java:28)         I am trying to access data from excel and run the test cases.   I am new to java and selenium. How to resolve this issue.  please help   Not able to understand where is the mistake in the code...


Is Assignment of Arrays using Array[index] mutating Array Copys?

im a JS beginner and I'm a bit confused of this code: let array = ["string1", "string2"] let arrayCopy = array array[0] = "changedString" console.log(arrayCopy) // Returns Array ["changedString", "string2"]  Why is the assignment of Array also mutating the copy?


What is the difference between sh and ./ when invoking a shell script?

I see people running shell scripts by typing ./scriptname. Now this seems to be the default way, since I have seen it so often, however occasionally, but not rare, I see them type sh scriptname. Is it just a matter of preference or is there a more significant difference between ./ and sh ?


Not able to run 'Firefox Quantum 63.0 (64-bit)' and 'Firefox Developer Edition 64.0b4 (64-bit)' at the same time on Windows 10 Home Single Language OS

I've a laptop on which Windows 10 Home Single Language 64-bit Operating System is installed.  I've installed the web browser 'Firefox Quantum 63.0 (64-bit)' on this laptop.  Then, I installed the web browser 'Firefox Developer Edition 64.0b4 (64-bit)' on this laptop.  I downloaded the 'Firefox Developer Edition 64.0b4 (64-bit)' installer file from the web browser 'Firefox Quantum 63.0 (64-bit)' and started the installation process by clicking on the downloaded installer file.   During the installation process only a dialog box appear having the below message :     Firefox is already running, but is not responding. The old Firefox   process must be closed to open a new window.   Then I closed the web browser 'Firefox Quantum 63.0 (64-bit)' and then the installation of web browser 'Firefox Developer Edition 64.0b4 (64-bit)' got done.  Also, when I open one of the both browsers and then try to another browser the dialog box with the same message appear, I've to close the opened browser and then the other browser can be opened.  Few days ago, this was not the problem on my laptop. I was able to use both the Firefox browsers at the same time on my laptop. But, I don't know why and how this problem suddenly started.  For your reference below is the    Locations of the .exe files at which both of these browsers are installed are as below :   'Firefox Quantum 63.0 (64-bit)' : "C:\Program Files\Mozilla Firefox\firefox.exe" 'Firefox Developer Edition 64.0b4 (64-bit)' :  "C:\Program Files\Firefox Developer Edition\firefox.exe"


Global or Singleton for database connection?

What is the benefit of using singleton instead of global for database connections in PHP? I feel using singleton instead of global makes the code unnecessarily complex.  Code with Global  $conn = new PDO(...);  function getSomething() {     global $conn;     .     .     . }   Code with Singleton  class DB_Instance {     private static $db;      public static function getDBO()     {         if (!self::$db)             self::$db = new PDO(...);          return self::$db;     } }  function getSomething() {     $conn = DB_Instance::getDBO();     .     .     . }   If there's a better way of initializing database connection other than global or singleton, please mention it and describe the advantages it have over global or singleton.


Is there a limit on the number of USB devices you can plug into a laptop when using a USB hub?

I'm fairly sure the answer is no... but had a few random issues recently when plugging in around 5 complex devices (i.e. hard drives, printers) into a laptop via a USB Hub when it already had about 5 dumb devices connected (chargers, keyboard, mouse etc.).  Some of the random issues I've noticed is that not all devices are picked up when plugged in via the USB Hub. The USB Hub seems to be limited to one or two complex devices and the other complex devices need to be plugged into their own USB directly on the laptop.  I'm trying to figure out if this is standard hardware behaviour or just a dodgy Chinese product from eBay :-D


Is my proof correct? Iwant to show that $\operatorname{Ass}_R(\dfrac{R}{xR})=\operatorname{Ass}_R(\dfrac{R}{x^3R})$

I want to show that   $$\operatorname{Ass}_R\left(\dfrac{R}{xR}\right)=\operatorname{Ass}_R\left(\dfrac{R}{x^3R}\right)$$  where $x\in R$ is a non-zero-divisor and non-unit element and $R$ is a Noetherian ring.  To proof this exercise, I've been used these two short exact sequences:  $$0\to\dfrac{R}{x^2R}\to\dfrac{R}{x^3R}\to\dfrac{R}{xR}\to0$$  and  $$0\to\dfrac{R}{xR}\to\dfrac{R}{x^3R}\to\dfrac{R}{x^2R}\to0.$$  From the first sequence we have:  $$\operatorname{Ass}_R\left(\dfrac{R}{x^2R}\right)\subseteq\operatorname{Ass}_R\left(\dfrac{R}{x^3R}\right)\subseteq\operatorname{Ass}_R\left(\dfrac{R}{xR}\right)\cup\operatorname{Ass}_R\left(\dfrac{R}{x^2R}\right)=\operatorname{Ass}_R\left(\dfrac{R}{xR}\right)$$  and second one gives us:  $$\operatorname{Ass}_R\left(\dfrac{R}{xR}\right)\subseteq\operatorname{Ass}_R\left(\dfrac{R}{x^3R}\right)\subseteq\operatorname{Ass}_R\left(\dfrac{R}{xR}\right)\cup\operatorname{Ass}_R\left(\dfrac{R}{x^2R}\right)=\operatorname{Ass}_R\left(\dfrac{R}{x^2R}\right).$$ So we have the equality.


Java socket array (custom class) returns null pointer exception

I created a custom class for sockets:  class clientSocket{      Socket clientSocket = null;      public clientSocket() {      }      void accept(ServerSocket welcomeSocket) throws IOException{         clientSocket = welcomeSocket.accept();     } }   When I try to use it in my server class like below, it throws a null pointer exception:  ServerSocket sSocket = new ServerSocket(1234); clientSocket[] client = new clientSocket[3]; client[0].accept(sSocket); //this throws a null pointer exception.   Any idea why the 3rd line throws that null pointer?


A period between an abbreviation and other punctuation?

What rules apply to punctuation for an abbreviation, such as "etc," where another punctuation character follows?  My question is a perfect illustration of itself! That is, should I say  << such as "etc," where >> or << such as "etc.," where >>  Another example is "etc" followed by a right parenthesis:  << (lions, tigers, bears, etc) were >> or << (lions, tigers, bears, etc.) were >>  The period looks even worse at the end of a sentence.  << lions, tigers, bears, etc! >> or << lions, tigers, bears, etc.! >>  I omit the period because it just looks right. But most spelling checkers mark "etc," as wrong as "etc.," as right.  The primary authority at my workplace is the Microsoft Manual of Style for Technical Publications, 3rd edition. I looked there but found no guidance.


For the below code, why the value of cellSide is not 0.80000000000000000 but 0.80000000000000004.  /*****Additional info ******* *#define RADIUS 4 *double cellSide = 0.0  ; *int iCelleParameter=10; *****************************/  cellSide = 2 * RADIUS / (double)iCelleParameter;


I want to use color inside verbatim, so the answer here is exactly what I want to use: , however I would like to use more complex commandchars (from the answer to the question I just linked), so instead of having 1 character for each commandchar, I could use perhaps 3 consecutive characters to express 1 commandchar. This because the contents inside the verbatim will be programming code and I would like to make sure that it does not contain any character that LateX might interpret as a commandchar.  Is this possible?


Proof that $\bigcap_{a\in A} \bigg(\, \bigcup_{b\in B} F_{a,b} \, \bigg) = \bigcup_{f\in ^AB} \bigg(\, \bigcap_{a \in A} F_{a,f(a)}\,\bigg) $

I found an interesting exercise of other amazing book (Jech's) that I'm not totally sure about how to do it.   Prove the following form of the distributive law:   $$\bigcap_{a\in A} \bigg(\, \bigcup_{b\in B} F_{a,b} \, \bigg) = \bigcup_{f\in ^AB} \bigg(\, \bigcap_{a \in A} F_{a,f(a)}\,\bigg) $$  Assuming that $F_{a,b_1} \cap F_{a,b_2} = \emptyset $ for each $a\in A$ and $b_1,b_2\in B$ and $b_1\not=b_2$.  First of all, I'm not completely sure about what $ F_{a,b}$ really means. I suppose that is  the range of a family with a domain $A \times B$.    And second, I cannot figure out how to do the converse (assuming that the first part it is correct, I used as normal in this kind of proof element chasing)  Proof:  ($\Rightarrow$) ...  ($\Leftarrow$) Suppose that $z\in \bigcup_{f\in ^AB} \big(\, \bigcap_{a \in A} F_{a,f(a)}\,\big)$; then there is $f\in \,^AB$ such that $z\in  \bigcap_{a \in A} F_{a,f(a)}\, $. Let $a \in A$ be arbitrary.   Claim 1 $\, \bigcap_{a \in A} F_{a,f(a)}\subseteq F_{a,f(a)} \subseteq \bigcup_{b\in B} F_{a,b}$.  Proof of the Claim 1:   For the first inclusion: Suppose $z\in\bigcap_{a \in A} F_{a,f(a)}$; then for each $a\in A$ we have that $z\in F_{a,f(a)}$. Then $\bigcap_{a \in A} F_{a,f(a)}\subseteq F_{a,f(a)}$.  For the second inclusion: Now suppose $z\in F_{a,f(a)}$. Clearly $f(a)\in B$ because $f\in ^AB$. Then there is some $b\in B$ such that  $z\in F_{a,b}$ and hence that $z\in \bigcup_{b\in B} F_{a,b}$. $\square$  Since $a$ was arbitrary it follows that $z\in \bigcup_{b\in B} F_{a,b}$ (by claim 1) for each $a\in A$ and hence  that $z\in \bigcap_{a\in A} \big(\, \bigcup_{b\in B} F_{a,b} \, \big)$ as desired.  I really, really would very much appreciate some help with that. Thanks in advance as usual.


How can I delete my question on Stack Overflow?

I cannot delete my own question on Stack Overflow. When I try, I get the following error message:     Sorry, this question cannot be deleted: too many existing answers, or upvoted/accepted answers   (click on this box to dismiss).


How to run my Xcode application by using iPhone?

I have an iPod touch 6th generation. I need to run my application using actual device. I dont have a  purchased apple ID. I need to test my application without using purchased apple ID. Please give me good guidelines step by step.


I have about 300,000 CSV files which I want to convert to shapefiles, but ArcGIS and QGIS can only convert one CSV at a time.  Are there any ways to batch convert my CSVfiles?  x y z1 z2 z3 z4 1 2 3  4  5  6   My csv files just have a few columns like above  Can any one help me?


What's the easiest way to access pure raw data (without demosaicing)?

What is the simplest way to access the data in a raw file before demosaicing and write it to a more widely supported file format (e.g. 16 bit TIFF)?  I'm looking to obtain a single channel image where each pixel corresponds to a single pixel on the sensor (regardless of what colour filter it had in front).  The not so simple way would be digging into some open source RAW processing libraries and using code from there.  Is there a simpler way (e.g. a command line tool)?


Flying from Amsterdam to Zurich - do I need a passport?

I just arrived in Amsterdam (by train) and realized I left my passport home in Switzerland. I am a US citizen residing in Switzerland, and I have my Swiss resident permit with me. I have a flight back to Zurich in a few days, and I'm wondering if I'll have any trouble with passport checks when flying. In theory because both countries are part of Schengen and I have a residence permit in a Schengen country, it should be fine, but I'm wondering if anyone has firsthand experience about this situation. Is there any real risk?


My is there sound in this world whenever two (or more) things collide with each other?  Examples   When two cars collide When something with enough mass falls from a height When small drops of water fall into the any water container   There are so many things associated with a collision; why is Sound one of them?  This question is related to Earth’s atmosphere only, not vacuum.  This question is for sound related to collisions only. No vibrations.


Is there any way to add HTML markup signature in Gmail settings? I mean, insert some HTML markup without using rich editor, just inserting HTML?


Prove or disprove that A and B are similar matrices

I have the matrices:  $A = \begin{pmatrix} 3 & 1 \\ 0 & 2 \end{pmatrix}$  $B = \begin{pmatrix} 4 & 1 \\ -2 & 1 \end{pmatrix}$  Now, how can I check if they are similar or not? I tried to diprove that they are similar by checking if their determinants, trace and rank is equal, they are so what can I do from here?   Thank you in advance.


How to make an inserted figure's frame gradually fade?

I have a document, whose background is, needless to say, white. Generally, I am OK with just inserting a figure like this.  \begin{figure}     \centering     \includegraphics[width=\textwidth]{sample} \end{figure}   But now, I have a very black-background figure, who makes the regular insertion quite abrupt. Actually, the frame/edge of this figure is not important at all.  So I can afford to make the frame fade gradually to white. How can I do it?  MWE  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{mwe} % just for dummy images  \begin{document}  \begin{figure}     \centering     \includegraphics[width=\textwidth]{example-image} \end{figure}  \end{document}


I'm looking for a high current DC switch (able to switch something like 5V@30A) and I've encountered several DPDT that might do what I need, however they are only rated for AC applications (3A@250VAC or 6A@125VAC). Are these rating convertible to DC? or is that something that only the facturarer would know?


I would like to save my customised completion (user> customise completion) so that every time I close and re-open texmaker, I don't have to redefine it. How can I do that ?   Thanks in advance,


Who owns R2D2 and C3PO in Legends continuity?

covers the ownership of the droids in the "official" canon but I've never been entirely clear about their specific ownership in the other Star Wars properties out there.  Who owned the droids in the Legends continuity?


Java Null Pointer Exception (using Interface)

I have 2 classes and 2 interfaces in my project. In my main(), i have Null Pointer Exception on produce() function. I tried to do produce function to static but it didn't work for me well. Here is my codes, what's the problem ?  This is my CarProjectTest.java codes  import java.util.Scanner;  public class CarProjectTest{     private static int velocity;     private static double time;     private double price;     private CarDecorator carDecorator;     public static void main(String[] args){         String carType;         Scanner user_input = new Scanner( System.in );         // TODO initiate factory!         ICarFactory factory = null;         System.out.print("Lütfen üretilecek arabanın modelini giriniz: ");         carType = user_input.next();         System.out.println(carType);         System.out.print("Lütfen ortalama hızı giriniz: ");         velocity = user_input.nextInt();         System.out.println(velocity);         System.out.print("Lütfen zamanı giriniz: ");         time = user_input.nextDouble();         System.out.println(time);          ICar car1 = factory.produce(carType);          System.out.println("Price: " + car1.getPrice());         System.out.println("Message: " + car1.getMessage(90));         System.out.println("Fuel Consumption: " + car1.getFuelConsumption(100, 1.2));          /*car1 = AirConditioningDecorator(car1); // please read the name carefully and think about the hints         System.out.println("Price: " + car1.getPrice()); // Price should increase by 1000 TL          car1 = AutoShiftDecorator(car1);         System.out.println("Price: " + car1.getPrice()); */     }      //functions         public ICar produce(String carType){         if(carType.equals("TN100")){             carDecorator.setEngineVolume(1.33);             carDecorator.setWeight(768);             carDecorator.setPrice(20000);             carDecorator.setFuelConsumption(velocity, time, 5);                                    }         else if(carType.equals("TN200")){             carDecorator.setEngineVolume(2);             carDecorator.setWeight(900);             carDecorator.setPrice(25000);             carDecorator.setFuelConsumption(velocity, time, 7.2);                                                }         else if(carType.equals("TN300")){             carDecorator.setEngineVolume(2.4);             carDecorator.setWeight(1100);             carDecorator.setPrice(30000);             carDecorator.setFuelConsumption(velocity, time, 9);                                         }         return carDecorator.getDecoratedCar();                                         }  }   and there is my ICarFactory class  public interface ICarFactory {      public ICar produce(String carType);  }   This is the error what i take;  Exception in thread "main" java.lang.NullPointerException     at com.project.factory.CarProjectTest.main(CarProjectTest.java:25)  25th line is: ICar car1 = factory.produce(carType); in Test class


How to find if a point is inside a mesh?

I need a python script that would help me determine if a point is inside a cylindrical mesh.  I tried the .pointInside(point, selected_all=False) but it is deprecated in the newer versions of blender and google search yielded a couple of scripts (below) and they don't work for me.  Ray-casting method: ()  import bpy import mathutils def pointInsideMesh(point,ob):  axes = [ mathutils.Vector((1,0,0)) ]  outside = False  for axis in axes:     mat = ob.matrix_world     mat.invert()     orig = mat*point     count = 0     while True:         location,normal,index = ob.ray_cast(orig,orig+axis*10000.0)         if index == -1: break         count += 1         orig = location + axis*0.00001     if count%2 == 0:         outside = True         break return not outside print(pointInsideMesh( mathutils.Vector((3,0,0)),bpy.context.active_object))   And one described here ()  ## normals should be pointing out import bpy obj = bpy.context.object cur = bpy.context.scene.cursor_location.copy() cur = obj.matrix_world.inverted() * cur cpom = obj.closest_point_on_mesh(cur) vec = cur - cpom[0] dot = cpom[1].dot(vec) if dot < 0.0: print(dot, 'inside') else: print(dot, 'outside')


Why did the Half Blood Prince leave his book in the Potions dungeon?

Inspired by  I was wondering why the Half Blood Prince left his book as a class copy. One would think that it was precious to him, since he invested so much in it. He made up potions and spells up by his own. I would expect him to keep it to himself. Both, because of the personal value of it, and to prevent others to (as happened at last) use his work (misguided and/or against him).  Is there any canon explanation why his book was left as class copy?


I have two objects   article_category = ArticleCategory.objects.all() project_category = ProjectCategory.objects.all()   I want to merge these two in one so that I can access them with one object.  something like this.  category = add(article_category,project_category)    what is the way to do this in Django ?


When I use mathpazo and siunitx (version 2.3h) together, if I use \pi inside the numerical argument to \SI, it will show up in the output as "ß".  \documentclass{article} \usepackage{mathpazo, siunitx} \begin{document}     $\pi + \SI{\pi}{\ohm}$ \end{document}   Produces:    But when I don't use mathpazo:    Why does this happen and how can I fix it?


owl carousel not working after ajax load

i use jquery 1.11 and this code to ajax load wordpress post content in sidebar . everything is good but jquery functions of owl carousel not work and the carousel in post content not showing anything. ajaxify code to load post content:  jQuery(document).ready(function($){ $.ajaxSetup({cache:false}); $(".post-link").click(function(){     var post_link = $(this).attr("href")+' #content';     $("#single-post-container").html("loading ...");     $("#single-post-container").load(post_link); return false; });  });   How can i use .ajaxcomplete() function to load owl carousel after ajax load post. best regards.


By installing Ubuntu 13.04 on VMWare workstation 9 is running very slow on Host OS Win7

I have Core 2 duo PC, 2.1 GHz and with 4GB RAM.  I have Host OS Win7. I have nstalled Workstation 9 on it, and then Ubuntu 13.04 on to workstation 9. The working of Ubuntu 13.04 is very low. How can I enjoy good Ubuntu working with efficient speed?  Thanks Advance.


When does First Contact take place in relation to DS9?

Star Trek: First Contact was released while the television series Star Trek: Deep Space Nine was still running. When does the film take place in conjunction with the series. I know that it should take place in the fifth season, but is it during any specific episode? Are the events ever mentioned in the series, since Worf was in both?


It is known that when $n\rightarrow\infty$ the sequence $$\frac{n}{\sqrt[n]{(n!)}}$$ has limit $e$ but I don't know how to prove it's monotonicity. After a short calculus using WolframAlpha I found that this sequence is actually increasing. I tried to compare $2$ consecutive members but I couldn't manage to show something. It is obvious that $$\frac{n^n}{n!}$$ is increasing but that don't help us much (I think)


Influence of charged particle's own electric field on itself

I read this in my textbook: A charged particle or object is not affected by its own electric field.  Since I find this completely unintuitive and my mind is yelling "wrong! wrong! how could a particle even distinguish between its own field and the external fields?" I would really like to hear an explanation about why this is true, if it is.  (A corollary question that comes to my mind after thinking about this is... What about gravity and mass considering the analogous situation? And the other two forces?)


Input field value - remove leading zeros

I have a textbox in Javascript. When I enter '0000.00' in the textbox, I want to know how to convert that to only having one leading zero, such as '0.00'.


I would like to know whether I can replace my old v-brakes with disc brakes. Do I need to also change the wheels or something else?


Dynamic trigger creation from managed package

I have a requirement to create triggers dynamically after a managed package is installed. I have read that the tooling API can be used to create triggers dynamically however it cannot be used in production. Is it possible to create triggers from a managed package in an org? I want to be able to create the trigger based on some user inputs.


Finding the error in this proof that 1=2

I have a "proof" that has an error in it and my goal is to figure out what this error is. The proof:  If $x = y$, then  $$ \begin{eqnarray} x^2 &=& xy \nonumber \\ x^2 - y^2 &=& xy - y^2 \nonumber \\ (x + y)(x - y) &=& y(x-y) \nonumber \\ x + y &=& y \nonumber \\ 2y &=& y \nonumber \\ 2 &=& 1 \end{eqnarray} $$    My best guess is that the error starts with the line $2y = y$. If we accept that $x + y = y$ is true, then   $$ \begin{eqnarray} x + y &=& y \\ x &=& y - y \\ x &=& y = 0 \end{eqnarray} $$  Did I find the error? If not, am I close?


What is the best way to store ground coffee?

I know it's better to use freshly ground beans and not store it ground at all, but if I have no other choice, how can I best preserve ground coffee?   sort of asks the same thing, but the answers focus on storing whole beans, and the answers addressing ground coffee make it pretty unclear whether a cool cabinet, the fridge, or the freezer is the best place.


Is mating between human and non-human primates theoretically possible?

I wonder if it is theoretically achievable to produce living offspring between a human and a non-human primate. Great apes have 24 pairs of chromosomes compared to our 23, however, it is known that a mule is made from a donkey (62 chromosomes) and a horse (64  chromosomes). Are there other reasons why this human/non-human primate hybrid can't survive?


I know that we need placement new operator when memory for an object is to be allocated at a specfic memory location. e.g.   int* MemoryBuffer = malloc(sizeof(int)*10); MyClass* Object = new (MemoryBufer) Myclass;   Can't we simply do like this  MyClass* Object = reinterpret_cast<MyClass*>(MemoryBuffer);  Object will point to the memory allocated by malloc above.  Why do we need placement new operator, does it do the same thing or there is any difference?


According to two questions  and  asked on this site earlier there exists a nice relation:  $$\frac1{n!} \left(\int_{0}^t\mathrm dt \; f(t)\right)^n = \int_{0}^t\mathrm dt_1 \int_{0}^{t_1}\mathrm dt_2 \cdots \int_{0}^{t_{n-1}}\mathrm dt_n\; f(t_1)\,f(t_2) \ldots f(t_n). $$  Unfrotunatly I am more interested in integrals of the form  $$\int_{0}^t\mathrm dt_1 \int_{0}^{t_1}\mathrm dt_2 \cdots \int_{0}^{t_{n-1}}\mathrm dt_n\; f(t_n). $$  Can it be somehow brought to an unary integral?  All I have figured out by now is that  $$\int_{0}^t\mathrm dt_1 \int_{0}^{t_1}\mathrm dt_2 \cdots \int_{0}^{t_{n-1}}\mathrm dt_n\; t_n^m = \frac{m!}{(m+n)!} t^{m+n} .$$


What are best practices for choosing and pairing fonts?

I've always found font selection to be a little bit of a mystery. What factors should be considered when choosing a font? How does one successfully incorporate two fonts into a design?  I realize that some factors will include things like:   Legibility Scalability Appropriateness/Mood/Emotion   However, how does one objectively judge legibility or appropriateness? Are there objective principles that can be applied for font selection? If possible, please list resources or examples in your answers. Studies focused on the effectiveness of different fonts would also be extremely useful.


In Randall Munroe's What If, he says that "if you want to be mean to first-year calculus students, you can ask them to take the derivative of $(lnx)^e$" He says, as I would expect, that the result "looks like it should be $1$ or something, but it's not." Why is this? And what's the actual answer?


Is there an evidence-based study regarding the long-term psychological effects of spanking?

Any answers to this question I would hope would cite at least one reputable source; I'm really not looking for 40 opinions. As a nonspanker, I'm frequently surprised this is still in practice around the world--probably a majority. Most of my friends (including medical professionals and teachers) start out their defense/explanation "Yeah, but ..."  My concern is: everybody has a breaking point. Traumatic stress beyond a certain level damages the psyche, permanently. That point is different for each child, and once it's reached, you're child will never be the same. You don't know when you start spanking what the cut off is for causing emotional harm rather than "education." Does the evidence suggest my concerns are warranted?  I'm not trying to come across as judgmental, and I'm not looking for anecdotes. I'm wondering if there is bona fide long-term research on this subject. I'll even accept being soft if that's what the research suggests.


faster way between to ways of iterating through all the elements of a collection in C#

The language I use is C#.  Let we have a List of objects of type T,  List<T> collection = new List<T>{.....};   Say that we want to go over each item of collection. That can be done in many ways. Among of them, are the following two:  foreach(var item in collection) {    // code goes here }   and  foreach(T item in collection) {     // code goes here }   Does the second way be better than the first or not and why?  Thanks in advance for your answers.


What is the difference between map(func) and map(function(x) { return func(x); })?  Consider this example:    const lines = '1\n2\n3'; const result = lines.split('\n').map(parseInt); console.log(result )     This returns [1, NaN, NaN] which is not what I expected. However:    const lines = '1\n2\n3'; const result = lines.split('\n').map(function(x){ return parseInt(x)}); console.log(result)     returns the expected: [1, 2, 3]. What is the difference between  these two forms and why in the first example the result is not [1, 2, 3]?


Looking for a film about handling sadness to compare to the novel Norwegian Wood by Haruki Murakami

For a school assignment, I need to write an essay comparing the novel Norwegian Wood by Haruki Murakami to a film with a similar theme.   Over the course of the novel, the main character is torn with sadness, feeling responsible for his love of a girl which is now in a mental hospital, the suicide of an old friend, and the uncomfortability of growing into adulthood. The novel focuses mainly on its characters' thoughts and feelings due to past events (usually ones of sadness, a lust for another's warmth, or loneliness) rather than the events themselves.  In fact, almost all of the characters in the novel have some sort of life event which causes them to be haunted with sorrow for many years (for example, the suicide of a loved one), and each of them handle this emotion differently, either isolating themselves, ignoring them, or trying to face them. This is the theme I want to use as the point of comparison in my essay, how people handle their sadness, but I can't seem to find a corresponding film.  I've never really been into watching too many movies, I've been spending hours looking for a corresponding movie (that's not the official live action film) with no avail.   Is there any movie concentrating on the described themes?


Find out the number of months between two dates

I need to calculate accumulating leave for personnel. It grows by 1.25 days per month. What formula should I use to add 1.25 per month starting from the date of employment?


Colorize symbols with lstdefinelanguage in latex

I want to put some symbols in green color with lstdefinelanguage in latex, but it seems that symbols are not recognized.  The symbols I need to be colored are =, > and <. Is it possible? How can I do this?  The main file:  \documentclass{article}   \usepackage{graphicx,color} \usepackage{booktabs} \usepackage{listings}   \lstdefinelanguage{NeoIDL}{   sensitive = true,   keywords = [1]{module, resource, enum, annotation, for, import, entity, path,   @get, @post, @put, @delete, require, ensure, otherwise, call},   %ndkeywords={int, \char{}  },   %ndkeywordstyle=\color{blue}\bfseries,   morekeywords=[2]{>, <, ==},   keywordstyle=[2]\color{green},   numbers=left,   numberstyle=\scriptsize,   stepnumber=1,   numbersep=8pt,   showstringspaces=false,   breaklines=true,   frame=top,   comment=[l]{//},   morecomment=[s]{/*}{*/},   commentstyle=\color{purple}\ttfamily,   stringstyle=\color{red}\ttfamily,   morestring=[b]',   morestring=[b]"   }  \begin{document}  \begin{figure}[htb] \begin{small} \lstinputlisting[language=NeoIDL,firstnumber=1]{store_pos_servico.neo} \end{small} \caption{Service 1} \end{figure}   \end{document}   The file to be formatted:  module store {    (...)     resource order  {      path = "/order/{id}";       @post   int postOrder (Order order)     require (call store.getOrder(id) == "NotFound"),     otherwise "InvalidPrecondition"    }; }


Error while concatenating query for SQL in PHP

I am getting aerror while concatenating query for SQL in PHP     $query = "INSERT INTO bookings (date, start, userId) VALUES ('$booking_date','$booking_time','$_SESSION['userIdSession']');";   The single quotes '' in $_SESSION['userIdSession']        are causing this problem.  What is the right way to concatenate this string without getting error?  (I am beginner in PHP, do not down vote me)


how to list all python test scripts that contain "def test"

Want  to list all python test scripts  that contain  "def test"  This command line did not work while individual command works  find . -name "*.py" | grep "def test"


I was struck by PM Johnson's 'neither he nor I are' a few days ago, which seemed to me obviously ungrammatic, and searched this site, where I found this:    where the answer claims that 'neither you nor I is' is 'of course .. totally wrong,' and that it would have to be 'neither you nor I am,' since the verb is closer to 'I' than to 'you.'  I am unconvinced.  What are some authoritative sources on this issue? And is there really no authority, grammatic or literary, in support of 'neither you nor I is'?  My sense is that it must be 'neither you nor I is' and 'neither he nor I is.'  It seems to me that, regardless of what the pronoun closest to the verb is, the third person ''wins'' when there is conflict, even when the contestants are the 2nd & 1st persons.  (As regards the number of the verb, it seems to me that it must be singular, seeing as what is being denied is a statement about a singular thing, namely that (at least) one of two is something.)  NOTE that my bold-faced question has been implied but neither focused nor answered in the other post.


Environment Variables for Windows' Built-in Libraries?

Does Windows 7 define environment variables for pre-existing Libraries? I am curious because I often use these when typing a path in Open/Save dialogs or from the Run prompt. For example, to get to the current user's Firefox settings directory, run:  %APPDATA%\Mozilla\Firefox   It's a handy shortcut, and I was hoping to find something similar for library paths. For example:  %LIBRARIES%\Music\ %MUSIC%\   I understand that libraries aggregate one-or-more top-level folders, so there could be ambiguity. Microsoft has a  of environment variables, but most are not accessible via the Windows UI.  also links to a nice list, but does not include a user's Documents folder, Music folder, etc.


String compare against an element in a string vector in C++

I am trying to compare a string (ignoring case) against a specified element in a vector string (I don't want to see if the string exists anywhere in the vector, only if it exists at the specific index).    I have not been successful using a string compare as I normally would.  Any help would be appreciated.


Program options have sometime one or two dashes (-foo, --foo)

In gcc every command line arguments have one dash. In some other tools, options that are not a single character have a two dashes prefix.   Why is there two standards, which one is the most common?  Examples:   gcc -MF deps.d -c foo.c -o foo.o # Single dash gcc -dumpspecs                   # Single dash gcc --sysroot=dir                # Double dashes grep --recursive --only-matching foo bar # Double dashes


Visa expires before I-94 admit until date

My grandmother's visa expires two months before the admit until date on her I-94. Does she have to leave before her visa expires, or can she leave without any problems securing a visa in the future, a week before her I-94 admit until date?


Prove continuous function from R to Z is constant

$f$ is a continuous function from $\mathbb{R}$ to $\mathbb{Z}$.  Prove it is a constant. If $f$ is uniformly continuous, I'm able to prove it: If $f$'s domain is the empty-set or a single point, the matter is trivial.  Else, assume $f$'s domain is an interval including $x$.  Since $f$ is uniformly continuous, there exists an $\epsilon > 0$ such that for any $y$ in $(x-\epsilon, x+\epsilon)$, $|f(y) - f(x)| < 1/2$, and since both $f(x)$ and $f(y)$ are integers, $f(x) = f(y)$.  By induction and the Archimedian principle, we can extend to the entire interval of $f$'s domain. However, this fails if $f$ is not uniformly continuous, as the $\epsilon$s may vanish such that we never extend the interval to cover the entire domain. A different approach is to argue that if $f$ is not constant, then for any $\epsilon > 0$, there exists an interval with length $< \epsilon$ where $f$ must take on two non-equal values.  While I believe this to be true, I do not know how to prove it. One approach may be to ask "What is the smallest $\delta$ such that $f(x) \neq f(x+\delta)$?"  However, it is not clear that there needs to be a smallest $\delta$.  While I feel that any continuous function will indeed have such, I again don't know how to prove it. How can this be proven?


Weird Integration problem: $\int_{-2}^{2} \frac{x^2}{1+5^x}dx$

$\int_{-2}^{2} \frac{x^2}{1+5^x}dx$  I am stuck at the first step and have tried replacing $5^x$ with $e^{\ln(5^x)}$ but nothing simplifies out in the end.   Any hints how I should proceed?


Is there such thing as a bird with infrared vision?

I am writing a story and I specifically need a bird with infrared vision. Worst case scenario I just invent one but that would break the pattern in my story.   The closest thing I have seen from researching myself was this statement, "tawny owl's retina has about 56,000 light-sensitive rods per square millimetre (36 million per square inch); although earlier claims that it could see in the infrared part of the spectrum have been dismissed."  So apparently it was proven that the Tawny Owl (Strix aluco) does not have infrared vision. I couldn't find a better forum to ask this on (I don't know, is there a zoology forum?) so my last resort would be a biologist.


If the ls -l command gives me a permission string like  rwsr-s--x   What does the 's' mean? The only sources I found mention that it can be present sometimes but do not elaborate.  What does a '+' instead of a '-' mean? I have found mentions of 'extended permission' but nothing clear.


1GB memory, 90% free 70GB HDD 7200rpm, Intel Celeron (P) 330 2.66 GHz 533 FSB  installed Ubuntu 14.04.1 LTS 32 bit. It is slower than prior Windows XP 32bit OS.  what is wrong? may I improve performance?


How many invertible elements are there in $\mathbb {Z_ {990}}$ and $\mathbb {Z_ {1060}}$.

How many invertible elements are there in $\mathbb {Z_ {990}}$ and $\mathbb {Z_ {1060}}$ . Justify your answer. Hello, could someone explain to me how to find the invertible elements of a set as large as $\mathbb {Z_ {990}}$ and $\mathbb {Z_ {1060}}$ I thought about putting together the set and trying each one but it is very big and it can take forever


Can wavefunctions always be separated into a product of spatial and spin parts?

Firstly, I wanted to check. Can wavefunctions exist that are not in the form $\psi = \psi_{\mbox{spatial}}\times\psi_{\mbox{spin}}$? I am assuming you can have situations that are dependent on spin and so get a situation where a particle is either 'in position A and spin up' or 'in position down and spin down' so $|\psi\rangle = \frac{1}{\sqrt2}(|A\uparrow\rangle+ |B\downarrow\rangle)$, and thus not able to be separated. Also I wanted to check specifically that once you include spin-orbit coupling, the hydrogen atom eigenstates can no longer be in the form $\psi = \psi_{\mbox{spatial}}\times\psi_{\mbox{spin}}$. Wikipedia says that in this case the good quantum numbers can no longer be $l,j,s, m_l,m_s$ (which makes sense since e.g. $S_z$ does not commute with $L\cdot S$) but must instead be $l,j,s,m_j$. Therefore I would assume there could theoretically exist eigenstates with fixed $m_j$ but varying correlated combinations of $m_s$ and $m_l$ e.g. $|m_l=+1, m_s=0\rangle$ and $|m_l=0, m_s=+1\rangle$ (which indeed have fixed $l,j,s,m_j$, but cannot be separated into spatial and spin parts). Is this correct, or is there a reason why the wavefunction can still be separated into these parts?


I have written this code but getting NullPointerException

import java.io.*;  import java.util.Scanner;  import java.math.*;   class Sort {   public static void main(String args[]) {      class gint {         int N, n, s;         int ggn[];     }      gint gginta=new gint();     gint ggintb=new gint();     gint ggintc=new gint();      int i=0;     int j=0;     char c[];     String ss;     String sggn;     String sggnrev="";       System.out.println("enter the number of maximum digits of the number");     Scanner scan=new Scanner(System.in);     gginta.N=scan.nextInt();     System.out.println("enter the number exact digits of the number ");     gginta.n=scan.nextInt();     System.out.println("enter the sign of the number");      System.out.println("enter the number");     sggn=scan.next();      char temp[];     int l=sggn.length();      for(j=l-1; j >= 0; j--) {         sggnrev= sggnrev+sggn.charAt(j);     }     int x= Integer.parseInt(sggn);     System.out.println(sggnrev);     System.out.println(sggn.length());     int h;     System.out.println(sggn.length());      for (int f=0;f<=sggn.length()-1;f++) {         System.out.println(f);         double y=(int) (x/Math.pow(10, f));         double z=(int) (x/Math.pow(10, f+1));         double w= y-(z*10);         System.out.println("power"+i+"= "+(int) y +"-"+(int)z*10+"="+w);         h= (int)  w;          gginta.ggn[f]=h;          System.out.print(gginta.ggn[l-1]);         l--;     }     for (i=0;i<=sggn.length()-1;i++) {                   if (sggn.length()!=gginta.n) {             System.out.println("number not in range....enter the number again ... ");             do {                 System.out.println("number not in range....enter the number again ... ");                            System.out.println("enter the number");                 sggn=scan.next();                    } while (sggn.length()!=gginta.n);         }     } }   this code is basically taking a number as a string and i am aiming to get each index of the string and transfer its value to the index of an integer array so that i have my number is in the integer array and each index of the array represents a digit of the number


Windows 10 not an option for GRUB Boot Menu

So this has been a wild ride of a day, I started by trying to remove Ubuntu, messed up and removed GRUB, tried to fix it using a Windows 10 repair loaded onto a USB, that didn't work, reinstalled Ubuntu, discovered that GRUB was no longer loading. So I looked around found the Boot-Repair tool, used it. Now I have GRUB but it only lists UBUNTU and Advanced UBUNTU Options.   Link to my fdisk -l and parted -l results


Can't pipe from echo to bash built-in read?

Say I have a loop that goes through a file line-by-line via read. I would like to have both the original line, and the line split into different variables, which read does nicely. However, I can't seem to echo a variable, pipe it to read, and have the variables populated. Here's a base case:  echo "a b c d e f g" | read line echo "Read obtained: $line"   The result:  Read obtained:   How can I make read do what I want? Or: Why am I wrong to ask read to do this, and what should I do instead?


Can not set the LC_TIME variable for the current process

On Linux Mint Rebecca, my current LC_TIME setting is LC_TIME="en_US.UTF-8"  I would like to execute date and watch how the current date is displayed in a Chinese format with Chinese characters.  Therefore, I thought I have to set the LC_TIME variable this way:  LC_TIME=zh_CN.UTF-8   however, when I execute date I still get the date in the English style format, moreover when I execute locale I see the LC_TIME variable did not change its value at all.   Output of locale -a:  C C.UTF-8 de_DE.utf8 en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZM en_ZM.utf8 en_ZW.utf8 POSIX


Is it correct to say "That needs fixed" rather than "That needs to be fixed?"

A person I know often drops the "to be" which would normally be before the verb in a sentence.  He'll say things like:   That needs fixed. It needs upgraded. They need looked at.   rather than    That needs to be fixed. It needs to be upgraded. They need to be looked at.   Is this just a personal quirk?  Is it colloquial or archaic?  It it grammatically correct?  Does it have a name?


Proving $A\cap(B-C)$ is equal to $(A\cap B)-(A\cap C)$

Prove that: $A\cap (B-C) = (A\cap B)-(A\cap C)$.    Tried to prove this by using Algebra of Classes. Then used idempotent property in $A$ as well as double negation in $A$ but still it didn't work.


Usually when I want to deny something I will say I didn't do anything  However, lately I watched some movies in which the people sometimes said  I didn't do nothing    They use no instead of any, like I don't have no problem. I think this sounds cool.  Can I use it in my daily chatting?


How to install folding at home (Folding@home FAHControl) on Ubuntu 19.10

I'm trying to install folding at home, and running into an issue with FAHControl package  $ sudo dpkg -i fahcontrol_7.5.1-1_all.deb Selecting previously unselected package fahcontrol. (Reading database ... 318495 files and directories currently installed.) Preparing to unpack fahcontrol_7.5.1-1_all.deb ... Unpacking fahcontrol (7.5.1-1) ... dpkg: dependency problems prevent configuration of fahcontrol:  fahcontrol depends on python-gnome2; however:   Package python-gnome2 is not installed.  dpkg: error processing package fahcontrol (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.32.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu1) ... Processing triggers for mime-support (3.63ubuntu1) ... Errors were encountered while processing:  fahcontrol   , so what is the best way to proceed?  I see in the  that FAHControl isn't required, but would be nice to get it working.


Should I notify 'under construction' websites to crawlers? If yes how?

I am currently developing a website which is going to take some time to finish. I need to move some 'stuff' to production frequently, while maintaining a under construction status. My front page will clearly mention that my website is under construction.  I know crawlers will access my URL before I am ready to go live. Should I tell them my site is under construction (no need to index)? If yes how?  P.S.: Eventually, I am ok to let them see my under construction front page.


How to draw the following graph in my manuscript?    I am unable to draw this graph.  Can someone please me to draw this?  I am new to TikZ. I have started learning from this link  but unfortunately it does not show how to draw this kind of graph.  Can someone please help?


Many people claim to use ReLU to solve vanishing gradient problem, but wouldn't dying ReLU be a more serious problem?  And someone also claims that ELU performs better, but wouldn't ELU also suffer from vanishing gradient?  PReLU seems to avoid the problem, but it is not very popular. What's the catch?


Some sites' review pages are now poorly wrapped, resulting in wasted space and a scrollbar

Update from Shog9:     Also affects Aviation, Cooking... Probably everything on the "not yet in progress" list here:  - I've passed this on to the devs. – Shog9     The  got busted in the last few hours.  It looks ugly and now needs to be scrolled, see below.  Other review pages (, ) are still fine. And the problem appears for me in both Chrome and Firefox -- and whether or not I'm logged in.        versus:


Script fails and says unexpected token >'

While running the following script, I get the errors. How to solve this?    1 #!/bin/bash   2 # Show colored output if running interactively   3 if [ -t 1 ] ; then   4     export ANSIBLE_FORCE_COLOR=true   5 fi   6 # Log everything from this script into _quickstart.log   7 echo "$0 $@" > _quickstart.log   8 exec &> >(tee -i -a _quickstart.log )   9 # With LANG set to everything else than C completely undercipherable errors  10 # like "file not found" and decoding errors will start to appear during scripts  11 # or even ansible modules  12 LANG=C  [root@localhost quickstart_images]# sh quickstart.sh -u file:///usr/share/quickstart_images/undercloud-mitaka.qcow2 localhost quickstart.sh: line 8: syntax error near unexpected token `>' quickstart.sh: line 8: `exec &> >(tee -i -a _quickstart.log )' [root@localhost quickstart_images]#


I would like to know if centrifugal force is only apparent why all the objects in a washing macchine are pressed against the "wall"? I can experience the effects of the centrifugal force even if I am a still observator?


How do I programmatically change a view title?

I would like to change my Views (page display) title programmatically.   For Drupal 6 I found , but it doesn't work for me.      function mymodule_views_pre_build(&$view) {   if ($view->name == 'view_machine_name') {     $view->display['display_machine_name']->handler->options['title'] = 'New Display Title';   } }


How do you play Scrapheap Scrounger's ability?

has an ability that allows you to return it from the graveyard to the battlefield. However, it doesn't say you can play this ability while the card is in the graveyard. I am trying to figure out the order of effects that would let me use this.  I assume that the idea is you can play it in response an effect that would destroy it or otherwise send it to the graveyard. But, wouldn't the Scrounger's ability then resolve first, at which point the card is still a creature on the battlefield and not a card in the graveyard? Then whatever effect is about to kill it would resolve and kill it? Doesn't that even apply to dying from attack damage?


Comparing multiple mean scores using t-Test

Situation: Comparing mean scores of level of satisfaction across multiple institutions and overall.   Let's say there are 50 institutions, all with different sample sizes.   Level of satisfaction is rated 1 to 5.  I was asked to perform a t-Test to determine outliers and significance of the score differences, with a control range for 1 SD and 2 SD.   Eg. Institute = Mean score  Institute A = 3.8 Institute B = 3.9 Institute C = 4.1 . . . Overall = 4.0  This is so that we can rank the institutions based on their mean score.  So here's my question:   How do I make a fair comparison of the mean scores? It is possible? How does a t-Test determine statistical significance in this scenario? Do I look at P-value or overlap in distribution to assess usefulness of the test?  I conducted multiple t-Tests for 2 groups (eg. Institute A & Overall, Institute B & Overall, Institute C & Overall, ...) but I'm aware that it is not appropriate to conduct multiple t-Tests comparing 2 groups at a time. What should I do?   Please kindly help. I am quite lost and confused.


I have been one of the co-authors of a published paper 8 years ago. In those years I was an undergrad student. So, I had no significant scientific contribution to this paper. I have just finished my Ph.D. and I do not want this paper listed in my publications.   Is it possible to remove my name from this paper via a correction?  Clarification: I have concerns about the quality of this work. It was carelessly written and the quality is low. So I do not want my name to come together.


There are N people in a room,  each wearing a different hat.  They all take their hats off,put them together and then each randomly picks one up.  What is the probability of no persongetting  their  own  hat  back  (denote  this  event  by  A)?  What  does  this  probability  become  as N→∞?


How is it possible that Poisson GLM accepts non-integer numbers?

I am really stunned by the fact that the Poisson GLM accepts non-integer numbers! Look:  Data (contents of data.txt):  1   2001    0.25  1 1   2002    0.5   1 1   2003    1     1 2   2001    0.25  1 2   2002    0.5   1 2   2003    1     1   R script:  t        <- read.table("data.txt") names(t) <- c('site', 'year', 'count', 'weight') tm       <- glm(count ~ 0 + as.factor(site) + as.factor(year), data = t,                  family = "quasipoisson")  # also works with family="poisson" years    <- 2001:2003 plot(years, exp(c(0, tail(coef(tm), length(years)-1))), type = "l")   The resultant year index is as "expected", i.e., 1-2-4 in years 2001-2003.  But how is it possible that Poisson GLM takes non-integer numbers? The Poisson distribution has always been integer-only!


Eevee volume emission texture space is cubic even for a cylinder solid

I created a solid cylinder  with an emitting volume material. In render mode, the glow looks cubic instead of following the circular profile of the cylinder. This could be because the texture space is cubic.  How do I make the emission look cylindrical? Or, in general, is there any other way to make a cylindrical glowing volume?


Why is 7 TeV considered as a big amount of energy?

Considering that $7$ TeV is more or less the same kinetic energy as a mosquito flying, why is it considered to be a great amount of energy at the LHC?  I mean, a giant particle accelerator that can only provide 7 TeV of energy? (14 in the mass center, if I understood well). Is it because particles are so small that this amount of energy, in proportions, is then really huge?


Merge Rows with changing time values to latest time in SQL


Connect to the internet with static IP, netmask, and DNS addresses

I have installed Ubuntu for the first time and I tried to connect to the internet but generally when I connect to that network in Widnows the IP address must be set manually by specifing the IP, the subnet mask and the DNS. How can I achieve that in Ubuntu so to connect to the internet?


I was wondering why there is not hats available on the mobile version. No hats on avatar, no hats counts, etc ..    Is it because it seems to be an ajax layer over all websites? or the same reason there is no helpful tag counts?


How / can you connect Ethernet devices together without magnetics? How do you wire it up? What sorts of practical limitations are there on doing this?  To clarify, I'm not trying to connect two computers here. I'm thinking specifically of creating a small network of microcontrollers on a single board. Lets say the total length of a network segment is no longer than 6 inches. This would be for 10BaseT or at most 100BaseT.


What is the difference between “then” and “than”?

I want to know the difference between “then” and “than”, when i use it and how, because the pronounce is very similar?


How do I grep file paths out of a text file?

I have a file that has a list of paths like so:  "1"       "/user/bin/share" "2"       "/home/user/.local" "3"       "/root/"   Is there a way to extract just the paths? I dont want the numbers or quotation marks. How can I sed or grep the paths out of the file? What regex would be required for such a task?


Deployment error: Apex class has Batchable or Future jobs pending or in progress; Schedulable class has jobs pending or in progress

I'm getting this error when trying to deploy code using ANT to one for my sandboxes:      "Apex class has Batchable or Future jobs pending or in progress;   Schedulable class has jobs pending or in progress"   They problem is that when I look at the Apex Jobs logs I see that all jobs are either Aborted or Complete and in the Scheduled Jobs logs there is no job with 'Next Scheduled Run' date.  So, I'm not sure why I am getting this error and more important how do I work around this and get the code deployed.


$\langle x,y \rangle (\lVert x \rVert + \lVert y \rVert) \leq \lVert x \rVert \lVert y \rVert \lVert x+y \rVert$

How I can prove this inequality in $\mathbb{R}^n$? $$\langle x,y \rangle (\lVert x \rVert + \lVert y \rVert) \leq \lVert x \rVert \lVert y \rVert \lVert x+y \rVert.$$ Intuitively it is true, because it means that $$\cos\theta\leq\dfrac{\lVert x+y\rVert}{\lVert x\rVert+\lVert y\rVert},$$ where $\theta$ is the angle between $x$ and $y$, but I can prove this algebraically.


How do I fix 'No wifi adapter found' issue (RTL8821CE)?

I recently Installed Ubuntu 19.04, with Windows as dual boot. My device is Lenovo ideapad 330-15AST U. I can't connect to the wireless networks.  I am an absolute beginner to Ubuntu.   Ran the following command:   lspci -knn | grep Net -A3; rfkill list   Following is the received output:   01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024] 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07)     Subsystem: Lenovo RTL810xE PCI Express Fast Ethernet controller [17aa:3861]     Kernel driver in use: r8169 0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no


I know, there is already an answer to this smtp-status, but sorry: i don't get it. A Customer of mine sends a big amount of mails and some can't be send cause of:  This is the mail system at host mailserver.blabla.local.  I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.  For further assistance, please send mail to postmaster.  If you do so, please include this problem report. You can delete your own text from the attached returned message.                     The mail system  <mail@domain.de>: host mail.hostingserver.de[ip] said: 354 End data     with <CR><LF>.<CR><LF> (in reply to end of DATA command)   More information:  Final-Recipient: acc1; mail@domain.de Original-Recipient: acc1;info@domain.de Action: failed Status: 5.5.0 Remote-MTA: dns; mail.hostingserver.de Diagnostic-Code: smtp; 354 End data with <CR><LF>.<CR><LF>  Return-Path: <sender@domain.de> Received: from localhost (localhost [127.0.0.1])     by neptun.migra-mv.local (Postfix) with ESMTP id 071A07418E6;     Thu,  3 Nov 2016 12:04:22 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at migra-mv.local Received: from mailserver.blabla.local ([127.0.0.1])     by localhost (mailserver.blabla.local [127.0.0.1]) (amavisd-new, port 10024)     with ESMTP id ZkXsQejEkDHg; Thu,  3 Nov 2016 12:04:10 +0100 (CET) Received: from [192.168.2.196] (unknown [192.168.2.1])     by mailserver.blabla.local (Postfix) with ESMTPSA id 512A8741B70;     Thu,  3 Nov 2016 12:03:31 +0100 (CET) To: Migra MV <sender@domain.de> From: IntegrationsFachDienst Migration MM <sender@domain.de> Subject: =?UTF-8?Q?Aktuell:_=c3=9cber_200_Bildungsma=c3=9fnahmen_auch_f?=  =?UTF-8?Q?=c3=bcr_Zugewanderte_in_ganz_M-V?= Message-ID: <045abb9f-de00-bdc5-cede-01e338164930@migra-mv.local> Date: Thu, 3 Nov 2016 12:03:51 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101  Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/mixed;  boundary="------------55D5725BF82BAD7B1782022E"   Why are we getting this error and aren't the messages sent? In fact, most of the messages are send without problems. Could this be an error from the recipient?


DNS EMAIL errors in Cpanel and Cloudflare

I have a problem with my DNS records and cannot get an email to receive. MXtoolbox tells me DMARK is not set up but I added the records. It says I I have a problem with SMTP resolution.  Cloudflare Says "An MX record was not found for your root domain" and I have added one but still says I haven't  Can someone help figure this out? Below are screenshots of my setup  Cloudflare    Cpanel DNS    Cpanel MX Entry    MXtoolbox


I forgot to give back the I94-W form and departed from a Mexican airport

I'm a German citizen. I was on vacation in Tijuana and I entered the US an the San Ysidro border control. I got the green I94-W form. I did some day trips to San Diego and back to Tijuana, but I completely forgot to return the I94-W form after my last visit to the US.  I flew back to Germany from Tijuana airport after a stay of 3 weeks. I still have the boarding passes of my return flight, but no further stamps in my passport. I'm planning to go to Tijuana again, but I'd like to arrive in San Diego and then go to Tijuana from there, because it's much cheaper.  Am I going to have a problem entering the US? Is it enough of a proof that I left the US in time if I show the boarding pass from my return flight to Germany departing from Tijuana airport?  The CBP help page says "If you departed by a commercial air or sea carrier (airlines or cruise ships), your departure from the U.S. can be independently verified, and it is not necessary to take any further action", but I didn't depart from the US. I'm kind of clueless now and would appreciate some help.  Thanks for your help!


What holds up the lowest point of a rope following a catenary curve?

A  is the curve followed by a rope suspended at both ends in uniform gravity.  I thought I would try to solve it myself because it seemed like a good challenge, but almost immediately I got stuck on this question.  Given that nothing is moving, we can say  $$T_{left} + T_{right} + F_g = 0$$  where $T_{left}$ is the tension along the rope to the left and $T_{right}$ is the tension along the rope to the right. Fine and dandy.  Now given that the catenary curve is  between (but not including) its endpoints, $T_{left}$ should then always be colinear with $T_{right}$. So then the x-direction components cancel out and the net of the y-direction components cancels with gravity.  But what about at the very lowest point on the catenary curve? Intuitively, this should be the point where the tangent is perfectly orthogonal to gravity, and as such $\hat{T}_{right} = - \hat{T}_{left} = \hat{i}$.  Since both $T_{left}$ and $T_{right}$ are orthogonal to $F_g$...  what holds up the lowest point of a rope following a catenary curve?


how can I deep clone an object, what could be wrong with this solution. I wrote this decision, but I'm not sure if this is good, and what bottlenecks it has. How to do it correctly on vanilla js, without using jQuery. If the object has (enumerable: false)?    let user = {     name: 'SomeName',sayHi: function(){console.log(this.name);}} Object.defineProperty(user, 'sayHi', {enumerable:false}); function deepCloneNew(obj){   if (!obj) { return };   let cloneObj = {};   let keys = Object.getOwnPropertyNames(obj);   keys.forEach((key)=>{     if(typeof obj[key] === 'object' && obj[key] !== null){         deepCloneNew(obj[key]);        }     if(typeof obj[key] === 'function'){        Object.defineProperty(cloneObj, key, Object.getOwnPropertyDescriptor(obj, key));     }     if(typeof obj[key] !== 'object' && typeof obj[key] !== 'function' || obj[key] === null){       Object.defineProperty(cloneObj, key, Object.getOwnPropertyDescriptor(obj, key));     }   })   return cloneObj; } let copy = deepCloneNew(user);


Why don't Americans have British accents?

Here's something that's always stumped me: If the USA was settled by people fleeing prosecution from the British, why don't we (in present day) speak with British accents? All things considered, the US is still a "young" country - this didn't happen all that long ago. Did the language change that fast? Are the accents we commonly associate with places like Boston or New York City still "remnants" of the British accent?


So I installed Wine on my machine to use smartflix on ubuntu, but I keep getting this error saying "incompatible operating system: This program cannot run on Windows XP or before; it requires a later version of windows". Is there any fix for this?


Copying files from my /home in a rescue boot shell on VirtualBox

I have a Mac with a Ubuntu 14.04 installed in VirtualBox.   During an update I lost my login window. Someone suggested I should uninstall and reinstall guest additions but that sounds like too much hassle. I just want to log in and move the files I want to my shared folder and then delete the whole thing and start over.  When I hold down the shift button I get the the GRUB menu and I can choose recovery mode. Now I'm in a shell "root@ virtualbox" but I can't get anywhere.  ls command does nothing. I don't even know where I am.  How do I find my user's home folder and move the files?  I also tried to mount the vdi image but its not working:     Installing a new ubuntu in the VBox has worked great. Thank you! I can look at the old vdi just fine but the home folder is still encrypted. So I am wondering if I change the root password in the encrypted machine will it use the newly made pw to encrypt and therefore I can see the contents of the home folder again?


Very Hard : Error Bound on asymptotical approximation

Very Hard: Suppose I have a polynomial $g(x)=x^p $+ lower order terms. Asymptotically the inverse is  $g^{-1}(x) \sim x^{1/p}$ for large $|x|.$ What is a bound of the error of this asymptotical approximation explicitly  in terms of $|x|$? Any help would be amazing


Authentication mechanism to connect to Windows AD in Linux?

My company has asked me to look into connecting our CentOS 7 instance's to our Active Directory to make it easier for user management.  I have so far looked at:   Kerberos, doing it via command line -   OpenLDAP -     Is there any other tool or resource I should look into to do my due diligence?


When refereeing a paper, I often have objections to the work that do not rise to the level of using the coercive powers of a referee to delay or reject the work. For instance, I find myself wanting to write: "If I were you, I would be embarrassed to publish a paper with [such unclear writing/such a silly comparison to experiment/so few parameters studied/incredibly ugly figures]."*  If the paper is not wrong or incoherent, just lazy or badly written, I don't feel justified in rejecting the paper or requiring a revision. I also don't want to invest hours of time acting as a language editor or graphic designer for figures.   Is there a politer way to express this sentiment and encourage the authors to improve their own work? Or should I simply take on good faith that the authors have done the work to the standards they are willing to publish, and that these may differ from my own?  *note: this is distinct from the case where the paper is so unclear that you can't tell whether their work is correct or not - where I think rejection is appropriate. I'm also assuming that this is not a terribly selective journal - in fact, it could be a journal like PLOS ONE, which explicitly says that importance to the field is not a relevant criterion.   Note: I've edited this to address a couple of points made by answers, and to focus away from the writing part, which has been answered in the past. Bad writing is one aspect of this question, but general author laziness is the larger one.


Create Regex by string "\" character java

I have to read a file with some String values and transform them to Regex. So I am using the class Pattern of java.util.regex and I have some problem for some special characters.   For example if I have this String:  *Hello   when I am creating the regex with:  Pattern.compile("*Hello").matcher("*Hello").matches()   the result is false.  So I need to find a way to transform automatically the String in the compile in \\*Hello. How is it possible? Thanks in advice.


I use two linux machines, home pc and server.  Lets say i want to modify some config files on both systems.  How can i synchronize them to make these modifications ony once?  Is there option to add new machine to this hypotetical synchronized network and apply all previous changes to new machine?


How can I prevent page break between lines of a paragraph or bibliography entry?

My university's thesis guidelines require that each bibliographic entry appear in whole on a single page, rather than being split across two. How can I prevent (La)TeX breaking a paragraph across a page boundary?


How can I achieve the correct garden tap orientation when threading it in?

I'm installing an external tap using a wall plate like this one:    And a tap like this one:    This might be a stupid question, but if I screw the tap into the wall plate it will end up at a certain angle. I can install the wall plate with that angle and the tap will end up with the correct orientation (i.e. pointing down). But what if I want to put another tap in later that has its thread cut slightly differently? How do I prevent it ending up upside-down or whatever? Are all the threads cut exactly the same in these taps?  This seems like a stupid design.


I want to compile and run swift language programs on Ubuntu 18.04.2 LTS, but I don't know the commands.  Please Help.


How do I store phone numbers in PostgreSQL?

Let's assume I want to store phone numbers in a database. I may accept phone numbers from outside of the United States. How would I go about storing these phone numbers?


How do I solve $C_x^0 + C_x^1 + \cdots + C_x^n = 2^n$

I have the following equation, where I need to calculate x.  $$ C_x^0 + C_x^1 + \cdots + C_x^n = 2^n $$  I have expanded this to  $$ \frac{x!}{0! \times x!} + \frac{x!}{1! \times \left(x - 1\right)!} + \cdots + \frac{x!}{\times \left( x - n \right)!} = 2^n $$  Which can be rewritten as  $$ \sum_{k=0}^n \frac{x!}{k! \times \left(x - k \right)!} = 2^n $$  I got stuck here, so I tried to calculate $x$ for $n$ from $0$ to $3$.  For $n = 0$ $$ \frac{x!}{0! \times x!} = 1 \iff 1 = 1 \;\text{True for any $ x \in \Bbb N $} $$  For $n = 1$ $$ \frac{x!}{0! \times x!} + \frac{x!}{\times \left( x - 1 \right)!} = 2 \implies x = 1 $$  For $n = 2$ $$ \frac{x!}{0! \times x!} + \frac{x!}{1! \times \left( x - 1 \right)!} + \frac{x!}{2! \times \left( x-2 \right)!} = 4 \implies x \in \{2, - 3\} \implies x = 2 $$  For $n = 3$ $$    \frac{x!}{0! \times x!} + \frac{x!}{1! \times \left( x - 1 \right)!} + \frac{x!}{2! \times \left( x-2 \right)!} + \frac{x!}{\times \left( x - 3 \right)!} = 8 \implies x^3 + 5x = 42 \implies x = 3 $$  Did I do any mistakes so far? How would I go about calculating the general formula?  EDIT: Revised and got the right answers.


Formula for expected value of continuous random variable without using density

I'm looking for some correct notation. Consider the random variable $V$ with support $\mathcal{V}$ and probability distribution $P_V$. Consider a function $u:\mathcal{V}\rightarrow \mathbb{R}$.   Let $\mathcal{V}$ be finite and suppose I want to  compute the expected value of $u(V)$. This is   $$ \sum_{v\in \mathcal{V}} u(v)\times  P_{V}(v) $$  Suppose now instead that $P_V$ is continuous. What is the correct notation to indicate the formula of the expected value of $u(V)$ without passing through the definition of density? I though about using $$ \int_{\mathcal{V}} u(v)\text{ } dP_{V}(v) $$  Is this correct?


Wifi signal strength is suddenly low even if antenna is selected

I have realtek rtl8723be network adapter. I have installed the diver from . I use following commands every time I turn on the computer:  sudo modprobe -rv rtl8723be sudo modprobe -v rtl8723be ant_sel=2   This worked well. But today I have problem with my wifi. It keeps disconnecting and the signal strength is really low even if the router is next to the computer. I don't see the other networks at all. I tried with ant_sel=1 too but no luck. My Ubuntu version is 16.04. Is there any way to troubleshoot and fix the issue?


Is there a better method of adding an element to an array than iteration?

Whenever I need to add an element to an array I've always used this algorithm  data toAdd = 10;  data[] theArray = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };  data[] tempArray = new int[theArray.Length + 1];  for (int i = 0; i < theArray.Length; i++) {     tempArray[i] = theArray[i]; }  theArray = new data[tempArray.Length];  for (int i = 0; i < theArray.Length; i++) {     theArray[i] = tempArray[i]; }  theArray[theArray.Length - 1] = toAdd;   However I was wondering if there was a better way to do this, as with much larger arrays this will require a large amount of computing time.


How do I stop the mantel over my gas fireplace from getting way too hot?

Can anybody tell me how to redirect the heat from going up to coming out the front? The wall and mantel gets so hot that we can't touch it, so we can't use our fireplace.


How do I get Automator to process images using ImageMagick in a command script?

I'm making an Automator workflow that uses the shell script action to process a selection of images with the imagemagick composite command. Only I'm having issues getting it going. According to the results I get when I run the workflow, everything is working however, I know it's not due to the fact that the changes I'd expect to see in the folder of images are not present. I know that the imagemagick command I'm using is correct as it works correctly from the console. (I echoed the composite command to the output & copied it into a Terminal session. Ran like a charm). BTW: The workflow's for processing a fade in on a stop motion movie I made. Yes I know I could use video tools to achieve the same thing, but the ones I have access to screw up the image quality on output.  Here's the script  imagesCount=$# rate=$(echo "scale=2; 100/$imagesCount"|bc) percentage=$rate for f in "$@"; do     fileName=${f%.*}     composite -blend "$percentage" -size 1280x720 "$f" xc:black -alpha Set "$fileName-1.jpg"     percentage=$(echo "scale=2; $percentage+$rate"|bc) done   At first I thought at the cause of the problem might be spaces in the paths, but I removed this possibility by shifting the files to a path without spaces, but that had no effect.  I'm almost certain the issue is related to something in the bash command but I don't know bash at all, this is my first time writing any bash command scripts, but I am very knowledgeable in Windows console scripting and would have no trouble getting this to work there.  If the error in the script isn't obvious enough to catch, would someone propose a method to debug this so I can figure out why the images are not getting processed even though the script runs without error?


Is there a dominant gene for right-handedness?

Has there been any definitive research about handedness being genetic? Also, why is right-handedness clearly dominant in humans? I'm interested in evolutionary theories, as well as any molecular explanation (if known).


Help for the URL easter egg in the book 'Ready Player One'

I already know the URL itself. I want to know which pages contain the typos that make up the URL for the Easter egg in the book Ready Player One.


I am trying to align caption to the left but its coming centered. Please see the figure. The code is   \begin{figure}[!t] \includegraphics[scale=0.22]{Figure 1.pdf} \caption{The caption is coming to the center. It should be aligned to the left. } \label{Figure 1} \end{figure}   The previously mentioned solutions were tried. But they didn't work.   Any solution for the above problem.  A full MWE:  \documentclass[%  aip,  amsmath,amssymb, ]{revtex4-1} \draft  \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \usepackage{times} \DeclareGraphicsExtensions{.pdf,.jpeg,.jpg, .png, .eps, .tiff} \usepackage{epstopdf} \usepackage{lipsum} \usepackage{tabularx} \usepackage{booktabs} \usepackage{array} \usepackage{natbib} \usepackage{color} \usepackage{grffile} \usepackage{caption} \usepackage{boxhandler} \usepackage{float} \begin{document}  \begin{figure}[!t] \centering \includegraphics[scale=0.5]{Figure 3.pdf} \caption{}    \label{Figure 4} \end{figure} \end{document}


Last night I discovered what looks like an unusual file named "~" (tilde) in the root of my "Macintosh HD" directory on my MacBook.    Finder reports the file is 2.2MB in size, of kind "TextEdit.app Document", and was created on 22nd January 2014 (so about a month ago).  I haven't noticed any operational issues with OS X or it's applications.   I haven't yet touched the file but would obviously like to remove it.  I am very conscious that '~' is a special alias to the user home directory and thus I would appreciate any recommendations in removing the file in a safe manner that isn't likely to nuke my home directory or screw up the operation of applications or OS X. I don't know whether to delete or rename and whether to use Finder or the command line.   It's entirely possible that I created the file by accident since I've recently been drafting and running various shell scripts that use the ~, user home alias.  MacBook Pro 15" (Retina, Mid 2012) Yosemite


I understand that the Vandermonde determinant  $$ W(x_1, \ldots, x_n) =  \left| \begin{array}{cccc} 1 & 1 & \cdots & 1\\ x_1 & x_2 & \cdots & x_n \\ x_1^2 & x_2^2 & \cdots & x_n^2\\ \cdot & \cdot & \cdots & \cdot \\ x_1^{n-1} & x_2^{n-1} & \cdots & x_n^{n-1}\\ \end{array} \right| $$  may be calculated by regarding the determinant as a polynomial  $$ W(x_1,\ldots, x_n) = P(x_n) = k_n \prod_{i=1}^{n-1} (x_n - x_i) $$  and then performing induction on $ k_n = W(x_1, \ldots, x_{n-1}) $.   However, I am not sure how we obtain this equality for $ k_n $. Is it sufficient to say that $ W(x_1, \ldots, x_{n-1}) $ is the coefficient for the $ x_n^{n-1} $ term in $ P(x_n) $ when we expand the determinant with respect to the right-most column?  This question is also in part (c) of .


How can I change an attribute table field type from string to double in QGIS?

I work on QGIS 2.2, and I am unable to edit my attribute table to change the field type from string to double.  I have gone through several tutorials. - I can not run the table manager plugin, probably because its latest version is for qgis 2.0, (well it appears broken on my plugin manager UI).   I am unable to edit my layer so that I can use the field calculator (as several tutorials stipulated). I am not versed with python to use the python console


Missing vertical lines in the latex table

I am trying to create a \multirow and \multicolumn table in the Texmaker. I have specified to put vertical lines in the code but somehow my last column is missing partially the vertical line. I have posted my code below. Could someone help me out to understand where am I wrong? Thanks a lot in advance.  \begin{table}[h]    \centering    \begin{tabular}{|p{3cm}|p{3cm}|p{3cm}|} \hline    Macrophase & \multicolumn{2}{|c|}{Activity} \ \hline    \multirow{8}{*}{} & Description & \ \cline{2-3}    & Macrophase Actors \ \cline{2-3}    & Duration and Frequency \ \cline{2-3}    & Inputs \ \cline{2-3}    & Software Utilized \ \cline{2-3}   & Outputs \ \cline{2-3}   & Criticalities \ \cline{2-3}   & KPIs \ \hline   \end{tabular}   \caption{caption}   \label{table:sample}   \end{table}


When does the product of all elements in a finite abelian group equal $1$?

Clearly for $G \approx \Bbb{Z}_2$ this is not true since $G = \{1, a\}$ and so the product equals $a$.  Was wondering what sufficient conditions are such that the product of all the group elements amounts to $1$.    For $G \approx \Bbb{Z}_3$ it's true since $G = \{1, a, b\}$ with $ab = 1$.  I'm a little lost as to how to proceed.  I think if each element pairs with an inverse distinct from it, then it's true that the product equals $1$.  But is there another way to state that, and is that a neccessary condition as well?  In addition, is it possible to cover all finite abelian groups by taking the product of the squares of all elements?


Young Adult book about kids being bred for genetic purity in a world where races no longer exist

I'm looking for a book I read in Junior High (probably) about a world where everyone was basically the same race.  One genetically pure male and female teenager of each race still exists.  They are transporting a genetically pure boy to meet his genetically pure female counterpart and accidentally introduce him to a genetically pure female of a different race.  And, of course, chaos ensues.  Any thoughts?


How To Find All Locations Where $PATH is Set

I would like to know if there is a way to determine where a specific part of my $PATH variable is being set.  About a year and and a half ago I went through the tedious process of setting up a Oracle XE 11.2.0 on my machine for a course I was taking. Somewhere in the process I added the path "/u01/app/oracle/product/11.2.0/xe/bin" to my $PATH variable to get things working. Well now I've deleted the root /u01/ folder that was exclusively used by the Oracle DB and so bash throws the error on startup that the file or directory doesn't exist. So I went manually looking through every possible file I can find listed and nothing.  As far as I can tell, that part of $PATH is not being set in any of these files: /etc/login.defs, ~/.profile, /etc/environment, /etc/profile, ~/.bash_login, ~/.bash_profile or ~/.bashrc.  That was verified first by running cat ~/.bashrc | grep "*oracle*" on every file listed above. I even did the insane thing and ran sudo strings /dev/sdb -n 11 | grep -C100 "/u01/app/oracle/*" to give me a list of every file that contained the string. I got lots of results, but nothing super valuable. My poor SSD didn't deserve that.  So any tips? How can I find out where that part of $PATH is being concatenated onto? Are there any other typical files that I should check? I'm running this on Linux Mint 18.3 if that narrows anything down.


What's a guy got to do to get a haircut around here?

I need a haircut; how do I get access to Shampoodles in this game? Her shop is greyed out and I don't like my haircut. Is it still part of Nooks' or what?


Power supply wattage math applied to videcards?

Can anyone please explain the math behind power supply wattage calculations?  I have a . It has 4 independent +12V rails max 18A each.  I'm trying to calculate, how much amps will GPU consume. I have an old NVidia 9600GT video card. In it's  it's written, that it consumes maximum of 96W. Do I understand correctly, that I = W / V = 96 / 12 = 8A?  The problem is, that my PSU has two 6-pin PCI-E power cables. And my 9600GT doesn't want to start up when it's powered by one. I can start it up only when I get power from two independent rails it seems. And  I purchased some time ago doesn't startup at all whatever I do.  I just want to understand the correct numbers so that I wouldn't do same mistake now when I need to buy new PSU.  It looks that despite my box is 700W, because of independent rails current limit it just cannot handle really consuming video cards. I purchased it like 6 years ago, though...


My Dell two in one laptop can be opened beyond 180 degrees to make an easel. However thi inverts the monitor. This is my prefered way of working with it at my desk at work where I have an external monitor mouse and keyboard.  When I boot into windows I can rotate the screens with Ctrl+Alt+Arrow Key. On Ubuntu it seems I have command line tools, and the System Panel shown below.    Since I often swap between a normal laptop and easel configuration, I'd prefer a keyboard shortcut to rotate the monitors if possible.