I have an NPE on a Windows 2008 R2 vm guest that seems to be rather annoying and preventing people from using the vm. What's odd is that this wasn't occurring before until I migrated it from Hyper-V to VMware vSphere. It's supposed to load a webapp called 'license' from an MSSQL database called 'license' and apparently didn't function at first because Java was no longer present (had v1.6 and now v1.8). Nevertheless, I installed JRE 1.8.0.66 for use with Tomcat, set the environment variables in a command prompt and then manually started one of the many Apache versions on this host (I just took over this network). This seemed to resolve the issue for the staff and I never heard anything until after a maintenance window did a restart of the host and obviously I didn't make the environment variables persistent.  Now I get an NPE when accessing the host locally, with the following (I can also provide the SQL logs too - which BTW are telling me that a login failed for user 'sa' when I can log in either in mixed or SQL mode with sa just fine. What do you guys suggest I try here? (NPE below and I did look at line 43 of the offending java file listed which just has 'ResultSet rs =null;'  Thx, Brian  type Exception report  message java.lang.NullPointerException  description The server encountered an internal error that prevented it from fulfilling this request.  exception  org.apache.jasper.JasperException: java.lang.NullPointerException     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   root cause  java.lang.NullPointerException     org.apache.jsp.licenseAdmin_jsp.displayLicenses(licenseAdmin_jsp.java:43)     org.apache.jsp.licenseAdmin_jsp._jspService(licenseAdmin_jsp.java:325)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

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?


First regular Hard Drives (spinning disks):  When looking details of a brand new hard drives, I've noticed that the available space usually ends with xxx,000,000,000  For example, a 750 GB drive is usually at least 750,000,000,000 bytes.  Maybe a few extra bytes.  In other words, 750*1000*1000*1000  (not 1024 multiples).  The operating system calculates by dividing by 1024 multiple times. Upon dividing 750,000,000,000 bytes by 1024 ^ 3  the result is 698.49 GB (which is what I would expect my Operating system to display as the actual size of the drive due to this "1024 based sizing math").  Now onto USB Flash drives:  So, when I connect a brand new USB flash drive should I also correctly expect to see (in the case of a 64 GB size) 64,000,000,000 bytes for the overall size of the drive? (on a couple brand new flash drives I'm seeing considerably less which is why I'm asking this question)  Regarding internal USB flash drive maintenance:  Over time, when you use a flash based storage device, I've come to the understanding the drive will do internal maintenance (wear leveling, etc).  But, I'm trying to determine if the extent of missing sectors that I'm seeing is normal on a couple of brand new flash drives.  One is missing over 700 MB and the other is missing over 5.2 GB    Does that mean that the overall amount of sectors available to the Operating system or partitioning tools shrinks over time as sectors are removed from availability (due to being marked bad, etc)?  BACKGROUND:  When discussing storage space size, many people instantly assume the 1024 vs 1000 based math for calculating size is the question at hand (it is not). I realize for the Operating system to report 64GB  that would mean the drive actually would need to have 64 * 1024 * 1024 * 1024 = 68,719,476,736 bytes  so that when you divide by 1024 three times you get back to the number "64" GB. And that is not what the manufacturers do.     In Summary:  Note: Referring to the raw storage capacity of the drive; disregarding MFT, file system overhead, etc...   RAW sectors and therefore raw bytes available to the device...  The main questions are:   For a USB Flash drive, would you expect at least 64,000,000,000 bytes (125,000,000 sectors * 512 = 64,000,000,000) to be the size of the drive (as displayed in Windows Disk Management, or Linux Gparted, etc). Also, does the total amount permanently shrink over time through normal use (drive maintenance)?

I just got a new Lenovo Laptop which has been installed with Windows 7 and is supposed to have 250 GB hard disk.   Windows 7 reports that the hard disk drive has two parts: 221 GB C: and 9.76 GB Lenovo Recovery. The sum of the two parts is 230.76 GB.  If I remember correctly, if divide 250 GB by 1024 three times, I will get 232.8 GB, which should be what the OS reports as the hard drive size. But why the sum 230.76 GB of the two parts of hard drive is still smaller than 232.8 GB?


I just measured a pair of LEDs "just for fun" and discovered that they're outputting energy. I held one on the LEDs in the sun's direction and the Multimeter went straight up to 10V. I laughed because I had absolutely no clue what's happening inside those things and how...  How is that possible? Are they "solar panels" in a way, because ... how can this be?  Below are two pictures of my "finding":     (I tried plugging an Arduino Mega on the other end to see if it would power on but unfortunately it stayed off)  I also measured the amperage between the two leads, but the only mode that work on my multimeter is the "10A" mode. It stated 0.00(A).  EDIT: The LED has this appareance:

As many of you probably know, a normal light emitting diode, while very handy as a cheap and ubiquitous indicator, can double as a power generator. The mechanism is the same that is exploited in photovoltaic cells, aka solar panels.  When an LED is exposed to light it produces a current flowing from anode to cathode. This current can be used to directly power a device, or to charge a capacitor so that a periodic load can use the stored charge all at once, when needed.  To give you a better idea of the values involved, the short circuit current ranges from tens of nanoamps up to a few microamps, while the open circuit voltage is somewhat less than the standard forward voltage of the LED.  I am currently in the process of choosing a range of LEDs to test them and see if they are suitable for my application, but I am kinda stuck, mainly because using a led to power something is convenient only money wise, while a photovoltaic cell or even a photodiode is a better choice under many other aspects. No manufacturer that I have seen list the photogeneration current in the datasheet, and this seems fair enough to me, but since I want to avoid testing thousand of LEDs I would like to buy a selected range of them, so I need to better understand the underlying mechanism that leads to photogeneration.  Let's just write down the diode equation: $$ I_D = I_s(e^{\frac{V_D}{V_t} - 1})-I_G $$         – Schematic created using   Where \$I_s=J_s\cdot A\$ is technology dependent, and die area dependent. \$I_G\$ is the generation current, and is the parameter I am interested in maximizing.  Here are some things I have thought of:  LED color since the LED can absorb a lightbeam only if the energy it carries is greater than the gap, choosing LED with low energy (i.e. low frequency) gap is a must, to be able to absorb a wider portion of the spectrum. This lead me to choose red or infrared LEDs.  max current max forward current is proportional to die area, and power dissipation capabilities. Since photogenerated current is proportional to area, choosing an high current LED seem wise to me.  forward voltage this is somewhat related to the open circuit voltage and is not currently an issue for me, and I believe it has no relationship with photogenerated current.  reverse current I am not sure this has much to do with photogenerated current, but the bigger the reverse current, the bigger the area, which is a good thing.  breakdown voltage I do not think this has a relationship with photogeneration.  My question finally is: Do you agree with my analysis, and do you think I am missing something? or better What are the parameters to look at when searching for a photovoltaic panel in the LED section of a supplier?


I am using ajax request to send a value from client side to server side to update in mysql database using ajax request. The value is in hindi language (हिन्दी मतलब जाने). But on client side when i alert it i get the hindi text as shown above but after the server side request is processed it gets inserted in the database as Ã Â¤Â¹Ã Â¤Â¿Ã Â¤Â¨Ã Â¥ÂÃ Â¤Â¦Ã Â¥â‚¬ Ã Â¤Â®Ã Â¤Â¤...While if i use alert in my javascript for request.ResponseText then it shows correctly  as हिन्दी मतलब जाने. Now again if i load the page the updated value gets displayed as ¤Â¹Ã Â¤Â¿Ã Â¤Â¨Ã Â¥ÂÃ Â¤Â¦Ã Â¥â‚¬ Ã Â¤Â®Ã Â¤Â¤... but the values which were not updated previously displays correctly as हिन्दी मतलब जाने.   i have used in the client side  var requestDatah = "values=" + escape(valued) +"&texts=" + encodeURIComponent(texted);     request1h[k].setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8;");     request1h[k].send(requestDatah);   and on the server side header with php  <?php header("Content-Type: text/html; charset=utf-8"); mysqli_set_charset($con,"utf8");   Please help me how to store correctly in mysql and display ?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Find a recurrence relation for the number of ways to select a subset (any size, including the empty set) from the set {1,2,3, … ,n} that does not contain a pair of consecutive numbers?  Would this problem be similar to induction? not sure how to apply it to recurrence in this case.

what is the number of subsets of the set {k∈N|1≤k≤n} with no two consecutive numbers? The answer says: $$a_n=a_{n-1}+a_{n-2}$$ with the starting conditions: $$a_0=1, a_1=2$$1. why does $a_1=2$? $$$$ 2. How does this recursion was created, I understand that if $a_n$ mean all the places with no consecutive numbers so, $a_{n-1}$ come from the fact that after the first place all those places satisfy this condition, but why there is need to "look" at what happen after the two places?


LaTeX symbols like \diamond, \circ and \square when compiled are in the form of symbols that are transparent. How can I fill black color into these shapes? For example, \circ shaded black is \bullet. Is there any command similar for \diamond and \square?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


Is there a way to display text messages in somewhere other than the top right? I would like it to appear in the bottom right, is this possible?

Is it possible to change where macOS Notification Center alerts appear on the screen?  They currently appear at the top right of the screen with the menu bar:    Alerts appearing in the top right tend to cover up work I'm doing more often than not. They cover up browser tabs, toolbar icons, and window titles.  I would prefer, say, the bottom right corner of the screen.  If moving the alerts is not possible, is it possible to change the screen on which they appear?


94% of Rust compiler was written in Rust. So I can't understand how is it possible? Because for compiling rustc you already must have some rust compiler. Can someone explain how it works and how rust compiler was created?

Intuitively, it would seems that a compiler for language Foo cannot itself be written in Foo. More specifically, the first compiler for language Foo cannot be written in Foo, but any subsequent compiler could be written for Foo.  But is this actually true? I have some very vague recollection of reading about a language whose first compiler was written in "itself". Is this possible, and if so how?


