I have recently taken on a project that involves improving a circuit and there is a couple of instances where there are two capacitors in parallel with each other.    The values of these capacitors are 100nF and 100pF so one is average sized while the other is small. The instances of these capacitors in parallel are placed on input/output signals, one on an output that is readings a battery voltage and the other on a power input to an op-amp. I am a bit confused as to why they are both needed as opposed to one so if anyone can point me in the right direction with regards to that, that would be great.

I've seen some circuits where a decoupling capacitor is used as well as a reservoir capacitor, like this (C4 and C5):    I've read about  and for me it looks as if they are meant to remove small fluctuations in the supply voltage. Then I thought - wasn't that the purpose of a  as well? Why wouldn't the reservoir capacitor be able to filter out the small fluctuations, if it is able to filter out the large fluctuations?  So I feel like I have a basic misunderstanding here. What is the purpose of a decoupling capacitor next to a reservoir capacitor, when we assume we place both equally near to the power consuming part? Or is the only advantage of the decoupling capacitor that it is smaller and can therefore be easily placed more near to the power consuming part?


I'm interested to know what benefits there are from using a dedicated macro lens as opposed to a zoom lens with macro ability.   Will a zoom lens be capable of close focus when zoomed in fully? Will a zoom lens be capable of similar magnification ratios? Will a zoom lens be as sharp?   As background information, I am interested in 1:1 magnification ratio and above as I want to be able to capture close-ups of insects etc using a DSLR with a APS-C sensor.

True macro lenses come in fixed focal length. Are there any macro lensens which have variable focal lengths? And please explain why yes or why not?


In the season two finale of The Walking Dead, Shane kills Randall by snapping his neck. Hours later, Daryl and Glenn find Randall, who has since become a zombie, up and mobile.  Daryl even identifies the cause of death as a broken neck.  Since becoming a zombie doesn't heal any injuries or afflictions, it seems to me that Randall should have become a zombie who was paralyzed from the neck down.  His head would still be reanimated (like Herschel's head was in the season four mid season premiere), but the rest of his body would have remained dead.  How could Randall get up and walk around after having his neck broken?

In The Walking Dead universe, would a sensory impaired person become a sensory impaired zombie, or would their dead/damaged nerves become as functional as a "healthy" zombie's nervous system?


Table 1 - Static Data      ID 1 | Color 1 | Status 1 | ID 2      ____|_______|_______|______      5555 | Blue    |  New     | 7777      5555 | Blue    |  New     | 3333        5555 | White   |  New     | 7777      5555 | Gray    |  New     | 7777   Table 2 - My Data     ID 2 | Color 2 | Status 2 | ID 1      ___ |_______|_______|______      7777 | White   |  New     | 5555      7777 | Gray    |  Old     | 5555   Table 3: - Output     ID 1 | ID 2 | Color 1 | Color 2 | Status 1 | Status 2      ____|____|______|________|_______|_______|   I basically want table 3 to tell me I missed Blue for ID2 7777, as well as the other colors that match.  I've been using code like      from table 1     Inner Join table 2 on t1.ID1 = t2.ID1 and t1.Color1 = t2.Color 2   Notes, table 1 will always have more data than table 2.  Simple joins dont seem to produce the results I want.  I tried inner on ID and Color, but it doesn't output everything. it wont say I missed blue  if I join on just the ID, the status will be in correct.  I tried Outer join, but it seems to output the wrong status.  e.g. it will out put (Color 1 - Color 2) Blue - Gray, Blue - White, Blue - Blue and return the wrong status for color 2


A newly created crontab job is failing because the program can't read a .json file containing credentials in the same directory. Both files are contained in a /home/deploy/app/ folder. Crontab executes /home/deploy/app/app which needs to read home/deploy/app/config.json to execute. The program runs fine a the deploy user, but fails when run by crontab.  I am sure this is the reason the program is failing since I directed the crontab job to log its output, and I can see that the program is unable to read the config.json file. The app has the following permissions -rwxr-xr-x 1 deploy deploy and the config.json has -rw-rw-r-- 1 deploy deploy.  The crontab entry is:  10 0,6,9,12,15,18 * * * /home/deploy/gocode/bin/BuoyBot > /home/deploy/buoybot.log 2>&1   The cron log records the error from the app, which indicates is it unable to load the config.json file stored in the same folder as the app.  error loading config.json: invalid argument   This error does not occur when the program is run manually from within the /home/deploy/gocode/bin/ folder.  UPDATE: The solution, as suggested below, was to reference the full path of the config.json file within the app (/home/user/app/config.json), rather than a reference to  the local directory (config.json).

This is a  about using cron & crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted.


Yesterday, my reputation on the Aviation site was limited to 190 for the day. After it reached 190, two answers received additional up votes:  and . My daily reputation can be viewed in the history .  When I checked last with the reputation counter @ 190, the up votes for the answers were around 35 and 10. When checking again in the morning (my morning, = around 2200 UTC), votes were around 44 and 14, with a Guru medal awarded for the helicopter answer - but reputation still at 190 for the day.  What gives?

On , my reputation is shown as 10 less than it should be, in every place it is shown.    The reputation should be 11,077. The -10 rep is because the system thinks I only got +190 yesterday:    Which should not be, because I clearly got upvotes after the unupvote, and several upvotes that did not count because I hit the rep cap.  Furthermore, when I visit the reputation page (codegolf.stackexchange.com/reputation), that lists my rep correctly as 11,077. It also says that I gained 200 yesterday, not 190:  -- 2014-07-10 rep +200  = 10877 Data that I think I might not be supposed to show... -- 2014-07-11 rep +200  = 11077   Note: if I should copy more of the page, please tell me. However, I think that that information is not supposed to be public.  The error started yesterday, and I assumed the system simply hadn't updated yet. But this seems to be not the case. When will the system update and change the displayed rep to the real rep?


I had a debate with my co-worker about using apostrophes to show ownership of records which belongs to a page. He told me not to use an apostrophe. This is the text in question :     The Pagination in Lookup page isn’t displaying the next page’s record when   a user clicks next or page number. It will show the first page’s record.   Did I make a mistake ?

I know that to mark possession of an item you can use 's like in the following example:     The user's password shall not be blank.   However, is it correct to use the following:     The car's antenna is embedded in the windshield.   I seem to remember that possession must only be used for people but I'm not certain really.


I modeled some logs that together compose a wall. I modeled one and texturized it, then applied an array modifier. Problem is that they all look the same. is there a way to randomize the texture coordinates on each of them? Or am I forced to copy and paste them "manually" and avoid the array modifier?

I'm learning Blender, and I want to make keys for a keyboard with RBG lights incorporated inside them (final render will be an image, not an animation). I created a low-poly key, with 2 material : 1 for base color, and a second one for the random color. So here is what I did  But now, i simply want to make an array to fill the keyboard. But the colors is not random at all, it stays the same.


A similar question was asked here but never received an answer: . Forgive me if posting a new question is not the correct way to ask this question.  Set $G = \text{Gal}(\mathbb{Q}(\sqrt[4]{2}, i)/\mathbb{Q})$ and let $\sigma, \tau \in G$ such that $\sigma : \sqrt[4]{2} \mapsto i\sqrt[4]{2}, i \mapsto i$ and $\tau: \sqrt[4]{2} \mapsto \sqrt[4]{2}, i \mapsto -i$.  It is clear to me that $G = \langle \sigma, \tau \mid \sigma^4 = \tau^2 = 1, \sigma\tau = \tau\sigma^{-1} \rangle \cong D_8$.  There are eight non trivial subgroups of $G$, three of which have index $2$ in $G$ and five of which have index $4$ in $G$.  I can easily compute the fixed fields corresponding to six of these subgroups but finding the fixed fields of the remaining two is giving me quite a bit of trouble.  The two subgroups which I am battling with are $\langle \tau\sigma \rangle$ and $\langle \tau\sigma^3 \rangle$ both of which have index four in $G$ so I am looking for fixed fields of degree $4$ over $\mathbb{Q}$. I also know that these two subgroups are contained in $\langle \tau\sigma, \sigma^2 \rangle$ so the fixed fields I am looking for must contain the degree $2$ extension $\mathbb{Q}(i\sqrt{2})$ being that this is the fixed field of $\langle \tau\sigma, \sigma^2 \rangle$.  Any hints of how I may proceed to find these fixed fields?

Okay, so I mostly worked this out, and I even created lattice diagrams as shown below. But I have a specific question about finding intermediate fields, which I will ask shortly. Let $\alpha = \sqrt[4]{2}$ and $\omega = e^{\frac{\pi}{4}i} = i$.  Then $L = \mathbb{Q}(\alpha, i)$ is the splitting field of $x^4 -2$ over $\mathbb{Q}$. Also, the Galois group $\Gamma_\mathbb{Q}(x^4 - 2) = D_8$ acts on the roots $\alpha, \alpha i, -\alpha,$ and $-\alpha i$, and is generated by rotation $\sigma$ and reflection $\tau$, where $\sigma(i) = i, \sigma(\alpha) = \alpha i$ and $\tau(\alpha) = \alpha, \tau(i) = -i$. To find the intermediate fields between $L$ and $\mathbb{Q}$, find the subgroups of $D_8$ instead with the idea that finding subgroups is easier and better understood than finding intermediate fields. Then from the subgroups, use the Galois correspondence to get all the intermediate fields. There are 10 subgroups of $D_8$ which must correspond to 10 intermediate fields.  Well, I pieced together 8 obvious candidates for intermediate fields, and in the end, I had to look up the other 2 which were $\mathbb{Q}(\alpha(1 + i))$ and $\mathbb{Q}(\alpha(1 - i))$. Those two seemed strange until I realized that $\sqrt{8\alpha^2 i} = \alpha(1 + i)$. Finally, I was able to check fixed fields to verify the exact correspondence, and come up with the diagrams. Question: Is there a systematic approach to finding and connecting up the corresponding intermediate fields once all the subgroups are known? I'm guessing, in general and maybe in this example with $D_8$, there isn't a good, canonical way to anticipate and construct the field extensions?  The structure of groups and subgroups, as stated earlier, is easier and better understood than the structure of field extensions. Maybe this makes sense because the groups are finite and have only one operation, and fields are often infinite and have two operations.  and  UPDATE: In , Richard Borcherds clearly describes how to obtain the two nonobvious intermediate fields from the subgroups. Specifically, add the roots $\alpha$ and $\alpha i$ to fix by reflection one way, and then add the roots $\alpha$ and $-\alpha i$ to fix by reflection the other way.


