Problem with `in` (to path) angle when negative scale factor are applied

Trying to convert a coment into a complete answer for  I think that my solution there worked by chance and that MWijnand  found a wrong behavior in to path library when {x|y}scale has negative values.  Take a look at this example:  \documentclass[tikz,border=2mm]{standalone} \usepackage{bondgraph}           \usetikzlibrary[petri]   \begin{document} \begin{tikzpicture}[thin,>=stealth, every place/.style={draw,thick,minimum size=6mm}]     \node[place] (pG) {$p_G$};     \node[place,right=3cm of pG] (pR) {$p_R$};     \draw[->] (pR) to [out=150, in=30] (pG);     \begin{scope}[yscale=-1]     \draw[->,blue] (pR) to [out=150, in=30] (pG);     \end{scope}      \begin{scope}[xscale=-1]     \draw[->,red] (pR) to [out=150, in=30] (pG);     \end{scope}      \begin{scope}[scale=-1]     \draw[->,green] (pR) to [out=150, in=30] (pG);     \end{scope}  \end{tikzpicture} \end{document}   and its strange result.    What I would expect was that pR.center was the paths origin and pG.center was the path end. The path would have a out angle affected by scale factor and the drawn path would start on corresponding intersection point over pR border. This is what happens with out angle as you can see around pR node.  But this doesn't happen with in angle (pG node). in angle fixes final anchor at  pG.30 and not at pG.center as expected. It also changes incidence angle for which scale factor is applied.   I think this is wrong and I'll fill a . If I'm wrong or you have a better solution, please let us know.


What is an appropriate replacement for the term "oriental" when used as an ethnicity?

When I was a child I remember frequently hearing references to "oriental" people. Of course "oriental" now has a pejorative connotation, and generally "asian" is preferred.   However, I can't help but feel like "asian", even if it is a step forward socially, is a small step backward in specificity. Maybe it's just my perception of the word, but "oriental" seemed to have an implied reference to people of the far east, specifically to people with a collective set of similar physical features like epicanthic eye folds and straight black hair. A group that would include Chinese, Japanese, or Vietnamese, but would exclude Indians or Iranians (though "asian" is a valid term for all of these people).  The only other term that I've heard of that is conceptually close is "mongoloid", but it has more modern associations with down syndrome, and may be considered a pejorative in its own right.  Is there a modern, socially acceptable term to reach this specific designation of person that might have been referred to as "oriental" or "mongoloid" in the past?


What is the movie with the humanoid aliens with inverted legs?

I cannot for the life of me remember the name of this movie.  I don't remember the storyline too well, it's been way too long since I've seen the movie.  All I remember is the aliens are very humanoid but have inverted legs i.e. their knees bend backwards.


How to remove the switch user account option in Unity 2D?

We are looking for a way to permanently remove the Switch User Account function from our install of Ubuntu Unity. Note, this function appears when you right or left click on the user name in the upper right-hand corner. It then displays a list of 5-10 users that have logged in along with the option to Switch User Account. We know that we can do this by defaulting to gnome, but we would like the option of using Unity as well, but without the Switch User Account option.  We have already tried dconf-editor, gsettings and several other options to remove the users name list, Switch User Account option from appearing in the drop-down list. We know this can be done for one user at a time, but we are wanting to do this for all users on roughly 160 workstations.  Some options that we have already tried are:       This is a visual of what we are trying to remove:


I have XML file like this  <?xml version="1.0" encoding="UTF-8" standalone="no"?>     <linearlayout layout_height="match_parent" layout_width="match_parent" orientation="vertical">   <textview layout_height="wrap_content" layout_width="match_parent" text="Hello XML!"/>   <button layout_height="wrap_content" layout_width="wrap_content" text="Click Me"/> </linearlayout>   and i want each attribute of element be on it's own line like this  <?xml version="1.0" encoding="UTF-8" standalone="no"?>     <linearlayout    layout_height="match_parent"    layout_width="match_parent"    orientation="vertical">   <textview      layout_height="wrap_content"      layout_width="match_parent"      text="Hello XML!"/>   <button      layout_height="wrap_content"      layout_width="wrap_content"      text="Click Me"/> </linearlayout>   how can i do this using java ?


Why it is not good to use "!= null" to test if argument is passed

From the book Maintainable JavaScript it mentioned :  // Bad: Testing to see if an argument was passed function doSomething(arg1, arg2, arg3, arg4){ if (arg4 != null){     doSomethingElse();   } }   but I feel using != null here is quite effective, it filtered both the case of argument not passed or it is passed as null  any reason why the author suggest it is bad ?


How to understand Ubuntu UEFI Secure Boot install?

Now that Secure Boot is supported, what special instructions does one have to follow to install Ubuntu on a UEFI Secure Boot enabled PC shipped with Windows 8?  As I understand, Ubuntu >= 12.04.2 ships with signed GRUB2. I searched but cannot get past the "supported" statement. I am looking for specific instructions on registering Ubuntu keys to let the firmware boot Ubuntu.   UPDATE:  Thanks.  gives me the answer. The Ubuntu first-stage EFI bootloader is signed by Microsoft. The last time I read, Ubuntu had plans to publish their own key which had to be registered in the firmware's database before installing. May be I did not track the story long enough to realize that it is not the case anymore.


Statistical Integral in Financial Mathematics

I need to show that $$\frac{1}{\sqrt {2\pi}} \int_{-\infty}^{+\infty} x^{2n} e^{\frac{-x^2}{2}}dx = (2n-1)!!$$  Integration by parts seems to be the best apporach but I cannot seem to figure my way through it.


Getting a NullPointerException when using a new File call in a for loop