I want to resize /dev/sda5 to take all of the unallocated space (242.25 GiB). How can I accomplish this?  EDIT 1:   swapon output: NAME         TYPE       SIZE USED  PRIO /dev/sda6    partition  14G  0B        -1  sudo blkid | grep swap output /dev/sda6: UUID="d4ae2fb5-2069-4b6d-b86d-e8c94ebf0fd9  grep swap /etc/fstab output: # swap was on /dev/sda6 during reparation UUID=d4ae2fb5-2069-4b6d-b86d-e8c94ebf0fd9 none swap sw 0 0

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


What is the probability that from 23 at least people 2 people have their birthday on the same day. Assume that the year has 365 days and that all the birthday combinations have the same probability.   Can anyone solve this?

I was wondering if someone could critique my argument here. The problem is to find the probability where exactly 2 people in a room full of 23 people share the same birthday.  My argument is that there are 23 choose 2 ways times $\displaystyle \frac{1}{365^{2}}$ for 2 people to share the same birthday. But, we also have to consider the case involving 21 people who don't share the same birthday. This is just 365 permute 21 times $\displaystyle \frac{1}{365^{21}}$. To summarize:  $$\binom{23}{2} \frac{1}{365^2} \frac{1}{365^{21}} P\binom{365}{21}$$


Suppose $(x_n)$ is a convergent sequence such that $x_n>0 \forall n \in \mathbb{N}$. Set $$y_n=\frac{n}{\frac{1}{x_1}+\frac{1}{x_2}+...+\frac{1}{x_n}}, n\in\mathbb{N}$$ Prove $\lim_{n\to\infty}{x_n}=\lim_{n\to\infty}{y_n}$ <- How should I approach this? Also prove that if $x_n$ diverges to $+\infty$, $(y_n)$ diverges to $+\infty$ <- I suppose I should be able to do this if I prove the above statement?

Let ($x_s$) be a convergent sequence, where $x_s>0$ for all s, and $y_s$ be a sequence such that   $$\displaystyle \Large y_s=\frac{s}{\frac{1}{x_1}+...+\frac{1}{x_s}}$$  Prove $\displaystyle \lim x_s$=$\lim y_s$  So I know things like $x_s$ is bounded, and that it's Cauchy, but I can't think of anything to solve it.  Any help is appreciated.


At night, when I'm sleeping I will reach down and move my cat or dog out of my way and a light appears where I touch them.  The light has been so bright that is shown in my cats face and made her squint.  I'm wondering if it is static electricity?  It happens every time I move them. The light is not consistent, sometimes a streak, a circle or just a light like a pen light shining down. I do wear two silver chain bracelets all the time. Is the silver conducting electricity? I'm very curious about this. Anyone have any answers?

Sometimes when I'm in bed at night, I rub my feet against the sheets and light is created. What exactly is going on?     I'm familiar with static electricity, and the triboelectric effect (creating a charge by rubbing 2 insulators together), and electrostatic discharge (releasing charge by touching a grounded conductor).     I believe that all of that is what is at work here, but I'm slightly confused since in other cases, the triboelectric effect and electrostatic discharge seem to occur as two separate steps, with different substances involved, and here, the two effects seem to be occurring simultaneously, with the same substances.     Can someone help me with a step-by-step explanation of the dynamics of what is going on?


I'm interested in getting the text of \tkzLabelAngle to always position inside the angle. I'm randomly generating these triangles, so I'm hoping there is a general solution that will work for all angles rather than manually positioning each one. There doesn't seem to be any rhyme or reason as to why some labels are outside the triangles as you can see in the image.  I've tried various strategies including defining a pos or size (the latter of which ends up giving me errors), changing the size of the text, drawing the triangles with \tkz* commands, changing the order of the angles (although I verified it was labeling the inside angle with \tkzMarkAngle) e.g. from (B,A,C) to (C,A,B).  So, other than manually defining pos for each of the outliers, is there a better strategy to get the angles in the right position all the time (given that all angles are generated randomly)?  Thanks for any assistance.  \documentclass[12pt,twoside]{article} \usepackage[hmargin=19mm,vmargin=13mm,includeheadfoot,headheight=27.6pt,headsep=4mm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} \usetikzlibrary{shadings,calc,positioning} \usepackage[utf8]{inputenc} \usepackage{array} \usepackage{multicol} \begin{document} \fontsize{12pt}{8pt} \bigskip \begin{minipage}[b][7cm][t]{0.05\textwidth} \footnotesize 1. \end{minipage} \begin{minipage}[b][7cm][t]{0.45\textwidth} \begin{tikzpicture}[scale=1] \tkzDefPoint(0,0){A} \tkzDefPoint(15:3.3){B} \tkzDefPoint(127:2.542){C} \draw[thick](A)--(B)--(C)--cycle; \tkzLabelAngle[](C,B,A){\small $29^{\circ}$} \tkzLabelAngle[](B,A,C){\small $112^{\circ}$} \tkzLabelAngle[](A,C,B){\small $39^{\circ}$} \end{tikzpicture} \end{minipage} \begin{minipage}[b][7cm][t]{0.05\textwidth} \footnotesize 2. \end{minipage} \begin{minipage}[b][7cm][t]{0.45\textwidth} \begin{tikzpicture}[scale=1.6] \tkzDefPoint(0,0){A} \tkzDefPoint(177:3.2){B} \tkzDefPoint(205:2.614){C} \draw[thick](A)--(B)--(C)--cycle; \tkzLabelAngle[](C,B,A){\small $54^{\circ}$} \tkzLabelAngle[](B,A,C){\small $28^{\circ}$} \tkzLabelAngle[](A,C,B){\small $98^{\circ}$} \end{tikzpicture} \end{minipage} \begin{minipage}[b][7cm][t]{0.05\textwidth} \footnotesize 3. \end{minipage} \begin{minipage}[b][7cm][t]{0.45\textwidth} \begin{tikzpicture}[scale=1.1] \tkzDefPoint(0,0){A} \tkzDefPoint(9:4.1){B} \tkzDefPoint(74:4.636){C} \draw[thick](A)--(B)--(C)--cycle; \tkzLabelAngle[](C,B,A){\small $63^{\circ}$} \tkzLabelAngle[](B,A,C){\small $65^{\circ}$} \tkzLabelAngle[](A,C,B){\small $52^{\circ}$} \end{tikzpicture} \end{minipage} \begin{minipage}[b][7cm][t]{0.05\textwidth} \footnotesize 4. \end{minipage} \begin{minipage}[b][7cm][t]{0.45\textwidth} \begin{tikzpicture}[scale=0.8] \tkzDefPoint(0,0){A} \tkzDefPoint(109:3.7){B} \tkzDefPoint(209:4.76){C} \draw[thick](A)--(B)--(C)--cycle; \tkzLabelAngle[](C,B,A){\small $46^{\circ}$} \tkzLabelAngle[](B,A,C){\small $100^{\circ}$} \tkzLabelAngle[](A,C,B){\small $34^{\circ}$} \end{tikzpicture} \end{minipage} \begin{minipage}[b][7cm][t]{0.05\textwidth} \footnotesize 5. \end{minipage} \begin{minipage}[b][7cm][t]{0.45\textwidth} \begin{tikzpicture}[scale=0.8] \tkzDefPoint(0,0){A} \tkzDefPoint(290:4){B} \tkzDefPoint(416:3.035){C} \draw[thick](A)--(B)--(C)--cycle; \tkzLabelAngle[](C,B,A){\small $23^{\circ}$} \tkzLabelAngle[](B,A,C){\small $126^{\circ}$} \tkzLabelAngle[](A,C,B){\small $31^{\circ}$} \end{tikzpicture} \end{minipage} \begin{minipage}[b][7cm][t]{0.05\textwidth} \footnotesize 6. \end{minipage} \begin{minipage}[b][7cm][t]{0.45\textwidth} \begin{tikzpicture}[scale=1.1] \tkzDefPoint(0,0){A} \tkzDefPoint(67:4.6){B} \tkzDefPoint(89:3.803){C} \draw[thick](A)--(B)--(C)--cycle; \tkzLabelAngle[](C,B,A){\small $53^{\circ}$} \tkzLabelAngle[](B,A,C){\small $22^{\circ}$} \tkzLabelAngle[](A,C,B){\small $105^{\circ}$} \end{tikzpicture} \end{minipage} \clearpage \end{document}

I want to draw several different triangles ABC with the angles marked and the angle value written in it. Thanks to answers on on another question, I've managed to get this code:  \documentclass{article} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} %% om allerhande objecten te gebruiken zoals gradenboog... \usetikzlibrary{calc,intersections,through,backgrounds,snakes} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepgfplotslibrary{statistics}   \begin{document}  \makeatletter \newcommand\ddToddmmss[1]{% \pgfmathtruncatemacro\deg@tmp{#1}% \pgfmathsetmacro\min@tmp{(#1-\deg@tmp)*60}% \pgfmathtruncatemacro\Min@tmp{\min@tmp} \pgfmathtruncatemacro\sec@tmp{(\min@tmp-floor(\min@tmp))*60}% \ensuremath{\deg@tmp^\circ \Min@tmp ' \sec@tmp ''}} \makeatother   \begin{tikzpicture} \tkzInit[ymin=0,ymax=9,xmin=0,xmax=15] \tkzClip \tkzGrid \tkzDefPoints{1/3/A, 7/8/B, 12/1/C} \tkzDrawPolygon(A,B,C) \tkzDrawPoints(A,B,C) \tkzLabelPoints(A,B,C)  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](C,A,B); \tkzFindAngle(C,A,B) \tkzGetAngle{angleCAB}; %\FPround\angleBAC\angleCAB{2} \tkzLabelAngle[pos = 2.3](C,A,B){\ddToddmmss{\angleCAB}};    \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](A,B,C); \tkzFindAngle(A,B,C) \tkzGetAngle{angleABC}; %\FPround\angleABC\angleABC{2} \tkzLabelAngle[pos = 2.3](A,B,C){\ddToddmmss{\angleABC}};  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](B,C,A); \tkzFindAngle(B,C,A) \tkzGetAngle{angleBCA}; %\FPround\angleBCA\angleBCA{2} \tkzLabelAngle[pos = 2.3](B,C,A){\ddToddmmss{\angleBCA}}; \end{tikzpicture}   \begin{tikzpicture} \tkzInit[ymin=0,ymax=9,xmin=0,xmax=15] \tkzClip \tkzGrid \tkzDefPoints{1/3/A, 7/8/B, 12/5/C} \tkzDrawPolygon(A,B,C) \tkzDrawPoints(A,B,C) \tkzLabelPoints(A,B,C)  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](C,A,B); \tkzFindAngle(C,A,B) \tkzGetAngle{angleCAB}; %\FPround\angleBAC\angleCAB{2} \tkzLabelAngle[pos = 2.3](C,A,B){\ddToddmmss{\angleCAB}};    \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](A,B,C); \tkzFindAngle(A,B,C) \tkzGetAngle{angleABC}; %\FPround\angleABC\angleABC{2} \tkzLabelAngle[pos = 2.3](A,B,C){\ddToddmmss{\angleABC}};  \tkzMarkAngle[fill= red,size=1.5cm, opacity=.4](B,C,A); \tkzFindAngle(B,C,A) \tkzGetAngle{angleBCA}; %\FPround\angleBCA\angleBCA{2} \tkzLabelAngle[pos = 2.3](B,C,A){\ddToddmmss{\angleBCA}}; \end{tikzpicture}  \end{document}     Problem is, in version 2, where point C is higher than point A, he takes the wrong angle.  Any suggestions?


