Can I adjust the symbol "|" in every set?     If we type the below code, the symbol "|" is too small. I know that I can use \big to adjust by manual. Is there a method for automatically adjust?  $\left\{ \sum\limits_{v\in e} f(v) |\ e\in E \right\}$

I'm pretty new to Latex, so please bare with me.  I'm trying to add this notation to my document:      I created the above picture from the , but it seems that when I try to apply the same code in my editor (TeXstudio), things are different...    For example, the above picture was produced using the code:    D=\left\{ x\in\mathbb{N}|1\leq x\leq 100 \right\}    But when I write it in my editor (enclosed in the $ sign of course), I get the following error when compiling:      Undefined control sequence. $D=\left{x\in \mathbb   The funny thing is that I was still able to see the output in the preview window (even though the editor shows that this line has error in it). That's the first problem.  The second problem is, although I can see the output in the preview window, it won't be the same as the output I get from the Online Latex Equation Editor. While the Online Latex Equation Editor produces this:      My TeXstudio editor produces this:     Notice the distinction in the N symbol that denotes the set of natural numbers. It is different the what I intended, which is the first version, as it produced by the Online Latex Equation Editor.   What's wrong here? Am I missing a package or something?


POST:- is used to create and update resources PUT:- is used to update existing resources  Can I use POST instead of PUT method? and If I use POST method over PUT method, what will be disadvantages?  If POST can do work of PUT method, why PUT method is required?

According to , POST is used to create a resource:  The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.  According to , PUT is used to create or replace a resource:  The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server. If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new resource by the requesting user agent, the origin server can create the resource with that URI.  So which HTTP method should be used to create a resource? Or should both be supported?


I just upgraded to Ubuntu 19.04. I used to have 9 workspaces. In 19.04, on first boot, I only had two workspaces, but once I dragged a window from the first to the second workspace (initially empty) in Activities, a third workspace appeared, and once I dragged a window into the new third workspace a fourth workspace appeared, etc. So in this manner I was able to recover 9 workspaces.  However, after rebooting, now there are only two workspaces, and even if I place a window onto the second workspace, no third workspace appears.  How do I get more than two workspaces in 19.04?

Any idea how to have more than 2 workspaces on Ubuntu 18.04.1?


If $x, y, z$ are the angles of $\Delta ABC$, then evaluate     $$ \Delta=\begin{vmatrix} \sin^2x&\cot x&1\\ \sin^2y&\cot y&1\\ \sin^2z&\cot z&1 \end{vmatrix}=\quad\color{red}{?} $$   My Attempt  $$ \Delta=\frac{1}{\sin x\sin y\sin z}\begin{vmatrix} \sin^3x&\cos x&\sin x\\ \sin^3y&\cos y&\sin y\\ \sin^3z&\cos z&\sin z \end{vmatrix}= $$ How do I proceed further and prove that the determinant is zero ?

I'll state the question from my book below:     If $A$, $B$ and $C$ are the angles of a triangle, then find the determinant value of   $$\Delta = \begin{vmatrix}\sin^2A & \cot A & 1 \\ \sin^2B & \cot B & 1 \\ \sin^2C & \cot C & 1\end{vmatrix}.$$   Here's how I tried solving the problem:  $\Delta = \begin{vmatrix}\sin^2A & \cot A & 1 \\ \sin^2B & \cot B & 1 \\ \sin^2C & \cot C & 1\end{vmatrix}$  $R_2 \to R_2 - R_1$  $R_3 \to R_3 -R_1$  $= \begin{vmatrix}\sin^2A & \cot A & 1 \\ \sin^2B-\sin^2A & \cot B-\cot A & 0 \\ \sin^2C-\sin^2A & \cot C-\cot A & 0\end{vmatrix}$  Expanding the determinant along $C_3$  \begin{align} &= (\sin^2B-\sin^2A)(\cot C-\cot A)-(\cot B-\cot A)(\sin^2C-\sin^2A)  \\ &= \sin(B+A) \sin(B-A) \left[\frac {\cos C}{\sin C} - \frac {\cos A}{\sin A}\right] - \left[\frac {\cos B}{\sin B} - \frac {\cos A}{\sin A}\right]\sin(C+A) \sin(C-A)  \\ &= \frac {\sin(B+A) \sin(B-A) \sin(A-C)} {\cos A \cos C} - \frac {\sin(A-B) \sin(C+A) \sin(C-A)} {\cos A \cos C}  \\ &= \frac {\sin(B-A) \sin (A-C)} {\cos A} \left[\frac {\sin(A+B)} {\cos C} - \frac {\sin(A+C)} {\cos B}\right]  \\ &= \frac {\sin(B-A) \sin (A-C)} {\cos A} \left[\frac {\sin C} {\cos C} - \frac {\sin B} {\cos B}\right]  \\ &= \frac {\sin(B-A) \sin (A-C) \sin (C-B)} {\cos A \cos B \cos C} \end{align}  I tried solving further but the expression just got complicated. I don't even know if the work I've done above is helpful. My textbook gives the answer as $0$. I don't have any clue about getting the answer. Any help would be appreciated.


Imagine you are biking, and you come across a ledge. I want to figure out what minimum velocity do you need to bike at to overcome a ledge, of some height $H$.   Roughly, it looks something like this:   The wheel is essentially a thin ring, with mass $M$, radius $R > H$, velocity (moving rightward) $v$, and angular velocity $\omega$. We know that the wheel is purely rolling so $v=\omega r$, as long as it is on the rough surface.   I know that energy at the bottom has to be more than the gravitational potential energy of the wheel at the top (the limiting case is when the wheel has no velocity when it mounts the edge). Therefore, $$\frac{1}{2}I\omega ^2 + \frac{1}{2} Mv^2 = MgH$$ where $I$ is the moment of inertia.   I do not think this all you need to know, though. As in you could be going really fast, but a bike won't be able to climb the Empire State Building. Can we conserve angular momentum about the point of contact between the ledge and the wheel? Does the normal force do any work on the wheel?  How do you go about finding the minimum velocity required to climb the ledge?

A sphere of radius R is rolling without slipping with a velocity v and collides inelastically with a step of height h < R. What is the minimum velocity for which the sphere will be over the step?    Relevant equations  Total kinetic energy (maybe): $\frac{1}{2}I\omega^{2}+\frac{1}{2}mv^2$  Gravitational potential energy: $mgh$   Moment of inertia about a point a distance d from the CM from de center of mass: $I=I_{cm}+md^{2}$ Rolling without slliping  $v=\omega R$  A discussion of the problem This problem is confusing to me: I know the collision is inelastic so there is no conservation of kinetic energy, there is torque when the sphere pivots the step so the angular momentum is not conserved either, the linear momentum doesn't give a lot information and even though I tried to see what condition needs the torque about the pivot point (to give a net torque in the direction of rotation and thus passing the step), I'm not able to see which torque can overcome the one from gravity which doesn't let the sphere slide up:    The sphere has an angular velocity, but I'm missing something conceptual because I can't figure out how to formally state that the angular momentum changed the right amount so that the sphere made it past the step.  The attempt at a solution  My (almost certainly wrong) attempt was to say that the sphere lost kinetic energy because of the change on potential energy:  $\frac{1}{2}I\omega^{2}+\frac{1}{2}mv^2 +mgR = mg(R+h)\\ v=\sqrt{\frac{10}{7}gh} $  I hope you can help me :)


I'm trying to install Ubuntu 18.04 LTS in my Intel 'Bean Canyon'  w/ 8GB RAM and a 240 GB WD green SSD M.2 2280. I get this error in the installation first step:     Couldn't get size 0x800000000000e   When the error occurs the screen is disconnected (HDMI).   How may I troubleshoot this problem?  I've downloaded the ISO from the official site and check it.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Here is a sample code I'm using in .htaccess to block spam referers:  RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://.*buttons-for-your-website\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*free-social-buttons\.com/ [NC] RewriteRule ^(.*)$ – [F,L]   Also, I have the following code in nginx configuration because I have nginx stands as a reverse proxy in front of apache:  if ($http_referer ~ "buttons-for-your-website\.com|free-social-buttons\.com")   {    return 403; }   I'm still getting hits from buttons-for-your-website.com, by some way this bot can bypass all previous rules and I have no clue how. I've verified both htaccess rules and nginx configuration on a domain of mine and they blocked access to my website from that domain. So, how these bots are still able to visit my website? Appreicate your answers.

Last months I have lots of referrer spammers in my GA statistics. Their count is ~10x higher than count of legit visitors (my site is not very popular yet). I've turned on an option to hide known spammers in GA settings, but it didn't help at all. It seems these spammers are using scripts to spam directly to GA (i.e. they are not logged in my IIS).  Is there anything I can do to stop these spammers?    UPD 10 months later, and they started spamming using fake target page names... and Google is still doing nothing about it.


public static boolean checkPallindrone(Node<Integer> head,Node<Integer> last){      //# check if the given linked list is a palindrome      boolean check = true;     if(head==null || head.next==null){         return true;     }      if(head.data != last.data){         return false;     }      Node<Integer>temp = head;     while(temp.next.next !=null){         temp= temp.next;     }     last = temp;     last.next=null;     check = checkPallindrone(head.next, last);      if(check == false){         return false;     }      else return true; }   This is a code snippet to find palindrome. In this code the object head and last are send to the function. In java all the objects are references as I had read somewhere. So here head and last are reference which would point or refer to a linked list in the heap of applications memory structure.  So why when I print the linked list in the main function, do I not get an empty linked list, Since last would make all the elements NULL one by one in the process of checking if its a palindrome?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I want to learn more about udev rules, so I implemented a simple one, but I doesn't work:  /etc/udev/rules.d:  KERNEL=="sdb1" ACTION=="add"  RUN+="~/test/exe.sh"   ~/test/exe.sh:  #!/bin/bash echo "USB plugged in" > ~/test/showup.txt   the .sh file is executable, and I checked the flash drive's name via lsblk. It is called sdb and has a sdb1 partition.  I already looked up different tutorials, but can't find my mistake. I use Arch Linux in case that matters.

I created a udev rule in order to sync my USB drive with my documents folder, but it doesn't seem to be working.  95-usb-auto-sync.rules:  ACTION=="add", ATTRS{idVendor}=="0930", ATTRS{idProduct}=="1408", RUN+="/home/riccardo/Documents/Scripts/sync-riccardo-usb.sh"   /home/riccardo/Documents/Scripts/sync-riccardo-usb.sh:  #!/bin/bash  rsync -a --delete '/home/riccardo/Documents/Development/' '/run/media/riccardo/Riccardo/Documents/Development' --exclude='*/node_modules' >> /home/riccardo/Documents/Scripts/log.txt rsync -a --delete '/home/riccardo/Documents/KiCAD/' '/run/media/riccardo/Riccardo/Documents/KiCAD' >> /home/riccardo/Documents/Scripts/log.txt rsync -a --delete '/home/riccardo/Documents/Personal Files/' '/run/media/riccardo/Riccardo/Documents/Personal Files' >> /home/riccardo/Documents/Scripts/log.txt rsync -a --delete '/home/riccardo/Documents/Scripts/' '/run/media/riccardo/Riccardo/Documents/Scripts' >> /home/riccardo/Documents/Scripts/log.txt   I added the '>> /home/riccardo/Documents/Scripts/log.txt' part to check if the script was actually executed. The log.txt file remained blank though.  Toshiba USB Drive Udev info:    looking at device '/devices/pci0000:00/0000:00:14.0/usb4/4-2':     KERNEL=="4-2"     SUBSYSTEM=="usb"     DRIVER=="usb"     ATTR{authorized}=="1"     ATTR{avoid_reset_quirk}=="0"     ATTR{bConfigurationValue}=="1"     ATTR{bDeviceClass}=="00"     ATTR{bDeviceProtocol}=="00"     ATTR{bDeviceSubClass}=="00"     ATTR{bMaxPacketSize0}=="9"     ATTR{bMaxPower}=="296mA"     ATTR{bNumConfigurations}=="1"     ATTR{bNumInterfaces}==" 1"     ATTR{bcdDevice}=="0001"     ATTR{bmAttributes}=="80"     ATTR{busnum}=="4"     ATTR{configuration}==""     ATTR{devnum}=="2"     ATTR{devpath}=="2"     ATTR{idProduct}=="1408"     ATTR{idVendor}=="0930"     ATTR{ltm_capable}=="no"     ATTR{manufacturer}=="TOSHIBA"     ATTR{maxchild}=="0"     ATTR{product}=="USB FLASH DRIVE"     ATTR{quirks}=="0x0"     ATTR{removable}=="removable"     ATTR{serial}=="C03FD5FBA9CDC1401D7FB227"     ATTR{speed}=="5000"     ATTR{urbnum}=="11182"     ATTR{version}==" 3.00"   Thank you,  Riccardo


In the '90s, I read a book that about a world where things improve when being used. In the book, people on Earth have some kind of device that remotely scans the universe, looking for worlds/civilizations. They find one and send a one-man mission there through some kind of teleporter. The man gets stranded in the world. When exploring the world, he finds a human, medieval-looking civilization. The people seemingly have some remarkable technology. On the other hand, he finds the people lack any technological skills or knowledge. Over the time he realizes that they did not build the technology. On this world, things improve when being used. So the people start with stone age-grade tools, and by intensively using them, the tools improve. Conversely, when the tools are abandoned, they degrade over time. For example the people start with an axe from stick and piece of stone. Or they make window glass by taking a piece of quartz and staring at it long enough for it to become a transparent glass sheet. Some common people make stuff this way for living for rich people/aristocracy. I believe at the end of the book, the explorer realizes that this mechanism of the world is somehow related to the kind of birds that live there. Also he realizes that he is not only on a distant planet, but also in the future. The planet was inhabited by explorers/refugees from Earth who wanted to live a different and isolated way (possibly without technology, but I've forgotten the details). They struggled to survive, so the rest of the humanity helped them by sending genetically engineered birds that changed the world mechanics as described. Can anyone identify the book from this description? Thanks.

This book is about an explorer (with robot companion) who walks through a "gateway" into the future/parallel world. In this world, things that are created do not fall into disrepair, instead things get better.  The main character is kidnapped early on in the story and forced to labor by beating the outside of a castle with a spear. It is explained to him that this makes the wall better and able to resist attacks by these weapons. In his cell, he meets a man wearing an extravagant shirt and asks about it and the man explains to him that the shirt has been in his family for several generations, which is why it looks so nice.   To escape from the jail cell, the man tears one of his zippers from his jump suit and uses it like a saw to cut a hole in the wall. He escapes with the man in the fancy shirt and a woman.   The woman, is something special in this world. (She can focus on the change that is happening to an item and somehow enhance or speed up the process)  The man makes a wheeled cart for them to escape in. While the wheels are at first rough and wobbly, they soon "become better" and spin better.


Can asking a question that has an answer in another question result in being duplicate? For example, imagine someone wants to ask if the recipe in  is really original or not. He tries to ask, but none of suggested questions tend to ask this exact question. But there's an  that is speaking about the same matter he wants to ask.

In other words, should we now look at the content of the answers when we are evaluating questions for possible duplication?  Is it sufficient to say "Your answer can be found in this question over here, therefore your question is a duplicate?"  The new guidance is here:    Among other things, it describes the new close banner:     This question already has an answer here:   Link to the Duplicate Question   ... which seems to suggest that, if some other question in the system answers the OP's question, then the OP's question can be closed as a duplicate on that basis (even if the question itself is not necessarily duplicated).  Example Here:    Note the comments below the question, where I dispute the assertion made there that it is a duplicate question.  The original question doesn't mention unit testing.


In Star Trek: The Next Generation, season 1 episode 25, 'Conspiracy', there were aliens      who are an insect-like parasite that controls the body of whomever it enters.    What species was this alien?       Also, was the alien related to the creatures from Ceti Alpha, used by Kahn to control Chexkov and Captain Terell?

In the Star Trek The Next Generation episode  Picard and crew are drawn into an alien conspiracy to take over the Federation. This ends with Picard and Riker destroying an alien "mother" beast, but not before it manages to send a signal to an uncharted sector of space. The feeling at the end of the episode is that this will be a threat that the intrepid crew of the Enterprise would be facing again at some point, but this never happens.   Why was the implied threat at the end of this episode never brought up again on the show?


(Cauchy's theorem in the abelian case): If $G$ is a finite abelian group such that $p \ | \  |G|$, where $p$ is a prime, then $\exists g \in G$ such that $o(g) = p$.    Basically the part of the proof that I'm stuck on is the following. After choosing an $h \in G$ for which $h \neq 1_G$ and assuming $o(h) = l$, we form the subgroup $ H = \langle h \rangle$. We can then form the quotient group $G / H$ which has order $$|G/H| = \frac{|G|}{|H|} = \frac{|G|}{l}$$ by Lagrange's theorem. The next part of the proof says that $p$ divides $\frac{|G|}{l}$ because $p$ divided $|G|$, and I can't immediately see why this is the case.  What I think is that this part of the proof must be using some argument from elementary number theory, and I think that the theorem that's being referenced must be (similar to) the following conjecture of mine:     Conjecure: If $p$ is prime and $p \ | \ x$ and $\frac{x}{l} = m$ where $m, l \in \mathbb{Z}$ then $p \ | \ m$.   In trying to prove the above this is as far as I got.  Attempted Proof: Since $p | x$ there exists an $n \in \mathbb{Z}$ such that $pn =x$, Then $$\frac{x}{l } = m \implies \frac{pn}{l} = m \implies pn = ml$$ and since $p$ divides the left hand side of the above equation it follows that the right hand side of the equation must also be divisible by $p$. So $p|ml$ and since $p$ is prime $p|l$ or $p|m$. If $p|m$ we are done, if $p|l$ then...    And that's as far as I got. Is the above conjecture actually a theorem? If so is it the one being used in Cauchy's theorem and if so how could I finish proving the above conjecture?

I am reading the proposition on page 102 of Dummit and Foote's Algebra, 3rd edition. Could someone explain why $p$ divides $|G/N|$ on the highlighted line?     Proposition 21.   If $G$ is a finite abelian group and $p$ is a prime dividing $|G|$, then $G$ contains an element of order $p$.      Proof:   The proof proceeds by induction on $|G|$, namely, we assume the result is valid for every group whose order is strictly smaller than the order of $G$ and then prove the result valid for $G$ (this is sometimes referred to as complete induction).   Since $|G| > 1$, there is an element $x \in G$ with $x \neq 1$.   If $|G| = p$ then $x$ has order $p$ by Lagrange’s Theorem and we are done.   We may therefore assume $|G| > p$.      Suppose $p$ divides $|x|$ and write $|x| = pn$.   By Proposition 2.5(3), $|x^n| = p$, and again we have an element of order $p$.   We may therefore assume $p$ does not divides $|x|$.      Let $N = \langle x \rangle$.   Since $G$ is abelian, $N \trianglelefteq G$.   By Lagrange’s Theorem, $|G/N| = |G|/|N|$ and since $N \neq 1$, $|G/N| < |G|$.   Since $p$ does not divide $|N|$, we must have $p \mid |G/N|$.   We can now apply the induction assumption to the smaller group $G/N$ to conclude it contains an element $\bar{y} = yN$, of order $p$.   Since $y \notin N$ ($\bar{y} \neq \bar{1}$) but $y^p \in N$ ($\bar{y}^p = \bar{1}$) we must have $\langle y^p \rangle \neq \langle y \rangle$, that is, $|y^p| < |y|$.   Proposition 2.5(2) implies $p \mid |y|$.   We are now in the situation described in the preceding paragraph, so that argument again produces an element of order $p$.   The induction is complete.      (Original image .)


The above alert pops up every time I open an app whose access to cellular data I've turned off. This adds an unnecessary step every time I launch one of these apps. My feeling is, "Who cares if cellular data is disabled for Photos? I just want to see my damn photos." This happens with 3rd party and native apps alike. I first noticed the issue in iOS 7 and am seeing it again in iOS 8. Is there a way to turn off these alerts?

On iOS 7, there is a feature under Cellular in Settings called: Use Cellular Data For:. This lists all of the apps I have on my iPhone 4 with individual On/Off Switches to disable or enable cellular data. So, I disable it on several of my apps, one of which being Music. When I open my Music app, it tells me…     Cellular Data is Turned Off for "Music"   You can turn on cellular data for this app in Settings.   This alert does not occur once, but every time I clear the Music app from my multitasking and re-open it. Is there a way to dismiss this alert once and forever?  The alert looks something like this, but for Music:


I have requirement to read a pretty much static JSON file on every request. I'm using ASP.NET web API 2 targetting .NET 4.5. I had inteded to use the System.Runtime.Caching.Memory cache for the same. I'm using this Caching in the Delegating message Handler. To my surprise the cache is not working at all. Every time the request is coming, the cache key does not seem to exist and it just keeps loding the file. To test the same I was using IIS Express 8.0 and used break point n VS 2012.  My code is as below  public class AuthenticationHandler:DelegatingHandler {      ObjectCache currentCache = MemoryCache.Default;      protected override System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)     {         if (!request.Headers.Contains("source"))             request.Headers.Add("source", "1");         var exclusionList = GetFromCache();         if (exclusionList.Exists(item => request.RequestUri.OriginalString.ToLower().Contains(item.ToLower())))         {             return base.SendAsync(request, cancellationToken);         }         else if (request.Headers.Contains("id"))         {             return base.SendAsync(request, cancellationToken);         }         else         {             TaskCompletionSource<HttpResponseMessage> responseMessageTask = new TaskCompletionSource<HttpResponseMessage>();              HttpResponseMessage response = request.CreateErrorResponse(System.Net.HttpStatusCode.BadRequest, "Session id not present in the header");             responseMessageTask.SetResult(response);             return responseMessageTask.Task;         }      }     private List<string> GetFromCache()     {         //ObjectCache currentCache = MemoryCache.Default;         //var currentCache = HttpContext.Current.Cache;         CacheItemPolicy expirationPolicy = new CacheItemPolicy();         var exclusionList = currentCache.Get("__ExclusionList") as List<string>;         if (exclusionList == null)         {              string filePath = HostingEnvironment.MapPath("~/config/Exclusion.config");             string jsonConfig = File.ReadAllText(filePath);             exclusionList = JsonConvert.DeserializeObject<List<string>>(jsonConfig);             CacheItem item = new CacheItem("__ExclusionList");             item.Value = exclusionList;              expirationPolicy.ChangeMonitors.Add(new HostFileChangeMonitor(new List<string>() { filePath }));           }         return exclusionList;     } }   In the GetFromCache function, when  I put the break point in if segment, I see that the content is always loaded from the file and not from cache at any instance. Can you please tell me if I'm missing something?

I have read lots of information about page caching and partial page caching in a MVC application. However, I would like to know how you would cache data.  In my scenario I will be using LINQ to Entities (entity framework). On the first call to GetNames (or whatever the method is) I want to grab the data from the database. I want to save the results in cache and on the second call to use the cached version if it exists.  Can anyone show an example of how this would work, where this should be implemented (model?) and if it would work.  I have seen this done in traditional ASP.NET apps , typically for very static data.


I want to match all the emails that are after the text "Email: "  However, when using match, the matches return the whole string: Email: demo@example.com.  Isn't there a way to just return the text matched by the parenthesis within the regular expression? (.*?) I just want to get the email address: demo@example.com  This is what I got so far:  var regex = new RegExp('E-mail:\\s(.*?)
', 'mg'); var matches = document.body.innerHTML.match(regex);   And yeap, I know using exec on a loop can retrieve on an array just the email. But I would have to manually create the loop and get what I want:  var regex = new RegExp('E-mail:\\s(.*?)
', 'mg'); var allMatches = []; while( matches = regex.exec(document.body.innerHTML)){     allMatches.push(matches[1]); } console.log(allMatches);

I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.


After 20+ years of (part-time) lecturing, 3 masters (out of which 2 M.Sc.), at age of 54 years, is it feasible to start and finish a Ph.D. and be hired as a Professor?

I really love research. I started a research project in graduate school for my M.A. in English. My research topic is a very viable and interesting topic for a dissertation. I'll be 60 on my next birthday and I know that many Ph.D programs are traditionally geared toward younger students.I was wondering are there any programs that I can continue this research in without facing the issues of ageism in academia?


I am trying to identify the book or the writer that wrote a story that is an anthology of sci-fi short stories from the 1950s, 1960s or 1970s. The anthology was as a hardback. An army man is dropped via helicopter on an uninhabited island, for training I believe. Upon exploration, he is discovers all the sizable animals on the island have had something done to them so that they are in suspended animation, not dead but immobilized and not moving. They are arranged in an exhibition like state. He sees upon an alien (I always imagined it as a big Dalek like thing) that makes a straight line for him and he realizes it is responsible for what happened to the animals. The alien is completely impervious to all his attacks and keeps coming at him, I think with a needle out to collect him. The man panicks and runs off setting traps to crush, stop or block the alien (including a rockfall) but to no avail, he is increasingly panicking and is on the run for 2 to 3 days on the island without sleep trying to stay ahead of the lumbering but relentless alien. We get a cut-shot perspective of the alien which was a robot that an alien race used and released it to collect animal specimen samples of a specific weight range and they left without switching it off. The alien collector has been steadily gaining on the man little by little and finally on the 3rd day, it catches up with the man and just before it attacks, it stops, pauses then it turns and moves on away from him, leaving him alone. The man's helicopter ride comes in and picks him up and the crew is shocked at how bad he looks and they exclaim how it looks like he has dropped 10 pounds of weight in 3 days! He also realizes that the only way to get away from the alien is if you can fly away from the island. Anyone know which story this is?

This story had a researcher landing on an uncharted planet to see if it was any good for mining some type of mineral/metal.  Whilst there he encounters this type of ball that chases him all over the planet. He ends up finding this ball’s collection of other things it has caught including animals all the way back to the dinosaurs.  On the ball it has the writing '+/-7.  In the end it chases him for so long that he weighs too little for the balls 'collection'.  Any ideas greatly appreciated.


Using QGIS 2.16.3, I wish to create a buffer zone around a single point in my multiple point file with a fixed radius of 5 km. Therefore, I made a selection and created a new layer only containing this point. Next, I used Vecor -> Geoprocessing Tools to create a buffer zone with a fixed radius. Interestingly, the result is an oval buffer zone instead of a circular one, thus the radius is clearly not fixed, but flexible. What do I have to alter to make the bufer zone circular?   I have attached pictures of my input in the buffer zone tool, as well as a picture of my result.

I would like to select areas under a particular circular radius in QGIS. I believe this is accomplished with the buffer tool, but when I specify the radius the area is not circular.   How to make them circular?


I learning Blender. I have understood some basics in modeling and trying to understand how to work with materials.  Can anyone give me examples when is it better to use Shaders and when is it better to use Texturing?  I'm trying to distinguish the difference in these two approaches.

I have been seeing a lot of cool tutorials for procedural textures in Cycles lately, but I was wondering, are procedural textures actually more efficient rendering-wise than image textures? Do they help speed up the render, or would image textures be a better choice? What are the benefits to procedural textures?


I am working with ArcMap 10.3.  I have imported DEM files.  When I imported the files they had the extension of .DDF.  I would now like to be able to take a list of XY coordinates and, for lack of a better term, merge them with the DEM files so that I can get the elevation of any given point.  I imported XY Data and projected it with the NAD 1983 coordinate system.  But, I can't figure out how to "combine" the 2 layers to get the elevation of my XY points.  I can right click on the map and click "Identify..." and get the elevation, but that's about it.  Also, if there is a way to do this without the Spatial Analyst extension, that would be great.  I am supposed to have it on my license, but for whatever reason I don't and need to know if there is a way to do this without it.

I am trying to use the tool  on a File Geodatabase raster, but I am getting some weird errors.  I've used this tool multiple times before with no issue, but not since I upgraded to 10.1, so I'm wondering if there is an issue with it.  The errors I got back so far have been:   This error happened when I specified a shapefile as the output: The specified geodataset is invalid for the conversion. The syntax help for the tool you are using should indicate the supported types of input data. For example, for the particular conversion, a rasterlayer may be an invalid type of geodataset.  Next I have an error about it needed at least one band in the raster, the raster does has one band. This occurred when I specified a File Geodatabase as the output. Finally I had the good ole Error: 999999 for no apparent reason.   The raster is a DEM derived from LiDAR that was not created by a different company. It's too large to be made available for testing, but here are its specs:  Raster_Information  ColumnsandRows  5119,8241 NumberofBands   1 CellSizeXY      1, 1 UncompressedSize    160.93 MB Format      FGDBR Source_Type     Generic Pixel_Type  floating point Pixel_Depth     32 Bit Colormap    absent


i am trying to create a background that scrolls like the one in zelda - a link to the past. in other words: i have a bigger "screen" than the camera covers, so i need to scroll over it, when moving. if the player reaches an edge of the screen, the camera is going to stop and the character moves out of the center.   my actual problem is, that i have to draw the objects in an other way than the background. i am getting the camera to track the player, but if i want to add another object like an enemy, i have to draw it with screen coordinates, which are not the same as the background coordinates. (background image is 1280x720 with a source rectangle of 640x360). so the player is usually drawn at 640/2, 360/2. but the player also is at position 600,600 of the background image. so, if there is an enemy at 200,200 and the player moves to that point i want to draw the enemy on the screen. but, of course, i cant draw it at 200,200 in the screen that displays the sorucerectangle of the texture.  so i am looking for a way to kinda get the object into the texture, that there is only one coordinate system or at least a second coordinate system where all the object are in., which is as big as the texture itsself. with such a coordinate system i could get the absolute positions of the objects and draw it like the sourcerectanlge of a texture.

I am making a game similar to Legend of Zelda: Link to the Past (top-down 2D action-adventure). I want the character to stay centred on the screen when he moves.  Currently, whenever the player wants to move, I move all of the map in the opposite direction. This works, but as I add more objects to the world, moving them all gets more complicated.  Is there a better way of approaching this?


I haven't been able to launch Vmware Workstation since the 17.10 upgrade, I have seen no errors but the most promising fix has been the one I saw here:  - but when I get to   the compiling step of the proces with make on step 4, I get the following error:   Using standalone build system. In file included from geninclude.c:20:0: compat_autoconf.h:38:13: fatal error: generated/autoconf.h: No such file or directory  #   include <generated/autoconf.h>              ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. cc1: error: code model kernel does not support PIC mode <builtin>: recipe for target 'driver.o' failed make: *** [driver.o] Error 1 root@tower:/usr/lib/vmware/modules/source/vmnet-only# exit exit   I'm pretty sure that the error that's the root of my problems is code model kernal does not support PIC mode which having  makes it sound like I'm hosed until there's an update of vmware or I patch vmware's makefile to work with pic mode. I'm hoping that there's a simpleish fix or something else in the works that might solve my problems.

Hi after upgrading to Ubuntu 17.10, vmware is now not starting.    I get the message:    /usr/lib/vmware/bin/vmware-modconfig: Relink `/lib/x86_64-linux-gnu/libbsd.so.0' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'   I am aware that there are patches available and I am attempting to apply these and recompile. I have run from the solution at :    cd ~   #Copy the vmmon source tar ball to your temporary location cp /usr/lib/vmware/modules/source/vmmon.tar .    #Extract the tar ball tar xf vmmon.tar    #Download the modified file that mkubecek posted and overwrite the one from the tar ball for VMware Workstation 12.5: wget -O ./vmmon-only/linux/hostif.c https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c     #Wrap up the newly modified files into a tar ball replacing the original one sudo tar cf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only    #Rebuild the VMware kernel modules sudo vmware-modconfig --console --install-all   Failed to get gcc information.  gcc --version gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0 ...   Unforunately, vmware-modconfig is failing because of a dependency it seems on a particular gcc version. Am I on the right track? Any help with this issue would be much appreciated.  EDIT Thank you Steve, the below has gotten vmware going again. I've included minor correction. Tested and confirmed I could run a virtual machine.   sudo su    # do all below as root cd /usr/lib/vmware/modules/source tar xvf vmmon.tar  tar xvf vmnet.tar wget -O ./vmmon-only/linux/hostif.c https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c vim vmnet-only/bridge.c cd vmmon-only/ make cd ../vmnet-only/ make cd .. mkdir /lib/modules/4.13.0-16-generic/misc cp *.o /lib/modules/4.13.0-16-generic/misc insmod /lib/modules/4.13.0-16-generic/misc/vmmon.o insmod /lib/modules/4.13.0-16-generic/misc/vmnet.o rm /usr/lib/vmware/lib/libz.so.1/libz.so.1 ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1 vmware-networks --start exit  # run vmware as normal user /usr/lib/vmware/bin/vmware


I'm trying to understand why answer is B? My answer is A  I can't fine any rules how to explain it.  She's got a terrible mark in the exam so she ....very hard at all.  A. mustn't have worked   B. can't have worked  C. didn't work  Thanks

I heard this sentence in an American film a while ago as I was watching it on DVD (the part after but is verbatim):  "I'm doing my best but I mustn't be doing it right."  This is something I occasionally hear in American films: phrases like "he mustn't have done it" or "she mustn't be studying now", where a logical conclusion is expressed. So far I've thought that the normal thing to say is "he can't have done it" or "she can't be studying now".  My question is: Can mustn't be used to express a logical conclusion when the speaker is certain that something didn't happen or isn't happening, at least in informal speech? Is this an American usage? (I've never heard this usage in British English, but this doesn't mean it doesn't exist.) Is there a change going on in the usage of the particular modal verb?  Note: All the references I've checked don't even mention this use of mustn't. Google books aren't of help either.   EDIT: I should clarify that I'm asking this question because if I wanted to express that I'm certain I'm not doing something right (as in the sentence quoted from the film) I'd say "I'm doing my best but I can't be doing it right". I would think that the use of mustn't/must not wouldn't be standard usage (although the meaning is perfectly clear to me; I never mistook it for an injuction).


Let $\sum_{n=0}^\infty x_n$ be convergent and $\sum_{n=0}^\infty y_n$ absolutely convergent. Is it true that $\sum_{n=0}^\infty x_ny_n$ converges?

Let $\sum_{i=1}^\infty x_i$ be absolutely convergent and let $(y_n)$ be a sequence satisying $\forall i \in \mathbb N,\ \exists M \in \mathbb R$ such that $|y_i| \leq M$. Then $\sum_{i=1}^\infty x_i y_i$ is absolutely convergent.  So $\sum_{i=1}^\infty x_i$ is absolutely convergent means both $\sum_{i=1}^\infty x_i$ and $\sum_{i=1}^\infty |x_i|$ is convergent. And the condition on y indicates y is bounded above.  For the proof, I have this idea: since if some series is convergent/divergent multiplication by a constant such as M does not change the convergence/divergence, I might be able to say that at worst case where $y_i$ is M, $\sum_{i=1}^\infty x_i y_i$  should have same convergent/divergent property with $x_n$. But I do not know how to show this proof formally.


my array have this structure:  $news = array('id' => '', 'views' => '');   i need to order this by the most viewed, but it have to match the id. I've done some research but got many doubts.

I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data.  I am using the function below to load my CSV file.  function f_parse_csv($file, $longest, $delimiter) {   $mdarray = array();   $file    = fopen($file, "r");   while ($line = fgetcsv($file, $longest, $delimiter))   {     array_push($mdarray, $line);   }   fclose($file);   return $mdarray; }   I need to be able to specify a column to sort so that it rearranges the rows.  One of the columns contains date information in the format of Y-m-d H:i:s and I would like to be able to sort with the most recent date being the first row.


Can you please help me solve this issue with OpenLayers Plugin. I see some shift with a vector layer of Laos water boundaries when the background is Google Physical Layer.  I am using CRS EPSG:32647 (UTM 47N). QGIS version is 2.2.0.   Please see the picture attached.

There is probably already a post for my problem, but after long searching, I could not find a solution for my issue.  I am working with QGIS und I am using the following projection/datum: MGI / Austria GK East (EPSG:31256) (+proj=tmerc +lat_0=0 +lon_0=16.33333333333333 +k=1 +x_0=0 +y_0=-5000000 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232 +units=m +no_defs)   I just want to add a layer form the openlayers plugin. For example Google satelite. the Google satelite uses the following projection/Datum:  WGS 84 / Pseudo Mercator (EPSG:3857) (+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs).  The Problem that I am facing with, is that I can not get the Google layer in the same projection with my other layers (EPSG:31256)! They are not overlapping correct!  Is there a way to do this?


I am using QGIS v 3.2. The data set I am using involves pipelines. I need to mark an exclusion zone which is running 50m either side of the pipeline for the entire length of the pipeline.   Is there a function which will allow me to do this or do I have to plot it manually?   The reason I ask is that the pipeline is not straight, portraying various bends and curves, which I would find it hard to create a 50m exclusion zone accurately by hand.    Would a possible way, be by duplicating the shapefile and somehow offsetting its coordinates by 50m?

I need to buffer a series of lines by 40m, however I only want the buffer to come off the sides and not off either end of the line.  I know in ArcGIS there is a "flat-ends" tickbox that achieves exactly this, however unfortunately I can't use ArcGIS at this current time.  Is there any way to achieve this in QGIS?   I've had a look at some of the work arounds, but due to the scale of my datasets (national road networks) none of the ones I have found so far are feasible.


I used to have 2x2GB dual channel RAM however the other piece is now broken. Now I'm thinking of buying a normal single-piece 2GB RAM. Will it work just fine with my old single-piece 2GB dual channel RAM?

I just bought a motherboard that says it supports Dual-Channel RAM. The RAM I'm looking at says it's a "Quad-Channel Kit" . Will it work with my motherboard?  EDIT: Thanks all for the replies. Here is some more info:    Here is the RAM I'm looking at:    It all looks compatible to me, I just was curious about the four channel thing.


I'm getting the NullPointerException described in the title, but I don't understand how to use the information in the error message to debug it.  How do I know what's null, and what are common causes of that?  If you're seeing an error like java.lang.NullPointerException: Attempt to invoke virtual method '...' on a null object reference, this question aims to help solve your problem. This also applies to all the following similar errors:  java.lang.NullPointerException: Attempt to invoke interface method '...' on a null object reference java.lang.NullPointerException: Attempt to read from field '...' on a null object reference java.lang.NullPointerException: Attempt to read from null array java.lang.NullPointerException: Attempt to get length of null array    Note: this is intended as a canonical self-answered question to provide a single place to point the many users who have questions about NullPointerExceptions on Android that contains Android-specific advice.   For the non-Android Java version of this question, or for more information, see

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I need to take a look at all the headers of certain requests. I've been reading the haproxy manual, I am able to use capture to log whatever header I KNOW is there.  But I would like to see ALL the headers, unknown to me, that the app receives. Is this possible with haproxy's logging options? Some sort of regexp or iteration method?  I am using haproxy 1.6  Thank you.

Earlier i was not specifying a custom log format, and the captured request headers were getting printed fine. I wanted to log the unique-id-header, but could not find any way of doing so. So i copy pasted the log-format mentioned on , and unique id started getting logged.  Unfortunately, now the captured request headers are not getting logged. The %hrl and %hsl are coming out as empty strings.  Very weird. Here is my config, plzz help :(  listen server   bind *:80   mode http    option  httplog   option  http-server-close   no option logasap   # disable early logging of HTTP requests so that total transfer time is logged   option  forwardfor   capture request  header    X-Forwarded-For      len 500    capture request  header    Host                 len 500    capture request  header    X-Request-UID        len 500    rspadd  X-Haproxy-Backend:\ server    # Generate the X-Haproxy-Unique-ID and log it to make it easy to track requests   log-format %Ci:%Cp\ [id=%ID]\ [%t]\ %f\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %st\ %B\ %cc\ %cs\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ {%hrl}\ {%hsl}\ %{+Q}r   unique-id-format %{+X}o\ %Ci:%Cp_%Fi:%Fp_%Ts_%rt:%pid   unique-id-header X-Haproxy-Unique-ID   Here is the log i see:  Sep 13 17:28:57 localhost haproxy[11979]: 10.161.27.218:41592  [id=0AA11BDA:A278_0AA15B71:0050_505217C5_0014:2ECB] [13/Sep/2012:17:28:37.567]  server www-example-com-healthz/- 19998/0/2/1/+20001 200 +326  - - ---- 10/10/1/1/0 0/0 {} {}  "GET /testing/healthz?merchant=www.example.com&source=elb HTTP/1.1"   Note that %hrl and %hsl are empty strings :( How do i capture the request headers ??


I have a scenario where I want to get column position number   ID|NAME|S1|BQ|S2|VN|D1 1|vimal|10.12|12.4|56.2|12.2|11.22 2|vilas|10.12|12.4|56.2|12.2|11.22 3|viky|10.12|12.4|56.2|12.2|11.22  column name : S1|S2|D1   Output should be below:   3 5 7   I tried below code but partially provide output   awk -F"|" 'NR==1{for(i=1;i<=NF;i++){print $i"=$"i}}' demo.txt | grep -E "S1|S2|D1"  S1=$3 S2=$5 D1=$7   Need output like below  3 5 7

i have a scenario where i want to know in which position number the column name comes   like i have sample data below   ID|NAME|S1|BQ|S2|VN|D1 1|vimal|10.12|12.4|56.2|12.2|11.22 2|vilas|10.12|12.4|56.2|12.2|11.22 3|viky|10.12|12.4|56.2|12.2|11.22   Colum name : S1 S2 D1   output should be :  3 5 7


I am an Indian National holding Indian Passport.  Do I need a Thailand Transit Visa if going from India to Vietnam via BKK where the layover is 9 hours approx ? I am travelling by Thai Airways.

Im an Indian citizen. Do I need a transit visa in Thailand while going to Angkor Wat from Kolkata (India), and can I stay in Thailand for two days on this transit visa?


I'm struggling to see the point (pun intended) in having a dot appended to the figure number when a \part is involved.  Consider the following MWE:  \documentclass{scrbook} \begin{document} \part{Part} \chapter{Chapter} \begin{figure}    This would be the image    \caption{Caption} \end{figure} \end{document}   The figure number includes a trailing dot, which IMHO isn't needed anyway and I find it conflicting with the colon:    This dot is added whenever there is a \part present in the document, even when the floating environment itself is not inside a part (i.e. the first \part comes after the float, which doesn't make sense but which I tried out to see the behaviour). Commenting out the \part produces the numbering I would like to see:  \documentclass{scrbook} \begin{document} %\part{Part} \chapter{Chapter} \begin{figure}    This would be the image    \caption{Caption} \end{figure} \end{document}     How can I get rid of that dot and how can I understand why it is there in the first place?  [EDIT]:  It seems (as described in the "possible duplicate" suggestion) that in German typography a trailing dot is required when there are non-arabic components in the numbering. While I can see that this is useful in the TOC I find it pretty annoying in float captions because of the clash of the dot and the colon. The non-arabic part numbering isn't a component of that numbering anyway.  [EDIT2]:  The question has been closed as duplicate after I added the first edit (but hadn't highlighted the edit sufficiently. The referenced question did not answer my updated question, so essentially this question shouldn't have been closed IMO. However,  does answer the question.

All is (typographically) fine with this MWE  \documentclass{scrbook} \begin{document}   \tableofcontents   \chapter{chapter}   \chapter{chapter} \end{document}     But as soon as I add \part to it the numbers are getting enddots:  \documentclass{scrbook} \begin{document}   \tableofcontents   \part{part}   \chapter{chapter}   \chapter{chapter} \end{document}     To get rid of the enddots one needs numbers=noenddot:  \documentclass[ numbers=noenddot ]{scrbook} \begin{document}   \tableofcontents   \part{part}   \chapter{chapter}   \chapter{chapter} \end{document}   What is the reason for putting dots to the numbers as soon as one has \part in the document?


Under Edit profile and settings > Flair, for all 4 themes (Default, Clean, Dark, Hotdog) images are not displayed. The console is showing an error as:  Failed to load resource: the server responded with a status of 500 ()

For me, the election pages on all the sites currently look something like this:  Examples: , ,  And my Stack Overflow profile flair page looks like this (note that there should be five flair images, but four are replaced with their alt text):  Most people appear unable to reproduce this, but  has confirmed in the comments that they can also reproduce it.  This resembles  (marked ) in which 1 in 9 users would see similar errors. Could this be fixed?


I have Ubuntu 16.04 installed and I wanted to install Windows 10. I installed it and it skipped the GRUB and went straight to Windows 10. I used a copy of boot-repair USB disk and tried to run recommended settings but I  got this message:     GPT detected. Please create a BIOS-Boot partition (>1MB, unformattedfilesystem, bios_grub flag).   This can be performed via tools such as Gparted. Then try again.   After an hour of so of trying things I finally managed to boot into Ubuntu running this:  bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi   But now I can't boot to Windows, can't run boot-repair in recommended settings, in advanced settings tried settings sda1 (where the UEFI partition is) but grub2 isn't detecting my Windows. Also, I have an entry for an old Windows that's incorrect.   generated from boot-repair.  Here's the output of efibootmgr -v if it helps somehow:  BootCurrent: 0000Timeout: 2 seconds BootOrder: 0000,0002,0001,2001,2002,2003 Boot0000* Windows Boot Manager HD(1,GPT,fae7a125-e7c6-4570-9978-536f1ab52ece,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)WINDOWS.........x...B .C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................ Boot0001* Ubuntu PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(1,GPT,fae7a125-e7c6-4570-9978-536f1ab52ece,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)A01 .. Boot0002* Windows Boot Manager HD(1,GPT,fae7a125-e7c6-4570-9978-536f1ab52ece,0x800,0x100000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC Boot0003* Unknown Device: HD(1,GPT,fae7a125-e7c6-4570-9978-536f1ab52ece,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC Boot0004* Unknown Device: HD(1,GPT,fae7a125-e7c6-4570-9978-536f1ab52ece,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC Boot0005* TOSHIBA MQ01ABD100 BBS(PCMCIA,TOSHIBA MQ01ABD100 ,0x500)................-.f.......f.A.f...................................| .........A......................... Boot0006* Unknown Device: HD(2,GPT,5fca3638-90aa-4118-8d5a-09ed4f4191fa,0x12c800,0x96000)/File(\EFI\ubuntu\shimx64.efi)RC Boot0007* Unknown Device: HD(2,GPT,5fca3638-90aa-4118-8d5a-09ed4f4191fa,0x12c800,0x96000)/File(\EFI\ubuntu\shimx64.efi)RC Boot0008* Unknown Device: HD(2,GPT,5fca3638-90aa-4118-8d5a-09ed4f4191fa,0x12c800,0x96000)/File(\EFI\ubuntu\shimx64.efi)RC Boot000A* Unknown Device: HD(2,GPT,5fca3638-90aa-4118-8d5a-09ed4f4191fa,0x12c800,0x96000)/File(\EFI\ubuntu\shimx64.efi)RC Boot2001* EFI USB Device RC Boot2002* EFI DVD/CDROM RC Boot2003* EFI Network RC

Since I updated Windows to 8.1 my Grub menu disappeared. I ran Ubuntu using Live USB, I used Boot-Repair but something went wrong. If I click on Reccomended repair I get this error:     GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again. Alternatively, you can retry after activating the [Separate /boot/efi partition:] option.   So I tried to set my sda9 (I think that it's the Ubuntu system partition, since it's ext4) with the bios_grub flag and then to run Boot-Repair again. It didn't work.  I don't know what to do. My Grub was working fine (using UEFI) before I updated Windows.  I removed the bios_grub flag. Then I used fsck and it didn't find any error. So I tried again with Boot-Repair but it always gives me the "GPT detected" error. My boot is on UEFI mode, Secure Boot is "off".  When I boot my PC with SecureBoot OFF, I can reach the GRUB menu. But it's empty (the only voice is "System Setup").  I mounted my Ubuntu system disk:  sudo mount /dev/sda9 /mnt   and the other things:  sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys   I logged on the system with chroot:  sudo chroot /mnt   I re-installed grub:  grub-install /dev/sda update-grub2   But it still doesn't work.


My son has dual citizenship. We moved from NZ to the US a couple of years ago. We are about to move to the UK. He entered the US on his NZ passport. As we’ll be living in the UK, do we use his British passport when we go to the UK to live?  Thanks for your help.

I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?


Is there a reason why 'tasksel install lamp-server' or 'apt-get install lamp-server^' is better than another when setting up a fresh lamp server (or other group install)? Are they really any different or does one simply map to the other somehow?   is about practice related to installing a lamp server, this question is about philosophy behind the two methods of installing a task. lamp-server is simply used as an example. I know how to accomplish what I want to accomplish. What I'd like to know more about is why there are two methods and which method is preferred in which circumstance. The other comes across more broad than I intend this to be.

Recently I have gone through tasksel command usage because of LAMP server setup. Why can't I use apt-get or aptitude there?  Why does the Ubuntu wiki page suggest to do it with tasksel only. Is there any specific reason?  Where should tasksel be used? whats going to happen if I use aptitude or apt-get instead of tasksel while installing the server.


Most things I try(following mostly outdated tutorials online) come up with missing dependencies. Can someone please walk me through installing everything required?

I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use?


Let say we have a dataset, $\mathbf{X}$ of $m$ instances, and $n$ features, and a target scalar variable $\mathbf{y}$ ($m$ instances).  Now I want to do a regression so, I try to fit a hyperplane $ y = \mathbf{x} .\mathbf{w}$ + c.   Note : $\mathbf{w}$ is a $ n \times 1$ vector of coefficients that we need to find out.  and the $\mathbf{W} = (\mathbf{X}^T \mathbf{X})^{-1} \mathbf{X}^T \mathbf{y}$.  (Least Squares PseudoinVerse)    Now does mean centering reduce $c=0$, ie does mean centering make the fitting hyperplane pass through the origin of the new coordinate system formed after mean centering is perormed?

I keep reading about instances where we center the data (e.g., with regularization or PCA) in order to remove the intercept (as mentioned in ). I know it's simple, but I'm having a hard time intuitively understanding this. Could someone provide the intuition or a reference I can read?


I have a Server 2008 R2 Domain with quite a few Group Policy Objects that should be applied to various OUs and security groups (Using security filtering).  I got reports from users that they were missing certain settings and things like mapped drives. When I started investigating the problem, I found that almost every single GPO in our domain has simply stopped being applied.  There are a few GPOs (Like the default domain policy) that are still being applied, and it looks like the one thing they have in common is that these policies are all applied to the 'Authenticated Users' builtin group. Whereas all other GPOs use security filtering on various other security groups.  I have run lots of RSOP tests (Planning and Logging) which both show that only the GPOs applied to 'Authenticated Users' are being run. The other GPOs don't even show up under the "GPOs that were not applied ..." section of gpresult. I have checked permissions, GPO inheritance, and a few other basic but common GPO problems, all of which seem fine. I tried creating a some brand new GPOs, and applying them to brand new security groups, however these were also not applied.  I have not noticed any other issues with Active Directory, authentication against these security groups for other functions (such as file permissions) all seem to be working as expected.   I'm at a total loss to explain why these GPOs just suddenly stopped getting applied, for no apparent reason. Does anyone have any ideas what might be going on, or how to continue troubleshooting?

I have a Windows Server 2012 R2 Domain.  Yesterday, a computer’s (running Windows 10 Pro) network drive stopped working.  After further investigation (gpresult /h) it appears ALL group policy objects are failing with the reason Inaccessible, Empty, or Disabled.  I have confirmed that all the GPOs still exist and are enabled on both (redundant and local) domain controllers.  Furthermore, there are 20 other machines on the same domain and LAN with absolutely no problems.  However, there is one other computer that I tested which presented with the same problem!  Does that mean the problem is with the servers?  gpresult /r reports that one client is getting GPOs from local DC1, and the other from DC2.  So it is not a problem related to a specific DC.  gpupdate /force fixed nothing (though it claimed that policies were applied).   I tried deleting the registry entries for local policies (following this guide ) and rebooting - same problem.    I found this support page from Microsoft (), but it claims it only applies to Windows 7 or earlier clients.  All my machines (both server and client) are running 64-bit versions and are fully updated.  I have rebooted all of them just to be sure.


I'm quite having problems with the twisting of the shoulders I don't know if its the weight, or something about the IK. This is my character.

I'm trying to work out this shoulder deformation. I can't figure it out.  Is there anything wrong in my armature? Should i add bones and keep more control of my mesh or use shape keys? Here is my file blend.


I have a parent div with 6 children divs as follows

1

2

3

4

5

6

   I want to have a result like this   2    4   6  1   3    5

Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div when they are not in that order in the HTML? Both divs contain data that varies in height and width.

         Content to be below in this situation

         Content to be above in this situation

 Other elements   Hopefully it is obvious that the desired result is:  Content to be above in this situation Content to be below in this situation Other elements   When the dimensions are fixed it easy to position them where needed, but I need some ideas for when the content is variable. For the sake of this scenario, please just consider the width to be 100% on both.  I am specifically looking for a CSS-only solution (and it will probably have to be met with other solutions if that doesn't pan out).   There are other elements following this. A good suggestion was mentioned given the limited scenario I demonstrated—given that it might be the best answer, but I am looking to also make sure elements following this aren't impacted.


Just trying to check if the input is a palindrome. Code keeps evaluating to true, but upon debugging, my answers are false;  Maybe I'm confused with == vs .equals?  class Solution {     public boolean isPalindrome(int x) {         int orig = x;         String result = x + "";         char[] original = result.toCharArray();         String compare = "";          if(orig < 10) {             return true;         }          for(int i = original.length-1; i >= 0; i--) {             compare += original[i];           }          //System.out.println(result); -121         //System.out.println(compare); 121         if(result == compare) {             return true;         } else {             return false;         }        }  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I'm working 95% of my time with AC power and Thunderbolt Display. Since macbook pro retina's battery are no longer easily switchable I'm concerned about it's life and would like to maximize it. Before macbook retina I used to charge the battery to 50%, then after removing it I used the macbook without battery on AC power. But it's no longer possible.   I googled a little but didn't find a clear guidance about how to use your macbook mainly connected to AC power and not doing damage to your battery.  From what I know :   Full discharges should be avoided. Keeping you battery charged to its maximum for too long time is also bad. Try to keep charging cycles as low as possible. It's battery life (macbook pro retina battery is expected to keep 80% of its charge after 1000 charging cycles).   I try to disconnect AC power once a week until battery indicator goes down to approximatively 75% and then I connect back the AC to charge it to 100%. I don't know if it's the best steps to maximize the battery life but I think it's much better then to keep it all the time connected to the AC power.  What do you think. How to preserve battery life working on AC power ?

My friend told me that I need to disconnect the power cord when the battery is fully charged. Otherwise, I will shorten the life of the battery.  Other people say you should drain it once a month or point out that for long term storage, you should charge it to 50% and then periodically (3 to 6 months) bring it back to 50% and store it again.  I am going to use my laptop at home 90% of the time. So, I plan to have the power cord connected all the time.  I'd prefer to just plugging in my MacBook Pro and letting it be on charge long term and occasionally taking it away from the charger when I'm not at home or my desk.  Are these specific recommendations worth the inconvenience?


So, today I thought it would be clever to take some leftover free space from my hard drive and create a partition I could share between Linux and Windows, as I know that Windows is "protective" of it's system partition due to the Fast Startup system.  However Windows apparently had a different idea in mind.  The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   While I know this may be remedied by disabling , I would like to avoid doing so.  By using nftsfix I was able to get the partition mounted in RW mode.  Long Story Short:  Is it possible to prevent Windows from keeping a disk's Metadata in it's cache?   If not, how can I setup Linux to run nftsfix on the partition then mount it (preferably with fstab), and would any data be lost using this method?  EDIT: The main reason I wish to keep Fast Startup in tact is due to Startup times. I need to be able to switch to Windows and back quickly in my work setting, sometimes several times in an hour.

It seems that "Shut down" in Windows 10 actually means "Shut down and hibernate". This has caused my NTFS partitions cannot be automatically loaded on Linux (Ubuntu 16.04) on my dual-booting laptop. There will be an error message basically saying   Unable to access “My Drive”  Error mounting /dev/sdb4 at /media/D Center: Command-line `mount -t "ntfs" -o  "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb4" "/media/D Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option   After a "hard" shutdown by pressing Shift while clicking on "Shut down", Windows actually shuts down, and the NTFS partitions can then be automatically mounted by Linux in another bootup. This issue only occurs recently after my upgrade of the Windows OS and BIOS.  My question is the following: is there any way to make the "Shut down" on the menu as the truly/hard shutdown by default? Thanks!


Recently the 2014 edition of the Moto G got the Lollipop update. I wanted to know the exact date on which the 1st Gen Moto G will be getting the update? Also, can flashing the update of the 2nd Gen on the 1st gen prove to be dangerous? Can anyone provide me with a link containing android lollipop for moto G to download?

Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also:


I've got a phone with Android 4.2.2 Jelly Bean installed on it, and it doesn't have a 'Software update' button. Is it possible at all to somehow install a newer version of Android on this device?  I also looked at a possibility to install CyanogenMod on this phone, but it doesn't have my phone in the list on . The model is the Lenovo A830, so it's not a conventional phone. Is it possible to install some kind of 'generic' version of Android on it?  Alternatively, can I install a mod that uses a more recent Android version?

This Community Wiki question is designed to be the "canonical question" for questions asking how to upgrade one's device to a new Android version.   I want to get a newer version of the OS for my Android device. How can I do that?  See also:


I encountered the following text (from  a textbook): "... particles. de Broglie was able to show that ... " Is it correct to make an exception from the rule of a capital letter in the beginning of a sentence, if it begins with a name, which starts from a non-capital letter, like the French "de Broglie"? I don't think so...

In the book, "The Crystal Shard," by R.A. Salvatore, a character is surnamed "de Bernezan." Which of the following complete sentences uses the correct English-language capitalization:   de Bernezan entered the room. De Bernezan entered the room.   The  on "de Vries" capitalized "De Vries" as a standalone, but writes "Marc de Vries" when using the full name.  Edits in response to comments:   The book starts sentences as "de Bernezan," which seems incorrect. Hence my question. The Wikipedia page is neither authoritative nor clear. It seems to refers to "De Vries" as the correct capitalization of the surname, except when actually used as a surname. Since I am not Dutch, I do not know how their names work, especially when used in an English-language context. Again, hence my question.


How would you write the code for this expression?:

There is a part of my paper where I use the distributive property and it might not be clear to the reader to see the operation result (I'm using in proposional logic for a proof). The logic equation (part of) is: $$ (l_{1}) \vee \big( (p \vee q) \wedge (\neg p \vee q) \wedge (p \vee \neg q) \wedge (\neg p \vee \neg q)\big) $$ $$ (l_{1} \vee p \vee q) \wedge (l_{1} \vee \neg p \vee q) \wedge (l_{1} \vee p \vee \neg q) \wedge (l_{1} \vee \neg p \vee \neg q) $$  So I was wondering if there is a way to represent this operation like a 'shower' (see another example in pic ). Maybe there is some hidden magic mathmode command or pkg for this. At last we can also rely on tikz.


I am looking for GUI tools to search for a string from pdf file contents in a given folder, like what we get in Windows Explorer. Nautilus does not have that function.

I got a bunch of notes written by other students, but they are from an old textbook that didn't deal with everything in the same order, so I need to search through the notes for every chapter (each individual chapter is in a different .pdf or .doc) for "trace conditioning" for example.  I used to use Google Desktop for this, I have Launchy now and I told it to search pdfs, but it only searches the titles, not the content.  Thanks for any help.


I recently moved out of a place with three roomates who smoked indoors.  They smoked in the basement which is also where my PC was set up.  I left my PC on nearly all the time so it's been breathing that air in for a good six months.  I took it apart and blew it out with compressed air when I got to my new place, and it was just loaded with thick brown and black dust and all kinds of gross stuff.  Definitely smells a bit better now that I've cleaned out the inside but there's still a very noticeable smell around my setup.  I have the following pieces of equipment:   Desktop PC Two flatscreen HDMI monitors External harddrive Mouse, keyboard, headset, webcam Computer speakers with left and right channels and a subwoofer Several usb cables Also a folding table I had it set up on   All of this stuff smells pretty bad especially when it's all together like it will be when it's set up.  The table and gadgetry I'm sure just needs to be wiped down with a wet cloth but I'm wondering if there's any tricks to getting the smell out of the more sensitive electronics, and if I need to clean inside things or just the outsides.

I'm a smoker, and of course I smoke in front of the computer when I'm at home. Last Friday I moved out from my mother's house to my own, and since the computers were always turned on and the room was one where everybody could smoke, the smell didn't bother me. At my new home, I turned them on, about 15 minutes ago, and now I'm dying because of the smell of cigarettes (this may be kind of stupid to hear from a smoker, but I hope some of you understand). This solution has to be relatively quick, because I can't stay without the desktop and the server for one week, for example. Tomorrow, I'm going to open them both, and remove all dust there is inside, this should clear some of the smell, but probably won't remove it completely. Does anyone know a technique to get rid of the smell?  Update: Some pictures of the case after I opened it: Side Fan of the case  CPU, Graphics Card and PSU  PSU


I have been trying to figure out if there is a way to have a Loop inside of a SQL Statement.  Select j.JobID, s.OrderNumber,  (SELECT OperationID From Operations) as Operations  <--- This will cause multiple results From Jobs j Inner Join Sales s on j.JobID = s.SalesJobID Where j.JobID = '123456-1-1'   this is what we have  JobID        OrderNumber    Operation -----        -----------    ---------- 1123456-1-1   TEST1         DEV 1123456-1-1   TEST1         APR 1123456-1-1   TEST1         CAT 1123456-1-1   TEST1         LFT 1123456-1-1   TEST1         PKG   Trying to do something like this.  JobID        OrderNumber    Operations -----        -----------    ---------- 1123456-1-1   TEST1         DEV, APR, CAT, LFT, PKG

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


So you are holding a thin horizontal rod (which is not bendable) which is fairly heavy and there is a heavy object (lets say a bag full of heavy stuffs) hanging from it. So now if the bag is shifted towards the end at which you are holding the rod, it seems that we are putting the same amount of force in the upward direction as the rod-bag system is putting in the downward direction. But here comes the catch: When the bag is shifted to the opposite end, opposite to which we are holding the rod, it feels like more force is needed in the upward direction to keep the forces on the rods balanced. WHY SO?

I've learned that the torque on an object is just $ \text{perpendicular force}\times\text{radius}$ and that has worked well for things like seesaws but it doesn't take into account the torque of the object itself!    In the picture the rod has a total mass of 5kg, and by definition the torque on the right is greater than that on the left.  $$T=Fr$$   I am supposed to solve the question     What distance to the left of the fulcrum (triangle supporting the rod) would I have to put a 3kg weight to balance the rod?     I've tried calculating the net torque $T_{net} = I\alpha$ but I don't really know how to approach this. I'm looking for an explanation more than an answer.


I try like this :   <input type="number" pattern="[1-9]*" class="form-control" min="1">   I try input dot, it can  How can I disable dot(.) and another?  So, only 1-9

Is there a quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes (plus '.')?


I installed Ubuntu 16.04 LTS on my Alienware 17 R3, which comes with Killer Wireless-AC 1535 WiFi card. The WiFi hardware seems to be detected but no WiFi hotspots are being detected.  I learnt somewhere that updating to the latest kernel would fix the problem. The kernel verison according to uname -r is 4.4.0-22-generic. Is a more recent version of kernel required?  Any help regarding this would greately help me since I will have to start my development asap and Linux is the go-to platform where I work.  Thanks  Edit: Output of lspci -knn | grep Net -A2  3c:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)  Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]  Kernel driver in use: ath10k_pci  Kernel modules: ath10k_pci

I bought an Acer laptop and installed Ubuntu 14.04LTS but WiFi drivers are not available for it. So I am trying to install a windows driver using wifidocs/driver/ndiswrapper.  On doing lspci -vvnn, it gives:  Network controller ［0280: Qualcomm Atheros Device ［168c:0042］ (rev 30)   Then I also disabled the atheros drivers. Using lspci and lspci -n, I can say PCI id is 168c:0042. But Acer website has three atheros drivers. I could not figure out which one to download but downloaded one on a windows PC and pasted the zip file on my desktop then unzipped it from the terminal using unzip <filename>.zip. The page says you have to go to control panel system hardware and all that on the windows system. I did not do it. Windows computer not being mine, I am afraid I should not install any additional driver on it. After unzipping it has one .inx file and one .bin file but no .sys file. I don't know whether I am completely right till here or have I missed something? And if I am right then how to proceed from here? I also made a new directory and copied the unzipped .inx and .bin files in it. Then in that directory I ran the ndiswrapper -i <filename>.inf but it says ndiswrapper not installed and when I do sudo apt-get install ndiswrapper-common, I get the reply that ndiswrapper-common is already the latest version. What to do? here is my dmesg | grep ath10k result  [   7.882758] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0 [    8.190016] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [    8.334587] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/board-2.bin failed with error -2 [   10.140677] ath10k_pci 0000:03:00.0: qca9377 hw1.0 (0x05020000, 0x003820ff sub 105b:e09a) fw WLAN.TF.1.0-00267-1 fwapi 5 bdapi 1 htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features ignore-otp [   10.140682] ath10k_pci 0000:03:00.0: debug 0 debugfs 0 tracing 0 dfs 0 testmode 0 Here is the output of lspci -nnk | grep -iA2 net  02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)     Subsystem: Acer Incorporated [ALI] Device [1025:098a]     Kernel driver in use: r8169 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)     Subsystem: Foxconn International, Inc. Device [105b:e09a]     Kernel driver in use: ath10k_pci


The Stack Overflow/Super User web application always replaces my backticks with some other code and the backticks are not visible any more in the question. How can I have backticks visible in my questions?

How do I escape a backtick ` within a code block?  This is probably a duplicate, since I'm sure it's a common concern, but I can't find a question that addresses this specifically.  How do I write List'1 with the "1" character still in the code-text format?


I defined http_proxy and https_proxy both in ~/.bashrc and ~/.profile, but by running apt-get commands these variables are not considered and I have to specify it manually (sudo http_proxy=*** apt-***). This is really annoying! How can I fix this? (I've already restarted the OS)

I'm using Ubuntu 15.10 guest on VMWare Player (7.1.3 build-3206955), with Windows 10 as the host OS. I'm able to use Firefox to browse the web inside the guest, however I'm unable to use apt on the terminal. Whenever i invoke the command sudo apt-get update, it gets stuck at 0% [connecting to in.archive.ubuntu.com], finally failing. Also, using sudo apt-get install <package> always results in the package not even being found. On the other hand, using the same commands with the -E flag on sudo makes them work. Can somebody explain what's happening here?  EDIT: I forgot to add that i'm using multiple internet connections; one with proxy and one without. Regular sudo works on the one without proxy but not on the one with it.


Will anything happen to Ubuntu if I uninstall Python from my Ubuntu machine?  I want to run minimal software in the OS.  OS installed: Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-131-generic x86_64)  Installed Python: 2.7.12-1~16.04 AND python3

I am a new Ubuntu user running Ubuntu 13.04.  I've been trying to install and use a DeDRM tool, but I've been having problems doing so. I was following some directions that said I needed a version of Python 2.7, but not anything Python 3.0 or later (because 3.0 versions are missing some necessary libraries?). I tried to install Python 2.7.5.6, but it didn't work. I thought it was probably because I had the later version of Python, so I went through terminal and removed Python 3.3, so I could install the earlier version of Python.  Now that I've uninstalled Python 3.3, a lot of applications no longer work, including the terminal and the Ubuntu Software Center. I have no idea how to fix this problem now.


I have Club3D Geforce fx5200 and Intel (r) Celeron (r) 2.80ghz RAM 1G (Upgraded from 512mb) hdd 200gb, i can add more if i need. Do Ubuntu will work to me? My machine is running windows xp sp3. And i want to run Counter-Strike 1.6 [Steam] /w no glitches on it with ubuntu?

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I am trying to get all matching results from a one to many relationship in 1 result.  Table structure  Users              owr_rosterdata                --------           --------                  id| name           id | user | info -----------        --------------------- 1 | nealvdv        1  | 1 | aaaa 2 | another        2  | 1 | bbbb                    3  | 2 | cccc                    4  | 2 | dddd   My current query is something like this (without the WHERE clauses)          "         SELECT owr_rosterdata.*, users.id, users.name FROM owr_rosterdata          INNER JOIN users ON owr_rosterdata.user = users.id         "   Current output  User 1: 1, nealvdv, aaaa  User 1: 1, nealvdv, bbbb  User 2: 1, another, cccc  User 2: 1, another, dddd     The whole point of this query is to avoid having multiple queries to   get all matching results of a user into 1 result.   Desired output  User 1: 1, nealvdv, aaaa, bbbb  User 2: 2, another, cccc, dddd  Thank you for any suggestions!

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


When running invalid commands without any parameters or options, in my experience we get only two kinds of messages which are exemplified below:  ~$ Date No command 'Date' found, did you mean:  Command 'yate' from package 'yate' (universe)  Command 'date' from package 'coreutils' (main)  Command 'late' from package 'late' (universe)  Command 'kate' from package 'kate' (universe) Date: command not found ~$ fjldjflsk fjldjflsk: command not found ~$   I'm interested in knowing more about how this works. Specifically, when can I know which of these two kinds of messages I'm going to get prior to running the command? Is there some kind of environment variable or any other device that would allow me to alter this behavior easily? I'd like to get only the second kind of message.

So, when a command is not found, by what means is the "did you mean:" list populated? What program finds these alternate commands?  What is the meaning of: "(main), (universe)..."? Can I change which program finds these?


What causes a potential drop in a resistor or load?  Why a wire having neglible resistance have same potential across it? The given figure is of a stretched wire potentiometer. My question is why point a and A have same potential after connection through a wire of negligible resistance. Before connection there can be different potentials on poinrs a and A. So how the same potential achieved after connection. I wants it's machanism and explanation.

What causes a potential drop in a resistor or load?  Why a does wire with neglible resistance have the same potential across it?


do you know what is causing this type of shadows? Does it have something to do with the way the mesh is?

I've been modeling a hermit crab and I don't know why but some areas of the mesh are really dark on some spots, like the legs and the claws.   I hope you can help me fix it.


I often read the expression “would of” used instead of “would have”. Each time I read it I get annoyed so I googled it and found out -as I expected- that it is an incorrect way to say “would have”. Now, there are a lot of brilliant slang words/expressions, so my question is, why do people use this one? It’s so annoying to read, stupid and clearly wrong, it is pointless, why did they come up with this expression?    Edit:  I don't think my question is a duplicate as I didn't ask how can somebody use it (since I know it's incorrect and I know that I can use it with commas giving it a different meaning) but I asked why and how people came up with this expression.

After some bad calls using search/replace, I'm curious how many legitimate forms of "could/would/should of" there are. I'm interested in uses that do not derive from, and cannot be replaced by "could have," "would have," "should have," or their contractions.   One could of course add a few commas to this paragraph to make it easier to read, but I'm not sure that would of necessity be the only correct way to punctuate it. I frequently see constructs like "of itself," "of course," "of her own volition," and so forth in print without being couched in commas.   Still, I wouldn't make as big a deal of that example as I would of this one.   What other legitimate patterns for their use might there be, and are there any foolproof rules for helping identify them? (e.g. Is it safe to say that "would of [verb]" is always wrong?)  Contrary to folk wisdom saying , it's not always wrong. Some well-formed sentences contain "should of" without meaning "should've". I want to feed someone some exceptions to the "it's always wrong" rule, and if the exceptions are rare enough (unlikely, I suppose), a list of all the cases where it's proper to use "should of."


How can I initialize a System.Collections.Generic.List of System.Collections.Generic.Dictionary objects using Collection Initializers?

I want to use a collection initializer for the next bit of code:  public Dictionary<int, string> GetNames() {     Dictionary<int, string> names = new Dictionary<int, string>();     names.Add(1, "Adam");     names.Add(2, "Bart");     names.Add(3, "Charlie");     return names; }   So typically it should be something like:  return new Dictionary<int, string> {     1, "Adam",    2, "Bart"    ...   But what is the correct syntax for this?


When any High Contrast Theme is used in Windows 7 there are items both on the desktop, various programs, and especially on websites - (using Chrome, Firefox or Explorer browsers). I have altered colors in the Personalization settings and have not found any way to make these invisible graphics and text show up. The only solution I have found is to turn off the high contrast, which makes it nearly impossible for me to see the screen, especially difficult when filling out forms.

I have turned on high contrast theme in Windows 7, the problem now is the theme is interfering with firefox( no problem with Opera) and the pages loading. For example, the below given is a screenshot of Firefox after enabling high contrast theme:  So I did some tweaks in Firefox and got the UI like below  But, as you can see, the text is still in green colour, I have specified in firefox options to use black colour for text and white for Background and disabled "Use system defaults", now the background colour is white but the text is green. Why it is so? See this image too:  Here, there is no problem(I couldn't find the problem in SE sites too) Why Firefox behaves so strange? Any solutions?


I have a list and I am using a for loop to add each item as a column on the same row of this table.  The list has about 60 items.  I am adding each one word at a time but it's trying to count each letter as a separate entry.  What am I doing wrong?  def createTable():     queryCurs.execute('''Create Table WordLogic     (id INTEGER PRIMARY KEY, Noun TEXT, Verb TEXT, Adjective TEXT)''')  def addNoun(Noun):     queryCurs.execute('''INSERT INTO WordLogic (Noun)     VALUES (?)''',(Noun))  createTable() for DBWord in words:     addNoun(DBWord)

Using SQLite3 with Python 2.5, I'm trying to iterate through a list and pull the weight of an item from the database based on the item's name.  I tried using the "?" parameter substitution suggested to prevent SQL injections but it doesn't work. For example, when I use:  for item in self.inventory_names:     self.cursor.execute("SELECT weight FROM Equipment WHERE name = ?", item)     self.cursor.close()   I get the error:     sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 8 supplied.   I believe this is somehow caused by the initial creation of the database; the module I made that actually creates the DB does have 8 bindings.  cursor.execute("""CREATE TABLE Equipment      (id INTEGER PRIMARY KEY,      name TEXT,     price INTEGER,      weight REAL,      info TEXT,      ammo_cap INTEGER,      availability_west TEXT,     availability_east TEXT)""")   However, when I use the less-secure "%s" substitution for each item name, it works just fine. Like so:  for item in self.inventory_names:     self.cursor.execute("SELECT weight FROM Equipment WHERE name = '%s'" % item)     self.cursor.close()   I can't figure out why it thinks I have 8 bindins when I'm only calling one. How can I fix it?


𝗗𝗢 𝗡𝗢𝗧 𝗩𝗢𝗧𝗘 𝗧𝗢 𝗖𝗟𝗢𝗦𝗘 𝗔𝗦 𝗔 𝗗𝗨𝗣𝗟𝗜𝗖𝗔𝗧𝗘. 𝗙𝗢𝗥 𝗠𝗘, 𝗜 𝗚𝗘𝗧 𝗔 𝗕𝗟𝗔𝗡𝗞 𝗠𝗔𝗣 𝗘𝗩𝗘𝗡 𝗪𝗛𝗘𝗡 𝗜'𝗠 𝗟𝗢𝗚𝗚𝗘𝗗 𝗢𝗨𝗧 𝗢𝗙 𝗠𝗬 𝗚𝗢𝗢𝗚𝗟𝗘 𝗔𝗖𝗖𝗢𝗨𝗡𝗧. 𝗧𝗛𝗘 𝗢𝗧𝗛𝗘𝗥 𝗤𝗨𝗘𝗦𝗧𝗜𝗢𝗡 𝗥𝗘𝗣𝗢𝗥𝗧𝗦 𝗧𝗛𝗔𝗧 𝗧𝗛𝗘 𝗕𝗨𝗚 𝗢𝗡𝗟𝗬 𝗛𝗔𝗣𝗣𝗘𝗡𝗦 𝗪𝗛𝗜𝗟𝗘 𝗟𝗢𝗚𝗚𝗘𝗗 𝗜𝗡.    When I visit Google Maps in the Google Chrome browser, all I see is a blank grid for the "Map" mode. The "Satellite" mode works fine.  I don't see this issue in Firefox and Edge. Why does Google's own browser have this bug, and how can I fix it?  I've been having this issue for several months.

I've been having this annoying problem for quite a few months now.  If I am using Google Chrome (tested on a Mac and on Arch Linux), and I am also logged into my Google Account, if I go to  , the map loads, but after a few milliseconds, just before the webapp finishes rendering, the map goes blank. I've done a screencast to explain:     This does not happen if I am not logged into my Google Account. This also doesn't happen on Firefox. I have not tested on Windows, but I'm pretty sure it would be the same. I've also tried logging in while on an incognito session, and the problem reappears. I've tried disabling all extensions and clearing the cache. Same result. This does not happen if I log into two other different Google Accounts.


I saw a few files/dir are inaccessible even to the root user: find: ‘/run/user/1000/gvfs’: Permission denied. So I went a level deeper and ran ls -l; below is the output. /run/user/125# ll ls: cannot access 'gvfs': Permission denied total 4 drwx------ 12 gdm  gdm  340 Sep  3 10:20 ./ drwxr-xr-x  4 root root  80 Sep  3 10:19 ../ srw-rw-rw-  1 gdm  gdm    0 Sep  3 10:19 bus= drwx------  3 gdm  gdm   60 Sep  3 10:19 dbus-1/ drwx------  2 gdm  gdm   60 Sep  3 10:19 dconf/ drwx--x--x  2 gdm  gdm   60 Sep  3 10:19 gdm/ prw-rw-r--  1 gdm  gdm    0 Sep  3 10:19 gnome-session-leader-fifo| drwx------  3 gdm  gdm   60 Sep  3 10:19 gnome-shell/ drwx------  2 gdm  gdm  140 Sep  3 10:19 gnupg/ d?????????  ? ?    ?      ?            ? gvfs/ -rw-------  1 gdm  gdm  318 Sep  3 10:19 ICEauthority d---------  3 gdm  gdm  160 Sep  3 10:19 inaccessible/ drwx------  2 gdm  gdm  100 Sep  3 10:19 keyring/ srw-rw-rw-  1 gdm  gdm    0 Sep  3 10:19 pk-debconf-socket= drwx------  2 gdm  gdm   80 Sep  3 10:19 pulse/ srw-rw-rw-  1 gdm  gdm    0 Sep  3 10:19 snapd-session-agent.socket= drwxr-xr-x  3 gdm  gdm  100 Sep  3 10:19 systemd/  Why do we see ? against file/dir gvfs?

Can someone tell me what I'm doing wrong, what this is, or how to fix it? I'm running Fedora 18 and getting the error shown  [root@servername /]# find . -name ngirc find: `./run/user/1000/gvfs': Permission denied [root@servername /]#  [root@thinktank /]# pwd / [root@thinktank /]# ls -ltr ./run/user/1000 ls: cannot access ./run/user/1000/gvfs: Permission denied total 0 d?????????? ? ?    ?      ?            ? gvfs lrwxrwxrwx. 1 root root  17 May 28 12:30 X11-display -> /tmp/.X11-unix/X0 drwx------. 2 kal  kal  120 May 28 12:30 keyring-QjDw4b drwx------. 2 kal  kal   40 May 28 12:30 gvfs-burn drwx------. 2 kal  kal   60 May 28 12:30 krb5cc_5f0bcaf94f916d6b61696e2251a4dbb3 drwx------. 2 kal  kal   60 May 28 18:25 dconf


I'm trying to download historical data from overpass-turbo and I keep getting this error.    Error: runtime error: open64: 0 Success /osm3s_v0.7.54_osm_base Dispatcher_Client::request_read_and_idx::timeout. The server is probably too busy to handle your request.   This is after trying to increase the timeout and maxsize on the query and using the "raw data directly from Overpass API" export function. I need to do this for all of US and Canada.  Breaking it up by state and province is fine or one big download will work as well.  Am I exceeding the limits and need to find another way of doing this?  The files don't seem to be too big.  California is about 10MB and Ohio is about 2MB.  Here are my basic queries.   [adiff:"2016-10-23T15:00:00Z","2017-10-22T15:00:00Z"];  {{geocodeArea:california}}->.searchArea; (   way["highway"="motorway_link"](area.searchArea); ); out body; >; out skel qt;    [adiff:"2016-10-23T15:00:00Z","2017-10-22T15:00:00Z"][timeout:99999][maxsize:10737418240];  {{geocodeArea:california}}->.searchArea; (   way["highway"="motorway_link"](area.searchArea); ); out body; >; out skel qt;

I need to download all highways as line features from OpenStreetMap in a large area (about 10.000km²). Therefore I wanted to use overpass-turbo with the following statement in the wizard:   highway=*   in my chosen bounding box.  Unfortunately it looks like my bounding box is too big, because I get the error:   runtime error: Query run out of memory using about 2048 MB of RAM.   Do I have to change my overpass turbo query or is it not possible to download large datasets in overpass turbo? Which alternative method could I use to download all highways as line features in a larger region. I need to have all attributes, like the type of the highway, "foot=yes/no/...", "access="yes/no/....", etc. and if I use something like geofabrik, these attributes do not appear.