the domain I want is taken and according to ICANN it expires on 2021-01-05. The only status it has is "clientTransferProhibited". I am not sure how to interpret this domain status... Does this status prohibit me from getting the domain once it has expired? And can I acquire the domain as soon as it expires according to the expiry date on ICANN?

I'm trying to purchase a domain name that was registered and apparently already expired. This is its status:  Status: clientHold http://www.icann.org/epp#clientHold Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited Status: redemptionPeriod http://www.icann.org/epp#redemptionPeriod Updated Date: 14-oct-2015 Creation Date: 01-sep-2014 Expiration Date: 01-sep-2015   From what I'm seeing from ICANN policies, it should already be available to be registered by third parties, but maybe I'm missing something. When will it become available for me to register it?


Upgrading from 13.04, the chat items (Available,Away,Busy,Invisible,Offline) re-appeared in the messaging-menu. I use Pidgin for chat, the icons do not reflect pidgin status changes. For Thunderbird I want to keep the envelope.  I already tried:  sudo apt-get remove empathy* sudo apt-get remove gwibber* sudo apt-get remove telepathy-indicator   I never had to change and recompile the messaging/indicator code as suggested e.g. in

I would know how to remove or hide in Ubuntu 12.04 the  (available, away, busy, invisible and offline) from Messaging Menu as I am not using any instant messenger. I do not want to remove the entire menu, just that section.  Thank you very much and best regards!!


The technique of bootstrapping, a technique used to describe estimators using sample data, is described by Greene (Econometric Analysis, 8th ed.) as it follows:  In such technique, sample size ($m$), as a percentage of $Z$, may be as small as 0% and as large as 100%. How should we choose it?

I am trying to understand difference between different  (Monte Carlo simulation, parametric bootstrapping, non-parametric bootstrapping, jackknifing, cross-validation, randomization tests, and permutation tests) and their implementation in my own context using R.  Say I have the following situation – I want to perform ANOVA with a Y variable (Yvar) and X variable (Xvar). Xvar is categorical. I am interested in the following things:  (1) Significance of p-values – false discovery rate  (2) effect size of Xvar levels    Yvar <- c(8,9,10,13,12, 14,18,12,8,9,   1,3,2,3,4) Xvar <- c(rep("A", 5),  rep("B", 5),    rep("C", 5)) mydf <- data.frame (Yvar, Xvar)   Could you gel me to explain the  sampling differences with explicit worked examples how these resampling method work?  Edits: Here are my attempts:  Bootstrap  10 bootstrap samples, sample number of samples with replacement, means that samples can be repeated     boot.samples <- list() for(i in 1:10) {    t.xvar <- Xvar[ sample(length(Xvar), length(Xvar), replace=TRUE) ]    t.yvar <- Yvar[ sample(length(Yvar), length(Yvar), replace=TRUE) ]    b.df <- data.frame (t.xvar, t.yvar)     boot.samples[[i]] <- b.df  } str(boot.samples)  boot.samples[1]   Permutation: 10 permutation samples, sample number of samples without replacement   permt.samples <- list()     for(i in 1:10) {        t.xvar <- Xvar[ sample(length(Xvar), length(Xvar), replace=FALSE) ]        t.yvar <- Yvar[ sample(length(Yvar), length(Yvar), replace=FALSE) ]        b.df <- data.frame (t.xvar, t.yvar)         permt.samples[[i]] <- b.df      }     str(permt.samples)     permt.samples[1]   Monte Caro Simulation     I am not sure about all above terms and whether my above edits are correct. I did find some information on  but I could not tame it to my situation.


Last week I installed Lubuntu 18.10 on a Dell D630 on a new hard drive. I previously had been using Lubuntu17.04 on this machine, but the hard drive quit working  The Wifi card (Dell 1390--BCM4311) didn’t work when I first installed 17.04. I looked around on the Internet and found information that told me to remove the STA driver and replace it using  sudo apt-get install --reinstall b43-fwcutter sudo apt-get install --reinstall bw43-fwcutter firmware-b43-installer  This worked fine in 17.04. I decided to try it for 18.10.  sudo apt-get install --reinstall b43-fwcutter [This seemed to work without problems.] sudo apt-get install --reinstall bw43-fwcutter firmware-b43-installer  [Linux response]  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package bw43-fwcutter  I tried the following  sudo apt-get install firmware-b43-installer  [Linux response]  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?  I then tried:  sudo apt-get update sudo apt-get --reinstall install bcmwl-kernel-source [This appeared to run to a successful completion—no errors or problems came up.]  The instructions I was following then said to enter  sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma  This gave an an error message "module ssb in use". I tried rebooting, but the wireless card didn't become operational. Interestingly, some icons on the task bar disappeared.  I removed the bcmwl-kernel-source and rebooted—the icons on the task bar reappeared.  So what next? It looks like the 18.10 repositories don't contain what the 17.04 repositories contained.

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


If $G$ is a non-abelian group of order $6$, prove that $G\cong S_3$.  I have met this problem in forum but it's solution is somewhat brief and not detailed and I cannot understand some its moments.  My efforts: Looking at the structure of $S_3$ I tried to draw up similarities between non-ableian group $G$ and symmetric group $S_3$.  Since $G$ has order $6$ then none of the elements have order $6$, otherwise it would be cyclic then abelian. Hence, all elements of $G$ except $e$ have order $2$ or $3$.  The case when all elements have order $2$ is not possible. I do not know why it is true. Please explain that.  Then one of the element has order $3$. And what to do after that I do not know.  It would be great and very useful if somebody will demonstrate the whole and detailed proof.  Remark: This problem from Herstein's book and please do not use Sylow and Cauchy's theorem  and group actions.

I need to show that there are only 2 groups of order 6 up to isomorphism.  I did prove it, but the proof is quite cumbersome. I wonder if there is a very concise proof.  My proof outline: Suppose $G$ is of order 6 and is not $\mathbb{Z}_6$. Then any element that is not identity must have order 2 or 3.  I went on to show that there must be a element of order 2 and another one of order 3, and the intersection of the cyclic subgroups generated by the two is the identity. Then I'm able to show it is isomorphic to $S_3$.


I'm fairly new to physics and currently reading A Brief History of Time by Stephen Hawking. Hawking is talking about black holes being the size of a few miles containing the mass of multiple times the sun's mass. How can matter be squeezed that dense? Isn't there a final point of matter being squeezed?                Maybe a silly example, but if a black hole can be multiple miles in diameter, why can't I compress my daily garbage to the size of a cubic centimeter sized cube with a giant hydraulic press? Or change the density of a steel block with a gigantic press?                        So basically, how can an atom be squeezed denser than it already is? I guess that's what happens in black holes at least! I couldn't find a non-physicist easy explained answer, an answer like how Hawking explains things by examples in his books. Thanks!

It is said that if the Earth were a black hole, it would be the size of a peanut!?  How is this density possible, are atoms really that sparse that they can be compressed so tightly? Is there some other physical dimension that the matter gets sucked into?


The goal is to create an animation curve mathematically that moves like a sin curve but holds at the extremes. I would also love to be able to parameterize it.  In the graph note how the domain spent at either 1 or -1 increases while the function still transitions smoothly in and out of these extremes. Thus far I have graphs of the following forms with no luck sin(x)*sin(x)^a sin(x)^a // This sort of works when a is [0, 1] however I do not like that the derivative appears infinite when y =0 sin(sin(x)) sin(x)+sin(x+a)  I really have not seen a formula that can do this. Is it even possible to translate a regular sine curve into one that lingers at its extremes? A function that is not even technically sinusoidal would be ok so long as it is periodic or can be made periodic by modulo-ing x.

I came up with this function: $$2\left(\frac{1}{1+e^{\textstyle\frac{-6\sin^{-1}(\cos(x))}{\pi/2}}}-\frac12\right)$$ to mimic a 'cosine'-esque function with flat peaks and valleys. Here it is as plotted by Wolfram Alpha:    What I was wondering is, is there a more elegant way to achieve this effect? (The values the function outputs need not be the same as those of this function - it only needs to look cosine-esque and have flat peaks and valleys).


I'm brand new to cycling and I have an entry level Cannondale catalyst 3. I was riding my bike on a trail and when I got home I noticed my right pedal was wobbling around. I tightened it but the pedal still wobbles around. I'm thinking the crank arm thread is stripped but I don't know. the crankset and the pedals are all default that came on the bike when I bought it. I'm on a low budget so is there any way I can fix this or do I have to get a new crank set? PLEASE HELP

The threads on my bike's pedal crank just became fully stripped and the pedal fell off, though the pedal itself is fine. Is there any way I can fix this without fully replacing the pedal crank?


Got my girlfriend a Logitech LS21 system for Christmas. It's a 2.1 system, but it's recognized in Windows 8 as a 2.0 system (it says there is no subwoofer connected). How would I go about getting the sub recognized? It plays some sound now, but it's so quiet you can't hear it without putting your ear right next to it.  It could be a problem with the sound card I've read somewhere. When the sub is turned down low with the knob on the back no sound, when turned up full you can hardly feel or hear the vibrations, so I decided to test on my mac they work fine, sub is nice and loud as it should be.   Does anyone have an answer on how to get the subwoofer recognized? I heard asio4all might work by playing with the sample rate? Or downloading new drivers but there are none on the logic tech site at the moment so maybe something realtek?

I got my dad a Logitech LS21 system for Christmas. It's a 2.1 system, but it's recognized in Windows 8 as a 2.0 system (it says there is no subwoofer connected).    How would I go about getting the sub recognized?  It plays some sound now, but it's so quiet you can't hear it without putting your ear right next to it.


I gave an example of what I'm trying to do. Can it be done in any way?    function ClosingHTML(){     DoSomeClosingCSSTransition();     setTimeout(function() {         SendMeToAnotherHMTL();     }, 2000); }

How can I redirect the user from one page to another using jQuery or pure JavaScript?


I am using a nonlinear model of the form y ~ p1 * exp(-p2*A), with the following coefficients:        estimate     se  zval    pval p1     5.5447 4.2592 1.302 0.19298 p2     0.3856 0.0835 4.616 0.00000 tau2   0.0000     NA    NA      NA   I want to use this model to predict the effect size (in %) of a treatment, influenced by the variable A. Let's assume, for example, this is the effectiveness of a cancer treatment at a certain age A. For example, when A= 9, effect size is ~19%:  make_pct <- function(x) (exp(x) - 1) * 100 > make_pct(5.5447 * exp (-0.3856 * 9)) [1] 18.82309   The problem is that now I don't know how to calculate the standard error at e.g. A=9 using this model. I am sure this is very basic but I don't have any experience in this particular matter. Thanks

