says:     squinch (skwɪntʃ)      (US)      transitive verb         to squint (the eyes); squinched up her eyes in disgust.               2.         a. to pucker or screw up (the face, nose, brow, etc.); Jonathan squinched his face into a grimace.       b. to squeeze or compress; She squinched the paper up in an angry twist and stood to throw it into the stove ; Robert squinched the ketchup bottle, trying to get the last bit out.      intransitive verb         to squint, pucker, or contort   to crouch down or draw oneself together so as to seem smaller; ;  (Source: .)   to flinch         Word Origin: probably blend of squint and pinch      First Known Use: 1835      Example Sentences Including "squinch:"      Cooper saw her squinch up her eyes, trying to make out who was standing outside her kitchen window.      An unhappy smile is still a smile, insofar as the corners of the mouth are drawn back or upturned. However, the eyebrows may be furrowed, and the eyes may be squinched or teary. Also, the lips tend to be pressed together, rather than relaxed as in a happy smile.    My question is, how do native speakers of AmEng use the verb squinch in the senses supported above by CAED?  In addition, what's the difference between using either "squinch" or "squint/flinch" as in the following examples:     She squinched (up) her eyes, trying to make out who was standing outside.      She squinted her eyes, trying to make out who was standing outside.   -and-     The driver squinched as the sun hit his windshield.         -and-              -and-     He squinched as the cold water struck him.         -and-


I am trying to load in a blender file and export it as an OBJ file with with materials.   The approach I am trying to use is to bake all of the materials (using cycles) into a diffuse and specular (glossy) map. This seems to work well for simple objects, however once I am using an object with textures, I am running into problems.  First I combine all of the objects together into a single mesh (ctrl J) so I can have a single map for all of them.  In order to bake the materials, I have to unwrap the mesh, create an image texture in each material, assign it to the target image I create, then bake the diffuse and specular individually.   When I try to use textures for my materials, I run into problems. I am unable to unwrap the mesh for baking because this will mess up the original UVs for displaying the object.  Is there any way I can keep the starting UVs, then create a new set of UVs for baking? Or is there a better approach for solving this problem?  EDIT: I believe this is duplicate. Sorry. Just found:


"Those who qualify will be awarded a certificate" or "those who qualify will be awarded certificates"?

All my life, I have been confused with choosing plural or singular form to represent one-one correspondence notion.     Only those who qualify will be awarded a certificate.   or      Only those who qualify will be awarded certificates.   ?  Another example, let us consider the following:  "Each student gets one pencil". But it becomes ambiguous if I rewrite in plural form as "Students get pencils".  I hope someone can give me a general rule to overcome my confusion. :-)


Is there an idiom or concise phrase for seeing someone in mortal danger and doing nothing about it?

I like  "Fiddle While Rome Burns"  but it usually doesn't refer to doing nothing while individual people are in serious trouble. I want something along the lines of  "Fiddle While Jim Is Having A Heart Attack Right In Front Of You"


I have a UK visitor visa starting on 30 Oct; will I need a DATV for an itinerary on 12 Sep?

I am traveling on a BA flight from Amsterdam - Mumbai via London (LHR). I have a visitor visa for the UK starting one month after my current travel.    Will I require a Direct Airside Transit Visa (DATV)?    Also, would my visitor visa, which is yet to start, be cancelled?


Find the least number which when divided leaves following remainders

The question is, find the least number when divided by $36, 48$ and $64$ leaves remainder $25, 37$ and $53$ respectively. The answer is said to be $($the $\operatorname{lcm}$ of the three numbers $-11),$ where $36- 25= 48- 37= 64- 53= 11.$ Can anyone please give me the logic for doing this ? I am not familiar with the modular operator method. So any answer not using that would be helpful. Thanks


Linux - Running The Same Command on Many Machines at Once

I have about a dozen Linux boxes that I occasionally need to run the same command(s) on. Is there an easier way (or automated way) to do this asides from logging on to each machine and running the command, one at a time? It's not the same commands all the time and it's not at a preset time so it's not something ideal for tools like cron.


Just happend to me: the achievements box showed me a green +1. I was surprised to see that; wondering how "+1" could come up in the first place.  So I clicked on achievements ... the green +1 goes away ... and I am looking at the very same achievements (and "total sum") that I saw there like 30 minutes ago, when I last checked. No signs whatsoever pointing out what that "+1" was about.  Any idea what could be going on here?


16.04 installing GNOME, getting "Unable to correct problems, you have held broken packages"

I am trying to install GNOME in Ubuntu 16.04 but I get  Unable to correct problems, you have held broken packages.    I searched for this and tried to sudo apt-get update and upgrade, autoremove, clean, all those commands, but it's not working.    I also tried using aptitude to install GNOME but it didn't install well.  How can I fix it?


Code Scanner Report Query: XSRF Apex Serious Security Risk

I ran CheckMarx security code scanner and found this 1 security risk issue for a Button on Opportunity that opens a VF page (generates pdf).  From the code report, here is the issue mentioned.  Can someone explain in detail? It highlighted the 2 lines below.  XSRF result path 1   Object: createquote in file: /pages/Print_Contract.page  L 4: showHeader="false" action="{!createQuote}">   Object: insert in file: /classes/ContractController.cls  L 93: insert quotelineItems;   Is this related to running DMLs on action method of the page? If yes, then what are the alternatives? I don't want users to do an additional manual step after clicking the button.


~$ sudo apt-get install --fix-broken Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  console-setup : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed console-setup-linux : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed initramfs-tools-core : Depends: initramfs-tools-bin (= 0.122ubuntu8.17) but 0.136ubuntu6.3 is installed libdpkg-perl : Depends: dpkg (>= 1.18.11) python-lazr.restfulclient : Depends: python-httplib2 but it is not installed python3 : PreDepends: python3-minimal (= 3.5.1-3) but 3.8.2-0ubuntu2 is installed           Depends: libpython3-stdlib (= 3.5.1-3) but 3.8.2-0ubuntu2 is installed python3-cairo : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed   python3-distutils : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed python3-gdbm : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed  python3-lib2to3 : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed   python3-renderpm : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed  python3-reportlab-accel : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies


Insert a new line without \newline command

I'm searching for inser a new line just push the "enter" button on the keyboard.  Is there a solution?  This is the "boring" way:  \section{mySection}     My really really really long text.\newline     A new text line.   This is instead a shorter and really less boring way:  \section{mySection}     My really really really long text.      A new text line.   And this last solution is that i adopted, but if in a really long text it will create a lots of white space on the latex editor, and this is not really nice for me.  Is there a way to create a new line just with the following code?  \section{mySection}     My really really really long text.     A new text line.


Is there a way to add a directory to my PATH in zsh only if it's not already present?

Is there an easy way in zsh to add a directory to my PATH only if it's not already present? (or, more generally, any environment variable). I've tried:  PATH+=/my/directory   ... but if that's executed twice, it gets added twice.


First, a little motivation: I have read the section on Group Actions in Dummit & Foote, the wikipedia page, and (countably many) other references. And seemingly without exception, they only offer rote and/or abstract examples, such as:   Let $ga = a$ for al $ g \in G, a \in A$ The symmetric group $S_N$ acting on $A$ by $\sigma \cdot a = \sigma(a)$ Something about regular n-gons and $D_{2n}$ $g \cdot a = ga$...   I don't mean to undermine the importance of these examples, but I'm left with no hands-on experience with these things. Exercise $\S$ 1.7.8(b) in D&F says: "Describe explicitly how the elements $(1 \  2)$ and $(1 \ 2 \ 3)$ act on the six 2-element subsets of $ \left \{1, 2, 3, 4 \right \}$. How does a three cycle permute two elements?       Furthermore, what are some concrete examples of (computational exercises of) group actions?     Thanks.


why cant i break blocks in Minecraft but still kill animals?

see I am in creative mode and tried doing the mouse button 1 attack but that still didn't work, I am in creative mode playing with a friend, well at least trying. so I am in multi player, I also kicked my friend outta the game to see if it would work with just me but it didn't. And also i tried the command to creative. it did nothing because I was in creative already so if someone could help me that would be great! otherwise ill just wind up deleteing the world.


Why does tikz not plot this even function correctly?

Can someone provide an explanation and a fix for the fact that my plot is not what is expected? The function is symmetric with respect to the y-axis. The plot correctly shows the function for positive values of x, but not so for negative values. Here is my code:  \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \usepackage{fouriernc} \begin{document} \begin{tikzpicture}[>=latex,x=1.3cm] \fill[fill=lightgray] (0,0) -- plot[domain=0:1,samples=100] (\x,{sqrt(abs(\x))-\x^2}); \fill[fill=lightgray] plot[domain=1:2,samples=100] (\x,{sqrt(abs(\x))-\x^2}) -- (2,0); \draw[thick,domain=-1:2.2,samples=100] plot (\x,{sqrt(abs(\x))-\x^2}) node[right] {\footnotesize $f(x)=\sqrt{|x|}-x^2$}; \foreach \x in {-1,1,2,3} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; \foreach \y in {-3,-2,-1,1} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; \draw[->,thick] (-2,0) -- (4,0) node[above left]{\footnotesize $x$}; \draw[->,thick] (0,-4) -- (0,2) node[below right]{\footnotesize $f(x)$}; \end{tikzpicture} \end{document}   Here is what I get with this code:


Who are the Hydra members in Ant-Man? How are they so rich?

In Ant-Man, some Hydra members come to buy Cross' suit. However, Age of Ultron and Agents of S.H.I.E.L.D. stated that Hydra is in disarray, with all of the top ranking members either dead or imprisoned. So who are the Hydra members in the film? Who sent them?  Additionally, Cross states this:     We're anticipating 15 billion   How could Hydra afford to pay that much?


I updated QGIS to version 3.6 using OSGEO4w  When I try to run any GRASS script, I get the following error message :        This algorithm cannot be run :-(  The specified GRASS 7 folder   "C:\OSGEO4~1\bin\bin" does not contain a valid set of GRASS 7 modules.   Please, go to the Processing settings dialog, and check that the GRASS   7 folder is correctly configured   It looks like the path doesn't exist, but I couldn't find a place to change it; it is not an option in the processing settings any more like in versions 2.x.   Is there a way to run those processing scripts in QGIS 3.6 and if so, how could I tweak the settings needed?     Edit : Here is what my processing options looks like


What is a valid trigger for a Ready Action?

I'm the DM of this game. During one of our games the party where fighting goblins and our Ranger said that he wanted to "Use his Action to Ready, and attack when the foe move". He meant move not in the mechanic way, but rather as soon as the goblin took any action whether that was moving or attacking. I said that he can't and that he should be more specific when declaring what triggers his reaction. This left me thinking.  The PHB isn't exactly clear but the examples it gives are for very specific triggers as in "if the cultist steps on the trapdoor..." or "if the goblin moves next to me...". Can our Ranger declare the Reaction the way he wanted and essentially take a delayed action? He is not getting any additional actions as the Ready is an action by itself and would be losing his reaction if he does take the trigger.   So how specific does a Ready trigger need to be?


I have been a witness to many a discussion about numbers to the power of zero, but I have never really been sold on any claims or explanations.  This is a three part question, the parts are as follows...    1) Why does $n^{0}=1$ when $n\neq 0$?  How does that get defined?  2) What is $0^{0}$?  Is it undefined?  If so, why does it not equal 1?  3) What is the equation that defines exponents?  I can easily write a small program to do it (see below), but what about in equation format?    I just want a little discussion about numbers to the power of zero, for some clarification.    Code for Exponents: (pseudo-code/Ruby)  def int find_exp (int x, int n){     int total = 1;     n.times{total*=x}     return total; }