Below is a string variable and my regular expression, it's partially working but it's deleting everything after and I would like to just remove that one property for example...    tString='#a5af3c17e39f06875fbe9153d2d66d552{animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0.498039); background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(39, 48, 57); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: rgb(39, 48, 57); border-left-style: none; border-left-width: 0px; border-right-color: rgb(39, 48, 57); border-right-style: none; border-right-width: 0px; border-top-color: rgb(39, 48, 57); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: 0px; box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 20px 0px; box-sizing: border-box; break-after: auto; break-before: auto; break-inside: auto; caption-side: top; clear: none; clip: auto; color: rgb(39, 48, 57); content: ; cursor: auto; direction: ltr; display: block; empty-cells: show; float: none; font-family: Roboto, sans-serif; font-kerning: auto; font-size: 18px; font-stretch: normal; font-style: normal; font-variant: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: normal; font-weight: normal; height: 1110px; image-rendering: auto; isolation: auto; left: 0px; letter-spacing: normal; line-height: 32.4px; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; offset-distance: 0px; offset-path: none; offset-rotation: auto 0deg; opacity: 1; orphans: 2;}'  regStr=/animation-direction:.* ;/gm  result=tString.replace(regStr,'')  console.log(result);

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I want to have global menu support for Java apps in Ubuntu 16.04. I think jayatana is installed by default in Ubuntu, but it isn't enabled by default. How can I enable it?

I have installed jayatana but menus of the java apps (Intelij, etc) are still not in Ubuntu menu.   I tried to install/remove/purge/reinstall in many ways, the logs of the apps being launched show that jayatana is added to the java command. Finally I ran it explicitly like   java -javaagent:/usr/share/java/jayatanaag.jar   but still to no avail.  So the question is if there is any way to diagnose it? Maybe enable some logs, pass a secret switch?  lsb_release -a LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description:    Ubuntu 15.10 Release:    15.10 Codename:   wily   java:  java -version java version "1.8.0_73" Java(TM) SE Runtime Environment (build 1.8.0_73-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)   update-java-alternatives - not installed


Similar to how sections try to avoid starting on the last line of a page, how can I apply similar behavior to paragraphs?  In other words, do not start a paragraph on a page unless there is room for at least two lines of that paragraph on that page.

How do I prevent a line from appearing by itself:  Orphan: at the bottom of the page, or Widow: at the top of the page?


Although the rule was made by ....., the director rarely enforced it.  Should it be "him" or "himself"?

As a unit admin I’m often typing award certificates. The last line of the award citation usually goes something like this:     Private Joan Smith actions reflect great credit upon herself, the 120th Jumping Jacks Company, the 13th fighter Battalion and the United States Army.    It was recently pointed out to me that this is correct:      Private Joan Smith actions reflect great credit upon her, the 120th Jumping Jacks Company, the 13th fighter Battalion and the United States Army.   The first way is what I’m used to seeing and it looks right to me, but has always sounded awkward when reciting it. When I say the other way out loud it sounds better, but both seem to work. Which is correct?


Why an euclidean map defined onto a domain $R$, so a map $\delta\colon R\smallsetminus\{0\}\to\mathbb{N}$, satisfies $\delta(a)\leq\delta(ab)$ for every $a,b\in R\smallsetminus\{0\}$?  In some books, this property does not belongs to the definition of euclidean domain, and now I have to prove it.

In the definition of domain, we first define a degree function $\vartheta: R^\times \rightarrow \mathbb{N}$ with such two constraints:  (1) $\vartheta(f)\leq \vartheta(fg)$ for all $f,g\in R^\times$.  (2) for all $f,g\in R$ with $f\in R^\times$, there exist $q,r\in R$ with $g=qf+r$ and either $r=0$ or $\vartheta(r)<\vartheta(f)$.  I wonder why we need the first constraints? I think with only the second constraint, it is enough to prove the theorem: every Euclidean ring is a PID.  Can anyone give me a example where the first constraint is used?


I've read the answers given for  and they compare the performance of a 12V and 24V motor based on the power relationship (for the same mechanical load, twice as much current is drawn for the 12V as the 24V motor). However, I'm trying to understand what physically must change in a motor's design to enable it to operate efficiently at 24V versus 12V or vice versa?

I have read that using a higher voltage motor would need less current to get the same power. I understand that P = IV and how that works. My question is if the 24 V motor would get half of the current, wouldn't it have half of the torque as well since they are directly proportional? In that case I don't understand how the 24 V would be advantageous at all.   Typically when people talk about motors a higher wattage motor is "better". I don't understand physically how more watts makes the motor "better". It just means it uses more energy per second which I guess would mean it is all converted into mechanical energy but not torque? I don't understand the relationship there.


If we have a lagrangian with a symmetry then we get a conserved quantity: $$Q=Q(p,q)$$ which is a function of the conjugate momentum and the coordinates.  If we move over to quantum mechanics then we promote $Q$ to an operator by promoting $p,q$ to operators but otherwise keeping $Q$ as the same functional form of $p,q$ (assuming no ordering ambiguities).Then if we want to apply the symmetry to a state $|\psi\rangle$ then we use the conserved quantity, $$|\psi\rangle\to|\psi'\rangle=e^{iQ}|\psi\rangle$$.  Why is the conserved quantity the  generator of the transformation ?

It is often said that the classical charge $Q$ becomes the quantum generator $X$ after quantization. Indeed this is certainly the case for simple examples of energy and momentum. But why should this be the case mathematically?  For clarity let's assume we are doing canonical quantization, so that Poisson brackets become commutators. I assume that the reason has something to do with the relationship between classical Hamiltonian mechanics and Schrodinger's equation. Perhaps there's a simple formulation of Noether's theorem in the classical Hamiltonian setting which makes the quantum analogy precisely clear?  Any hints or references would be much appreciated!  Mathematical Background  In classical mechanics a continuous transformation of the Lagrangian which leaves the action invariant is called a symmetry. It yields a conserved charge $Q$ according to Noether's theorem. $Q$ remains unchanged throughout the motion of the system.  In quantum mechanics a continuous transformation is effected through a representation of a Lie group $G$ on a Hilbert space of states. We insist that this representation is unitary or antiunitary so that probabilities are conserved.   A continuous transformation which preserves solutions of Schrodinger's equation is called a symmetry. It is easy to prove that this is equivalent to $[U,H] = 0$ for all $U$ representing the transformation, where $H$ is the Hamiltonian operator.  We can equivalently view a continuous transformation as the conjugation action of a unitary operator on the space of Hermitian observables of the theory  $$A \mapsto UAU^\dagger = g.A$$  where $g \in G$. This immediately yields a representation of the Lie algebra on the space of observables  $$A \mapsto [X,A] = \delta A$$  $$\textrm{where}\ \    X \in \mathfrak{g}\ \ \textrm{and} \ \  e^{iX} = U \ \  \textrm{and} \ \  e^{i\delta A} = g.A$$   $X$ is typically called a generator. Clearly if $U$ describes a symmetry then $X$ will be a conserved quantity in the time evolution of the quantum system.  Edit  I've had a thought that maybe it's related to the 'Hamiltonian vector fields' for functions on a symplectic manifold. Presumably after quantization these can be associated to the Lie algebra generators, acting on wavefunctions on the manifold. Does this sound right to anyone?


Is it still possible to play Star Craft Brood War online on Battle.net?  What do I need aside from the original game?  Do I need to pay a subscription fee on Battle.net?

Can I still play Starcraft 1 multiplayer on Battle.Net?


Can a moderator (or ex-moderator) view the registered email address if :  I am a member of the particular SE site of which the moderator is moderating?  I am not a member of the particular SE site of which the moderator is moderating?

