LINQ to SQL: lambda expression vs .Where()

Are  var movies = from m in db.Movies              select m;  movies = movies.Where(s => s.Title.Contains(searchString));   and  var movies = from m in db.Movies              where String.Equals(m.Title,searchString)              select m;   equivalent?  And if so, why use one over the other?  The syntax of the former seems more cryptic than the latter.


How to package web-inf/* and meta-inf/* to a war file via zip command?

I have a foo.war file (JSF web app). I unzipped it just fine.  unzip foo.war   Then meta-inf and web-inf folders are extracted. I made a change to a properties file inside of web-inf and I repackageed it as foo.war.  However below command I tried didn't do it. It left out package name and Java classes under it from classes folder.  zip foo.war META-INF/* WEB-INF/*


getting java.lang.NullPointerException while calling sql server stored Procedure using JDBC

i am trying to get stored procedure datas from calling database through JDBC.Here i am getting resultset=null when i execute below code,what is the mistake in my code?Please guide me.  stored procedure  CREATE PROCEDURE getEmpDetails AS BEGIN  SELECT * FROM  Employees; END   java file   // JDBC driver name and database URL    static final String JDBC_DRIVER =   "com.microsoft.sqlserver.jdbc.SQLServerDriver";      static final String DB_URL =  "jdbc:sqlserver://localhost;database=JDBCDatabase";     //  Database credentials    static final String USER = "hj";    static final String PASS = "kalpana";     public static void main(String[] args) {    Connection con = null;    ResultSet rs = null;    CallableStatement stmt = null;     try{           //STEP 2: Register JDBC driver           Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");            //STEP 3: Open a connection           System.out.println("Connecting to database...");           con = DriverManager.getConnection(DB_URL,USER,PASS);            //STEP 4: Execute a query           System.out.println("Creating statement...");          // stmt = conn.createStatement();             stmt = con.prepareCall("{call getEmpDetails}");            ResultSet resultSet  = stmt.getResultSet();            System.out.println("resultset"+resultSet);              if (resultSet.next()) {                 // Then we use a loop to retrieve rows and column data                 // and creates a html coded table output                 System.out.println("
");                 do {                  System.out.println("
");                  System.out.print("" + resultSet.getString("id") + "	");                  System.out.print("" + resultSet.getString("first") + "	");                  System.out.println("" + resultSet.getInt("last") + "	");                  System.out.println("" + resultSet.getDouble("age") + "	");                  System.out.println("
");                 } while (resultSet.next());                 System.out.println("
");                }    }catch(Exception e){        e.printStackTrace();    }finally{        try {            stmt.close();            con.close();           // input.close();        } catch (SQLException e) {            e.printStackTrace();        }    }     } }


HTML - How do I make text vertical middle in

I want my text to be vertically middle in
 instead of align to the bottom.  My code:
    &nbsp;&nbsp;   Where Should I go ?
   And the result:    i have tried vertical-align:middle but it doesn't have any changes. Any other ways that it could make the text vertically align in middle?


I was trying to take a long exposure photo during the daytime (my first attempt at doing so), details for settings given below, but on LCD, I couldn't see any object, it was all white, as in like lot of light entered. Can anyone please help me taking this shot right?   Camera: Canon 550D or T2i Mode: Manual Aperture: f/22 Shutter: 1/30 s Lens: 15-55mm Time of day: 6:00 PM, it was bright daylight   My intent is to basically learn how to take long exposure photo in daytime, irrespective of the location and whatever.


I have read about the . This principle suggests that nature would allow a particle to travel in a path along which the integral of the difference between kinetic energy and potential energy is minimum.    Is this a basic law of nature?  Is it completely independent of other basic laws of nature like conservation of energy and conservation of angular momentum?  At the same time I would like to know how was it reached at, cause this doesn't seem to be something that we can easily identify and generalize.


Why did Severus Snape present himself as evil to Harry?

Professor Severus Snape was a very important character throughout the Harry Potter series. He played very important roles in Harry's life as well as in Hogwarts fortune. His works were admirable and beyond expression in words.   But, with all due respect to him, I could not understand why he portrayed himself as angry, ferocious, tough and mischievous toward his students?   He always treated Harry and the students in a way which cause everyone to dislike him, except for his Slytherin students.  Why did he pretend to be so?   Was it because he could not get Lily and that Harry was the son of James, the hater of Snape?


Data structure alignment: why are array of char and std::string different

Known that sizeof(std::string) is 8, sizeof(int) is 4.  class Test1 { int i;            // 4 std::string str;  // 8 };   sizeof(Test1) is 16, because 8 = N1 * 4 and 16 = N2 * 8. (N1 and N2 are natural numbers)  However, if I replace std::string with char [8] as below:  class Test2 { int i;       // 4 char ch[8];  // 8 };   I don't know why sizeof(Test2) gives me 12.


How do I capture the moon and its surrounding context?

I wanted to photograph the full moon against a beautiful deep blue sky. I ended up with blown-out highlights of the moon:    So I switched to spot metering and captured the moon, losing the blue sky in the process:    I want a single photo that shows both the moon and the surrounding context (in this case, the blue sky). Doing an exposure fusion in Photomatix Essentials did not help:    Nor did HDR fusion (again in Photomatix):    Notice that the detail in the moon was lost in both cases, and the sky was also messed up in both cases: exposure fusion lost the beautiful blue color, while HDR created more texture than was actually present in the sky. I toggled Photomatix's option to remove ghosts, but that didn't help, either.  How do I photograph the moon together with its surrounding context (in this case, the blue sky, but in other cases, a tree, buildings, etc) without blowing highlights or shadows? I'm using a Sony NEX-5R, with the longest focal length lens I have, and with manual focus when needed.  Thinking I should fuse the photos manually, I tried opening the images as layers in Acorn, with the darker photo on top and with opacity set to 50%, and tried all 15 - 20 blending modes (normal, dodge, lighter, darker, multiply and so on), but none of them seemed to work. I'm afraid I don't know enough to use layers effectively. What blending mode and opacity and order of layers should I use for this task?  I don't have Photoshop, but do have Lightroom 5, Acorn and Nik Collection.  (In case you are about to recommend software, please note my requirements: I use a Mac, I would be willing to pay $20-30, and I don't want to use command-line software.)


What happens when you don't require rings to be abelian groups?

My question is as stated in the title: What do we lose when we drop the condition that a ring $R$ be an abelian group (i.e. it may be the case that $a+b \neq b+a$ for some $a,b \in R$).  If we allow this condition then we may consider, for example, any group $G$ to be a (noncommutative) ring with multiplication being conjugation in $G$ and addition being multiplication in $G$. In such a "ring" $G$, we always have $0=1$, so I suspect things might get strange.   Has anyone thought at all about such objects? Are they entirely uninteresting?


In EDH/Commander, what is the 'color identity' of a double-faced card?

The official deck construction rules for Commander (nee EDH) at  say that 'A card's colour identity is its colour plus the colour of any mana symbols in the card's rules text.'  How does this apply to dual-faced cards with faces of different colors, such as  out of Innistrad or  from Dark Ascension, where the color of the transformed face of the card is different from the color of the 'main face'?  The spirit of the rules would seem to suggest that these cards are the colors of both faces for deck construction purposes, but not only are these spells always cast as the front face, the front face is the only one 'seen' in other game zones: for instance, when the card's in the library, you could find Elbrus by searching your library for an artifact, but you couldn't find Withengar Unbound by searching your library for a creature card.  Could Elbrus then, for instance, be played in any Commander deck, or just one with a (partly) Black general?


Local variable is unassigned IF I'm going to change it later in the function

player_health = 10  def add(num):   return num + player_health  def monster_room():   print(player_health) # Error on this line   player_health -= 1 # Doesn't crash without this line, even though the error is thrown on the previous line.   print(add(6)) # works monster_room() # doesn't work   I get an error if I try to modify player_health:  UnboundLocalError: local variable 'player_health' referenced before assignment on line 10 in main.py  How the variable is possibly not assigned when I can use it in the add function just fine? Does it not recognize that it's a class-level variable because I'm attempting to modify it inside the function? Does Python have to pass every class-level variable you want to use to the functions so it can do everything at the local scope?


Problem generating pie chart with pgf-pie package

I am having troubles with TexStudio making pie charts with the pgf-pie package. I literally copied a fragment of this template:   \documentclass{article} \usepackage{pgf-pie} \begin{document} \begin{tikzpicture} \pie{10/A, 20/B, 30/C, 40/D} \end{tikzpicture} \end{document}     The log only shows the following message: Overfull \hbox (1033.10823pt too wide) in paragraph  As you can see the result is not the expected one, first because it does not show any pie chard, and secondo of all it should be something like this (done through Overleaf):   Does anybody knows how to fix this error?  Thank you for reading and for your Help.  David.


Training binary classifiers with huge dataset with mostly negative examples

I would like to build an ensemble classifier (possibly boosting) on a huge training dataset (>> 1e7 examples) where the proportion of positive examples is around 5%. And what I am interested in are recall and precision of positive class.  If I train on the whole dataset, does the small proportion of positive examples affect the performance of the classifier? I'm not sure because the absolute number of positive examples is big. Do I need to randomly select number of negative examples so the number of positive examples is around the same as the negative examples?


Looking for an animated movie from the 70s or 80s involving aliens with many red orbs

I vaguely remember watching an animated movie as a kid where the main protagonists, a man and a woman, are in some kind of a battle.   The thing that I remember the most are these slug like large aliens/insects/monsters that have red orbs all over their body. At some point the woman is wounded/killed and is healed/revied by the creatures. They did this by lifting her up with glowing tentacles.   Here is a crude drawing of the creature:


Send a message to already running WPF process

I have a WPF and winform application both in C#. I invoke wpf app from winform app by using   ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"C:\wpfapp.exe"; startInfo.Arguments = data; //string result data from webservice; Process.Start(startInfo);   This is ok and i am able to run the wpf ui from winform with the parameters that has been sent as arguments. But now i have a problem. now i want to update the message in the running wpf window.  Already the wpf window is run and showing the message. Later i want to send another message to that same wpf window. how we can achieve that ?  if (ProgramIsRunning(exepath)) {     // here we need to add the code to send message to the same wpf window. } else {     ProcessStartInfo startInfo = new ProcessStartInfo();     startInfo.FileName = @"C:\wpfapp.exe";     startInfo.Arguments = data; // string result data from webservice;     Process.Start(startInfo); }   Please help.


Allowing edit approvals via the mobile app

Has allowing edit approvals on the mobile app been considered? I rarely use SE on my computer when I have free time (I'm usually working on something), so I rarely ever go through the edit approval queue. I wouldn't be surprised if that's not uncommon.   If I could do approvals on the app though, I could do a few while waiting for the bus, or while in the bathroom (might as well multitask).  I know I can go in through the website, but it's not very mobile/skinny screen friendly (and this is on a Note 4).


What does the word "equals" mean in Java API?

I'm not sure anyone will know the answer to this question, unless you are responsible for writing the Jave API, but when the Java API says "equals", does it always mean that a.equals(b) evaluates to true, or sometime does it mean a == b is true? I have recently extended a class and wondered if I needed to override a method depending on where or not it used == or .equals. Specifically, I extended  and was curious about the .isEqualTo(Object other) method. I checked the source () and found that this method uses .equals for comparison. I'm curious if I can be confident that when I read things like      "Creates a new BooleanExpression that holds true if this ObjectExpression is equal to a constant value."   that the method is not using the == operator. Although, as I think of it, the API can't possibly mean .equals either, since (for example)  String constant = "constant"; ObjectExpress<String> stringExpression = new MyStringExpression("constant");  constant.equals(stringExpression)   will always evaluates to false. So maybe my question should be "when the API says 'equals', does it always refer to the most reasonable way to apply .equal or sometime does it refer to the analogous way to apply ==?"    EDIT  I think based on the answers I should clarify: this is not a question about the difference between == and .equal. It is about to which the Java API is referring when it uses the English word "equals".


Hearing a sound backwards because of Doppler effect

Consider a supersonic plane (mach 2) aproaching a stationary sound source (e.g a fog horn on a boat).  If I understand it correctly, the passengers in the plane can hear the sound twice. First at a 3 times higher frequency, and then (after they passed the source) a second time at normal frequency but backwards. None of the textbooks or web sites mention this backwards sound. Yet I am quite sure it must be there.  Am I correct? And if so, is it actually observed (e.g. By fighter pilots) and why do textbooks never mention this?


Warning or confirmation on new tag creation

In retrospect of this , I would like to ask the community how they feel about a warning or confirmation (or just special highlighting) on new tag creation.  Everybody hates stock "are you sure?" confirmation, but a lot of tags get created by mistake (and then used ad nauseam).   For example, I think I might have created the  tag by accident. Assuming the right tag was , there would be two tags for c# 4.0, until they are made synonyms. With a warning, some accidental tags could be prevented.


Prove there are no positive integers $x$ and $y$ such that $x^3 + y^3 = 10^3$.

I am familiar with Fermat's Last Theorem that there are no integers such that $x^3+y^3=z^3$, but I need a simpler proof that demonstrates that fact when we know that $x$ and $y$ are positive, and $z=10^3$.  Thank you!


Is  really independent of area? The friction force, $f_s = \mu_s N$. The equation says that friction only depends on the normal force, which is $ N = W = mg$, and nature of sliding surface, due to $\mu_S$.   Now, less inflated tires experiences more friction compared to well inflated tire. Can someone give clear explanation, why friction does not depend on area, as the textbooks says?


If $A \succeq B$, is it true that $B^{-1} \succeq A^{-1}$?

If $A$ and $B$ are two positive definite matrices such that $A - B$ is nonnegative definite, is it true that $B^{-1} - A^{-1}$ is positive definite? The doubt came to me when working with confidence regions in multivariate statistics that are usually obtained as hyper-ellipsoids.


Sample a random rotation in $n$ dimensions

How do I sample a random rotation matrix in $n$ dimensions? Let $M$ be a $n\times n$-dimensional matrix.  $M$ is a rotation matrix if $\|Mx\|_2 = \|x\|_2$ for all $x \in \mathbb{R}^n$.  I want to sample uniformly at random from the rotations, in the following sense.  Let $\mathcal{S}=\{x: \|x\|_2=1\}$ denote the perimeter of a sphere of radius $1.$  I want a distribution on $M$ so that, if you fix any point $x \in \mathcal{S}$, then $Mx$ will be uniformly distributed on $\mathcal{S}$. How can I sample a matrix $M$ from this distribution?  I am looking for an algorithmic procedure I can use to sample such a matrix randomly. I believe this corresponds to sampling uniformly at random from $O(n)$ (the ).  I am fine with either a procedure for sampling uniformly at random from $O(n)$ or $SO(n)$; it should be easy to convert between the two of them.


Why does declaration is valid, and intialization is not in switch statement

I've already read this "  ". However, I still can't understand why does this work: switch(n){ case VAL:     int a;     ...     break; case OTHER_VAL:     a = 12     ...     break; }  suppose to this: switch(n){ case VAL:     int a = 12;     ...     break; case OTHER_VAL:     ...     break; }  I understand that that initialization part is bypassed, at the label val, so why does the declaration part isn't?.


Dense Spherical Black Hole Shell with a Region Inside

I'm going to propose a thought experiment, based on two ideas.  One: A uniform spherical shell, by the , does not exert any gravitational force on objects existing in the interior of the shell.  Two: A black hole, created by matter dense enough to lie within its , is inescapable, even by light.  Suppose (don't ask how) we create a uniform spherical shell composed entirely of matter dense enough to form a black hole, such that we have a continuous event horizon that appears as two concentric spherical regions. One can think of this as a spherical shell with an infinite number of infinitesimally sized black holes (at least, from a macroscopic point of view, to avoid Pauli's Exclusion Principle), or simply with a very large mass density across the surface (which is allowed thickness in the radial direction, to remain a three-dimensional construct). The overlapping event horizons make this system appear as a single black hole from the outside. Obviously, this system is unstable, and will collapse into a messy crunch fairly quickly, but before it does, its properties seem contradictory.  So, what happens on the inside? This question should probably be addressed for completely overlapping interior event horizons (such that no region inside the shell sits outside of the collective event horizon, and all of the black hole "cores" sit inside of the event horizon of every other black hole), and for some space existing between the event horizons of black holes on opposite sides of the shell, so that an event horizon free region exists within the shell. Will objects on the inside feel the effects of the gravitational force, or will it be a happy island of no external gravity (that is, simply flat space)? Does the answer vary based on what major theory is used to address it?


At the dentist's:     I was on time for my dentist's appointment, but the dentist was still busy with another patient, so I sat in the waiting room and read some of the old magazines lying there. All the while I was wondering whether to leave and come back another day .   Why past simple here and not past continuous? To me both actions are in progress they are not completed


Is there a Raster Equivalent of the Split tool?

I have the DEM of a State in ERDAS Imagine (.img) format. I have a shapefile containing the counties of that state.  I want to split the whole raster into DEMs of the individual counties. The counties are irregular polygons. So this isn't as easy as splitting the Raster into tiles.  How do I split a raster with a vector polygon shapefile?  I am looking for what is basically the Raster equivalent of the .  I tried using , and the  tool, but both of them are unhelpful since they work only on single polygons.  I have looked at the answer given here:  , but Hawth Tools aren't available for ArcGIS 10.0  I have ArcGIS 10.0+ Spatial Analyst Extension, and QGIS 1.8. A solution in either will be acceptable.


Is the Big Bang notion compatible with the flat space? (A problem with the **moment** of Big Bang, not with the place of it)

A passage from a paper:     "If one imagines running the clock backward in time, any   given region of the universe shrinks and all galaxies in it get   closer and closer until they smash together in a cosmic traffic   jam—the big bang"   I can not imagine how this can happen in a flat space, specially when author says in the continue:     "The totality of space could be infinite. Shrink an   infinite space by an arbitrary amount, and it is still infinite."   How can a flat space be shrunk at a specific moment to be called Big Bang?  There are many reasons in cosmology that space is flat. When I think of a flat space shrinking, I can not imagine a definitive moment of time when all things smash together. A flat space can never be jammed. With shrinking (thinking backward in time), things certainly smash but that never ends in a certain moment of time. That continues forever! Since the space is flat (it's more like a flat paper sheet instead of a ball), things always can be found in infinitely far distances, and when thinking backward in time, things constantly smash together, but, this will never ends in a specific moment! Unlike the case for a shrinking ball, where all things smash together at a specific moment.   What's the catch?  (Confusion remover: The Big Bang happened everywhere and I do not have a problem with that. My problem is with the moment of Big Bang in a flat space. When you shrink a sphere, everything at the surface comes close to each other until at a specific moment, everything smash together, Big Bang happens everywhere. This is hard to imagine in a flat space.)


What is the number of Temporary HP you get from Wizard's Arcane Ward?

I'm playing D&D 5e as a DM for about a 3-4 sessions now and the math involved in the Wizard's ability Arcane Ward is a little unclear to me. All of my players just reached level 2 and one of the players is a Wizard who chose The School of Abjuration archetype and he now has the Arcane Ward ability.  Playing by the PHB(p.109) the ability states:     Starting at 2nd level, you can weave magic around yourself for   protection. When you cast an abjuration spell of 1st level or higher,   you can simultaneously use a strand of the spell's magic to create a   magical ward on yourself that lasts until you finish a long rest. The   ward has hit points equal to twice your wizard level + your   Intelligence modifier.   With his Intelligence modifier (+3) and Wizard level 2 the equation should be:  $$ \begin{align} {Temporary\;HP} &= ( 2 \times {Wizard\;level} ) + {Int\;modifier} \\ &= ( 2 \times 2 ) + 3 \\ &= 4 + 3 \\ &= 7 \end{align} $$  But it can also be:  $$ \begin{align} {Temporary\;HP} &= 2 \times ( {Wizard\;level} + {Int\;modifier} ) \\ &= 2 \times ( 2 + 3 ) \\ &= 2 \times 5 \\ &= 10 \end{align} $$  The text makes it unclear.


How to show that an improper integral is convergent?

I have to show that the irregular integral given by  $$ \int_a^\infty \frac{\ln(x)}{x^s} dx $$ is convergent for $a > 0 $ and to calculate its value where $s$ is a real number $>1$.  In an earlier question I have calculated the above integral as  $$ \int \frac{\ln(x)}{x^s}dx = \ln(x) \cdot \frac{x^{-s+1}}{-s+1} - \frac{x^{-s+1}}{(-s+1)^2} $$ but I am not sure if this is of any help.   Can you guide me in the right direction of where to start?   Thanks in advance.


Prove the number of subsets with no consecutive integers within a set

I have to find the number of subsets within the set 1, 2, 3, ....n that contain no two consecutive integers, where 0 and n also count as consecutive.   I have tried this proof where 0 and n do not count as consecutive, and I know it roughly follows the Fibonacci sequence, but it is the 0 and n part that is confusing me. Does this mean that the empty set and n are consecutive? And therefore the set containing just n is consecutive? I have seen questions like this where 1 and n count as consecutive, but the fact that I am asked to do this with 0 and n is confusing to me.   The more detail in explaining your answer the better. Thank you.


$f(z)$ and $\overline{f(\overline{z})}$ simultaneously holomorphic

Prove that the functions $f(z)$ and $\overline{f(\overline{z})}$ are simultaneously holomorphic.   I take this to mean that $f(z)$ is holomorphic if and only if $\overline{f(\overline{z})}$ is holomorphic.  Let $g(z)=\overline{f(\overline{z})}$. Note that $\overline{g(\overline{z})}=f(z)$. So it suffices to prove that if $f(z)$ is holomorphic, then $g(z)$ is holomorphic.  Write $f(z)=u(z)+iv(z)$. Since $f(z)$ is holomorphic, the real and imaginary parts satisfy the Cauchy-Riemann equations:  $$\frac{\partial{u(z)}}{\partial{x}} = \frac{\partial{v(z)}}{\partial{y}}, \frac{\partial{u(z)}}{\partial{y}} = -\frac{\partial{v(z)}}{\partial{x}}.$$  We have $g(z) = u(\overline{z})+i(-v(\overline{z}))$. To prove that $g(z)$ is holomorphic, we must prove that its real and imaginary parts satisfy the Cauchy-Riemann equations:  $$\frac{\partial{u(\overline{z})}}{\partial{x}} = \frac{\partial{(-v(\overline{z}))}}{\partial{y}}, \frac{\partial{u(\overline{z})}}{\partial{y}} = -\frac{\partial{(-v(\overline{z}))}}{\partial{x}}.$$  How can we obtain this from the above relations?


I accidentally deleted a few important work related folder from my Ubuntu 14.04. I wanted to recover them. All the options on net gives instruction for recovering files.   I tried scalpel but I don't remember any of the file names so i could not recover any files. Is there a way to list the folders i deleted and recover the one i wanted? I need these files please help me.


Removing Ubuntu from a laptop and install Windows 7

This may have been asked before, but I can't seem to find an appropriate answer. I've been searching for about two days now, to no avail. Here is my situation.  I purchased a new laptop. The original thought was to put Ubuntu on first, that put on Windows 7, which I have. After I installed Ubuntu, It wouldn't let me install windows. After a while, I got frustrated and decided to REMOVE Ubuntu and just install Windows 7 for a class i'm going to need in a few days. For the life of me, I can't uninstall Ubuntu. I've tried everything possibe and even google searched. I purchased WipeDrive, still not working. Tried to restart and boot from disk. It freezes. Sometimes only sees Ubuntu on C drive and not my cd drive. Please, for the love of god, help me get Ubuntu off of my computer. Please.


Does $G$ always have a subgroup isomorphic to $G/N$?

Let $G$ be a group and $N$ a normal subgroup of $G$. Must $G$ contain a subgroup isomorphic to $G/N$? My first guess is no, but by the fundamental theorem of abelian groups it is true for finite abelian groups, so finding a counterexample has been a little tough. The finite case is also interesting for me.


Why did Voldemort hide two Horcruxes in Hogwarts?

In the Harry Potter movies, Voldemort made the Horcruxes and hid them in different locations, but he hid two of them in the same place: Hogwarts.   Tom Riddle's diary in the Chamber of Secrets; Ravenclaw's Diadem in the Room of Requirement;   Is there some explanation in the book of why he leaves these two in the same place?


Is this equation for mass defect correct?

I just want to know if this equation for the mass defect is correct  $$\Delta m = Z * m_p + Z * m_e + N* m_n - A $$  where    Z- Atomic number A- Mass number N- number of neutrons $m_p$- mass of the proton $m_n$- mass of the neutron $m_e$- mass of the electron   I came up with another formula also $$ΔM=[(Z(m_p)+N(m_n))−(M)]$$ where $m$ is the observed mass  Which one is correct and what is the difference between both these equations?


Word for someone who has used excessive amounts of perfume/cologne

Excessive levels of perfume or cologne is an issue for many people in the workplace. For example,  describes how to implement a policy against the overuse of such toiletries.   I would like to know if there exists any single words describing the overuse of fragrances.


What are the regulations for transporting medication abroad?

This is in reference to medications, both prescription and non-prescription, not illicit drugs. Since the legality may vary on country, let's say a round trip from the US to Singapore, as an example.  When travelling with prescription medication, I am aware that you are supposed to bring your prescription with you. What about over-the-counter medication, such as Tylenol/aspirin? How about medication which is restricted or prescription-only in one country, yet available OTC in another (think Viagra)?


Can i import my Diablo 3 demo character into the full console version?

The demo appears to have a save and make progress. Can this save be imported into the full version? What about vice versa (can I play a save from the full version within the demo)?


As far as I see the "Blatantly off-topic" flag      Blatantly off-topic (this question has nothing to do with %site topic%)    is only available for low-rep users without the close vote privilege.  What is the reason to remove this option for high-rep users? I think it could be very usefull in some cases where now we must select      Other (add a comment explaining what is wrong)    option and waste time to type obvious message for a reason.


What is the easiest way to set an incoming ntp server and then set the local tz so the ntp is syncing correctly?


I have a method, which search in an ArrayList what contains objects with two private fields. Here is the method:      public int searchContactName(String name){      int foundIndex =-1;     for(int i = 0; i < contacts.size(); i++){         if(contacts.get(i).getName() == name){             foundIndex = i;         }     }      return foundIndex; }   It's work well if I use it like this:  searchContactName("xyName");   But if I try to use it with a scenner.next() like thins, for the same name  String name = scanner.next(); searchContactName(name);   It's give me -1. I don't understand, I need to format some way the input? It is the same type or it is different some way if I use the scanner?


How could i generate a pdf file using url without using any api ? Or if any free api provider then please tell me.  I have a file www.highstore.in/myticket.php In this file php & MySQL is used to get data now i want to convert this data as it is in PDF format.


Is There a Proof for the Distributive Law?

The Distributive Law is that $(a+b)c = ab + bc$ and that $a(b + c) = ab + bc $. I'm wondering whether there is a proof of why it is true? I know it's a logical statement and a law, but Bertrand Russell and Alfred North Whitehead did prove that $1 + 1 = 2 $.


How do I get the path of the assembly the code is in?

Is there a way to get the path for the assembly in which the current code resides?  I do not want the path of the calling assembly, just the one containing the code.   Basically my unit test needs to read some xml test files which are located relative to the  dll.  I want the path to always resolve correctly regardless of whether the testing dll is run from TestDriven.NET, the MbUnit GUI or something else.  Edit: People seem to be misunderstanding what I'm asking.  My test library is located in say      C:\projects\myapplication\daotests\bin\Debug\daotests.dll   and I would like to get this path:     C:\projects\myapplication\daotests\bin\Debug\   The three suggestions so far fail me when I run from the MbUnit Gui:   Environment.CurrentDirectory gives c:\Program Files\MbUnit System.Reflection.Assembly.GetAssembly(typeof(DaoTests)).Location gives C:\Documents and Settings\george\Local Settings\Temp\ ....\DaoTests.dll System.Reflection.Assembly.GetExecutingAssembly().Location gives the same as the previous.


how to get two item from a List in every get request in ASP.NET Core MVC

How can I get two value per get request from a List<>, For example, I have a Person List<> with six Person Ordered by ID in that List<> now in every get request using JQuery ajax() I want to get only two item from the list<>, first request will return Person with ID 1 & 2, second request will return Person with ID 3 & 4, and so forth.  I've tried   public IEnumerable<PersonViewModel> GetAllStudents()     {         IEnumerable<Person> dbPersons = _repo.getPersons().OrderBy(s => s.ID).Take(2);          List<PersonViewModel> persons = new List<PersonViewModel>();         foreach(var p in dbPersons)         {             persons.Add(MapDbPieToPersonViewModel(p));         }          return persons;     }   But this only return first two item.


Is there a proof that the Harmonic numbers are not an elementary function?

The Harmonic numbers $H_x = \sum_{n=1}^x 1/n$ are the sum of the reciprocals of the natural numbers up to a given number. The first few are $0, 1, 3/2, 11/6, \ldots$. $H_x$ can be defined for noninteger $x$ by the integral definition $H_x = \int_0^1 \frac{1-t^x}{1-t} \, dt$, ie $H_{1/2} = 2-2\ln 2$  $H_x$ is not a rational function because a rational function is asymptotic to $x^k$ for some integer $k$, and $H_x$ is asymptotic to $\ln x + \gamma$, where $\gamma\sim 0.577 \dots$. Can you prove $H_x$ is not an elementary function using the integral definition? Take "elementary" to mean a finite composition of arithmetic operators $(+, -, \div, \times)$, exponents, logarithms, and known constants (algebraic numbers and algebraic compositions of proven transcendental numbers, like $\pi, e, e^\pi \dots$ etc).


Differences between apt-get, Synaptic and pip

I'm only beginning to manage my own system in any sort of self-aware sense. Sometimes when I install Python packages, I use pip, sometimes apt-get and sometimes Synaptic. It generally depends on instructions I happen to be following or if I just see something that looks interesting.  Do I have to worry about these three different managers conflicting with each other? For instance, I'm fairly certain that Synaptic is just a gui for apt-get, so those two methods should never cause problems for each other. But what about pip? If I install something with pip, will apt-get & Synaptic know that package is there? Or, vice-versa?


Two lines are removed with sed instead of one, why?

I am attempting to remove lines from this text file (foo.txt): cat mouse  animals: 2  I want to remove the two lines from the end:  animals: 2  So I end up with this: cat mouse  However, when using variable="$(sed '$d' foo.txt)", both lines appear to be removed, even though I only specified one $d. Even though this gives me the result I am looking for, I can't help but wonder why this is happening. When attempting to NOT store the output in a variable, I get the output I expect to see: user$ sed '$d' foo.txt cat mouse  user$   Oddly enough, using $ sed '$d;$d' foo.txt only removes the animals: 2 line, and not the newline before it. Could somebody de-mystify this for me? Thanks. For the record, BSD sed is being used in this case.


Suppose that m, n, and l are integers such that                             m^2+n^2=l^2       Then   At least one of the integers m, n and l is divisible by 3.   My idea is to use prove by contradiction, so I set m=3p+1 or 3p+2, n=3q+1 or 3q+2 but i have no idea how to continue


Can $[0,1]$ be partitioned with the following property?

Let $I:= [0,1]$.   Does there exist a partition $\{I_1,I_2\}$ of $I$ such that for all Borel subsets $A$ of $[0,1]$ we have:  $$ \mu (I_1 \cap A) = \frac{1}{2} \mu(A) = \mu (I_2 \cap A)$$  where $\mu$ is the Lebesgue measure?  Many thanks for your help.


Is there some real time scan antivirus software for ubuntu studio?  Where?  Well, I know the typical answer: "It is very hard to find a virus to Linux."  The problem is to all of those people (like me) that still have to use some Windows OS software.  This is because there aren't some Linux software to replace some Windows software (for example, my case about a radio automation package).  Greetings & Blessings from Chile!!!  Juan


Is the radical of a Lie algebra preserved by all of its derivations?

Let $\mathfrak{g}$ be a finite dimensional complex Lie algebra. A derivation $D: \mathfrak{g} \rightarrow \mathfrak{g}$ is $\mathbb{C}$-linear map $\mathfrak{g} \rightarrow \mathfrak{g}$ such that for any $a, b \in \mathfrak{g}$, we have $D[a, b] = [Da, b] + [a, Db]$.  Let $\hbox{Rad}(\mathfrak{g})$ be the radical of $\mathfrak{g}$. My question is: does $D$ map $\hbox{Rad}(\mathfrak{g})$ into itself, i.e. is it true that $D(\text{Rad}(\mathfrak{g})) \subset \hbox{Rad}(\mathfrak{g})$?


First every time it asks me for a password in a terminal all the keys on my keyboard stop working completely fine all the time until it asks for the terminal password so I cant do anything  Second. When it first booted up I was so happy my DVD drive which stopped working in Windows was suddenly cured and burned a few DVDs but now it doesn’t even show up anywhere   I'm completely new to this so type slowly


REST callout to another org - unable to access custom field due to it ending with __c

I am making a callout from my org to the REST endpoint of another org in our business. This is using the standard query endpoint /services/data/v48.0/query?q=SELECT+Fields+FROM+Contact+WHERE+.... While I am accessing the Contact object, there are fields being returned that I need that doesn't exist in my own Contact object, therefore I can't just use List<Contact>. For this, I created what I am calling a wrapper but probably using that term incorrectly here. This would give me the basic structure of the response, along with the records that I am trying to access. The problem however is that the contact object on the other org has a custom field called Custom_Field__c. This is a valid field for their org, and I need the value for it in the response. /**  * Contact Parent Structure Response  */ public class ContactWrapper {     @AuraEnabled public Integer totalSize {get; set;}     @AuraEnabled public Boolean done {get; set;}     @AuraEnabled public List<ContactWrapperRecords> records {get;set;}  }  /**  * Contact record  */ public class ContactWrapperRecords {     @AuraEnabled public String Name {get; set;}     @AuraEnabled public String Id {get; set;}     @AuraEnabled public String Custom_Field__c {get; set;}     @AuraEnabled public String Email {get; set;} }  The problem I am getting when trying to define what ContactWrapperRecords looks like is that the field ends with __c, and this throws an error of Invalid character in identifier: Custom_Field__c. Here is what my AuraEnabled APEX method looks like: /**  * Get enterprise contact records  */ @AuraEnabled() public static ContactWrapper getEnterpriseContacts(String contactIds) {      // Define the case service     HTTPRestService_EnterpriseCaseCreation caseService = new HTTPRestService_EnterpriseCaseCreation();      // Make GET callout     String ep = restBaseEndpoint + restQueryEndpoint;     HttpResponse calloutResponse = caseService.makeGetCallout(namedCredentialEnterprise, ep, contactIds);     ContactWrapper records = new ContactWrapper();      // Check response status     if (calloutResponse.getStatusCode() == 200) {         records = (ContactWrapper) System.JSON.deserialize(calloutResponse.getBody(), ContactWrapper.class);     }      // Return     return records; }  What would be the best way to access this custom field ending in __c that's part of the response? I thought about being lazy and doing something like this: calloutResponse.getBody().replaceAll('__c',''). but I don't feel that's the correct way to handle this and will probably bite me later on. Suggestions on an approach?


How to use a Mesh from one project in another?

I've been confused about this one for quite some time now. If I were to create a project of a character by itself, and I created another project with just scenery, how do I put the character into the scenery? I've tried using import, but it won't let me put the full character into the project.


Restrictive vs Non-restrictive Relative Clause

Can you tell me the difference in the meaning of the two sentences below?  As a defining relative clause.     The location which was called Central Park was a park in New York.    As a non-defining relative clause.     The location, which was called Central Park, was a park in New York.


I have a question about cluster analysis. There are 3000 companies, which have to be clustered according to their power usage over 5 years. Each company has values for every hour during 5 years. I would like to find out if some companies have the same pattern in usage power over the time period. The results should be used for daily prediction of power usage. If you have some ideas how to cluster time series in SPSS, please share with me.


I posted a question on Home Improvement, then it is migrated to Super User and get downvoted due to off topic there. It's my fault to be off topic on HI but not on SU. HI rep should change but not SU.  Can SE be changed to prevent such thing, like no off topic close on the new site, and it can only be kicked back to the original site (I guess rep change get reset during this process) and get down voted and closed there?


How can I show that $x+y=z$ in the figure without using trigonometry? I have tried to solve it with analytic geometry, but it doesn't work out for me.


I do not see any way to use Windows 7 search to search file content ONLY w/o it also including file names. For example, how do you search for files that contain "L:\" and only files that CONTAIN "L:\"? I do not want a list of files that have that in their name (filespec) but only a list of files that have that in their content.  Someone suggested L:\ System.FileName:NOT ~L:\ but that excludes all files with L:\ in their name (filespec) including the ones that contain "L:\".


Difference between function expression in global scope and function declaration

I'm puzzled by something in my js. Normally I define functions like this:  function f(){     // do stuff }   but I can also define functions like this:  f = function(){     // do stuff }   I always thought there is no difference between them, but I now found that this is working:  f = function(){     alert('IT WORKS!!'); }  function createCallback(request){     request.done(function(data){         var html = '';         data['result'].forEach(function(bill){             html += "
" + bill.title + "
";         });         $("#someId").html(html);     }); }   but when I define f as follows:  function f(){     alert('IT WORKS!!'); }   and I click on the row, it gives a ReferenceError: f is not defined.  So I wonder: what is actually the difference between function f(){} and f = function(){}?


Able to break the minimum title length restriction?

I was trying to format code in , but it wouldn't submit because "The title is too short, minimum 15 characters." I had not changed the title, so the original version must have suffered from the same problem.  How was the OP able to create a question with a 13-character title? I tried to do that and I failed. I tried , that didn't work either.  (Seen . Nobody seems to be surprised that a short-title question made it to the system in the first place. Why? Apparently not because a , there were none.)


How to change geometry with beamer class?

I'd like to change the layout of my slides. For an article, the corresponding commands would be \textheigt and \textwidth, which can be done with \newgeometry. When I put these in my presentation, the slides are uncomplete and the top and bottom lines are not at the margin anymore, but I'd like to change the size of the slides themselves, not just their ratio or some positions within the slides.  I also couldn't find any documentation of the geometry package.  MWE:  \documentclass[10pt]{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{lmodern} \usepackage{ngerman} \usepackage{amsmath} \usepackage{amssymb} \usepackage{textcomp} \usepackage{gensymb} \usepackage[absolute,overlay]{textpos} \usepackage{graphicx} \usepackage[margin=1pt]{geometry} \usepackage{lipsum} \begin{document} \begin{frame} \lipsum[1] \end{frame} \begin{frame} \newgeometry{textwidth=10cm} \lipsum[2] \end{frame} \end{document}   Or I get the error "Option clash for package geometry." "Emergency stop".


Can trusted users be trusted to suggest tag synonyms without a score of 5 in a tag? (on smaller sites, not Stack Overflow)

This has been asked before but I feel the original question was more focussed on Stack Overflow than the Stack Exchange network at large.   Related:   Since there are now a lot of sites in the network and many of them use the tag system for categorising questions based on the title of something (for example, Arqade (Gaming), Movies & TV, Sci Fi & Fantasy, etc) I feel that the required knowledge of the subject matter the tag is representing is less of an issue than it perhaps is on other Stack Exchange sites.   In the below screenshot, for example, I shouldn't really have needed a score of 5 in either of the tags to perform what is essentially a cleanup process. I could of course edit all of the posts to delete one tag, so why can't I suggest it as a synonym?    This could be implemented as a per site setting so that it can only be enabled on certain sites if need be.   Can trusted users be trusted to suggest tag synonyms without a score of 5 in a tag?


Winter Bash 2014 was fun, especially the "secret hat" concept.  However, by the time I found out about it, all the secret hats were not 'secret' anymore. I don't mean that revealing secret hats is a bad idea, but it was a bit annoying. I have the following questions (which I hope would relevant in next year's event)   Suppose I get a secret hat and I have a pretty good guess about how I got it. Is there anywhere I can state this to the SE officials to get a "Eureka!" hat, without revealing it publicly, so that others can also try guessing the secret? I have quite a few ideas for the secret hats for next year. I suppose others have, too. Maybe SE could create some place where you can send such suggestions, and they could use the best ones. Shouldn't next year have more hats, secret ones especially, to make it more difficult to get all the hats? Do the hats have anything to do with the badges? "Winter Bash" wouldn't be that appropriate in places like Australia, maybe something like "Christmas Bash" or "New Year Bash" would have been better. I suppose it's too late to change it, though.