How to work with an overly positive advisor?

I'm in my second year of my PhD and my advisor is very, very positive. She never gives me negative feedback, even when I objectively have made a mistake.   For instance, two months ago, I noticed that I had made a mistake in my code that invalidated about 6 months of work. She wasn't even mad, saying things like "everyone makes mistakes" and "we can fix this." I was able to redo the analysis and still find interesting results, so it did more or less work out. But this is just one example of how positive she is.   Last year she encouraged me to apply to an university internal poster session and strongly suggested that it was highly probable that I would win one of the prizes offered. I did not win, nor do I feel like I was that close to winning. I was a first year student competing against fourth and fifth years.   Additionally, she is always happy with whatever I present to her. I'll admit, some weeks I do not produce much work, sometimes I'm slow to give her abstracts to review for conferences, etc, but she is always happy with whatever I give her.   She praises me excessively for every little thing, no matter how good or bad. She says "excellent work, great job, you're making fantastic progress." I get the same exact level of praise on the weeks I do a lot of work and weeks I do little work.   I'm used to working with PIs were much more blunt. Not necessarily negative, but told me how I was doing. If I didn't do much work, they would say "that's all you've done?" However, if I actually did a good job, I would get a "good job" or something.   It's very hard for me to manage my expectations with my advisor. I don't know if I am actually doing a good job or not. I don't know what my approximate actual chances are for awards and acceptances to conferences.   I'm afraid to ask her to be more blunt, because I'm afraid she would completely switch and criticize me too much.   How can I manage my expectations and work better with my perpetually positive professor?


Area of mesh moving along bone despite not being weight painted

I have made a simple character model and am adding a skeleton to it, so i can use it as reference and so i can get a feel for how rigging and weight painting are.  The white box (Shoulder_L) has weight and is the one linked to the bone that's within it, however for some reason some vertices in the right arm move when i pose the shoulder, despite not having any weight.   (The area within the circle is where the vertex that moves is located)  Blend File


I am using this regular expression  /(?!results)/i   As far as I understand, it will match any string that does not contain the word "result". However, when I try  /(?!results)/i.test('basketball results')   it returns true. How do I match strings that do not contain the word results?


Naive proof that $\sum_{n=1}^{N-1}\cos(2\pi\frac{n}{N})=-1$

As part of a larger proof, I must show that:  $$\sum_{n=1}^{N-1}\cos(2\pi\frac{n}{N})=-1$$  I have thought about this but can't figure out how to get my hands on the value since I don't know any relations between sums of sinusoids and other stuff.  My gut feeling is that this is fairly obvious.    I can't use exponents because the proof this is a part of is showing that $1+\sum_{n=1}^{N-1}z^n=0$ for $z$ on the unit circle, and this argument would require the assumption.  I was thinking of using an argument similar to this:      Consider $\sum_{n=1}^{N}\cos(2\pi\frac{n}{N})$. Notice that $\cos(2\pi\frac{n}{N})=-\cos(\pi-2\pi\frac{n}{N})=-\cos(2\pi\frac{N/2-n}{N})=-\cos(2\pi\frac{3N/2-n}{N})$ so all the terms on the first half of the sum cancel (due to the 2nd-to-last identity), and all the terms on the second half cancel (due to the last identity).   However, formalizing this gets hairy when considering $\floor{\frac{N}{2}}$ that are odd. Is there a simple way to fix my argument?


My PHP web version is different from the recently installed CLI version, in a different way than previously reported

I have the opposite question from  My question is different from that one because I'm getting the expected PHP for the CLI and the wrong one for my local web server. Also, the solution offered there (changing the the path to the "LoadModule" in apache2/httpd.conf) does not work for me because the PHP version installed by brew has no analogous .so file to go in LoadModule.  I was running PHP 5.5 on Mac El Capitan. I am trying to run Craft CMS on my local machine, which requires mcrypt, which is installed with PHP 5.6 and above.  Using brew, I installed PHP 5.6.  But when I run phpinfo(); in my Craft folder I am still on PHP 5.5.  If I go to the command line and say which php, I get:  php is /usr/local/bin/php php is /usr/bin/php php is /usr/local/bin/php   Then, /usr/local/bin/php -v gives me: PHP 5.6.30 (cli) (built: Mar 11 2017 09:56:18)  and /usr/bin/php -v gives me:  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so, 9): image not found in Unknown on line 0 PHP 5.5.36 (cli) (built: May 29 2016 01:07:06)   The only place I know PHP is called for the server is in etc/apache2/httpd.conf, where it's called by uncommenting LoadModule php5_module libexec/apache2/libphp5.so.  The brew PHP is in /usr/local/Cellar/php56, but there is no .so file there.  I also have homebrew.mxcl.php56.plistin ~/Library/LaunchAgents, copied from the brew install.  The php.ini file is still the same one from the etc folder.  What should I do to load the newer PHP 5.6 instead of the standard PHP 5.5?


Stop the Windows Store Icon from always coming back

Is there a way to keep the Windows Store Icon from always coming back pinned to the Task Bar? It seems like every update it comes back. Very annoying.  Can I just uninstall or disable the stupid store?


Can I grapple someone and drag them while riding on my horse?

Can I ride up to an enemy on my horse, grapple him and then drag him using the horses half movement speed?


I created my SSO credentials as requested to download the Ubuntu Core 16 image for Raspberry Pi3. I downloaded the image and wrote it to the SD card. Boot the device from it, but as cannot login to the image running on the Pi3. I tried @localhost and from another device on my network with: ssh bert2694u@my-pi3-ipaddress It asks me for the password, but the password is invalid, either if I just press enter or put in my UbuntuOne account password.  Please advise. Thank you Albertus de Wet


chkrootkit says /sbin/init is infected, what does that mean?

I recently ran chkrootkit and got the following line:  Searching for Suckit rootkit...                   Warning: /sbin/init INFECTED   What does this mean exactly? I heard this was a false positive, what is exactly happening.  Please and thank you.


What is the proof of $\mathbb{E}\Phi (X) = \Phi\left(\frac{\mu}{\sqrt{1+\sigma^2}}\right)$, where $X \sim \mathcal{N}(\mu,\sigma^2)$?

Let $X \sim \mathcal{N}(\mu,\sigma^2)$. I think it's true that  $$\mathbb E \Phi(X) = \Phi \left(\frac{\mu}{\sqrt{1+\sigma^2}}\right)$$ where $\Phi$ is the cdf of standard normal.  This holds up under simulation: if you run the R code  set.seed(1) mu <- rnorm(1) sigma <- abs(rnorm(1)) number_of_simulations <- 1e5 simulated_result <- mean(pnorm(rnorm(number_of_simulations,mu,sigma))) analytical_result <- pnorm(mu*sqrt(1/(1+sigma^2))) abs(simulated_result - analytical_result)   you should get a number close to 0.  Let $f$ be the pdf of $X$. We have  $$\mathbb E \Phi(X) = \int_{-\infty}^{\infty}\Phi(x)f(x)\,dx$$  which doesn't look trivial to solve. Is there a proof or a well known result that can prove this? Or is there a good intuitive explanation of it?  The question originally arose from the Merton framework for credit risk. Define $$Q = \frac{B - \sqrt{\rho}Z}{\sqrt{1-\rho}}$$ where $Z\sim \mathcal{N}(0,1)$ then we get $\mathbb E\Phi (Q) = \Phi(B)$ which is equivalent to the formula in this question.


What is the easiest way to rearrange pages in a PDF document?

Mac's Preview can be used to rearange pages in a PDF document by simply  the pages around in the side panel. Is there any equivalent tool for Ubuntu? I have noticed, that the Document Viewer, which comes with Ubuntu, also has this nice side panel. However, it cannot be used to manipulate a PDF document. If there is no drag-and-drop solution, what is the easiest way to rearrange pages in a PDF document?


Back button goes to tags instead of questions about a selected tag

How to reproduce:   Search by tags. Select arbitrary tag. Select arbitrary question Go back (either navigation button or phone button)  Expected: get back to tag search results (questions list). Actual behavior: getting back to tags.   Nexus 5  Android 6.0.1  App version 1.0.83


I'm writing a 2d space game, and I want the players to be able to 'orbit' objects and other players (if they're fast enough, of course), but I'm having trouble coming up with the right way to think about this physically (I never took physics, so this part is hard for me).  Note that this is not a 'realistic' space sim -- more like boats, really, so I don't want to do this by having the objects actually have enough gravity to force the orbit normally, because that'll make players that didn't press the 'orbit' button get sucked in and not be fun.  Also, do note that the objects players are trying to orbit may themselves be trying to orbit another object or even be mutual orbits.  I'm using the RK4 integrator right now, though if that needs to change, I'm totally up for it.