When editing my user profile (name, date of birth, etc.), how can I tell which information can be seen by other users (publicly visible) and what is only used by the system (and how it's used)?


Suppose you are given an acute triangle $XYZ$ with the following properties:   At $\angle XZY$, the $\angle$ bisector is drawn and extended all the way to $XY$. Lets call the point where it intersects $A$. From $\angle ZXY$ we draw a line to $ZY$ s.t. it cuts $ZY$ into two equal pieces. i.e. the point that intersects $ZY$ is the midpoint call it $B$. And lastly, from $\angle ZYX$ we drop the altitude onto $XZ$. Lets call the point it intersects $C$. Now this triangle was constructed s.t. $ZA \cap XB \cap YC = P$, a point. Suppose we let $\angle XZY = \phi$. How would we prove that $\angle XZY > 45$ degrees for this specific kind of triangle? Obviously my first thought was to suppose that it was $\leq 45$ degrees, and then break it up into two cases. Even then I am unsure. The help would be appreciated!

$ABC$ is an acute triangle. The angle bisector $AD$, the median $BE$ and the altitude $CF$ are concurrent. Prove that angle $A$ is more than $45$ degrees. Here $D,E,F$ are  points on $BC,CA,AB$ respectively.  This question was asked in 4th All-Soviet Union Mathematics Competition  in 1970 and the wording of the problem is same.


If you press on the bottom right of your screen you can see what Pokemon are nearby. I'm wondering if a lure module will exclusively attract those Pokemon or if any type can randomly appear at a Pokestop with a lure module?

When a Lure Module is used on a PokéStop, do existing pokémon in the area get drawn to the PokéStop? Or rather do new pokémon spawn within the PokéStop area of effect? Or both?  When I head to a PokéStop with a lure module, it seems Pokémon appear from nowhere, and the Pokémon listed Nearby don't get any closer. So I am guessing it only causes random spawns.  Has anyone found the lure module to actually draw existing Pokémon to your location, or only spawn new pokémon? And does an individual's incense act the same way?  For an individual's incense, this could be an important question. If I see a rare pokémon 3 'steps' away, I would want incense to actually help draw that pokémon closer to me as I search for it. Whereas if the incense only spawns new pokémon, I'd rather use incense at other times.


The electrons that carry the electric energy are in wires or in the battery ? battery provides a potential difference but from where electrons flow to make for example a bulb light. If they flow from wires then how a path is established in order electrons to go through wire over and over ?

Suppose we have the "basic" stuff like a battery 2 piece of wire and a bulb. Battery has a potential difference. But from where electrons flow to make the bulb light? from wire or from battery or from both? also if electrons flow from battery and they go through the wire (conductor) then why in insulators this doesnt happen? insulators dont give electrons but why they dont let electrons flow?


Given below code is giving null pointer exception at  public class Testing {     public static final String HD_DATA = "STOCK,D1,D2,D3,D4,D5,D6,D7,D8,D9,D10";     public static final String HD_DATA_1 = "1,10,20,30,40,50,60,70,80,90,100";     public static final String HD_DATA_2 = "2,11,22,33,44,55,66,77,88,99,111";     public static void main(String[] args) {         String[] hdDataArray = HD_DATA.split(",");         String[] hdDataArray1 = HD_DATA_1.split(",");         String[] hdDataArray2 = HD_DATA_2.split(",");         String[][] pram = new String[3][];   //[null, null, null]          for(int i=0;i<3;i++) {             for(int j=0;j<hdDataArray.length;j++) {                 if(i ==0) {                     pram[i][j] = hdDataArray[j]; // Exception in thread "main" java.lang.NullPointerException                 }                 else if (i ==1){                     pram[i][j] = hdDataArray1[j];                 } else if(i == 2) {                     pram[i][j] = hdDataArray2[j];                 }             }         }            System.out.println(pram);     } }   Null pointer exception generate while trying to give but i would like to insert the data at the run time is there any way to we can insert data in array of arrays at runtime identify the size of arrays of array like jagged array

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?


If my US visa is valid till March 15th 2019, then can I enter into US on 13th Mar 2019? Can CBP (Customs & Border Protection) at the US port of arrival refuse entry based on validity of visa?

I am a Mexican citizen with a visa that expires May 31, 2015. I need to enter the US for five days in the last week of January.    Can I do so or do I need to renew it before entering the US?


Hey I would like to show that     $a\mid b\Rightarrow \varphi(a)\mid\varphi(b)\qquad a,b\in\mathbb{N}$   where $\varphi(n)$ is the the totient function.  My try:  Let $a,b\in\mathbb{N}$ and $a\mid b$. By Eulers formula we have that $$ \varphi(a)=a\cdot \prod_{\substack{p \mid a\\ p\ \text{prime}}} \Big(1-\frac{1}{p}\Big). $$ Now since $a\mid b$ by the Fundamental Theorem of Arithmetic we can factorise $a$ and $b$ into $$ a=\prod_{i=1}^{n} p_i^{\alpha_i} \qquad b=\prod_{i=1}^{m} p_i^{\beta_i} $$ with $p_i$ being primes, $n \le m$, and $\alpha_i \le \beta_i$ for $1 \le i \le n$. Using this we can say  $$ \left.\prod_{i=1}^{n} \Big(1-\frac{1}{p_i}\Big) \middle| \prod_{i=1}^{n}\Big(1-\frac{1}{p_i}\Big)\right. $$ and this concludes the result.   Now my question is that is this correct? If it is is there another way to arrive to this conclusion? My way of describing this felt a bit clucky.  Happy new years eve to all!

Prove that if $d$ divides $n$ then $φ(d)$ divide $φ(n)$ for $φ$ denotes Euler’s $φ$-function.  I know that $d|n$ mean there exists some integer $k$ such that $n=kd$, but how can I use this to prove $φ(d)$ divide $φ(n)$


I found 3 answers for a proof at .  The selected answer seemed more rigorous, but the 3rd answer (repeated here) seemed simpler.   Is the 3rd answer flawed?  In general, can you substitute limit variables such as changing $\lim_{x\to a}$ to $\lim_{h\to 0}$? The third answer was: Pose h=x-a, then x=a+h, and when $x\to a$, there is $h\to 0$.  Then, $\lim_{x\to a}f(x)=\lim_{x-a\to 0}f(x-a+a)=\lim_{h\to 0}f(a+h)$  This is not a dup of the referenced question because I asked if 3rd proof in original question was valid, and was that technique valid in general.

$$ \lim_{x\to a} f(x) = \lim_{h\to 0} f(a+h) $$   How do I write a formal proof of it?


I tried to read a bit about relativistic time dilation, but the maths and complex physics overwhelmed me, confused me -I'm not trained in this field beyond common divulgation and basic education, and I'm not interested in physics professionally-, so this put me off the subject but I'm still curious about it, so I'll ask it simply enough in an attempt to get a concise answer.  If, say, someone sat on a bench at a park while Earth is going through rotation and traslation as usual, and someone else ran by, also rotating with Earth, there would be a minimal time dilation on the runner's clock from the sitting guy's point of view. Does this mean the runner is moving faster in his own timeframe or slower? I ask this because, although his clock is ticking slower, by moving faster, so I read, one can go further into the future.  Does this mean time advances slower for him, or he is advancing faster in time?

Suppose we have two twins travelling away from each other, each twin moving at some speed $v$:    Twin $A$ observes twin $B$’s time to be dilated so his clock runs faster than twin $B$’s clock. But twin $B$ observes twin $A$’s time to be dilated so his clock runs faster than twin $A$’s clock. Each twin thinks their clock is running faster. How can this be? Isn’t this a paradox?


After exporting an ldraw file from stud.io into blender through TonyLobster's ldraw importer, I went to try to render. It keeps rendering while tinted pink and I cannot figure out why. I know that the pink tint has to do with missing textures, but (that I know of) the importer I used should be getting the textures from the Ldraw parts library that I linked it to. I am using Blender version 2.79.

I made a character, and its one of my first times texturing, and I saved my character into a new folder, and when I came back to the model ALL the textures were pink, I used to know what to do, but I stopped texturing, how do I bring my textures back?


Put simply, Whenever somebody logs onto the family computer that I manage, I get bugged about updates and "could you install x thing that I saw in the store" and such. How would I enable all users to run flatpak, snap, and plasma-discover without root? All questions about this that I have seen previously seen only cover running one command without root access.  does not answer my question as it addresses allowing a user to run a single program without root access.

I need to run something as sudo without a password, so I used visudo and added this to my sudoers file:  MYUSERNAME ALL = NOPASSWD: /path/to/my/program   Then I tried it out:  $ sudo /path/to/my/program [sudo] password for MYUSERNAME:    Why does it ask for a password? How can I run/use commands as root with a non-root user, without asking for a password?


So the likelihood function for a binomial distribution is:    Why is the likelihood function above not multiplied by a combinatorics term: n! / (x! * (n - x)!)   If the likelihood function is interpreted as the probability of an outcome occurring x times out of n trials as the parameter, θ, varies, shouldn't there be a combinatorics term as that would provide the actual probability?  Thanks!

I'm reading  where the authors are leading from a discussion of maximum likelihood estimation to Bayes' Theorem, ostensibly as an introduction for beginners.  As a likelihood example, they start with a binomial distribution:  $$p(x|n,\theta) = \binom{n}{x}\theta^x(1-\theta)^{n-x}$$  and then log both sides  $$\ell(\theta|x, n) = x \ln (\theta) + (n-x)\ln (1-\theta)$$  with the rationale that:     "Because the likelihood is only defined up to a multiplicative constant of proportionality (or an additive constant for the log-likelihood), we can rescale ... by dropping the binomial coefficient and writing the log-likelihood in place of the likelihood"   The math makes sense, but I can't understand what is meant by "the likelihood is only defined up to a multiplicative constant of proportionality" and how this allows dropping the binomial coefficient and going from $p(x|n,\theta)$ to $\ell(\theta|x,n)$.  Similar terminology has come up in other questions ( and ), but it still not clear what, practically, likelihood being defined or bringing information up to a multiplicative constant means. Is it possible to explain this in layman's terms?


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

I read this book series as a kid back in the late 1970s, so it's an old series - and my memories are similarly old, and vague.   I know it's a fantasy series. I think there are 4 books in the series. Or perhaps 7.  There's a central boy character who has to get a collection of magical objects (every fantasy needs a quest!), each of which represents a different magical 'element': wood, stone, fire, etc. I definitely remember there was a wooden object. He lives in our normal world. The whole series takes place "here & now". I have a feeling he's a "chosen" person of some kind... But, the strongest memory I have is of a symbol: a circle which is divided into quarters (a vertical bar and a horizontal bar).  I know it's vague, but does anyone recognise this?


When I try to navigate to my site any domain I enter under https it takes me to the site specified in the VirtualHost config provided. I have setup the ServerName but it still doesn't work. So if I enter  it takes me to the site as expected but when I enter anything else such as  it still takes me to the previous site. Why does this happen?  <VirtualHost *:80>         ServerName storage.example.com         #Redirect permanent / https://storage.example.com/         RewriteCond %{HTTP_HOST} ^storage.example.com         RewriteRule ^(.*)$ https://storage.example.com$1 [R,L] </VirtualHost>  <VirtualHost *:443>         Alias /files /var/www/files         ServerName storage.example.com         DocumentRoot /var/www/nextcloud/          <Directory /var/www/nextcloud/>                 Options +FollowSymlinks                 AllowOverride All                  <IfModule mod_dav.c>                         Dav off                 </IfModule>                  SetEnv HOME /var/www/nextcloud                 SetEnv HTTP_HOME /var/www/nextcloud         </Directory>          # SSL         SSLEngine on         SSLCertificateFile      /etc/letsencrypt/live/storage.example.com/cert.pem         SSLCertificateKeyFile /etc/letsencrypt/live/storage.example.com/privkey.pem         SSLCertificateChainFile /etc/letsencrypt/live/storage.example.com/fullchain.pem          Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"          ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined  </VirtualHost>

If I have 3 domains, domain1.com, domain2.com, and domain3.com, is it possible to set up a default virtual host to domains not listed? For example, if I would have:  <VirtualHost 192.168.1.2 204.255.176.199> DocumentRoot /www/docs/domain1 ServerName domain1 ServerAlias host </VirtualHost>  <VirtualHost 192.168.1.2 204.255.176.199> DocumentRoot /www/docs/domain2 ServerName domain2 ServerAlias host </VirtualHost>  <VirtualHost 192.168.1.2 204.255.176.199> DocumentRoot /www/docs/everythingelse ServerName * ServerAlias host </VirtualHost>   If you register a domain and point it to my server, it would default to everythingelse showing the same as domain3. Is that possible?


I am sculpting a column and noticed, that my edges vertically are very smooth, but when I do them horizontally they are rough. I want them smooth and clean, but I don't want to use the smoothing-brush. It just should work look the horizontal line. Why do they look different and how can I achieve the clean edges? Thank you for helping!

I ran into a problem I have never seen before and that is when I try to sculpt on a mesh, it sculpts like this:  Instead of this: I am using dyntopo with these settings:   I feel like theres a very obvious solution to this, but I have no idea what it is.


what i am trying to run: sudo su -c "bash <(wget -qO- https://download.cudo.org/tenants/135790374f46b0107c516a5f5e13069b/5e5f800fdf87209fdf8f9b61441e53a1/linux/x64/stable/install.sh)" root what error pops up --2021-03-23 08:41:25--  https://download.cudo.org/keys/pgp/apt.asc Resolving download.cudo.org (download.cudo.org)... 104.26.10.102, 104.26.11.102, 172.67.69.190, ... Connecting to download.cudo.org (download.cudo.org)|104.26.10.102|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3146 (3.1K) [text/plain] Saving to: ‘STDOUT’  -                   100%[===================>]   3.07K  --.-KB/s    in 0s        2021-03-23 08:41:25 (64.2 MB/s) - written to stdout [3146/3146]  Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease               Hit:3 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                  Hit:4 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease             Hit:5 https://brave-browser-apt-release.s3.brave.com stable InRelease           Ign:6 http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu focal InRelease       Hit:7 http://deb.anydesk.com all InRelease                                      Hit:8 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:9 http://dell.archive.canonical.com focal InRelease                         Hit:10 http://security.ubuntu.com/ubuntu focal-security InRelease               Ign:11 http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu focal InRelease Hit:12 https://download.cudo.org/repo/apt stable InRelease                      Err:13 http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu focal Release          404  Not Found [IP: 91.189.95.85 80] Hit:14 https://debrepo.freedownloadmanager.org bionic InRelease Err:15 http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu focal Release   404  Not Found [IP: 91.189.95.85 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/langdalepl/gvfs-mtp/ubuntu 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. E: The repository 'http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu 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.```  What have i tried:

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 am switching from windows 8.1 to ubuntu which ubunutu you prefer me to choose? Laptop info(intel i7 3rd ino, 8gbRAM radeon graphics, samsung)

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I have two user role   1) vendor 2)freevendor   Here i am trying to fetch user by there user role vendor and freevendor with the bellow code but query is fetching only freevendor.  $vendor_total_args = array (     'role' => 'vendor',     'role' => 'freevendor',    'orderby'            => $orderby,   'order'               => $order,     'meta_query' => array(         'relation' => 'AND',         array(             'key'     => 'pv_merchant__experiance_dropdwon',             'value'   => $_POST[ 'pv_merchant__experiance_dropdwon1' ],             'compare' => 'LIKE'         ),         array(             'key'     => 'pv_merchant_specialization',             'value'   => $_POST[ 'pv_merchant__experiance_dropdwon2' ],             'compare' => 'LIKE'         )     ) );   So how can i fetch multiple user role  vendor and freevendor using above snippet code.

I've got some code like this:   $query_args = array(); $query_args['fields'] = array( 'ID', 'display_name' ); $query_args['role'] = 'subscriber'; $users = get_users( $query_args ); foreach ($users as $user) $users_array[$user->ID] = $user->display_name;   I want to get more roles and also include contributor, author and some custom roles I created with the Role Scoper plugin e.g. Manager, etc. Any ideas how I can do this with get_users?   Thanks


I am currently working with Joomla. I want to insert a new row into #__content_types table, but there is a column named table that is currently giving me errors. How do I insert the data despite the name of the column 'table'? INSERT INTO #__content_types(type_id, type_title, type_alias, table, field_mappings) VALUES ('14','SVG Image','com_view_vv.form','{"special":{"dbtable":"#__table","key":"id","type": "Corecontent","prefix":"JTable","config":"array()"},"common":{"dbtable": "#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '{"common": {"core_content_item_id":"id","core_title":"name","core_alais": "alias"},"special":{"imptotal":"imptotal","impmade":"impmade","clicks": "clicks","clickurl": "clickurl","custombannercode":"custombannercode","cid":"cid","purchase_type": "purchase_type","track_impressions":"track_impressions","track_clicks":"track_clicks"}}');

One of my columns is called from. I can't change the name because I didn't make it. Am I allowed to do something like SELECT from FROM TableName or is there a special syntax to avoid the SQL Server being confused?


Right now im in a course in Agile development and at our demo it is an demand that the project is an EXE and it should work without Java installed.  I tried to talk to my teacher but he wont budge on the demand so is there anyway that i can make my project into and exe that can be executed without java installed.  sidenote: my last resort is to make an installer that force him to install java and then run the exe!

Possible Duplicate:          I'd like to create a Windows .exe for a Java program. Previously, I've used JEXECreator for this, but it's not entirely satisfactory because:   The executable sometimes works on the machine on which it was created but not on others. The program is commercial; if you use the trial version, it adds a nag screen to your application.   I don't need the generated .exe to work if Java is not installed on the target machine (in fact, I think this is impossible).  Any recommendations?


I might be asking for the differences between apples and oranges here, but what are the differences between ASP.NET Web Pages and Web Applications/Web Sites? When creating a new web project, which should I use and what criteria should I consider when making a choice?   Also slightly unrelated, but what is the "future" of web projects in ASP.NET (i.e. is there another Windows technology other than the three that I should take into consideration?)  EDIT: To clarify, I do NOT mean the difference between ASP.NET Web Applications and ASP.NET Web Sites (unless Web Pages are somehow the same thing as one of the above.)  I mean ASP.NET Web Pages as detailed in MSDN here:   As opposed to Web Applications/Sites as detailed here:

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site.  What is the difference between ASP.NET Web Application and ASP.NET Web Site? Why would I choose one over other?  Is the answer different based on which version of Visual Studio I am using?


When I POST the data from my html form via PHP into a MySQL DB that is web-hosted, it is unsucessful, however, it is working on localhost. New, a little frustrated and thought someone might be able to quickly lend a hand/teach. Thank you in advance!      <?php      if(isset($_POST['insert_post'])){        $sender = addslashes(mysqli_real_escape_string($_POST['sender']));       $receiver =  addslashes(mysqli_real_escape_string($_POST['receiver']));       $feedback = addslashes(mysqli_real_escape_string($_POST['feedback']));       $date = addslashes(mysqli_real_escape_string($_POST['date']));            $insert_product = "insert into feedback(sender,receiver,feedback,date) values('$sender','$receiver','$feedback','$date')";          $insert_pro = mysqli_query($con, $insert_product);          if($insert_pro){           echo "<script>alert('Success!')</script>";          echo "<script>window.open('index.html')</script>";           }      }    ?>   No data is inserted...only the primary key id is appearing upon submit.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Let $P_{ij}$, where $P_{ij}$ is a real number and $i, j$ natural number, allow the three statements to hold:   $P_{ij}\ge 0$ for all $i, j$ $\lim_{i\to\infty}P_{ij}=0$ for all $j$ $\sum_{j=1}^i P_{ij}$ =1 for all $i$   Let $(x_j)$ be a convergent sequence and let a sequence $(y_i)$ be defined by  $y_i=\sum_{j=1}^i P_{ij}x_j$   Prove $(y_i)$ is a convergent sequence, and prove $\lim y_i=\lim x_i$  I don't really know how to approach the problem, thanks in advance

Let $P_{ij}$, where $P_{ij}$ is a real number and $i, j$ natural number, allow the three statements to hold:   $P_{ij}\ge 0$ for all $i, j$ $\lim_{i\to\infty}P_{ij}=0$ for all $j$ $\sum_{j=1}^i P_{ij}$ =1 for all $i$   Let $(x_i)$ be a convergent sequence and let a sequence $(y_i)$ be defined by  $$y_i=\sum_{j=1}^i P_{ij}x_j$$  Prove $(y_i)$ is a convergent sequence, and prove $\lim y_i=\lim x_i$  Ok so here's what I have:  Fix arbitrary $\epsilon>0$, there exists $N$ such that $|x_i-x|<\epsilon $ for all $i>N$, so $\lim x_n = x$, which exists since ($x_n$) is a convergent sequence.  We may assume that $|x_i-x|<M$ holds always, for a constant M.  Then  $y_i=\sum_{j=1}^i P_{ij}x_j $, so by triangle inequality and since $\sum_{j=1}^i P_{ij} =1$ for all $i$, the following occurs:  \begin{align*} |y_i-x|\leq {}&\sum_{j=1}^i P_{ij}|x_j- x|\\ ={}&\sum_{j\leq N} P_{ij}|x_j- x| +\sum_{j> N} P_{ij}|x_j- x|\\ <{}&\sum_{j\leq N} P_{ij}M +\sum_{j> N} P_{ij}\epsilon\\ \leq{}&\sum_{j\leq N} P_{ij}M +\epsilon \end{align*}  Now I don't know what to do with the sum that remains, if I factor out the $M$ and make the sum that remains equal to $1$, then I don't really get anywhere.  Thanks in advance.


I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I play Minecraft on PE edition. I want to get a sharpness 500 sword with a command block. How do I do this? I have already tried /enchant @p sharpness 500 while holding the sword, but that didn't work. If it needs a mod, please tell me the mod name.

I want to enchant an item with Smite level 100 with commands, but i cant get past the maximum level. I searched for solutions, and tried them out, but it still won't work. I'm using Minecraft Pocket Edition. The command I've tried was: /enchant @a [r=4] 10 100


Regarding the duplicate:  I got an answer for this over at GameDev.SE. It's pretty clear that this is not a duplicate, though it is now asked on both sites.      We have this code:  private IEnumerator SomeFunction(/*lots of arguments*/) {     // Wait until the local dictionary is loaded     while (!BundleLibrary.Instance.LocalBundleDictionaryLoaded)     {         yield return null;     }      //Wait for remote dictionary loaded if needed     if (BundleConfig.Instance.WaitForRemoteDictionary)     {         while (!BundleLibrary.Instance.RemoteBundleDictionaryDownloaded)         {             yield return false;         }     }     // more code below here }   I get that yield return null means the routine will pick up where it left off on the next frame.  But I don't really understand what the yield return false does. I haven't seen it, but I wouldn't know what yield return true would do, either.

In the  question one of the answers had the following code snippet:  IEnumerable<object> FilteredList() {     foreach(object item in FullList)     {         if(IsItemInPartialList(item))             yield return item;     } }   What does the yield keyword do there?  I've seen it referenced in a couple places, and one other question, but I haven't quite figured out what it actually does.  I'm used to thinking of yield in the sense of one thread yielding to another, but that doesn't seem relevant here.


Obviously $a^x$ is a solution of $f(x+y)=f(x)f(y)$. But how do I prove that it is the only solution of that functional equation (apart from $f(x)=0$ or $f(x)=1$)

A function with the property $f(x+y)=f(x)f(y)$ is well known exponential function, $f(x)=a^x$. My question is, how do you prove if there is no other function with this kind of property?    Edit: I always find this in math contests. At first glance, it really is the exponential function. As I see in the comments section, there are many other functions.


Binomial is counting success in $n$ trails. Poisson is also for counting events happening. What is the connection between them?  I know is that when sample size is large both can be approximated with normal.    But how are they similar or different? I learned in class their PMF are different but not really understand where does such PMF comes from and intuitive way of explaining them.

As is well known, the $\mathsf{Binomial}(n,p)$ distribution converges to the $\mathsf{Poisson}(a)$ distribution as $n\rightarrow \infty$, $p\rightarrow 0$ with $np=a$.  I'm pretty sure that the moments of $\mathsf{Binomial}(n,p)$ also converge to those of $\mathsf{Poisson}(a)$, but I don't know how to prove it. Convergence in distribution doesn't imply convergence of moments, in general. How can I prove that the moments converge?  I've found that the binomial probability (mass) function converges uniformly to the Poisson one. This is stronger than convergence in distribution, so perhaps it can be exploited (but if so I don't know how).


I want my PC to automatically log into my Windows 8 account and run all the startup programs, with out me giving my user name and password. (I have done this myself).   But I also want my PC to be locked until I log in myself. I don't want it to be in an insecure state.

I want to configure Windows 7 to login automatically after the computer is switched on. That's not because I'm lazy and don't like typing passwords. That's because I want programs that are configured to run on startup run automatically.  But I don't want everyone to see my desktop, so I want my computer to remain locked. When I'm ready to work, I just type my password and don't have to wait until all startup programs run.


It would be great if there was an easier way to access the questions I marked as favorite. I didn't find a way to do this in the app.

I haven't been able to find my favorite questions in the official Stack Exchange Android app.  Looking at my accounts page gives nothing on them.


What's a word for a person who studies many subjects? Often, the words we use to describe this type of person implies that he/she knows little about each subject (e.g. jack-of-all-trades, dilettante). I'd like to avoid that negative meaning.  e.g. Steve was a true ________; he was well-versed in everything from theoretical physics to gastronomy.

I am looking for a positive, passionate word to describe the all-round capabilities of a person.   Are there any words better than 'all-rounder'?


I would like to be able to create a face, with lines and vertices inside that connect all the vertices to the ones on the other side. Pressing F will create a face inside the selected vertices like this:   but, I would like all the lines to match together on the other side, like a grid. Is there a shortcut for doing this, or some other shortcuts that would do the same?

trying to recreate this Elijah bottle. I have two sides, one of which is outlined in red. How do I fill that face with polygons so I can then grab the center (that red square dot) to pull it outward thereby creating the slight outward bowing of the bottle?


I am trying to do regression analysis with level of a chemical in blood as dependent variable and age, gender and weight of children as predicting variables. The sample size is about 5000. Age and weight are highly correlated in children. My doubts are:    Should I use z-scores or percentiles for weight rather than raw values?  Should I use some other technique rather than ordinary linear regression?  Do I need to check if data has normal distribution at this sample size?   Edit: I want to clarify regarding z-score or percentile here: I have ages as 5,6,7,8 etc with no fractional ages. I thought for each age I can calculate z-score or percentile of weight for that individual child and use it instead of raw weight. By this I can answer the question that 'Is being overweight for age has any effect on blood level of the chemical'? Is this reasonable argument? Also, this question differs from the earlier question and is not a duplicate. My questions 2 and 3 do not figure in the title.   Regarding a comment on biological issues by @DLDahly: The ages are 5-15 years. Biologically, I want to determine if the weight is a predictor of blood level of chemical, independent of age? Chemical level rises with age, but it is not clear if being overweight increases it further. Actually, one cannot rule out the possibility that this rise may be related mainly to weight and not to age as such.

I am thinking about a problem which is to predict log(spend) of a customer using linear regression.  I am considering what features to use as input and wondering if it would be OK to use the percentile of a variable as inputs.  For example I could use the companies revenue as a input. What I'm wondering is whether I could use the company revenue percentile instead.  Another example would be a categorical industry classifier (NAICS) - if I were to look at median spend per NAICS code and then assign each NAICS code to a 'NAICS Percentile', would that be a valid explanatory variable I could use?  Just wondering if there are any issues to be aware of when using percentiles? Is it in some ways equivalent to a type of feature scaling?


On Mac OS X, these shortcuts Ctrl + B, Ctrl + K belong to Mac's readline shortcut:  Since Stack Overflow's editor has used Cmd + B/K as a shortcut for editing, there isn't any need to take up the shortcut keys of the Mac system. I recommend the following shortcuts for Mac OS X users.  Ctrl + B       Move Cursor Backwards Cmd + B        Bold Text Ctrl + K       Delete Text Forwards Line Cmd + K        Code Sample

I navigate with Ctrl-n,p,f,b (readline/ keys), so that I don't have to move my hands too much and get  again. Is there a way to disable Ctrl-b being hotkey for bold?  Note that this is not just an Emacs thing. Standard web browsers, like Firefox and Chrome, use things like  Ctrl + K and Ctrl + L to navigate to the Google search bar and address bar respectively.


I would like to execute remote Bash script using Python script on local computer. Bash script on remote computer # script.sh     #!/bin/bash  echo "... Options ..." echo "  1) Option 1" echo "  2) Option 2"  read -p "Enter [1/2] : " n  case $n in   1) echo "Option 1 selected";;   2) echo "Option 2 selected";;   *) echo "Invalid option";; esac  Python script on local computer # script.py import sys from paramiko import SSHClient  hostname = '10.0.0.1' username = 'u' password = 'p'  client = SSHClient() client.load_system_host_keys() client.connect(hostname, username=username, password=password)  stdin, stdout, stderr = client.exec_command('./script.sh')  for line in stdout:     sys.stdout.write(line)  I've no issue executing script.sh on remote computer. remote@computer:~$ ./script.sh  ... Options ...   1) Option 1   2) Option 2 Enter [1/2] : 1 Option 1 selected remote@computer:~$   The problem is when I try with Python script on local computer, the script seems to be hang. I don't even see Enter [1/2] :  line been executed. local@computer:~$ python script.py  ... Options ...   1) Option 1   2) Option 2  What's wrong in this code? Desired Output local@computer:~$ python script.py  ... Options ...   1) Option 1   2) Option 2 Enter [1/2] : 1 Option 1 selected local@computer:~$

I'm trying to run an interactive command through paramiko.  The cmd execution tries to prompt for a password but I do not know how to supply the password through paramiko's exec_command and the execution hangs.  Is there a way to send values to the terminal if a cmd execution expects input interactively?  ssh = paramiko.SSHClient() ssh.connect(server, username=username, password=password) ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command("psql -U factory -d factory -f /tmp/data.sql")   Does anyone know how this can addressed? Thank you.


I was reading through some meta posts today and I stumbled upon  just now,  After reading this, it started to make me think about the times I have answered duplicate questions. I can see where he is coming from, and I am rethinking whether I should answer those or refer them to previous questions. Then it hit me, what if my answer is a better or more current way of doing something?  Should I then post my answer on the already answered question from two years ago, or on the duplicate question?  This is the question I recently answered that made me start to think about what would be the best option for the person answering a question.      So what does everyone think about this? Which way should the person answering a question, like me, take in this type of situation?

Using the following assumption:   If two questions are both equal to the same question, then they are equal to each other.  Therefore, the answer to one of them is also the answer to another.   And the following question are considered duplicate:       However, I think that to answer two duplicate questions with duplicate answers would just be seen as spam, so I currently leave only one.   But I'm not sure for Where it is preferred to place the answer to duplicate questions?.


Recently I installed Ubuntu 16.04 on my HP Envy 17t and everything works fine. However, I need to disable the touchscreen input permanently and I tried everything I could found but nothing works.  The closest thing I could manage was to make a shell script that will run at startup (the shell script calls xinput set-prop "Touchscreen Input Name" "Device Enabled" 0 command).   However, this script will not run until I log in. My touchscreen needs to be disabled at the log-in screen.  How can I solve this? I tried modifying the 10-evdev.conf file but all I got is a purple screen and a broken Ubuntu setup.

I have a touchscreen, but the drivers are not working properly and interfere with my mouse.   Is it possible to disable my touchscreen , so that I can work again properly?


I’m trying to add c wire to furnace to run a WiFi thermostat but don’t know where to hook up c wire to get power to turn on thermostati have 2 extra wires just don’t know where to put one them to get power

I’m trying to add c wire to furnace to run a WiFi thermostat but don’t know where to hook up c wire to get power to turn on thermostat i have 2 extra wires just don’t know where to put one them to get power


Visiting  gives me a certificate error in Chrome. Here is the certificate that I receive when visiting that page:

Every once in a while, someone comes to Meta to report a bug about something not working and it turns out that person is visiting one of the network sites over HTTPS/SSL. The problem has been growing since browsers started to outright block mixed content instead of showing a warning.  The usual answer is that HTTPS is not yet fully supported, and the person should try again using HTTP. Sometimes things get fixed, improving the situation a bit.  Is there a roadmap for full support? Partial support has been there for  now.  Is this actively being worked on? If not, what are the reasons to partially support it instead of disabling it completely to avoid these problems?


Plus, how to fix that cloth penetration through the mesh beneath it?  Thanks in advance!

How would one freeze a simulated body at frame X and use it as a static mesh?  Following a , I've been able to do a cloth animation to my model, now I'd like to have that made static, without the use of the timeline.   The thing is, I'm modelling something that's not going to be an animation, but a static object (something like a statue/figurine). So I don't need the animation, only the shape at a particular frame that I find convenient. I'd like eventually once this is done, to also modify that deformed grid.   I've tried to follow what was said , but couldn't figure out what chipmasque was saying. I'm quite new to blender (been using it on and off, just enough to forget everything).  I'm using blender 2.63, if it is of any relevance.


class Func:     def __init__(self):         self.weight = 0 class Skill:     def __init__(self, bson):         self.f = [Func()]*5         for i in range(0,5):             self.f[i].weight = bson['w'+str(i+1)] d = {"w1":20,"w2":0,"w3":0,"w4":0,"w5":0}  s = Skill(d) print s.f[0].weight   The output is 0 rather than 20. I am always hard to figure out the difference of class member and object member in python.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Can you give me an example of a bounded f:[0,1]-> R , which has a primitive but it isn't Riemann-integrable? It must be on a closed interval from zero to one.

I have two questions that i'm curious about.   If $f$ is differentiable real function on its domain, then $f'$ is Riemann integrable. If $g$ is a real function with intermediate value property, then $g$ is Riemann integrable.   Thank you in advance.


I have read questions related to sorting an array of objects by property, but I have a special case where I need the aditional StringComparer.Ordinal object to perform a custom sort.  I have a DirectoryInfo[] array where I need the subdirectories to be sorted by their FullName property but I need the sorting order of the numbers contained in the paths to be:  1 - 2 - 4 - 10 - 14 - 25   instead of  1 - 10 - 14 - 2 - 25 - 4  (I have paths such as c:\Folder\Subfolder\1, c:\Folder\Subfolder\2 ...)  I think this would be acomplished with: Array.Sort(paths, StringComparer.Ordinal) if my array was an array of strings.  How can I acomplish this if my array is an array of DirectoryInfo[]? I would like to avoid extending DirectoryInfo by creating a new class.

Anyone have a good resource or provide a sample of a natural order sort in C# for an FileInfo array?  I am implementing the IComparer interface in my sorts.


I am making manwiches for Halloween, how long can I keep it warm on the stove so that the kids can eat off and on during the day?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I have experienced this problem every single time I have tried to compile using XeLaTeX with MiKTeX 2.9 on my windows 7 64-bit machine. I haven't been able to find a solution to my problem anywhere so I am just going to describe it the best I can here with the hope that someone will know what to do.  When I try to typeset using XeLaTeX, I get the following pop up:  The required file  tex\xelatex\xetexurl\url.sty   is missing. It is a part of the following package:  xetexurl   I then have to install the package from a random package repository. The file is typeset correctly. I then make some edits and need to typeset the file again. I get the same pop up. Interestingly, at the bottom of the pop up, I have the box checked that states: "Always show this dialog before installing packages." I finally decided to uncheck that box and something interesting happened: I could not typeset a document again using XeLaTeX; the "Process crashed" every single time. I changed my MiKTeX settings to have the program always ask me first and I can now typeset documents again using XeLaTeX, but the pop up always shows up. I thought this question was similar:   But it has not really helped. I wonder if I am not alone with this issue. It has started to become a real nuisance. Any ideas as to what I can do to avoid having to install this package every single time when typesetting?

On my up-to-date MiKTeX system, there is a copy of url.sty in three different places in the TDS:   texmf\tex\xelatex\xetexurl (part of MiKTeX package xetexurl, packaged on 2007-Sep-05) texmf\tex\latex\url (part of MiKTeX package url, packaged on 2010-Jan-26) texmf\tex\latex\ltxmisc (part of MiKTeX package ltxmisc, packaged on 2012-Dec-20)   The first one (in xetexurl) is version 3.1; the other two are version 3.3.  Why does the package exist in 3 different locations?  Given that this is the case, how does the TeX program know which one to use?  It seems that when I run pdfLaTeX or LuaLaTeX, it chooses the one from ltxmisc, giving log entry  Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.   while when running XeLaTeX it chooses the one from xetexurl, giving this log entry:  Package: url 2004/03/15  ver 3.1  Verb mode for urls, etc.   Why the discrepancy?


How do you use the block in other hand in Minecraft 1.10.2?

As of snapshot 15w31a, you can hold things in both of your hands.  I figured out that F lets you hold the item in your other hand. But how do I use this item? Can it even be used?


I'm trying to do a login in my Ubuntu, but I can't:   I read Q&A about enabling root user, but how I can do it without a sudoer user? How can I add a sudoer user without having root access? I think it is a loop!

I clean-installed Ubuntu 11.10 today, and then installed VirtualBox.  This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a group, I ran the following command:  sudo usermod -G vboxusers stephane   This is a problem.  I now see what I should have run instead is:  sudo usermod -aG vboxusers stephane   The end result is I'm no longer in the groups I should be in.  Including whatever group is required to run "sudo".  When I run any command as sudo now, I get the following:  $ sudo ls [sudo] password for stephane:  stephane is not in the sudoers file.  This incident will be reported.   Is there a way to fix this, or do I need to re-install from scratch again?


What is the meaning of ? I'm little confused about the word as there are some terms like moment of momentum, moment of mass, moment of force, etc. I want to know what exactly is meant by the word "moment".

This question is more of a question about the origin of a physical term  used in many contexts.  My question is about the linguistic or historical meaning of the word "moment".   Please don't provide the mathematical equations for the moment of inertia or the electric of magnetic dipole moment. My question is about the essence of the word.   I'm asking this question because as a non-native English speaker, I find it confusing as how did this word got to be used in the different contexts.


Last week I lent my laptop to my kid brother and he changed my password (Password of the only admin account in the PC) , and now i am lock out of the laptop and he says he doesn't remember what he changed the password into. How can I get access in to my laptop. The laptop is an Dell Inspiron 13 running Windows 10

I accidentally disabled my admin account.  After I login to another account I found I can not get admin rights, because all admin accounts on my computer are disabled.  I clicked on 'run as administrator' but only see a smart card choice (all the admin accounts are disabled so no choice provided)    I don't want to re-install my OS, help!    Details:  I have account A on my computer.    I got a new computer so I want to give the old one to my mother.    Creating a new user account B for her and disable account A.    Logout and restart.    Successfully login B, now I found I could not get admin rights because no account choice is provided.    More informations about my machine:  OS is Windows 10 and my admin account is a Microsoft Account.  I have an arch-linux installed on my computer and dual-boot it using GRUB, so maybe I can not use safe mode.


We know about the fifty Hogwarts fighters that died but what about the Death Eaters?  Except for Regulus Black, Severus Snape, Bellatrix and Voldemort, which Death Eaters died?

So after the final battle, lots of people die.  But not everyone! Even people from the bad side had to have survived.  So who did?


Been on Stack Overflow for a while now. I noticed that the post titles that are in the form of a question are usually much clearer than the ones that are not.  I think it's because it forces you to write a complete sentence instead of dropping the words out of your head.  Since Stack Overflow is about questions and answers, it may be possible to improve the question quality by checking if there is a question mark (?) in the title and refusing to accept the question if there is not.  What do you think?

Seems strange (and not in a good way) to me that when I click "Questions" and very few (about 1 in 8) of the titles end in question marks. So I'm curious to get some opinions:  Is there some simple change to the site that would encourage actually asking a question in the title?  Is this a worthwhile aim?


I want blender to execute the part of my code, then wait for about 30 sec and execute the rest code. Is it possible? I want something like setTimeout in js if not, then how do I execute one script, and then another one by one via bash or python script?

I have 8 python scripts and I need to lunch them at once. For one script, I used   blender --background --python script1.py   for the eight scripts, I tried this command but it does not work.  blender --background --python *.py


I keep getting that weird compile error "LNK2019 unresolved external symbol" c++. I want to create a template function that will take different class as it's parameter. Event and Items are the classes I have created.  template<typename C> void viewFunction(C customClass, char ch){    if(ch = 'E'){        customClass.printName();        customClass.printPrice();    }    else{        customClass.printName();        customClass.printSize();        customClass.printWeight();    } }   Now I called that function in main. The error happens when I try to pass in a class as my template type, I think.  int main{  Event myEvent1; Event myEvent2;  Item myItem1; Item myItem2;  viewFunction(myEvent1, 'E');  viewFunction(myItem1, 'I');  viewFunctionmyEvent2, 'E');  viewFunction(myItem2, 'I');  return 0; }

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am trying to insert a moveable, non-copyable object into std::vector. I reduced the original code to this example:  #include <vector> class MovingClass { public:   MovingClass(const int value) : _value(new int(value)) {}   //! No copy allowed   MovingClass(const MovingClass& src) = delete;   MovingClass& operator=(const MovingClass& src) = delete;   // move is OK   MovingClass(MovingClass&& source) : _value(source._value) { source._value = nullptr; }   MovingClass& operator=(MovingClass&& source) { _value = source._value; source._value = nullptr; }    ~MovingClass() { delete _value; }   // do not mind that this is all kinds of bad, it's just an example   int* _value; };  int test_vector_main() {   std::vector<MovingClass> containers;   containers.push_back({ 42 });    return 0; }   The original purpose of the class is closing winapi handles, not deleting pointers.  I can reproduce the warning in a blank project if I set "Enable C++ Exceptions" to "No" in Configuration Properties->C/C++->All Options.  The project I work with treats warnings as errors and has exceptions disabled.  I am not sure what to do except giving up on no-copy rules or enabling the exceptions. I'll enable the exceptions, but if I couldn't what else could I do?  Why does push_back even require exceptions?

Does anybody know how to switch off exception handling option in MSVC? I tried to set the option 'Enable C++ exceptions' to 'NO' and I got warning: warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc.  I would like to switch off the exception handler, too, but I don't know how.  In my application I basically need more speed than stability, therefore I chose switching off the exception handling. I do not have any try/catch blocks, but I do use STL. When I switch the option 'Enable C++ exceptions' to 'NO' is there any way how to get rid of those warnings?


I recently have question that was downvoted and closed as "primarily opinion-based " I even got the "Peer Pressure" badge, I have immediately deleted my question, and  because of it, I've searched why my question is closed... I have viewed back my question and after navigating back to my profile, my reputation before I asked it is restored, I have viewed the delted question, the downvotes are still there but my reputation is restored. Are reputation restored on immediate delete on questions? Is this a feature?

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


I'm writing a (supposedly) simple financial tracking program using tikz and the fp package.    Within a tabular environment I compute a value using \pgfmathparse{adding some numbers}\pgfmathresult.  The trouble comes when I attempt to access the value of \pgfmathresult outside the tabular environment.  I know that I can use pgfmathsetmacro to assign the value of \pgfmathresult, but the macro is only defined locally, i.e. within the same cell where it was defined. How can I define the macro to be global?  Here is an MWE:  \documentclass{article} \usepackage{tikz} \usepackage{etoolbox} \usepackage[landscape]{geometry} \usepackage{fp} \usetikzlibrary{decorations.text,fixedpointarithmetic} \newcommand{\compute}[1]{%    \pgfmathparse{#1}%    \pgfmathprintnumber{\pgfmathresult} }%  \begin{document} \pgfkeys{/pgf/fixed point arithmetic} \pgfkeys{/pgf/number format/.cd,fixed,fixed zerofill,precision=2}  \begin{tabular}{c}    \compute{1.3+7.5} \gdef\mySum{\pgfmathresult} \end{tabular}  This line should just print the value: \mySum %But I'm told \mysum is undefined  This line should use mySum in a calculation: \pgfmathparse{2*\mySum}\pgfmathresult %Same error  This line should plot a point using mySum: \tikz\draw (0,0) circle (\mySum); %Same error  \end{document}   I have tried variations of the definition of \mySum shown above that used \edef, \xdef, or \let, and tried various placements of \expandafter, all to no avail.  I keep thinking this should be fairly simple....

The result of \pgfmathparse is automatically stored in \pgfmathresult. Is it possible to store it in an other variable, too?


Till now I have learned that light has fastest speed. But I have also noticed that wherever it travels it only experiences retardation. So I wanted to know if light ever felt acceleration naturally in universe.

An excited electron loses energy in the form of radiation. The radiation constitutes photons which move at a speed $c$. But is the process of conversion of the energy of the electron into the kinetic energy of the photon instantaneous? Is there a a simple way to visualize this process rather than math?


I usually only want to ask questions.  I want to get the best results on my questions, is there anything I can do to ensure this?  Would I get better results from asking questions if I had more reputation?  Does responsiveness help?  I seem to get better/more responses when I am more responsive.

The title of  of  is, "Is it posible [sic]?"  This doesn't provide any information at all. It should be mandatory for everyone asking questions on the Internet to read , which says:     Help your community learn from the question. When you field a good question, ask yourself "How would the relevant documentation or FAQ have to change so that nobody has to answer this again?"


By default, tmux passes over edge of a pane. For example, suppose there are two panes, pane 1 and pane 2. Suppose you're at pane 1 and you do Ctrl+b →, you're at the pane 2. If you again do Ctrl+b →, you'll be again at pane 1. How can I disable that feature so, when I'm navigating from the last pane, I don't go anywhere?

Is it possible to disable the behavior which causes selecting a pane on opposite side of a tmux window if there are no more panes left in a direction select-pane command was originally triggered at?  If not, is there a way how to determine if any other panes exist in a specific direction?  If a tmux window doesn't have a (v)split active window and a select-pane command is triggered, an error message is thrown - this is expected behavior.  Thank you for response


Yes - this concerns the question which commands in terminal are possible, for to find out which programs are initialized (visible and non-visible) - by program1. (for example - when I only want to know, which programs are running by program1 only with name "crash-handler"?) I dont mean this here:  Step 1:  top   And then step 2:  sudo kill -9 PID 'number-of-process'   I mean for to list all programs, which are running by program1 (even hidden processes ... ). This question will be rewarded with bounty! (because of thunderstorm I had amnesia and wanted to put this question earlier - this then would have prevented the stupid "hoaxes" about so-called "shell-shock-vulnerabilities" and else news ... ).  How many possible commands would be out here for this ?! (- not only htop and top and pstree ... ) - thank you !

is there any way to know, who are children of the specific process ? for example those children which their parent ID is foo ?


I am working with operations and sets, and have been reading about the symmetric difference of AΔB. The textbook has explained some equivalences of this difference, such as:  $$(A\setminus B)\cup(B\setminus A)$$  $$(A\cap B^c)\cup(B\cap A^c)$$  $$(A\cup B) \setminus (A\cap B)$$  The textbook has also explained satisfactorily why the complement of $A\Delta B$ is $(A^c\cup B)\cap (A\cup B^c)$.  I am reading now the proof of the associativity of the symmetric difference for three elements, and can follow the argument except for the first equality, which seems to have been produced out of the blue (I don't see anything in the textbook previously that verifies it):  $$(A\Delta B)\Delta C = ((A\Delta B)\cup C)\cap ((A\Delta B)^c \cup C^c)$$  How is this warranted?  Thanks in advance for your ideas.

By $A\oplus B$ we denote the symmectric difference of two sets. The definition is $A\oplus B =(A\setminus B) \cup (B\setminus A)$. Now I hope to show that $A\oplus (B\oplus C) = (A\oplus B)\oplus C$. I remember that there's an elegant proof, but I forget its detail. (The first step is to show $A\oplus (A\oplus B) = B$, and maybe applying this formula, we can obtain associativity.)


ls -la .   will show this in it:  insgesamt 1312 drwxrwxr-x  6 ruben rubo77   4096 Feb 23 06:20 . drwxrwxr-x 23 ruben rubo77   4096 Feb  6 21:48 .. ...   But it will show the whole content of the folder too.   I could narrow the output with head and tail:  ls -la .|head -n 2|tail -n 1   But isn't there an option in ls to show only the current directory you are in?

Say I have folder "foo" residing, the home directory. I want to get some info of it, owner, group, permissions, etc...  I then do this to try to get the information:  cd ~ ls -l foo   Of course it now lists the info of the contents of "foo"  Then I could do something like this  cd ~ dir=foo ls -l $foo/.. | awk 'BEGIN { dir="'$foo'" } { if($9 == dir) { print $0 }  }'   But isn't there an easier way to do this?


In  tutorial at about 06:00 min a mirror modifier is added and it works. When I do the same it does not work, only when I add an empty at the 3D cursor location and make the empty the mirror object. Why can the creator of this tutorial add a working mirror modifier without empty ?

When I add a mirror modifier it sometimes doesn't mirror correctly, giving me an overlapping mesh. How can I fix this?


I am using Linux  box which have the  the following flavour   LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: RedHatEnterpriseServer Description:    Red Hat Enterprise Linux Server release 6.9 (Santiago)  My requirement is to start a  shell script after the server is restarted completed and all other init scripts are executed custom script need to execute For the same, I put the custom script path in the file named "/etc/rc.d/rc.local" assuming that on restart it will pickup, but after the restart, it didn't pick up on restart.

I am currently trying to understand the difference between init.d and cron @reboot for running a script at startup/booting of the system.   The use of @reboot (this method was mentioned in  by hs.chandra) is some what simpler, by simply going into crontab -e and creating a @reboot /some_directory/to_your/script/your_script.txt and then your_script.txt shall be executed every time the system is rebooted. An in depth explanation of @reboot is   Alternatively by embedding /etc/init.d/your_script.txt into the second line of your script ie:  #!/bin/bash # /etc/init.d/your_script.txt  You can run chmod +x /etc/init.d/your_script.txt and that should also result for your_script.txt to run every time the system is booted.  Q1: What are the key differences between the two? Q2: Which is more robust? Q3: Is there a better one out of the two? Q4: Is this the correct way of embedding a script to run during booting?  I will be incorporating a bash .sh file to run during startup.


I want to know whether the series $\displaystyle{% \sum_{n=1}^{\infty }\left[{\pi \over 2} - \arctan\left(n\right)\right ]}$ converges or not.  Some series such as $\sum_{n=1}^{\infty}\sin \frac1n$, $\sum_{n=1}^{\infty}\tan \frac1n$ are solved by the comparison test with $\sum_{n=1}^{\infty}\frac1n$. But the given series is not compared with $\sum_{n=1}^{\infty}\frac1n$. Is there another way to determine whether the series converges or not?

I tried everything that I know but I couldn't solve this series:  $$\sum_{n=0}^{\infty} \left(\frac{\pi}{2} - \arctan(n)\right)$$  Does it diverge or converge?