Predictor removed because of rank-deficiency in "lmer" model?

In my current research project, I am looking at the impact of different within-subject experimental manipulations on distance perception. The experiment comprised 40 subjects each providing 144 observations.  I have a 2(Condition)x4(Groups)x3(Delay)design.  I have converted each factor into a complete set of orthogonal contrasts as following :  Condition <- cond(-1, 1) Groups <- gr34(0,0,-1,1) ; gr12(-1,1,0,0) ; grsq(-1,1,1,-1) Delay <- D1(-1,0.5,0.5) ; D23(0,-1,1)   Since removing outliers resulted in unbalanced data, I opted for a mixed-effect approach using lmer function :      lmemesr <- lmer(CoefVeryClean~Cond+Gr34+Gr12+Grsq+D1+D23+Cond*Gr34+     Cond*Gr12+Cond*Grsq+Cond*D1+Cond*D23+Gr34*D1+Gr34*D23+Gr12*D1+     Gr12*D23+Grsq*D1+Grsq*D23+Cond*Gr34*D1+Cond*Gr34*D23+Cond*Gr12*D1+     Cond*Gr12*D23+Cond*Grsq*D1+Cond*Grsq*D23 +          (Cond+Gr34+Gr12+Grsq+D1+D23+Cond*Gr34+Cond*Gr12+Cond*Grsq+         Cond*D1+Cond*D23+Gr34*D1+Gr34*D23+Gr12*D1+Gr12*D23+         Grsq*D1+Grsq*D23+Cond*Gr34*D1+Cond*Gr34*D23+         Cond*Gr12*D1+Cond*Gr12*D23+Cond*Grsq*D1+         Cond*Grsq*D23|Participant), data = DataMR,          na.action = na.exclude,            control = lmerControl(optimizer = "nloptwrap", calc.derivs = FALSE))   Calling the function returns     fixed-effect model matrix is rank deficient so dropping 6 columns / coefficients   And it appears that all predictors containing the Grsq variable were dropped.   Could somebody explain why this is the case and how I can fix this issue since this particular contrast is of great interest to me ?  Here is my data frame      structure(list(Participant = c(1, 1, 1, 1), CoefVeryClean =   c(-0.333333333333333,  -0.4, -0.4, 0.142857142857143), Cond = structure(c(2L, 2L, 2L,  2L), .Label = c("-1", "1"), class = "factor"), Gr34 = structure(c(2L,  2L, 1L, 3L), .Label = c("-1", "0", "1"), class = "factor"), Gr12 = structure(c(3L,  1L, 2L, 2L), .Label = c("-1", "0", "1"), class = "factor"), Grsq = structure(c(2L,  1L, 2L, 1L), .Label = c("-1", "1"), class = "factor"), D1 = structure(c(1L,  1L, 1L, 1L), .Label = c("-1", "0.5"), class = "factor"), D23 = structure(c(2L,  2L, 2L, 2L), .Label = c("-1", "0", "1"), class = "factor"), ConGr34 = structure(c(2L,  2L, 1L, 3L), .Label = c("-1", "0", "1"), class = "factor"), ConGr12 = structure(c(3L,  1L, 2L, 2L), .Label = c("-1", "0", "1"), class = "factor"), ConGrsq = structure(c(2L,  1L, 2L, 1L), .Label = c("-1", "1"), class = "factor"), ConD1 = structure(c(1L,  1L, 1L, 1L), .Label = c("-1", "-0.5", "0.5", "1"), class = "factor"),      ConD23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1", "0",      "1"), class = "factor"), Gr34D1 = structure(c(3L, 3L, 5L,      1L), .Label = c("-1", "-0.5", "0", "0.5", "1"), class = "factor"),      Gr34D23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1", "0",      "1"), class = "factor"), Gr12D1 = structure(c(1L, 5L, 3L,      3L), .Label = c("-1", "-0.5", "0", "0.5", "1"), class = "factor"),      Gr12D23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1", "0",      "1"), class = "factor"), GrsqD1 = structure(c(1L, 4L, 1L,      4L), .Label = c("-1", "-0.5", "0.5", "1"), class = "factor"),      GrsqD23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1", "0",      "1"), class = "factor"), CondGr34D1 = structure(c(3L, 3L,      5L, 1L), .Label = c("-1", "-0.5", "0", "0.5", "1"), class = "factor"),      CondGr34D23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1",      "0", "1"), class = "factor"), CondGr12D1 = structure(c(1L,      5L, 3L, 3L), .Label = c("-1", "-0.5", "0", "0.5", "1"), class = "factor"),      CondGr12D23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1",      "0", "1"), class = "factor"), CondGrsqD1 = structure(c(1L,      4L, 1L, 4L), .Label = c("-1", "-0.5", "0.5", "1"), class = "factor"),      CondGrsqD23 = structure(c(2L, 2L, 2L, 2L), .Label = c("-1",      "0", "1"), class = "factor")), row.names = c(NA, 4L), class = "data.frame")