The  for Prism gives the following explanation for how it computes the prediction bands for non-linear regression.  Please excuse the long quote, but I am not following the second paragraph (that explains how $G|x$ is defined and $dY/dP$ is computed).  Any help would be greatly appreciated.     The calculation of the confidence and prediction bands are fairly   standard. Read on for the details of how Prism computes prediction and   confidence bands of nonlinear regression.      First, let's define G|x, which is the gradient of the parameters at a   particular value of X and using all the best-fit values of the   parameters. The result is a vector, with one element per parameter.   For each parameter, it is defined as dY/dP, where Y is the Y value of   the curve given the particular value of X and all the best-fit   parameter values, and P is one of the parameters.)      G'|x is that gradient vector transposed, so it is a column rather than   a row of values.       Cov is the covariance matrix (inversed Hessian from last iteration).   It is a square matrix with the number of rows and columns equal to the   number of parameters. Each item in the matrix is the covariance   between two parameters.      Now compute c = G'|x * Cov * G|x. The result is a single number for   any value of X.      The confidence and prediction bands are centered on the best fit   curve, and extend above and below the curve an equal amount.      The confidence bands extend above and below the curve by:    =   sqrt(c)*sqrt(SS/DF)*CriticalT(Confidence%, DF)      The prediction bands extend a further distance above and below the   curve, equal to:    = sqrt(c+1)*sqrt(SS/DF)*CriticalT(Confidence%,   DF)


Why does one use shall+be+ing instead of will? What are the functions of be and V+ing?  I shall be focusing on the mechanisms that govern individual`s choices at and beyond school-leaving age and trying to explain why some pupils leave while others stay on,..

Which is the correct use of these two words, and in which context should one be used rather than the other?


I am using the colortbl package to color the cells of a table. I want to be able to color a cell depending on the value in the cell. In my specific case, I'd like to enter a number between 30 & 90 and color the cell in a shade of gray. I used the fp package to create a command that displays the value of the argument in a colored cell as shown in the MWE below.  \documentclass{article} \usepackage{colortbl} \usepackage{fp}  \newcommand{\colorcell}[1]{% \FPeval{grayshade}{1.171-0.00857*#1}% \cellcolor[gray]{\grayshade}#1}  \begin{document}  \begin{tabular}{ccc} \cellcolor[gray]{.4}85 & \cellcolor[gray]{.8}85\\ \colorcell{73} & 0 \end{tabular} \end{document}   However, this gives me an error that \grayshade is an undefined control sequence. I can rewrite the code to know that \grayshade is defined; it seems that colortbl isn't liking it for some reason.  How can I fix my code to make this work?  A solution probably exists using things like pgf/Tikz, and I am open to these, but I'd also like to see how this should work.

I am trying to give a table cell a grayscale color value based on it's numeric value. So far I have the following code  \documentclass{article} \usepackage{fp,xcolor,colortbl} \FPeval{\resb}{0.5}  \newcommand{\he}[1]{%     \FPeval{\resa}{2 * #1}%     \cellcolor[gray]{\resa}%     #1  }  \begin{document} \begin{tabular}{| c | c | c |}     \hline     \he{0.1} & \he{0.2} & \he{0.3} \\     \hline     \he{0.5} & \he{0.8} & \he{1.0} \\     \hline \end{tabular} \end{document}   The tables contain all floating point numbers. The error I get is :   Undefined control sequence. <argument> \resa    Is there a way I can use the result from the FPeval to color the cell?


For code optimization purposes, I want to create a 2d array that contains 40 equal squares (10x10px). Each square represents 1\40 of the displayed window (400x400px).  I populate the 2d array with the standard double for-loop methodology.      int col = 40;     int row = 40;     int boxSize = 0;     Integer[][] boxes = new Integer[40][40];      for (int i = 0; i < col; i++) {         for (int j = 0; j < row; j++) {             boxes[i][j] = boxSize;             boxSize += 10; //Creates a 10px box.         }         boxSize = 0; //Resets box size for next column     }   There are several circles in this program. We have a ship(circle) that fires missiles(circles) toward enemies(circles).  I want to run collision detection ONLY when there is a bullet + an enemy in one of the squares. This will greatly optimize the code.  The question is... how do I create these squares off of a 2d array? How do I select each square? How do I test if the missiles and the enemies are inside the same square?  Thanks.

Up until now, I implemented all-against-all collision detection in my games. It worked fine.  But I reached a point where implementing this kind of collision detection, makes the game run poorly, because there are two many objects to iterate through and check for collision.  I have searched this site and found something about 'uniform grids'. But I didn't completely understand what it is and how to implement it. Tried to Google it but nothing easy enough to understand came up.  I am a beginner to 2D-game programming. Do you mind trying to explain to uniform-grids, or link me to some good tutorial?  Thanks a lot


Is there any formula for calculating the following expression ? Given the relation $N = r_1 + r_2$ and $r_1$ is only odd and $n_1$ and $n_2$ are positive integers, we need to calculate value of: $$\binom{n_1}{r_1} \cdot \binom{n_2}{r_2} + \binom{n_1}{r_1+2} \cdot \binom{n_2}{r_2-2} + \binom{n_1}{r_1+4} \cdot \binom{n_2}{r_2-4} + \binom{n_1}{r_1+6} \cdot \binom{n_2}{r_2-6} + \cdots$$ It is given that initial value of $r_1 = 1$ and $r_2 = N-r_1$. Series continues until either $r_1=n_1$ or $r_2<0$. Is there a simple formula for calculating above ? Anything in terms of power of $2$ would be highly appreciated link to related problem:

How do I simplify: $$\sum_{r = 0}^{\lfloor \frac{k}{2} \rfloor} \dbinom{k}{2r} \cdot \dbinom{n-k}{k-2r}?$$ Basically, the sum is: $\dbinom{k}{0} \cdot \dbinom{n-k}{k} + \dbinom{k}{2} \cdot \dbinom{n-k}{k-2} + \dbinom{k}{4} \cdot \dbinom{n-k}{k-4} \cdots.$ This seems very similar to Vandermonde's Identity but because we skip two everytime instead of one, I don't see how I can apply it to this problem.


In a form I have a hidden field:  <input type="hidden" id="callback_function" value="myFunction" />   Now some JavaScript:  <script>     $('.dataRow').click(function(){         if($('#callback_function').val()){             //same as executing myFunction();             eval($('#callback_function').val()+'();');         }     }); </script>   This works but seems very inelegant.  Is there a way to do this without using eval?

I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later?  Depending on the circumstances, I may need to pass various arguments into the method too.  Some of the functions may take the form of namespace.namespace.function(args[...]).


I am struggling to reconcile the two definitions for current density. Definition one: the current is the flux of the current density vectors through a surface: $$I = \iint_{S} \vec{J} \cdot d\vec{S}$$ Definition two: the current is the small change in charge through a surface over the small change in time that passed: $$I=\frac{dq}{dt}$$ I cannot manage to mathematically transform one into the other. Expanding the first definition: $$I=\iint_{S} \vec{J} \cdot d\vec{S}=\iint_{S} \rho \vec{v} \cdot d\vec{S}$$ We can see the real meaning of this integral now. Charge density is the charge contained in a point (really in an infinitesimal volume (). Whatever surface you're measuring the current through, you're measuring the velocity vector of point charges, scaled by the points' respective charge. The flux integral considers all of the influences together of these scaled velocity vectors. I could use some help completing my mental picture. How is what I just described the same as the rate of change of the charge through the surface? An explanation of that is preferred or maybe a mathematical transformation from one form to the other. A huge thanks to anyone willing to help! Dear moderators: this post   has a similar title but is not at all the same question in substance.

The current density is defined as: $$\textbf{J} (\textbf{r},t) := \rho(\textbf{r},t) \cdot \textbf{v}(\textbf{r},t)$$ where $\rho (\textbf{r},t)$ and $\textbf{v}(\textbf{r},t)$ is the charge density and the particle velocity at point $\textbf{r}$ and at time $t$. Based on that definition, how could one derive the following relation? $$I = \iint_{\mathcal{A}} \textbf{J}(\textbf{r},t)\cdot d\textbf{S}$$ where $\mathcal{A}$ is a surface. I am asking this because authors tend to define the current density $\textbf{J}$ through the latter equation (having the current $I$ predefined). I wish to understand how the two are equivalent.


I am creating a page where I have a view listing about 100 nodes of a specific content type and then underneath that I have a contact form. When visitors (logged out users) come to my site I would like them to be able to select some nodes from this view that they like. Either with a checkbox next to each one of them or by some other flagging system. When they then complete my form the specific nodes they have chosen will be sent with the form submission.   Possible Solutions:   Create a template file for the view and add in a checkbox in front of each node. Use the flags module and pass the selected nodes when submitting.    I've never done something like this before so any help would be appreciated!

I have an administrative display (made with views) that lists content that is pending approval.  In the case of my site, approval means flagging with the approval_for_pub flag (which triggers a custom rule).   allows nodes to be flagged/unflagged all at once by clicking a handy button:    However, upon clicking this button, by default it shows all possible flags and the flag/unflag option:    This is a problem on my site because some of the people responsible for approval get confused by the names of the flags and select the wrong option.  So, what I would like to do is create a VBO option that, when the button is pressed, automatically flags all applicable content with the approval_for_pub flag.  How can I approach this?  It seems like a small detail, but this step happens several times a day, so the chance of making a mistake is quite high.


I need Stack Overflow for working purposes, so I automatically see every now and then the HNQ's.  In my spare time I'm watching  and not past season 6 yet.  Since weekly the episodes of season 7 get published, the HNQ just get flooded with GoT questions every Tuesday. Even the titles that carefully are phrased not to spoil leak hints I simply would like to not have yet. Not to mention the titles that get HNQ before spoilers got removed from their titles.  For me it isn't feeling fair, having a free time activity I enjoy, getting spoiled by the fact that I have to use SO on work.  So is there anything I can do to prevent this? Or is there a way maybe even moderators could prevent this?

I've noticed that occasionally "hot questions" from SciFi and the Movies & TV network contain major spoilers about the movie/show discussed.  The Matrix spoilers:      (just now there's something about Cypher betraying Morpheus in the Matrix, which is a big deal for people who haven't seen the movie).   I like browsing through those but fear that one day one of these questions will spoil a show I'm excited about and yet to finish   Breaking Bad spoilers:      (like the finale of Breaking Bad, imagine a question asking why did one character betray another at the end or something).   Can users posting such questions be asked to label those with a tag (such as 'spoilers') and then somehow have the network hide those from the "hot questions" list? Or possibly format them differently?  Similarly, this could apply to the Arcade network too.  P.S. Love how this question spikes in popularity around the time GoT starts running again. I swear it should be fairly simple technically to ban questions that have a tag that says 'spoilers' from appearing in the Hot Network Questions.  P.P.S. Oh, and with every fresh release of Star Wars (The Last Jedi being the most recent one)!  P.P.P.S. Another year, another Game of Thrones, another spike in popularity!


How can I prove that any number coprime with 10 (either prime or not) can divide at least one number of the form 111...111?

We shall define $R(k)$ to be a repunit of length $k$; for example, $R(6) = 111111$.  Lemma: Let $n$ be a positive integer and $GCD(10,n) = 1$. Then, there exists a $k$ such that $R(k) \equiv 0$ $ $ $ $ $mod$ $(n)$.  I 'm asking this question because I saw  question.  Thanks for any help.


First, I draw three nodes each of which has three parts. Everything is OK. The code and the image are as follows.   \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{tikz} \usetikzlibrary{shapes}  \begin{document}   \begin{tikzpicture}[]     \foreach  \placement in {(0,0),(3.5,0),(1.75,2.5)}          \node [rectangle split, rectangle split parts = 3, rounded corners,           draw, inner ysep = 0.2cm, inner xsep = 1.5pt,           rectangle split part fill = {blue!40, lightgray!80, red!40},           rectangle split every empty part={},           rectangle split empty part height = 0pt]           at \placement           {\texttt{Client} \nodepart{two} \nodepart{three} \texttt{Server}};   \end{tikzpicture} \end{document}        Then I want to assign names to the nodes by adding another parameter \name in the \foreach statement.   \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{tikz} \usetikzlibrary{shapes}  \begin{document}   \begin{tikzpicture}[]     \foreach  \name/\placement in {box0/(0,0),box1/(3.5,0), box2/(1.75,2.5)}          \node [rectangle split, rectangle split parts = 3, rounded corners, draw,            inner ysep = 0.2cm, inner xsep = 1.5pt,            rectangle split part fill = {blue!40, lightgray!80, red!40},            rectangle split every empty part={},            rectangle split empty part height = 0pt]            (\name)            at \placement                   {\texttt{Client} \nodepart{two} \nodepart{three} \texttt{Server}};   \end{tikzpicture} \end{document}   This time I get the following errors:     Argument of \XC@definec@lor has an extra }; I've run across a "}" that doesn't seem to match anything.   I am confused about the debug information because I have not added any extra `}'s to the code. Any suggestion  to handle with this problem?  NOTE: You can find the read-only source code and debug information at .    The related post  has been closed without an MWE.