I have downloaded texture and it contains diffuse,normal,height images/maps.How to use them in blender to get bumpy/3d texture?

I created some texture maps in MindTex to use in Blender, but I can't figure out how to properly hook them up. The maps I have:  - Diffuse  - Normal  - Height   - Specular   - Gloss   - Self Illumination  - Reflection  - Ambient Occlusion   MindTex (left) vs. Blender (right)  As you can clearly see it's a pretty big difference.  is my material node setup in Blender. In the examples I don't actually use self illumination or reflection images, but including this in the answer would be helpful.


I want to use eval()to resolve simple equations and logical expressions, e.g. 12*(4+3).  How safe is client side eval when the input (possibly untrusted) gets sanitized and only allows digits, +-*/()<>|&! and the words 'true' and 'false'?  Available JS parsers for equations are too big and featureful for me. I threw one together myself, however it's a lot of lines of code compared to eval'ing and it's not yet perfect.  EDIT: So yeah, I guess what I'm specifically asking is can somebody execute malicious code with nothing but digits and +-*/()<>|&! ? (I guess 'true' and 'false' are harmless)

I'm writing some JavaScript code to parse user-entered functions (for spreadsheet-like functionality). Having parsed the formula I could convert it into JavaScript and run eval() on it to yield the result.  However, I've always shied away from using eval() if I can avoid it because it's evil (and, rightly or wrongly, I've always thought it is even more evil in JavaScript, because the code to be evaluated might be changed by the user).  So, when it is OK to use it?


My lovely bride, of 40 years, bought me a new Nikon D3500 bundle. Loves me. I own a Nikkor AF d 50mm 1.8. Think it is about 13 years old. I have used it about 200 shots with the D3500 and worked great. Went to use it today and my D3500 says it is not recognized and the screen shows a blinking f_ _ _ in the aperture set area. The 50mm still works great on my D40. I reset my D3500 settings back to default. Any thoughts about what happened to my beautiful 50mm? I love it more than any other of my 8 lenses.

When I press the shutter release to focus, a message on the viewfinder displays F--.  Any photos snapped turn out black.   I switched the camera off, took out the battery and memory card and rested it a while, and then it was ok.  But again, after a few days, the error occurs again, and it seems it will keep happening.  What should I do?


This is just a suggestion I have which I believe would improve the user experience. Currently the Badges tab has , all the badges listed and there is tick mark besides the ones the user has achieved.  e.g  Pundit Left 10 comments with score of 5 or more  But a user has no idea as to , how many comments does he currently have which has score of 5 or more. If while hovering over the Badge tag , the user could get the count of current count of his comments which satisfy the requirement of score 5 or more , this would encourage the user improve quality of the comment and provide him something to look forward to .   e.g  When hovering of Pundit , it should show 2/10 , which means user needs to get to 10 to achieve this Badge , but currently he has only 2 such comments.   I understand that this is not feasible for all the badges, but this can be implemented in badges it is feasible for.

It would be very nice if users could see their current progress related to particular badges. For example:  Deputy - Raised 80 helpful flags   would be rendered in the following way:  Deputy - Raised 80 helpful flags (23/80)