Is there a way to see the time that a photo was taken on the iPhone?

Sometimes I took a photo using my iPhone, and then later on, I wonder how long I have been there at that location, I thought of checking when the last photo was taken, and can tell the time when I arrived, but I found it wasn't easily possible to see what time the photo was taken.  Is there really a way to see the time that photo was taken, be it 1 hour and 20 minutes ago, without using any third party app and without importing the photo to a computer?  I thought this might be a simple photo info thing that might be invoked by some easy way?


Can we have link previews before having to visit the links?

Consider this randomly chosen question opened in chrome, and later in the android app.        In Chrome, I can press and hold on any link to see the actual address before I even visit it. Whereas in the stack exchange android app, I'm not able to do so.        This is not an important issue, but I'd simply love to have such a preview feature on our app.


Change the number of entries depending on a theme setting

I have a theme setting that allows the administrator users to specify how many teasers should be shown on the home page by selecting a number from 1 to 4 (through a <select> field). Is it possible to reference this variable so I can use it in Views? In that way, I can let Views check that value in the theme settings, then display the number of entries accordingly.


How can I get the second matcher in regex in Java?

I want to extract the second matcher in a regex pattern between - and _ in this string:  VA-123456-124_VRG.tif   I tried this:  Pattern mpattern = Pattern.compile("-.*?_");   But I get 123456-124 for the above regex in Java.  I need only 124.  How can I achieve this?


Python-3.x range() with step in float format

I am using Python-3.3.2. How can I use range()to achieve float type of step? Assume my code is:  for x in range(1.5,20,0.25):     print(x)


Windows 10 not showing in GRUB boot menu

I have read similar questions on various websites but haven't solved my issue. Thanks in advance for your help.   I installed Ubuntu on a Dell server with Windows 10 pre-installed as dual boot.  During booting, Windows 10 is not in the GRUB boot menu.  However, I can still boot into Windows by pressing F12 during booting to get into BIOS? then choosing Windows BootMgr.  $ sudo ls /boot/efi/EFI BOOT  ubuntu  $ sudo efibootmgr -v BootCurrent: 0001 Timeout: 1 seconds BootOrder: 0001,0000,0008,0009,000A,000C,000D,000E,000F Boot0000* Windows Boot Manager  HD(1,GPT,1a291e8a-bf72-4171-adb6-6244b30625ee,0x800,0x145000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...e................ Boot0001* ubuntu    HD(5,GPT,015d35bf-e5ff-4267-8fe3-d0b70583083f,0x7286c800,0x1ad000)/File(\EFI\ubuntu\shimx64.efi) Boot0008* Onboard NIC (IPV4)    PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(e4b97af857c8,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO Boot0009* Onboard NIC (IPV6)    PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(e4b97af857c8,0)/IPv6([::]:<->[::]:,0,0)..BO Boot000A* Diskette Drive    BBS(Floppy,,0x0)..GO..NO[.......+.D.i.s.k.e.t.t.e. .D.r.i.v.e.........................rN.D+..,.\...........BO Boot000C* Hard Drive    BBS(CDROM,,0x0)..GO..NOS.......+.H.a.r.d. .D.r.i.v.e.........................rN.D+..,.\...........BO Boot000D* USB Storage Device    BBS(PCMCIA,,0x0)..GO..NOc.......+.U.S.B. .S.t.o.r.a.g.e. .D.e.v.i.c.e.........................rN.D+..,.\...........BO Boot000E* CD/DVD/CD-RW Drive    BBS(USB,,0x0)..GO..NO........o.C.D./.D.V.D./.C.D.-.R.W. .D.r.i.v.e....................A...........................>..Gd-.;.A..MQ..L.Z.K.J.P.E.3.1.J.2.5. .7. . . . . . . . ........BO Boot000F* NetWork   BBS(Network,,0x0)..GO..NO........g.N.e.t.W.o.r.k.........................rN.D+..,.\...........8..Gd-.;.A..MQ..L.K.i.l.l.e.r. .E.2.4.0.0. .B.o.o.t........BO   Under Linux, failed to find bootmgfw.efi with sudo find . -name "bootmgfw.efi"


