Has JKR ever talked about the inspiration of creating the Horcrux idea? Is it related to the One Ring?

Although not completely analogous, there do seem to be some similarities between Sauron's "soul" embodied in the  and Voldemort's "soul" embodied in a Horcrux.   Has JKR ever talked about the inspiration of creating the Horcrux idea?  I'm wondering if she has ever discussed this aspect in her numerous interviews/tweets/etc.


Counter with 4 flip flops jk synchronous from 3 to 13

I have to create a counter with 4 flip flops jk synchronous. The counter shall count in this order: 3 to 13 and then to 3 to 13 and so on..  I have to use logisim simulator.   Until now what i´ve achieved is this:  it counts from 0 to 13 but i dont know how to to add the count 3 at the beggining... Could someone show me the simulation done on the logisim?


Visiting both Taiwan and China having one passport

Can I expect to encounter any problem when visiting the Republic of China (Taiwan) after visiting the People's Republic of China or vice versa?  I mean, some countries have political clashes with each other, and sometimes such clashes just poison a traveller's life. It happens sometimes that a passport with stamped visa of one specific country is not even recognized as a valid document by another country.   UPD: I'll be most probably on Russian passport, but I believe it would be nice if you can provide any kind of information on this issue, specific to whatever citizenship - just like @Tom Squires have done. So it can be useful to any traveller as well.


Python how to sort a dictionary by value in reverse order

I want to sort a dictionary by value in reverse order. For example: [Red: 2, Blue: 45, Green: 100] to print Green 100, Blue 45, Red 2  Thanks


How do I update kernel to the latest mainline version?

Currently I'm running opensuse 13.2 and I want to update it to a (ubuntu)linux with the newest kernel the 4.9.xy release as mentioned at .   Is the latest kernel 4.9.xy version available for Ubuntu?  or - Can I update this - after having installed Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..  Is  there a way to install Ubuntu - and afterwards easily upgrade to the newest kernel?


Sleeping a computer via batch file in Windows 7