I am trying to make the plot of a bell-shaped curve with two intervals shaded but I am only capable to fill only one area, so this is the chart I got. I thought that adding another \clip (axis cs:0,0) rectangle (axis cs:1.5, 0.24); with the right side coordinates would shade the opposite area in blue but not.  I am using the following code \usepackage{pgfplots} \pgfplotsset{compat=1.8} \begin{document}  \pgfmathdeclarefunction{gauss}{3}{% \pgfmathparse{1/(#3*sqrt(2*pi))*exp(-((#1-#2)^2)/(2*#3^2))}% }  \begin{tikzpicture} \begin{axis}[   no markers,    domain=0:6,    samples=100,   ymin=0,   axis lines*=left,    every axis y label/.style={at=(current axis.above origin),anchor=south},   every axis x label/.style={at=(current axis.right of origin),anchor=west},   height=5cm,    width=12cm,   xtick= {2, 1.5, 3},   xticklabels={$-z_{\alpha_{p}}$, $-z_{\alpha}$, 0},   ytick = \empty   enlargelimits=false,    clip=false,    axis on top,   grid = minor,   hide y axis   ]  \begin{scope}[yshift=-\pgflinewidth] \clip (axis cs:0,0) rectangle (axis cs:1.5, 0.24); \addplot [draw=none, fill=blue] {gauss(x, 3, 1)}; \end{scope}  \addplot [very thick,cyan!50!black] {gauss(x, 3, 1)}; \pgfmathsetmacro\valueB{gauss(1,1,7)} \pgfmathsetmacro\valueA{gauss(1,1,1.65)} \pgfmathsetmacro\valueC{gauss(1,1,1)}  %\draw [very thick, red]  (axis cs:1,0) -- (axis cs:1,\valueB); %\draw [very thick, red]  (axis cs:2,0) -- (axis cs:2,\valueA); %\draw [very thick, red]  (axis cs:3,0) -- (axis cs:3,\valueC);  %\node[below] at (axis cs:3,0)  {$0$};  %\node[below] at (axis cs:1.5,0) {$-z_{\alpha}$}; %\node[below] at (axis cs:2,0) {$-z_{\alpha_{p}}$}; \end{axis}  \end{tikzpicture}  \end{document}  Thanks for you help!

I wanna plot the density of a normal distribution as it is in the pic below. The Problems:   the node t=1,63 does not appear in the plot do not know how to draw the arrow in an easy way   Here's my code so far:  \documentclass[a4paper,11pt,fleqn]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{ntheorem} \usepackage{here} \usepackage{multirow} \usepackage{eurosym} \usepackage{pgf,tikz} \usetikzlibrary{arrows,shadows} \pagestyle{empty} \usepackage{graphicx} \usepackage{array} \usetikzlibrary{decorations.pathreplacing}  \usepackage{colortbl} \usepackage[ngerman]{babel} \usepackage{geometry} \geometry{a4paper, top=15mm, left=25mm, right=25mm, bottom=20mm,  headsep=10mm, footskip=12mm} \theoremstyle{break} \usepackage{amsfonts} \usepackage{color}   \usepackage{gauss} \usepackage{pgfplots} \usepackage{tikz} \usepackage{gensymb} \usepackage{systeme} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \usepackage{booktabs} \usetikzlibrary{positioning,fit,calc} \usetikzlibrary{backgrounds} \usepackage{amssymb} \usepackage{amsmath} \addtokomafont{caption}{\footnotesize} \setlength{\mathindent}{0pt} \makeatletter \g@addto@macro\normalsize{%  <----  \setlength\abovedisplayskip{0pt}%  <----  \setlength\belowdisplayskip{10pt}%  <----  \setlength\abovedisplayshortskip{0pt}%  <---- \setlength\belowdisplayshortskip{20pt}%  <---- }  \makeatother  \setlength{\intextsep}{0pt}   \tikzset{declare function={     normcdf(\x,\m,\s)=1/(1 + exp(-0.07056*((\x-\m)/\s)^3 - 1.5976*     (\x-\m)/\s)); }}        \pgfmathdeclarefunction{gauss{2}{%\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%}  \usepackage{tabularx} \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} % linksbündig mit Breitenangabe \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % zentriert mit Breitenangabe \newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} % rechtsbündig mit Breitenangabe  \newcommand*\xbar[1]{%  \hbox{%   \vbox{%   \hrule height 0.5pt % The actual bar   \kern0.5ex%         % Distance between bar and symbol   \hbox{%     \kern-0.1em%      % Shortening on the left side     \ensuremath{#1}%     \kern-0.1em%      % Shortening on the right side}%}%}%}   \usepackage{etoolbox} \makeatletter \patchcmd\g@matrix  {\vbox\bgroup}  {\vbox\bgroup\normalbaselines}% restore the standard baselineskip {}{} \makeatother    \newcommand{\BAR}{%   \hspace{-\arraycolsep}%   \strut\vrule % the `\vrule` is as high and deep as a strut  \hspace{-\arraycolsep}%   }      \usepackage{tabstackengine}[2016-10-04]   \stackMath   \begin{document} \begin{figure}[H]     \centering \begin{tikzpicture} \begin{axis}[ domain=-1:1,          scale only axis,          axis x line=middle,          axis y line=middle,          inner axis line style={=>},                  width=15cm,height=6cm,                 ymin=0,ymax=0.45,                 xmin=-3.5,xmax=3.5,                 axis line style = thick,                 xtick={-3,-2,-1,1,2,3},                 ytick={0.1,0.2,0.3,0.4},         every axis x label/.style={at={(current axis.right of origin)},anchor=west},          every axis y label/.style={at={(current axis.north)},above=0.5mm},                  xlabel={$x$},                  ylabel={$f(x)$},                     axis on top]       \addplot[fill=blue!25,draw=none,domain=-3.5:-1.63] {gauss(0,1)}     \closedcycle;] \addplot[fill=blue!25,draw=none,domain=1.63:3.5] {gauss(0,1)} \closedcycle;] \addplot [domain=-3.5:3.5,samples=500,red,thick] {gauss(0,1)}; \node at (axis cs:1.63,-0.05){$t=1.63$}; \end{axis} \end{tikzpicture} \caption{Graph der Dichtefunktion $f_X(x)$ mit $X\sim\mathcal{N}(0,1)$}% \end{figure}  \end{document}


I have two arrays $arr1 and $arr2 and want make one array like this $arr.  <?php $arr1 = [0=>'x-api-key',1=>'username',3=>'password']; $arr2 = [0=>'cb2312b123113b321b',1=>'john',3=>'1234567']; ?>   Expected Output:   ['x-api-key'=>'cb2312b123113b321b','username'=>'john','password'=>'1234567'];   Any help?

I've got two arrays of the same size.  I'd like to merge the two so the values of one are the key indexes of the new array, and the values of the new array are the values of the other.  Right now I'm just looping through the arrays and creating the new array manually, but I have a feeling there is a much more elegant way to go about this.  I don't see any array functions for this purpose, but maybe I missed something?  Is there a simple way to this along these lines?  $mapped_array = mapkeys($array_with_keys, $array_with_values);


In a DC current in a conductive wire, is it more accurate to think of one electron wiggling its way through a sea of electrons... or to think of one electron bumping into another, which bumps into another, which bumps into another, which eventually causes an electron on the other end of the wire to "pop out" like the initial electron "popped in?"  Does the answer change for DC current flowing through a semiconductor?   Does the answer change for AC current in a conductor?  Does the answer change for AC current in a semiconductor?

If electrons in an alternating current periodically reverse their direction, do they really flow? Won't they always come back to the same position?


I can't help but wonder...  Config:  mathieu@mathieu-UX21E:~/$ python --version Python 2.7.5+   Code:  import logging logger = logging.getLogger('x')  def main():     print logger     logger = 2  if __name__ == "__main__":     main()   Output:  mathieu@mathieu-UX21E:~/$ python ./manager.py  Traceback (most recent call last):   File "./manager.py", line 9, in <module>     main()  File "./manager.py", line 5, in main     print logger UnboundLocalError: local variable 'logger' referenced before assignment   Obviously, I would expect that print statement to access the globally-defined logger variable. Is there something I did not understand about the python variable scoping rules ?  Also, obviously, the logger = 2 statement should not do much. However, if I remove it, the undefined variable exception disapears.

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


I have a 3D MULTILINESTRING geometry in my database contains lat/long and EPSG:4326: 'MULTILINESTRING Z ((50.9872438056729 35.0857686001374 906.97,...)  and I calculated the length through two methods: conn = psycopg2.connect(...) cur = conn.cursor()  _spheroid = 'SPHEROID["WGS 84",6378137,298.257223563]' cur.execute("SELECT ST_LengthSpheroid(geom,'{spheroid}')/1000 from ...;".format(spheroid=_spheroid)) #68.030 KM  cur.execute("SELECT ST_Length(geom, false), id from ...;") #68.001 KM  Where does this difference come from?

As my client software uses lat/lon coordinates when communicating with my (spherical mercator) postgis database i decided to ST_Transform every geometry to WGS-84.  However i noticed that ST_Distance for WGS-84 returns units as degrees (i need meters). So i decided to use ST_DistanceSpheroid(geom1, geom2, 'SPHEROID["WGS 84",6378137,298.257223563]') but this method seems to be extremely slow.  Therefor i switched back to using spherical mercator again and transforming my input and output to and from wgs-84 as that performs a lot better.  Am i using the correct method or is this a known issue?


I installed msys tools for a c++ programming more unix-like environment. the find command won't replace the native find windows command, which is pretty sad because I have to type in the full path (absolute) to the find msys command to use it. But which is really annoying because I am using emacs 'grep-find' command and it will use the find ms-dos command and will give an anarchic and useless result.  Is it possible to replace the native find windows command somehow ?

If I do a command like (on windows cmd.exe):  where dir   or  where cd   I get the following message:  INFO: Could not find files for the given pattern(s).   This tends to mean to me that cd and dir are not actual programs, but are built in to cmd.exe.  Now the real question is:   Is there ant way to replace cd and dir with other programs?  If you wanted to replace say more, you could just put another program by that name in the system PATH in front of where more is.  But you cannot do that with cd and dir.  Am I just stuck with them?


What is the difference in the meaning between following sentences:        Riya was to pick strawberries yesterday but the downpour made the field too muddy.   (source: modified from example from BBC learn English)   Riya was going to  pick strawberries yesterday but the downpour made the field too muddy.      I've learned tha 'was to' is used for past plan'. But 'was going to' is also about past plan. So which form is used for past plan. So, what is the differences between the construction was/were to ...  and going to ... ?  Note: I asked a similar question about the difference between “was to...” and “was to have” , but this question is about “was to” and “was going to.”

What is the difference in the meaning between following sentences:        John was to have picked strawberries yesterday but the downpour made the field too muddy.   John was to pick strawberries yesterday but the downpour made the field too muddy.      (Source: modified )  I've read in Learn English BBC that the form "was to" and "was to have" is used for past plan which wasn't fullfiled.  But What  I haven't understood is that these form look similar to me. I'm in a dillema which one (was to, or was to have) is used for past plan and which one is for unfullfilled past plan.  So, what is the differences between the construction was/were to ...  and was/were to have + past participle?


This is the not working command:  /give @p golden_sword 1 0 {Unbreakable:1,ench:[{id:9,lvl:0},display:{Name:Gold Sword Of The 1979 Of The GOLDEN AGE,AttributeModifiers:[{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:.1.5,AttributeName:generic.Speed,{AttributeModifiers:[{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:20.0,AttributeName:generic.maxHealth,AttributeModifiers:[{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:1.0,AttributeName:generic.attackDamage}]}   It's saying Unbalanced Curly Brackets {} or Unbalanced Brackets. I'm using Minecraft version 1.8.8.

Often, when making a command block contraption, you need to set an entity's data tag. These tags can sometimes be very long, with many layers of nested curly and square brackets. For example, this is the command to summon a villager with a single custom trade:  /summon Villager ~ ~ ~ {Profession:3,Career:2,Offers:{Recipes:[{buy:{id:minecraft:diamond,Count:6b}},sell:{id:minecraft:diamond_hoe,tag:{ench:[{id:16s,lvl:10s}]}]}}   The single-line command block interface of Minecraft makes it incredibly difficult to find and fix errors, especially when it comes to mismatched brackets. In fact, for illustration purposes, I put an error in the above command.  What techniques can I use to find and fix unbalanced square or curly brackets when writing long and complicated data tags?


I have a scene with a lot of armatures and I want them to be only one rigged big model but merging them with Ctrl+J break all the animations  do you have any idea how to fix this? EDIT: I'm not sure that my post is a duplicate of the other one, I managed to join the armatures by having proper names, then merging the two objects (Crtl+J), Applying transforms, putting two armature modifiers on the object instead of one, and finally, merging the armatures ... The weights are ok, but there is two problems: the action of the second armature is deleted and the armature is like slightly deformed , to fix the action missing I've copied the action before the merge and paste it in the graph editor after the merge, at first the animation kinda looks like it works, but then it goes all over the place ... EDIT2: so it's not possible to merge armature with the actions attached to it, plus merging armatures with scales not applied properly (and I can't apply scales on it because it breaks the animations) deforms everything. It seems that there is no solution apart from do all the animations again (1600 frames), something that a can't afford to do, in other words, I'm f****d,  its a project I've been working on for weeks and there is no solution. I'm depressed right now 😢

I have two separate Armatures that I want to join together. I have no problem combining the meshes, but the problem is the bones/rigs. When you do the Object mode > join, I lose all of my weight paint on one of my armatures. Is there any way I can join two separate armatures and keep all the weight paint. I turn my models into XPS and use XNA Lara to view them, but XNAlara cannot use both armatures at once.


In the given example: "\info\more info\nName" how would I turn this into bytes  I tried using unicode-escape but that didn't seem to work :(  data = "\info\more info\nName" dataV2 = str.encode(data) FinalData = dataV2.decode('unicode-escape').encode('utf_8') print(FinalData)   This is were I should get b'\info\more info\nName' but something unexpected happens and I get DeprecationWarnings in my terminal I'm assuming that its because of the backslashes causing a invalid sequence but I need them for this project

I have a string that contains both double-quotes and backslashes that I want to set to a variable in Python. However, whenever I try to set it, the quotes or slashes are either removed or escaped. Here's an example:  >>> foo = 'baz "\"' >>> foo 'baz ""'   So instead of baz "\" like I want I'm getting baz "". If I then try to escape the backslash, it doesn't help either:  >>> foo = 'baz "\\"' >>> foo 'baz "\\"'   Which now matches what I put in but wasn't what I originally wanted. How do you get around this problem?


I have been working on this proof for a few hours and I can not make it work out.  $$\sum_{i=1}^{n}\frac{1}{i(i+1)}=1-\frac{1}{(n+1)}$$  i need to get to $1-\frac{1}{k+2}$  I get as far as $$1-\frac{1}{k+1}+\frac{1}{(k+1)(k+2)}$$ then I have tried $1-\frac{(k+2)+1}{(k+1)(k+2)}$ which got me exactly nowhere.

Prove the following equality using mathematical induction: For any integer $n \ge 1$  $$\sum_{i=1}^{n} \frac{1}{i(i+1)} = \frac{n}{n+1}$$  I understand for the base base I need to have $n=1$. If I substituted $n$ for 1 and $i$ for 1 I would get   \begin{align} \sum_{i=1}^{1} \frac{1}{1(1+1)} &= \frac{1}{1+1} \\ \sum_{i=1}^{1} \frac{1}{2} &= \frac{1}{2} \end{align}  As for the inductive step, I inputted $n +1$ but it did not work for me because honestly I did not know what to do with the $i$ and what I should do next.  How would I go about doing the next step and an explanation for $i$ would be helpful.


I've read through multiple postings and can't seem to export a variable with a special character in Centos 7.5 (I believe the special character is the problem, please correct me if it's something else).  The command  export TEST-ME=blah returns -bash: export: TEST-ME=blah: not a valid identifier.  I've tried escaping with a backslash and multiple variants of single and double-quotes with the same result.  What am I doing wrong?

I am not able to use - in variables in shell. Is there a way to be able to use it, because I have one script which depends on such named variables:  $export a-b=c -bash: export: `a-b=c': not a valid identifier  $export a_b=c   First throws the given error and second works fine.


I need to transform this table    into this one, with de Services columns as rows:


I'm trying to select a picture from gallery , get bitmap of that picture and encode that bitmap into base64. But I get this error:   Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference  Here is what I've done :   private Bitmap bitmap;  private String encodedbitmap;   ...  Intent intent = new Intent(Intent.ACTION_PICK);     intent.setType("image/*");     startActivityForResult(intent, 100);  ...  @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {      if(requestCode==100 && resultCode==RESULT_OK ){          Uri selectedimg=data.getData();          new Encodeimg().execute();      }   ...   private class Encodeimg extends AsyncTask<Void,Void,Void>{     @Override     protected Void doInBackground(Void... params) {          bitmap=BitmapFactory.decodeFile(selectedimg.getPath());          ByteArrayOutputStream stream= new ByteArrayOutputStream();         bitmap.compress(Bitmap.CompressFormat.JPEG,100,stream);         byte[] bytes=stream.toByteArray();         encodedbitmap= Base64.encodeToString(bytes,0);         return null;     }   EDIT: I know what a NullPointerException is. I just don't understand why I get that error in this situation. Because I don't see a null object here.

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


For example the Apple logo takes you to the homepage of apple.com from any page.    Even I link the logo to the homepage, but doesn't it make more sense if we link it to the about page?

Why has it become an industry standard for logos to redirect a user to a website's homepage?   Where was this first seen?


When I run the command ecryptfs-unwrap-passphrase, the passphrase will not appear. I do not know why that is, and I would like some help on this.

When installing Ubuntu I chose to encrypt my home drive and after installation update information window came up:    Where I had to write down encryption passphrase. Well I closed it and it doesn't pop up any more. So the question is where can I find it to write down the passphrase?


First of all I want to mention that this is not a duplicate of  because I don't have a given invalid (or not well-formed) XML file but rather a given arbitrary Java String which may or may not contain an invalid XML character. I want to create a DOM Document containing a Text node with the given String, then transform it to a file. When the file is parsed to a DOM Document I want to get a String which is equal to the initial given String. I create the Text node with org.w3c.dom.Document#createTextNode(String data) and I get the String with org.w3c.dom.Node#getTextContent().  As you can see in  there are some invalid characters for Text nodes in a XML file. Actually there are two different types of "invalid" characters for Text nodes. There are predefined entities such as ", &, ', < and > which are automatically escaped by the DOM API with &quot;, &amp;, &apos;, &lt; and &gt; in the resulting file which is undone by the DOM API when the file is parsed. Now the problem is that this is not the case for other invalid characters such as '\u0000' or '\uffff'. An exception occurs when parsing the file because '\u0000' and '\uffff' are invalid characters.  Probably I have to implement a method which escapes those characters in the given String in a unique way before submitting it to the DOM API and undo that later when I get the String back, right? Is there a better way to do this? Did someone implement those or similar methods in the past?  Edit: This question was marked as duplicate of . I have now read all of the answers but none of them solves my problem. All of the answers suggest:   Using a XML library such as the DOM API which I already do and none of those libraries actually replaces invalid characters except ", &, ', <, > and a few more. Replacing all invalid characters by "&#number;" which results in an exception for invalid characters such as "&#0;" when parsing the file. Using a third party library with an XML encode method which do not support illegal characters such as "&#0;" (they are skipped in some libraries). Using a CDATA section which doesn't support invalid characters either.

Very similar to , except for Java.  What is the recommended way of encoding strings for an XML output in Java. The strings might contain characters like "&", "<", etc.


While updating on Ubuntu 16.04 I am getting the error   E: Failed to fetch http://ppa.launchpad.net/s-lagui/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found   Can anyone help me to find out what it is?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


So in Now You See Me 2, after the Horsemen steal the computer chip that Walter Mabry wanted, Daniel goes to the market to try to hand over the chip to someone from the Eye, but it turns out he was tricked by Walter. He's cornered and ordered to give it up, but Dylan cuts in and saves him.  Dylan gets beaten up and half-drowned, but the Horsemen save him. Right then, Jack says the chip is a fake. Then there's a whole scene where they're discussing what to do and how they could suddenly have a fake chip, and how they lost the real one.   But later, on the plane, Daniel is coerced into giving Walter the chip, which turns out to be real again. So was it real the whole time? Or was it switched with a fake, and right up till the end, the Horsemen were still pretending it was real? And if so, where did the real one go?

I'm talking about the movie  Spoilers ahead.  Walter (Daniel Radcliffe) gave the task or blackmailed the Four Horsemen to steal a chip from a lab which can access any digital device. So they did steal the chip. And when they rescue Dylan Rhodes (Mark Ruffalo) from drowning in the water, Jack Wilder said that the chip is fake.     Jack: Wait something is not right.      Atlas: What's wrong?      Jack: It's fake.   Then they assumed that Walter did not know that the chip is fake. So they came with a plan to bluff. They pretended that they had the real chip. After they got caught by Walter, they gave the fake chip to Walter. Walter checked the chip and declared it as real. The Four Horsemen were surprised.     Walter: I'm sorry to interrupt. But I have to say congratulations and   thank you. It's real.      Lula: What? It's real!!!!!      Atlas: What? Is it real?      Jake: What is he talking about?   What happened? I didn't get it. What did I miss? Was the chip real? Was Walter pretending it to be real? If so, then why? If not, who switched the real chip with the fake one? Who had the real chip before?


Trying to make a blackjack game my first button works fine but trying to pass the hit and stand isn't working just says not defined. I'm trying to pass the onclick playerMove("stand") and playerMove("Hit") to the playerMove(a) function at the bottom but wont work.

 BlackJack. Beat The Dealer

Total £1000

Stake £<input type="number" id="mystake" value="0" min="1">

             <button id ="startbtn" type="button" onclick="Start()" class = "btn">Start Game</button>

         Dealers Hand :

          Players Hand :

             <button id="btnstand" type="button" onclick='playerMove("stand")' class="btn">Stand</button>              <button id="btnhit" type="button" onclick='playerMove("hit")' class="btn">Hit</button>

         <button id="btndeal" type="button" onclick="newDeal()" class="btn">Deal</button>

  function playerMove(a){         console.log(a);         switch(a){             case 'hit':                 playaCard(); // if hit is passed through then we run playacard function                 break;             case 'stand': //if stand is passed through we end the players game through function                 playend();                 break;          }     }

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I saw some questions here about them. How can I get one? I did not find any webshop where they are distributed.  Edit: I did not ask about the store I asked about how can I get the T-shirts?

I did my search and found only  link, which is broken


I have two INEGI shapefiles from Mexico (2000 and 2010) that I want to line up with one another. The 2010 file projects in the right location and I would like the 2000 file to match/line up with the 2010 one. The shapefiles contain various cities in Mexico - some line up almost identically (see example of Minatitlan) while others are dramatically different (see example below of Tetepango).   I originally posted a question about getting data from 2000 to project in the correct location in Mexico, which made the cities are least be in the generally correction location! See the response here:   What can I do to make the 2000 file match/line up with the 2010 one?   2010/2000 Data Source: Projected Coordinate System:    Conica Conforme de Lambert Projection: Lambert_Conformal_Conic False_Easting:  2500000.00000000 False_Northing: 0.00000000 Central_Meridian:   -102.00000000 Standard_Parallel_1:    17.50000000 Standard_Parallel_2:    29.50000000 Scale_Factor:   1.00000000 Latitude_Of_Origin: 12.00000000 Linear Unit:    Meter  Geographic Coordinate System:   ITRF92 Datum:  D_GRS_1980 Prime Meridian:     Greenwich Angular Unit:   Degree

I have two feature layers (polyline/polygon) which should be congruent but there's an offset of about 220 meters.   The Georeferencing tool only works with raster layers.   How do I do the equivalent with a feature layer?


I want to write two equations in consecutive lines and I want to give them a single equation number. Often, in notebooks, we write multiple equations in consecutive lines and use a big } sign to allocate only a single equation number. Is it possible to do the same in LaTex? If yes, how do I do that?  I hope I could clearly state my problem.

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have  \begin{align}   dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\   dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \end{align}    and I want neither  \begin{align}   dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \nonumber \\   dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \end{align}    nor   \begin{align}   dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\   dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \nonumber \end{align}     but having a single number in the middle. I know this can be achieved by nesting an array inside of an equation but then some symbols (sums, etc.) look differently and I thought there had to be a better way of doing this.


I'm trying to open the calculator app on my Windows 10 64 bit machine.  When I search for calc in the start menu and click it, I get an error      you'll need a new app to open this   I tried re-registering my windows ten apps by using this command  Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}   with a powershell running as administrator and the same issue still occurs.  How can I fix my calculator?

I uninstalled the Calculator app like this in PowerShell:   Get-AppxPackage *windowscalculator* | Remove-AppxPackage  How do I reinstall it?


Question Let $X$ and $Y$ be the number of accidents which will occur at each of two intersections over the next year. Suppose that $X$ and $Y$ are independent Poisson random variables , with means $a$ and $b$ respectively. Find the conditional distribution of the number of accidents which will occur at the first intersection over the next year, given the total number of accidents. My working Let $W = X + Y$ $\implies f_W(w) = \frac {(a + b)^w e^{-(a + b)}} {w!}$ $f_{X \mid W}(x \mid w) = \frac {f_{X, W}(x, w)} {f_W(w)}$  This is where I am stuck. I believe that, in order to find the conditional distribution of $X$ on $W$, I need the joint distribution of $X$ and $W$ - I know of no other way to approach the problem. However, I am not sure if I am given enough information to find this joint distribution. In particular, it is obvious that $X$ and $W$ are not independent. How should I continue? Any intuitive explanations will be greatly appreciated :)

The classic example... $X \sim Po\left (\lambda\right ), Y \sim Po\left (\mu\right)$, X and Y are independent.  Show that the conditional distribution of X is binomially distributed. Or in other words, $P(X=k\mid X+Y = n) = P (\tilde{X} = k), \tilde{X} \sim B\left (n ,\frac{\lambda}{\lambda + \mu}\right )$.   I've so far managed to reach to this step, and have been stuck since. Just somehow gotta get a $\frac{1}{n!}$ in the denominator, that would then complete the proof..or at least I think..  $$P(X=k\mid X+Y=n) = \frac{\frac{\lambda^{k}\mu^{n-k}}{k!(n-k)!}}{P(X+Y = n)}=  \frac{\frac{\lambda^{k}\mu^{n-k}}{k!(n-k)!}}{\sum_{i=1}^{n} \frac{\lambda^{i}\mu^{n-i}}{i!(n-i)!}}$$  Thanks for the help!


In CGEL page no.126 "I already knew how to do it."[Tr included within Tsit]..., if Tr is internal part within Tsit so this shows imperfective aspect.., is this right or wrong? And also 1) I knew how to do it and 2) I already knew how to do it. Is any difference in these aspect sentences with or without adverb "already"?

"I already knew how to do it."[Tr included within Tsit]..., in this imperfective aspectuality which is reference time and situation time please answer for this by using time line because in this sentence there are two verbs(knew and do) are used so it is difficult to understand imperfective aspectuality from this sentence ? The sentence is in CGEL page no.126


I'm using TexMaker for my thesis, but I can't have any bibliography printed in the final document. This is the code:  \documentclass[11pt,a4paper,twoside,openright]{book}  ... \usepackage[babel]{csquotes} \usepackage[style=numeric,useprefix,hyperref,backend=biber]{biblatex} \addbibresource{Bibliografia.bib} ...  \begin{document}  bla bla bla  \cleardoublepage %\phantomsection \addcontentsline{toc}{chapter}{\bibname} \nocite{*} \printbibliography  \end{document}   Already compiled with PDFLatex + BibTex + PDFLatex (x2), but no warnings or errors displayed, and bibliography still not printed. I put my citations in a ".bib" file, located within the same directory of the main file, is that right?  Thanks

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


I am trying to buffer a simple line and the program simply won't complete the process after 10 attempts. I am buffering to 20,000 (I assume it's metres). Anyone had this issue before? My internet is fine and I restarted QGIS too. I am new to the programme.

I  have had no luck getting the buffer tool to accept anything but degrees as units of measure.  I have found lots of stuff saying the layer needs to be reprojected and saved but it hasn't worked at all for me.   Is there a way I could create a buffer without using ftools or at least force the units to meters somehow?  As a workaround I converted meters to degrees (lat) and used that but the final product needs to be as close to reality as possible.  Things I've tried:   setting every unit option I could find to meters (where possible). setting everything to NAD83/Maryland (data is for Washington, DC) and saving it as such (as layers in ESRI shape files). reimporting the reprojected layers setting relevant layers to Google Mercator   The was tried followed by creating a buffer. Many were tried in combination. QGIS 1.7.3 Slackware64 current (qgis from SBo-13.37 repo, tried on multilib and plain 64it with same results)


I am using dataTable.jquery and I have a table that has several pages. Each row has a checkbox, and there is a checkbox for Select All. Now, I have some code that executes on checkbox.change, but it works on first page only. If I go to any other pages, it just checks the checkbox and does nothing. When I return to a page, all the checkboxes I've checked previously are unchecked.  Here is the code:   $('.bulk-checkbox').change(function(){   alert("checkbox changed");   if(this.checked) {     alert("checkbox checked");   }   else {     alert("checkbox NOT checked");      }  });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I bought Super Smash Bros. Ultimate on day one and I got the physical release, meaning I have the game card. So whenever I want to play the game, I need to insert the game card first. Now I want to get rid of some of the game cards I have, including the Smash Bros. copy. I want to instead buy them online and download them to my Switch. If I do that, will I still have access to the save data I created using the physical game card? I fear that if I download the game, it will be kept separate and I have to start all over again.

A friend lent me his copy of Mario + Rabbids to play on my own Switch. I ended up enjoying it a lot and I want to buy my own copy, but I don't want to lose my progress.  If I buy a separate physical or digital copy of a game, will I still be able to play with my save file?


Let $S=\{1,2,3,\ldots, 2n\}.$ If $P\subseteq S$ such that if $x,y\in P \rightarrow x\nmid y$ and $y \nmid x$ Then what is the maximum cardinality of $P$  I know that $\{n+1, n+2,\ldots, 2n\}\subseteq P$ so $|P|\geq n$  How can I proceed from here. I somehow want to use Pigeonhole principle.

This problem comes from a seemingly innocuous question from a professor during a lesson for a Math Olympiad course. [A part of this question is really a classic of number theory/combinatorics]  Problem: Let $S$ be a a non-empty subset of $\{1,2,\ldots,2n\}$. It is clear that if $|S|$ is "enough large" then, independently from the choice of $S$, there are for sure some distinct $a,b \in S$ such that $a$ divides $b$.  Then, what is the maximal $k$ such that, for some $S$ with cardinality $k$, if $a,b$ are distinct members of $S$ then $a$ does not divide $b$?  [Ps. I know the solution]


I have an array of date object and want to check if supplied date exists in the array by array.indexOf method but it's always returning -1 (not found). Although date exists in the array.    availableDates[62] and Date have the same value when I print in the console but the condition is returning false.

Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.


I have a tab based app, which last tab button is "Exit" how can I quite iPhone App, on click of that last tab bar?

I am programming an iPhone app, and I need to force it to exit due to certain user actions.  After cleaning up memory the app allocated, what's the appropriate method to call to terminate the application?


I am reading some tutorials about Linux configurations:    To accomplish many of the configurations is important and mandatory be the root.    Well I did realize that in many places are used sudo su and sudo -i, even when both accomplish the the same goal, I have the doubt about:    when is mandatory use one approach over the other?    I am doing this question because for some reason exists these two approaches

Why is one preferred over the other in this example?  sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit   Please provide links to Ubuntu documentation.


I want to build a local repo for Ubuntu 16.04 with apt-mirror tool. Can I configure it on Ubuntu 18 or do I need the same version of Ubuntu?  Thanks

Having a local repository can be very useful. It is possible to use rsync to create a repository mirror, but this results in all the releases being downloaded, even older ones and would include files for architectures that might not be needed.  apt-mirror allows one to selectively choose parts of the repository. mirrorkit provides a front-end to apt-mirror.  What is the best way to create a local repository mirror for selected parts of the Ubuntu archives?    For example, one might wish to include:   Main, Restricted, Universe, Multiverse,  All Ubuntu and Lubuntu but exclude other derivatives, such as Kubuntu and Xubuntu. Only AMD64 and i386 but exclude other architectures. Only Trusty Tahr, but not Precise Penguin or Utopic Unicorn.   One might wish to configure the process so that it downloaded from a local mirror, rather than the main archives.  How can I create local repository using apt-mirror and mirrorkit for a selected architecture, release, or Ubuntu variant?


I believe I am an expert Illustrator user, but I've never seen this weird behavior before.  The Align setting is set to "Align to Selection". However when I click "Horizontal Align" or "Vertical Align", the objects move away from each other. Each subsequent click on the Align Panel moves them further away from each other.    I tried resetting Bounding Boxes in the Transform panel, which proved fruitless.  Am I doing something wrong, or is this the latest Illustrator glitch?  Illustrator 23.0.4

I am creating icons with Adobe Illustrator during which process I use the Align tool quite frequently.  All of a sudden, the align tool started behaving quite strangely.  When I select two objects and specify that I want to align to a key object, when I press align it seems to only align halfway to where it should be.  When I press align again it aligns halfway again - after I press it several more times, it finally gets to where it needs to be.  Also, when I try to align to artboard, it pushes the object out to a seemingly random place.  Here is a video showing exactly what I mean:   What setting did I accidentally set to make align behave like this?


When I got on today, the top left header menus were gone.  The places they should be seem to still be functional, but it looks like just a black bar.  Browser is Firefox 27, OS is Windows 7.    Here is a screenshot of main SO    Just so we are clear, this is only the 3 menus in the top left.  The user image and badges are still fine.    When new activity happens, it puts up the red background with the number in it.

Chrome and IE 11 are fine, I'm only able to reproduce this in Firefox. Using version 27.0.1 on Windows 7. Meta as well as all the other sites are affected.        I can still see the hover effect, but the image is gone. I see this in Firebug:        The image doesn't show up in the Network tab. I am able to see the image by visiting  which goes to   I've done Ctrl-F5, I've cleared the cache and I've tried Private Browsing. Possibly related to  ?


I was asked to find $(1+i)^i$, I don't know what to do when there is an imaginary component in the exponent.  since $1+i=\sqrt{2}e^{-\frac{1}{4}i \pi}$ then $(1+i)^i = \sqrt{2}^i e^{\frac{1}{4} \pi}$ but now we run into the same problem again, what is $\sqrt{2}^i$?

Can someone explain to me, step by step, how to calculate all infinite values of, say,   $(1+i)^{3+4i}$?   I know how to calculate the principal value, but not how to get all infinite values...and I'm not sure how to insert the portion that gives me the other infinity values.


Just out of curiosity : has the equation $$ x^r+y^r=z^r,\qquad(x,y,z)\in\Bbb Z^3,\quad r\in\Bbb R, $$ been studied? Any non trivial result for $r\in\Bbb R\setminus\Bbb N$ ?

We now that Fermat's last theorem is true so there are not positive integer solutions to $$x^n+y^n=z^n$$ for $n\in\mathbb{N}$ and $n>2$.  But what about if $n\in\mathbb{R}$ or $n\in\mathbb{R}^+$?


I am new to PStricks and Tex in general and no matter what I do, I get the same error message running a very simple code like the following:  \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{pst-all} \usepackage{graphics} % !TeX program = xelatex \begin{document}     \begin{pspicture}(2,2)(5,5)         \psline(0,0)(1,1)     \end{pspicture} \end{document}   These are the error messages I get:  ! Undefined control sequence. <recently read> \c@lor@to@ps   l.12 ^^I^^I\psline(             0,0)(1,1) The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   And:  ! Package inputenc Error: inputenc is not designed for xetex or luatex. (inputenc)          only UTF-8 supported.   I don't understand what the error is since I run the document with XeTex and use TexStudio (if that is of any importance).  Thank you for your help :)


Expected : When I click on Ubuntu Software icon in taskbar or dash, it should open the software center.  Actual : The loading cursor comes in for few seconds and nothing happens. No window. Nothing.  A process for gnome-software is found in System Monitor though.  Tried : Re-installing gnome-software-common. Doesn't solve the issue.  sudo apt-get --reinstall install gnome-software-common   Help?  EDIT :   Running gnome-software from terminal shows following output.  (gnome-software:11311): Gs-WARNING **: failed to open plugin /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so: /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so: cannot open shared object file: No such file or directory   I found out that it was indeed reported but no solution to those reports too.

I am new user for Ubuntu and i use Ubuntu 16.04 LTS version. My problem is that I can not open software center. It can open before. After update and install some application, can't open software center.


I know that we can use element.dispatchEvent(custom_event) to dispatch a custom event that we defined.  My question is how to dispatch built-in events, such as submit, click, change, ...  I write form.on('submit', function(){}) to hanlde form submitting event. Then, I want to dispatch submit form by clicking on an X element.  X.on('click', function(){     // dispatch form submit here });   P/s: I'm using PrototyeJS

Does anybody know of a method to trigger an event in Prototype, as you can with jQuery's trigger function?  I have bound an event listener using the observe method, but I would also like to be able to fire the event programatically.  Thanks in advance


I am trying to attain an ARIMA model for the following Time Series Data:    There is quite obviously a seasonal component - as the plot seems to oscillate between smaller and larger peaks, its seems to suggest that the pattern repeats every 48 timesteps.  I then took the seasonal difference and plotted the ACF & PACF:      From the ACF & PACF plots, I concluded that the model will most likely fit a $\text{ARIMA}(0,0,1)(0,1,1)_{48}$ model due the the shape of the PACF and the peaks at the ACF plots.  However, when trying to fit the data onto such model, the estimated coefficient for the regular fails the hypothesis test (roughly if $\mid\frac{\hat{\theta}}{\hat{\sigma}_\theta}\mid > 1.96$, then accept for some coefficient $\theta$).  I have tried other variations, but they consistently fail. I have come to the conclusion that I've made a grave error or I am missing a step. Note that when using Regular Differencing, the model does seem to fit better - but I don't know how to justify using Regular Differencing.  I have come to one of two conclusions: Either taking the seasonal difference of 48 is too high, or, the plot for PACF shows that the data may be non-stationary - therefore needing some Regular differencing.  Thank you

this is my first ever question on a website i use frequently!  This time series has given me much trouble over the last couple of days even after extensive googling, I suppose with TS theres no two series that look the same, hence my confusion!   I have the following ACF and PACF plots for my data:    After modelling NUMEROUS models in R (ARMA(p,q), with all combinations of p=0,1,2,3,4 and q=0,1,2,3,4) and looking at their theoretical acf plots, it seems R's auto.arima gave the best model with p=q=2.   But in my work, i don't want to just say i used R and inferred nothing from the ACF plots haha!  I understand that the slightly significant PACF at lag 1 indicates an AR component(?) and that as both plots 'slope off' it suggests a ARMA(p,q) model, but is there anything else im missing????  Also; the ts (in my eyes) seems seasonal, however ironically, no amount of differencing makes a difference, the plot still looks the same no matter what d equals. (R also tells me its not seasonal)  In short:   What does the ACF plots tell me (main) Am i right in not differencing the data   Thanks a bunch!!


This is a follow-up question to   One reason Aunt Petunia mistreated Harry was that she did not know he was rich. If she knew, she would naturally have treated this golden goose nicely. Her retirement would be secured if Harry financially supported her in old age.  Why didn't Harry tell Aunt Petunia he was rich? Surely every boy wants to be treated nicely by his family.

Her retirement will be secured if rich Harry financially supports her if her retirement fund runs out. Given her mistreatment, nobody will blame Harry if he dumps her aside when she grows old.   Why did Aunt Petunia kill the golden goose with her bad behavior? She should have tried hard to get into the good books of the golden goose.


I need to create the GetSpatialDataSet stored query in my WFS service to follow the INSPIRE rules.  That WFS service is in a GeoServer 2.10.0. I have checked the official docs about how to create a stored query:   The problem is I don't know what I am supposed to do with that piece of code.  <wfs:CreateStoredQuery service='WFS' version='2.0.0'  xmlns:wfs='http://www.opengis.net/wfs/2.0'  xmlns:fes='http://www.opengis.org/fes/2.0'  xmlns:gml='http://www.opengis.net/gml/3.2'  xmlns:myns='http://www.someserver.com/myns'  xmlns:topp='http://www.openplans.org/topp'> <wfs:StoredQueryDefinition id='myStoredQuery'> <wfs:Parameter name='AreaOfInterest' type='gml:Polygon'/> <wfs:QueryExpressionText  returnFeatureTypes='topp:states'  language='urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression'  isPrivate='false'>   <wfs:Query typeNames='topp:states'>     <fes:Filter>       <fes:Within>         <fes:ValueReference>the_geom</fes:ValueReference>          ${AreaOfInterest}       </fes:Within>     </fes:Filter>   </wfs:Query> </wfs:QueryExpressionText>      Where should I paste it? It says it's a POST request, but that doesn't tell me anything.  EDIT: I have tried the following script from another answer:  <html> <head> <title>WFS Test</title> <script language="JavaScript">   function doit()   {     var url = 'http://myserver:8080/geoserver/test/wfs';     var method = 'POST';     var postData = '<wfs:CreateStoredQuery\n'     + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n'     + 'xsi:schemaLocation=\n'     + '"http://www.opengis.net/wfs/2.0\n'     + 'http://schemas.opengis.net/wfs/2.0/wfs.xsd"\n'     + 'xmlns:cp_inspire="urn:x- inspire:specification:gmlas:CadastralParcels:4.0"\n'     + 'xmlns:fes="http://www.opengis.org/fes/2.0"\n'     + 'xmlns:wfs="http://www.opengis.net/wfs/2.0"\n'     + 'xmlns:gml="http://www.opengis.net/gml/3.2"\n'     + 'xmlns:xsd="http://www.w3.org/2001/XMLSchema"\n'     + 'service="WFS"\n'     + 'version="2.0.0">\n'     + '<wfs:StoredQueryDefinition\n'     + 'id=\'' +  'http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet' + '\'>\n'     + '<wfs:Parameter name=\'' + 'CRS' + '\' type=\'' + 'xsd:string' + '\'/>\n'     + '<wfs:Parameter name=\'' + 'DataSetIdCode' + '\' type=\'' + 'xsd:string' +'\'/>\n'     + '<wfs:Parameter name=\'' + 'DataSetIdNamespace' + '\' type=\'' + 'xsd:string' +'\'/>\n'     + '<wfs:Parameter name=\'' + 'Language' + '\' type=\'' + 'xsd:string' + '\'/>\n'     + '<wfs:Parameter name="count" type="xsd:integer"></wfs:Parameter>\n'     + '<wfs:QueryExpressionText\n'     + 'returnFeatureTypes=\'' + 'cp_inspire:CP.CadastralParcel' + '\'\n'     + 'language=\'' + 'urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression' + '\'\n'     + 'isPrivate=\'' + 'false' + '\'>\n'     + '<wfs:Query typeNames=\'' + 'cp_inspire:CP.CadastralParcel' + '\' srsName="${CRS}">\n'     + '</wfs:Query>\n'     + '</wfs:QueryExpressionText>\n'     + '</wfs:StoredQueryDefinition>\n'     + '</wfs:CreateStoredQuery>\n';  var req = new XMLHttpRequest(); req.open("POST", url, true); req.setRequestHeader('User-Agent', 'XMLHTTP/1.0'); req.setRequestHeader('Content-type', 'test/xml'); req.onreadystatechange = function () {   if (req.readyState != 4) return;   if (req.status != 200 && req.status != 304) {     alert('HTTP error ' + req.status);     return;   }   alert(req.responseText); } if (req.readyState == 4) return; req.send(postData);   }        But I'm getting this error:    Does anyone see where is the problem?

I am a new user of Geoserver. I have created a WFS and also could connect it with the QGIS WFS  2.0.0 Client plugin available now. But as like the default WFS link in that plugin I am not able to make a query in my service. Also the metadata is not coming for my service. Can anyone help me in this regards?  What do I actually have to do to make the stored queries and also to get metadata? Where to start doing that?


You can see my problem here:   The problem is my nav bar will not sit inside the div/header, i have tryed many methods but i can not get it to work, so i hope somebody can spot my error.  i believe its something to do with:  .nav li {     float:left;     width: 25%; /* Split width appropriately */ }  .nav a:link, a:visited {     display:block;   It is also ment to have each button cover 25% of the width, however when if it manage to get it inside the div/header it never covers the whole width.

I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.

   There seem to be numerous methods of fixing the clear bug in Firefox:
 overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the
 solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust?


I am trying to replicate a study that has generating simulated data with the following variables and assumptions $x_j\sim U[0,1]$, and $j = (1,2,\dots,N)$ with   $$z_j = x_j + \sigma_z \epsilon_j$$  where, $\epsilon_j\sim N(0,1)$ and then state "we select the value $\sigma_z$ so that $R^2 = 0.75$", I believe $R^2 = 1 - \frac{\sum_j (z_j - x_j)^2}{\sum_j (z_j - \bar{z})^2}$  But I am struggling to figure how to address this problem.

I'm giving a presentation about fitting lines.  I have a simple linear function, $y=1x+b$.  I'm trying to get scattered data points that I can put in a scatter plot that will keep my line of best fit the same equation.   I'd love to learn this technique in either R or Excel--whichever is easier.


I was planning to design a database (relational model). Someone with good experience in this matter suggested to me that before choosing a  database system I would have to consider the sizing of the database and other factors. I have been reading quite a lot. I bumped into a lot of information of database (relational model) however I can not find information on previous stages of database design to be considered. How can I measure the sizing of the database?

I was wondering what you do when developing a new application in terms of estimating database size.  E.g. I am planning to launch a website, and I am having a hard time estimating what size I could expect my database to grow. I don't expect you to tell me what size my database will be, but I'd like to know if there are general principles in estimating this.  E.g. When Jeff developed StackOverflow, he (presumably) guesstimated his database size and growth.  My dilemma is that I am going for a hosted solution for my web application (its about cost at this stage), and preferably don't want to shoot myself in the foot by not purchasing enough SQL Server space (they charge a premium for this).


I'm doing tests to query layers in Leaflet with WMS.  I'm seeing this    and   .  I'm trying to take WMS data from my Geoserver and replaced the WMS URL, the name of the layer, and the name of the fields in the popup window but I have a problem: I see the layers in the map, but it does not make me select, and I do not see the fields in the popup.  Do I need to change some settings in my Geoserver?

I try to use a WFS service with OpenStreetMap to request GeoServer GeoJSON file. First I had a error message on the Firefox Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/geoserver/robot/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=robot:geofield&outputFormat=aoolication%2Fjson. (Reason: CORS header 'Access-Control-Allow-Origin' missing).  Then I pasted the following lines in the web.xml from /usr/share/geoserver/webapps/geoserver/WEB-INF  <filter>   <filter-name>CorsFilter</filter-name>   <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>   <init-param>     <param-name>cors.allowed.origins</param-name>     <param-value>*</param-value>   </init-param> </filter> <filter-mapping>   <filter-name>CorsFilter</filter-name>   <url-pattern>/*</url-pattern> </filter-mapping>   After when I go on  I have a HTTP ERROR: 503 and still have the same CORS header problem   I don't know what is wrong, maybe this method doesn't work with latest GeoServer versions    If someone has a good and clear answer, it will be great because I think I'm not the only one who want to use a wfs with GeoServer and OpenLayers.


Example:     A: Hey, I just bought a mouse.   B: A mouse mouse? Or a computer mouse?   What is this exactly? And are there any rules?

Reduplication - noun - A word formed by or containing a reduplicated element. An act or instance of reduplicating as a grammatical pattern.     Is there a term for the kind of reduplication where the two words are exactly the same but the first one narrows a category that could otherwise be interpreted more broadly?  e.g.    Do you mean Indian Indian or American Indian? It is common both in Irish English and English English. Do you mean cable television?  No, I mean television television.   To be clear, I'm not looking for a term to describe reduplication for the purpose of intensification, as in: "They have been together for a couple of weeks now".  "You mean "together together"?  That kind of reduplication has .


Imagine in  variable catholic had 3 levels (0 = not Catholic, 1 = semi-catholic, 2 = fully Catholic) instead of 2 levels that are shown in . Under this new condition, how could we estimate propensity scores for matching purposes (not a logistic regression for sure)?

What's the best way to use matching methods with multiple treatment groups? I'm assessing the impact of an intervention on an outcome. For my first analysis, I used the MatchIt package (see code below) to match treatment and control groups and to compare outcomes for the treated vs control. The Treat variable is 0 or 1.  nn_match <- matchit(treat ~ cov1 + cov2+ cov3 ,                      method = "nearest", data = df)   In my second analysis, I'd like to assess the effect of different treatment levels (for example, I have Treatment A, Treatment B, and Treatment C) on the outcome, but I'm stuck on the best way to proceed. Does it make sense to run separate matching analysis for each treatment group while excluding the observations from the other treatments groups?   nn_treatA_match <- matchit(treat_A ~ cov1 + cov2+ cov3 ,                      method = "nearest", data = df_minus_other_treatBC) nn_treatB_match <- matchit(treat_B ~ cov1 + cov2+ cov3 ,                      method = "nearest", data = df_minus_other_treatAC)   Or is there a way to run the analysis with the entire dataset and match controls to each treatment at the same time? Other posts have mentioned the twang package, but I'm not sure if that's what I should go with as I'd like to compare outcomes for each treated group to the control and not just across treated groups.


Basically the above, i cant see how $ g(e^x)=e^x $ using the formal definiton we are saying $ \lim_{h\to 0} \frac{e^{(x+h)}-e^x}h=e^x $   Intuitively i do not see how this can be true.

Let's define  $$ e^x := \lim_{n\to\infty}\left(1+\frac{x} {n}\right)^n, \forall x\in\Bbb R $$  and  $$ \frac{d} {dx} f(x) := \lim_{\Delta x\to0} \frac{f(x+\Delta x) - f(x)} {\Delta x} $$  Prove that  $$ \frac{d} {dx} e^x = e^x $$  using the definition of $e^x$ and derivation above, without using L'Hôpital's rule or the "" and/or the "inverse function derivative trick".  $$ \left( \frac{d} {dx} f^{-1}(x)= \frac{1} {\left(\frac{d}{d(f^{-1}(x))}f(x)\right)(f^{-1}(x))}\right) $$  Or equivalently prove that the following two definiton of $e$ are identical $$ 1)\space\space\space\space e =\lim_{n\to\infty}(1+\frac{1} {n})^n $$  $$ 2) \space\space\space\space e\in\Bbb R,\space\space(\frac{d} {dx} e^x)(x=0) = 1   $$  What I've got is $$ \frac{d}{dx}e^x=e^x \lim_{\Delta x\to0}\frac{e^{\Delta x} - 1} {\Delta x} = e^x \lim_{\Delta x\to0}\lim_{n\to\infty}\frac{\left(1+\frac{\Delta x}{n}\right)^{n}-1}{\Delta x} =  e^x \lim_{\Delta x\to0}\frac{e^{0+\Delta x}-e^0}{\Delta x}  $$  If i assume that $n\in\Bbb N$ I could use binomial theorem but I didn't got much out of it. Wolframalpha just uses L'Hospital rule to solve it, but I am looking for an elementary solution. What I'm interested in is basically is the equivalence of the two definition of $e$ mentioned above. And I'd like to get a direct proof rather than an indirect(I mean which involves logarithms or the derivatives of invers functions).  I look forward getting your aswers.


To show: If every Prime-Divisor of m is a prime-Divisor of n ist, then φ(mn) = mφ(n). φ(n) is the totient-function introduced by euler.

For any positive integer $n$, let $\mathrm{PF}(n)$ denote the set of all distinct prime factors of $n$ (not counted with multiplicity).  The question (using the above notation) is: Is it true that for any two positive integers $m$ and $n$, $\phi(mn)=m\phi(n)$ if and only if $\mathrm{PF}(m) \subseteq \mathrm{PF}(n)$, where $\phi$ is the totient function?  Hint for the if direction: Any prime factor of $mn$ must either be a prime factor of $m$ or a prime factor of $n$ (by Euclid's lemma). But since any prime dividing $m$ also divides $n$, $mn$ has the same distinct prime factors as $n$, and hence any integer coprime to one of them is also coprime to the other.  Note that it is possible for $\mathrm{PF}(m) \subseteq \mathrm{PF}(n)$ to be true while $m \not\mid n$. For example, $4 \not\mid 2$, but they both have $2$ as the only prime factor. In this case, $\phi(8)=4=4 \cdot 1=4\phi(2)$.


how can i make a background for html's body thats is composed by stripes with height of 300px, and the firts one need to be an image? If I remove the "background-image" stripes are corrects. I wrote this but only the image is showed (in the correct size of 300px): body {     background: linear-gradient(black 50%, gray 50%);     background-image: url('img_url');      background-repeat: no-repeat;     background-size: 100% 300px;    }

Is it possible to have two background images?  For instance, I'd like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the entire page is behind the one which repeats across the top.  I've found that I can achieve the desired effect for two background images by setting the background of html and body:  html {     background: url(images/bg.png); }  body {     background: url(images/bgtop.png) repeat-x; }   Is this "good" CSS?  Is there a better method?  And what if I wanted three or more background images?


I am to trying to run 64 bit version of software called icmbrowser (molsoft.com). I installed it but when I try to run it I get an error message:  ./icmbrowserpro64: error while loading shared libraries: libmng.so.1: cannot open shared object file: No such file or directory   so tried locate libmng.so.1 but I couldn't find it   I tried to run 32 bit version and got:  error while loading shared libraries: libXmu.so.6: cannot open shared object file: No such file or directory   so I tried locate libXmu.so.6 and it's there   /usr/lib/x86_64-linux-gnu/libXmu.so.6  /usr/lib/x86_64-linux-gnu/libXmu.so.6.2.0   I don't understand why I am getting this error and why I can't run the software.  I can run run windows version on wine but it's really slow.  OS info:  Description:    Ubuntu 14.04.5 LTS Release:        14.04 Codename:       trusty   icmbrowser can be downloaded from   I installed it using   I already tried the solution suggested .It didn't help becuase the step wget http://prdownloads.sourceforge.net/libmng/lm010010.zip doesn't work (the file is moved permanently).

I would like to run SoulseekQT. However unfortunately one of the dependencies is libmng1, which is no more included in Trusty. sudo apt-get install libmng.so.1 or libmng1 or libmng1:i386 in Trusty (14.04) no more available. Do you have any idea how to solve this conflict? I mean is it really sure that libmng1 is excluded? Could I use libmng2 somehow instead? If not, could I somehow rebuild libmng1 for Trusty? Or do I have to downgrade back to Saucy (13.10)?


I want to make a seo of the wordpress website,so that when i type the name of the article in google it should appear in the google search. For example when i search in google for Accidental injection of dental burs during dental extraction. it should appear in google as shown in the below picture which is marked.  enter image description here please help me out how to do it in wordpress the result in the google is the pdf file with the searched name which is appearing from wp-content/uploads. Thanks in advance

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


It seems that a lot of Harry Potter questions (including my last one) are answered based on tidbits of info that J.K. Rowling provided in various interviews.  I have two related questions (I'll post them separately):  Question #2 of 2. If there ever is a discrepancy between what JKR states in an interview, and a book, which one is considered canon? Book? JKR? Whatever is later?   (What made me think about this was the whole thing with George Lucas and his multiple layers of canon and the whole "L'État c'est moi" Luis-the-14th schtick he has).

There are many different Harry Potter works including:   books short stories movies card games video games toys amusement parks web content   Which ones are considered to be canon?


Running 12-2 Romex cable from the electrical panel to a J-box located in attic. J-box will connect two GFCI outlets and extend a 14-2 cable to the ceiling light fixture box, where other 14-2 cable will be used for a switch.   Circuit breaker is 20A.  Is that OK? Is it code compliance?

My refrigerator line is 20 amp with 12 gauge wire. Can I tap into that with 14/2 wire, and run a light switch and 1 LED light?


I want to calculate the sum of three double numbers and I expect to get 1.   double a=0.0132; double b=0.9581; double c=0.0287; cout << "sum= "<< a+b+c <<endl; if (a+b+c != 1) cout << "error" << endl;   The sum is equal to 1 but I still get the error! I also tried:  cout<< a+b+c-1   and it gives me   -1.11022e-16  I could fix the problem by changing the code to  if (a+b+c-1 > 0.00001)    cout << "error" <<  endl;  and it works (no error). How can a negative number be greater than a positive number and why the numbers don't add up to 1? Maybe it is something basic with summation and under/overflow but I really appreciate your help. Thanks

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I found this problem and according to Wolfram Alpha, the answer is 2.  $$\prod_{n=0}^{\infty} \left (1+\frac{1}{2^{2^n}}\right)$$  Please do the favor of explaining me how the product is 2.

What will be the value of the following Infinite Product :   $$\displaystyle \prod_{k=0}^\infty \left(1+\dfrac{1}{2^{2^k}}\right)$$  It would be nice if anyone could spare the time and boil down to the absolute basics and tell how they reached the solution.


For which values of $m$ can the polynomial $p(x) = x^4-(2m + 4)x^2 + (m -2)^2$ be factored into two non-constant polynomials whose coefficients are integers?

I'm having trouble getting the starting idea for a problem I've been presented with:  I need to find values for m (integer) such that the following polynomial     $p_4(x) = x^4 −(2m + 4)x^2 + (m−2)^2$; $m$ is integer   can be described as the product of two non-constant integer-coeficient polynomials.  Any help/pointers/tips on how to go about this are greatly appreciated!  Edit: I meant polynomials with integer coeficients, but for some reason typed positive.


I want to use four picture on one slide, using the subfigure command. I did it, but the font size of the subcption is really big, I'm using scriptsize compared with four subfig. Is the anyway to reduce it less than scriptsize , I found some suggestions  but doesn't help. When I tried using tiny I got the following error:  Package caption Error: tiny undefined. \end{frame}.    How to figure out this.  My code is here:   \documentclass{beamer} \usepackage{beamerthemesplit} \usepackage{tikz} \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps} \usepackage{epsfig} \usepackage{epstopdf} \usepackage{tcolorbox} \graphicspath{{./figs/}} % for 2nd questoin \usepackage[labelfont=bf,textfont=scriptsize]{caption} \usepackage[labelfont=scriptsize,textfont=scriptsize,singlelinecheck=on]{subcaption} % will apply to all subcaptions % set up labelformat and labelsep for figure \captionsetup[figure]{labelformat=empty, labelsep=none} % set up labelformat and labelsep for subfigure \captionsetup[subfigure]{labelformat=parens, labelsep=none} \renewcommand{\thesubfigure}{\roman{subfigure}} \captionsetup{compatibility=false} \usepackage{anyfontsize}   \begin{document} \begin{frame}{FBL Trajectory Tracking control}  \vspace{-0.3cm} \begin{figure}     \centering     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}         \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT1}         %           \vspace{-1.07\baselineskip}         \caption{Joint 1 torque}         \label{fig:FBLPT1}     \end{subfigure}     ~     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}               \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT2}         %           \vspace{-1.07\baselineskip}         \caption{Joint 2 torque}         \label{fig:FBLPT2}     \end{subfigure}     %\vspace{-2.07\baselineskip}     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}         \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT3}         \caption{Joint 3 torque}         \label{fig:FBLPT3}     \end{subfigure}     ~     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}               \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT4}         \caption{Joint 4 torque}         \label{fig:FBLPT4}     \end{subfigure}          \end{figure} \end{frame} \end{document}

I want to change the font size of the label of a figure environment to any font size. It's possible to use the package caption with the argument font=Large for example. But I found no way to choose any font size, e.g. fontsize=28pt.  Here an example code:  \documentclass{standalone} \usepackage{anyfontsize}  \usepackage[font=Large]{caption} %\usepackage[fontsize=28pt]{caption} % not implemented   \begin{document} \parbox[t]{20cm}{  \fontsize{28}{30} \selectfont  \begin{figure}     %\includegraphics{figure.eps}     \caption{\label{fig_req_osnr} \fontsize{28}{30} \selectfont My caption.} \end{figure}  }  \end{document}     Do you have any ideas?


I have 3 columns in Table TransactionMaster in sql server  1) transaction_amount  2) Card_No  3) transaction_date-- datetime datatype  So, I want to fetch SUM of  transaction_amount where Card_No=' 123' and transaction_date= todays date.<----- excluding time IN SQL

SELECT GETDATE()   Returns: 2008-09-22 15:24:13.790  I want that date part without the time part: 2008-09-22 00:00:00.000  How can I get that?


I am a PhD student, in my situation I work totally alone and freely , the good thing here is that I have learned to be autonomic and I can guide my research by my own, however, In comparison with the other Phd student , I don’t have a guide or even a corrector that I can discuss my work with; so that; as a solution I feel more comfortable when I write,  still less experienced, but when I write I read and I learn more and more, for the moment, writing replaces the absence of my supervisor!!! Working alone is not so dramatic; I try to extract the maximum of positivity facing the challenge of doing a PhD almost alone, I shared my experience because I’m curious; what can we learn from that? are there student in the same situation? If not; what would you do in such a case?

One of my advisor's students asked me how frequently I have meetings with him. And since at that time we had very few meetings I replied:      "We have a very few meetings and the advisor does not allocate time to me."    The advisor heard it and has started retaliating by reducing those few meetings to zero and complaining about me to other faculty, etc. Do you have suggestions about what I should do now?


How can one print the element after the last tab in a file?   Exemple: File1  A    3    8    6    7 B    4    6    2    3    6    8 c    1    9   would return:  7 8 9

echo -e 'one two three\nfour five six\nseven eight nine' one two three four five six seven eight nine   how can I do some "MAGIC" do get this output?:  three six nine   UPDATE: I don't need it in this specific way, I need a general solution so that no matter how many columns are in a row, e.g.: awk always displays the last column.


I was making a hammer in Blender, after I applied a texture to it, it froze and I soon realised that I hadn't only applied the modifier but had also saved the Blender file. Now, is there a way to remove the modifier?  Thanks in advance to all those who can answer this.

I am wondering if there is a modifier or tool that will essentially undo a subsurf or subdivide command.


I am currently doing some research on entropy and I am trying to get my head around the concept.  One thing that I am getting right now is that entropy is just an application of probability and statistics right? So it's not a force like gravity, but simply a result of a mathematical rule that says that, because there are so many probabilities of a system being arranged in a way, then this system will move towards the state where it is the most "spread around". I am getting this right?  What then would be some physical manifestations of entropy? (I've seen the example of an ice cube or a cup of hot tea, but I don't quite see how these two relate to entropy. Could you guys tell me how these two are related to entropy?).  Thank you!

On , change in  is defined as the amount of energy dispersed divided by the absolute temperature. But I want to know: What is the definition of entropy? , entropy is defined as average heat capacity averaged over the specific temperature. But I couldn't understand that definition of entropy:  $\Delta S$ = $S_\textrm{final} - S_\textrm{initial}$. What is entropy initially (is there any dispersal of energy initially)? Please give the definition of entropy and not its change.  To clarify, I'm interested in the definition of entropy in terms of temperature, not in terms of microstates, but would appreciate explanation from both perspectives.


What would be $\nabla f(x)$ if $f(x) = x^tAx$ where A is a n by n matrix and x is a n by 1 matrix. I have gone till $x'Ax + x^tAx'$ (where x' represents derivative) to find the solution but can see how I can write this as $(A^t + A)x$?

It's stated that the gradient of:  $$\frac{1}{2}x^TAx - b^Tx +c$$  is   $$\frac{1}{2}A^Tx + \frac{1}{2}Ax - b$$  How do you grind out this equation? Or specifically, how do you get from $x^TAx$ to $A^Tx + Ax$?


I read it in a horror anthology a while ago.  I don't remember too much of it, but it was about an upscale restaurant which only served limited plates for regulars who would disappear once in a while, with the implication being that they were being fed and fattened up to be the next meal at the restaurant.  I think the narrator may have been a restaurant reviewer, or someone whose friend finally allowed him to tag along.

Inn in each town has an interesting name pertaining to those who travel, i think (am almost positive!) the last Inn was named "The Rest of the Traveler". The author relates his experience, almost as if reviewing the food served in each town, and that the food gets a little worse along the way but still edible. The gist of the stories? Each place is serving parts of people, sending the parts it doesn't use to the next town along the way, hence the name of the final Inn visited. Driving me crazy trying to remember the title and author of this short. Can anyone help??!??


I came across this fact that if we flip an unbiased coin infinite times and represent the outcome as $X(\omega)=(X_1(\omega),X_2(\omega),\ldots )$ then the new random variable $U$ defined by   $$ U(w)=\sum_{i=1}^{\infty} \frac{X_i(\omega)}{2^i} $$  would have a uniform distribution on $[0,1]$.   I want to prove this above fact in addition to it's converse that given a uniform random variable, it's binary representation is equivalent to infinite i.i.d coin tosses. Though converse is fairly easy, the if part is turning out to be difficult.  In essence, the experiment of infinite fair coin tosses serves as a building block for generating any other random variable.

I know that the finite sum of Bernoulli i.i.d. random variables is a binomial distribution, but what is the distribution of $$\lim_{n \to \infty}\sum_{k=1}^{n} \frac{x_k}{2^k}$$ where $x_k$ is a Bernoulli random variable with parameter $\frac12$?


When you're an established user you can see vote counts on the site. Evidently, you can't do that on the site, though it's useful information.

This feature is missing in Android App and this  is same but in general (Mobile web).  Additionally, once this feature is implemented, we might accidentally hit the 'Up' or 'Down' vote (In smaller devices). The author might wonder why their post got downvoted.


Am getting NullPointerException When I click on parent item. Can you please suggest for this reason by seeing my code.I am not getting anything next step what I have to take for this mistake.Try to suggest me by seeing my code.The screen shot of logcat also I posted here.  Thanks in Advance.    public class ExpandListAdapter extends BaseExpandableListAdapter {  private Context context; private ArrayList<Group> groups;  ImageLoader imageLoader = MyApplication.getInstance().getImageLoader();  public ExpandListAdapter(Context context, ArrayList<Group> groups) {     this.context = context;     this.groups = groups; }  @Override public Object getChild(int groupPosition, int childPosition) {     ArrayList<Child> chList = groups.get(groupPosition).getItems();     return chList.get(childPosition); }  @Override public long getChildId(int groupPosition, int childPosition) {     return childPosition; }  @Override public View getChildView(int groupPosition, int childPosition,                          boolean isLastChild, View convertView, ViewGroup parent) {      Child child = (Child) getChild(groupPosition, childPosition);     if (convertView == null) {         LayoutInflater infalInflater = (LayoutInflater) context                 .getSystemService(context.LAYOUT_INFLATER_SERVICE);         convertView = infalInflater.inflate(R.layout.child_item, null);     }      if (imageLoader == null)         imageLoader = MyApplication.getInstance().getImageLoader();      TextView tv = (TextView) convertView.findViewById(R.id.country_name);     NetworkImageView iv = (NetworkImageView) convertView             .findViewById(R.id.flag);      tv.setText(child.getName().toString());     iv.setImageUrl(String.valueOf(child.getImage()), imageLoader);      return convertView; }  @Override public int getChildrenCount(int groupPosition) {     ArrayList<Child> chList = groups.get(groupPosition).getItems();     return chList.size(); }  @Override public Object getGroup(int groupPosition) {     return groups.get(groupPosition); }  @Override public int getGroupCount() {     return groups.size(); }  @Override public long getGroupId(int groupPosition) {     return groupPosition; }  @Override public View getGroupView(int groupPosition, boolean isExpanded,                          View convertView, ViewGroup parent) {     Group group = (Group) getGroup(groupPosition);     if (convertView == null) {         LayoutInflater inf = (LayoutInflater) context                 .getSystemService(context.LAYOUT_INFLATER_SERVICE);         convertView = inf.inflate(R.layout.group_item, null);     }     TextView tv = (TextView) convertView.findViewById(R.id.group_name);     tv.setText(group.getName());     return convertView; }  @Override public boolean hasStableIds() {     return true; }  @Override public boolean isChildSelectable(int groupPosition, int childPosition) {     return true; }   }  XML File:  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="4dp" android:paddingBottom="4dp" android:layout_marginLeft="50dp">  <TextView     android:id="@+id/name"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_alignBottom="@+id/flag"     android:layout_marginBottom="14dp"     android:layout_marginLeft="29dp"     android:layout_toRightOf="@+id/flag"     android:text="TextView"     android:textSize="20dp" />  <com.android.volley.toolbox.NetworkImageView     android:id="@+id/flag"     android:layout_width="70dp"     android:layout_height="40dp"     android:layout_alignParentLeft="true"     android:layout_alignParentTop="true"     android:layout_marginLeft="27dp"     android:src="@drawable/ic_launcher" />

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