DKIM, spam probability, signing with key at mail server vs sender domain?

I'm working on an email marketing tool and so far we've been recommending our customers to set up an SPF-record (Sender-ID) and a DKIM-record, we also have our own SPF-record on the mail server and a shared DKIM-record for those who do not set up their own DKIM-record.  Those that do not set up their own DKIM-records still pass the DKIM-test, but with the notice that "identity doesn't match any headers" (according to port25), i.e, it doesn't match the textual sender domain.  But does anyone know if this "discrepancy" actually has any impact on spam scoring/probability, i.e, should we continue to recommend our customers to set up a DKIM-record (as opposed to just using our shared) or is just wasted effort?


Ubuntu 14.04, NVidia GTX 750 double DVI output, only one DVI works

I have two DVI outputs on GTX 750 NVidia card on my desktop running Ubuntu 14.04. One DVI works fine, the other doesn't seem to be working at all.   Monitor connected to second DVI can't register any signal. Cable I am using to connect it is OK, checked on different installations, driver is the latest (3.40\3.46).   Reinstalling drivers or changing xorg.conf manually didn't help.  Is it possible to configure two DVI ports on GTX 750 with Ubuntu 14.*?       sudo lshw -C video   *-display UNCLAIMED             description: VGA compatible controller        product: GM107 [GeForce GTX 750]        vendor: NVIDIA Corporation        physical id: 0        bus info: pci@0000:01:00.0        version: a2        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress vga_controller bus_master cap_list        configuration: latency=0        resources: memory:fa000000-faffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:fb000000-fb07ffff


Where does aptitude store files during an upgrade?

I support a laptop running Ubuntu in another state (so I don't have physical access to it).  It is an EeePC with two internal drives: a 4GB flash drive with the root fs, and a larger (~12GB) drive with the /home partition on it (and plenty of free space).  The user tried to upgrade to 11.10, and the upgrade failed because the root partition doesn't have enough free space to perform the upgrade.  I remember running into a similar problem on a laptop once before, which just had one physical drive but a poorly-thought-out partition scheme; I think I just symlinked a directory from a too-small rootfs partition to a larger partition.  In this case, I think the best solution is to bind-mount whatever directory Ubuntu wants to use to store its downloaded files to the larger drive.   What directory (or directories) is the important one that needs to be 'moved' to the larger drive? If I can get away with just bind-mounting one directory, do I just need to do it once, at the beginning of the installation, or do I need to add the bind-mount to the fstab (i.e. because the files are still needed after reboot, so the bind-mount needs to be persistent)? Is there an easier or better way to accomplish the upgrade?  (Neither a fresh install nor a repartition is an option right now)


Accessing Apache server over the Internet

I'm trying to access my Apache server over the Internet.  When I use my external IP to connect from a different system, my router's welcome page is displayed. How can I access the server?


What is the difference between "." "./" and "source"?

What is the difference between . script.sh  ./script.sh  and source script.sh  ?


How do we execute a command such as it executes everytime one logs out or shutdowns or restarts the machine ?  To be more specific, I want the autotrash to be executed at logout, or shutdown or restart.


How to echo a PHP variable in JavaScript?

I need to echo a PHP variable into JavaScript. But I have no experience about JavaScript, I did some research but nothing worked for me.  The code   function hide() {    document.getElementById("myDiv").style.display="none";    <?php echo $myVar; ?>  }   And the $myVar looks like:  $myVar = "Hi there";


How to convert list of strings into list of lists of characters

I have a list like this:   grid_1 = ('  ##   ',           ' ####  ',           '####   ',           '#######',           ' ###   ',           ' ##    ')   Where each element is the same length and consists of a space ' ' or a hash '#'  I would like to generate a new list where each element above is in its own sub-list, and each character is separated by a comma.   This is what I have so far:   workable_grid = [[None]*len(grid_1[0])] * len(grid_1) for i in range(len(grid_1)):     for j in range(len(grid_1[0])):         workable_grid[i][j] = grid_1[i][j]   However the result I get is wrong:  wrong_list = [[' ', '#', '#', ' ', ' ', ' ', ' '],               [' ', '#', '#', ' ', ' ', ' ', ' '],               [' ', '#', '#', ' ', ' ', ' ', ' '],               [' ', '#', '#', ' ', ' ', ' ', ' '],               [' ', '#', '#', ' ', ' ', ' ', ' '],               [' ', '#', '#', ' ', ' ', ' ', ' ']]   Any advice is appreciated. Thanks!


Currently in my last year of high school, and I have always been told that  does not exist by my physics teachers. Today my girlfriend in the year below asked me what centrifugal force was, I told her it didn't exist, and then she told me her textbook said it did, and defined it as "The apparent force experienced towards the outside of a circle is the centrifugal force and is due to the mass of the object resisting the inward centripetal acceleration that the object is experiencing". I was pretty shocked to hear this after a few years of being told that it does not exist.  I did some reading and found out all sorts of things about pseudo forces and reference frames. I was wondering if someone could please explain to me what is going on? Is it wrong to say that centrifugal force does not exist?   This has always nagged me a bit as I often wonder that if every force has a reaction force then a centripetal force must have a reaction centrifugal force, but when I asked my teachers about this they told me that centrifugal force does not exist.


How to insert copyright line on Title Page?

I am new to LaTeX.   would like to insert the copyright on the title page of my ebook. This is what I want it to look like (centered in the middle of the page):  Title, Author, Copyright (copyright symbol) 2013 by Author, All Rights Rserved, eISBN:    Below is what I have tried so far. However, I continue to get an error for the copyright line. I chose report because it was closer to an ebook format. After trying to read through some LaTeX "basics" this is what I came up with.  \documentclass[titlepage,a4paper,12pt]{report} \begin{document}  \title{ebook title here} \author{my name} \Copyright \copyright\; 2013 my name\\ All Rights Reserved\\  \maketitlepage


When I render an image it works but when i try rendering animation a blank screen shows

when i render an image its fine but when i try to render animation this shows Its my first time rendering and something might be wrong, i looked at other answers and didnt find one that worked, Im using Eevee in case that helps


Is it possible to get password from hash produced by following function by any method?  $salt is random 128 characters alpha numeric string.  function Get_Hash($pwd, $salt)         {             if ( CRYPT_BLOWFISH == 1)              {                 $pwd = hash("sha512",$pwd);                 $cost = "07";                 $hash = crypt($pwd, '$2a$' . $cost . '$' . $salt);                 return $hash;             }              else               {                 $pwd = hash("sha512",$pwd);                 $hash = crypt($pwd, '$1$' . $salt . '$');                 return $hash;             }         }   There is already basic level brute force protection, system locked for 3-5 minutes after 3 failed attempts.  Is this good hashing function for small level application?   Thanks for your help.


How do I increase swapfile in Ubuntu 18.04?

I have laptop with 8 GB RAM and 1TB HDD. I have swapfile which is 2 GB (Ubuntu 18.04 uses a swapfile instead of a separate swap partition by default) and I want to increase it to use hibernation.  I want to increase it from 2 GB to 16 GB. Here is a screenshot of GParted:    I tried to increase it with fallocate -l 16G but it did not work.  Also there is the image from free -m:


effects of partial Coca Cola exposure on Lexar flip-drives and Cruzer Glide

I had three Lexar Micron flip-drives and one Cruzer Glide on my desk when I spilled some Coca Cola and about the bottom one-quarter of each flash drive was immersed in the cola. All of the Lexars were folded up and the Cruzer Glide was retracted when this happened. I Immediately removed them from the cola and dried them off on the outside with paper towels. What is the chance that the drives are damaged, and how can I safely test them?  EDIT: I've read other threads about liquid damage to flash drives but this question is about the specific brands and models I have, in case there's something specific about them that makes a difference.


I am using Ubuntu 10.10 ,when I use apt-get install I am getting error as Some index files failed to download, they have been ignored, or old ones used instead.


Node Package Manager got corrupted in some way, now it cannot be installed

I ran into a problem today when I decided to use npm update -g in a nodejs app directory. This was a bad decision, because it caused me to run into a .   The solution is to reinstall nodejs and npm. Unfortunately when I go to install npm using sudo apt-get install npm it doesn't work.  The full error in the terminal is here:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that  some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies:  npm : Depends: nodejs but it is not going to be installed    Depends: node-abbrev (>= 1.0.4) but it is not going to be installed    Depends: node-ansi but it is not going to be installed    Depends: node-archy but it is not going to be installed    Depends: node-block-stream but it is not going to be installed    Depends: node-fstream (>= 0.1.22) but it is not going to be installed    Depends: node-fstream-ignore but it is not going to be installed    Depends: node-github-url-from-git but it is not going to be installed    Depends: node-glob (>= 3.1.21) but it is not going to be installed    Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed    Depends: node-inherits but it is not going to be installed    Depends: node-ini (>= 1.1.0) but it is not going to be installed    Depends: node-lockfile but it is not going to be installed    Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed    Depends: node-minimatch (>= 0.2.11) but it is not going to be installed    Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed    Depends: node-gyp (>= 0.10.9) but it is not going to be installed    Depends: node-nopt (>= 2.1.1) but it is not going to be installed    Depends: node-npmlog but it is not going to be installed    Depends: node-once but it is not going to be installed    Depends: node-osenv but it is not going to be installed    Depends: node-read but it is not going to be installed    Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed    Depends: node-request (>= 2.25.0) but it is not going to be installed    Depends: node-retry but it is not going to be installed    Depends: node-rimraf (>= 2.2.2) but it is not going to be installed    Depends: node-semver (>= 2.1.0) but it is not going to be installed    Depends: node-sha but it is not going to be installed    Depends: node-slide but it is not going to be installed    Depends: node-tar (>= 0.1.18) but it is not going to be installed    Depends: node-which but it is not going to be installed E: Unable to correct problems, you have held broken packages.   What can I do to get npm properly installed and running again?  Thanks.


The  defines momentum as in classical mechanics:  … momentum is the product of the mass and velocity of an object.  However, an electromagnetic field has momentum, which is . I would not suppose that this is a product of the ‘mass’ and ‘velocity’ of the field. So, what is momentum, conceptually?


On what basis is each chromosome given a number? There appears to me to be no visible ordering between each pair. Is there any reason other than differentiation?


Find the lowest value n such that $\frac {n^2-38}{n+1} $

Find the lowest value n such that $\frac {n^2-38}{n+1}$ is an integer  So, it's not really hard to notice that n can't be an integer different to 0, and 0 could be the lowest value, but maybe there's a non-integer n that satisfies such equation.I've tried to factorize, and acomplish $$\frac {(n-6)(n+6)-2}{n+1} $$ But i still find nothing.  So i'm looking for a hint or answer,thanks


How to find which materials use a missing texture?

Menu command File > External Data > Report Missing Files gives output such as:  Warning: Path '/foo/sometexture.jpg' not found   How do I discover which materials use that texture?  Or, is there a way to get a list of materials that have missing textures?  Update: I'm specifically interested in Cycles materials.


Auto Mount NTFS Drive (on Ubuntu 18.04) to a Folder on Ubuntu Mate (Rpi4, Ubuntu Server 19.10)

First timer here and a Ubuntu noob, hope I can break down my question clearly. So currently have 2 setups:   PC with Ubuntu 18.04, with 2 NTFS drives mounted back when I was using Windows Raspberry pi 4. Installed Ubuntu Mate through Ubuntu server 19.10   To mount the NTFS folder on my PC, I used the following:   edit /etc/fstab UUID=XXXXXX /media/windows/drive ntfs-3g fmask=000,dmask=000,uid=1000,gid=1000 0 0   I then proceeded to go to the mounted folder, right click, and use the 'Local Network Share' and enable Guest Access for simplicity.  Next, I went to my rpi4 and tried to access the folder via file manager. It opened just fine. When I dragged the directory to terminal, the path is something like this: smb://drelocallinux/._media  Now, I'm at lost in how I can auto-mount this onto my local folder in Rpi4. My goal is to eventually map this folder to a docker container, but that's later down the road.   Please advise, thanks!


I have a website and a person is trying to traverse the directories. All the website is secure and he cannot exploit any hole. However, as he is trying to traverse the directories, he sends 200 requests per seconds. This causes to shut down our server or slow downs to death. How can I block or protect against it?  I am using Php, Apache and MySql. I also use .htaccess file.  Update  I have a shared hosting so I do not have access to apache to install any plugin/mode. Other similar questions on SO are for the developers with access of apache server.


I have the following sample XML structure:  <SavingAccounts>     <SavingAccount>        <ServiceOnline>yes</ServiceOnline>        <ServiceViaPhone>no</ServiceViaPhone>     </SavingAccount>     <SavingAccount>        <ServiceOnline>no</ServiceOnline>        <ServiceViaPhone>yes</ServiceViaPhone>     </SavingAccount> </SavingAccounts>   What I need to do is filter the 'SavingAccount' nodes using XPATH where the value of 'ServiceOnline' is 'yes' or the value of 'ServiceViaPhone' is yes.  The XPATH should return me two rows!! I can filter 'SavingAccount' nodes where both of the element values are yes like the following XPATH sample, but what I want to do is an or element value comparison???  /SavingAccounts/SavingAccount/ServiceOnline[text()='yes']/../ServiceViaPhone[text()='yes']/..


Can somebody briefly explain the different types of grounding with examples?   Chassis ground Earth ground  Signal ground


Hello I am trying to improve my circuit schematic and I am looking for suggestions on how to make it more readable, I have read design rules on this forum and I am trying my best to follow them. The circuit is a light chaser that uses a digital pot that connects to a raspberry pi, that uses a voltage regulator to dim the leds if needed.   The voltage regulator has the highest voltage which is 10V, the 555 timer has 9 volts and the digital pot has 5 volts, so I placed the voltage regulator at the top, the 555 timer in the below the voltage regulator and the digital pot below that, The two other chips get 9 volts but seemed to work best at the bottom and the ground which is the lowest of the voltages is the bottom of the diagram.


Proving that if a sequence of continuous real functions is uniformly convergent on a compact real subset then it is uniformly equicontinuous

Let $\{f_n\}$ be a sequence of real-valued continuous functions on $[a,b]$. I am trying to show that if $\{f_n\}$ is uniformly convergent, it is also uniformly equicontinuous. My attempt at this seems like it must be too simple. I will outline it below. So, in class, we proved this theorem, followed by another proposition we proved: Theorem: Let $\{f_n\}$ be a sequence of continuous real functions on a compact set $K\subset X$. Then $\{f_n\}$ is equicontinuous and pointwise convergent if and only if it is uniformly convergent. Proposition: Let $K\subset X$ be compact. If $\mathcal{F}\subset C(K)$ is equicontinuous at every point in $K$, then $\mathcal{F}$ is uniformly equicontinuous in $K$. So, my idea is that since $[a,b]$ is a compact set, the proof follows from simply combining these two statements. This feels too simple to be correct to me, so I was hoping if someone could tell me if this will suffice or if there is any other simple way to prove this without the need of these theorems? Thanks.


If $\int_{\Bbb R^2}|f(x+iy)|\,dx\,dy<\infty$ then prove that $f\equiv 0$

Let , $f:\Bbb C \to \Bbb C$ be an entire function and $\displaystyle \int_{\Bbb R^2}|f(x+iy)|\,dx\,dy<\infty$. Then prove that $f(z)=0$ for all $z\in \Bbb C$.   Put $x=r\cos \theta$ and $y=r\sin \theta$. Then , integration becomes $\displaystyle \int_{r=0}^{\infty}\int_{\theta=0}^{2\pi}|f(re^{i\theta})|r\,d\theta\,dr<\infty$. But from here I'm unable to conclude nothing.! How I proceed? Any hint please.


Energy conservation and quantum measurement

Consider a particle in a potential well. Let’s assume it’s a simple harmonic oscillator potential and the particle is in its ground state with energy E0 = (1/2) ℏω0. We measure its position (measurement-1) with a high degree of accuracy which localises the particle, corresponding to a superposition of momentum (and therefore energy) states.  Now we measure the particle’s energy (measurement-2) and happen to find that it’s E10 = (21/2) ℏω0. Where did the extra energy come from?  In the textbooks it’s claimed that the extra energy comes from the act of observation but I wonder how that could work. Measurement-1 which probed the position of the particle can’t have delivered to it a precise amount of energy, while measurement-2 might just have been passive. No doubt there is entanglement here between the particle state and the measuring device but where, and which measurement?


How use LINQ to remove maximum items in a Dictionary?

I want to remove items with the maximum value in a Dictionary<TKey, TValue>. I use Where to query the maximum value's key, and useforeach to remove it. But it throw a System.InvalidOperationException in foreach statement, the message is Collection was modified; enumeration operation may not execute. But I don't think I have modified the collection at all in foreach!  Here is an example:          Dictionary<char, int> dic = new Dictionary<char, int>();          dic['a'] = 5;         dic['b'] = 10;          var maxVal = dic.Values.Max();         var maxs = dic.Where(kv => kv.Value == maxVal);          foreach(var entry in maxs)//the exception is thrown here         {             dic.Remove(entry.Key);//I don't modify maxs at all! I just remove items in dic!         }


Evaluate $\lim_{n \to \infty} \int_{0}^1 [x^n + (1-x)^n ]^{1/n} \ \mathrm{d}x$

Evaluate $$\lim_{n \to \infty} \int_{0}^1 [x^n + (1-x)^n ]^{1/n} \ \mathrm{d}x$$  I simplified the limit to $$\dfrac{1}{2}\lim_{n \to \infty} \int_{0}^{1/2} \left[\left(\frac{1}{2}+x\right)^n + \left(\frac{1}{2}-x\right)^n \right]^{1/n} \ \mathrm{d}x$$ using properties of definite integrals, but I can't solve further. Any help will be appreciated. Thanks.


lampp is not starting because "Another web server is already running"

I am new to Ubuntu, using 14.04. I have installed XAMPP but when I am trying to run it, I get an error about another web server already running.


If $Y$ is $\text{Poisson}(λ)$ distributed, how do we obtain this confidence interval for $λ$:  $\:l=\frac14 [(\sqrt{Y}+\sqrt{Y+1}-z_{α/2} )^2-1]$    $u=\frac14 [(\sqrt{Y}+\sqrt{Y+1}+z_{α/2} )^2-1]$


Access: Making a Pivot Table with Multiple, Same Values as Columns

First post ever, thanks for having me!  Currently we have an Access database connected to two access control devices tracking hours for different statuses: Check In, Check Out, Break Out, Break In, Overtime In, Overtime Out.  How our devices manage this though, is that they record each time independently, so in the Access database we have different rows telling the username, date and time, status, device and other interesting stuff that sadly don't help with the problem. What I want to focus on though is time, which I want to put in separate columns using Access' CrossTab mode, with TRANSFORM and PIVOT and what else.  The main issue is that the employees have many breaks during the day and sometimes many overtime schedules and I have no way to tell which is the first or the second break/overtime but the time when those happened.  Here is an example of what I have with Dave:  Name    | Date       | Auth     | Time  | ------------------------------------------------------------------ Dave    | 21.01.2019 | CheckOut | 18:00 | Dave    | 21.01.2019 | BreakIn  | 16:45 | Dave    | 21.01.2019 | BreakOut | 16:30 | Dave    | 21.01.2019 | BreakIn  | 14:00 | Dave    | 21.01.2019 | BreakOut | 13:00 | Dave    | 21.01.2019 | BreakIn  | 10:00 | Dave    | 21.01.2019 | BreakOut | 09:45 | Dave    | 21.01.2019 | CheckIn  | 07:30 |   And here is what I'm trying to achieve with that:  Name    | Date       | CheckIn | BreakOut1 | BreakIn1 | BreakOut2 | BreakIn2 | BreakOut3 | BreakIn3 | CheckOut | ---------------------------------------------------------------------------------------------------------------- Dave    | 21.01.2019 |  07:30  |   09:45   |   10:00  |   13:00   |   14:00  |   16:30   |   16:45  |  18:00   |   Right now I managed to obtain somewhat what I planned to have, but I was only able to output one column for each Auth. If I manage to get the data that way I might be able to calculate exactly how many hours an employee has worked.  Do you think that using a CrossTab is a good idea to do such? If so could you please help me reach the objective? Not really looking for snippets of instant solutions, rather many ways to think on how to achieve it. I have a standard expertise with Access and database in general so one can never stop learning!  Thanks in advance, have a great day.  Leo


How to choose between different versions of Qt 5?

I have a C++ Qt program.  It compiles using qmake && make.  It always ends up compiling using Qt 5.2.1.  I want to use Qt 5.5 that I downloaded.  $ qtchooser -l 4 5 default qt4-i386-linux-gnu qt4-x86_64-linux-gnu qt4 qt5-x86_64-linux-gnu qt5   None of those were new after I downloaded and installed Qt 5.5.  I used the Qt Creator program to 'remove' the old version of Qt such that 5.5 is the only one there now, but still it's stuck on 5.2.1 when I compile.  I want to know the official way to do this as I need to write instructions for others to compile my program.  I'm using the opensource versions of Qt.


Help Avoiding Ubuntu Installer Bug where Grub installs to wrong Disk

There's a bug with ubuntu installers where it puts grub on the wrong disk (have had this problem before and had to manually redo everthing)  I'm again in a same situation. I'm trying to install Ubuntu 20.04.1 on my computer. I have 2 disks. /dev/sda has windows /dev/sdb will have ubuntu. I'm at the installer part where i select "something else" and have made an efi partition on /dev/sdb1 (1gb) and /dev/sdb2 (the rest) will be EXT4 and have the mount point. I'm in the middle of the installer and according to the workaround I'm supposed to type: sudo umount /target/boot/efi sudo mount /dev/sdb1 /target/boot/efi  however there is no /target/boot/efi to unmount. I'm worried if I don't run these commands it'll screw up /dev/sda again like it did the last time. Anyone know if there's another point in the installer when this happens? I'm afraid to push the "Install Now" button without being able to complete this step. Thanks!!


Can we change the wording of the "marked as duplicate" template?    I don't think we should say "ask a new question".   If the cited answers actually don't fully address my question, but that fact isn't clear (as opposed to someone did some hasty tagging without seeing that my question is different) then I should fix my question to make it clear, not leave a useless question hanging around and ask another.   Instead of "please ask a new question", it should say "please edit your question to make it clearer".


I cant get any good reference in my books regarding cube of complex numbers. Please help me find cube roots of the Complex number i+1??


$\int_0^3 (x^2 + 1){\rm d}\left[x\right]$ where [.] is gif

The question requires us to find $\int_0^3 (x^2 + 1){\rm d}\left[x\right]$ where [.] denotes greatest integer function My attempt: For... $$\left[x\right] =0\text { , } x\in[0,1) \text { , } x^2+1 \in [1,2)\\ \left[x\right] =1\text { , } x\in[1,2) \text { , } x^2+1 \in [2,5)\\ \left[x\right] =2\text { , } x\in[2,3) \text { , } x^2+1 \in [5,10)\\$$ Plotting them would look like  The shaded area sums up to 9. So I thought it would give ans 9. But the original answer key says 17. On onservation, it is visible as the sum of shaded as well as non-shaded area just under it. Could anyone suggest a method to proceed?


Why do privileges on some sites have different reputation requirements?

(For the purposes of this post, disregard the beta and meta sites on the SE Network.) We know what reputation is, right? When you reach a certain milestone of rep, you gain a privilege. What's strange for me is that the same privilege on different sites have varied/different milestones. My most notable site,  and  has different milestones for the "create tags" privilege, where Math SE needs 1k and SoftwareRecs SE needs 300. So why does each site have milestones different to others?


How should I do mobile data and voice calls in France?

I'm going to be in France for about a month this summer and I'm trying to work out how set up my phone. I will be staying in a house with WiFi most of the time, and not making many phone calls, maybe a few back to the US in a month. The main thing I want to be able to do on my phone while traveling is viewing maps and reading about restaurants and such.  First, I've got a Samsung Galaxy S8+ CDMA (Verizon) in the USA.  I could use the "TravelPass" plan on my regular Verizon account but this is absurdly expensive for very little voice and data.  I could set up a Google Fi account, but I don't know much about it, and it seems more expensive than a local sim card. So:  I guess I should get a local sim card, such as the , but I don't know much about this. Is there a better plan? Should I get the card in France and how hard is that to do? Or should I get it before I leave? Amazon  and the reviews are about 60% good, but still about 20% of the reviews are 1 star, complaining about activation problems.  The Orange card also has a 14 day limit that I don't quite understand. I think it means it's only good for 14 days and then you have to "top off", but I don't quite understand the fine print here.  There is also this  card, which has better reviews and a 60 day limit, which sounds better. But this seems to be data only, and can't be topped off.  Can someone give some general guidance about what to look for and what to watch out for?


I have two .bib files that I want to use in my bibliography. Entries do not overlap. I have found quite a few forum topics on that, but none of them really satisfied me. So my idea is to merge the two to one .bib file which I will use in the .tex. Most conveniently, this would be done from within LaTeX (so I do not use bibtool, or reference software). So, I made a macro to merge two files:  \newwrite\bibwrite \newcommand{\concatbib}[2]{%   \begingroup   \IfFileExists{#1}%     {\CatchFileDef{\bibone}{#1}{}}      {\let\bibone\empty}   \IfFileExists{#2}%     {\CatchFileDef{\bibtwo}{#2}{}}     {\let\bibtwo\empty}%   \immediate\openout\bibwrite=MyBib.bib\relax   \immediate\write\bibwrite{\bibone \bibtwo}%   \immediate\closeout\bibwrite   \endgroup }   which is basically taken from another question (). Now the problem is that Latex wants to interpret the file contents, and things like \noexpand, \detokenizedid not work as desired. So I have to read it in verbatim, which I tried according to Martin Scharrer's answer here: .  \def\alltext{   \begingroup   \let\do\@makeother % define \do to change the category code of its argument to 'other'   \dospecials % makro that is a string of every special character preceeded with \do -> all catcodes are changed   \all@text } \def\all@text#1{   \endgroup   #1 }   and I would use this within the other macro. Testing it alone, though, I get the error that Use of \all does not match its definition \alltext, and I think that I am missing a big point here.   I think that I put the definition of \all@text after \alltext so I can close the group, which to my understanding I need to define the region where the catcodes are altered. But I do not see why \all@text should be known already in the definition of \alltext? up to now I understood that \@... commands are primitive commands, but I thought it was only a notation. Is there more to it? is there a way to make that code work?


I have R version 3.4.2, trying to install ggplot2, ran install.packages("ggplot2", dependencies = TRUE) in RStudio.  It eventually tells me it exited with non-zero exit status and the errors are hard to read because the message is so long, but I see that in the process Matrix was a dependency which also failed to install, so I try to directly install that, and here's what I see in the error message for that:  /usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status /usr/share/R/share/make/shlib.mk:6: recipe for target 'Matrix.so' failed make: *** [Matrix.so] Error 1 ERROR: compilation failed for package ‘Matrix’ * removing ‘/usr/local/lib/R/site-library/Matrix’   I'm not clear on what ld is at all and if I need to research that to solve this problem.  It looks like it might alternately have something to do with Matrix.so.


Simplify: $\displaystyle\frac{\frac{a}{x}-\frac{a}{y}}{\frac{a}{x}+\frac{a}{y}}$  I did $\displaystyle\frac{ay}{xy}-\frac{ax}{xy}=y-x$ on top in underside. I did $\displaystyle\frac{ay}{xy}+\frac{ax}{xy}=ay+ax=a(y+x)$.  My final answer is $\displaystyle\frac{y-x}{ay+ax}$. Is this correct?  I posted question before but now just bit different. Please explain in steps so I understand this form and solve my other problems.


Working through a combinations problem and attempting to output a list with a list of lists as input.  Closest solution that I've found is here:    However, I do not want all combinations between lists, but within each list.  For example  [[1],[2,3],[4,5,6]] -> [[1],[2],[3],[2,3],[4],[5],[6],[4,5],[4,6],             [5,6],[4,5,6]]


Have a minor issue when updating records in MySQL using PDO. It fails to update when I use grammar so for an example, if I use: ' it fails me. I am using my prepare, but it's just the apostrophe that fails to work?  if($_POST['ourstory']) {     foreach($_POST['ourstory'] as $id => $ourstory) {         $sql = "UPDATE our_story SET content = '$ourstory' WHERE id = '$id'";         $q = $db->prepare($sql);         $q->execute(array($id,$ourstory));     } }


Each of the 25 cells in a five-by-five grid square is filled with a 0, 1, or 2 in such a way that the numbers written in neighboring cells differ from the number in that cell by 1. Two cells are considered neighbors if they share a side. How many different arrangements are possible?  Well how would I solve this, because just trying to write them out would take a good deal of time and I could easily get something wrong, so I think there'd be a better way.


Which is the subject of 'nothing but' sentences?

When writing the 'nothing but' kind of sentence, which is the subject? Nothing or what follows the but?      An Example:   Nothing but blue berries grow in this village!   Or,   Nothing but blue berries grows in this village!


I didn't read any requirements and was refused visa under Appendix V

My dad was going for a surgery on his shoulder this month and he invited me over to assist him for awhile. I have a 3-year-old child, so I applied for the both of us and we were refused a visa.   I had already been given visas to the UK when I was in school, so I thought it was the same process. My husband is in Italy now, and he was the sponsor. When I sent the documents, I did not translate any of them. Also, I ticked unemployed instead of self employed.   My dad is out of surgery and alone in the apartment and not able to move much. I have my own business and I will never jeopardize my child's life for anything. Next summer, we will be on holidays in Italy.  Can I apply with all the necessary documents? How soon can I apply?


Is there a manifold which requires infinitely many charts to cover it?

So, generally, a manifold is defined using only finitely many charts. A sphere is the graph of 2n different continuous functions, or just 2 stereographic projections. Obviously, there's no compact manifold that requires infinitely many charts, and there can't be more than countably many charts since manifolds are 2nd countable, but is there any manifold nasty enough to require countably many charts?  Furthermore, if the answer is no, what if we narrow down the class of allowable charts, and demand that our manifold be smooth, analytic, Riemannian, or otherwise. Will any of these change the answer?  edit: Because of Antonios-Alexandros Robotis counter-example, I'm going to add the stipulation that a chart is defined as "a homeomorphism between an open subset of $M$ and an open subset of $\mathbb{R}^n$".


Reference for this claim: important features in data can be "hidden" in the higher PCA axes that are typically thrown out

I remember reading a paper a while ago that demonstrated some cases in which PCA would fail to capture important features of a data set in the first few principal components, but where those features would be reproduced in lower-variance components.  I think someone here recently mentioned the paper in a comment, and it jogged my memory.  I've tried doing a search on Google, Google Scholar, and my library database, but I haven't found anything. Coming up with the right search terms for something like this is not easy.  What paper is this?


I have an  which had about 6 views. So I'm considering a bounty but I wonder if that will provide any answers. There's a risk someone will just answer with a non-reply just to get the bounty after a few days. (Because it's automatically awarded to the person with the highest votes.) Of course, I could downvote the answer but if it's the only one, it would still be the highest one in votes. I could flag it, hoping a moderator will remove it, thus saving the bounty for a real answer. But if that doesn't happen, then I've wasted reputation to a non-answer.  So, when assigning a bounty to a Q, is it possible to exclude certain answers from automatically receiving it, even if there's no other answer after the time's up? I just don't want to reward someone who adds nonsense to my Q.


It seems like most statistics books over-complicate the examples of most concepts.   For example, I encountered recently a text that illustrates singular values decomposition with visual recognition, instead of the simpler idea of finding the best way to rotate an ellipse to calculate the lengths of its axes.   This confuses not only the less experienced mathematicians, but even those who have a good understanding of the underlying concepts, which are often elementary.  Is there a text that explains statistical concepts with toy examples, instead of dazzling one with huge numbers and large amount of data?  EDIT: As pointed out in the commentaries, I must specify that I am looking for a book that is more on the applied side, more geared towards machine learning/hypothesis testing, yet with toy examples. I want it to be comprehensive, covering all of the major topics. I a am a fan of Introduction to Statistical Learning so far, but the examples in it are not to my liking, as they seem overly complicated.


Every group of order $56$ has a proper non - trivial normal subgroup?

I tried getting $n_{2}$ and $n_{7}$ , denote the number of Sylow-2-Subgroups and Sylow-7-Subgroups respectively.  I got two cases for $n_{2} = 1 , 7 $ and for  $n_{7} = 1 , 8$ , i noticed that if $n_{2} = 1$ and $n_{7}= 1$ ,then we are done since they are unique subgroups and hence will be normal in $G$.  Next how to proceed with the cases of $n_{2} = 7$ and $n_7 = 8$.  Please help?


I cannot get my links to center on my divs. I understand that you could use line-height, but I dont not have fixed widths or heights on my divs they are all created based on the size of the screen. I have tried to vertical align with no success I'm sure I am just overlooking something my code is here in this fiddle for the example of the problem.

Item 1

Item 2

Item 3

Item 4

Item 5

Item 6


White space between objects when exporting to SVG in Illustrator

I have white space between objects when I export to SVG from Illustrator CC 2015.   I have checked that the lines touches in preview mode and I have exported with 3+ decimals.  What I see in illustrator:  What I see in the browser after SVG export:


How can Restore MS SQL 2000 database To Ms SQL 2012

Please suggest: I have MS SQL 2000 database  backup i want to Restore in Ms SQL 2012 Please suggest.


Yesterday I tried to update windows the thing failed repeatedly, now I can not open anything that require administrator command. I am looking at two programs installed yesterday in the "Program" section of the control panel, and I cannot uninstall them. Suspecting that these are the virus.  I am literally sitting here waiting for advice.  Symptoms summary:   In a nutshell this is what happens:  -All administrator command in opening things tells me that it can not find the file to be opened, because the path is wrong.  -Can not delete using control panel, the "preparing to uninstall" is stuck forever  -Can not update windows, update always fails with internet interruptions  -Can not finish any anti-virus scans.  Also, the virus, I believe (because it was installed yesterday) is disguised as "Microsoft Silverlight" and when I tried to uninstall it, it asked me "do you want the following program to make changes to your computer?: silverlight_base.msi"


Migrated question doesn't display a username on the homepage

My site recently had a question migrated over to it. The user doesn't have an account on our site yet. It's showing up on the homepage like this:    According to ,     If a user who participated in the question does not have an account on the target site, their username is displayed as plain text until they create an account.   So I'd expect to see something like "Username on other site" or "user1234" next to the timestamp, but instead there's a blank space. (The username does show up in plain text when you click through to the actual question.)  Is this a known issue for certain cases?


$(A/\mathfrak{a}) \otimes_A M \simeq M / \mathfrak{a}M$ by tensoring the canonical exact sequence.

Say we have a commutative ring $A$, an $A$-module $M$, and an ideal $\mathfrak{a}$ in $A$.  Then we have the short exact sequence:  $$ 0 \to \mathfrak{a} \hookrightarrow A \twoheadrightarrow A/\mathfrak{a} \to 0 $$  After tensoring with $M$ we're left with the exact sequence:  $\mathfrak{a} \otimes_A M \rightarrow A \otimes_A M \twoheadrightarrow A/\mathfrak{a} \otimes_A M \to 0$.  We know that $A \otimes_A M \simeq M$ and so $A \otimes_A M /\ker \pi \simeq A/\mathfrak{a} \otimes_A M$.  Where $\pi$ is the surjection in the last sequence.  $\ker \pi = \{ \sum a_i \otimes m_i : \sum \pi(a_i) \otimes m_i = 0 \}$, so how do I conclude that $\ker \pi \simeq \mathfrak{a}M$?


Number of Ways to Fill a Matrix with symbols subject to Weird contsraint.

Got this problem from a friend and would like some pointers if anyone has any.  Fill an $n \times n$ matrix with the symbols $\{a,b,c,d\}$ subject to the following:     Only the symbol $a$ appears to the left or above an $a$    Only the symbol $b$ appears to the right or above a $b$    Only the symbol $c$ appears to the left or below a $c$    Only the symbol $d$ appears to the right or below a $d$     Here are some examples of a valid fillings: $$\left( \begin{matrix} a & a & b  & b \\ a & a & b & b \\ c & c & c & d \\  c & c & c & d  \end{matrix}\right) $$  $$\left( \begin{matrix} a & a & a  & a & a & b  & b \\ a & a & a  & a & a & b  & b \\ a & a & a & d & d & d & d \\  a & a & a & d & d & d & d\\a & a & d & d & d & d & d\\c & c & d & d & d & d & d\\  c & c & d & d & d & d & d  \end{matrix} \right) $$  What I have done: We'll it is clear to me that the $a$'s (for example) make up a sort of Young Diagram just by the property above. But there is more to the problem than that. If your YT for $a$ is just a square, then you might have a reversed (right justified) YT available to place for the $b$'s. Details like this seem to make this a tricky problem for me. I am intrigued by this problem and I just thought I'd share it here in case there is some easy way to do this counting problem that I've never heard of.  Thanks,


How to avoid inserting two same records twice when double-clicking the submit button?

I have a popup window where there are two onclick methods as "Submit" and "Discard".  When I click submit twice it insert two records that means duplicate record.   How can I avoid this?


Can I bring extra baggage in qatar airways?

I am travelling from Doha to Manila via qatar airways. Can I bring 2 baggage weighing in total 30kg (which is the allowed baggage) plus the 7kg handy carry or I can only bring one baggage weighing 30kg plus hand carry 7kg? If I like to bring extra one baggage how much do I need to pay?


How to establish this inequality: $(1-a)(1-b)(1-c) \geq 8abc$ for $a+b+c=1$?

Let $a$, $b$, and $c$ be positive real numbers such that $a+b+c = 1$. Then how to establish the following inequality? $$ (1-a)(1-b)(1-c) \geq 8abc.$$  My effort:   Since $a+b+c =1$, we can write $$  (1-a)(1-b)(1-c) = 1 - (a+b+c) +(ab+bc+ca) - abc = 1 - 1  +(ab+bc+ca) - abc =  (ab+bc+ca) - abc = abc(a^{-1} + b^{-1} + c^{-1} ) - abc = 3abc (\frac{a^{-1} + b^{-1} + c^{-1}}{3}) - abc.$$ What next?