I want to make a batch file that will sleep my computer after a period of time.  The closest thing I have found is placing it in standby, but seems to work differently than the sleep button on my keyboard (longer bootup, doesn't wake on mouse click). Any ideas? Would it be easier in Python or C#?  The less then ideal technique mentioned above is calling this in the cmd prompt:  Rundll32.exe powrprof.dll,SetSuspendState


Is it possible to generate a PDF with a signature tag for DocuSign?

Is it possible to generate a PDF using Apex and then embed the 'Signature tab' of DocuSign into the PDF?  For example: in the Contract Object we have a text area in which the user could add legal agreements, such as:  Agreements (Text Area):     I agree that this and that are true and correct...      Signature: signature_tag   We would like that when a user clicks on a custom button, called 'Send to Docusign', an Apex code is run that will convert the agreements text area above into a PDF, then it converts the tag into a 'Signature tab' that DocuSign interprets as the location where the client needs to sign.  Is this possible?  Thanks.


Removing spaces between "words" in math mode

I'd like to set $1024 \times 768$ without any space between the three items. Is this possible? If so, how?  E.g., what I get is:     1024 x 768   and what I want is:     1024x768


Do I require airport transit visa at Frankfurt?

I am flying from Mumbiai to Montego Bay via Dubai and Frankfurt as my final destination. Do i require airport transit visa at Frankfurt. i will be having invitation letter from husband and  even visa from Montego Bay.


Is it possible to use the Stack Exchange engine internally?

Is there a way to setup the Stack Exchange engine to run on an intranet for a corporation?  The idea being that users can go to the site, submit a question and have it routed appropriately by moderation.  This way non-technical users can go to the site, post up a question. And then IT can route the question to software, customer service, helpdesk, etc. Each division being its own specific site.  If possible, how feasible is it? Does it require a lot of setup/maintenance? Are there fees involved? Can it be re-skinned?


swapping windows between two screens with one shortcut key combo

I work on a laptop connected to an additional monitor. Sometimes I just want to move windows that I have on the laptop screen to the big screen, and windows from the big screen to a laptop. Is it possible to do it with a key combination?  I don't want to move each window to another monitor one by one. I would like to have a shortcut key, that just swaps windows from one screen to another and vice-versa.  Here is xrandr output:  Screen 0: minimum 320 x 200, current 3520 x 1080, maximum 16384 x 16384 LVDS-1 connected 1600x900+0+180 (normal left inverted right x axis y axis) 344mm x 194mm    1600x900      60.00*+    1152x864      59.96      1024x768      59.92      800x600       59.86      640x480       59.38      720x400       59.55      640x400       59.95      640x350       59.77   VGA-1 connected primary 1920x1080+1600+0 (normal left inverted right x axis y axis) 598mm x 336mm    1920x1080     60.00*+    1680x1050     59.95      1280x1024     75.02    60.02      1440x900      59.89      1280x960      60.00      1280x720      60.00      1024x768      75.03    70.07    60.00      832x624       74.55      800x600       72.19    75.00    60.32    56.25      640x480       75.00    72.81    66.67    59.94      720x400       70.08   DP-1 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) DP-3 disconnected (normal left inverted right x axis y axis)


Novel about developing anti-gravity by fooling scientists

I'm trying to remember the name of a novel I remember reading in the 90s about attempting to develop anti-gravity. General Googling hasn't brought up anything, I guess it was probably not well-known (I can't even remember how good it was, just very vague memories!) and likely well out of print. Not sure when it was written though, may well have been 70s or 80s. The premise as I remember it was the US government gathered together some of their best scientists and mathematicians, and told them (incorrectly - on purpose) that the Soviets had developed some form of "anti-gravity", and that they needed to re-create it for the US in a form of "Manhattan project".


Is it possible that dark matter is just a bunch of gravitational waves interacting with one another?

Since stars and other objects are much closer to one another towards the centers of galaxies where dark matter tends to be found, it seems that it would follow that events forming gravitational waves (like LIGO detected) would occur more frequently. Since gravitational waves carry mass-energy, is it possible that a whole bunch of them interacting is responsible for all the mass that dark matter is said to be responsible for?


Why don't all zoom lenses have variable f-numbers?

As I understand it, the f-number is a ratio between the focal length and the aperture diameter.  A zoom lens can change focal length, but shouldn't the maximum aperture be a fixed size?  If so, that means all zoom lenses should have a variable f-number across their focal lengths.  For a constant f-number zoom lens, is the maximum aperture artificially being made smaller for shorter focal lengths in order to maintain a constant aperture?


"I'm Done" button available without action

I've started to do some reviews this week. Since then I observed that sometimes without doing anything the I'm Done button was available. I had this bug quite regularly, maybe in every second audit.  If this occurs it is quite obvious that an audit is occurring and one should do anything. Either upvoting for good posts or flagging/downvoting for bad contributions. Clicking I'm Done fails the audit.  See for example:


There are hints in 2014 Irish movie Calvary that the barman murdered Father James's dog, as explained in .  Why would the barman do this? I did not notice prior to this event indications that he held any grudges.


Drag and drop not working inside Nautilus on Ubuntu 17.10

I'm having a strange problem on Ubuntu 17.10: when I try to drag and drop something inside Nautilus it simply doesn't work, it doesn't even select the item, it seems like it's ignoring the action... Also, I cannot select things inside nautilus by drawing rectangles with the mouse.  All of these actions work only on the Desktop. Here is a demo:    I'm using the Xorg session with nVidia proprietary drivers. I also noticed that Nautilus seems to hang when I try to copy, paste or cut a file...  EDIT 1: I solved the problem for the slow copy/paste by disabling the clipboard sync plugin of KDEConnect. I also discovered that if I open Nautilus as root, I can drag and drop or select whatever I want...


How do I connect two tables in SQL to create a new table?

What I am trying to do is add a section the website that automatically assigns a department to a product when an administrator creates a product. For example, if I create a "t-shirt" product then it gets assigned the the "shirts" department.  I need to get the tables connected in the db so that when a department is loaded, all the associated products show up. When I run a join between the two tables this is what I am running:  select d.Name, p.Name        from products p         inner join departments d on p.Id = d.Id   And I'm getting my only two products which I've manually assigned a department.   Can I get some help with what I need to do next to get every product automatically associated with a department?


An issue with the negative sign in a table

In the following table:  \documentclass[12pt]{article} \usepackage{tabularx} \usepackage{multirow} \usepackage{float} \begin{document}     \begin{table}[H]         \centering         \small         \begin{tabular}{|c|c|c|c|c|c|}             \hline             \textbf{Representation}     & \textbf{Configuration}             & \textbf{Correlation} & \textbf{p-value}                 & \textbf{\begin{tabular}[c]{@{}c@{}}Correlation\\ coefficient\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}\# classes with\\ significant\\ correlation\end{tabular}} \\ \hline             \multirow{6}{*}{Test suite} & \multirow{6}{*}{Without reduction} & Coverage and AC      & \multirow{6}{*}{\textless 0.001} & $−0.18$                                                      & 9                                                                                \\ \cline{3-3} \cline{5-6}              &                                    & Coverage and ND      &                                  & $−$ 0.2                                                                       & 4                                                                                \\ \cline{3-3} \cline{5-6}              &                                    & Coverage and NV      &                                  & −0.19                                                                      & 9                                                                                \\ \cline{3-3} \cline{5-6}              &                                    & Coverage and IC      &                                  & 0.21                                                                       & 8                                                                                \\ \cline{3-3} \cline{5-6}              &                                    & Coverage and PIC     &                                  & 0.2                                                                        & 4                                                                                \\ \cline{3-3} \cline{5-6}              &                                    & Coverage and DBI     &                                  & 0.21                                                                       & 9                                                                                \\ \hline         \end{tabular}     \end{table} \end{document}   The negative numbers in the column Correlation coefficient are shown as positive. The negative sign - is not shown. I tried both $-18$ and $-$ 0.2 but none of them works.   How to solve this issue?


Trying to find a Sci-Fi movie, probably from the 50's or 60's

I’m trying to identify a movie I saw when I was very young.  It was a “Saturday Matinee” playing on one of the local stations, and I likely watched it in the late 60’s.  So I expect that the movie is from the 50’s or 60’s.  I watched it in black and white, but it could have been a color movie on a black and white set. I clearly recall a scene where scientists enter a lab and some see something move past them in a blur.  Later in the movie, they come upon themselves in the same lab where they appear to be frozen and not moving.  Then they notice that their “other selves” are moving, just almost inperceptibly slowly.  They are encountering themselves but at a completely different time scale. Unfortunately, I don’t recall much else about the movie, just the idea that they encounter themselves once with the others flashing past, and again seemingly not moving at all.  If this rings any bells with anyone, I’d love some pointers to try to track this movie down.


What is the name for words which, when the order of letters is reversed, spell other words?

For example:   Lamina / Animal Dog / God  Ogre / Ergo Desserts / Stressed Tuba / Abut   These are all anagrams, but they are a special type of anagram, where the order of letters is exactly reversed. They aren't palindromes, as they spell a different word when read backwards. I feel like there should be some sort of latin-sounding name for them, but the best I can come up with is the rather imprecise-sounding "backwards words", "mirror anagrams" or "reverse spelling pairs"...


Accepted answer give me just 10 instead of 15 points

I'm not sure if there is any change in SO rules or I might be missing something. But one of my  got accepted today & I get +10 points for it instead of +15.  What is the cause of that ? How exactly 10 points are calculated here ?


Let $\varphi $ be a continuous real function on $(a,b)$ such that    $$\varphi(\frac{x+y}{2})\leq \frac{\varphi(x)}{2}+\frac{\varphi(y)}{2} $$   for all $x,y\in (a,b).$   Prove that $\varphi$ is a convex function.   Here is what I know: I know that  $\lambda$ have to be arbitrary. And we can use  $\lambda$ which its denominator is the power of two and using iteration but I don't know how.  I don't know how can I solve the problem for  $\lambda=\frac{1}{4}.$  Solving problem for this example can be enough for me too.


I use TeXmaker and I try to insert an image with the command \includegraphics. The problem is that when I compile it, i have a border around my image and I don't want that. I tried everything that I looked up on Google, but still nothing works for me. Can anyone here help me? The problem occurs with .png screenshots and .eps files that I use. Below you can see what I mean.    EDIT:  I compile my text with LuaLaTeX, if that matters.  \begin{figure} \centering \includegraphics[scale=0.5]{example-image} \caption{Μετατροπή από την κλίμακα mel στη συχνότητα} \label{fig:mel2freq} \end{figure}


Declare Generic method in a "normal" class and its return

I need a non-generic class containing a method with two generic parameters . In this method my goal is to compare two generic parameters and return the greater value.  How can I do it? public class generic <T extends Comparable<T>>{      public T Max( T pv, T sv){         if(pv.compareTo(sv)>=0){             return pv;         }else {             return sv;         }     }      public static void main(String[]args){         generic g = new generic();         System.out.println(g.Max( 2, 7));     } }


PCA: Eigenvectors of opposite sign and not being able to compute eigenvectors with `solve` in R

I'm learning PCA in R language. I met two problems right now that I don't understand.  I am performing a PCA analysis in R on a 318×17 dataset using some custom code.  I take eigen function in R  to find eigenvalues and eigenvectors.  But my 1st and 3rd eigenvectors are of the opposite sign to my handbook.  My second eigenvectors is almost the same.  I know that given a square matrix A, the condition that characterizes an eigenvalue, $\lambda$, is the existence of a nonzero vector $x$ such that $Ax=\lambda x$; this equation can be rewritten as follows: $(A - \lambda)x=0$. Now I calculate covariance of my data and have eigenvalues. I want to solve this linear combination equation to find $x$ and compare with initial eigenvectors. When I take solve function in R, my $x$ vector is always zero.   Here are my questions: Why the sign is different? How to use solve function in R  to find a non-zero vector $x$?


Turkish characters are not displayed correctly

MySql database uses utf-8 encoding and data are stored correctly.I use set_name utf8 query to make sure the data called are utf-8 encoded.all variables from database works fine as long as the header charset is utf-8,but the static html characters do not work properly.When i set header charset to ISO-8859-9 variables are displayed differenly while html characters work ok.can anyone help me?  Utf8 encoding:     html tags have problem displaying values.but php data(green ones e.g. ağişler) that come from database is ok.ISO encoding  this time the html is ok but php data are displayed wrong.  <?php     header('Content-Type: text/html; charset=ISO-8859-9');     ?>     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">     <html xmlns="http://www.w3.org/1999/xhtml">     <head><title>noname</title>         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


I am a Phillippine passport holder, on my returm from Brazil to the Philippines, I will have a connecting flight in Heathrow. It is less than 24 hours but next day flight. April 13, 4 pm, I will arrive  in Heathrow airport and leave tomorrow at 12 nn. I plan to sleep in the airport. Will any type of Visa be needed?


my physics textbook says that If two bodies stuck together after the collision and move as a single body with a common velocity then the collision is said to be perfectly inelastic collision.  Consider an example,when a mud ball is thrown on a wall, both of them (ball and wall) do not move but both of them stuck together. will this collision be considered perfectly inelastic? Further my teacher said that momentum is conserved in each kind of collision, but i don't see any momentum after the collision of mud ball and wall, hence two cases arises:   My teacher is wrong The system is non-isolated (law of conservation of momentum is applicable to an isolated system)   Where the things went wrong?


Are treasures used as crafting components?

I'm a bit tight on gil at the moment, but I want to buy all cooking ingredients I come across so Ignis can unlock as many recipes as possible.  I do have quite a few valuables in the Treasures tab of my Inventory. However, I'm always wary about selling everything, because in some games, "treasures" can be used as crafting ingredients for things. I'd hate to sell something for 50 gil and then find out it's required to upgrade my spear and be forced to go back and get it again.  That said, is it okay to sell all of my Treasures in FFXV? Or are there some used as crafting components? If so, what are they, so I can hang onto them?


fake proof of $\forall a. \forall b. a = b \to 1 = 0$

I saw a less formal version of this fake proof that claimed to prove $2=1$ but because it assumed $a=b$ from the start I knew why it was wrong. It does seem however that the proof can be used to prove an certain implication I find very odd however. Clearly $\forall a. \forall b. a = b \to 0 = 1$ is false because I could pick $a$ and $b$ to be $1$ and then I would have derived 0 = 1 with no other conditions. So there must be something wrong with this proof that I am not seeing.  proof of $\forall a. \forall b. a = b \to 0 = 1$:  $a = b \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (assume)\\ a+a=a+b  \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (x=y \to f(x) = f(y), f(x)=a+x)\\ 2a=a+b \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,  (a+a=2a)\\ 2a-2b=a+b-2b \,\,\, (x=y \to f(x) = f(y), f(x)=x-2b)\\ 2(a-b)=a+b-2b \,\, (distributive)\\ 2(a-b)=a-b \,\,\,\,\,\,\,\,\,\,\,\,\,\, (-b=b-2b)\\ 2=1 \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (x=y \to f(x) = f(y), f(x) =x/(a-b))\\ 1=0 \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (x=y \to f(x) = f(y), f(x) =x-1) $  now that I have "proven" $\forall a. \forall b. a = b \to 0 = 1$ I can now pick a and b to be 1.  $ 1 = 1 \to 1=0 \,\,\,\,\,\, (a=1, b=1, above)\\ 1 = 1 \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (\text{reflexivity})\\ 1=0 \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, (\text{modus ponens}) \\ $  So now it seems that I have managed to derive $1=0$. Clearly I messed up given that no one has been able to show $ZFC$ inconsistent and ostensibly this fits well within the most studied aspects of $ZFC$. Either that or a random guy that makes meme's online found the most profound result in mathematics ever.  So where have I missed the mistake?


I would like to make macro blocks for control loop block diagram. My idea is to have PI controller and filter blocks like in picture, and to have the possibility to simply add in my diagram, but I can't do iti. I have tried \tikzstyle \tikzset without success. Any help is welcome.


Why are the buttons for voting on your own question or answer visible?

When you visit a question that you have asked or an answer you have given you can see on the left hand side of the screen buttons for up-voting and down-voting as well as the number of people of votes for the question.  When one clicks up-vote, a message appears telling you that you can't vote on your own question. I'm just wondering why the up-vote and down-vote buttons are even visible if they cannot be used.  When you hover over your own comments it doesn't give you voting buttons...so why should it do so on questions and answers that you own?


I'm trying to work through some example questions for my class but there is no mention of "Piecewise affine functions" anywhere and I'm completely stumped on how to do this.  Any help would be appreciated please.


How to get Silverlight and Flash 10+ to work in Chromebook and Ubuntu 12.04 with Firefox

I would like to watch content from many of TV-station's streaming services. First I need Flashplayer 10+ with Firefox and then Silverlight (Mac and Windows are supported I think, Chromebook is not, right?).  I have: - Samsung Chromebook - In the Chromebook Ubuntu 12.04 installed (looks to be very minimal set up) - In the Ubuntu I am using Firefox (I didn't success with Chrome installation on this Chromebook ;-) :-D - Fun!)  I have tried to: - as "root" to run sudo rpm -i flash-plugin-11.2.....i386.rpm - solve the problem when running the previous rpm fails. It says I need glibc >= 2.4 and also bin/sh is needed (what???). - due to need of glibc I updated my repository at /etc/apt/sources.list but finally it says that apt-get cannot locate package glibc. - install by apt-get "build-essential" to get glibc but it didn't help at all. Glibc is not updated.  There is no success :-(. I cannot even dream about Silverlight before getting to work something so basics like Flashplayer.  If you could help me to go forward it would be very nice :-). I am dreaming of getting everything what I ever need to work with my Chromebook except photoshopping (It's done by my Mac)  Thanks!  With best regards, Hermann


$K \subset L$ a field extension and $L$ algebraically closed implies that $A$ is the algebraic closure of $K$

Let $K \subset L$ be a field extension and $A:=\{l \in L\,:\,a\text{ algebraic over }K\}$. I already have shown that $A$ again is a field and $K \subset A$ is algebraic. Also: If $l \in L$ is algebraic over $A$ it's also algebraic over $K$.  I now have to prove the following statement:  Suppose $L$ is algebraically closed. Show that $A$ is algebraically closed and that $K \subset A$ is algebraic.  As mentioned the latter I already have proven. Any hints how to proceed? I thought about considering a polynomial $a(x) \in A[x] \setminus A$ which decomposes into linear factors of $L[x]$ since $L$ is closed. From there on it would've been quite nice to show that these linear factors indeed are contained in $A[x]$ but I unfortunately do not know how to proceed.  Thanks for checking in! :)


I'd like to capture the data sent by my ADSL modem (what's really sent on the RJ11 cable). I have no access to my modem (no ssh), so I'd like to build a mini-computer with 2 RJ11 plug, one connected to the modem, one to the telephone plug, and be able to capture/edit the data sent and recieved.  Somebody knows where I should start ?