I've been working on this task (see screenshot).     Here's my answer to it so far:  var sum_pairs=function(ints, s){   //your code here    var ptr_1 = 0,       ptr_2 = 0,       i = 0,       j = 0,       len = ints.length,       j_min = len,       arr_sum = [];    for (i; i < len-1; i++){     for (j = i+1; j < len; j++){       if(ints[i] + ints[j] === s){         if (j < j_min){           j_min = j;           arr_sum = [parseInt(ints[i]), parseInt(ints[j])]         }       }     }   }  return ( (arr_sum.length === 0)? undefined : arr_sum );   }   However, while the tests all pass, it throws an STDERR about 'optimising the code':    How might I be able to optimise my code further?


The scale option of \includegraphics does not work after changing the document class

After .cls file changes,  \includegraphics[scale=0.5]{img/GoalHierarchyMetaModel.png} command gives the following error.  ! Package keyval Error: scale=0.5 undefined.  See the keyval package documentation for explanation. Type  H <return>  for immediate help. ...                                                l.6 ...[scale=0.5]{img/GoalHierarchyMetaModel.png}    can be accessed from google drive in .  main_e.tex is the working one, main_m.tex outputs error above. Only difference between those files is documentclass.   main_e.tex uses  \documentclass[conference]{IEEEtran} main_m.tex uses \documentclass[chaparabic,ceng,phd,12pt,oneandhalf]{metu}


Allowing a user to delete a file but not to read it

Is there any permissions configuration that allows a user to delete a file but not to read from it or to write to it?


Do synonyms have exactly the same meanings as each other in all contexts?

I have a question about synonyms: I'm wondering for quite a while if synonyms always stand exactly for the same thing. Is there sometimes a little difference in meaning? Let's use clumsy and clunky for example. Can I always replace clunky with clumsy? Since I'm not a native speaker, as you may have noticed, I cannot tell them apart. According to my dictionary, they mean exactly the same. Is it always true?  If the question has already been ask, sorry I couldn't find it.  Edit: Thank you very much! Every answer has helped a lot and thank you so much for it. I really appreciate it. I've voted all your answer because every answer helped me in a different way. I've accepted Barrie England's answer because it was the best one in my case. But all of yours were really good and helpful :)


link to another answer from within your answer (on the same post)

Any way to link another person's answer to the same post from within your answer to the same post?  I tried the following:  I took the share link of the OP's post put it in the browser tab to get the complete (redirected) url. I copied that url and added it as a link to my post. However, on clicking on that link, I was expecting the web page to scroll. Instead I got a round trip, and the page refreshed.


How to define Lightning CSS based on resolution?

I'm trying to hide/show iteration header based on screen resolution. Need the header to be hidden at low resolutions.  I'm not sure if my approach is right.  Markup  <div class="hideinlowres">      header text! </div>   CSS  .THIS {       .hideinlowres{       display: block ;       @media only screen and (min-width: 30em) {         display: none;       }     } }   This has a parser error. What would be the correct way to hide the Lightning component div based on resolution.  Appreciate any help on this.  Thanks.


I have this code for a tikz figure:  \documentclass{article} \usepackage{pgf} \usepackage{tikz} \usepackage{graphicx} \usepackage{subcaption} \usetikzlibrary{arrows,automata} \usepackage[latin1]{inputenc} \definecolor{mycolor}{RGB}{0, 85, 128} \definecolor{colorforline}{RGB}{0, 26, 0} \begin{document}     \begin{figure}         \centering     \begin{tikzpicture}[auto,node distance=2.8cm,thick]     \tikzstyle{every state}=[fill=mycolor,draw=none,text=white]     \tikzstyle{myarrows}=[line width=1mm,draw=mycolor,-triangle 45,postaction={draw, line width=3mm, shorten >=4mm, -}]     \node[state] (A)  {$A$};     \node[state]         (B) [below left of=A] {$B$};     \node[state]         (C) [below right of=B] {$C$};     \node[state]         (D) [below right of=A] {$D$};     \node[state]         (E) [above right of=D,xshift=-1cm,yshift=0.6cm] {$E$};     \node[state]         (F) [right of=C,yshift=0.3cm,xshift=1cm] {$F$};      \path      (A) edge[above,color=mycolor]     node {3} (B)     (B) edge[above,color=mycolor]     node {5} (C)     (C) edge[above,color=mycolor]     node {2} (D)     (D) edge[color=mycolor]     node {1} (E)         edge[above,color=mycolor]     node {4} (A);     \draw [myarrows] (5,-2) -- (6,-2) node [right]{$$};     \end{tikzpicture}     \end{figure} \end{document}   Which results in the following output:   I want something that looks like the following figure:   Please note that in the last picture with sub-figures I am just reusing the code for the same tikz picture that I added above. So please use that.


Finding a "Principle of Least Action" equivalent statement for Hamiltonian Mechanics

The least-action principle is a statement in classical physics saying that all bodies in a system follow a trajectory that minimize the following functional (ignoring explicit time dependence for now): $$ S[L] = \int dt L(x(t), \dot{x}(t)) \qquad\rightarrow\qquad  \frac{d}{dt}\Big(\frac{\partial L}{\partial \dot{x}}\Big) - \frac{\partial L}{\partial x} = 0. $$ The Hamiltonian of the same system can be constructed using the Legendre transform: $$ H(p, x) = \dot{x}\cdot p - L(x, \dot{x})\;;\quad p \equiv \frac{\partial L}{\partial\dot{x}}. $$ Pedagogically, one first studies Lagrangian Mechanics starting from the least-action principle, and eventually constructs an equivalent Hamiltonian Mechanics framework. But suppose I was a weird physicist who wanted to teach Hamiltonian mechanics first, and then later construct Lagrangian Mechanics. What would be the best way to do this?


"Failed to download repository information" error

I have recently installed ubuntu 11.10. But when i try to install a software it tries to 'updating cache' but after a while, it stops, showing:                            Failed to download repository information                           Check your internet connection   so, now i am totally unable to install any software in my ubuntu.  Please,let me know how to solve the problem.


I'm writing an html5 web page to store input from users in a MySQL database. The web page has tags <html lang="en">, <meta charset="utf-8"> and <form ... accept-charset="utf-8">.  I'm using PHP 5.4 and MariaDB 5.5.44. The database's character's set to UTF8. The table's character's set to UTF8. Collation is set to utf8_general_ci.  Why am I getting weird characters in my database? E.g. when I upload "á" it becomes "Ã¡"?  I'm pretty much a noob at coding and the docs go above my skill level.


Question about differentiability at an interval.

Let $f:(0,\infty)\to\mathbb R$ be a differentiable function for which $f'\left(x\right)\cdot f'\left(\frac{1}{x}\right)<0$ for every $0<x\ne1$. Then $f'(1)=0$  I have this question, and I was wondering how to switch the fact the f is differentiable for every positive x into differentiable in a chosen interval that will help me with my proof.. I tried to make quiet a general interval in $[\frac{1}{x},x]$ but I'm afraid that I can't acctualy do that, and that it's not accurate.. d. True We know $f$ is differential in $(0,\infty)$, therefore $f$ is also differentiable in the interval $[\frac{1}{x},x]$ for any $x ∈ R$ such that $0<\frac{1}{x}<1<x$. Since $f'\left(x\right)\cdot f'\left(\frac{1}{x}\right)<0$, by Darboux's theorem there exist a point $c ∈ R$ such that $\frac{1}{x} < c < x$ and $f'(c)=0$. Assume toward contradiction that c ≠ 1, then  we have $f'\left(c\right)\cdot f'\left(\frac{1}{c}\right)<0$. But since $f'(c)=0$, we have $0 \cdot f'\left(\frac{1}{c}\right)<0 \ \ \ ➜ \ \ \ 0 < 0$. Contradiction! Therefore $c = 1$ and $f'(1) = 0$.


Should we trust a journal article that does not cite any previous work?

My area of interest is not so well-researched in the US, but it attracts more interest in some developing countries where the topic is more relevant, but also where academic standards tend to be different, and I must proceed with much more caution.  In EBSCO, recently my searches have turned up a number of articles published in journals abroad that either: (1) contain no in-text citations, but present entries in the reference list related to material discussed earlier in the paper or (2) contain no citations at all and no reference list at the end.  Is the lack of citations in an article sufficient criteria for casting aside a paper, even if I think some of the ideas relate to a paper I am writing?


How to associate the PNG/JPG Edit context menu with Paint.NET?

Right now, when I right-click on a PNG or JPG, I get the Edit context menu which takes me to MSPaint.  How can I associate the Paint.NET with the Edit menu?  I've tried Tools/Folder Options/File Types, but I don't really see anything there.    Note that it says to click Advanced, but I don't see the Advanced button.  Also, the caption does not even refer to the right file type, so something is clearly corrupted.  I am seeing the same issue with the JPG entry.


This is an old question that I have come back to fix/edit, the essence of the question was how to implement a timer properly which has been answerd many times, so i have marked this as a duplicate  Link to a good answer for implementing a timer:


On my way to work which is about an hour drive I had brought along my protein shake which contains 16oz of milk. The whole car ride was nice and cool due to the ac. Once I got to work I accidentally left it out for another hour in the car. I just grabbed it and put it in the freezer so it will cool. It did not smell bad. Is this still okay to drink? Or has it been too long?


I really want to get rid of it. I've been through the whole companion’s quest line and cured Kodlak's. I killed all 5 witches and have 4 of the heads left in my inventory.  I've been back to that same flame and tried to use it with the head, but nothing going; activating it does nothing. I've heard this is how you cure it; however I have not heard a first-hand account of anyone actually curing it.  If you have, can you explain what you do? Do you go to the same tomb where you fought Kodlak's beast form? Do you do something special with the witch head in your inventory, or just have it in there and activate the harbinger flame or whatever?


How to install on Ubuntu Server 12.04.5 amd64 imagemagick:i386?

Help me please!  apt-get install imagemagick:i386 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  imagemagick:i386 : Depends: libmagickcore4:i386 (>= 8:6.6.9.7) but it is not going to be installed                     Depends: libmagickwand4:i386 (>= 8:6.6.9.7) but it is not going to be installed                     Recommends: libmagickcore4-extra:i386 but it is not going to be installed E: Unable to correct problems, you have held broken packages.


Differences between LuaTeX, ConTeXt and XeTeX

I’m interested in the differences and commonalities between the “new” (La)TeX processors:   , , and .   Personally, I’ve only used XeTeX so far and without having the time to try out all three systems, I’m having a surprisingly hard time setting them off from one each other.  As I understand it, these systems are actually very different in some regards. So I’m explicitly asking for strengths and weaknesses in every-day use (whatever that is), rather than very special scenarios.  (I’ve already asked a  on Super User some time ago.)


Check whether an array is a subset of another

Any idea on how to check whether that list is a subset of another?  Specifically, I have  List<double> t1 = new List<double> { 1, 3, 5 }; List<double> t2 = new List<double> { 1, 5 };   How to check that t2 is a subset of t1, using LINQ?


Is there a way to invoke the parent of a parent in Java

(Just a theoretical question, I don't see a direct practical use)  Is there a way to do something like:  super.super.someMethod()   In Java?  super.someMethod()   exists, why not be able to invoke the super class of a super class?  (of course you can create a method:  protected void someSuperMethod(){     super.someMethod(); }   In the super class and invoke that in the child class having the same effect, but is there a direct way of doing that and, if not, why?)  S.


Loop cutting parts of an object instead of the whole object in Edit Mode

I have the below objects in two different versions of a blender file I'm working on. However when I click loop cut in Edit Mode with nothing selected, in one version (left image) I can cut the object as a whole. In the other (right image), it allows me only to cut parts of the object. I'm not sure why.    I read one post that indicates I can only use loop cut when an object has four faces, however mine has the ribbon in the middle and on the left version cuts fine.  Can someone explain why this is the case? Sometimes loop cut allows me to cut an object in half all the way around and sometimes not.


Scenario: You're going to buy a/an SSD.  Do you use "a" or "an" before an abbreviation that is pronounced with a vowel first, but written with a consonant first?  When spoken, you would say "an ess-ess-dee", but when written, should you use "a SSD" because there's actually a consonant as the next letter?


I wanted to add a Isocam into my scene so I searched for it online and what I found out is here: But It says to install it from prefrences but when I open the given link I find out that it show a script That is here:  But I don't know how to apply into it? Can someone give me direction? here Isocam tool also not shows up and it shows blender 2.8x required when I have 2.90.2


How to hide partial portion of subsection heading in table of contents

Let us consider the following scenario.  If I write like the following, it will appear in table of contents as "Hai Hello".        \subsection{Hai Hello}   But I want to hide "Hello" in table of contents. The table of contents have to show only "Hai".  How can I do this?


What could be the correct idiom for expressing that someone is baking up false allegations without evidence?

Are "barking up the wrong bush" or "sailing on the wings of imagination" close?


How do I make a digital certificate available to LibreOffice Writer for digital signatures?

I obtained a client certificate from CAcert through Firefox. I want to use that certificate to sign a document created with LibreOffice Writer.  In Writer, I click File > Digital Signatures... to get the Digital Signatures dialog which is supposed to show the list of certificates available. The list is empty.   How can I make the certificate, which I obtained via Firefox, available to Writer?


A simple question on a ᴘᴄ. But on Android, even the official reader doesn’t allows it.  This is for reading the video inside/with the ᴘᴅꜰ, not extracting it.


Is there any way to print value inside variable inside single quote?

Consider I've set variable site and needs to be printed by echo or printf, but If I use single quote to write something and want to use variable then how?  Example:  $ site=unix.stackexchange.com $ echo "visit:$site" visit:unix.stackexchange.com   But If I use single quote:  $ echo 'visit:$site' visit:$site   Then we know that '' is strong quote and will not expand the variable   I've tried something:  $ echo 'visit:"$site"' visit:"$site"   but do not succeed. So, I am looking for way to print value inside variable while using single quote.


when I try to apt-get update I'm getting the below error,  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/


lists Worf's 'home town' where he grew up as Minsk,  states no such thing, and in fact he was from Gault (a farm world). The question is, has he ever been to Minsk?  Related question


Use Function Keys without pressing the fn button in the mac keyboard?

I am using an Apple keyboard. To get the default functionality of the function keys, I need to press fn+Function key. This is quite annoying since I frequently use the function keys for debugging. Is there any way I can get the default functionality out of the function keys, i.e., get the effect of pressing the Fn key without having to actually press it?


Ubuntu Won't Boot After Install on Samsung NP915S3G: error "All boot options are tried."

So yesterday I went ahead and bought the Samsung NP915S3G (ATIV Book 9 Lite) and installed Tahr in hope that everything would go smoothly. For the most part it; everything necessary seems to work off the bat. Unfortunately when I restart it, nothing boots. I erased Windows so that's obviously not an option, but the computer seems pretty dead certain that there's nothing there to boot. I think this might have a lot to do with UEFI which is a field I have next to no experience with. There also seems to be a fat32 partition that consistently reappears when I delete it.   Any help is much appreciated, thanks.


I use LaTeX for writing books. I would like to extend my working environment and, I was wondering if it is possible to read (or much better - edit) tex files containing text only on an ipad? I know that there are a few LaTeX editors for the ipad out there. But, I use Aquamacs as my main writing editor and, LuaLaTeX as the writing medium. I do not want the file format changed in any way. Does anyone have any ideas? I thought of using say, Dropbox and then being able to open the file on the ipad, add a sentence or two, correct a few spelling errors say then, send the file back to Dropbox. Is this possible?


Adding field to PostGIS Layer with PyQGIS

I'm having trouble adding a field to a PostGIS table using PyQGIS. Here's my code:  from PyQt4.QtCore import QVariant from qgis.core import *  inLayer = iface.activeLayer() provider = inLayer.dataProvider()  # add field field = QgsField('test_field', QVariant.String) inLayer.startEditing() provider.addAttributes([field]) inLayer.updateFields()  # commit inLayer.commitChanges()   The commit fails and the PostGIS log shows an error:     2015-10-27T08:13:28    1   Erroneous query: ALTER TABLE "received"."env" ADD COLUMN "test_field"  returned 7 [ERROR:  syntax error at end of input      LINE 1: ALTER TABLE "received"."env" ADD COLUMN "test_field"    Seems the call to PostGIS fails to include the column type. Is this a bug, or am I going about this the wrong way?


I know I can make tabular less cramped by changing \arraystretch, but what I really want is to make sure there are some fixed paddings above and below row contents, like what \tabcolsep does.  For example, I want to have more space for the 2nd row only:  But \def\arraystretch{2} gives me:  which IMO doesn't look elegant.


What does this blue dot in the Dock in Mojave mean?

I have this pale blue dot above Firefox (I have seen in on other apps also.)  I have only noticed this in Mojave.   What does it mean?  My Dock is in the vertical position.    Here is is in the horizontal position:    More info from Dock:  $ defaults read com.apple.dock.plist | grep "file-label"                 "file-label" = Siri;                 "file-label" = Launchpad;                 "file-label" = Safari;                 "file-label" = Mail;                 "file-label" = Contacts;                 "file-label" = Notes;                 "file-label" = Reminders;                 "file-label" = Maps;                 "file-label" = Photos;                 "file-label" = Messages;                 "file-label" = FaceTime;                 "file-label" = Pages;                 "file-label" = Numbers;                 "file-label" = Keynote;                 "file-label" = News;                 "file-label" = iTunes;                 "file-label" = Books;                 "file-label" = "App Store";                 "file-label" = "System Preferences";                 "file-label" = iTerm;                 "file-label" = Downloads;                 "file-label" = "Workspace ONE Intelligent Hub";                 "file-label" = "Activity Monitor";                 "file-label" = Firefox;


I am not able to prove it with euclidean evaluation $$ d(m+n\sqrt{7}) = |m^2 - 7 n^2 |$$. Is there any other way?


smooth $C^\infty$ anywhere but analytical $C^{\omega}$ nowhere function

There is function which is smooth but not analytic in one point. Such as  $$f(x)=\exp(-1/x^2)$$  Does there exist function that is smooth $C^\infty$ anywhere but analytical $C^{\omega}$ nowhere ?   If exist, give an explicit example. If not, how to prove?


Why didn't Sauron signal the Orcs that Frodo and Sam were at Mount Doom?

Sauron literally put his eye directly on Frodo and I'm sure he knew Frodo had the Ring, and even if he didn't, why didn't he signal the Orcs to go after Frodo and Sam?  He literally just let them pass.  I mean, even if he did, by some miracle know that Gollum was following them, why would he trust Gollum with taking down two hobbits?  Does he think the Orcs would take the Ring? If so, how does he think he'll get it anyway, he doesn't have a physical form.


Find the result of the $\lim_{n\to+\infty}\frac{\sum_{k=1}^{n}\frac{1}{k}}{\ln n}$

Does there exist an alternative way to demonstrate and evaluate the result of the following limit without using an asymptotic expansion? $$\lim_{n\rightarrow+\infty}\dfrac{\displaystyle\sum_{k=1}^{n}\dfrac{1}{k}}{\ln n}$$ Using a spreadsheet presumably the result of the limit is $1$, and watching other posts like  and  related about Euler-Mascheroni constant $\gamma$, the result is obtained immediately. $${\displaystyle \lim_{n\rightarrow+\infty}\dfrac{\displaystyle\sum_{k=1}^{n}\dfrac{1}{k}}{\ln n}=\lim_{n\rightarrow+\infty}\dfrac{\ln n+\gamma+O\begin{pmatrix}\dfrac{1}{n}\end{pmatrix}}{\ln n}}=1$$ Is that correct? However, I would like to know if there is other way to calculate that result using calculus in a context of firsts courses of engineering careers. Maybe with convergence criteria for series?


Calculating Mean and Sum in QGIS Zonal Statistics?

When a polygon intersects more than one pixel, and each pixel within the polygon occupies a different area, does the mean take into account the area of each pixel and its correspondent value (i.e. weighted average)?  When I used Zonal statistics to determine the sum of precipitation in each sub-basin, the sum of precipitation for those sub-basins smaller than a pixel was lower than the value of each pixel that intersected the polygon (e.g. the sum of precipitation for the polygon was 50 while the value of precipitation of the pixels that intersected it was 300 and 150).   Does it consider the area of the pixel in the polygon to calculate the sum? (i.e. if only half of the pixel intersects the polygon, only half of its value is summed?)


I have a computer with two hardrives. One of them has windows 7 installed on it. The other is blank and formated. I was wondering how I can install ubuntu onto the second hardrive but not the first.


Does the following have a solution for f(x,y)?

I have the following equations: \begin{equation} {1\over f(x,y)} {\partial f(x,y) \over \partial x} \alpha(x,y) + {1\over f(x,y)} {\partial f(x,y) \over \partial y} \beta(x,y) = \gamma(x,y) \end{equation} Where $\alpha(x,y)$, $\beta(x,y)$ and $\gamma(x,y)$ are exactly known functions. What I need to find is $f(x,y)$. Can anyone help me find a solution? Or are there any assumptions (other than $f(x,y) = g(x)h(y)$ that will allow me to solve this analytically? Is it a standard equation that I haven't come across? Many thanks guys!


I've got PSD file with vector logo (smart object). I need to save it as SVG for website use. I don't see such option directly in Photoshop though.  Can anyone shed some light on the process? Is it possible?


failed installing libamd2.2.0, libumfpack5.4.0 and libatlas-sse2-dev

I have a script I run on erach new machine I own, that installs somethings I need.  For some reason, on a dell Inspiron 3542 with Ubuntu 14.04, the following fails:  $ sudo apt-get install libamd2.2.0 libumfpack5.4.0  libatlas-sse2-dev    with the errors:  Reading package lists... Done Building dependency tree        Reading state information... Done Package libatlas-sse2-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Unable to locate package libamd2.2.0 E: Couldn't find any package by regex 'libamd2.2.0' E: Unable to locate package libumfpack5.4.0 E: Couldn't find any package by regex 'libumfpack5.4.0' E: Package 'libatlas-sse2-dev' has no installation candidate   BTW,I did try sudo apt-get update first.  With other computers this always worked for me before. How can I fix that?


I find the output of XeLaTeX excessively verbose. I am really just interested in errors (not warnings), and the offending line number. I also would like xelatex to halt (exit) on error. Is there a magic incantation that can produce this?


Prove by induction that $3\mid n^3 - n$.   I'm having an argument with my professor whether my exam was right or not. Before I sign a formal complain to get a review on my exam, I'd like to be sure it's correct. My answer:  Proof by induction:  Proposition: $\forall n \in\mathbb{ N}$ (belongs to natural numbers), $3 | (n^3 - n)$;  Basic Step: $P(0) = 0^3 - 0$ is divisible by 3.  Inductive Step:     $p(n+1) = (n+1)^3 - (n+1)$      $= n^3 + 3n^2 + 3n + 1 - n - 1$      $= n^3 + 3n^2 + 2n$      $= n^3 + 3n^2 + 2n - (n^3 - n)$      $= 3n^2 + 3n$   By induction, $p(n+1)$ is true if:      $3\mid n$ and $3\mid m$ and $3 | n - m$     to prove that, assume that $n$ is $3p$ and $m$ is $3q$, therefore $3 | 3p - 3q$.  My professor wanted:     $= (n^3 -n) + 3n^2 + (2n + n)$


Windows command prompt freezing on focus

I have a few python scripts which contain no pause commands and no prompts for user input however I find that when I change my window focus to the Windows cmd window the output will freeze until I press 'Enter'.  Is there a know cause for this? Should I enable/disable a setting in the cmd options to avoid this?  A search of my case keeps bringing up cases of people wanting pauses in their code - which I do not.


Is there a formula for $\mathrm{LCM}(a,b,c)/a$ in terms of highest common factors only?

Let $a$ and $b$ denote integers.  To find $\frac{\mathrm{LCM}(a,b)}{a},$ we can use:  $$\frac{\mathrm{LCM}(a,b)}{a} = \frac{b}{\mathrm{HCF}(a,b)}$$ and compute $\mathrm{HCF}(a,b)$ with the Euclidean algorithm.     Question. Is there a similar formula that allows us to find $$\frac{\mathrm{LCM}(a,b,c)}{a}$$ using only arithmetical operations and highest common factors?


XML Parsing: Element Tree (etree) vs. minidom

I've been using minidom to parse XML for years. Now I've suddenly learned about Element Tree. My question which is better for parsing? That is:   Which is faster? Which uses less memory? Do either have any O(n^2) dependencies I should worry about? Is one being depreciated in favor of another?   Why do we have two interfaces?  Thanks.


In Linux copy file and overwrite only if target is older

How in Linux using cp one can copy file to destination, but if destination exists, then overwrite only if destination is older than source?  cp -f always overwrites, but overwrite is needed only if target is older than source.


Difference between "help + [infinitive]" with and without "to"

has an article discussing cases where an infinitive does not use the word "to."  One case is with many causative verbs like "make" and "let."     I want the water to run      *I want the water run      I make the water run.      *I make the water to run.   It is also the case with "perception" verbs.     I see the water run.      I hear the water run.   The site describes "help" as a special case that can be followed by an infinitive either with or without "to."     She helps me stand.      She helps me to stand.   My question, essentially, is why "help" is a special case that can either ellipse the "to" or not, and what the semantic implications of that choice are?  My hunch is that since one category of other verbs that do not require a "to" infinitive are causative, the choice of whether or not to include "to" has a semantic bearing on whether the subject in the sentence is perceived as a causal agent.    So in the example, "she helps me [to] stand," we would infer from the inclusion of "to" that the subject (she) is less of a causal agent than when "to" is excluded.  It seems possible that there are no broadly applicable implications from the inclusion or exclusion of "to" in an infinitive following "help," that perhaps it is an aberration by way of etymology or coincidence, but I've been unable to find sources that analyze the case beyond identifying it as an outlier.


Smallest topology containing all topologies

Let $\{T_\alpha\}$ be a family of topologies on $X$. Show that there is a unique smallest topology on $X$ containing all the collections $T_\alpha$, and a unique largest topology contained in all $T_\alpha$.   We can check that $\bigcap T_\alpha$ is a topology on $X$, so it is the unique largest topology contained in all $T_\alpha$.   Now, a topology containing all $T_\alpha$ must contain $\bigcup T_\alpha$. It must also contain arbitrary unions and finite intersections of sets in $\bigcup T_\alpha$. Since the union of the sets in $T_\alpha$ is $X$, this is the topology generated by the subbasis $\bigcup T_\alpha$. How can we prove that it is the unique smallest one containing all the collections $T_\alpha$?


Install ubuntu on laptop ( works to be done afterwards)

I wish to install Ubuntu on my HP Pavilion g6-2232tx Notebook PC. What should I do? Also where do I get all the drivers from after installing Ubuntu. My laptop has a graphics card and altec lancing spekaers. 4 GB RAM and 500 GB HDD.


Starting the epsilon-delta definition of continuity from delta

The classical way the $\epsilon$-$\delta$ definition for continuity (limits) proceeds is by starting with a given $\epsilon>0$, and our ability to then find a number $\delta>0$, such that when $|x-x_{0}|<\delta$, we get $|y-y_{0}|<\epsilon$.   My question is: why cannot we do exactly the same definition but starting from a given $\delta$ (instead of starting with a given $\epsilon$)?   That is, why not say: given $\delta>0$, we can find a number $\epsilon>0$, such that when $|x-x_{0}|<\delta$ we get $|y-y_{0}|<\epsilon$ ?    Note: this question is different from other questions posted regarding the direction of implication of the definition (e.g. this )


Heisenberg uncertainty principle: If a particle is totally localized, does it go faster?

In Feynman's lectures on physics, volume I, section 6-5, Feynman states: $$\Delta x\cdot \Delta v \ge h/m $$  ($\Delta x$ is the width of the probability distribution of the location, $\Delta v$ is the width of the probability distribution of the velocity, $h$ is the Planck constant and $m$ the mass) and goes on to say the following:     Since the right-hand side of this equation is a constant, it says that if we try to "pin down" a particle by forcing it to be in a particular place, it ends up by having a high speed.    My question: Why should the particle have a high speed if it is very localized? To my understanding the Heisenberg uncertainty principle only states that the velocity probability distribution will be very spread.  clarification: I'm not asking how can the particle be moving if it is localized, as asked before , so this is not a duplicate to my understanding. My question is why should it go faster if it is more localized.


ssh to server and switch user and change a directory

I Need to ssh to a server then switch user and change the directory and then run a command. Now am doing ssh -t username@hostname "sudo su - otheruser && cd /path/to/directory && command". But this is not changing the directory it just switched the user and ran the command.


How correctly open window inside a thread?

I tried to open window from thread, but open window was frozen. Code in the first window(inside a thread):  MyProject.MainModuleWindow mmw = new MyProject.MainModuleWindow(); mmw.Show();   How to do it correctly?


I accidentally shot in jpg and I have some way too warm photos. What can I do with them?


What is the difference between a telephoto lens and a zoom lens?

Looking at the , I notice a distinction between telephoto lens and zoom lens.  What is the difference between the two?  Why would I want one over the other?  I  but remain confused about this distinction.  Please talk to me like I'm stupid. :) I am hoping for a completely lay explanation.  In particular, I'd like to understand in what situations I'd use a telephoto lens, and in what (other) situations I'd use a zoom lens.


I'm in doubt on how to make object initialization without a default constructor on the superclass.  #include <iostream>  class A { protected:       A(std::string title, int xpos, int ypos); };  class B : A { protected:     //Is that correct?     A* m_pA(std::string title, int xpos, int ypos);      //Why not just A* m_pA;?  public:     B(std::string title, int xpos, int ypos); };  B::B(std::string title, int xpos, int ypos) : m_pA(title, xpos, ypos) {     //does nothing yet.      }   As you can see I'm trying to initialize the m_pA object of type A in the constructor of B, the VC is throwing me:      "m_pA" is not a nonstatic data member or base class of class "B"          You can see the example compiled and the errors .  I want to know why and how initialize a member object of a class without the default constructor, and why I am wrong.  Thanks in advance!


Suppose I run OLS regression and find my residuals to be autocorrelated. When should I use a procedure like Newey-West and when should I use GLS modelling, ie. specifying some ARMA structure to the residuals and refitting the coefficients?


Indefinite articles used with plural nouns: It was AN amazing TWO DAYS

The indefinite article a(n), derives from the old English word an meaning "one". Generally this word only occurs in determiner function before noun phrases which are singular. However, there seem to be some cases where this determiner occurs before plural noun phrases. I say that, but actually these noun phrase seem so bizarre to me, in terms of their structure, that I'm not sure they're definitely noun phrases at all. Here are some examples:   a full three months before we left an amazing two days an awkward ten minutes   Ignoring the article here for a moment, these noun phrases are odd because the adjective is occurring before the numeral. We would normally expect to see:   three full months two amazing days ten awkward minutes   Even given the oddness of the word order in the original phrases, I can see no reason why the normally singular indefinite article is licensed here.   Can anybody give an account of the syntactic structure of these phrases, and/or explain why the semantically singular article is able to be used with such phrases - even if they compulsorily trigger plural verb agreement?  Here is an example of one of these instances which seems to demand a plural verb:   An amazing two million people attend every year. *An amazing two million people attends every year. (ungrammatical)


I want table rows to disappear (by animating their height to 0px and opacity to 0). I'm using the following  $('#somecellelement').closest('tr').children('td').css('overflow','hidden'); $('#somecellelement').closest('tr').children('td').animate({     height: '0px',     opacity: 0 },500);   Where #somecellelement is something contained in cells of rows I want hidden. Opacity is animating correctly but the table row doesn't get smaller. If I set height: 500px then it works, but I need the row to disappear.  I cannot remove the element from DOM, though, due to scripts expecting values from form elements in those rows.


How to get the name of file without extension?

Lets say I have this string ="C:/EFI/Ulta/Filename.rb" and Im trying to split only "Filename" from it.  I tried string.split.last and it returns "Filename.rb", I tried dropping the ".rb" but drop method isnt working for me. is there any other methods I can use?


How do you rotate inserts in Apple Mac OS preview 7?

It happens that I noticed a text insert I had  pasted in an  image in Preview 7 (Sierra on MacBookAir had been rotated I don't know how this happened but the text insert is definitely not horizontal. So there must be a way to rotate inserts. I haven't yet found out. Can anyone tell me?


Can I make it so that all new users created in the future will have an expired password by default?

I want to make it so that every time anyone creates a new user on my system that user will be forced to set a password during their first login. I can't find anything in /etc/login.defs that will do it. I also tried to find something in /etc/pam.d and was unsuccessful. Essentially I want any new user to have an expired password without needing someone to chage -d 0 or passwd -e.  Is there a parameter for useradd that I can set the password age to expired so that I could make an alias or a wrapper for useradd? Or would I have to make an alias for useradd with chage -d 0 after it?  I'm not a sys admin, we ship RHEL with our product and I've been tasked to change our default security settings. Any useful suggestions greatly appreciated.


How to calculate $$\sum_{n=1}^{\infty} \frac{1}{(a+n)(b+n)}$$ where $0 <a,b< 1$?


Is there a fast way to get the characteristic polynomial of this symmetric matrix?

I have to find the characteristic polynomial equation of this matrix  $$ A= \begin{bmatrix}2 &1 &1&1 \\1&2&1&1\\1&1&2&1\\1&1&1&2 \end{bmatrix}$$  Is there another way than the rather long $\det(A-\lambda I)$ method ?  Maybe the fact that $A$ is symmetric ($A =A^t $) may be helpful ?


The error "errno 5 input/output" shows up when copying files! Please help! BTW I used the bootable USB.


It's good to code with interface, but does it's a good practice to have method that return interface ? function CallWebService; IWebServiceReturn;  With that I don't need to free the result of the method and guard from memory leak. Some people say it's useless, need to be keep for service, and generate more code (a unit for interface, a unit for implementation) than just have a class (or a record) : function CallWebService; TWebServiceReturn;  For exemple I can have this interface, use to all my result method : IReturn = interface   procedure GetResult : boolean;   function SetResult(aResult: boolean);   property Result: boolean read GetResult write SetResult; end;  That I use like that : var   Return: IReturn; begin   Result := ProcessMessage(CurrentMessage);   // ...  And in a special call I may need to have more data in the result, so I will create a new interface : IWebServiceReturn = interface(IReturn)   procedure GetJson : string;   function SetJson(aJson: string);   property Json: string read GetJson write SetJson; end;  That I will use like that : var   Return: IWebServiceReturn; begin   Result := CallWebService(Path);   // ...  And if later, a new call need to get something else I will too create an interface and the class implementation. That's on this point that we don't have the same opinion on the team. Some developer see that like a waste of time which will complicate the code. Apparently they prefer to do something like that : function CallWebService(Path: string; var Json: string): boolean;  And if you want more data you need to change the method signature.. Too less couple the code I think it's better that always use record or class, this abstraction is necessary if we want to create SOLID code.


iPhone showing Connect to iTunes screen when updating to iOS 7

I have just attempted to update my iPhone 4 to iOS 7. The phone switched itself off after a while and now the phone won't work any more. The screen switched back on with the logo of iTunes and the charger with an arrow pointing to the iTunes logo.  I connected the phone to my Mac and it doesn't recognise my phone at all, asking to restore it to the factory setting. If I do that, would I lose everything on it?


we have countered a seriously weird problem. 3 of our very most popular search results went invisible. This means, that they still show avg. position, they still get impressions. But they don't get clicks / traffic.  Its been 5 days since it happened. There is no messages in regards to those pages or manual actions (delay of up to 3 days). Absolutely everything is green. And the live testing tool is green as well. There has been no DMCAS (dmca has delay of 2-4 days).  With all the years we have been doing business, we have encountered all possible situations with google. But this is something unique. The results are simply put invisible and other content from our site wont pop up, as it gets labeled as "irrelevant" as the main URL is there (but invisible.)  Is there some sort of a algorithm that detects X anomyalies and makes specific results into invisible until manual review by a googler?


Tool for generating correlated data sets

Does anyone know of a tool that I can use to generate a set of data with known correlations (and to put the icing on the cake - output this in json,csv,txt or some common format)?  I am working on some data visualizations and want to evaluate which ones can more easily allow a user to spot correlations - visually.


Printing only selected features in report QGIS 3?

My layer has more than 2900 elements, and I would like to release a map with 1 or 10 or 50 selected elements but never 2900 in the time.  I can't select them other than visually (no column to identify). Do you have an idea to output a report with only the selected elements?  I have tried the different solutions already seen on this site but nothing that allows me to release a report without saving many unnecessary layers.


Ubuntu thinks Btrfs disk is full but it's not

$ cat /etc/fstab # <file system> <mount point>   <type>  <options>       <dump>  <pass> UUID=a168d1ac-4e13-4643-976d-6e47ea1732b1 /boot        ext2  defaults                                                                   0 1 /dev/mapper/sda4_crypt                    /            btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@          0 2 /dev/mapper/sda4_crypt                    /tmp         btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@tmp       0 2 /dev/mapper/sda4_crypt                    /run         btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@run       0 2 /dev/mapper/sda4_crypt                    /var/crash   btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@var-crash 0 2 /dev/mapper/sda4_crypt                    /var/tmp     btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@var-tmp   0 2 /dev/mapper/sda4_crypt                    /var/log     btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@var-log   0 2 /dev/mapper/sda4_crypt                    /var/spool   btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@var-spool 0 2 /dev/mapper/sda5_crypt                    /home        btrfs defaults,autodefrag,compress=lzo,inode_cache,space_cache,subvol=@home      0 3 /dev/mapper/750er                         /media/750er ext4  defaults                                                                   0 4 /dev/mapper/cswap                         none         swap  defaults                                                                   0 5 ➜  ~  df -h          Filesystem              Size  Used Avail Use% Mounted on /dev/mapper/sda4_crypt   38G   12G   13M 100% / none                    4,0K     0  4,0K   0% /sys/fs/cgroup udev                    2,0G  4,0K  2,0G   1% /dev tmpfs                   396M  1,3M  394M   1% /run none                    5,0M     0  5,0M   0% /run/lock none                    2,0G  208K  2,0G   1% /run/shm none                    100M   36K  100M   1% /run/user /dev/mapper/sda4_crypt   38G   12G   13M 100% /tmp /dev/sda2               231M   44M  175M  21% /boot /dev/mapper/sda4_crypt   38G   12G   13M 100% /var/crash /dev/mapper/sda4_crypt   38G   12G   13M 100% /var/tmp /dev/mapper/sda4_crypt   38G   12G   13M 100% /var/log /dev/mapper/sda4_crypt   38G   12G   13M 100% /var/spool /dev/mapper/sda5_crypt  3,7T  2,4T  1,2T  67% /home /dev/mapper/750er       688G  276G  377G  43% /media/750er /dev/mapper/2tb         1,8T  1,7T  141G  93% /media/2tb ➜  ~  sudo btrfs fi df / Data, single: total=9.47GiB, used=9.46GiB System, DUP: total=8.00MiB, used=16.00KiB System, single: total=4.00MiB, used=0.00 Metadata, DUP: total=13.88GiB, used=1.13GiB Metadata, single: total=8.00MiB, used=0.00 ➜  ~     It's a 40GB partition with quite some snapshots on it. But it's compressed so I think the 9,46GB/40GB is accurate. But my Ubuntu fails because it says it has no disk space. I had apt-errors, cant install programs and my mysql server failed to start because of it.  And I know about not to rely on df I just included it for completeness.  I think Ubuntu uses df which is known to report wrongly with Btrfs internally and fails for that reason. That would make sense for APT when it does checks for space. But it actually fails to write to disk.  $ sudo time dd if=/dev/zero of=large bs=2G count=1 dd: error writing ‘large’: No space left on device 0+1 records in 0+0 records out 11747328 bytes (12 MB) copied, 1,29706 s, 9,1 MB/s Command exited with non-zero status 1 0.00user 1.40system 0:01.44elapsed 97%CPU (0avgtext+0avgdata 2098028maxresident)k 160inputs+23104outputs (0major+383008minor)pagefaults 0swaps


How do I show for an ideal transformer $M^2=L_1L_2$?

I've been stuck on this problem for about an hour.     In an ideal transformer, the same flux passes through all turns of the primary and of the secondary . Show that in this case $M^2=L_1L_2$, where $M$ is the mutual inductance of the coils, and $L_1$, $L_2$ are their individual self-inductances.   My first instinct was the following: If we isolate the response of each coil to the other one, we get the equations $N_1\Phi_1=MI_2$ and $N_2\Phi_2=MI_1$, where $\Phi$ is magnetic flux going through a single turn of the coil and $I$ is current. Likewise, if we isolate the response of each coil to itself, we get the equations $N_1\Phi_1=L_1I_1$ and $N_2\Phi_2=L_2I_2$. I would now naturally want to say "Now just multiply $N_1\Phi_1$ and $N_2\Phi_2$ both ways, and get the desired result!" i.e.,  $$(N_1\Phi_1)(N_2\Phi_2)=(MI_2)(MI_1)=(L_1I_1)(L_2I_2)\implies M^2=L_1L_2$$  But that's incorrect, because the response of the coils to themselves and to the other coil are different quantities (i.e. not necessarily equal).  Realizing this, I write down the more general equations.  $$N_1\Phi_1=MI_2+L_1I_1$$ $$N_2\Phi_2=MI_1+L_2I_2$$  Now even with the hypothesis that $\Phi_1=\Phi_2=\Phi$, I still can't see how the identity $M^2=L_1L_2$ follows. Could you help clear up my confusion?  *Taken from D. Griffiths Introduction to Electrodynamics (4th ed.), Problem 7.58.


Clarifying fair use regarding a Stack Exchange site and an imgur hosted image

On the , there is some concern regarding the use of a photograph taken of a comic book. The question is located .  I am actually the person who asked the question and took the photo. I considered asking the question without using the image, but felt that the image would help explain the situation better than I could in words. So, I assumed  and uploaded the two panels to imgur.com.  Some clarification about SE's stance on using such images would be appreciated.


I need to use a metaheuristic algorithm to solve an optimization problem on a Python codebase.  Metaheuristics usually need to be written in C++ or Java as they involve a lot of iterations, while Python is weak from this point of view.  Questions:   do any Python metaheuristic packages which wrap faster languages as C++/Java exist? do any Python metaheuristic packages based on maybe cython on numba exist? other solutions?


Unable to bind function on dynamically created element

I'm creating a simple shopping cart with javascript, and what would a shopping cart without a button to remove an item be?  The cart is created on-the-fly with javascript, so the elements won't exist on page load. However, this shouldn't be a problem with this?  $(".removeFromCart").on("click",function(e){     alert("GO AWAY PLEASE..");     var tuoteID = $(this).attr("data-id");     deleteFromCart(tuoteID); });   The element (created on the fly) simply looks like this:  ×   But it won't trigger. If I replace .replaceFromCart with, for example, p, it will trigger every time I click on a paragraph.  This isn't the first time I'm having problems with .on() and it always takes half of my hair to solve, so maybe someone with more experience could point me what I'm doing wrong.


To be honest, I have no idea how to even start this problem. I'm sorry I don't have any work to show, but I'm just at a blank. Help?  Chapter 2: Problem 27:  University B, once boasted $17$ tenured professors of mathematics. Tradition prescribed that at their weekly luncheon meeting, faithfully attended by all $17$, any members who had discovered an error in their published work should make an announcement of this fact, and promptly resign. Such an announcement had never actually been made, because no professor was aware of any errors in her or his work. This is not to say that no errors existed, however. In fact, over the years, in the work of every member of the department at least one error had been found, by some other member of the department. This error had been mentioned to all other members of the department, but the actual author of the error had been kept ignorant of the fact, to forestall any resignations. One fateful year, the department was augmented by a visitor from another university, one Prof. X, who had come with hopes of being offered a permanent position at the end of the academic year. Naturally, he was apprised, by various members of the department, of the published errors which had been discovered. When the hoped-for appointment failed to materialize, Prof. X obtained his revenge at the last luncheon of the year. "I have enjoyed my visit here very much", he said, "but I feel that there is one thing that I have to tell you. At least one of you has published an incorrect result, which has been discovered by others in the department." What happened the next year?"   Chapter 2: Problem 28:  After figuring out, or looking up, the answer to Problem 27, consider the following: Each member of the department already knew that Prof.X asserted, so how could his saying it change anything?


Prove that if $A$ is regular then $\operatorname{adj}(\operatorname{adj}(A)) = (\det A)^{n-2} A$

$\newcommand{\adj}{\operatorname{adj}}$Let $A\in \mathbb{M}_n$ ($n \geq\ 2$) be a regular matrix and $\adj(A)$ its adjoint. Prove that if A is regular then $\adj(\adj(A)) = (\det A)^{n-2} A$ (where $adj(adj(A))$ is the adjoint of $\adj(A)$).  For now, I know, or think I do, that $A^{-1} = \adj(A)/\det(A)$  from where we can see that $\adj(A) = A^{-1} \det(A)$  And that's all I know


Independent and mutually exclusive probability

What is the difference between independent and mutually exclusive probabilities?


Show that if $\sum \limits_{n=1}^\infty a_n$ converges then $\lim\limits_{n\to\infty}\frac{1}{n}\sum _{k=1}^n ka_k=0$

Show that if $\sum \limits_{n=1}^\infty a_n$ converges then $\lim\limits_{n\to\infty}\frac{1}{n}\sum \limits_{k=1}^n ka_k=0$  since given that  $\sum\limits _{n=1}^\infty a_n$ converges   then we can say that $\lim _{n\to \infty} a_n=0$  but i don't get any idea to prove this result how to solve this problem


PSTricks picture not compiling with pdfLaTeX

Possible Duplicate:          What is wrong with this code:   \documentclass{article} \usepackage{pstricks}  \begin{document}     \begin{pspicture}(-0.5,0)(2.5,1)     \psdots(0,0)(2,0)(1,1) \end{pspicture} \end{document}   I am trying to compile it with pdflatex, and getting following error:       ! Undefined control sequence. <recently read> \c@lor@to@ps   l.6     \psdots(              0,0)(2,0)(1,1) ?


Would it not affect my credit score if I use my credit card on the day of my closing date or a day prior the closing date?


Really need g77 on Ubuntu 12.04, can't install

I am running an extensive code that I requires g77 to compile. (yes I could probably debug for gfortran but it took me months just to get it working so I really really don't want to). I have tried   but I get this error when I try to install:  Reading package lists... Done Building dependency tree        Reading state information... Done Package g77 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'g77' has no installation candidate   I have seen on forums that people are installing the g77 for Ubuntu 8.04, but I am fairly new to Ubuntu and unclear of exactly how to do this.


Stop Python from generating pyc files in shebang

Is there a way to stop python from creating .pyc files, already in the shebang (or magic number if you will) of the Python script?  Not working:  #!/usr/bin/env python -B


How to quickly and easily create a grid with Adobe Photoshop?

Suppose I need to draw a grid in Photoshop, each square being the same size, and a certain amount of pixels tall and wide, and the grid lines having a certain pixel width. Like this:     Currently I do this by drawing one square, copy+pasting+moving+merging it a few times to create one row, copy/pasting that a few times to create more rows above each other.  It works, but feels very clumsy, I'm sure there ought to be a more efficient way to do this?  What are some efficient methods for creating a grid of equally sized squares?


How to search within a limited number of domains with Google?

Is there a feature in  (advanced search, etc.) or in other Google products where you can limit your searches to only a specific set of sites?  I tried searchterm site:xyz.com , abc.com, but that does not work.


Does ordering matter for logistic regression features (Titanic problem on Kaggle)?

I'm a beginner in machine learning. I'm working on the . One of the features in this problem is the passenger class. The passenger class can be either 1st, 2nd, or 3rd class. I was thinking of using logistic regression to solve this problem, and the passenger class would be one of the features, where 1st passenger class is assigned value 1, 2nd assigned value 2, and so on.  I have few questions:   Is it valid to use the approach of assigning numerical values for non-numerical features, i.e. the classes? If so, does it matter what value you assign to each type for a feature? That is, would it make a difference in the outcome if I assign say 3 for class 1, 1 for class 2, and 2 for class 3?   For the second question, I'm pretty sure it'd have an effect on the parameters that are learnt, but I'm wondering whether it'd have any effect on the accuracy of the hypothesis function.


There does not exist any integer $m$ such that $3n^2+3n+7=m^3$

I have this really hard problem that I am working on and I just don't seem to get it. The question is: let $n$ be a positive integer; prove that there does not exist any integer $m$ such that $3n^2+3n+7=m^3$.  Please explain in detail otherwise I might not understand. I am also open for any methods that might help. Thank you. Please help.


How to achieve a crispy skin when roasting a chicken?

I have an accurate electric oven, but when I attempt to roast a chicken, it always seems to come out more steamed than roasted. A lot of liquid seeps out during the cooking, could this be causing the chicken to seem more steamed than roasted?  Here’s what I do:  I bake a 3-pound roaster chicken at 325-350 deg F, in an electric oven. I place the chicken uncovered on a wire grate over a sheet pan or shallow roasting pan. I seasoned with salt and pepper, following what seems standard procedure in most recipes. I use a meat thermometer and remove the chicken when 160 deg.F. is reached.   I tried dumping out the liquid during roasting, which didn’t help. I even tried browning in a skillet first, but that was just a mess.  I would like to crisp up the skin. How can I do this?


I am making a Tetris clone with a new idea but I won't use the Tetris or Tetriminos name in the game I will refer to them as Tetrominos. Will there be copyright issues if I release this game? Does the Tetris company own the right to produce "Tetris" games?


I have found several answers to this question. But the answer  often lead to modification codes. I wonder if there is simple package for this.  I want to align equations and underline or draw a line that makes additions beautiful. There should be simple steps and packages for this.


How can I depict vehicle traffic during daytime in a long exposure without washing out the vehicles?

I would like to take a picture of a street during the day to depict how much traffic and cars there are on the street.  Is there anyway to do this with a long exposure photograph?  I have a Nikon D90 and I set the f stop down to 1/16 (the lowest of my lens) and set the time to 2 seconds. Doing this, the exposure is almost saturated when taken around 5pm with the sun setting behind a tree. Doing this, the cars passing by were very hard to make out against the stationary background, being visible as a blur in the color of the car.  Perhaps this is not possible and I should just do this at night where the cars lights are much brighter than the background.  Please suggest how else I might depict the traffic in a photograph?  Are daytime long exposure photographs even possible?


We can combine colored light, creating other colors, at least in terms of visual perception.    But how it the result physically "a different color" - if it is at all?  Or is all this not a physical question to begin with - but only about our eye and brain?   To have an example, we   have an incandescent bulb, showing "white" light, and  combine red, green and blue light in intensities such that it looks roughly the same.   It is not central to the question whether it is exactly matching the white light -  but certainly  interesting to understan whether it could perfectly match, and why.


How do I find comparable benchmarks between LG G4's processor and Xeon x5675

My friend said that a modern phone's CPU will be more powerful than an old PC's CPU.  So to test, I have a Qualcomm Snapdragon 808 processor in my LG G4 phone.  My PC has a Xeon x5675 processor, which is over 5 years old.  How can I find comparable benchmarks? Sites such as CPUBoss only seem to have benchmarks for desktop CPUs.


I am working on cloning an Ubuntu 18.04.2 physical server, I use clonezilla for cloning, however, when I apply that image to any other servers (and of course I change the hostname and static IPs), I find that the MAC addresses stay the same, which causes a mess in my network.  It seems the MAC addresses are hardcoded somewhere, do you have any idea where I can reset these MAC addresses to use the real ones of the other servers?


Low GPA, any chance of grad school for math?

I have a cummulative 3.5 GPA from a top 20 school but a 3.1 GPA in my math classes. In particular I got a BC in linear algebra and a C in abstract algebra. My goal was always to go to graduate school but I fear these two classes are going to crush that. Also my school doesn't allow for retaking of classes (BOO!). Any advice besides the obvious of trying to raise the GPA, ace the GRE, get great letters of recommendation or do research? Or will this be too much to overcome?


I Can't Current Password. How To Set New Password In Linux Command Line On Ubuntu 12.04?


I'm new to Python and need some advice implementing the scenario below.  I have two classes for managing domains at two different registrars. Both have the same interface, e.g.  class RegistrarA(Object):     def __init__(self, domain):         self.domain = domain      def lookup(self):         ...      def register(self, info):         ...   and  class RegistrarB(object):     def __init__(self, domain):         self.domain = domain      def lookup(self):         ...      def register(self, info):         ...   I would like to create a Domain class that, given a domain name, loads the correct registrar class based on the extension, e.g.  com = Domain('test.com') #load RegistrarA com.lookup()  biz = Domain('test.biz') #load RegistrarB biz.lookup()   I know this can be accomplished using a factory function (see below), but is this the best way of doing it or is there a better way using OOP features?  def factory(domain):   if ...:     return RegistrarA(domain)   else:     return RegistrarB(domain)


Tryng to setup HP 8600 Ptrinter/Scanner/Fax Ubunto 20.04

Trying to get the gui up and running to control my HP printer/scanner.  Not quite sure what to do as it seems something has changed with hplip support.  I did run this command hplip-3.20.6.run  but seem to think this was a no,no.  So how to uninstall and what to do from here? Any help appreciated. Thanks Craig.


What lossy audio formats are more (or less) "efficient"?

This question is related to the answers I got to .   The bitrate-efficient format (see the question's most voted answers and their comments thereunder) would be one that assures a good audio quality at a relatively lower bitrate.  In some cases one may need having files in mp3 format.  It seems that converting a lossy audio (like aac) to other lossy format with a "less efficient" bitrate, like mp3, imposes to use a somewhat higher bitrate for the output file in order to compensate its  bitrate "inefficiency".  I understand that aac is amongst the most "efficient" - but what about others?  This logic can be applied to other lossy formats. I would like to know what lossy formats can be considered more (or less) efficient - in this sense - than the others.


Showing that a function is continuous when restriction on closed set is

Another question that I completely botched and scored 0 points on. The method I tried to use didn't even use all of the assumptions because I had no clue. The assignment goes as follows.   $f:X\rightarrow Y$ is a function with $X$ and $Y$ being topological spaces. Suppose $\mathcal{A}$ is a collection of closed subsets in $X$ and we have that $\cup_{A\in\mathcal{A}}A=X$. Let $f\vert_A:A\rightarrow Y$ be the restriction from $A$ to $Y$ that is cnt. for all $A\in\mathcal{A}$. Suppose for every open neighbourhood $U$ of $x\in X$ that $U\cap A\neq\emptyset$ for only finitely many $A\in\mathcal{A}$. Show that $f$ is continuous.


Laurent series expansion of a given function

Let $\sum_{-\infty}^{\infty} a_n z^n$ be the Laurent series expansion of $f(z)=\frac{1}{2z^2-13z+15}$ in an annulus $\frac{3}{2}< \vert z \vert < 5$. What is the value of $\frac{a_1}{a_2}$?  My attempt: First note that $f$ is analytic in the given annulus. $f(z)=\frac{1}{2z^2-13z+15}=\frac{1}{(2z-3)(z-5)}$ , $\quad$ $\quad$$\quad$$\quad$$\quad$$\quad$$\quad$  $=\frac{\frac{-2}{7}}{2z-3}+\frac{\frac{1}{7}}{z-5}$  , by Partial Fraction. How to goes further to find out the required function in the power series form and find $\frac{a_1}{a_2}$? I'm Confused with which term can be taken outside of the expression. Any help?


Configure router to redirect different hostnames to different machines

Is it possible to tell your router to redirect specific domains to a specific IP? The router is an Airport Extreme, unfortunately. If it can't be done with this specific router, is there another way to achieve this?


Segmentation Fault when trying to increment letters

#include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> #include <crypt.h>  int main(int argc, string argv[]) {     if(argc > 2){ printf("too many arguments\n"); return 51; }     if(argc < 2){ printf("too few arguments\n"); return 50; }     if(strlen(argv[1]) > 4){ printf("Password is greater than 4 characters\n"); return 52; }      if(argc == 2) //make sure there are enough args     {         string hash_guess = "A";          while(crypt(hash_guess, "50") != argv[1]) //while answer not correct         {             while(hash_guess[0] <= 'Z' && hash_guess[0] >= 'A')             {                 hash_guess[0] = hash_guess[0] + 1;                 printf("%s", hash_guess);             }         }      }  }   I am trying to increment letter by letter through a word, so it would go a then b then c until z then it will go aa, ab, ac, ad.... then ba bb bc bd... then za... zz... zzz. I'm starting with one letter, but I get error "segmentation fault"


I've got an Excel file with text in Hindi which I'm trying to read via PHP but I only get gibberish out of it. When I open the .xls File with Numbers, the text looks like this:  But when I copy and paste this exact text here it looks like this: ß[+kq'kh ge ij fuHkZj djrh gSAÞ  When I read it via PHP I get exactly the same gibberish text. Is this an encoding problem in the .xls file and is it somehow possible to extract a UTF-8 encoded version from it?


So I looked at different videos on how do defeat Plantera but whenever I try to, I always die. All of the videos I watched included teleporters and some sort of gun.


How can I fix a mistake I made on my income tax filing? [US]


Using mathpazo so I can set arbitrary font sizes, but the  attribute is inherited solely from \normalsize

I'm using the mathpazo package so I can set arbitrarily large font sizes for a poster.  I set my font sizes in the preamble as such:  \renewcommand{\normalsize}{\fontsize{36pt}{48pt}\selectfont} \renewcommand{\large}{\fontsize{64pt}{100pt}\selectfont}   But when I use \large, the line space is 48pt not 100pt as it should be (note that 100pt is not the actual value I want on my poster, this is just for demonstration purposes here).  If I change the line space value of \normalsize to 100pt, then when I use \large the line space is 100pt.  Complete code:  \documentclass[letterpaper]{article}  \usepackage[utf8]{inputenc}  \usepackage[letterpaper,top=2cm,bottom=2cm,right=2cm,left=2cm]{geometry} \pagenumbering{gobble} \setlength{\parindent}{0cm} \linespread{1}  \usepackage{mathpazo} \renewcommand{\normalsize}{\fontsize{36pt}{48pt}\selectfont} \renewcommand{\large}{\fontsize{64pt}{100pt}\selectfont}  \begin{document}  test 1 test 2 test 3 test 4 test 5 test 6 test 7 test 8 test 9  {\large test 1 test 2 test 3 test 4 test 5 test 6 test 7 test 8 test 9}  \end{document}   Resulting document:    But if I use:  \renewcommand{\normalsize}{\fontsize{36pt}{100pt}\selectfont} \renewcommand{\large}{\fontsize{64pt}{100pt}\selectfont}   I get:    Hmmm...


Using "Did" should it be followed by past or present tense verb?

Did you woke up this morning and looked at the mirror, and notice the eye bags are puffer than ever?


Any alternative way to evaluate $ \int\frac{1}{\sin x + \sec x } \, dx $ ??

$$ \int\frac{1}{\sin x + \sec x }  \, dx $$  1st method involves converting to sin x and cos x then multiplying and dividing by 2 and finally separating the integrands .  2nd one involves rationalising the denominator and then separating the integrands.  it is hard to think of both the approaches during an exam .  Any other easy alternative anyone has which can be easily thought of ?   please tell of high school level only .


I can't install a new kernel because by boot partition is full. However I also can't remove an old kernel:  sudo apt-get purge -f  linux-image-3.2.0-29-generic-pae [.. reading package lists etc, standard stuff, not relevant & was too lazy to translate it] The following packages have unmet dependencies:  linux-image-generic-pae : depends on: linux-image-3.2.0-41-generic-pae but shall not be installed E: unmet dependencies. try »apt-get -f install« without giving a package name (or give a solution).   Any idea how I can fix this? Thanks :-)  (Note: apt-get -f install also fails: not enough free space!)


How to prevent keyloggers / viruses on my system?

So this keylogger is being sold on HF doesn't rely on any dependencies or anything like that so it's able to infect linux systems.  Thread link:   If you are not registered with the forum here is the sales thread image:   Link is safe to view it's just a sales page on the forum.  What can I do to prevent such things infecting my system?  I read this:   I just want to confirm it's true the way it would have to install to infect me.


How do you escape characters in heredoc?

I'm working with a bash script trying to stop it from attempting to replace variables inside my heredoc. How do set a heredoc to either A) escape the variable names instead of parsing them or B) return the entire string untouched?  cat > /etc/nginx/sites-available/default_php <<END server {     listen 80 default;     server_name _;     root /var/www/$host; <--- $host is a problem child } END   As is, when I it finishes injecting it into a file I'm left with this:  server {     listen 80 default;     server_name _;     root /var/www/; }


Should all polynomial functions from F to F (F is a field) have coefficients in F?

I'm studying abstract algebra for the first time.  let $F$ be a field. I learned that polynomials over field $F$ means polynomials with coefficients in $F$ (denoted by $F[x]$). But when I keep studying, I get to confused the word, 'polynomial functions from $F$ to $F$'.  Firstly, I consider this as induced functions from $F[x]$, so I guess all coefficients of these functions are in $F$. But let $F_{4}$ be a finite field consisting of four elements $\{0, 1, a, b\}$. and let $f: \{0,1\} \rightarrow \{0,1\}$ be a function defined by $$ f(x)=ax^2-ax$$ Since $\{0,1\}$ is a subfield of $F_{4}$ and $f(0)=0, f(1)=0$, I think $f$ is a example polynomial functions from $F$ to $F$ of which coefficients are not in $F$. Am I wrong? if so, please help me.  I encounter this problem while solving 'the set of all polynomial functions from $\Bbb{Z_{3}}$ to $\Bbb{Z_{3}}$ cannot possibly be isomorphic to $\Bbb{Z_{3}}[x]$'.


Why can we cycle faster than we can run?

This seems obvious: faster long-distance runners hit ~20 km/h () while fastest cyclists can do ~40 km/h ().  But on the physical/biological level this doesn't seem obvious for me. To move we need to perform work on our mass. And for cycling there is an additional mass of the bike which should make it even slower.  So what causes the difference?   different cardiac activity? different power output during these activities? more energy loss for running? friction? impact of the bike gearing? something else?   Of course I would like to discuss running/cycling on a flat terrain, as downslopes would be a something completely different.


Is $\sqrt{x}$ uniformly continuous on $(0,1)$?  And can anybody give me a function that is uniformly continuous on some interval but $f^2$ is not?


The sign-up process for alternative SE sites should be in the background

It's a bit of a hurdle to participate on a Stack Exchange site you've never used before. After reading something interesting, you have to stop and log in before being able to comment, vote, etc. Wouldn't it be better to be able to participate straight away without logging in?   I know with the current set-up, being automatically logged in to every site would mean that hundreds of sites would be displayed in your profile, but perhaps that can be changed so that a site would only display on your profile after the first activity is logged.  The way it is set up at the moment disincentivizes me from going through the sign up process. If my first vote is the difference between one click and three (with the screen changing pages), I'm less likely to contribute my first vote on that site, which in the grand scheme of things, means fewer votes on the network.


objects in scene are not appearing in final render but are in render view - cycles

I am using Cycles 2.79 to make a render for a customer and when I render it, only renders one head from one of the various characters and scene objects. I show that on the first photo. But in render view it shows the whole scene which is shown on the second photo.   I need help on how to fix this!


I can't unstar a chat message that I pinned and somebody else later unpinned

Some months ago, I linked to  in the CSS chat room and  in case anybody who cared happened to drop by:  In case anybody else noticed that  questions are now highlighted a little differently, I'm actively investigating this; here's the meta thread  It was unpinned quite some time ago by one of the other room owners. I don't need it anymore anyway since the issue has been . I notice, however, that it's still visible in the starred list, with the only regular (not pinned) star being my own:  When I try to click on the star to unstar it, chat thinks I'm trying to do otherwise and simply tells me I can't star my own messages. I can easily delete this message, but I'd very much like to unstar it instead, thankyouverymuch.


In the following sentence, should I use "have" or "has?"      Your generous support, trust and commitment has sustained us over the years and is more important than ever in the coming year.


I am creating a visualforce page and  i want to add a dialog with the available values and another dialog that contains selected values and need two arrows between these dialogs to add and remove values like below image


I run a small news site with tens of thousands of entries.  I'm currently importing all of these into wordpress by rebuilding our old CMS into wordpress.  So far, everything is coming over smoothly.  My problem comes down to this:  We run several different news sections.  Sports, News, Arts, Oped, &c.  The way our current permalink structure is set up, a post looks like this:  http://newssite.com/sports/2010/04/05/post-title.  However, the post is also tagged with a subcategory like "football" or "basketball".  When I get everything into wordpress, permalinks want to show up as:  http://newssite.com/sports/football/2010/04/05/post-title.  Is there a way to remove subcategories from showing up in permalinks?  I would rather not hack core files, but am willing to if it fixes our problems.  Thanks in advanced.


By mistake, I changed the path environment variable in Ubuntu.  Now when I turned my pc on, the login screen is coming and after entering my password and pressing enter, the screen goes away for a moment and again the login screen is coming.  When I enter any command in the terminal that comes after pressing Ctrl+alt+f3, the error displayed is : The command could not be located because /usr/bin is not included in the PATH environment variable.  Is there any way to solve this problem? Can I set the environment variables again?