I want to draw a bunch of nodes with different styles (a, b, ...) at different points (named 00, 01, ...). I am using the following code:  \foreach \n/\lst in {   a/{00, 14, 20, 34},   b/{01, 11, 23, 33} } {   \foreach \xy in \lst {     \node[\n] at (\xy) {\n};   } }   with the hope that \lst would be assigned a list, and \xy would be assigned elements from this list. However, I get error Package pgf Error: No shape named {01, 11, 23, 33}  is known. How to fix this?


Many answers and comments on this site mention that one should generally avoid using eval in shell scripts.  Often these comments are addressed to beginners.  I've seen mention of security issues and robustness, but very few examples.  I already understand .  However, the answers given there only mention briefly the dangers of using eval.  Remarkably, every answer notes that eval can be a major security hole, but most only mention this fact as a concluding sentence with no elaboration.  This seems worthy of further consideration and is really its own question.  Why is using eval a bad idea?  When would it be appropriate to use?  Are there any guidelines by which it can be used with complete and total safety, or is it always and inevitably a security hole?    EDIT:  is the sort of canonical reference (answer) I was actually looking for when I posted this question.  Anyone abusing eval can be pointed to this reference.

What can you do with the eval command? Why is it useful? Is it some kind of a built-in function in bash? There is no man page for it..


I'm using VMware player 16 on win10. As soon as my mouse moves outside of the VM I can no longer type in the VM. My expectation is that I should have to click on another window before I can no longer type in the VM. If I move the mouse outside of the window I can no longer type, but once the mouse moves back inside of the window I can type again. Can anyone advise on how to retain the ability to type when the cursor is outside of the window?

I am having issues with input in VMware Workstation Player 12 in windowed mode or on multiple screens. When typing something in the VM and moving mouse cursor out of the VM without clicking on anything (for example on the second screen with host OS), the typing in that VM stops until I move the cursor back into VM.  Can this feature be disabled somehow so I am able to type in the virtual machine even when cursor is outside of it?  Both guest and host are Win10 x64 OS.


from datetime import datetime current_time = datetime.now()  print "%s-%s-%s" % (current_time.month, current_time.day current_time.year,) #Will print the current date in a mm/dd/yyyy format.  input()   The code above is meant to print out the current date in a mm/dd/yyyy format in a command prompt. So for example if this actually worked it would open up a command prompt window that printed out; for example the current date as im writing this like this: 8-5-2017  I keep getting this error when trying to run the module that the closing " in "%s-%s-%s" that it's invalid syntax. Is python 3 using something different from this or did I make a mistake?

This is my code:  import datetime today = datetime.date.today() print(today)   This prints: 2008-11-22 which is exactly what I want.  But, I have a list I'm appending this to and then suddenly everything goes "wonky". Here is the code:  import datetime mylist = [] today = datetime.date.today() mylist.append(today) print(mylist)   This prints the following:   [datetime.date(2008, 11, 22)]   How can I get just a simple date like 2008-11-22?


I'm trying to use a library with DOM properties in an LWC but many things are not working because DOM properties as document.getElementById or document.defaultView.getComputedStyle are not allowed in LWC js. Is there a way to import another library with DOM properties so I allow the LWC to use them? How ? I'm open to other solutions too.

I'm trying to capture the display css property value for an element. However, unless I set style.display value in js it doesn't work. HTML:

A

B

C

  CSS: .dropdown{     position: absolute;     display: none;     background: white; }  JS: Below JS method is be called from one of the input boxes in html: updateDropDownStyle(){    console.log('display : '   ,this.template.querySelector('.dropdown').style.display); }  However, the console prints nothing at all. However, if in the same method I set the element.style.display value as none and then try to console the above - it prints none. What's the issue here?


Prove, that there is a group of order 56, that has a non-normal subgroup of order 7. I'm not sure that this statement is true, but I couldn't find a counterexample.

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