I don't quite understand what's going wrong. This code worked before but after I moved around some directories (despite my having moved them back to how it was before), now all of a sudden the code refuses to compile calling it a NullPointerException (despite the fact that I'm creating a new object right there).  cat is a string. In the currently existing instance cat is passed as "cat1" which is the name of a directory in my project folder.  for(int i = 1; i <= new File(cat).listFiles().length; i++){   Stack Trace listed below:  Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)     at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$99(LauncherImpl.java:182)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException     at sample.Category.CreateCatLayout(Category.java:49)     at sample.Category.<init>(Category.java:41)     at sample.Main.start(Main.java:71)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$106(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$119(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$117(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$118(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)     at com.sun.glass.ui.gtk.GtkApplication.lambda$null$450(GtkApplication.java:139)     ... 1 more Exception running application sample.Main


Decomposition of the tensor product $\mathbb{Q}_p \otimes_{\mathbb{Q}} \mathbb{Q}[i]$ into a product of fields

I am trying to solve the following problem:     For each rational prime $p$, describe the decomposition of the tensor product $\mathbb{Q}_p \otimes_{\mathbb{Q}} \mathbb{Q}[i]$ into a product of fields, where $\mathbb{Q}_p$ is the field of $p$-adic numbers.    I know that the tensor product of $2$ extensions of a field one of which is finite is Artinian and is therefore a product of Artinian local rings, but I do not know how to compute these Artinian local rings. Please if you can help me with this, I'll really appreciate it.


how does capacitor work ? how do they conduct electricity ?

Sorry, i am novice in electronics, trying to understand basic fundamental of electronics.  1. How does capacitor conduct current when two plates aren't physically connected.


What is the difference between number and Number in javascript?

The output of:  var x = 5; typeof (x) //will give number type as output   But for the below code it returns false:  var x = 5; x instanceof Number; //will give false as output   Can anybody please explain the difference between number and Number. And how do I make the second one work?


How to get the ip address of a computer from its hostname?

I have the name of a computer on the network, and I need to know how to get the ip address of said computer from a batch file? Thanks.


What characters are valid in a biblatex entry key?  I'm asking because  will export entry keys with <i>foo</i> in them, and  doesn't like that. But I don't know whether Zotero is too permissive, or pandoc-citeproc is too strict.  This is the error that pandoc-citeproc generates with an entry key like that:  pandoc-citeproc: "stdin" (line 10918, column 2): unexpected "A" expecting "c", "C", "p", "P", "s" or "S" CallStack (from HasCallStack):   error, called at src/Text/CSL/Input/Bibtex.hs:113:32 in pandoc-citeproc-0.10.4-BdOyQb33rzG2TMOLj4Fbp9:Text.CSL.Input.Bibtex pandoc: Error running filter pandoc-citeproc Filter returned error status 1


What is the difference between "Unmount", "Eject", "Safely Remove Drive" and the eject icon?

When I right-click the desktop icon for my USB drive or SD card I have the choice to "Eject" or "Safely Remove Drive":    In the Tree side pane in Nautilus, I can either "Unmount" or "Eject":    The Places side pane in Nautilus has some kind of eject icon:    What do all of these do?  Specifics I've been wondering about include:   What happens when a drive has multiple partitions mounted? Under what conditions is a prompt to empty the trash displayed? Do any of these result in a state in which the drive cannot be mounted again without first being physically reconnected?


Want to undo a step but it is not in undo history

I applied subsurf modifier, saved the file and then quit the blender but when I reopned it I realized that I need to go back but it doesn't undo it and my undo history is empty. Can anyone help me?


How to install dual boot Kubuntu and Remix OS

I currently have a PC with Kubuntu installed by itself and i wanted to dual boot Remix OS since i need Android apps with a Android-like environment.


GeoPandas statistics of points within a multi polygon (grid)

I usually use numpy for my processing but I'm trying to make the most of the power of GeoPandas for my spatial data. I have some point data (shapefile) and a vector grid (fishnet) as a separate shapefile. I would like to get the points that fall within each vector grid and then do some basic statistics on them (e.g., average). Each point has an X co-ord, y co-ord and a Z value. I would like the mean value of each that falls within a grid cell. All answers I have seen so far are either testing if one point is within a polygon, or does not go further and calculate statistics, only returning a boolean array. From  I got this piece of code: point = geopandas.GeoDataFrame.from_file(pointfile.shp) poly  = geopandas.GeoDataFrame.from_file(gridfile.shp)  pointInPolys = sjoin(point, poly, how='left') grouped = pointInPolys.groupby('index_right')  but as I'm pretty new to Pandas I'm not sure how to get at the data in this group (or really what a group is) so I can calculate the mean value of the points. How do I get the data and perform basic statistics on it?


I tried to make a little program with Scanner but it says that my While loop is incorrect. The error message is: 'line cannot be resolved to a variable'  I tried to fix this problem, but when I do, another error message comes up!  Here, I put the code:  import java.util.Scanner;  public class Application {     public static void main(String[] args) {          while (line != "yes") {              Scanner input = new Scanner(System.in);             System.out.println("Do you want some chocolate?");             String line = input.nextLine();             System.out.println("You are wrong!");         }          System.out.println("Yup! Good answer! ^.^");      } }   What is incorrect? Thanks in advance for your understanding.


I saw this come up in another question in regards to drinking a healing potion not being a Use an Object action as the text in the equipment chapter under healing potion specifically says that using a healing potion is an action.  But if I look at the other objects in the equipment chapter, I find similar text:     Applying the poison takes an action.        Drinking or administering the potion takes an action.        As an action, you can spread a bag of caltrops...   None of these refer specifically to Use an Object.  However, the Use an Object text in the Combat chapter says this.     When an object requires your action for its use, you take the Use an   Object action.   So the text in the Combat chapter, by my reading, seems to say that the 'action' in the text of specific objects in the equipment section is Use an Object.  Is this correct?  Is using any of the objects in the equipment chapter the Use an Object action as the Use an Object text seems to say?  If not, then what can you do with Use an Object?


What happens to the water on the surface of the Earth if the Earth is not rotating about its axis in the Earth-Moon system?

Suppose the Earth is not rotating. As usual, the Moon follows its normal path around the Earth. Let's assume it's a circular motion and that there are no other gravitational influences.  A test particle on the surface of the Earth directed to the Moon on the line that connects the middle points of both will feel the Earth's gravity directed to its center and the Moon's gravity directed to the Moon.   A test particle on the opposite side of the Earth will also feel the Earth's gravity directed to its center (equal but opposite to the gravity experienced by the above-mentioned test particle) and the (smaller because of the greater distance to the Moon) gravity caused by the Moon.  So the surface water on Earth is attracted on both sides where the test particles reside with equal strength to the Earth. But the gravitational influence of the Moon on the water is bigger on the side directed to the Moon than it is on the opposite side. The difference is the greatest for the two test particles.  You would expect that because the water is pulled to the Moon by a little bigger gravitational force on the side of the Earth facing the Moon than on the opposite side (not facing the Moon), a bulge of water, directed to the Moon, will emerge that rotates around the Earth in sync with the Moon's motion.   But we must of course not forget that in this case there are also centrifugal forces that pull on the water due to the rotation of the Earth and the Moon around their CM (this is of course not the rotation of the Earth around its axis which I put zero). The CM between the mass and the Moon lies at 4600(km) from the center of the Earth in the direction of the Moon. The centrifugal force is bigger on the part of the Earth the furthest from the CM, where the gravitational effect of the Moon is the smallest (when the Earth is rotating also the centrifugal forces due to the rotation of the Earth itself come into play, which makes the situation more complicated).   So the question reduces to: What is the ratio between the centrifugal force plus the gravitational force caused by the Moon on the furthest part on Earth to the Moon and the centrifugal force plus the gravitational force caused by the Moon on the closest part of the Earth.   On the far side (from the Moon) of the Earth the Moon's gravitation is smaller but the centrifugal force bigger, while on the close side the Moon's gravitation is bigger and the centrifugal force smaller. Anybody who can do this quite straightforward calculation (for finding the ratio)? One thing is sure: two opposite bulges will develop which each go around the Earth in the same time as the Moon makes one complete cycle around the Earth. The ratio gives us information about the height of the bulbs.   EDIT I made an obvious error (to make my error clear I let the question as it is). The Earth isn't rotating (as can be read in my question), so no centrifugal forces are present. It's true that, in this case, the CM (4200(km) from the center of the Earth) rotates around the center of the Earth in sync with the rotation of the Moon, but the Earth doesn't rotate around the CM. So there are only tidal forces at work which causes the two bulges rotating around the Earth in one Moon cycle.


Possible to use a root data transformation below a square root (< 2) for data normalization

Is it possible to do a variation of a root data transformation that is below x^(1/2)? Are there rules against this - for example: do they need to be whole numbers? Can anyone provide literature on this?  Context of transformation: Transforming to exhibit a normal distribution before applying a specific statistical test.  Example: x^(1/1.5)


I have WinForm application and i want to enter fullscreen mode and remove all bars and the task bar. i done it with this:  this.WindowState = FormWindowState.Maximized; this.FormBorderStyle = FormBorderStyle.None; this.TopMost = true;   The top bar is really hidden but the Windows TaskBar is still visible. Any idea what can be the trouble?


Every natural number can be written as the sum of distinct Fibonacci numbers?

Can anyone hint me to prove:  $\forall n\in \mathbb{N}: \exists$ Fibonacci numbers $ F_{i_1},\ldots,F_{i_k}$ such that: $$\sum F_{i_k}=n$$    Note: Every Fibonacci number can appear only once. Thanks


$A$ and $B$ are two non-empty subsets of the real set. Given that  $$(x \in A \text{ and } y \in B) \implies x\leq y$$  Show that $\sup A$ and $\inf B$ exists and that $\sup A\leq\inf B$


Example of two convergent series whose product is not convergent.

Could someone give me an example of two convergent series $\sum_{n=0}^\infty a_n$ and $\sum_{n=0}^\infty b_n$ such that $\sum_{n=0}^\infty a_nb_n$ diverges?


How to address one male and one female in an informal email?

In an inter-company (informal) email, when the addressees are one male and one female, I usually use Hi Guys. However, guy has a distinct male flavour. Could you suggest a more gender-neutral addressing for the above?


Question on the stability of the solar system

One of the pertinent questions about many body systems that causes me much wonder is why the solar system is so stable for billions of years. I came across the idea of "resonance" and albeit an useful concept, it hardly explains the long stability of the solar system. Normally an N body problem with inverse square mutual interaction is an example of a chaotic system. Is there any real progress about this stability issue?


Prove for any $K \leq G$, either $K \leq N$ or $KN=G$ and $[K:K \cap N]=p$ where N is normal in G and $[G:N]=p$

The full question: suppose N is normal in G and $[G:N]=p$ is a prime. Prove that for any $K \leq G$, either (1) $K \leq N$ or (2)$KN=G$ and $[K:K \cap N]=p$.  Since $N,K \leq G$, it is of course possible that $K \leq N$ could happen.  but for (2), we can show $KN \subseteq G$  but how can we show $KN=G$?  And what information does "$[G:N]=p$" give us?


Can vs. Could in the reply "It can/could be in the car"

I’ve made another mistake in a modals test, in the can/could segment.  The following exchange was presented:     Where’s my bag? Have you seen it? – No, but it _ be in the car.   I decided that both ‘can’ and ‘could’ are appropriate in the underscored position.  The key contained only ‘could’. I’m curious why ‘can’ here is wrong:     Where’s my bag? Have you seen it? – No, but it *can be in the car.   In the Russian language, we use only the present-tense form of ‘can’ in such hypothetical answers: the past of 'can' would sound literal and ridiculous; so one may tend to carbon-copy the 'can' construction into English, failing to notice the difference in sense.   I’ve consulted a textbook and it says that ‘can’ tends to be used to convey a more general meaning. An example is given:     The weather can change very quickly in the mountains. (in general)      The weather is nice now, but it could change. (the weather now, not   in general).   Is it in the same vein with the car in the example? Does “It can be in the car” sound too general while “It could be in the car” zeroes in on the immediate situation?   Would the sentence with ‘can’ come out too haughty in the context, that is, a person turns for advice concerning situation at hand, and gets a generic sentence, almost telling him “well, your bag, speaking generally, can fit in the car, go guess the rest of it”?


I am new to Python, is there any best way to resolve below issue list slicing I have main list called result = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]  I would like to slice above list divide 12 and expecting to have the following output: new_result = {     'One' : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],     'Two' : [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],     'Three' : [25, 26] }


$AB - BA = \lambda B$ has a nontrivial solution, iff $\lambda = \lambda_i - \lambda_j$?

I have the following question in hand.   If $\lambda_1,\cdots,\lambda_n$ are the eigenvalues of a given matrix $A \in M_n$, then prove that the matrix equation $AB - BA = \lambda B$ has a nontrivial solution $B \neq 0 \in M_n$, if and only if $\lambda = \lambda_i - \lambda_j$ for some $i,j$.


I can't find any information on how to disable Windows Defender in Windows 10. There is some information about how to do it in the previews, but the configuration pages have changed with the final release.  Specifically, I want to stop and disable the Windows Defender Service.   Using net stop windefend from an elevated command prompt gives "access denied" Stop and startup type are greyed out in sevices.msc, even when logged on as administrator There doesn't seem to be a GUI way to disable UAC in Windows 10   Has anyone figured out how to disable Defender in Windows 10?


Eevee not rendering properly if High Quality Normals isn't checked

I'm not sure what went wrong, but it's probably because of the graphic driver update (RX570) I've set the left section to be "rendered", and the default cube turned transparent  This it the render result. Transparent Default Cube.  This is the render result if I enable High Quality Normals.  I'm quite new with 3D works (and Blender in general). Sorry if this question's a bit basic.


I would like to know how to calculate battery life when using an LED strip. The LED strip is powered by 8 AA batteries in series. LED Current Draw = 260 mA. LED power consumption: 3.1 W. LED Operating Voltage range: 9-14.8 VDC. Please see attached images for battery datasheet.  This is my calculation, but I'm not sure if it's correct:     Battery Life = (Battery Capacity)/(Load Current) = 2000 mAh /260 mA = 7.7 Hours   This is for one battery, and the lights are powered by 8 batteries, so is the total battery life = (7.7)x(8) = 61.6 hours ?


I love pure math but detest teaching. What non-academic options do I have after finishing a PhD in Complex Algebraic Geometry?

I love pure math and currently I am at a very low ranked US math PhD programme. My area is Complex and Algebraic Geometry which I love it. But, after some semesters of being a TA, I realized that I detest teaching. Repeating and repeating again. And furthermore, having to deal with those annoying undergrads is horrible.  I really love my research subject, but since I am in a very low ranked US PhD programme at an unknown state university, with probability zero I will get a research job or even a postdoc. What non-academic options do I have after finishing? I do not mind going back to my homecountry, but the only alternatives I have there(Latin America) are working in a Bakery again, which I did during my undergrad, or sell drugs or being a smuggler. I will not even get a faculty position because I detest teaching and my PhD school is very low ranked. I could not get into a math PhD programme in my country nor Spain nor Brazil, so I got into my actual PhD school.  What should I do? Any advice besides learning programming or finance, well I may not have enough time since in my programme all TAs are overloded with work. Thank you very much.  The only reason I remain is for my own self esteem mostly and because I love pure maths; otherwise I would quit. Having said that, I have no issues selling drugs, it is just not to hurt my grandmother, who raised me, that I am looking for an alternative. She made a lot of effort and worked hard so I could finish High school. But I would do anything for not ending up as a lecturer in a crappy community college or another unknown state U or U in my country.


I downloaded the Iso for v13.04. I mounted it and tried to execute wubi.exe but nothing happens. Tried both 32bit and 64 version. Tried to run it with anti-virus turned off but I don't even get an error message.


Calculus shouldn't work for describing physics

I am not crazy. Hear me out.   I am not from a physics background but from maths. I have a really weird question in physics that is making me lose sleep. How can calculus describe physics? How is it possible? Nature is not continuous (or is it?). Everything eventually breaks down into atoms. The way we deal with objects in physics is to consider constituent parts of $dx$ length. But the point is that $dx$ doesn't exist! It is like infinity! An abstract concept which doesn't have existence in reality. Calculus on the other hand deals with the continuum. Real numbers don't have gaps in between them but atoms do. I understand calculus is used as an approximation but it shouldn't even work like that. How does a body of knowledge created for an entirely different kind of object work for something else?  I am not crazy.


I'm trying to import a large 70GB+ database (all InnoDB) using mysqlimport. This is a development system on Windows using WAMP server. MySQL 5.6.17.  I'm getting the following error:  mysqlimport: Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* WRITE' at line 1   Here's the command I'm trying to use:  mysqlimport -u root -p --lock-tables --debug-info --use-threads=4 testdb "C:\Users\Test User\Documents\Dump20140620_1642\*.sql"   I usually use MySQL Workbench to do the import but I wanted to use the use-threads parameter and I don't think MySQL Workbench does this. What's wrong with this syntax?  I also tried:  mysqlimport -u root -p --lock-tables --debug-info --use-threads=4 testdb "C:/Users/Test User/Documents/Dump20140620_1642/*.sql"  mysqlimport -u root -p --lock-tables --debug-info --use-threads=4 testdb 'C:\Users\Test User\Documents\Dump20140620_1642\*.sql'  mysqlimport -u root -p --lock-tables --debug-info --use-threads=4 testdb "C:\\Users\\Test User\\Documents\\Dump20140620_1642\\*.sql"   All gave the same error message.


So i read about the Zener diode voltage regulator circuit in the The Art of Electronics book, it made no sense to me, then I read about it in this  which was helpful but I still don't get it:         – Schematic created using   How is it reglating the voltage exactly?! and why is the diode "reverse biased" (I guess it means connected in reverse) which doesn't conduct current unless a very high reverse voltage is applied?  If for example the input voltage is 12V, what would be the output voltage and current? and what would be the voltage and current values through the diode?


Firefox starts when I use sudo in the terminal, but not from the launcher. All the other apps work like a charm, just not Firefox. How can I fix this?


Lets say I have a database that contains X SHA256 hashes . How do I calculate the likelihood of a me creating a hash out of random values that collides with any hash in the stored database?


Do I need a transit visa in Frankfurt, Germany on the way to India?

I am travelling from US to India, with an Indian passport but expired F1 visa and going there to get my H1B visa stamping. I have a stop at Frankfurt, Germany for 4 hours while flying to India. Do I need a transit visa for my trip?


When do we combine dimensionality reduction with clustering?

I am trying to perform document-level clustering. I constructed the term-document frequency matrix and I am trying to cluster these high dimensional vectors using k-means. Instead of directly clustering, what I did was to first apply LSA's (Latent Semantic Analysis) singular vector decomposition to obtain the U,S,Vt matrices, selected a suitable threshold using the scree plot and applied clustering on the reduced matrices (specifically Vt because it gives me a concept-document information) which seemed to be giving me good results.   I've heard some people say SVD (singular vector decomposition) is clustering (by using cosine similarity measure etc.) and was not sure if I could apply k-means on the output of SVD. I thought it was logically correct because SVD is a dimensionality reduction technique, gives me a bunch of new vectors. k-means, on the other hand, will take the number of clusters as the input and divide these vectors into the specified number of clusters. Is this procedure flawed or are there ways in which this can be improved? Any suggestions?


Renaming a bunch of files with date modified timestamp at the end of the filename?

So, say, I have a directory with a bunch of files like g.txt, where g.txt was last modified on, say, June 20, 2012.  How would I batch-rename all of the files (like g.txt) with the last modified date of June 20, 2012 appended on the end?


Can the Wizzair Discount Club membership holder's companion travel without the holder himself?

We booked 2 tickets using discount club to complete the booking. During booking it was said that you have to be a passenger in order to use Wizzair Discount Club. But now something came up and the membership holder cannot travel.  My question is whether the other traveler can still use the flight?  If not, what are our options? Can we amend the booking in any way? Is the money we payed refundable in any way (or can be reused)?


Giving named variable to function dynamically

I have dictionaliy for variables of function. x = {"reverberance":20,"hf_damping":10}  Now I want to give the contents of x to this funciton. def reverb(self,        reverberance=50,        hf_damping=50,        room_scale=100,        stereo_depth=100,        pre_delay=20,        wet_gain=0,        wet_only=False):  What I made for now is, but it doesn't work, because maybe x[key] have to be converted to str? (but if not i can concatenate ) x = {"reverberance":20,"hf_damping":10} arr = [] for key in x:     arr.append(key + "=" + str(x[key]))   reverb(",".join(arr))


I have an Ubuntu machine at home which I can access over SSH (my router forwards that port). It works fine except when my PC is connected to the VPN, in which case all traffic (including response to incoming connections) goes out the VPN. This is because when the VPN is on and an SSH client tries to connect, my PC sees incoming connection from my SSH client's public IP address and replies to its public IP address via the VPN interface. So the SSH client trying to connect to my PC at IP address 1.2.3.4 (my router's public IP address) receives the response from IP address 5.6.7.8 (my VPN's public IP address) and ignores it. Is there a way to do either of those  configure my router (Ubiquiti EdgeRouter X) to masquerade and make incoming connections appear to come from its local IP (as is the case with hairpinning when a client on the LAN connects to the PC via its public IP address) configure openvpn or iptables to send replies to incoming connections via the normal LAN interface rather than the tunnel interface


Hi again i will try my best with my broken english to explain :  I have a Plane and Sphere, i link both with the plane as parent and the sphere as child. After i use in Object Tab the Duplication (faces), so  i have as result a clone (the second sphere).  So now i would like to make a object from this clone (make duplicates real) and work on it, like a new mesh.  For that i have selected the parent (the plane) and do  Shift+Ctrl+A  and as you can you on the last screenshot i have on the left menu " make duplicates real"  but what do i need to do now?


Sometimes my Ubuntu 16.04 is not shutting down when I am trying to shutdown from the task menu. I am forcing shutdown by pressing the power button. I want to know the reason and solution for this.


Transit in Toronto from US to Europe on Air Canada

I am going back from 14 days US vacation to Germany via Denmark, flying on Air Canada from Newark, transferring in Toronto and leaving Toronto to Copenhagen (CPH) on Air Canada 4 hours later. Both AC flights are on the same ticket and I am German. On a separate Star Alliance ticket (Scandinavian Airlines), I will fly from CPH to Germany after 2 hours layover in CPH.   Will I be able to check my luggage through to Denmark or Germany from New York? Don't think so, because from Toronto Airport Website I understood, that I will have to gather and recheck my luggage. I have read on a forum, that at Toronto Terminal I might get , from where it is impossible to go to the Maple Leaf Lounge until it is time to go to customs and security. Did I misunderstand or might something similar be possible?


I have downloaded an app on my phone because I want to take out information from it. It has pages (In image form, probably PNG) that I need on my computer. I went to storage and I clicked on the app, in "Space used" it says the app size is 57.27MB, but I want is the user data (Because when I first downloaded the app, the pages weren't there, but when I opened the app they gave the option to download the pages and I clicked the option to downloaded all pages). The user data is 288MB, and the total size of the pages is probably somewhere in 200MBs. So it means the pages are in "User Data." When I connect my phone to my computer (through USB) this shows up:    So if the images are in User Data, from which of those can I locate the "User Data" of the app? Note the app's name is Al-Muhaffiz and it was published by Mahad Al-Zahra Publications.


I just learned about it to some depth (not very much, just the basics), and I fail to see why is this phenomenon considered strange or unexpected and the like at all.  I mean let's consider a bag with a red and a white ball in it. Now, lets suppose someone, without looking (maybe just putting their hand into the bag and doing it there), puts one ball into a box, and the other into another box, and then brings those boxes way apart. Then, if one box is opened, we instantly know the colour of the other as well. I fail to see how this differs from all the classically taught entanglement and "spooky action at a distance" cases (like the Aspect experiment), for me this is identical to those. And consequently, I fail to see why is this a big deal, I mean I find nothing suprising or particularly interesting in this.  Obviously I am missing something, but I just can't figure out what. Any suggestions?


What are the benefits of virtual machines?

Following the idea at  I've used VMs personally, but can't seem to understand why it exists for any real world need. So I ask: why are virtual machines needed?  I can think two things. Testing compatibility support for different operating systems and 'isolation', a quarantine for someone to reverse engineer a virus or something. But are these really enough to justify the multiple projects dedicated to making good VM software? Where is the demand for these tools coming from?


what is training score vs validation score vs testing score

I have got confused between these three: Training score, Validation score, Testing score   Is validation score and testing score the same thing? How is training score calculated?   For e.g., cross_validate returns test_score, train_score.  How and on what, the test_score and train_score is measured?


Tax considerations for selling a property below appraised value to family?

I own a property that recently appraised for $350,000 in the state of Maryland that I purchased for $300,000 7 years ago. I wish to sell this property for a value of $240,000. Here are my questions:   Is this legal? The state of Maryland has a transfer/recordation tax of 1.5% for each, the buyer and seller. Would this be computed on the appraised or sale value? Will this pose any problem if the buyer needs financing? Would I be able to deduct a capital loss on my tax return?     From comments: I should have mentioned - the buyer is a sibling.


How to capture the output of a bash script from a C program?

I want to save the output from a bash script which is invoked from a C program to a variable declared in the C program. I searched and tried successfully calling a script using system, and I tried this, but it didn't work:  char* a; system("a=`ls`"); printf("%s",a);


Did darth plagueis ever make any appearances and if so how similar does he look to Snoke?

I've been reading some through some fan theories lately and I really feel like believing the fact the Plagueis somehow avoided his death and made it all the way through to TFA. I've seen some apparent pics of him on google images (yeah, I'm not really trying too hard here) and I can't deny that it looks a fair bit like what Snoke did in the film. I've only seen the film once so I might be completely wrong. Also, what are the chances that they actually are the same person?  Edit: in a way this could be a dupe. But honestly I'm just asking if plagueisis had any previous depictions (canon or not) and whether it could be said that they look convincingly similar.


I am using Ubuntu 13.10. When I try to open the Adobe Flash Player download page, Firefox shows an error that it is unable to open the page. It opens other pages fine but no the above page. What can I do?


QC 35 paired with MacBook and iPhone simultaneously audio stops

Recently I have been having these issues with my MacBook and iPhone wherein if I press the play/pause button on my MacBook to stop iTunes it "mutes" all audio and switches to my connected iPhone.  Only when I reset my QC35 does it reset and behave correctly (where in pressing the button stops iTunes but leaves audio connected to my MacBook).  Any ideas how I can solve this permanently or can someone guide me in the right direction?  Update  Little late but thought I'd add an update. I simply contacted Bose and they ended up replacing my headphones and even gave me the gen 2 headphones


I wanna customize Ubuntu mini CD and sell it to companies (make unique Ubuntu version). Is it legal? I mean we will do absolutely different system, but making it from mini cd.   Yeah, I really have FOSS spirit, and I want to share Linux and make it popular. But for live I need money, so I thought I can make different versions of Ubuntu with my DE and some unique things for each company. So that will be ideal job for me.


I need to parse date from JSON (I can't do any change in this JSON on server).  { ... "time":"2014-02-14 18:37:48", ... }   In  it is: YYYY-mm-dd HH:ii:ss  I want to change date format, for example to "dd.mm.YYYY HH:ii". In PHP it is easy, but in JavaScript I do not know how to parse it.  I try , but I still do an error :-(  Can you please help me?


I need a easier way to get arrows like maybe making one then having infinite arrows.Maybe there's a link you could find and post so that I could watch a video?


How to resize image to custom dimension from URL in openpyxl?

I have got the image whose dimension may vary from URL using python. Now, I want to compress the image into size (250x120) in python and save it to the merged cell in python. I am using openpyxl and Pillow package for this purpose. I get the image and save it to excel file however, I am unable to resize the image into my desired dimension. Can anyone please help me on this?? The code for this project is as below: - import openpyxl from openpyxl.writer.excel import save_virtual_workbook from openpyxl.drawing.image import Image import PIL import io import urllib3   wb = openpyxl.Workbook() ws = wb.active r = 1 ws['A1'] = 'test' http = urllib3.PoolManager() r = http.request('GET', 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/NGC_4414_%28NASA-med%29.jpg/1200px-NGC_4414_%28NASA-med%29.jpg') image_file = io.BytesIO(r.data)  **# The current dimension may vary and resize image to 250x150.**   img = Image(image_file) ws.add_image(img, 'A2') wb.save('customExcel.xlsx')


simple java boolean. Why does this return false?

public class Main {  public static void main(String[] args) {     System.out.println(endOther("Hiabc","abc"));  }  public static boolean endOther(String a , String b) {      System.out.println(a.substring(a.length() - b.length()));     return a.substring(a.length() - b.length()) == b; } }   basically it prints "abc" but then returns false and I don't know why


I have completed my animation but I realised when I render it that one of the propellers blades starts to glitch. On some frames it is in shot and some it is out of shot and this is really strange. These 'blades' are both parented to the same 'propeller' and the 'propeller' is parented to the middle ball. I have baked the animation through so this shouldn't be a problem. These propellers are passive rigid bodies. I have tried to figure out this problem and I just can't get to a solution. I've never had it where a rigid body object glitches out like that in the rendered animation, it's almost like it's jumping, which on the render these frames show the object as invisible. The videos attached will show.


I'm using a few plugins that have shortcodes ... however, instead of creating a public page for the content, I've created some new pages within the admin using add_menu_page and I need to know how to utilize do_shortcode() within this context.  As it stands, all the function does it spit out the string. I'm assuming it's because the shortcode API isn't available within an admin page.  How do I get around this? There is no documentation that I can find that explains how to utilize shortcodes within the WP Admin... or if it's even possible.    Specifically I'm trying to utilize WooCommerce shortcodes within the WP Admin. I hate the fact that plugins don't utilize the WP Backend for account/user management.


Let a function $f$ be defined in a hollow neighborhood of $a\in \mathbb{R}$, and suppose :  $$\lim_{x\to a}\left(f(x)+\frac{1}{|f(x)|}\right)=0$$  Find $\lim\limits_{x\to a}f(x)$ and prove that this is the limit by definition.  My approach: It is easy to see that if this limit exists it should be $-1$ but I can't prove it by definition. Please help.


I am trying to install this wifi dongle that I just bought to replace another dongle that I couldn't configure just to find that I couldn't configure this dongle either. Most of the answers related to this point to . I followed those directions but that "didn't work" so I rolled them back by running sudo make uninstall in the rtl8812AU_8821AU_linux directory. Then I also tried going to the "additional drivers" gui and selecting the driver from there. This yielded the same result.   The line from my lsusb that I am looking to get to run my wifi  Bus 001 Device 007: ID 13b1:003f Linksys WUSB6300 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]   My current iwconfig output  enp0s31f6  no wireless extensions.  lo        no wireless extensions.   I found this other SO question  and had the same message as @Herman Jaramillo noted in the comment Module 8812au not found  Here is a screenshot of my "Additional Drivers" gui.   Edit  This is the  with the output of the script linked in the comment below. The one I am interested in getting to work is the Linksys device listed on line 41.  Edit  The SO software encouraged me to edit my question to explain why it is not a duplicate of the answer pointed to. It is not a duplicate because this question is not about the Edimax wifi dongle but a different dongle the Linksys dongle present in the output of lsusb.   I am editing this question again to explain how it is not a duplicate of the linked answer The linked answer is related to the EDIMAX dongle that is installed on this system but is not what this question is about the question clearly reads in the title that it is about the Linksys WUSB3600. Please kindly do not disregard my attempt to mark this as a non duplicate.  Final Edit, my solution  Because this question was improperly marked as a duplicate I cannot answer it in the proper stackexchange way. I will add my answer here for anyone that finds it useful. The problem that I was having the entire time was related to the secure boot and UEFI features that I have never used before. When you disable secure boot when installing drivers, the system asks you for a password. On your next restart, there will be a blue screen that comes up with something about MOK Managemnt. THIS IS WHERE YOU USE THAT PASSWORD THAT YOU PUT IN EARLIER. You SHOULD press a key to enter MOK management, then you will provide details of the password that you entered earlier. Only then will the driver upgrades be applied. Hopefully this question will be made a non-duplicate so that the answer can be made in the usual way. I worked on this for several hours before finding out that MOK had "Shim UEFI Key Management" had anything to do with disabling secure boot. These UIs should be changed to reflect that fact.


Since I upgraded my s7 edge to nougat I am seeing this icon with circle quater of which is white and the rest dim and a plus sign in center.  There seems to be no  info in notification panel


Hello I have Windows 10 on SSD and want to install ubuntu 15 on my Seagate Barracuda Green 2TB. I have only found one tutorial that handles this issue.    Has anyone tried this and have you encountered any problems? I will use Windows 10 for gaming and ubuntu for most other things I need. Will my performance drop a lot by using a non SSD for Ubuntu?  I am pretty new on Ubuntu so sorry for the newbie question


explicit formula for contraction of conus of homotopy equivalence

Let $f: K^\bullet \to L^\bullet$ be homotopy equivalence. From theory of triangulated categories it follows that $C(f)^\bullet$ is contractible. But how can i produce explicit formula for homotopy of $Id_{C(f)^\bullet}$ and $0_{C(f)^\bullet}$?


What is the difference between correlation and causation?  Pirates and Global Temperature Example  For example, how do we know when we're dealing with correlation only and not also causation here?   What Certain Philosophers Seem to Hold Regarding This  It would seem that   Hume would saycorrelation ≡ causation. Aristotle would say that in generalcorrelation ≢ causationand thatcausation ⇔ correlationonly if we are not dealing with chance events.   ("≡" means "is identical to," and "⇔" means "implies each other.")


I know that the Lorentz factor is  given by: $$\gamma=1/\sqrt{1-v^2/c^2}$$ However $c$ is a function of the medium parameters $\epsilon_0$ and $\mu_0$. Does the Lorentz factor change for the interior of materials or is it always dependent on the speed of light in vacuum. My guess is that it is, because even the interior of a material is mostly vacuum. Have experiments to verify this been done?


I have a QEMU virtual machine that uses a qcow2 disk image.  How can I mount its filesystem without powering on the virtual machine?


I'm writing a small web app using a SQlite database to store users information. But I cannot figure out why I get a NullPointerException if the password entered is wrong only once the first time.  Here is my method checkPasssword() :  private boolean checkPassword(String password) throws SqlJetException {     boolean valid = false;      File fileDb = new File(DB_FILE);     db = SqlJetDb.open(fileDb, true);      db.beginTransaction(SqlJetTransactionMode.READ_ONLY);     try     {         ISqlJetTable table = db.getTable(USERS_TABLE);         ISqlJetCursor cursor = table.lookup(PASSWORD_FIELD, sha1(password));         if (!cursor.eof())         {             valid = true;         }     }      catch (NoSuchAlgorithmException e)     {         e.printStackTrace();     }      finally      {         if (db != null)         {             db.commit();             db.close();         }     }      return valid; }   At this line :   db.close();   I get a NullPointerException only if the password is wrong the first time even with the if condition before. If the password is correct the first time and wrong a second time it works! It works every time the password is correct.  Here is the StackTrace :  # java.lang.NullPointerException at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(SqlJetEngine.java:219) at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.close(SqlJetEngine.java:233) at Login.checkPassword(Login.java:91) at Login.doPost(Login.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:738) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:478) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:462) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:279) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) at java.lang.Thread.run(Thread.java:744)   Any idea ???  Edit : I solved it just by moving db.close() outside of the finally block.


I am trying to simulate an AR1 process which has a mean of $\mu $.  ie. $y_t- \mu = \Phi(y_{t-1}-\mu) + \epsilon_t$   says that we should do :-  arima.sim(list(order=c(1,0,0), ar=.8), n=53,sd=21) + 300   where $\mu = 300,\Phi= .8$, n = length of series  Can someone show me how this is working? How does adding $\mu$ to this equation:-  $y_t = \Phi (y_{t-1})+ \epsilon_t$   make it into :-  $y_t- \mu = \Phi(y_{t-1}-\mu) + \epsilon_t$


In C++, I have some troubles understanding the difference between these 3 ways where const is used :  int get() const {return x;}         const int& get() {return x;}       const int& get() const {return x;}    I'd like to have a clear explanation with examples to help me understand the differences.


This might be a duplicate post but couldn't find one.  I'm looking for a way to run a shell script once at a specific time.  Like run it once at 16:00 then remove from queue. crontab has no setting for this as I can find since it runs on repeat and not like fire and forget kind I'm looking for.  Anyone got a good suggestion? I want it to be run on Ubuntu 18.04  server version.


I’m very new to Linux and can’t really use the command line well. I’m simply trying to install the latest updates. When I do, I get a ‘not enough free space’ message.  I can see in my System Monitor that my boot drive is pretty much full, but the internal 1 terabyte HDD has barely been touched. Is my boot drive a different storage unit in my computer I don’t know about (perhaps something that comes default on the motherboard)?  Is there a way to change my boot drive smoothly to the terabyte HDD? That is, can I easily transfer the OS files to that drive? In fact, what is the boot drive? Is it simply whatever drive I have the Linux OS on?    I’ve done some looking around on forums and see that people clear out old kernels. I don’t quite understand what this means. Are they simply deleting the old updates, because the newer ones have essentially more efficient and better programming/capabilities?  Is there a way to do this without using the command line?  What is the best solution?


datetime picker, timestamps and meta queries

I have a custom meta box with a datepicker. The datepicker outputs 2013-01-17 10:00 in my database for an event that is 01-17-2013 at 10pm PST.  $eventlist = new WP_Query(array(     'post_type' => 'events',     'posts_per_page' => 5,     'order' => 'asc',     'orderby' => 'meta_value',     'meta_key' => 'datetime',     'meta_query' => array(         array(             'key' => 'datetime', // Check the start date field             'value' => date("Y-m-d H:i:s"),               'compare' => '>=',              'type' => 'DATETIME'          )     ), ));   The issue is, at 4pm PST the event disappears, leading me to believe somewhere it is thinking its UTC and making the post go bye bye. Where would i Find this issue and how can i solve it?


What was the data they needed from the black hole?

Supposedly in order to complete the theory of everything needed to master gravity, the physicists needed some data that could only be obtained from a black hole. What was it that they needed?


Can you hide hidden files in specific folders (like the desktop) while keeping them shown everywhere else?

I work with hidden files all the time, but I like an uncluttered desktop. It would be nice to make files like .DS_Store, and .localized invisible just on the Desktop.  Please note I am already aware of this trusty old terminal standby:  defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder   Setting that flag to FALSE applies to everything in the system. My goal is to make an exception for the Desktop. Any suggestions?


Is there a difference between NADH and NADH2?

I've been reading a lot about the oxidative dissimilation etc, and often I see different sources use NADH and NADH2 in the same reactions. One source uses NADH and another uses NADH2 in the exact same way. Is there a difference or is it just a different name for the same substance?


How do I compare two dynamic arrays and check which elements match?

I want to compare two matrices element-wise and return a matrix containing a 1 if the elements in that location match, or a 0 otherwise. I created a simple test function that does this:  template <class A, class B> void func(const A& a, const B& b) {     auto c = (b.array() == a.array()).cast<int>();     std::cout << c; }   So I wrote a main function like this to test it:  int main() {     Eigen::Array<int,Eigen::Dynamic,Eigen::Dynamic> b;      b.resize(2,2);     b.fill(2);      auto a = b;     a(0,0) = 1;     a(0,1) = 2;     a(1,0) = 3;     a(1,1) = 4;      func(a,b);     return 0; }   But I keep getting this error:   eigenOperations.cpp: In function ‘void func(const A&, const B&)’:  eigenOperations.cpp:8:24: error: expected primary-expression before  ‘int’   auto c = temp.cast<int>();   eigenOperations.cpp:8:24: error: expected ‘,’ or ‘;’ before ‘int’ make: *** [eigenOperations] Error 1   What am I doing wrong here?


I see that this question has been asked a fair amount of times, but I'm a little confused by the responses. I was hoping that somebody could please take a look at the code below and help me with how to insert text, that contains an apostrophe, into a MySQL database. The two things that are likely to contain apostrophes are full_desc and meta_desc. Thanks!  Also, I realize that this is prone to MySQL Injection, so any pointers on securing it will also be greatly appreciated. Thanks again!  <?php $con=mysqli_connect("mysql.legfly.com","username","password","database"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); }  //sql  $sql="INSERT INTO races (event_name, event_date ,start_time, entry_fee, sanctioned,location, address, city, state, zipcode, country, sport, special_info, distance, race_url, reg_url, print_url, event_phone, event_email, meta_desc, full_desc, course_info, directions, other_info, perma_url, perma_year) VALUES ('$_POST[event_name]','$_POST[event_date]','$_POST[start_time]','$_POST[entry_fee]','$_POST[sanctioned]','$_POST[location]','$_POST[address]','$_POST[city]','$_POST[state]','$_POST[zipcode]','$_POST[country]','$_POST[sport]','$_POST[special_info]','$_POST[distance]','$_POST[race_url]','$_POST[reg_url]','$_POST[print_url]','$_POST[event_phone]','$_POST[event_email]','$_POST[meta_desc]','$_POST[full_desc]','$_POST[course_info]','$_POST[directions]','$_POST[other_info]','$_POST[perma_url]','$_POST[perma_year]')";  if (!mysqli_query($con,$sql)) { die('Error: ' . mysqli_error($con)); }  echo "Your race is added!";  mysqli_close($con); ?>   Thanks again!


How to find all solutions for Pell's equation $x^2 - Dy^2 = -1$ after the first $x_0$ and $y_0$?   for example if we have $x^2 - 2 y^2 = -1$ then the smallest integer solution for $(x,y) = (1,1)$  How to build on this to get the rest of the solutions ?


Find the limit of $\sum\limits_{k=1}^n\left(\sqrt{1+\frac{k}{n^2}}-1\right)$

$$\lim_{n\rightarrow\infty}\sum_{k=1}^n\left(\sqrt{1+\frac{k}{n^2}}-1\right)$$   Note that $\forall x\ge 0, \sqrt{x}-1\le\sqrt{1+x}-1\le x$ Then $$\sum_{k=1}^n\left(\sqrt{\frac{k}{n^2}}-1\right)\le S_n\le \sum_{k=1}^n\frac{k}{n^2}=\frac{1}{2}-\frac{1}{2n}$$  How do I evaluate the sum on the left?


How to collapse unused parameters in moderncv?

I am writing my CV using the moderncv package. I already have adjusted the CV to meet my needs. Therefore I amplified the maximum number of parameters possible in the \cventry command. However, now I have some ugly spacing in case I do NOT use all parameters (see second \cventry in the MWE for illustration):  Any suggestions to make the spacing collapse in case not all parameters are occupied? As you can see from the MWE I already have adjusted for \ifthenelse command. I use texlive 2014.  \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} \moderncvcolor{blue} \usepackage[scale=0.7]{geometry} \name{John}{Doe} \title{Resume title} \address{street and number}{postcode city}{country} \phone[mobile]{+1~(234)~567~890}  \renewcommand*{\cventry}[9][.4em]{%  \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}%  \ifthenelse{\equal{\bfseries #4}{}}{}{{\bfseries #4}} & \ifthenelse{\equal{\bfseries #5}{}}{}{{\bfseries #5}} \\%   \ifthenelse{\equal{\itshape #3}{}}{}{{\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}}} & \ifthenelse{\equal{\itshape #2}{}}{}{{\itshape #2}}\\%  \ifthenelse{\equal{#7}{}}{}{{#7}} & \ifthenelse{\equal{#8}{}}{}{\\ {#8} & \\}% \end{tabular*}%  }  \begin{document} \makecvtitle \section{Education} \cventry{Grade}{Degree}{Institution}{year--year}{M.Sc.}{Majors}{Majors}{} \cventry{}{Degree}{Institution}{City}{}{}{}{} \cventry{year--year}{Degree}{Institution}{City}{Grade}{Majors}{Majors}{} \end{document}


What does the Akaike Information Criterion (AIC) score of a model mean?

I have seen some questions here about what it means in layman terms, but these are too layman for for my purpose here. I am trying to mathematically understand what does the AIC score mean.   But at the same time, I don't want a rigor proof that would make me not see the more important points. For example, if this was calculus, I would be happy with infinitesimals, and if this was probability theory, I would be happy without measure theory.  My attempt  by reading , and some notation sugar of my own, $\text{AIC}_{m,D}$ is the AIC criterion of model $m$ on dataset $D$ as follows: $$ \text{AIC}_{m,D} = 2k_m - 2 \ln(L_{m,D}) $$ where $k_m$ is the number of parameters of model $m$, and $L_{m,D}$ is the maximum likelihood function value of model $m$ on dataset $D$.  Here is my understanding of what the above implies:  $$ m = \underset{\theta}{\text{arg max}\,} \Pr(D|\theta) $$  This way:   $k_m$ is the number of parameters of $m$. $L_{m,D} = \Pr(D|m) = \mathcal{L}(m|D)$.   Let's now rewrite AIC: $$\begin{split} \text{AIC}_{m,D} =& 2k_m - 2 \ln(L_{m,D})\\ =& 2k_m - 2 \ln(\Pr(D|m))\\ =& 2k_m - 2 \log_e(\Pr(D|m))\\ \end{split}$$  Obviously, $\Pr(D|m)$ is the probability of observing dataset $D$ under model $m$. So the better the model $m$ fits the dataset $D$, the larger $\Pr(D|m)$ becomes, and thus smaller the term $-2\log_e(\Pr(D|m))$ becomes.  So clearly AIC rewards models that fit their datasets (because smaller $\text{AIC}_{m,D}$ is better).  On the other hand, the term $2k_m$ clearly punishes models with more parameters by making $\text{AIC}_{m,D}$ larger.  In other words, AIC seems to be a measure that:   Rewards accurate models (those that fit $D$ better) logarithmically. E.g. it rewards increase in fitness from $0.4$ to $0.5$ more than it rewards the increase in fitness from $0.8$ to $0.9$. This is shown in the figure below. Rewards reduction in parameters linearly. So decrease in parameters from $9$ down to $8$ is rewarded as much as it rewards the decrease from $2$ down to $1$.     In other words (again), AIC defines a trade-off between the importance of simplicity and the importance of fitness.  In other words (again), AIC seems to suggest that:   The importance of fitness diminishes. But the importance of simplicity never diminishes but is rather always constantly important.   Q1: But a question is: why should we care about this specific fitness-simplicity trade-off?  Q2: Why $2k$ and why $2 \log_e(\ldots)$? Why not just: $$\begin{split} \text{AIC}_{m,D} =& 2k_m - 2 \ln(L_{m,D})\\  =& 2(k_m - \ln(L_{m,D}))\\ \frac{\text{AIC}_{m,D}}{2} =& k_m - \ln(L_{m,D})\\ \text{AIC}_{m,D,\text{SIMPLE}} =& k_m - \ln(L_{m,D})\\ \end{split}$$ i.e. $\text{AIC}_{m,D,\text{SIMPLE}}$ should in y view be equally useful to $\text{AIC}_{m,D}$ and should be able to serve for relatively comparing different models (it's just not scaled by $2$; do we need this?).  Q3: How does this relate to information theory? Could someone derive this from an information theoretical start?


Why is it that DNA strands are running in anti-parallel fashion? Given the chemical base-pairing, they could have been parallel just as well.


prepared statement wont work, normal sql will

I'm trying to convert all my non-prepared queries into prepared statements.  In the following code I have commented out the working old query, above it is the new prepared statement. However it's not working for me. Does anyone see anything wrong with this?  <?php require_once 'pdocon.php';  if (isset($_POST['card_id'])) {     $card_id = ($_POST['card_id']);     $rowname = ($_POST['rowname']);     $rowothervalue = ($_POST['rowothervalue']);      $stmt = $conn->prepare("UPDATE cards SET :rowname = :rowothervalue WHERE id= :card_id");      $stmt->bindParam(':rowname', $rowname);     $stmt->bindParam(':rowothervalue', $rowothervalue);     $stmt->bindParam(':card_id', $card_id);      $stmt->execute();      // $status_sql='UPDATE cards SET '.$rowname.' = '.$rowothervalue.' WHERE id=' . $card_id . '';     // $status_result = $conn->query($status_sql); }  $conn = null; ?>


How do I reset the default value of Unity shortcut?   In: "System Settings -▸ Keyboard -▸ Shortcuts ..."  For instances:   I can't put the default Alt L for the HUD.    I can't put the default Alt+Print to capture the active window.   Simply typing it doesn't work.  Solving this in CLI is preferable.


Find all integer values of $a$ such that the quadratic expression $(x+a)(x+1991)+1$ can be factored as a product $(x+b)(x+c)$ where $b$ and $c$ are integers.  I tried expanding the brackets and equating it with $(x+b)(x+c)$ : $x^2 + 1991x + ax+1991a + 1 = x^2 + cx + bx + bc$ $=>(1991+a)x + (1991a+1)  = (c+b)x + bc$ If I equate corresponding coefficients, I get two equations with three unknowns. What is the "proper" approach to solve such problems ? EDIT : This problem has been taken from a math contest "RMO" held in the year 1991. So I think this problem can be generalized for the expression $(x+a)(x+\lambda)+1$. How to solve it in that case ?


Matrices: Given $A^{-1} A = I$, prove $A A^{-1} = I$

I am trying to prove that for two linear transformations ($A$ and $B$), if $AB + I$, then $BA = I$ as well. I think that the best way to go about this is by using the fact that all linear transformations can be represented with a matrix, then show that $AB = BA = I$ whenever $B = A^{-1}$ (note I am working with finite vectors, I am not sure of the properties in an infinite case).      How can you prove that $AA^{-1} = I$ given that $A^{-1}A = I$?


I am puzzled about the word "inhomogeneous." Isn't "heterogeneous", strictly speaking, more correct? Do correct me if I'm wrong, but to me, "inhomogeneous" looks like the Latin prefix "in-" added to a Greek word. As such, it sounds a bit like "aquaphobia" to me.


Understand the difference between independent and mutually exclusive events

I would like to understand the difference between mutually exclusive events and independent events for the following example:       Two buckets A and B have the following:      Bucket A: 3 black balls and 5 white balls     Bucket B: 4 black balls and 2 white balls  One ball is drawn from each bag. Find the probability of getting 2 white balls.   Here are my questions:   If E1 is an event for Bucket A and E2 an event for Bucket B. Why are these events "independent" and not "mutually exclusive"?  What changes would you make to the problem to make the two events mutually exclusive?   Thanks for your help.


Showing $\gamma < \sqrt{1/3}$ without a computer

In 1735 Euler gave the value of $\gamma$ as $0.577218.$ The constant is generally defined as the limit of the difference between the harmonic series and $\log n:~\gamma= \lim_{n\to\infty}\sum_{k=1}^{n}\frac{1}{k}-\log n.$ Euler apparently relished this sort of calculation and must have taken quite a few terms to get such a good approximation.  My question is whether without a computer one can now prove that  $$\gamma <  \sqrt{1/3}$$   with at least some savings in terms of the type of work Euler apparently expended? I don't think there's any point in raising the bar to $\gamma < \ln 2\sqrt{\frac{23}{29}} $  because it seems to be the same sort of question.       My own thought was to compare $\frac{1}{2}\int_0^{1/3}\frac{dx}{\sqrt{x}}$ to something like $(-1)\cdot\int_0^\infty e^{-u}\ln u~du$ but I expect there's a better way.


When did it become common to 'double the conditional'?

Twins is a 1988 comedy featuring Arnold Schwarzenegger and Danny DeVito as genetically engineered twins. The fact that they’re genetically engineered is used to explain the differences between Arnold and Danny, but the movie would’ve probably worked as well if they would’ve been regular brothers. , .  If they would have been is something I would never say. In my dialect, if they had been is the correct choice. And I don’t think I’ve ever heard the if they would’ve been construction from anyone here in the middle of Ireland, or even from anyone on this side of the Atlantic, but it is certainly common online. I suspect that this is currently a purely American phenomenon, but I could well be wrong about that. I am not sure what search terms to use to do my own research. The phrase “double conditional” is one I came up with as I asked this question. I’m certain it’s not the standard term used to describe this usage. And most results from a search are about programming languages. However, I did turn up a couple of relevant references.  DEAR GRAMMAR LADY: A prominent scholar made the following statement in a recent article. “If we would regard religion as a work of art — as a piece of music — we would have a different understanding of it.” The “would” in the first clause strikes me as being incorrect usage/phraseology; i.e., I had expected “If we regarded or if we were to regard.” (sic) Could it be that even scholars of great renown are capable of such blatant mistakes? ANSWER: You are correct. She is guilty of what I call the “double conditional.” Mary Newton Bruder, The Grammar Lady, .  I also found , but it goes off topic almost immediately.


Limit of factorial function: $\lim\limits_{n\to\infty}\frac{n^n}{n!}.$

I am studying for a test and I am given this problem:  $$\lim_{n\to\infty}\frac{n^n}{n!}.$$  How do I go about solving this limit? Intuitively I see how the numerator is growing much faster, but how do I express this precisely? Thanks!


On the existence of a continuous bijection $f\colon [0,1]\to [0,1]\times [0,1]$

Let $f$ be a continuous function on $[0,1]$ such that $f([0,1])=[0,1]\times[0,1].$ Then show that $f$ is not one-one.  Hints will be appreciated.


How to remove the “AMD Testing use only” watermark?

I've installed the  (beta) following the step in  for Ubuntu Quantal Quetzal. My system is 64 bit and my graphic card is an ATI RadeonHD 6670, this g.c. is Officially Supported (Catalyst & Open Source), you can confirm that from this .  I don't have any problem, except the AMD testing use only watermark. I see the following frame in any stage into the OS (logged, unlloged, etc.) except in the terminals.     I found different versions of how to remove this image, but this change according to the system, so I want an answer from this popular (trusted) site.   How to solve this issue in Ubuntu 12.10 32b? This procedure is different in a 64b system?


Writing a shell script in Ubuntu to process several layers as a single animated GIF file

I am an Ubuntu 12.04.4 LTS 32-bit user and I would like to automate the process of opening several PNG images as layers then saving these layers as a single animated GIF file in the GUI of GIMP. My intention is to write a BASH script but I have no idea on how to do that. I would be indebted if someone can provide help or point me in the right direction.


Integral $\int_1^3 \frac{\log x}{x^2+3}dx$

I stumbled upon this integral $$I=\int_1^3 \frac{\log x}{x^2+3}dx$$ Since the answer given by Wolfram-Alpha is $I=\frac{\pi \log 3}{12\sqrt3}$ I tried to work near the bounds of the integral because as a indefinite integral it will involve some polylogarythms which I want to avoid. But not a single substitution  like $x=\frac{1}{y}$ or $x-2=u$ gave any better look to this integral. And when integrated by parts I feel like it got worse. Could you perhaps help me on this?


So here we go,i have this problem first here is my code  $servername = DB_HOSTNAME; $username = DB_USERNAME; $password = DB_PASSWORD; $dbname = DB_DATABASE; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  /*UTF-8 format*/ $conn->set_charset("utf8");  $clean0 = "SET NAMES utf8;"; $clean1 = "UPDATE product_description SET name = REPLACE(name, '$DeleteWord1', '$empty') WHERE name LIKE '%$FindWord1%';";  if ($conn->query($clean0) === TRUE) {     echo "
Product unwanted names deleted successfully
"; } else {     echo "Error updating record: " . $conn->error; }  if ($conn->query($clean1) === TRUE) {     echo "
Product unwanted names deleted successfully
"; } else {     echo "Error updating record: " . $conn->error; }   The code works fine by itself if i don't use Bulgarian letters. but when i use bulgarian letters the code does not want to find $DeleteWord1  when i varp_dump($clean1)  I get       string 'UPDATE product_description SET name = REPLACE(name,  'Р§РђРЎРћР’РќРРљ', ' ') WHERE name LIKE '%SHEEN%';' (length=103)   As you guys can see it's not converted in a UTF-8 aparently for some reason and that's why it does not work with bulgarian letters,  BUT! it works with Bulgarian letters in a Local-Host but not on a Live hosting account  Both databases have collation of utf-8_general_ci (localhost & livehost one)  Any ideas how can i fix this?  $conn->set_charset("utf8");  $clean0 = "SET NAMES utf8;";   Both of those were supposed to do that i tried by themselves e.g only charset and only set names,same issue  And 1 more thing,how can i see if it really passes the values like Р§РђРЎРћР’РќР? since when i set the cleaner.php file to <meta charser="utf-8"> it comes out normally.Any ideas?


Prove that $n=\frac{5^{125}-1}{5^{25}-1}$ is a composite number

Prove that $n=\dfrac{5^{125}-1}{5^{25}-1}$ is a composite number   My attempt,  Let $x=5^{25}$, so that $5^{125}-1=x^5-1=(x-1)(x^4+x^3+x^2+x+1)$  $=(x^4+9x^2+1+6x^3+6x+2x^2-5x^3-10x^2-5x)(x-1)$  $=((x^2+3x+1)^2-5x(x+1)^2)(x-1)$  I'm stuck at this point and don't know how to continue anymore. Hope someone can provide a detailed solution. Thanks a lot.


How many distinct ways to climb stairs in 1 or 2 steps at a time?

I came across an interesting puzzle:     You are climbing a stair case. It takes $n$ steps to reach to the top.   Each time you can either climb $1$ or $2$ steps. In how many distinct   ways can you climb to the top?   Is there a closed-form solution to the problem? One can compute it by creating a 'tree' of possibilities of each step. That is, I can either take 1 or 2 steps at each stage and terminate a branch once it sums to $n$. But this is would get really unwieldy very quickly since the maximum number of nodes in a binary tree is $2^{n+1}-1$, i.e., exponential. Is there an easier way to solving this puzzle?


Whenever I take photos in bad lighting I always wonder if I should use a higher ISO camera or instead use brighter lighting. Please no opinions- just comparisons!


ConTeXt: Replace tokens in document title option

Background  Macros are autogenerated for a book's title and author name. The title can sometimes include TeX-specific tokens, such as ~ and ldots{}.  Problem  When setting the document properties, the title includes the verbatim values in the book title macro.  Code  Consider:  \def\BookTitle{The Strange Case of Dr.~Jekyll and Mr.~Hyde} \setupinteraction[title=\BookTitle,] \starttext \input knuth \stoptext   Produces:    Question  How do you replace the tilde (and other possible entities) such that the typeset value (e.g., a non-breaking space) is passed to the title option of the setupdocument command?  The \expandafter macro doesn't seem to be the correct approach (also, there's no way to know how many items would need expanding). The \detokenize macro didn't seem to interpret the ~ token. Using \the and \relax broke the build.


Zero divisors and units for the ring $\mathbb{Z}/n\mathbb{Z}$ with integer $n$

Given the ring $ \mathbb{Z}/n\mathbb{Z} $ is always true that $ \mathbb{Z}/n\mathbb{Z}=[\text{zero divisors}]\cup[\text{units}] $      How can evaluate the zero divisors and units ?   I believe that $ a x=0 \pmod n $ for zero divisor  and $ ax=1 \pmod n $ for units    I know how to solve a congruence but what is $a$ ?? thanks.  What are the generators of the group $ \mathbb{Z}/n\mathbb{Z} $ under the addition '+' and product '$\times$'?


What can be used as a substitute for tomato sauce in typical italian dishes?

I have a friend that has developed an allergy or sensitivity of some kind to tomato sauce in foods. She has been craving pizza, pasta, and lasagna for a while now and I've been searching for a way to make those sorts of dishes without using tomatoes, but while maintaining a similar flavor i.e. not a white sauce flavor.  Any ideas suggestions?


I know it is a simple theorem that $$ f(\bigcup_{\gamma\in \Gamma} A_\gamma) = \bigcup_{\gamma \in \Gamma} f(A_\gamma)$$  I know how to prove it by the definition of the above things, but I want to prove it by logical proposition using $\forall, \exists$.  \begin{align} &y \in f(\bigcup_{\gamma\in \Gamma} A_\gamma) \\ &\Leftrightarrow \exists x \in \bigcup_{\gamma\in \Gamma} A_\gamma : y=f(x)\\ &\Leftrightarrow \exists x(x \in \bigcup_{\gamma\in \Gamma} A_\gamma \wedge y=f(x) )\\ &\Leftrightarrow \exists x\{(\exists \gamma \in \Gamma: x \in A_{\gamma})\wedge y=f(x)\} \end{align}  and then I don't know how to deal with it.  Help me to prove the theorem by using predicate logic.  *edit.  I want to prove it by predicate logic changing the word 'for some x, for all x, and, or' to '$\exists, \forall, \wedge, \vee$' and using bracket. I wrote that I know how to prove it by the definition of things.


If a Android device is turned off, does the alarm sound?

If a alarm is set and a Android device gets turned off (for whatever reason), does the alarm still sound?  I want to generically refer to Android (latest version if it makes any difference) and we are talking about stock Android


Vieta Jumping: Related to IMO problem 6, 1988: If $ab + 1$ divides $a^2 + b^2$ then $ab + 1$ cannot be a perfect square.

The famous IMO problem 6 states that if $a,b$ are positive integers, such that $ab + 1$ divides $a^2 + b^2$, then $\frac{ a^2 + b^2}{ab + 1 }$ is a perfect square, namely, $gcd(a,b)^2$.  How about a modification of this problem:    If $a,b$ are (strictly) positive integers, such that $ab + 1$ divides $a^2 + b^2$, then $ab + 1$ cannot be a perfect square.    I am looking for a proof of the claim above, or a counter-example.  One possible approach towards a proof is the following:   Suppose there is such a pair $(a,b)$ as above, then by the famous IMO problem 6 from 1988, $\frac{ a^2 + b^2}{ab + 1 } = g^2$ where $g = gcd(a,b)$. Since $ab + 1$ is a perfect square, $a^2 + b^2 = c^2$ for some integer $c$. So that $(a,b,c)$ is a Pythagorean tripple, therefore there exists positive integers $n,m,l$ with $n$ coprime to $m$, such that $a = l(n^2 - m^2)$ and $b = 2lnm$ - by Euclids formula.  Then by plugging in $a$ and $b$ in terms of $n,m,l$ into the original equation, and solving for $l$, it is possible to obtain the following:  There exists positive coprime integers $n,m$ such that   $\frac{(n^2 + m^2 + 1)(n^2 + m^2 - 1)}{2mn(n+m)(n-m)}$ is a perfect square.  If we put the quotient above into a program, as in this python code snipet:  N = 1000  for n in range(1,N):     for m in range(n+1, N):         A = (n*n + m*m + 1)*(n*n + m*m - 1)         B = 2*m*n*(n+m)*(m-n)         if A % B == 0:             print(A/B)   The quotient always is 2, regardless of whether or not $n$ and $m$ are co prime! So if the very strong implication   $2mn(n+m)(n-m) \mid (n^2 + m^2 + 1)(n^2 + m^2 - 1) \implies \frac{(n^2 + m^2 + 1)(n^2 + m^2 - 1)}{2mn(n+m)(n-m)} = 2$    holds, then the original problem will be solved.


Can I travel from a Non-EU country to an EU country with a residence permit from another Schengen country?

I am from outside the EU and I am currently in the Netherlands with a temporary Dutch residence permit. I wanna go home to visit my family and I was wondering if I am allowed to use my Dutch residence permit to travel back to Europe from my country to France and then go back to the Netherlands?  PS: I am from Tunisia so usually I need a visa for France  Thank you


Learning variety and certain combinations of land use changes using ArcGIS Desktop

I have 3 Corine land cover rasters, which each contains types of land use, for simple example - 1 - arable land, 2 forest, 3 - urban areas etc. How do I get not only the variety (which is easily obtained by cell stats) but also which type of land use changed to which, for all 3 of the cases. So for example between years 2006 - 2012 from 1 to 2 and between 2012 - 2018 from 2 to 3. The desired output could be a .dbf. I was thinking of using the "diff" tool, however I didn't come up with a reasonable and good looking output. Any suggestions?


How do I set up parental controls on Tahr?

Keep in mind that this question is not asking for merely a time limiter! Please read the full question and see that I also want to limit application and internet access. The solution doesn't have to be one single application, but it does have to be automatic enough that a technically illiterate person wouldn't have to fiddle with it.        Migrated to  as requested     I'm completely aghast at the lack of parental controls in Tahr, and how even  are so out-of-date that some are impossible now.   I need something that will:   Allow general computer time to be limited Allow application access to be limited (searching, installing, and running) Allow internet browsing time to be limited (might also cover most of the above point) Allow sites to be blocked without manually maintaining a list Allow specific sites to be whitelisted NOT set up or connect to a proxy or alternative DNS, as we're with Comcast and they're very keen to drop service at the slightest hint of alternative internet usage   I can't use something like:   Timekpr, Timoutd, or Nanny, as they're no longer available or supported OpenDNS as I don't know how Comcast will treat that. Even if they don't mind at first, their actions going forward seem to show they won't be kind to it sometime soon. Scrubit because our modem/router is rented from Comcast.


How to Get List Attachment URL's using SharePoint Designer Workflow?

How to Get List Attachment URL's using SharePoint Designer Workflow.


Can't access Whatsapp since yesterday (8th Feb)

I've got a Samsung Android 2.3.6,  The message says the version on my phone became obsolete on 24 Feb 24 2020, but we are still in 2018. It is asking me to download the latest version. when I try to do this, it says Whatsapp no longer supports my phone, I should switch  to a supported phone.


I have a double and I want to round down to values 0.00000/0.00005 using C89/ANSI C. So:  1.10984 becomes 1.10980 1.10985 becomes 1.10985 1.10986 becomes 1.10985 1.10988 becomes 1.10985 1.10989 becomes 1.10985 1.10990 becomes 1.10990 1.10991 becomes 1.10990   I have tried:  roundedDouble = doubleToRound - (doubleToRound % 0.00005);   But % operator only works with integers.  Solution shall work also with the following rounding down cases:  0.000000 / 0.000025 / 0.000050 / 0.000075    and  0.00001 / 0.00002 / 0.00003 / 0.00004 / ... / 0.00008 / 0.00009


Why does my NTFS partition mount as read only?

Until recently both my Windows Partition (C:) and my Data Partition (E:) would mount as read/write. Now both seem to only mount as read-only.    GParted Resize (Error)  ntfsresize v2.0.0 (libntfs 10:0:0) Device name : /dev/sda4 NTFS volume version: 3.1 Cluster size : 4096 bytes Current volume size: 86207623680 bytes (86208 MB) Current device size: 86207627264 bytes (86208 MB) New volume size : 78662066688 bytes (78663 MB) Checking filesystem consistency ... Accounting clusters ... Space in use : 62126 MB (72.1%) Collecting resizing constraints ... Needed relocations : 1606868 (6582 MB) Schedule chkdsk for NTFS consistency check at Windows boot time ... Resetting $LogFile ... (this might take a while) Relocating needed data ... ERROR: Extended record needed (1032 > 1024), not yet supported! Please try to free less space.   chkdsk Output:     Checking file system on E: The type of the file system is NTFS. Volume label is Data.  A disk check has been scheduled. Windows will now check the disk.                            99482 file records processed.   495 large file records processed.                        0 bad file records processed.                            0 EA records processed.                                  0 reparse records processed.                             104412 index entries processed.                          0 unindexed files processed.                             99482 security descriptors processed.                    2466 data files processed.                              CHKDSK is verifying Usn Journal...   4479208 USN bytes processed.                                      Usn Journal verification completed. Windows has checked the file system and found no problems.  84187132 KB total disk space.   60479688 KB in 69969 files.      15520 KB in 2467 indexes.          0 KB in bad sectors.     174336 KB in use by the system.      65536 KB occupied by the log file.   23517588 KB available on disk.       4096 bytes in each allocation unit.   21046783 total allocation units on disk.    5879397 allocation units available on disk.  Internal Info: 9a 84 01 00 00 1b 01 00 fc 1a 01 00 00 00 00 00  ................ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 42 00 00 00 52 73 5c 77 b0 e7 1d 00 b0 df 1d 00  B...Rs\w........   fstab  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    nodev,noexec,nosuid 0       0 # / was on /dev/sda5 during installation UUID=8213cc89-2438-41b9-899f-13b4c5b299af /               ext4    errors=remount-ro 0       1 # swap was on /dev/sda6 during installation UUID=45873767-d9ae-4f0c-baab-ffc2726ac24e none            swap    sw              0       0   Checked the drive in GParted, GSmartControl and with ntfsfix, all completed successfully, no change.  Partitions  dev/sda1 NTFS WinRE dev/sda2 NTFS Windows C: dev/sda3 Extended dev/sda4 NTFS Data E: dev/sda5 EXT4 Ubuntu dev/sda6 linux-swap    I am looking for an explanation of:    Internal Info: 9a 84 01 00 00 1b 01 00 fc 1a 01 00 00 00 00 00  ................ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 42 00 00 00 52 73 5c 77 b0 e7 1d 00 b0 df 1d 00  B...Rs\w........   and    Resetting $LogFile ... (this might take a while) Relocating needed data ... ERROR: Extended record needed (1032 > 1024), not yet supported! Please try to free less space.


Find sum of given series if possible $\sum_{n=1}^\infty \cos (n \pi )$

$$\sum_{n=1}^\infty \cos (n \pi )$$   This question has been asked before   But I think the series diverges because it is not a single value. The results are alternating between and 1 and -1.


Is there some way to contact another user by using their name in chat, so that they get notified?  It seems that when discussion starts in a comment thread, it is easiest, instead of migrating the entire set of comments, just to start talking about the topic in chat. But to get someone to go there, one continues in the comment thread to say 'hey, let's go to chat'.  Using @ThePersonsNameYouWantToChatWith in chat doesn't seem to give them a notification; how can one notify them that you are said something in chat to them?


Can't install Ubuntu 15.10 from USB - Windows Dualboot

I've installed Ubuntu on several other machines but cant get it to run on my new build.  I'v created a bootable USB drive using the official 15.10 iso from ubuntu using pendrive linux. Secure boot is disabled, fast boot is disabled and IOMMU is enabled. When booting from USB the I get the list where I select "Install Ubuntu." The Ubuntu Logo screen appears and then I get this error screen:    Here is my BIOS Info:    System info:   Gigabyte GA 970 Gaming AMD FX 8320 GTX 960 4gb SSC 16gb Crucial Ram Kingston 120gm SSD (Reserved for Linux install) M2 SSD (Running Windows OS) WD 1TB HDD (Windows Storage)    Any ideas on how to get past this?


How to resize a text field in order to remove scrolling on an onload event?

I deal with dynamics CRM 2011 online and I faced some troubles with printing documents there.   Could I resize/expand a text field in order to make a text visible for user without any scrolling?  Has anyone face this issue?


Game with 37 diagonally-oriented holes, 10 black pegs and 10 white pegs

Can anyone tell me what this game is called and how it is played? It's a small square board with 37 holes, 10 black pegs and 10 white pegs in opposite diagonal corners.


natural deduction proof with De Morgan's laws

Struggling with this proof, any strategies for natural deduction?  $¬(P \land Q) \vdash ¬P \lor ¬Q$


In a field that is the direct product of two fields, why isn't it a field?

Suppose that we have the direct product of two fields, defined as: $\mathbb{F}^2 = \mathbb{F} \ \times\ \mathbb{F}$. Then, this is obviously not a field because we can take $(1,0)$, and this doesn't have a multiplicative inverse. However, I saw a mention to this today in a book, and the reasoning was:     "$\mathbb{F} \ \times\ \mathbb{F}$ has the zero-divisor $(1,0) \neq  (0,0)$, hence it is not a field".   (Lectures on Rings and Modules by Joachim Lambek, pg. 17).  I am not sure what they mean by zero-divisor here nor what $(1,0) \neq  (0,0)$ has anything to do with the direct product of fields not being a field. I always assumed there wasn't a multiplicative inverse, and that was it. Am I missing something deeper?


Does a singularity appear the instant a black hole is formed?

Imagine a very heavy (tens of solar masses) star in its final moments before collapsing to form a black hole. The gravitational force exerted by the weight of the star overcomes the neutron degeneracy pressure and the star continues to collapse inward until the escape velocity at some radius from the star exceeds the speed of light. Now pause at the exact moment this happens.  Am I correct in thinking that at this point we have a black hole, since there is a radius at which light could not escape? If the answer is yes, then from what I understand this black hole must have a singularity. Assuming that a singularity can only exist behind an event horizon, this singularity must have come into existence at this exact moment.  My question is twofold:   Are all of the above assumptions / assertions correct? How does a singularity instantly form?   Apologies if the question is naive - I am just a curious innocent rather than an expert!


Do you think there is a big difference in for...in and for loops? What kind of "for" do you prefer to use and why?  Let's say we have an array of associative arrays:  var myArray = [{'key': 'value'}, {'key': 'value1'}];   So we can iterate:  for (var i = 0; i < myArray.length; i++)   And:  for (var i in myArray)   I don't see a big difference. Are there any performance issues?


How do I bind an event listener to dynamically generated content?

I'm attempting to dynamically expose deeper levels of navigation by injecting html into empty divs. While the html is being successfully injected into the 2nd nav level, I can not get the html to inject into the 3rd level div. I believe that the problem exists because the event listener is ignoring the dynamically generated content, but I can't figure out a way to fix it. Below is the JS. I have also provided a simple jsfiddle of what I am trying to accomplish. Click the blue links to expose each successive level of navigation. It fails at the 2nd level.   $('#L1A').click(function () {     $('#L2 > div.menuWrap > ul.menuItems').html('
Campus Life

Overview

Housing

Fitness & Recreation

Health Services

Campus Library

Life in Philly

Activities Office

Student Life Office
'); });  $('#L1A-2A').click(function () {     $('#L3 > div.menuWrap > ul.menuItems').html('
Housing

Overview

Policies

Renters Insurance

Move-In Day
'); });   By the way - I know there is probably a better, less hacky way to inject all that html. However, it's only for a prototype and at this point I don't have the time to figure out a better way. Thanks for your help in advance.


I am searching for default location for QGIS 3 Plugin folder   I checked here but could not find :   C:\Program Files\QGIS 3.0\apps\qgis\python\plugins C:\Users\Abhijit.qgis2 (cannot locate .qgis3,  should it be there ? )


Different output in C and C++ with sizeof operator

Why does this code produces different o/p in C and C++?  int i = sizeof('a');


I am using Safari to develop for a while. One thing I always liked is when you clear the cache, it really does, unlike other browsers I tried in the past. But in previous versions, specially when working in a code in a local testing server, just reloading the page will reload everything from disk. Now I have to use de shortcut command+alt+e to clear before reload or some new CSS won't load, even some http request will return old values. Just reloading the page won't guarantee to show me the last modifications.  I looked at preferences and develop menu but didn't find an option to just don't use any caches at all - the perfect option will be don't use caches when I have the web inspector opened, means I am developing.  Did I miss this option, or there is another way to disable all caches?


Multiple subequations and equations in a single align environment

I have three equations in an align environment which I'd like to be numbered as follows: (1a), (1b), (2) [The numbers are just indicative; I don't want them to be exactly 1 and 2]  With subequations I can easily get the numbering (1a), (1b), (1c)  \documentclass{article} \usepackage{amsmath}  \begin{document} % \begin{subequations}     \begin{align}         \mathbf{a} &= \begin{bmatrix}                     a_1\\                     \vdots \\                     a_2                 \end{bmatrix} \label{eq:1a} \\                 &= \left[ a_1 \ \ldots \ a_2 \right]^\mathrm{T} \label{eq:1b}\\         %         \mathbf{b} &= \left[ b_1 \ldots \b_2 \right]^\mathrm{T}, \label{eq:2}     \end{align} \end{subequations} %   \end{document}   Using some code found , I can increase by one the third equation number, obtaining (1a), (1b), (2a), but that's still not what I want  \documentclass{article} \usepackage{amsmath}  \renewenvironment{subequations}[1][]{%              optional argument: label-name for (first) parent equation   \refstepcounter{equation}% %  \def\theparentequation{\arabic{parentequation}}% we patched it already :)   \setcounter{parentequation}{\value{equation}}%    parentequation = equation   \setcounter{equation}{0}%                         (sub)equation  = 0   \def\theequation{\theparentequation\alph{equation}}%   \let\parentlabel\label%                           Evade sanitation performed by amsmath   \ifx\\#1\\\relax\else\label{#1}\fi%               #1 given: \label{#1}, otherwise: nothing   \ignorespaces }{%   \setcounter{equation}{\value{parentequation}}%    equation = subequation   \ignorespacesafterend }  \newcommand*{\nextParentEquation}[1][]{%            optional argument: label-name for (first) parent equation   \refstepcounter{parentequation}%                  parentequation++   \setcounter{equation}{0}%                         equation = 0   \ifx\\#1\\\relax\else\parentlabel{#1}\fi%         #1 given: \label{#1}, otherwise: nothing }  \begin{document} %% \begin{subequations}     \begin{align}         \mathbf{a} &= \begin{bmatrix}                     a_1\\                     \vdots \\                     a_2                 \end{bmatrix} \label{eq:1a} \\                 &= \left[ a_1 \ \ldots \ a_2 \right]^\mathrm{T} \label{eq:1b}\\ \nextParentEquation         %         \mathbf{b} &= \left[ b_1 \ \ldots \ b_2 \right]^\mathrm{T}, \label{eq:2}     \end{align} \end{subequations} %%   \end{document}   Does anyone know how to modify the code to obtain exactly (1a), (1b), (2)?


What is the shape of the world of Westeros and do the Westerosi know?

For quite some time now I have been asking myself how the world of Game of Thrones is shaped and if the people living in that world know the shape.   In questions here on SciFi.Stackexchange concerning the unnatural seasons or the definition of a year in Westeros, it is often  that the Westerosi can measure the duration of a revolution of their planet around the sun. But that only works if they know that they actually live on a planet.   In  answer it was said that people have been travelling in ships around the world. However, I cannot remember any passage in the books supporting this. Actually I only remember evidence for the opposite:    During the  on the Iron Islands, there is a man called  who promises the Ironborn treasures from lands far to the west, if they elect him as king. However, the POV character of that chapter (I think it was Victarion Greyjoy) does not believe him and sees the madness in Gylbert's eyes - as if speaking of travelling west is crazy.  Later when he leads the attack against the Shield Islands, the Iron Fleet travels out of sight of the coast line. This manoeuvre is considered very dangerous and risky. If this is already dangerous, traveling even further west appears close to suicide.   In addition, there was a  who sailed to the far west and never returned.   establishes that the world is not a hollow world, but is not conclusive as to whether it is a planet.  Is there any evidence in the books that the World of Ice and Fire is a planet? Was it established that the Westerosi know the nature of their world?


Closed and duplicate questions should show what has been appended to the title in the Android App

Questions that have been closed (e.g. ) or put on hold should show the "[closed]", "[on hold]" or "[duplicate]" properly in the title of the question:    Also, the "Closed as exact duplicate" has been historically replaced with "Marked as duplicate", which is what should show in the app instead of the former.