I have a Visualforce page that has a Lightning Component being loaded with it (basically, the VF is a container for the Component).  The code:  <apex:page showHeader="true" sidebar="true">     <apex:includeLightning/>     <div id="ltng">         <script type="text/javascript">             $Lightning.use('c:InvoiceGenerator', function() {                 $Lightning.createComponent('c:InvoiceCreator', {}, 'ltng', function() { console.log('loaded!') })             })         </script>     </div>   </apex:page>   The problem is that I can not access it with a Partner Community user, but I can access it just fine on both sandbox (Summer 17) and production (Spring 17) as an admin user, so Locker Service doesn't seem to be issue here.  When accessing the page as a community user, the following error is logged to the console:  Uncaught SyntaxError: Unexpected token w in JSON at position 0     at JSON.parse (<anonymous>)     at XMLHttpRequest.xhr.onreadystatechange (lightning.out.delegate.js?v=1496073716760:143)   The component's app contains the following lines:  <aura:application extends="ltng:outApp" access="GLOBAL">     <c:InvoiceCreator></c:InvoiceCreator> </aura:application>   Am I right to assume that this is a bug, or Lighning Out isn't available to community users at all?  edit  I decided to inspect the error that was shown in Chrome, and I've noticed that it is an error when handling another error from the server. Somewhere on lightning.out.delegate.js theres a piece of JS that is used to handle errors, that has these lines:  var exceptn = JSON.parse(jsonExcptn); displayErrorText(exceptn.message);   And when trying to parse jsonExcptn, the script throws an error, because jsonExcptn is not a valid JSON string. It contains the typical internal server error message. More specifically, this is the variable content:  "while(1); */{   "message":"Erro interno do servidor\\nID do erro: 340480800-85527 (1241894257)" }"


Changing trains in Lille - what's the transfer with luggage between Lille Europe and Lille Flanders stations like?

Lille has two main train stations, Lille Europe and Lille Flanders. (Gare de Marchandises Saint-Saveur is no longer a station, and instead hosts art exhibitions and the like). Lille Europe is the new station on the high speed lines between London / Paris / Brussels, while Lille Flanders is the original station now used for a mixture of local and high speed trains.  For some rail journeys, changing trains in Lille is the best option (avoiding having to cross Paris to change trains), and for others it's the only option. Sometimes you get lucky and both trains use the same station in Lille, but not all.  For the cases when you find yourself needing to change between Lille Flanders and Lille Europe stations, what's the connection like? Does it take long? Is it outside / inside? Is it a faff with luggage, or is there a step-free route for most of it? Are you best to walk, or take public transport? And a lower concern, is there anything interesting to see of the town during the transfer?


Is it grammatically correct to use "baby" as a proper noun

A lot of baby books and products use the word baby as you would a proper noun.  For example "when lying baby down in the cot" instead of "when lying your baby down in the cot". Another example from a shampoo bottle "proven to help baby sleep better". Books about child raising don't say "when teaching child good manners".  Where did this practice arise and is it valid?


Rusty describes his needs for an 11 man crew

In Ocean's Eleven, Rusty (Brad Pitt) and Danny Ocean (Gorge Clooney) are in the architect firm's building that designed the vault of the Ballagio Casino, Las Vegas at night going over the blueprints. Then Danny asks what does Rusty think about it. Rusty says he's looking for guys, and I quote, "Off the top of my head, I'd say you're looking at a Boesky, a Jim Brown, a Miss Daisy, two Jethros and a Leon Spinks, not to mention the biggest Ella Fitzgerald ever." What does he mean by this statement?


Using a orthonormal bases of $\mathbb R^4$ and $\mathbb R^6$ find a solution $Ax=z_1$

If you have orthonormal vectors $q_1,q_2,q_3,q_4$ of $\mathbb R^4$ and orthonormal vectors $z_1,z_2,z_3,z_4,z_5,z_6$ of $\mathbb R^6$ and matrix A is $A=z_1q_1^T+z_2q_2^T$.  a)Find a base and dimension of fundamental subspaces of  $A$  b) Using fact from a) find a solution $Ax=z_1$  For a)$ Im(A)=L(z_1,z_2), dimIm(A)=2, Im(A^T)=L(q_1,q_2), dim Im(A^T)=2, ker(A)=L(q_3,q_4) dimker(A)=2, ker(A^T)=L(z_3,z_4,z_5,z_6) ,dim N(A^T)=4.$  For b) $Ax=z_1$, If $z_1 \in Im(A)$ then this equation have solution, then $x=q_1$ since $(x_1,x_1)=1$ and $(x_2,x_1)=0$ so $Aq_1=(z_1q_1^Tq_1+z_2q_2^Tq_1)=z_1+0=z_1$ is this ok?


As an Indian Citizen, can I use my b1/b2 visa after f1 visa period or will I have to leave US and reenter?

I am from India.I intend to travel to the US for a student clinical elective at a university in Texas for the months of November and December. The university will help me obtain an F-1 status. However, I want to attend a few conferences and educational seminars which are being held in January and february for which I will be using a B1/B2 visa which I already have expiring in 2023.  Will I have to leave the US and come back in January using a B1/B2 visa, or is there another way to change my visa status, or should I apply for both visas again.


I am using one .bib files and need to create multiple bibliographies for each chapter + one global one in the end, using biblatex (biber). Everything works smoothly with the multiple bibliographies using refsection, however, I fail to create the global biblio.  I found a very similar problem here:  - however the solution   \nocite{*}   does not work for me as I need only those references cited (my .bib file is very large.  My example:  \usepackage[refsection=chapter, style=authoryear-comp,natbib=false,mcite=false,backend=biber]{biblatex} \addbibresource{refs.bib} \begin{document}  \begin{refsection} blabla \cite{} \printbibliography[heading=subbibintoc] \end{refsection}  % and now the global one that should include all previously cited documents  \printbibliography[heading=bibintoc]  \end{document} \begin{refsection} blabla \cite{} \printbibliography[heading=subbibintoc] \end{refsection}   It does neither produce a global biblio nor an entry in the toc.


My party bypassed a combat encounter. Should they still get XP?

Some thug bandits set up a road block on the main road to extract a toll from passersby. It was twilight when my party encountered them. They used the Rogue to scout ahead, and they ultimately decided to bypass them by taking the long way around with some stealth to avoid the bandits.  Is there RAW justification that I should award XP as if they actually fought and killed the bandits? (5 x 1/8 CR)


"Why does "/home" have " / " at the beginning if for example the " / " is on a different partition?

Lets assume my system has the root ( / ) partition located on "/dev/sda1" and the /home partition is located on "/dev/sda2", Why does "/home" have   " / " at the beginning since " / " is on a different partition?


How to convert total seconds value to string in 'hours minutes seconds' format

I'm trying to convert seconds to hours , minutes and seconds.  Example:  int totalseconds = 5049;   How do i use one message box to display the results in the form:  H:1 M:24 S:9


Can I use a non-Apple keyboard with OS X?

Recently I've been thinking about the idea of migrating from PC to Mac, specifically Mac Mini. The biggest issue however is hardware, since I'm not sure what will and what won't work on OS X.  First issue that comes to my mind is keyboard, currently I'm using Logitech G15. If I connect it to a Mac, how well will this work with OS X specific keys like Option, Cmd, etc? Does it work out of the box with all keyboards, or should I rather buy the Apple keyboard?


Reference Request: Physics 1 for people who already know the math

I'm a Statistics undergraduate student and, this semester, I took a Physics 1 (Mechanics) class. The physics in this class is really just high-school physics but with basic Calculus and some Linear Algebra. You get to ignore things like friction, air resistance, assume objects to be particles, all this kind of stuff that makes things simpler.  The textbook we're using in this class is Young & Freedman's University Physics. The problem I have with this book is that it's very slow because it's made for very young people, who are often fresh out of high school, and the authors don't assume previous knowledge of linear algebra, and only assume trivially basic knowledge of calculus.   As a consequence, the discussions and examples are unecessarily long and detailed. So what I'm looking for here is some material that covers Physics 1 mechanics but is focused on people who have already taken the standard calculus and linear algebra classes. And by material I mean anything really, lecture notes avaiable online, YouTube playlists, etc.


Tag each line of array inside a { symbol

I want to tag each line of an array that is inside the { symbol. For the example bellow I use align, but a solution with equation, subequation or some other "top" structure might also work.  Here is an example:  \begin{align} \mathbf{S} = \left\{ \begin{array}{lll} a & \text{name a} \\ b & \text{name b} \\ c & \text{name c},  \end{array} \right. \end{align}   I would like to have number-letter tag for each line of this structure, i.e. (1a), (1b) and (1c) for example.


Is Double data type trimmed in MySQL while checking uniqueness?

When I run this below queries, I get Duplicate Key error on MySQL version 5.6.31-log CREATE TABLE `calls_outbound_temp` (   `uniquecallid` double NOT NULL,   `extn` int(11) DEFAULT NULL,   `disposition` varchar(50) DEFAULT NULL,   `src` varchar(100) DEFAULT NULL,   `dst` varchar(100) DEFAULT NULL,   `duration` int(11) DEFAULT NULL,   `calldate` datetime DEFAULT NULL,   `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,   UNIQUE KEY `uniquecallid` (`uniquecallid`,`extn`,`calldate`),   KEY `idx_extn` (`extn`),   KEY `idx_disposition` (`disposition`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;  INSERT INTO calls_outbound_temp (uniquecallid,extn,disposition,src,dst,duration,calldate) VALUES ("1593582027.3368257","7180","ANSWERED","7180","7247","8","2020-07-01 11:10:27"), ("1593582027.3368255","7180","NO ANSWER","7180","7247","9","2020-07-01 11:10:27");  Exact error: ERROR 1062 (23000): Duplicate entry '1593582027.3368256-7180-2020-07-01 11:10:27' for key 'uniquecallid'  I am not sure how to troubleshoot further. uniquecallid clearly is different and are not duplicate. Not sure why uniquecallid is considered as 1593582027.3368256 We can even regenerate this issue on , just copy-paste above snippet in MySQL 5.6.


How do I make the pattern angle match the direction of the brushstroke?

I just want the pattern for my brush to follow my brush strokes.  How do I make the pattern do the same thing as in the example? (On)


I use Ubuntu 14.04 LTS.  When I attempt to install updates. I receive a message that says, "The volume boot has only 0 bytes disk space remaining".  How do I clear disk space in the boot folder?  This has not occurred since I installed 14.04 LTS last year.


Java - text input - beginners - exercise

I'm learning the basics of Java, and wanted to practice something. So found a page of some programing problems and I get stuck at this problem:  2) Write a program that asks the user for her name and greets her with her name.  3) Modify the previous program such that only the users Alice and Bob are greeted with their names.  I've made well the 2nd but I have trouble with 3rd one.  System.out.pritnln("Please enter your name "); Scanner input = user new Scanner(System.in); String user_name; user _name = input.next(); if(user_name == "Alice"){ System.out.println("Hello " + user_name + ", sweet name."); if(user_name=="Bob"){ System.out.println("Hello " + user_name + ", sweet name."); } }


Show that $A^2=A$ suppose that A is normal and $A^5=A^4$

In the beginning this seems easy to me - just multiply $A^{-3}$ on both sides, but I realized that $A$ and its associated diagonal matrix $\mathbf{\Lambda}$ are not nessarily invertible. So what else can I try? Any help will be appreciated!


If a subspace S is spanned by $n$ vectors, any subset of S with $m>n$ vectors is linearly dependent

So I am in an introductory linear algebra(with proofs) class, and I came across the following theorem:  If $S$ is a subspace of a vector space $V(F)$ and is generated by $\{a_1,...,a_n\}$ then any subset $\{b_1,...,b_m\}$ of $S$ with $m>n$ is linearly dependent.   The proof in the textbook is done through induction (as most proofs regarding finite sets are) but I really do not follow it and I feel there is a simpler way of doing it. A hint would be appreciated.


Complete features of Ubuntu 12.04 on USB without installing it on Windows 7 laptop

I am new user and want to use complete features of Ubuntu 12.04 without installing it on my laptop that has Windows 7 OS so that I became acquainted with Ubuntu before switching to it. is it is possible through pen drive i.e. my pen drive will become Ubuntu enabled just like my computer work with windows.


How to allowbreak on Beamer Berkeley left-hand-side navbar?

I have too many sections in my presentation such that the left-hand-side navigation bar is full and only shows the first sections in Fig. 2, initial situation in Fig. 1.  Pseudocode    clean the left-hand-hand side navigation bar when exceed the threshold and start a new one there when on sufficient page  this feature occurs with Beamer Berkeley appendix so it is possible also with the main document   Code which problem shown in Fig. 2   \documentclass{beamer} \usetheme{Berkeley}  \logo{\includegraphics{logo.png}} \usepackage{hyperref} % https://tex.stackexchange.com/a/346486/13173 \newenvironment{slide}[1] {\begin{frame}[environment=slide,allowframebreaks] \frametitle{\insertsection-#1} } {\end{frame}} % fragile only if code % allowframebreaks not by default   \begin{document}  \title{Sensory system. Primary sensory modalities. Cortical modalities. Kinds of sensory disturbances. Spinal cord disorders. Spinal cord transverse and partial lesion. Cauda equina damage.} \author{Leo}  \section{Cortical modalities} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 2} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 3} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 4} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \end{document}   Fig. 1 Situation at the first page,  Fig. 2 Situation at Section 6 wheere the navbar has not changed,  Fig. 3 Samcarter's answer output + one slide addition but without \part{} - fails on sufficient page count       Output: the left-hand-side navigation bar is not refreshed when the amount of sections exceed its capacity on suffcient enough page     Testing Samcarter's proposal  I include one slide before Samcarter's body so I get the wrong output in Fig. 3.  Solution: Eventually correct output by just adding \part{} in the place where the new navbar is wanted.   TeXLive: 2016 OS: Debian 8.7


Single-line comments show like two lines, simply to give space for the Vote and Flag icons, which are placed with above the other. Can these buttons be placed next to each other? This would allow single-line comments to look like single lines. Example:


can you add subdivision surface modifiers to specific vertex groups

i want to make parts of my model seem more smooth but others i want to stay flat.


What does StarCraft 2 campaign difficulty affect?

When creating a campaign you get the four difficulty options just like for each mission.  Do they affect anything with respect to game-play (e.g. fewer credits earned in missions, more expensive upgrades, etc), achievements, or the story (e.g. extra or extended cutscenes); or does it simply set the "default" difficulty of each of the missions?


My account just got deleted; how do I restore?

I had lots of reputation points on some Stack Exchange sites, and my account just got deleted, without me knowing.  Can I restore it, and if I can, how?


Can we find the complex roots by using Newton's method?

Is it possible to find the complex roots of a function by using Newton's method? If the answer is yes, how to do it?


(Java) Method that sorts a Char array into its reverse alphabetical order

Just to be on the same page, I'm not looking to sort a String array into its reverse alphabetical order, I'm looking forward to doing this for a Char Array.  Here's my attempted code:  import java.util.Arrays; public class ReverseSortDemo {     public static void main(String[] args){         char[] unorderedLetters;          unorderedLetters = new char[]{'b', 'm', 'z', 'a', 'u'};         reverseSort(unorderedLetters);          for (int i = 0 ; i < unorderedLetters.length; i++ )             System.out.println(unorderedLetters[i]);     }      //method that sorts a char array into its reverse alphabetical order     public static void reverseSort(char[] values){          Arrays.sort(values);         for (int i = values.length - 1; i >= 0; i--) {             values[values.length-1-i]=values[i];         }     }  }   The output I'm getting is this:  z u m u z   BUT, my desired output as you guys know is this:  z u m b a   So, how do I deal with this? Is there a way, and if possible, an easier way to do this (e.g. builtin method) which I'm not aware of, so that I can start getting lazy with my code?


Suppose that $E$ is an extension of $F$ of prime degree. Show that $~~\forall~ a \in E : ~ F(a)=F$ or $F(a)=E$   Attempt: Suppose that $E$ is an extension of a field $F$ of prime degree, $p$. Therefore $p = [E :F] = [E : F(a)][F(a) : F]$. Since $p$ is a prime number, we see that either $[E : F(a)] = 1$ or $[F(a) : F] = 1$.   Now, $[E : F(a)] = 1 \implies $ there is only one element $x \in E$ which forms a basis and every element in $E$ is generated by $x$ i.e. $E = \{x~c~|~ c \in F(a)\}$  $[F(a) : F] = 1 \implies $ there is only one element $y \in F(a)$ which forms a basis and every element in $F(a)$ is generated by $y$ i.e. $F(a) = \{y~d~|~ d \in F\}$  Have I inferred it correctly? How do I move ahead?  Thank you for your help.


how to fetch the picklist and field values dynamically from multiple objects

public class PickListController {   global static list<SelectOption> getPicklistValues ('Employee__c' , 'Priority__c') {     list<SelectOption> options = new list<SelectOption>();      // Get the object type of the SObject.     Schema.sObjectType objType = obj.getSObjectType();       // Describe the SObject using its object type.      Schema.DescribeSObjectResult objDescribe = objType.getDescribe();          // Get a map of fields for the SObject      map<String, Schema.SObjectField> fieldMap = objDescribe.fields.getMap();        // Get the list of picklist values for this field.      list<Schema.PicklistEntry> values =      fieldMap.get(fld).getDescribe().getPickListValues();       // Add these values to the selectoption list.      for (Schema.PicklistEntry a : values)      {          options.add(new SelectOption(a.getLabel(), a.getValue()));       }      return options;    }  }


How do I add a DNS server via resolv.conf?

Is /etc/resolv.conf useless in  (Precise Pangolin)?  I see that the DNS server information is stored in  now. The nmcli command line tool can list that for you.  If I want to add one more  server, will adding it to /etc/resolv.conf by using the resolvconf package help?


What types of clicks affect ''pages per session'' in GA? How can ensure click get registered to increase that?

I have on my website a lot JS, e.g.:  Slideshow  Full Screen  When user click on that this not affect  "page per session" ? if I edit the HTML and add in a href e.g. example.com/something will it then affect "page per session"?


Say you need to have a list/array of integers which you need iterate frequently, and I mean extremely often. The reasons may vary, but say it's in the heart of the inner most loop of a high volume processing.  In general, one would opt for using Lists (List) due to their flexibility in size. On top of that, msdn documentation claims Lists use an array internally and should perform just as fast (a quick look with Reflector confirms this). Neverless, there is some overhead involved.  Did anyone actually measure this? would iterating 6M times through a list take the same time as an array would?


Integer part of $\sqrt[3]{24+\sqrt[3]{24+\sqrt[3]{24+\cdots}}}$

Find the value of the following infinite series: $$\left\lfloor\sqrt[3]{24+\sqrt[3]{24+\sqrt[3]{24+\cdots}}}\right\rfloor$$  Now, my doubt is whether it's $2$ or it's $3$. I'm not sure if it just converges to $3$ but not actually reaches it or if it completely attains the value of $3$.  I would to like to see the proof (formal) as well instead of just intuitions.


I’m writing a document in the latex and it contains some BNF grammar noations in several places of the documents. (I used verbatim package in order to write these BNF grammar notations)  Now I want to add a new section to the document that shows name of all grammar notation and their page numbers. This should be similar to “List of Figures” page.  I’m new to Latex and your help will be very helpful for me.  Thanks


Fix/Freeze/Clamp Object Info at certain value

I am using an object's 3D position to apply a diffuse colour. I have a selection of objects that are different Z positions and hence have the colour ramp applied to them. As objects merge back into their final places I would like them to retain their colours.  The position of the plates when exploded will not be as they are now so I cannot just simply reduce the scale of the ramp when they contract back in. I need them to "remember" the value of their Z displacement for the colour ramp to use that data.  Basically I need a node (or some way to do it with what I have) that can be key framed to "freeze" it's output value.  H


When we create a directory in UNIX it has 2 hard links: . and ... One to itself and another one to its parent directory.  As I read the . increases counter of the directory, and the .. increases hard links counter of parent directory.  So only . is counted in the directory, but there are still 2 hard links when I do ls -l. What is the second one? Can someone tell me how hard links are counted in directories? Imagine, we have this hierachy:  parent    - 4 hard links . . child_1 - 2 hard links . . child_2 - 2 hard links


I am new to python. This question might duplicate.  How to know the methods of lists. After search in google, its come to know there are more than 10 methods like append,insert , ,. is there any command/syntax to know the available methods. lists is for example.


How to undo accidental RAID initalization operation (recover data)?

Summary of the problem: I have two disks re-configured as RAID 1. instead of copying the data to the empty disk, it deleted the data from the non-empty disk.  Here's what happened: 1. In the last few days, I reinstalled windows 8 twice. 2. I had 2 disks configured as RAID 1 and 1 SSD contained the OS. 3. While reinstalling windows 8 (1st time) on the SSD, I might have removed the RAID configurations from BIOS. 4. I made changes to the raid disk. 5. I reinstalled windows 8. 6. I noticed I see 3 disks (1 SSD, raid-disk1, raid-disk2) 7. Raid-disk1 was updated to my last changes (done after installing windows 8 for the 1st time) 8. Raid-disk2 was updated to BEFORE installing windows 8. 9. I formatted raid-disk2 10. I set SATA configuration to RAID in BIOS. 11. After restart, the disks was automatically configured as RAID and with status rebuild. 12. In windows 8 I get both disks as EMPTY!  How do I restore the data?   Thanks A LOT! Omer


How to solve this puzzle by using Axiom of Choice?

In , at the end of page 6, it is given the following puzzle,     An evil wizard has threatened a village where an infinite number of   gnomes reside. The wizard will cast a spell that will cause a hat to   appear on the head of every gnome. Each hat will either be red or   blue, but each gnome will be unable to see that hat on his or her   head. The wizard will leave the gnomes alone only if only a finite   number of gnomes guess the color of the hat on their heads   incorrectly. The gnomes can strategize before the wizard puts the hats   on their heads, but they cannot talk or communicate with each other   once the hats are on their heads. The gnomes have very good eyesight   and can see the hat of every other gnome. The wizard can listen to the   gnomes strategize and choose the most evil possible placement of hats.   What should the gnomes do?      [solution, if you can find it, requires the Axiom of Choice.]   I have been thinking this puzzle since yesterday, but I couldn't come up with any solution, so what is best strategy(ies) that can gnomes choose so that the wizard will leave them alone ?  Edit:  Note that there are infinitely many gnomes, not necessarily countably infinite.Morever, the puzzle does not say that a gnome that guesses his/her hat wrong will be kill right away, so there is no way s/he can learn whether his/her choice was true or not before everyone else made their guess.


Prove there is no theory whose models are exactly the interpretations with finite domains

I'm working through Mendelson's Introduction to Mathematical Logic and I'm having trouble proving the following statement:  '' There is no first-order theory $K$ whose models are exactly the interpretations with finite domains." (ex. 2.57)  I've been trying to argue that any theory $K$ with a model with finite domain also has a model with infinite domain, since we may extend the finite domain into an infinite one. I am however not sure how to go about this formally. I was wondering whether I am on the right track at all an if so, if anyone could help me formalise this idea.


Why are lamps and mesh lights not illuminating anything?

There are several techniques to do a 3 point lighting system.   How do you properly light a scene while using mesh planes as emission light sources?   I'm following , however despite setting up planes to act a lighting sources, the scene is still very dark.      Actual Blender file here:


Noether's Theorem: Lie groups vs. Lie algebras; finite vs. infinitesimal symmetries

I've had a brief look through similar threads on this topic to see if my question has already been answered, but I didn't find quite what I was looking for, perhaps it is because I'm finding it hard to put words on my question and I hope that you will be able to help me ask it clearly.  I'm trying to link what I know from mathematics to what we are writing in physics for Noether's theorem. If I understand correctly we are looking at the symmetries of the action i.e. under which symmetry groups is it invariant. Noether's theorem allows us to calculate a conserved current in the case of a continuous symmetry (Lie groups), by means of so-called infinitesimal symmetries which I believe to be elements of the Lie algebra (so the tangent space to the neutral element) of the Lie group.  I'm guessing that if the action is invariant under the symmetry then it's "variation" should be 0 when we vary the system (space-time coordinate, or field) using this symmetry; it is exactly this step that I would like to understand better, how can I formalize this step correctly mathematically? How should I understand this variation, and how does it's calculation give rise to the elements of the Lie algebra?


How can I make a hyperlink work in a RichTextBox?

When I add www.stackoverflow.com into my RichTextBox and run the program it is shown in blue and as a hyperlink yet when I click it nothing happens. How can I fix this?


/tmp running out of space, can't umount /tmp to cleanup (device busy)

When I tried installing VLC plugin libde265 , I got this error message  E: Write error - write (28: No space left on device) E: The package lists or status file could not be parsed or opened.   I also keep getting that /tmp is out of disk space. What should I do? Here's output of df -h  Filesystem      Size  Used Avail Use% Mounted on udev            2.9G   12K  2.9G   1% /dev tmpfs           583M  1.5M  582M   1% /run /dev/sda7        43G   29G   12G  72% / none            4.0K     0  4.0K   0% /sys/fs/cgroup none            5.0M     0  5.0M   0% /run/lock none            2.9G   53M  2.8G   2% /run/shm none            100M   44K  100M   1% /run/user overflow        1.0M  1.0M     0 100% /tmp /dev/sda5       385G  118G  267G  31% /media/shashank/F0007F2C007EF944   On using the command   sudo umount /tmp   I get  umount: /tmp: device is busy.         (In some cases useful info about processes that use          the device is found by lsof(8) or fuser(1))   Since earlier questions were just solved by running the above command,I am posting a new question about this find out any remedies if possible


Avoiding Mixed DML (setup/non-setup) Approach

I need an approach to allow delegated admins (i.e., non-Administators) to add members to Public Groups and Collaboration Groups (the GroupMember and CollaborationGroupMember objects).  I added a custom object (UserGroupRequest__c) to capture which Users should be added/removed to which Groups.    I've also built a batchable class to process the requests.  However, GroupMember is a Setup object, and CollaborationGroupMember is not.  So this doesn't work if I combine the operations in a single batchable class.  Should I instead be using 2 batch classes, calling one from the finish method of the other?    Any recommendations on how best to proceed?  Am I way off base?    Would a trigger on the Request object perhaps be better? I'm guessing that there may be a permission problem if this is attempted via a trigger as the delegated admins won't be able to add users to public Groups.  Also, I'm guessing the trigger approach would run into the same mixed DML issue - on Insert of the Custom object, I would need to Insert/Delete from GroupMember and from CollaborationGroupMember, and then perform a 2nd update on the Custom object to indicate that processing was completed...


block particular apps from accessing vibration

I'm using Samsung S9 ( OneUI version 2.5, Android version 10 ). Is there any way to stop a particular app from accessing the vibration feature of the phone? Even if I turn on the silent mode and turn off the vibration for all notifications, certain apps keep on vibrating the phone even for minor actions. I find this really annoying and I want to block these apps from having access to the vibration feature. How to do this? In detail : I'm the kind of person who doesn't like the concept of vibration haptic feedback. I'm okay with my phone vibrating for essential notifications such as calls and texts when I'm in a meeting and my phone is in silent mode. However, I don't like the phone vibrating for silly things such as a key-press, or forwarding a video etc. It gives me a weird feeling and also vibration consumes the battery. Recently this problem became really annoying, as Youtube introduced segments in videos. Now, when I try to forward the video using the progress bar, the phone gives a really strong vibration, Which is annoying and consumes a lot of power. I looked in the settings of the Youtube app and there is no way to stop it from vibrating. Is there any way to block the youtube app from having access to the vibration motor?


Expected value inequality for a monotone function

A "simple" expected value inequality confuse me.  If $f(x)$ is a monotone increasing function defined on the interval $[a,b]$, and $c \in [a,b]$, is it possible to prove the following inequality?  $$\mathrm E\left(\sum_{t=a}^{c}f(t)\right)\leq \mathrm E \left(\sum_{t=a}^{b}f(t)\right)$$


Need help with Wifi , trying ndiswrapper

My laptop has a Qualcomm Atheros QCA9377.  Output of lspci  03:00.0 Network controller: Qualcomm Atheros Device 0042 (rev 30)   which is not yet supported by Ubuntu (works on Windows). Bug Report   Since I have no idea when it would be patched, I tried ndiswrapper.  Installing from the Software Center, would result in  FATAL: Module ndiswrapper not found.   both via ndisgtk and sudo modprobe ndiswrapper  So I compiled from source, but sudo make gave   /home/bhav/Downloads/ndiswrapper-1.59/driver/crt.c: In function ‘_win_srand’: /home/bhav/Downloads/ndiswrapper-1.59/driver/crt.c:470:2: error: implicit declaration of function ‘net_srandom’ [-Werror=implicit-function-declaration]   net_srandom(seed);   ^ cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target '/home/bhav/Downloads/ndiswrapper-1.59/driver/crt.o' failed make[3]: *** [/home/bhav/Downloads/ndiswrapper-1.59/driver/crt.o] Error 1 Makefile:1386: recipe for target '_module_/home/bhav/Downloads/ndiswrapper-1.59/driver' failed make[2]: *** [_module_/home/bhav/Downloads/ndiswrapper-1.59/driver] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.2.0-040200rc8-generic' Makefile:183: recipe for target 'modules' failed make[1]: *** [modules] Error 2 make[1]: Leaving directory '/home/bhav/Downloads/ndiswrapper-1.59/driver' Makefile:23: recipe for target 'driver' failed make: *** [driver] Error 2   I tried 1.57, 1.58, 1.59. same error.  Then I found a patched version for the updated linux kernel   But I can't compile that one either  /home/bhav/Downloads/nd/driver/loader.c: In function ‘load_sys_files’: /home/bhav/Downloads/nd/driver/loader.c:157:4: error: implicit declaration of function ‘__vmalloc’ [-Werror=implicit-function-declaration]     __vmalloc(load_driver->sys_files[i].size,     ^ /home/bhav/Downloads/nd/driver/loader.c:156:19: warning: assignment makes pointer from integer without a cast    pe_image->image =                    ^ /home/bhav/Downloads/nd/driver/loader.c:207:5: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration]      vfree(driver->pe_images[i].image);      ^ /home/bhav/Downloads/nd/driver/loader.c: In function ‘add_bin_file’: /home/bhav/Downloads/nd/driver/loader.c:298:2: error: implicit declaration of function ‘vmalloc’ [-Werror=implicit-function-declaration]   bin_file->data = vmalloc(driver_file->size);   ^ /home/bhav/Downloads/nd/driver/loader.c:298:17: warning: assignment makes pointer from integer without a cast   bin_file->data = vmalloc(driver_file->size);                  ^ /home/bhav/Downloads/nd/driver/loader.c: In function ‘wrapper_ioctl’: /home/bhav/Downloads/nd/driver/loader.c:789:15: warning: assignment makes pointer from integer without a cast    load_driver = vmalloc(sizeof(*load_driver));                ^ /home/bhav/Downloads/nd/driver/loader.c: In function ‘wrapper_ioctl_compat’: /home/bhav/Downloads/nd/driver/loader.c:884:11: warning: assignment makes pointer from integer without a cast    kdriver = vmalloc(sizeof(*kdriver));            ^ cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target '/home/bhav/Downloads/nd/driver/loader.o' failed make[3]: *** [/home/bhav/Downloads/nd/driver/loader.o] Error 1 Makefile:1386: recipe for target '_module_/home/bhav/Downloads/nd/driver' failed make[2]: *** [_module_/home/bhav/Downloads/nd/driver] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.2.0-040200rc8-generic' Makefile:183: recipe for target 'modules' failed make[1]: *** [modules] Error 2 make[1]: Leaving directory '/home/bhav/Downloads/nd/driver' Makefile:23: recipe for target 'driver' failed make: *** [driver] Error 2   I need help.  P.S.  Recently upgraded to 15.04 from 14.04  bhav@kal-el:~/Downloads/nd$ uname -r 4.2.0-040200rc8-generic   EDIT-1:  Output oflspci -knn | grep Net -A2  03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)     Subsystem: Foxconn International, Inc. Device [105b:e09a]


Gboard multilingual layout - duplicate layouts

I have been a SwiftKey user for a long time and for various reasons I am looking to switch to Gboard (one thing is the search feature). However, there is one thing that still keeps me to SwiftKey.  I generally use English, French and Greek layouts. I really enjoy the multilingual layout feature of SwiftKey and I was hoping that Gboard would do it in a similar way. However, this is not the case.  SwiftKey and Gboard both unify EN and FR layouts, however SwiftKey only really displays one option (fr/en) in contrast with Gboard that displays two options: fr/en and en/fr. I don't know the purpose of this, but it means that I have to change two layouts in order to write Greek, which I don't really like.  Is this bothering anyone else? Has anyone found any solution to this "problem".


Is 3d game development advantageous/possible in SDL2?

I think this is not appropriate, but as the given video in the link, the youtuber name Bisqwit creates his own 3d engine from scratch in C and SDL2. How much is this advantageous is real 3d game development and following his idea can a first practice project? (rather than just starting with OpenGL)?


Reading  Comprehensive Mathematics for Computer Scientists 1 chapter 2:  Axiom 3 (Axiom of Union) If a is a set, then there is a set:  {x | there exists an element b∈a such that x∈b}.  This set is denoted by ⋃a and is called the union of a.  Notation 2 If a = {b,c}. or a = {b,c,d}, respectively, one also writes b ∪ c, or b ∪ c ∪ d, respectively, instead of ∪a   What if a = {1,2} then b = 1 how can x belong to b if it's not a set?  Sorry I am a little confused...  Thanks in advance


How can I update my nodeJS to the latest version?

I have installed nodeJS on Ubuntu with following code   sudo apt-get install nodejs   Since I am a new user for ubuntu I also ran this code too  sudo apt-get install npm   Now when I type    nodejs --version   It shows   v0.6.19   I checked and saw latest nodeJS version is 0.10.26   How can I update my version of nodeJS to 0.10.26?  I tried with    sudo apt-get install <packagename>  sudo apt-get install --only-upgrade <packagename>   but no luck.


I just got the  badge on StackOverflow, which is nice, but I noticed a number of top users aren't yet listed (inluding Jon Skeet and Marc Gravell, who would certainly qualify).  This made me wonder how the badges are retrospectively applied. Is it just that the display is heavily cached and the badge is awarded when the user logs in again or something?


How to prove $n=4k+3$ cannot be the sum of two squares, x and y are integers

To prove that means $n\neq x^2+y^2$, so I started with $n\equiv 3 (mod 4)$,  then I don't know how to go on.


First I'm german, so sorry for any mistakes. I've been on so many websites but not a single one could help me. I'm writing my Bachelor thesis and all I still need is my bibliography. In a shorter form:  \bibliographystyle[unsrt]  \usepackage[backend= biber, style=numeric]{biblatex} \addbibresource{lit.bib} \begin{document}   ...  \newpage \printbibliography \end{document}   So thats basically what I wrote. I created a file named lit.bib in the correct form. If I wanna see the PDF version, I don't get an error. It doesn't print the bib at all. No idea what I'm doing wrong. I'd be vey thankful for any help!  Lisa :)


English possessive case, when 2 s are near

James's car is white, or Dickens's books are popular. can we put 2 s together and if so how do you pronounce it naturally and nicely?


Likelihood that I can install Ubuntu on a given desktop

First time on Forum...  I'm about to buy a cheapish mainstream desktop, blow away Windows, and install the latest Ubuntu.  If the desktop hit the market about a year ago, what is the chance that I will be successful?  I realize that it's high, but is it very high, so that I can risk my $250?  I installed Ubuntu, no problems, on an old Dell last weekend.  Out of the PCs I'm thinking of buying for the next one, let me give a concrete example:  Dell i3847-4461BK Desktop PC with Intel Core i3-4150 Processor  On the Ubuntu site they said that Dell did have an U image for this exact one, but being a bit of a novice, I don't know how it will go with a generic install.  Might there be missing drivers or something?  Please note that this question is about probabilities.  If you can give me a 0.99 for that example, great...  Thanks!  Mike


Click on div inside of dynamically loaded  elements does not work

I have an ordered list with dynamically loaded li elements. Each of these li contains a div. By clicking on this div, the li containing it should be deleted. I have given these divs a height and width of 24px.  The li look like this:
Some text

   These are appended to the ol like this:  $('#id_of_ol').append('
Some text

');   Here is the jquery code that I have tried:  $('#child').on('click', function () {     alert("clicked"); });   Of course, this alert is just there to check whether it's working, I will replace that with remove() later.  However, this doesn't work. On clicking, nothing whatsoever happens. What's the problem here?


how to identify UUID conf or ordinary dev conf from fstab

we need to add disks on more then 100 redhat machines,  therefore we need to update also the /etc/fstab on each machine  the problem is that some machines configured with UUID and other with ordinary dev in fstab  so I want to make a bash script that will identify the fstab configuration as the following   in case fstab configured with UUID add new UUID lines for each additional disk in case fstab configured with ordinary dev then add new dev lines for each additional disk   so my question is - what is the best approach to identify what configured in fstab  UUID or ordinary dev ?  remark - not include the OS , we talk here only on additional disks in HW machines   here is example of linux machine with UUID conf in fstab  /dev/mapper/vg00-loov_root /                    xfs     defaults      00  UUID=7de1dc5c-b605-4a6f-bdf1-f1e869f6ffb9 /boot                   xfs      defaults        0 0 /dev/mapper/vg00-loov_var /var                    xfs     defaults       00  /dev/mapper/vg00-loov_swap swap                    swap    defaults      00  UUID="fcb73644-4ad3-4b19-85f8-dbb9ed53a871"   /data/sdb                        ext4 defaults,noatime 0 0 UUID="5f56c1d6-266f-4ea2-a8f7-df06f08e01c0"   /data/sdc                        ext4 defaults,noatime 0 0 UUID="4c908671-4045-41e8-a396-a5198978e3ac"   /data/sdd                        ext4 defaults,noatime 0 0 UUID="d44fe62a-72dc-4674-91ac-5a1962797e22"   /data/sde                        ext4 defaults,noatime 0 0 UUID="ee3d8fa8-e000-4abb-a26c-da99499e630c"   /data/sdf                        ext4 defaults,noatime 0 0 UUID="61e9e16f-eb49-4c97-aaf0-0ed2dc3f3007"   /data/sdg                        ext4 defaults,noatime 0 0 UUID="ada12394-0e0b-4657-a148-d85548d7bc75"   /data/sdh                        ext4 defaults,noatime 0 0


Show last three directories in the prompt

I am trying to set prompt of the shell to show atleast last 3 directories.  I am using the following to show present working directory,  set prompt = " %~>" (Home directory will be replace with ~ in the prompt)   Right now, the prompt shows up like this  /root/MyDir1/MyDir2/MyDir3/MyDir4/MyDir5> _   I want it to be shown like this or so  MyDir3/MyDir4/MyDir5> _   Is there a way to set the prompt to show atleast the last 3 directories?


What do I build in .Net to automatically generate a file every morning?

I normally work directly in .aspx web files, but we have a need to generate files automatically every morning for use by the website and other processes.   The process of generating the day's files needs to run whether or not website is accessed.  Process: at 6am every morning, get database dataset and generate files from it.   What is the best and most simplistic way to do this? Wcf service? asmx web service? something i haven't heard of?


Are the two groups $\mathbb R$ and $\mathbb C$ isomorphic?

The two groups $\mathbb R$ and $\mathbb C$ are isomorphic.  Solution: We know that $\mathbb {R(Q)}$ and $\mathbb {R^2(Q)}$ are isomorphic as vector spaces.  So,there is a vector space isomorphism between $\mathbb R$ and $\mathbb R^2$ over the field $\mathbb Q$,  Let it be $\phi$.  Then, for all $x,y\in \mathbb R$,we have $f(x+y)=f(x)+f(y)$ and $f$ is a bijection between $\mathbb R$ and $\mathbb R^2$.  We can replace $\mathbb R^2$ by $\mathbb C$ noting that there is a one-one correspondence $(x,y)\mapsto x+iy$ that preserves the operation.  So,$\mathbb {(R,+)}$ and $\mathbb {(C,+)}$ are isomorphic.  Is my solution correct?


Could it be possible that all of the unexplained phenomena (like uncertainty)  in our 4D world might be originated from a higher dimension universe? If so, then of course we'll never observe the actual phenomena since we only live in a lower dimension world. For people who live in higher dimension universe, all that is uncertain for us, is deterministic for them.


dynamic generated button JQuery dont work

I have problem with dynamic generated buton from typeahead twitter:  templates: { empty: [     "<button type='button' class='btn btn-danger btn-sm form-add' data-toggle='modal' data-target='#form-add' data-title='Add' data-text='abc' data-form-action='' data-parent-id=" + $(self).data("parent-id") + ">Add</button>" ].join("\n"), suggestion: function(data) {     return "<p>" + data.name + "</p>"; }}   and I would like send data-parent-id to my modal on click event on button Add and this not work.  $("button.form-add").on("click", function(e) { console.log("typeahead"); });   What is wrong ?  Regards


Do any open-source .Net libraries (commercially usable) exist for reading/writing LiDAR data?

I have a few LiDAR point data (.las files) with me. I would like to read the X,Y and Z from it using .Net. I found , which is in C++ and I am not sure if it can be used commercially after reading the licensing information. Has anyone found any good ones?


Cell row reference coming from another cell

I need to make Google Sheets evoke the row number for a cell reference by pointing to another cell. I have a form with different cells that point to another sheet (Sheet1!). All the cells always point to a cell of a similar row number; only the column changes.  For example: the Name field points to Sheet1!C2, Address points to Sheet1!D2, Phone Number points to Sheet1!E2.  I want to have a single cell where I can type the row number, so that if I were to type in 5 in such cell, it will automatically make the previous fields point to C5, D5, E5.  Is there a way of doing this?  I am trying to avoid having to go into each cell and manually change the 2 to a 5 or any other number.


Could somebody suggest a software more flexible than Beamer (Lyx) to do a good presentation ? An alternative for presentation ?  Best,


So I looked around for a while how to make a menu appear a bit like this-  or this-  I haven't found anything Any help would be great!


I3 load a set of programms in specific layout

I would like to load a set of programs (browser, terminals, image viewer) in a certain layout (meaning the same tiling). I tried using i3-msg split to start a programm and then apply a tiling to it. Problem is there is a delay between starting the programm and a window comming up, making it very inconsistent. So is there a way to start up a bunch of programms in the same tiling layout with a single command?


I lost my phone but need to find it's IMEI. What places can I look?

I had a Nexus S but lost it or it was stolen. I need to find it's IMEI. I don't have the box or documentation either.  I've checked exif data from photos taken with the phone.  What other potential sources are there for it's IMEI?


How to bind arguments to given values in Python functions?

I have a number of functions with a combination of positional and keyword arguments, and I would like to bind one of their arguments to a given value (which is known only after the function definition). Is there a general way of doing that?  My first attempt was:  def f(a,b,c): print a,b,c  def _bind(f, a): return lambda b,c: f(a,b,c)  bound_f = bind(f, 1)   However, for this I need to know the exact args passed to f, and cannot use a single function to bind all the functions I'm interested in (since they have different argument lists).


I've got a pretty simple object I'm trying to unwrap, hardly more than a sphere with some shapes cut out, yet the UV map I'm getting is, well, I'm frankly not even sure what to call that.    I've tried everything I could think of - applied scale, double, triple and quadruple checked both my normals and my seams, removed doubles and deleted loose elements - none of that has helped so far. Changing the method to conformal does nothing as well.  I've also got another similar element in the same scene and that one unwrapped exactly how I wanted it to.   Does anybody have any idea what's going on here? Any help would be greatly appreciated!


How do i show that the curve $y=\frac a{x^2}$ is a horizontal stretch of the curve $y=\frac 1{x^2}$ and how do i find the stretch factor? i have tried and added k constant in front of $x^2$, so $y=\frac a{kx^2}$ but not sure where to go from there.


Find the distribution of $X=\frac{\max\{U,V\}}{\min\{U,V\}}$

Suppose that $U,V$ are two independent uniform $(0,1)$ random variables. Find the distribution  of $X=\dfrac{\max\{U,V\}}{\min\{U,V\}}$.  Ok to find $\max(U,V)$ we have $P(\max(U,V)\leq r)=P(U\leq r)P(V \leq r)= r^2$ so $P(\max(U,V)=r)=2r$. I can do the same trick with $\min(u,v)$ but then I don't know how to deal with the fraction of the two?


I attempt to solve the equation    $(z+1)^5=z^5$.  My first approach is to expand the left hand side but ı get more complicated equation. So I couldn't go further. Secondly, I write equation as, since $z\neq0$,   $(\frac{z+1}{z})^5=1$, put $\xi=\frac{z+1}{z}$   and attempt to solve equivalent equation $\xi^5=1$. But this time it requires more computation to find solutions $z$. Can anyone suggest a simple way to solve this equation? Thanks in advance..


A question asks you to determine the relationship between true weight and apparent weight when an elevator that has descended from the 50th floor is coming to a halt at the first floor.  I believe that as the elevator is coming to a halt, the acceleration is decreasing (close to zero), and so this downward acceleration is negative. Therefore, w = mg - ma. Then w should be less than mg. However, the book tells me that w should be more than mg. I do not understand, in any way, how this is possible. Can someone please explain how true weight is less than apparent weight when the person in an elevator is experiencing overall downward acceleration?


How to do a neon light effect inside an object or be seen that way with blender 2.8?

I have this scene in Blender where I am trying to have neon lights emit through an object. See the lights inside the object seeping through?  But i'm not sure if that is possible since the object I am trying to do it on already has a texture and an emission nodes.  I'm wondering if there is another way to make it appear like the first image. My idea: I thought of making a emission mask just for those spots within the sign and fixing the orginal emission layer in photoshop. What do you think?


Is it true that quickly closing a webpage opened from a search engine result can hurt the site's ranking?

My web designer recently told me that I need to be careful not to Google for my business' website, click on its search result link, then quickly close the page (or click back) too many times.  He says "Google knows" that I didn't stay on the page, and could penalize my site for having a high bounce rate if it happens too much.  Apparently, it could look like the behavior of a visitor who was not interested in what they found (hence the supposed detrimental effect on the site's search ranking).  This sounds hard to believe to me because I would not have thought any information is transmitted which tells Google (or anyone, for that matter) whether or not a website is still open in a browser (in my case Firefox v25.0).  Could there possibly be any truth to this?  If not, why might he have come to this conclusion? Is there some click-tracking or similar technology employed by search engines which does something similar?  Looking forward to hearing everyone's thoughts.


Using this example  \documentclass[a4paper,12pt]{lettre} \usepackage{fontspec} \usepackage[frenchb]{babel} \usepackage{lipsum}  \begin{document} \begin{letter}{Service des réclamations} \nofax \opening{Madame, Monsieur,} \lipsum[3] \end{letter} \end{document}   Built with  latexmk -pdf -xelatex   I get a pdf with is not A4, but letter perhaps. However I mentionned a4paper on the \documentclass option.   What did I miss ?  EDIT  It seems I can get the correct pdf size with the following. So what should I include these two lines in addition to a4paper?  \pdfpagewidth=\paperwidth \pdfpageheight=\paperheight


Will the accept vote on the answer be removed upon user deletion?

It is known that user votes are removed when account is deleted. Is accept of the answer included in this?   To be more clear, OP has accepted an answer. Later when their account is deleted, will the tick also disappear along with the votes cast by them?


Why does filename expansion not work in this example?

I remove some files using trash-cli:  $ pwd /tmp/test $ sudo trash mfile  $   Then I look for where the deleted file is stored:  $ sudo ls /.Trash/0/ -la total 16 drwx------ 4 root root 4096 May 19 16:52 . drwx------ 3 root root 4096 May 19 16:52 .. drwx------ 2 root root 4096 May 19 16:52 files drwx------ 2 root root 4096 May 19 16:52 info  $ sudo ls /.Trash/0/* -la ls: cannot access '/.Trash/0/*': No such file or directory  $ sudo ls /.Trash/0/files/ -la total 12 drwx------ 2 root root 4096 May 19 16:52 . drwx------ 4 root root 4096 May 19 16:52 .. -rw-rw-r-- 1 t    t       6 May 19 16:48 mfile   Why does filename expansion not work in the second command?  Thanks.


How to change the focus with ListBox in c#

I'm a beginner with C# so maybe I don't really understand why I have this error.  System.InvalidOperationException: Cross-thread operation not valid: Control 'lstb_files_r' accessed from a thread other than the thread it was created on.  This is what I'm doing:  I drop X csv. I read the first one (lstb_files_r.SelectedIndex = i;) after finishing I would like to read the 2nd (i++). But I have this error...  Can someone explain to me how can I solve that please ?


Can I configure it to allow:   select right-click to copy right-click or ctrl-v to paste?


Proving that any finite cyclic group of order $n$ is isomorphic to $$

The proof goes on like this :   $Z$ denotes integers.  $a^m=e$ for some positive integer $m$. Let $n$ be the smallest positive integer such that $a^n=e$ if $s \epsilon Z$ and $s=nq+r$ for $0\le r < m$ then $$a^s=a^{nq+r}=a^r \ \ \ (*)$$.  Then after this statement, the book proves that all elements of the finite cyclic group is distinct and creates a homorphism between this group and  $<Z_{n},+_{n}>$  What I couldn't get in the proof is what does $(*)$ tell us? I couldn't understand it and why is it needed in the proof? Also why do we work with positive integers, why do we let $n$ be the smallest integer instead of minimizing $|n|?$


How can I get the axes of the polarization ellipse from the Jones vector of the light?

I am analyzing the polarization state of a monochromatic, coherent light source, for which I know the  of the polarization, $$ \mathbf E =\begin{pmatrix}E_x\\E_y\end{pmatrix} =\begin{pmatrix}|E_x|e^{i\varphi_x}\\|E_y|e^{i\varphi_y}\end{pmatrix}, $$ and I would like to expand it in terms of a major and a minor axis of ellipticity, i.e. in the form $$ \mathbf E= e^{i\varphi}\left( A \hat{\mathbf u} + i B\hat{\mathbf v} \right) = e^{i\varphi}\left( A \begin{pmatrix}\cos(\theta)\\ \sin(\theta)\end{pmatrix} + i B \begin{pmatrix}-\sin(\theta)\\ \cos(\theta)\end{pmatrix} \right), $$ or as shown graphically as follows:      Wikipedia provides a multi-step procedure going through the , but I'm thinking there is surely a cleaner and more direct way to get $A$, $B$, $\hat{\mathbf u}$, $\hat{\mathbf v}$, $\theta$, and the components $A \hat{\mathbf u}$ and $B\hat{\mathbf v}$, from $E_x$ and $E_y$, and it's not particularly obvious from the search results I can find. What's the cleanest way to do this?    To be clear: what I think is lacking from the existing resources, and what the question is directly asking for, is an explicit set of connections, as simple as possible, for the named parameters (all of $A$, $B$, $\hat{\mathbf u}$, $\hat{\mathbf v}$, $\theta$, and the components $A \hat{\mathbf u}$ and $B\hat{\mathbf v}$), in terms of the Cartesian components $E_x$ and $E_y$. Schemes that simply send to some other set of complex manipulations are already available from Wikipedia and are not what the question is asking for.


PHP - New numbered var for every object in array

I have the following scenario:  Array with multiple waypoints Want a new variable for every waypoint Number of waypoints is not fixed  The array stores the address data for the waypoint like street, number, zip, town etc. I can loop and print the output of the array in foreach loop like: foreach ($waypoints as $waypoint) {   echo $waypoint->street   echo $waypoint->nb   echo $waypoint->zip   echo $waypoint->town }  What I'm trying to do is, to get a new variable for each waypoint. E.g: $wp1 = Data from waypoint 1 $wp2 = Data from waypoint 2  What I have tried: $waypointCount = count($waypoints);      for ($i = 1; $i < $waypointCount; $i++) {   $wp[$i] = $waypoints->street.' '.$waypoints->nb.' '.$waypoints->zip.' '.$waypoints->town.' '.$waypoints->state; }  My idea was to count the number of waypoints, set a new variable for each waypoint number and store the corresponding waypointdata in the new variable. I'm kinda stuck on how to create the $wp[i] variables and assign the data to it. Does it need to be a combination with a for and a foreach loop? Looking for some help to get me on the right direction. Thanks!


Determining who is a moderator in data explorer

As far as I can tell, there's no indication in the data dumps accessible in Data Explorer as to whether a particular user is a diamond moderator or not. This would certainly be a useful thing to know (for example, ) My tripartate question is thus   Am I wrong and there is some way to determine diamond moderator status in a query? If there isn't, can we get that added? I have a feeling the answer to #2 may be no, and it may have been decided to leave the information out deliberately. if that's the case, is there a publicly-accessible explanation of the reasoning behind this?


How can I create a class to store a number limited in size only by the total amount of memory available on the system?

My friend was asked the question below in an interview and asked for my help post-interview. The question is bugging me as well, because I have no idea. Can someone please elaborate?  Create a class to store a number limited in size only by the total amount of memory available on the system


In a constructor, find which class created the object?

Here's what I'm trying to do:   In my code, I have sets of classes that create objects of other classes. What I am trying to do is, in the constructor of the class that's constructor gets called, find the class which called the constructor in the first place.   For example:   Main.java:  public class Main {      public static void main(String[] args) {         Test t = new Test();     }  }   Test.java:  public class Test {     public Test(){     //somehow find the class where I came from :(     } }


I was working on a something and I thought, wouldn't sunbeams look great with this. So I searched in google and everywhere but didn't find any answer. So my question is how to make sunbeams in blender?


Desktop loads, but no dash. Ubuntu 15.04

This all originated when I installed Nvidia drivers from terminal using the xorg edgers PPA.  I have since uninstalled them, but that did not help much.  I can't even open terminal unless it is with ctrl+alt+f7.  I have tried forcing compizconfig to load from a similar question I found, but even after turning the unity plugin on nothing loaded.  Any ideas?


If a helicopter flies linearly in the upward direction from a point A on the earth stays in the air at the same position for a long time and then linearly comes down , will it land at the same point A or at a different point since the earth is rotating ?


How is a substance classified as a vitamin?

From      A vitamin is an organic compound and an essential nutrient that an organism requires in limited amounts.   There are many essential nutrients to an organism. Glucose for example. However, not all of them are classified as vitamins. Is there a clear, non-arbitrary definition of vitamin? If not, who decide what ought to be called a vitamin?


Boy who can stop time by spreading his fingers

I'm looking for help identifying an urban fantasy type book (or series!) which I read in 1994.  The book takes place in modern day. The main things I remember from the story:   a young boy learns that his family has a long history of being guardians or something he finds or receives one or more iron rings which he keeps on his belt. I don't remember the significance.  there is a scene which occurs inside a barrow or underground cavern the boy is able to stop time by splaying or spreading te fingers on his hand   The novel was probably considered children's or YA.


Do multipliers stack additively or multiplicatively?

For example: haste doubles your speed, boots of speed double your speed, and the Dash action doubles your speed.     Intuitively, it should be 2*2*2 = 8 times movement speed.  However, the Dash action says "after modifiers" which implies something more like (1 [base] + 1 [haste] +1 [boots of speed]) * 2 [Dash] = 6 times movement speed. Unless it means modifiers to your base movement speed, which would be (1 [base] + 1 [haste] + 1 [boots of speed] + 1 [Dash]) = 4 times movement speed.  I know somewhere in the rules it says that for multiple applications of the same spell, only the strongest one applies, and that different spells with the same effect add together.     One of the sources here is an action, and another is a magic item.  (Do magic items get treated like spells?)    The above is an example.  The base question is    Do I add or multiply identical effects that multiply values?    I don't care what that value is (ex. speed, damage, money), or what it is from (spell, item, class feature, action, race ability); I'm looking for general rules for how to resolve stacking similar effects that don't give flat bonuses.


Windows 10 Update Failure from Windows 8.1 Pro

In my C dive i have 15.3 GB free available space. Get Windows Icon shows that my laptop is fully compatible for windows 10 update.   but it has been the third time it failed to update my pc from windows 8.1 to windows 10 :( and i am highly disappointed :(   Here is the error message:  What that error code means and what would be a fix for this problem?


Security of very simple XOR with random?

I am currently trying to implement a very fast and simple encryption algorithm in Lua for the purpose of using it with ComputerCraft.  The main problem is that bitwise operations in Lua (5.2 at least) are very slow and the implementation ComputerCraft can only handle 32 bit integers in their bit-library, so implementing standard algorithms isn't easy.   On the other hand this is only a game and encryption is merely used to keep others from simply controlling your devices or reading your messages. There is no critical data associated with this, so the encryption can be very weak.  I currently implemented a combination of XOR and random in the following form (pseudo-code):  random.seed( hash(key) ) -- 32 bit seed for i = 1 to str.length do   result[i] = str[i] XOR random.nextByte() end   The good thing about this is that it only uses a single bit-operation and is guaranteed to never exceed 32 bit. Also this is very fast.  Aside from external problems like random entropy, what is an approximate time someone would need to decrypt this using a standard desktop PC? (sophisticated guess is ok, I just want to get an idea)  And if this is just too weak, is there any other algorithm that is more secure, but fast and can be implemented with a minimum amount of bit operations fitting in 32-bit?


Why do you not put a pronoun in front of chapter

I saw this phrase "In chapter 1 section 1". But I thought, "why do we not put a pronoun in front of chapter 1?" because, in the sentence, it's a specific chapter 1. Can anyone explain why? Thank you.


Does anyone have information /can point out reliable source on Iceland Covid restrictions for tourist travelling to Iceland in July 2020 ?


Why are certain aneuploidies more common?

Certain  such as trisomy-21 (Downs syndrome), trisomy-18 (Edward syndrome), Turner syndrome (XO) etc are more common than others.  I had a vague thought that it is related to chromosome size: the chromosomes which are towards the extremes of size will be affected in an improper segregation event.   Chromosomes 13, 18, 21 and Y are among the smaller chromosomes in humans, and are commonly associated with aneuploidy (but 22 which is also small is not affected). The larger ones are unaffected (X is an anomaly).   I thought that longer ones should be more affected because more  bridges have to be broken, but it seems that is not the case.   Is there any association of chromosome size and frequency of aneuploidy?    EDIT   If the difference is because of differential lethalities then does the length correlation still hold true? Smaller the chromosomes, lesser the genes and hence lesser would be the effect of extra copy on the cellular biochemical networks.


Cannot set LED monitor to native resolution

I cannot get windows 7 pro to set my monitor to its native resolution of 2650x1440.  I have Windows 7 pro, an NVIDIA GT730 and two monitors(AOC e2752She, BenQ GW2765) attached to the NVidia card using the DVI ports using this cable: (). I originally only had the AOC with a native resolution of 1920x1080. Then I got the BenQ, but on setting it up Windows would only allow 1920x1080 for it. So I went into the Nvidia control panel and created a custom resolution 2560x1440 and set it to that. Superficially it looks like it did it as the background got small for it and the conrol panel/display/screen resolution setting SAYS 2650x1440, but the image is "soft", not crisp and when I look at the information panel on the display itself, the monitor says it is being driven at 1920x1080 and its recommended setting is 2650x1440, so I'm thinking that windows must be doing some emulation of 2560x1440 and not actually pushing it natively at 2560x1440. Even if I set the monitor to 1920x1080 the image is really "soft".  I want to use this monitor (gw2765) for graphic design and video editing, so I really need it to show it's true resolution. I have searched for quite a long time and have not found anything that seems to address this issue.  Any suggestions?    UPDATE -- I just tried disconnecting my lower resolution display and running with only the higher resolution display, logged off and back in. Still don't have the higher resolution options.  NEW Update -- since the monitor is connected via mini HDMI to HDMI cable the card has to support at least HDMI 1.3 and is not using a dvi adapter for this cable. So I am still stumped and stuck.  Any help is welcome.


Finding the number of arrangements of $n$ binary elements ($a$, $b$) with a maximum of $k$ repeating consecutive elements of one type

Here's an example  For $n = 4$ and $k = 1$, there are 8 possible arrangements:  $a\ a\ a\ a$  $a\ a\ a\ b$  $a\ a\ b\ a$  $a\ b\ a\ a$  $b\ a\ a\ a$  $b\ a\ b\ a$  $b\ a\ a\ b$  $b\ a\ b\ a$  with $b$ being the element that can't have more than $k$ consecutive appearances.  I'm not really well-versed in combinatorics, so $2^n$ being the total number of arrangements is the only piece of info I came up with.   Anyway, this is actually a programming challenge from one of those competitive programming sites, but I wanna get a grasp of the math behind the idea before thinking about implementation methods, so I figured I'd ask things here. Also, the input range for both $n$ and $k$ is $[1, 10^6]$ so a dynamic programming approach is the way to go.


Presently, how much information can a quantum computer store, in how many qubits? What restrictions are there and how does it vary across realizations (efficiency of data storage, ease of reading and writing, etc)?


Bounty amount on reputation tab hardly readable

Today, a bounty was awarded to  (thanks @gnat); when I visited my  I noticed that the amount is hardly readable since it's green text on a blue background:    Can that be changed (back?*) to white text please?  *: I'm sure somebody would've noticed it unless it was a very recent change...  (Tested on macOS Mojave, latest versions of Firefox, Chrome and Safari.)


How do I install the KDE desktop environment on Ubuntu?

I am a new user of Linux. I just installed Ubuntu and now I want to try the KDE desktop environment. Can you guide me how to set up KDE in Ubuntu?


Earlier in the game, I received a few units from allied CS Valetta. The odd part is that these units were H'wachas, a Korea only unit. There was no Korea in this game to gift it to them either. How does this work, and how did it happen?


I keep reading everywhere that a time series is non-stationary (e.g.  or ) if there's a unit-root. But isn't a larger-than-one root also means the series is non-stationary? Why don't people say that roots larger than unit imply non-stationarity instead?   is a much more general question and indeed the top answer has one sentence in the long essay addresses this question. For those who's only interested in the answer to my question and did not want to read the whole thing (which is epic by the way): "Economists are perhaps the greatest analysts of time series and employers of the AR process technology. Their series of data typically do not accelerate out of sight. They are concerned, therefore, only whether there is a characteristic direction whose value may be as large as 1 in size: a "unit root."


Why does flexbox center element properly while positioning properties does not?

I am trying to center a div element. It seems in my code that all is right but the element is not being centered properly Where did I wrong? If i try to center it by using flexbox then it is centered properly. Where is the wrong of positioning property?   * {   margin: 0;   padding: 0;   box-sizing: border-box; }  .container {   width: 200px;   height: 39px;   border: 1px solid red;   position: relative; }  .cntr {   position: absolute;   left: 50%;   top: 50%;   transform: translate(-50%, -50%);   background-color: blue;   width: 35px;   height: 35px; }


Could have what happened to Cull Obsidian happened to Thanos?

In Infinity War Cull Obsidian loses his arm when a worm hole closes up,                                So could Thanos have lost his arm like this too WHEN he had all the stones on the Gauntlet?


Would a female Jedi be referred to as Jedi Mistress instead of Jedi Master? Likewise would a Sith female be referred to as a Sith Lady instead of a Sith Lord?


Word for a person who find errors with anything?

Is there a word for a person who find errors with anything and everything and/or is difficult to please?   Example: I do everything David tells me to do, and he is still not pleased.   Or: Matthew complains about everything. No matter what I do and no matter what I speak to him about, he complains that it is wrong or not good enough.