I use the smartphone USB dethering internet.  The same is true when connecting through an internal router.  Only the internal network IP is found, and the real IP is not visible.  How can i find it.  ifconfig  enp0s20f0u3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 192.168.42.228  netmask 255.255.255.0  broadcast 192.168.42.255         inet6 fe80::1e25:40f2:93d6:20fa  prefixlen 64  scopeid 0x20<link>         ether 42:39:19:9d:ea:b3  txqueuelen 1000  (Ethernet)         RX packets 8831  bytes 6881241 (6.8 MB)         RX errors 3  dropped 0  overruns 0  frame 3         TX packets 7230  bytes 1269771 (1.2 MB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  enp4s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500         ether f4:8e:38:ee:82:17  txqueuelen 1000  (Ethernet)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 0  bytes 0 (0.0 B)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10<host>         loop  txqueuelen 1000  (Local Loopback)         RX packets 2002  bytes 137278 (137.2 KB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 2002  bytes 137278 (137.2 KB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

If I check with , I can see my public IP. Is there something on the Ubuntu command-line which will yield me the same answer?


On my recent flight to Tokyo on UA I found the cabin immensely cold and not only did I ask for an extra blanket, I also asked if the temperature could be raised. The flight attendant did not refuse and actually said she would check - and probably did something - because I did feel better after a while (unless I just got used to the cooler temperature). However on my return flight it was just the opposite and the flight was extremely warm.  So I'm wondering, is there not an FAA standard for in-flight temperature (and probably pressure) or it is fairly arbitrary - within a range, of course?

When preparing for a commercial jet flight it'd be nice to know how warm my clothes should be so that I don't freeze after sitting for several hours in say +16 degrees Celsius (61 degrees Fahrenheit).  What's the typical temperature in the passenger cabin? Are there air drafts? How cold and how warm can it reasonably get?


i am new to javascript and am not sure how to read data from json file using javascript. i have data like below in my json file located in path api/data.json {     "description": " description",     "data": [         {             "id": "1",             "title": "first_data_title",             "items": [                 {                     "id": 1,                     "title": "item1_title"                 },                 {                     "id": 2,                     "title": "item2_title",                 },                 {                     "id": 3,                     "title": "item3_title",                 }             ]         },         {             "id": "2",             "title": "second_data_title",             "items": [                 {                     "id": 4,                     "title": "item4_title"                 }                 {                     "id": 5,                     "title": "item5_title"                 }             ]         },         {             "id": "3",             "title": "third_data_title",             "items": [                 {                     "id": 6,                     "title": "item6_title",                 },             ]         }     ] }  as seen from above data is an array of objects where each data has array of items. now i want to display each data with its title and its items title in a list. meaning like below, [![enter image description here][1]][1]  on loading the application my code is like below, index.html <!DOCTYPE html>               <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">         <meta http-equiv="X-UA-Compatible" content="ie=edge">         <link rel="stylesheet" href="src/styles.css">
page loaded
        in scripts.js function onload() {     console.log('onload');     //how to fetch data from data.json file and display it as in the      //picture }  window.onload = onload;  could someone help me with this. thanks. EDIT: tried like below i am trying something like this function onload() {     console.log('onload');     fetch('api/data.json')         .then(response => {             if (!response.ok) {                 throw new Error("HTTP error " + response.status);             }             return response.json();         })         .then(json => {             const data = json;             console.log(data);         })      }  this gives unexpected token error. i think the problem is using .then so i tried using async method async function onload() {     const data = await fetch('api/data.json');     console.log('data', data); }  this gives the regeneratorRuntime not defined error. i have tried to do like below functio onload() {   fetch('api/data.json)    .then((response) => {         console.log('res', response.json);        return response.json();     })     }  and this logs error and log statement in console like below  below is how the files are structured and i am trying to just read json data from data.json file located in api folder.

I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget.


I have a requirement that enable autosleep in batch file. The reason is i want to autosleep my computer after getting off work, but disable autosleep when i'm on duty   I know how to auto wake up my computer by using RTC in BIOS I know how to run a batch at certain time by using scheduler   The only thing I don't know is how to enable or disable autosleep by batch.

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


I hope this is the right place to ask this question. I have been trying to ask a question in OS but am unable to do so...    This is not a temporary thing since it has been that way for more than 90 days...   Also I have checked my answers/questions and actually went trough all my stats and found nothing special. I got one down vote on some answer but that I think is only natural. Also I am not working on a network computer and only login from my current account which is an active account on wordpress.stackexchange.com    I have no idea what might be the reason I got banned... Must I create a fake new account to be a member?    Is there anything I can do? Why did this happen?  Again, I hope this is the right place to ask this question. I went through all available data but found no definitive answer as to what I can do.

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


I'm undergraduate civil engineering, and I'm planning for master degree. My GPA is 3.7, and I didn't do GRE yet. However, I have strong research interest and I have some publications. Do you believe that I can be enrolled in high ranked universities such as MIT, Berkeley, Stanford?

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


I have seen that some people can delete others' comments. Can only moderators do this or can anyone with a high enough reputation? Also, can my answers also be deleted by others?

I posted a comment on the . My comment was:  You will have to work on your [accept rate](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work). Currently it's catastrophic. Zero as in a singularity inside a black hole.  This comment was deleted by someone. I would like to know if showing users that don't know how to accept answers is considered as a bad thing so that I stop doing it or if not why would my comment have been deleted and do only moderators are InRole to delete comments.


I am travelling from Kunming to Bangalore via Bangkok - swarnabhumi airport.  My itinerary is as below 14 JAN 20 23:00 15 JAN 20 00:45 Kunming Bangkok MU2583 40* 40* MU MTQP5F 2h 45m | Kunming, KMG - Suvarnabhumi International, BKK LAYOVER 3h 40m 15 JAN 20 04:25 15 JAN 20 06:55 Bangkok Bangalore 6E76 1* INDIGO NMEM4K 4h 0m | Suvarnabhumi International, BKK - Kempegowda International Airport, BLR Do I need a transit visa as my stay in Bangkok air port is only 3hr. 40 minutes. I am an indian national studying in China.  Please help and guide me.  Thanks

My itinerary     Bengaluru(Thai Airways International) --> Bangkok --> 01h15m layover   --> Bangkok(Thai Airways International) --> Taipei(Terminal 1)   ^ The flight numbers being different  While coming back from Taiwan, it would be      Taipei(Terminal 1)(Thai Airways International) --> Bangkok --> 10h45m   stop --> Bangkok (Thai Airways International) --> Bengaluru   ^ The flight numbers being different  So, would I be needing a transit visa for Bangkok?   I just got my stamped passport back from the Taiwan embassy with the visitor VISA stamp.  NOTE: All the above flights are booked at the same time i.e. both my Thai Airways International have the same PNR.  EDIT I got this off from the      National India (IN)             /Transit Thailand (TH)      Thailand (TH)      TWOV (Transit Without Visa): Visa required, except for Holders of   onward tickets for a max.      transit For details, click here time of 12 hours through Bangkok   Suvarnabhumi (BKK). Passengers must have a connecting flight      booked on the same ticket.          This does not apply when traveling on Angkor Air (K6),    Beijing Capital Airlines (JD), Business Air (8B), Cebu    Pacific (5J),   Eaststar Jet (ZE), Golden Myanmar Airlines    (Y5), Hong Kong Airlines   (HX), Indigo (6E), Jeju Air (7C),    Jet Asia Airways (JF), Jetstar   (JQ), Jetstar Pacific (BL),    Jin Air (LJ), JuneYao Airlines (HO),   Lao Central Airlines    (LF), Mandara Airlines (RI), Norwegian Air   (DY), Okay    Airways BK), Orient Thai Airlines (OX), Regent Air (RX),   Shandong Airlines (SC), Shanghai Airlines (FM), Shenzhen    Airlines   (ZH), Siberia Airlines (S7), Sichuan Airlines    (3U), South East   Asian Airlines (DG), Spice Jet (SG), Thai    Smile Airlines (WE),   Tianjin Airlines (GS), Tiger Air (TR),    Trans Aero (UN),   Turkmenistan Airlines (T5), T'way Airlines    (TW), Ural Airlines (U6)   and VietJet Air (VJ).  Visa required, except for Holders of onward   tickets for a max.         transit For details, click here time of 12 hours through Bangkok Don   Mueang (DMK) when traveling on Thai AirAsia (FD) or Thai AirAsia X   (XJ). Passengers must have a connecting flight      booked on the same ticket.


dis = new DataInputStream(csocket.getInputStream()); int choice = dis.readInt(); Connection conn = MySqlConnect.ConnectDB(); PreparedStatement pst = conn.prepareStatement("Select hostname from clients where C_ID="); ResultSet rs = pst.executeQuery();   How can I put choice into the given query?

I am planning to replace repeatedly executed Statement objects with PreparedStatement objects to improve performance. I am using arguments like the MySQL function now(), and string variables.   Most of the PreparedStatement queries I have seen contained constant values (like 10, and strings like "New York") as arguments used for the ? in the queries. How would I go about using functions like now(), and variables as arguments? Is it necessary to use the ?s in the queries instead of actual values? I am quite confounded.


I want to download two series of playlists from this channel:   The channel has a "Biology" series of playlists and a "Biochemistry (by chapters)" series of playlists. Essentially, I want to make two directories "Biology" and "Biochemistry" that contain subdirectories that bear the name of the playlists in the series with the corresponding name on the channel. Additionally, I would like for the videos to be in order, so each video in a playlist has its index before the title and URL section of the file name. How can I accomplish this?  Thanks in advance.

How the current file has been downloaded to display the original title? When i download always like P9pzm5b6Fxx.mp4, when the title is Tigerking.  How do I set it so that it is downloaded as tigerking.mp4?


Let $V$ be a vector space over a field $F$. Let $T: V\to W$ be a linear transformation.   a. Prove that $T^2=0$ if and only if $R(T)$ is contained in $N(T)$. (Here we denote $T^2$ as the linear transformation such that $T^2(v)=T(T(v))$ for all $v$ in $V$)  b. Assume that $V$ is finite-dimensional and $T^2=0$. Prove that $\operatorname{nullity}(T)$ is greater than or equal to $\dim(V)/2$.

Question  Let $T:V \rightarrow V$ be a linear map. How do I prove that $T \circ T = T_0$ ( the zero linear map) iff $R(T) \subset N(T)$?  Attempt  \begin{eqnarray} T\circ T=T(T(v))&=&T(T(v-0))\\ &=&T(T(v)+T(-0))\\ &=&T(T(v))+T(T(-0))\\ &=&T(T(v))+T(-T(0))\\ &=&T(T(v))-T(T(0))&=&0, \end{eqnarray} so this last bit gives \begin{eqnarray} T(T(v))=T(T(0)), \end{eqnarray} which means $T(v)=T(0)=0~\forall~v\in V$, so $R(T)=0$, this zero of which is in the null space for all linear maps $T$.


Is there a convenient way of subtracting different units of time using the Calendar class? I am making a timer that counts down for multiple hours and prints the time to the console in hours, minutes, and seconds. I don't want to use any libraries such as Joda Time in this program. I also want to use the Calendar class, and not the Date class, unless it is too difficult.  This is my current code and it only prints the remaining time in seconds:  import java.awt.*; import java.util.*;  public class ClickWhen {     public static void main(String[] args) throws AWTException {         int minGoal = 30;         int hourGoal = 6+12;         Calendar time = Calendar.getInstance();         int minute = time.get(Calendar.MINUTE);         int hour = time.get(Calendar.HOUR_OF_DAY);         int second = time.get(Calendar.SECOND);         int sRemaining = (minGoal*60+hourGoal*3600)-(second+minute*60+hour*3600);         boolean isGoing = true;         Robot r = new Robot();         while(isGoing) {             r.delay(1000);             time = Calendar.getInstance();             minute = time.get(Calendar.MINUTE);             hour = time.get(Calendar.HOUR_OF_DAY);             second = time.get(Calendar.SECOND);             if(hour >= hourGoal && minute >= minGoal) {                 // do something                 isGoing = false;             }             if(hour >= 12) {                 System.out.println(hour-12+":"+minute+":"+second+" P.M.");             }             if(hour < 12) {                 System.out.println(hour+":"+minute+":"+second+" A.M.");             }             sRemaining--;             System.out.println("Seconds Remaining: "+sRemaining);         }     } }   This is my first question on Stack Overflow, so how did I do?

Anyone know a simple way using Java calendar to subtract X days from a date?  I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone point me to the right direction?


i do IT work, and the "it" thing these days is to throw the occasional probability question out there. The last time i stumbled on this, i'd just sat the GMAT and had probability somewhat down... still, it is the one region in maths that has always left me the most confounded.  I have not stumbled across any killer probability books either - but i am sure they exist! Or lecture notes/something online?  Any suggestions/ideas?  UPDATE: i did hons maths pricing black-scholes etc back in uni (10 years ago), so i'm not shabby (but also def not brilliant) at maths. So that's me. As for the questions in particular, you know, a good book that started at the beginning (simple coin toss stuff) and then rocketed off to at least P implies A, with a thorough set of questions and answers would be good. Does that help?

Question is quite straight... I'm not very good in this subject but need to understand at a good level.


I have enabled 2 factor authentication, using Google Authenticator, for 6 services: LastPass, Dropbox, Evernote, Wordpress, Tumblr and Google. How can I transfer them all to my new phone?  I followed the instructions , but the result of that was only that my Google account authentication was moved to the new phone. So, now I can access one account using my new phone, and need my old one for the other 5.  Surely there is a way to do this in bulk? I don't really need to do something special with each service provider do I?  New phone is Motorola Moto G3, old is Moto G. Both working. Neither rooted.

I'm starting to use Google Authenticator for more and more things now, but I've just realized that if I lose my phone, or if I need to wipe and restore it to install new firmware, I will lose all of my codes.  Is there anyway to back them up please? Or some kind of fallback that means I can restore it to a new device?  Thanks


I'm creating a t-shirt design and need to know how to combine all the white shapes that make this image and separate it from any dark green. The white image will eventually be printed on a dark green t-shirt as shown in the template. If you open the file you can see that the image was created with a combination of white and dark green shapes. I would like the white part that's visible to be the only image in this file.  Here's the link to the illustrator file:

I did a three-color Live Trace, and output the colors to swatches. Now I'd like to assign each of these three (spot) colors to their own layer. I'm sure this is super easy, and I'm just over-looking something, but I could find no obvious command, nor could I drag the swatches to the layers palette. Some googling brought me to this site, although not to an answer. How do I do this? Thanks!


I get that symbol inside quotes in listings environment. It seems to appear only inside quotes.Outside of them it seems that is not happenning the same thing. Why do I have that problem and how can I fix it?

I'm seeing an odd character like a very flat U, where there should be a space, with the listings package. See example below. Does anyone have any idea why this is happening, or how to get rid or work around it?  \documentclass{standalone} \usepackage{underscore} \usepackage{listings} \usepackage[usenames,dvipsnames, rgb, svgnames, x11names]{xcolor} % Text layout \topmargin 0.0cm \oddsidemargin 0.5cm \evensidemargin 0.5cm \textwidth 16cm \textheight 21cm  \lstnewenvironment{cmd}[1][]{%   \lstset{language=sh, backgroundcolor=\color{LightSteelBlue1}, #1}} {}  \begin{document} \begin{cmd}[caption=Configuration file section including filters] [affy6] [...]     [[hapmap]]     phenofiles = "data/Hapmap6.0/Pheno/hapmappheno_909.csv",     genofile = "/data/snppy/Hapmap6.0/Geno/birdseed-v2.calls.txt"     anno_filter = "chromosome = 5"     idlink_filter = "studyid = 'CEU'"     some_other_stuff = "foo = bar" \end{cmd} \end{document}


I have a mesh and I'd like to generate a new mesh with a given distance to the original one. I've tried scaling the mesh but since it is not squared it gets non uniform distances.  Regards  This photo is a nice example:  Original question:

I'm quite new to Blender, so forgive me if this is a dumb question. I don't even know hot to describe it properly, so:      Basically I want to extrude a rectangle and then scale it along two axis, but without keeping the proportions; I want to reduce them of the same quantity, so that I get something similar to the frame of a picture.


I'm considering bottling salad dressing but I'm not sure of the shelf life. The ingredients for some are - prunes (or figs), lemon, olive oil, ginger, garlic and water and possibly some xanthan gum.  Can you tell me what the best way to bottle this and how long it will keep once bottled and then how long after when it's opened?   Also, I may consider keeping this as a thicker 'dip' recipe as well. How would I bottle that?

I would like to bottle my homemade dressing. The main ingredients are olive oil, balsamic vinegar, honey, lemon and dijon mustard. Once it is bottled, is there a processing time as there is with canning vegetables?


Occasionally, I come across questions (specifically in Stack Overflow) where the actual question is just included as the title of the post but not in the text.  So the text just explains the problem without ever including the question.  Is this a bad practice to include the question just in the title but not in the text? Personally I find it inconvenient, even though I read the title before clicking once I'm on the question I tend to focus on the text.  I will try to include examples of this as I come by them.

I see many questions with really long titles and bodies with nothing more than:     "Title says it all"   "See title. ~thanks~"   "In PHP. thanks!"   Examples (a couple I already edited):        I assume the "thanks" variants at the end are to get around a minimum length. Should these be edited or voted to close? If edited, how? Should I just repeat the title in the body?  It seems like a question that can fit entirely in the title is inherently low quality.  UPDATE: There's over 700 of just the "title says it all" pattern for anyone that wants to have fun editing these:


Suppose $R$ is commutative, and let $M$ be a free $R$-module of finite rank. Prove that if $A$ and $B$ are bases of $M$, then $|A| = |B|$.  I can't really figure out how to prove this theorem.

Let $A$ be a ring and consider the free modules $A^{\oplus n}$, $A^{\oplus k}$, with $n,k\in \mathbb{N}$. Can $A^{\oplus n}$ be isomorphic to $A^{\oplus k}$ if $k\neq n$?   Thanks in advance for the help.


Ok So I am trying to install tor browser by commands apt-get install tor torbrowser-launcher    also tried sudo apt-get install tor torbrowser-launcher but The error I am getting is E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?  Actually before this I was getting some other errors from dpkg which denied me permissions. So I ran some commands to remove some 3 lock files but I also removed lock-frontend after that. It was written in some article. So what should I do now?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Any duotone experts out there? What would be your main tips to create duotones?  Other than using a light and a dark color and mapping them to light and shadows. I'm interested especially in print outputs and not just on screen results.   I either use the duotone mode and curves, or use the channels to create a DCS if I need to make something from scratch. Are there other approaches?

I am preparing my first print project to be realised with a Risograph. In the process, I have come across multiple recommendations to consider a duotone print as an effective way to print images/photos. There is an example to be found here:   The website suggests a separation of the image into two layers and the subsequent printing of each layer with a different color. I am not sure how this separation of colors is done and would like to know. I know of the Duotone Mode in Photoshop but this is yielding a different result for me.   Do I have to select the areas which are supposed to be printed in a certain color by hand? That does not seem to be the case to me, as the images in the example look more like individual channels (like when separating an image into the separate Red, Green or Blue channel of RGB), each having been converted to a separate greyscale-image.  Can someone help me out and explain this separation process to me?  Here are the images which go along this explanation:    Printed Duotone Image:    Orange Layer:    Green Layer:    Here's one of the images I would like to print in duotone with the Risograph (all other images are somewhat similar) :


I started solving the first few derivatives to see if I can find a pattern but I can't find it.  I tried to do something with general Leibniz rule but I don't really know if it's correct. $f'(x)=\frac{2x}{(1-x^2)^2}=2xf(x)^2$  $f^{(n)}(x)=[\text{Leibniz}]=2x(f(x)^2)^{(n-1)} + 2(n-1)(f(x)^2)^{(n-2)}$  Is this correct? What can I do next or is there another way of solving it?

Let $f(x) = \frac{1}{1-x^2}$. How to find the $k-$th derivative of $f(x)$?   I thought it's an easy application of Taylor series.   $$f(x) = \frac{1}{1-x^2}=\sum x^{2k}$$.   On the other hand,   $$f(x) = \sum \frac{f^{(n)}}{n!}x^n$$  So I thought I just need to compare each terms. For example,  $$\frac{f^{(2)}}{2}x^2=x^2\Longrightarrow f^{(2)}=2$$  So I concluded that  $$f^{(2n)}=(2k)!,f^{(2n+1)}=0$$  But the solution gives me  $$f^{(n)}=\frac{n!}{2}\left( \frac{1}{(1-x)^{n+1}}+\frac{(-1)^n}{(1+n)^{n+1}}\right)$$  Where did I do wrong?


I have the HTML below:
                                        <input name="tpp[]" type="text" style="width:90%"/>        +
 	   and the JavaScript code:  $(document).ready(function(){     $('#addtpp').click(function(){          var box = $("#tppBox");           box.append("
<input name='tpp[]' type='text' style='width:90%'></input> \n\              -
");     });      $(".removetpp").on('click',function(){         $(this).parent().remove();     });  });   Although input fields with - are added, when I press - to delete nothing happens! What am I doing wrong?   Thanks in advance!

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 am using PInvoke for interoperability between Native Code (C++) and Managed Code (C#).  I just write a simple function which gets a string from C++ code. My code looks like  C# Code:  [DllImport("MyDll.dll")] private static extern string GetSomeText(); public static string GetAllValidProjects() {     string s = GetSomeText();     return s; }   C++ Code  char* GetSomeText() {     std::string stri= "Some Text Here";     char * pchr = (char *)stri.c_str();     return pchr; }   All works fine at C++ end, i.e the variable pchr contains "Some Text Here" but at C# the string s contains noting in it. I don't know what I am doing wrong. Any help would be appreciated

Given the following C function in a DLL:  char * GetDir(char* path );   How would you P/Invoke this function into C# and marshal the char * properly. .NET seems to know how to do LPCTSTR but when I can't figure out any marshaling that doesn't cause a NotSupportedException to fire when calling this function.


In The Sopranos final scene, Tony Soprano was sitting with his family at a restaurant waiting for his daughter to come. And once she did a black screen had appeared and finished the show. So what does that mean? I still don't get it!

The final scene of the Sopranos has been the subject of much debate since it aired. I read a great post several months ago located at . I tend to agree with the author of that article when he states:   Tony was killed.  However my question is, has David Chase ever commented on the ending to give an indication to what actually happened to Tony Soprano?


I'm not sure if this should be here or over on AskDifferent, but I'm using a bash shell (iTerm) on MacOS. I sometimes have commands that produce additional commands that need to be copy/paste to the terminal.  An example of this is logging into the aws ecr:  aws ecr get-login --no-include-email --region -eu-west-1  This produces a multiline login hash that you need to copy and paste to the shell in order to successfully authenticate. Is there a way I can this and paste it from the keyboard or some command?  I've seen several ways to copy all of the output from a command to clipboard, but that's not exactly what I'm asking for. Specifically, I typically only want the last line in the output.  If nothing exists, I'd be perfectly happy with just setting up some sort of alias in my .bashrc  The recommended dupe answer expects you to use screen - I don't want to use screen

Shells have a useful feature where pressing the keyboard UP arrow replaces the contents of the current command line with the previous command that was entered. (And if you do it again, the command before that, and so on.)  I would like a similar feature, where pressing (some other button) replaces the contents of the current command line with the last line of output from the previous command (and if you do it again, the previous line of output , and so on.)  Is there any shell that provides a feature like this?  The motivation is that you often want to run a command, and then run another command with part of the previous commands's output as input. (No, I don't want to do anything involving piping the output of one command into the next. I'm looking for an interactive experience, where you run the first command, see its output, and then get a line of that output into your next command, without having to reach for the mouse to do a clumsy copy-and-paste.)


everyone! My minecraft doesn't work. 1.8.8 and below work, But 1.9 does not work. I open a world or server, and it crashes. here is the full crash report.      at bfb.p(SourceFile:381) [1.9.jar:?]     at bcf.t(SourceFile:1575) [1.9.jar:?]     at bcf.av(SourceFile:962) [1.9.jar:?]     at bcf.a(SourceFile:392) [1.9.jar:?]     at net.minecraft.client.main.Main.main(SourceFile:124) [1.9.jar:?] [20:08:28] [Server thread/INFO]: Starting integrated minecraft server version 1.9 [20:08:28] [Server thread/INFO]: Generating keypair [20:08:28] [Server thread/INFO]: Preparing start region for level 0 [20:08:29] [Server thread/INFO]: Changing view distance to 12, from 10 [20:08:30] [Server thread/INFO]: sonic_xerox[local:E:cd1ac7ef] logged in with entity id 122 at (200.35301097054491, 18.050912536344374, 176.30000001192093) [20:08:30] [Server thread/INFO]: sonic_xerox joined the game [20:08:31] [Server thread/INFO]: Saving and pausing game... [20:08:31] [Server thread/INFO]: Saving chunks for level 'simple test'/Overworld [20:08:32] [Server thread/INFO]: Saving chunks for level 'simple test'/Nether [20:08:32] [Server thread/INFO]: Saving chunks for level 'simple test'/The End # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff951684fdc, pid=7196, tid=8056 # # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [ig75icd64.dll+0x524fdc] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\Felix\AppData\Roaming\.minecraft\hs_err_pid7196.log # # If you would like to submit a bug report, please visit: #   http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

When I try to launch Minecraft 1.7.4 or newer, the game crashes on startup, and the game output screen says this:  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=*, pid=*, tid=* # # JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot™ Client VM (* mixed mode, sharing windows-* ) # Problematic frame: # C  [ig4dev32.dll+0x3e88] OR # C  [ig4dev64.dll+0x55ec] OR # C  [ig4icd32.dll+0x104a77] OR  # C  [ig4icd64.dll+0x84930a]   This happens with both Java 7 and 8.  What causes this error, and what can I do to fix the issue?


I tried to solve this question but without a success: Let $p$ be a prime number,and $p^2+2$ is also prime, prove that $p=3$.  I tried to show $p^2+2$ as a product of numbers and then to show that $p=3$ is the only option that allows it to be prime. but I didn't find that presentation.  I would like to get help with this question, thanks

Origin —  Elementary Number Theory — Jones — p35 — Exercise 2.17 — For which primes $p$ is $p^2 + 2$ also prime? Only for $p = 3$. If $p \neq 3$ then $p = 3q ± 1$ for some integer $q$, so $p^2 + 2 = 9q^2 ± 6q + 3$ is divisible by $3$, and is therefore composite. (1) The key here looks like writing $p = 3q ± 1$. Where does this hail from? I know $3q - 1, 3q, 3q + 1$ are consecutive. $p$ is prime therefore $p \neq 3q$? (2) How can you prefigure $p = 3$ is the only solution? Does $p^2 + 2$ expose this? On an exam, I can't calculate $p^2 + 2$ for many primes $p$ with a computer — or make random conjectures.


I have a practical combination of maximum n number of input pairs for example n=3:  query=lorem&region=maharashtra&city=dombivali  It could also be empty input meaning one special case. The following are all valid inputs but order does not matter:  region=maharashtra&city=dombivali  city=dombivali  query=lorem&region=maharashtra  region=maharashtra  query=lorem&city=dombivali  query=lorem  Order does not matter for example the inputs query=lorem&city=dombivali and  city=dombivali&query=loremwill have identical meaning.   Since the empty string is also valid input, three inputs results in 7 combinations if I am not mistaken. I look at problems of type "n choose k" but in this case it is more like "n choose none or more" or number of unique subsets from a set with n elements.   $\frac{3!}{3!(3-3)!} + \frac{3!}{2!(3-2)!} + \frac{3!}{1!(3-1)!} $ $ = 1 + 3 + 3= 7. $   Therefore the number of possible inputs from four input pairs will be  $\frac{4!}{4!(4-4)!} + \frac{4!}{3!(4-3)!} + \frac{4!}{2!(4-2)!} + \frac{4!}{1!(4-1)!} $ $ = 1 + 4 + 6 + 4= 15. $   Are my calculations correct or is there an easier way than my attempt?

Why should we expect that $$2^n=\sum_{k=0}^n {n\choose k}$$   It is easily seen to be true, by the binomial theorem:  just set $x=y=1$ in $(x+y)^n$.  But what is an intuitive reason why it is true (in terms of subsets)?


I'm completely lost at how to go about this, or even if it's even possible.  I want it so that what I have stored in the database, if it's PHP to be run.  For example, I have a table called content and a field called body.  That field called body contains "Testing 123 <?php echo "Testing 456"; ?>"  When I run the query, mysqli_query($con,"SELECT * FROM content") and echo out the body, $row[body] the page only gets "Testing 123" and if I view the source code I can physically see   <?php echo "Testing 456"; ?>  So is there a way to take what's in that field, and run the PHP if any exists in it?

I'm trying to write a page that calls PHP that's stored in a MySQL database. The page that is stored in the MySQL database contains PHP (and HTML) code which I want to run on page load.  How could I go about doing this?


Find $Cor(\Phi(X),\Phi(Y)),$ where $X,Y$ are standard normal with $\operatorname{Cor}(X,Y)=\rho$, $ \Phi(x)=\int_{-\infty}^x\phi(x)dx$ and $\phi(x)$ is the standard normal density.   Using the substitution $x=\rho y+\sqrt{1-\rho^2}t$, I was able to simplify it a bit and now need to integrate the following $$E[\Phi(X)\Phi(Y)]=\frac 1{2\pi}\int_{\mathbb R}\int_{\mathbb R}\Phi(\rho y+\sqrt{1-\rho^2}t)\Phi(y)\phi(t)\phi(y)\,dt\,dy$$  Any hints how to proceed? I know $\Phi(X)$ follows uniform distribution   PS. The final answer is $\frac 6\pi\arcsin\frac\rho2$

Suppose that $X\sim N(0,1)$, $Y\sim N(0,1)$ with correlation $(X, Y) =ρ$ where $ρ ∈ (−1, 1)$.  Show the following,   Correlation $(Φ(X),Φ(Y))=\dfrac6π \arcsin\dfrac ρ2 $.  Here $Φ(X)$, and $Φ(Y)$ denote the CDF of Random variables $X$ and $Y$ respectively.  What I know so far:  $$\text{Cov}( Φ(X),Φ(Y)) =E(Φ(X)Φ(Y)) - E(Φ(X)) ×E(Φ(Y)) $$  We also know since  $X \sim N(0,1)$ and $Y\sim N(0,1)$;  $Φ(X)\sim\text{unif}(0,1)$, $Φ(Y)\sim\text{unif}(0,1)$. Hence $$E(Φ(X)) =E(Φ(Y)) =\frac12.$$  I am stuck in finding $E(Φ(X)Φ(Y))$ [I tried to find it using double expectation].  What I have written may be the wrong way of attempting the question. So I am thankful for any help.


I use if() sentences to control some transition, but it does not work. How can I solve these problems? I use the EasyFSM library to implement the simulation based on Finite State Machine.  I attach my own code. This is only the part of my code that has the problem I want to solve.   I think that there is no syntax error, but when I run the program there is no transition (the f.ProcessFSM(~) does not work) and there are only IDLE states (it is the first state of the FSM.)  How can I solve this problem?          FSM f = new FSM("C://Users//losin//Desktop//file//PMC.xml", new FSMAction() {             @Override             public boolean action(String curState, String message, String nextState, Object args) {                 return true;             }         });          for(int j=0; j <10 ; j++) {             list.add(f.getCurrentState().toString());             if(f.getCurrentState().toString()=="IDLE") {                 double rnd1 = Math.random();                 if(list.contains("PROCESS_COMPLIETED")==true) {                     if(rnd1 < 0.05) {                         f.ProcessFSM("FAIL");                     } else if(rnd1 < 0.15) {                         f.ProcessFSM("CLEAN");                     } else {                         f.ProcessFSM("LOAD");                     }                 } else {                     if(rnd1 < 0.05) {                         f.ProcessFSM("FAIL");                     } else {                         f.ProcessFSM("LOAD");                     }                 }             } else if(f.getCurrentState().toString()=="PREPARE") {                 f.ProcessFSM("PROCESS_START");             } else if(f.getCurrentState().toString()=="PROCESS") {                 double rnd2 = Math.random();                 if(rnd2 < 0.05) {                     f.ProcessFSM("FAIL");                 } else {                     f.ProcessFSM("COMPLETE");                 }             } else if(f.getCurrentState().toString()=="PROCESS_COMPLETED") {                 f.ProcessFSM("UNLOAD");             } else if(f.getCurrentState().toString()=="FAILURE") {                 f.ProcessFSM("FIX");             } else {                 f.ProcessFSM("CLEAN_END");             }         }         CSVUtils.writeLine(writer, list);                         writer.flush();         writer.close();

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


I know Minecraft was updated somewhat recently and part of that update was to make the worlds go on forever. Did this update include villages?

How do villages spawn in Minecraft Pocket Edition? I would also like to know what I need to do to have a village spawn, e.g., if there is any specific biome it has to be in.


that is the error wich appear when i try to update  E: The repository ' focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I'm trying to create a program in Java which allows the user to pick from a list of coffees contained in a String array and continues on, but it fails the check and prints out the else statement.  Here is the relevant code:  Scanner scan = new Scanner(System.in); String[] flavors = {"Black", "French Vanilla", "Hazelnut", "Mango", "Cherokee", "anarcho-syndicalism", "Otis" };   ...  System.out.println("Today we have " + Arrays.toString(flavors)); System.out.println("Please enter the name of the coffee you would like exactly as shown above: "); String coffee = scan.next();   ...  for (int i = 0; i < flavors.length; i++) {     if (coffee == flavors[i]) {         String selection = flavors[i];   Though not shown here, I believe everything's properly formatted later on in the program. Any ideas?


I want to write a "conditional one" in Latex but I don't know the precise name. It is a one with a double vertical dash that is equal to 1 if a condition is satisfied and 0 otherwise (a kind of Kronecker delta).  Could someone tell what is the name of this symbol and how to write it in Latex ?

The blackboard bold font in the AMSFonts package only has capital letters.  I sometimes wish to use a blackboard bold "1", for which I can use \usepackage{bbold}. But this changes the entire blackboard bold font, and I like the original AMSFonts versions of the capital letters better.  Is there a simple way for me to get \mathbb{1} from one package and the blackboard bold capitals from another?


Let $G$ be a group, $H$ be a normal subgroup of $G$, and $O$ a conjugacy class of $G$ contained in $H$.   Consider $O = \cup_{i = 1}^{n}O_i$ the partition of O into conjugacy classes of $H$. Show that the size of each $O_i$ is the same Prove that the number $n$ of conjugacy classes which $O$ breaks up to in $H$ divides $[G : H]$   I considered the action of $H$ on $O$ by conjugation and the stabilizer of elements of $O$, but it wasn't clear to me what to do next.    I have a partial solution to the first problem inspired by .  Consider 1 conjugacy class/orbit in $H$: wlog $O_1$ with representative $h_1$. Consider another conjugacy class/orbit $O_2$ with representative $h_2$, and note that $h_2 = g^{-1}hg$ for some $g$ in $G$.  $$O_2 = \{ hg^{-1}h_1gh^{-1} | h \in H \}$$  Now replace $h$ with $g^{-1}hg$ as $H$ is normal in $G$ and we are ranging over all of $H$.  $$O_2 = \{ (g^{-1}hg)g^{-1}h_1g(g^{-1}h^{-1}g) | h \in H \}$$ $$= \{ g^{-1}hh_1h^{-1}g | h \in H \}$$ $$=g^{-1}O_1g$$  So conjugation by $g$ sends $O_1$ to $O_2$. It's not clear to me that $=g^{-1}O_1g$ doesn't get smaller than $O_1$ though (although I think I can work it out with time).

Assume $H\unlhd G$ and $\mathcal{K}$ is a conjugacy class of $G$ contained in $H$ and let $x\in \mathcal{K}$.  Prove that $\mathcal{K}$ is union of $k$ conjugacy classes of equal size in $H$ where $k=|G:HC_G(x)|$.  I do not really understand the idea behind this :   $\mathcal{K}$ is a conjugacy class of $G$ means :   Given $x,y\in \mathcal{K}$ we have $g\in G$ such that $x=gyg^{-1}$  He is saying that $\mathcal{K}$ splits into separate classes when seen as classes over $H$.  Splitting means there are two elements in $\mathcal{K}$ that their conjugating element is not coming from $H$   I am not able to proceed further..  I would like to see that if it splits then it splits "Equally"  please help me to clear this.  Thank you


I am currently using ubuntu version 14.04, but I want to upgrade to 16.04 without reinstalling ubuntu. So can anyone help me out.

I've got a 32-bit Ubuntu installation running on 64-bit hardware. Now that , I would like to switch to 64-bit without having to reinstall the OS.  This is one of the :  Shawn installed his system using the 32-bit version of Ubuntu, but his hardware is 64-bit and he wants to switch over. He manually installs the amd64 versions of dpkg and apt, replacing the i386 versions and changing which architecture is used as the default; then he installs the amd64 ubuntu-minimal package; then he installs the amd64 ubuntu-desktop package. Over time the remaining i386 packages are replaced automatically on upgrade.  However, when trying to follow the instructions in there, I cannot find any 64-bit version of dpkg or apt.  Did this user story got implemented in a different way in the final spec, or do I need to do something differently?  In short, how can I switch my 32-bit installation to 64-bit?


I just stumbled across this YouTube video:    What's the mechanism behind it? With a knock, I added some energy. So what?  With a knock, I also increased pressure, but water behaves opposite of most substances (having freezing point raised by pressure) meaning it'd stay in liquid state with that logic.

Now that it's been freezing outside for the last few days, I experimented a bit with supercooling. I've left a bottle of clean water outside for a few hours, and behold, when I shook the bottle, the liquid began to freeze rapidly, as expected.   However, not all of the water froze, only about half of it. This got me thinking.  I reasoned that happens because freezing releases heat, and that heat raises the temperature of the ice and remaning water to 0$^\circ$C, at which point the freezing stops.  To try to quantify this, set   $H_f = 334000 \frac{J}{kg}$, the "freezing heat" (enthalpy of fusion) of ice, $c_i = 2110 \frac{J}{kg\cdot K}$, specific heat of ice, $c_w = 4181 \frac{J}{kg\cdot K}$, specific heat of water, $M$, initial mass of supercooled water, $T_0$, initial temperature of supercooled water, $m$, mass of ice at a given moment, $T$, temperature at a given moment.   We suppose that the energy released by the freezing of a $\textrm dm$ mass of ice is used up by raising the temperature of both the already frozen ice ($m$) and the remaining water ($M-m$):  $$ \textrm dm \cdot H_f = c_i m \cdot\textrm dT + (M-m)c_w \cdot\textrm dT$$  By rearranging we get a linear differential equation for $m(T)$:  $$\frac{\textrm dm}{\textrm dT}+\frac{c_w-c_i}{H_f}m = \frac{c_w}{H_f}M$$  The solution of this equation, using the initial condition that at $T=T_0$, $m=0$:  $$ m = M \frac{c_w}{c_w-c_i}\left[ 1-e^{-\frac{c_w-c_i}{H_f}(T-T_0)} \right]$$  This looks neat, however, plugging in the actual values of the constants, $T = 0^\circ$C and $T_0 = -6^\circ$C, I get that little more than 7% of the water should freeze - as opposed to more than half, as I've observed. What's worse, the formula can be used to calculate the starting temperature required to freeze all the supercooled water: $$T_{all} = \frac{H_f \log\frac{c_w}{c_i}}{c_i-c_w}=-110.26^\circ \textrm C$$ which seems absurd.  Where is the error in the calculation above?  I've made a number of assumptions which may or may not hold:   the constants are really constant. I think this is a good approximation for $c_w$, a not that good but still acceptable approximation for $c_i$, and I suppose it holds to $H_f$ to some extent as well. there is no heat transfer with the environment, i.e. the bottle is a closed system. The process seemed fast enough (a few seconds at most) for this to be a good approximation. the system is in a thermal equilibrium at all times and the heat released by the freezing of the ice is distributed evenly in the emerging ice-water mixture. Now this is where I have doubts. Precisely because of the process happening so fast, this might not be true at all. However, acknowledging the presence of temperature variations makes the problem order of magnitudes harder: one has to solve a system of partial differential equations that take heat transfer, the shape of the bottle and \$deity knows what else into account.


Let $a,b,c$ be real numbers such that $a+b+c = 0$ and $a^2 + b^2 + c^2 = 1$. Prove that $$a^2b^2c^2\le \frac1{54}$$

If a,b,c are real numbers satisfying $a+b+c =0; a^2+b^2+c^2=1$.  Prove that $a^2 b^2 c^2 \le \frac{1}{54}$.


I am getting this HTTP error:     Status=Unauthorized, StatusCode=401   When I try and access the Tooling REST API from an Lightning component Apex controller being used inside Salesforce, running as System Administrator.  This is the HTTP GET Request Endpoint  https://x--x.my.salesforce.com/services/data/v44.0/tooling/query?q=Select+Id,ActiveVersion.VersionNumber,LatestVersion.VersionNumber,DeveloperName+From+FlowDefinition+ORDER+BY+DeveloperName   This is the method executing the request:  public static HttpResponse executeCallout(String method, String resourceName, String requestBody) {      HttpRequest request = new HttpRequest();      if (method == 'PATCH') {         request.setMethod('POST');         } else {         request.setMethod(method);         }      request.setEndpoint(URL.getOrgDomainUrl().toExternalForm() + resourceName);      request.setHeader('Authorization', 'Bearer '+ UserInfo.getSessionId());      request.setHeader('Accept', 'application/json');     request.setHeader('X-PrettyPrint', '1');     request.setHeader('Content-Type', 'application/json');      if (String.isNotBlank(requestBody)) {         request.setBody(requestBody);     }      return new Http().send(request); }   Where the method is equal to GET and requestBody is null and resourceName is equal to:  /services/data/v44.0/tooling/query?q=Select+Id,ActiveVersion.VersionNumber,LatestVersion.VersionNumber,DeveloperName+From+FlowDefinition+ORDER+BY+DeveloperName   I've checked the length of UserInfo.getSessionId() and it's returning a value of length 112  Questions   What is causing the problem? How can I fix it?

I have a requirement to make a call to the  from a Lightning component. The issue I am facing is that there is currently no native support for acquiring a valid API session ID from an @AuraEnabled method in a Lightning component Apex controller.  The Lightning developer  states that a named credential can be used in order to bypass this security restriction. However, when I set up a named credential and then pass that named credential reference as the endpoint for the Metadata Service API, I am receiving the following error:     "FATAL_ERROR System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: This session is   not valid for use with the API faultcode=sf:INVALID_SESSION_ID   faultactor=".   I have found a potential  using Visualforce. However, the thread presenting this work around does not reference the "Named Credentials" feature as an option.  This  also presents the same issue where the documented named credential stops have been followed and the same error is received, but no solution has yet been offered.   I am not able to understand why the named credential feature is not bypassing the session id security measure for Lightning components.  Any input would be greatly appreciated.


I want to start a WiFi service in my village so that I can provide WiFi to every one but there is one problem. I want to give each and every user a different password so that they can never use another network, in short term one network but different password for every one need help.

Anyone know free software (or very cheap) for creating paid access to WIFI - with tokens mechanism?  Can be on Linux, or Windows...  I have a small Hostel and I want to create paid access to wifi (like 1$ for hour).


In QGIS selected features are normally highlighted in a different color to draw user’s attention on the selection. The default color can be changed programmatically. As a nice to have my standalone app (QGIS 2.8.2) should draw selected features with different stiles: points with another symbol or a greater size, maybe with a flashing effect, areas with hatch pattern drawn in a different orientation.  Any ideas on how to implement this?   My first idea was to switch between True and False in a hidden field whenever selectionChanged signal is emitted, but I am afraid of running in inconsistency and performance problems this way.

I have a layer with different informations. I want to change the selected polygon color to "Transparent". I am able to achieve that using: iface.mapCanvas().setSelectionColor(QColor("Transparent"))  But I want a different border color such as red or any other color. For an example in ArcMap, there is an option to set the border color, border width and many more. How can I achieve that using Python script in QGIS?


I am developing simple app to retrieve a string from SQLite database and display it in TextView of my main activity. For that, I created method inside class which handles SQLite database, then inside main activity I called the method, but what it does is only to give NullPointerException.  Method inside my SQLite database handler class.   @Override public void onCreate(SQLiteDatabase db) {     db.execSQL(             "CREATE TABLE " + PERSON_TABLE_NAME +                     "(" + PERSON_COLUMN_ID + " INTEGER PRIMARY KEY, " +                     PERSON_COLUMN_NAME + " TEXT, " +                     PERSON_COLUMN_GENDER + " TEXT, " +                     PERSON_COLUMN_AGE + " INTEGER)"     );  }......////////////   Some  Code...........       public String getAddress(int id) {     // TODO Auto-generated method stub     SQLiteDatabase db = this.getReadableDatabase();       try {         Cursor cursor =  db.rawQuery("SELECT * FROM " + PERSON_TABLE_NAME + " WHERE " +                 PERSON_COLUMN_ID + "=?", new String[]{Integer.toString(id)});          if (cursor != null) {             cursor.moveToFirst();             return cursor.getString (cursor.getColumnIndex (PERSON_COLUMN_NAME));         }     }     catch (Exception e) {          // TODO Auto-generated catch block         e.printStackTrace();     }     return ""; }   My main activity Where I call the method.  button = (Button) findViewById(R.id.addNew);     button.setText(dbHelper.getAddress(8));

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


I have a sum of increasing function and a convex function over some domain. Can I say that the sum is also a convex function ? Or when can i say that sum of convex function with increasing function is convex and sum of convcave function and increasing function is concave? Functions are continous... Thanks a lot for helping...

Does the sum of a convex function and monotonically increasing function (not necessarily convex) yield a convex function?


The more times I read the series, the more I come across things that should have been obvious.  In the book Harry Potter and the Chamber of Secrets, Harry suddenly guesses that the girl who died in the girls' bathroom 50 years before was Moaning Myrtle.  “Ron — that girl who died. Aragog said she was found in a bathroom,” said Harry, ignoring Neville’s snuffling snores from the corner. “What if she never left the bathroom? What if she’s still there?” Ron rubbed his eyes, frowning through the moonlight. And then he understood, too. “You don’t think — not Moaning Myrtle?”    And I'm sure his dialogue between Tom Riddle and Albus Dumbledore figures that Dumbledore meant 'since' the death of the girl.  “Well, hurry off to bed,” said Dumbledore, giving Riddle exactly the kind of penetrating stare Harry knew so well. “Best not to roam the corridors these days. Not since . . .” He sighed heavily, bade Riddle good night, and strode off.    And then as per Professor Binns,  Professor Binns looked faintly annoyed. “The whole thing is arrant nonsense, of course,” he said. “Naturally, the school has been searched for evidence of such a chamber, many times, by the most learned witches and wizards. It does not exist.”    Ministry of Magic could have predictably overlooked the clues that unfairly lead to the expulsion of Hagrid. But Dumbledore always thought Hagrid was innocent.In such a case , I just wondered why Dumbledore or any others not make out this obvious connection and question Myrtle as Harry did.

Moaning Myrtle said she made sure Olive Hornby was haunted by her memory of finding Myrtle's body until Olive's dying day. Olive had to seek help from the Ministry of Magic in an effort to be free of the spirit, so the Wizards there knew a witness (Myrtle's ghost) to the 1943 murder had become available. After the Ministry of Magic exorcised Myrtle, she was relegated to Hogwarts, generally haunting the same stall in the same lavatory she died in. The powers that be knew where she was  What does JKR say about why no one at the Ministry of Magic, or any of the Hogwarts Professor's, asked Moaning Myrtle about her death?


I feel that trying to go about analyzing his whole theory is pointless since his whole theory builds upon one point which is that analytical thinking shouldn't have taken the front seat in modern culture (as he goes on ranting about Aristotle and so forth), but is anything to be gained by applying the analytical "knife" on his theory of Quality ?  I read this above question before posting here. I'm trying to understand what is he really trying to get at in the book as a whole.

I just finished reading Robert M. Pirsig's Zen and the Art of Motorcycle Maintenance, which I understand to be a popular-yet-important book for those looking to enter the realm of philosophical discussion and discourse.   Of course, the text features the author's long endeavor to define "quality," specifically in a philosophical context.   After re-reading chapters 19 and 20, I'm still unsure if I have understood what Pirsig claims "quality" to be. At first, I thought he meant that "quality" is essentially "reality," including all the atoms in the universe (or multiverse, I suppose), both in actuality and in theory (i.e., hypothetical situations, along with thoughts, are also included in the realm of "quality"). In other words, I interpreted "quality" to be the general domain of discourse we humans perceive as the "universe."   I wasn't satisfied with my interpretation, albeit because of a person reason: why not just say "quality" is "reality"? And if that's the case, why do we need two words to describe one thing? I thought that there must be something more significant about Pirsig's claim.  , quality is broken down into two classes: the dynamic, and the static. "Dynamic" quality cannot be explicitly defined, unlike "static quality," which can be defined (in terms of increasing morality, static quality includes non-organic forms, organic forms, social forms, and then intellectual forms).   Here is my question: is Pirsig trying to say that "quality" is the opposite of chaos/disorder? After all, dynamic quality is allegedly the "force of change" in our universe, along the continuum of increasing morality. Is it also fair to say that static quality is the result of the dynamic quality?   I would think that in this paradigm, reality now becomes an environment (i.e., "platform"), while "quality" becomes the main driver of action/evolution in this environment.  If I have this entire understanding wrong, feel free to explain it further. I really just want to make sure I'm not misunderstanding Pirsig.


Where shall we go? Where should we go? Shall we eat outside? Should we eat outside?   Which is correct and why? Thank you in advance.

Let's say I want to arrange a lesson with my coach and I say:  Shall we have a lesson on Monday?  I understand the use of 'shall' in American English is considered to be formal, whereas this is not the case in British English. I would like to understand the different connotations (is it formal? is it a request for confirmation? is it a suggestion?) that the following questions have:  A. Shall we have a lesson on Monday? B. Can we have a lesson on Monday? C. Should we have a lesson on Monday? D. Could we have a lesson on Monday? E. Are we having a lesson on Monday? F. Will we have a lesson on Monday? G. Are we going to have a lesson on Monday?


I was given a project of a some developer and during looking throuhg the code I found such code:  public interface IPackage {     void @Do(); }    I've just seen usage of @ in context with strings. But what does that mean in such context? Can somebody explain please? Thank you in advance!

I discovered that you can start your variable name with a '@' character in C#.  In my C# project I was using a web service (I added a web reference to my project) that was written in Java. One of the interface objects defined in the WSDL had a member variable with the name "params". Obviously this is a reserved word in C# so you can't have a class with a member variable with the name "params". The proxy object that was generated contained a property that looked like this:  public ArrayList @params {     get { return this.paramsField; }     set { this.paramsField = value; } }   I searched through the VS 2008 c# documentation but couldn't find anything about it. Also searching Google didn't give me any useful answers. So what is the exact meaning or use of the '@' character in a variable/property name?


While I was attempting online ISL test, where I got the following MCQ:  Chen's looking forward ______ his job next week. a) to starting b) to start c) starting d) in starting  The ISL considered the option "to starting" as a correct. But I think that the correct option is "to start" because we don't use -ing form after to-infinitive. So which one is correct?   Chen's looking forward to starting his job next week.   OR   Chen's looking forward to start his job next week.

In order to convey excitement to being a part of a team, which one would you use?     I’m so looking forward to be a part of [team name] that I can barely sleep.   or     I’m so looking forward to being a part of [team name] that I can barely sleep.   Is any of these correct? If not, what would be the proper way of conveying this?


If $A$ is a square matrix of order 3 with $\det(A)=1$ and $AA^\top=I$, prove that $\det(A-I)=0$.   I tried everything I know but couldn't get to the proof.

$M$ is a $3 \times 3$ matrix such that $\det(M)=1$ and $MM^T=I$, where $I$ is the identity matrix. Prove that $\det(M-I)=0$  I tried to take $M$ $=$ $$ \begin{pmatrix}         a  &b & c \\         d & e & f \\         g & h & i         \end{pmatrix} $$   but its expansion is too long.


I am trying to find all the classes defined inside a package. I have tried this code -  public static File[] getPackageContent(String packageName) throws IOException{     ArrayList<File> list = new ArrayList<File>();     Enumeration<URL> urls = Thread.currentThread().getContextClassLoader().getResources(packageName);     while (urls.hasMoreElements()) {         URL url = urls.nextElement();         File dir = new File(url.getFile());         for (File f : dir.listFiles()) {             list.add(f);         }     }     return list.toArray(new File[]{});   Now here is the thing - if the String packageName does not contain "." character, it returns me all the names of the classes which I want exactly. But suppose if the packageName contains "." character it does not return anything.  Why is that? If possible how can I find all the classes inside a package where the package name does have a "." character in it?

Is it possible to find all classes or interfaces in a given package? (Quickly looking at e.g. , it would seem like no.)


I am working on mariadb. mysql --version gives me this: mysql  Ver 15.1 Distrib 10.2.32-MariaDB, for Linux (x86_64) using readline 5.1  I am trying to make some reports across our sw deployment backend, and i have some trouble using lookaheads via REGEXP. So made some simple examples to see how lookaheads work in mariadb and i get wierd results. If i use a positive lookahead, it's working straight forward as to be expected: Select "Windows 10 Enterprise (2009)" REGEXP "(?<=(2009))"; Result 1  Select "Windows 10 Enterprise (2009)" REGEXP "(?<=(1809))"; Result 0  So far, so good, but if i use a negative lookahead, it's always finding a match, and it should only do so for the second example: Select "Windows 10 Enterprise (2009)" REGEXP "(?<!(2009))"; Result 1  Select "Windows 10 Enterprise (2009)" REGEXP "(?<!(1809))"; Result 1  I am lost here, i thought mariadb has full support for lookaheads? Thanks in advance! LG

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha