I think I found a bug at `polynom.sty` or my calculation is wrong

When I wrote  \polylongdiv[style=A]{x^6+x^5+x^4+x^3+x^2+x+1}{x^2+x+1}   I get that there is no reminder.... but the reminder is 1 if I'm right....  I hope is OK to post things like that here...  Thank you.


Is a nucleus a collection of quarks or a collection of neutrons and protons?

I do not much about particle physics. But people say that neutron and proton are composed of quarks, and in turn a nucleus is composed of neutrons and protons.   Therefore, the question is, is this hierarchy necessarily well defined? Could we view a nucleus as a collection of quarks, without the in-between neutrons or protons?


I can't connect to my friends Minecraft world

When ever my friend sends me an invite to her world I click "accept" and it tells me that it is syncing the pack to the server but then a message shows up that says cannot connect to world. But whenever I invite her to my worlds, she can connect.   We're using Minecraft PE on our phones. I have an Iphone 6s, and she has a Samsung S6 Edge.   Is there anything I could do to connect to her world?


I know that to indirectly ask:     What is your name?   I should say something like:     I don't know what your name is.   But what if the subject of question is longer than "your name"? Something like:     What is the benefit of closing school when there's a flu outbreak   It just doesn't sound so good to me to indirectly ask the above question when the distance between what and is gets too long:     I don't know what the benefit of closing schools when there's a flu outbreak is.   So, I am wondering if it is Ok to ask the indirect question like this:     I don't know what is the benefit of closing schools when there's a flu outbreak.


How do you turn lists with multiple characters into strings?

I'm quite new to programming and have looked on many answers to similar questions but they don't produce the desired result for me. Is it possible for any of you guys to help me? example code:  shapes = ["tri", "angle"]  groupedShapes = "triangle"


Help, my neural network is only recognising one particular category?

I am very new to Neural network and python and only know about very basic stuff. I tried to train the neural network with four categories of data however, when tested, the neural network tend to  get one specific or two specific categories completely right and the other three categories completely wrong. I end up getting performance 0.25 /0.5. I am pretty sure my coding for the neural network is correct because it worked when I tried handwritten digits. I am just wondering under what kind of circumstance will this happen and if it is my datasets causing the problem.


Distribution of samples from a uniform distribution

Let's say we are taking $n$ samples from a uniform distribution, that spans from $0$ to $1$. According to the central limit theorem, the mean of the $n$ samples will follow a normal distribution with the mean at $0.5$.  What I want to figure out is how to get the distribution of the mean of those $n$ samples, without resorting to a central limit theorem; for example the central limit theorem can't be used when $n=2$.  I fruitlessly tried to figure this out on my own. I started with $n=2$, thinking that if I can figure it for this $n$, I will be able to generalize to larger $n$. With sample mean being $S = \frac{X_{1} + X_{2}}{2}$, I realized that the hardest part is figuring out how to get the sum in $S$. So, instead of trying to figure out what distribution $S$ will follow, I decided to find the distribution of $Z=X_{1} + X_{2}$.  Next, I started thinking that Z could be imagined as a 3D space, with $x_{1}$ along one axis, $x_{2}$ along the other, and the value of the distribution being uniformly at $1$.  But what I need is a distribution of $Z$, which will be proportionate to the number of ways a certain $z$ can be attained from a sum of $x_1$ and $x_2$. There are less ways to get $x_1+x_2=0.01$, than there are for $x_1+x_2=1$.  This is were I got stumped.  PS. I'm looking for an answer generalizable to any $n$, not just $n=2$


What does it mean that $f(x)$ tends to a limit as $x$ tends to infinity?

I am not expecting to get an exact answer but some arguments will be appreciated. Thanks.


I get null pointer when I try to refer the actionView in drawer menu item. I need to refer view nl.dionsegijn.steppertouch.StepperTouch (defined in locaton_item_layout.xml) in my MainActivity.java file. I'm trying to run following code to do so. Now, the value returned for variable actionViewLayout is null. I'm not sure what I'm missing here. Please help.  Here's my MainActivity.java file:  ...     @Override     public boolean onCreateOptionsMenu(Menu menu) {         getMenuInflater().inflate(R.menu.activity_main_drawer, menu);         LinearLayout actionViewLayout = (LinearLayout) menu.findItem(R.id.item_with_action).getActionView();         stepperTouch = (StepperTouch) actionViewLayout.findViewById(R.id.stepperTouch);         return super.onCreateOptionsMenu(menu);     } ...   Here's activity_main_drawer.xml file:  ...     <item         android:id="@+id/item_with_action"         android:title="Show Results for"         app:actionLayout="@layout/location_item_layout">         app:showAsAction="always"     </item> ...   Here's location_item_layout.xml  <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:gravity="center_vertical"     android:id="@+id/actionviewlayout">     <TextView     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="Now+"     android:textSize="30sp"/>     <nl.dionsegijn.steppertouch.StepperTouch         android:id="@+id/stepperTouch"         android:layout_width="100dp"         android:layout_height="40dp">     </nl.dionsegijn.steppertouch.StepperTouch> </LinearLayout>


trying to install gdebi using this command:  sudo apt-get install aptitude synaptic gbedi-core   but I'm getting this error  Unable to locate package gbedi-core"


If $P(B\text{ }|\text{ }A)=1-\epsilon$ and $P(C\text{ }|\text{ }B)=1$ then $P(C\text{ }|\text{ }A)\geq 1-\epsilon$

If $$1=P(C\text{ }|\text{ }B)=\frac{P(C\cap B)}{P(B)}$$ then we know that $P(C\cap B)=P(B)$. If $P(B\text{ }|\text{ }A)=1-\epsilon$ for $\epsilon\geq 0$ then $$P(A)=\frac{P(B\cap A)}{1-\epsilon}$$Using this I found that $$P(C\text{ }|\text{ }B)=(1-\epsilon)\frac{P(C\cap A)}{P(B\cap A)}$$ Now I have to show that $$\frac{P(C\cap A)}{P(B\cap A)}\geq 1$$ I don't know how to use the first assumption to show this. I need hints. Thanks.


How many daedric missions are there that give you armor as a reward?

How many daedric missions are there that give you armor as a reward. I've only gone through a few of them and was wondering what the others were like and if they're worth possibly getting arrested.


Finding $\binom n0+\binom n3+\binom n6+\cdots $

How to get $$\binom n0 + \binom n3 + \binom n6 + \cdots$$  MY ATTEMPT    $$(1+\omega)^n = \binom n0 + \binom n1 \omega^1 + \binom n2 \omega^2 + \cdots$$  $$(1+\omega^2)^n = \binom n0 + \binom n1 \omega^2 + \binom n2 \omega^4 + \cdots $$  $$(1 + 1)^n = 2^n = \binom n0 + \binom n1 + \binom n2 + \cdots$$  $$(1+\omega)^n + (1+\omega^2)^n + (1 + 1)^n = 3 \left(\binom n0 + \binom n3 + \binom n6 + \cdots\right)$$  But how to solve LHS? I got the required equation in RHS


Can I install packages/drivers from older releases of Ubuntu?

Can I, running Ubuntu 16.04 LTS, install, say, a driver for Ubuntu 14.04?  I'm running Ubuntu on a Parrot Chromebook and the touchpad doesn't work and neither do the F1-12 keys when I'm not holding down function. I know I can fix the touchpad with  drivers but there isn't a  for Xenial. There's only devel, saucy, trusty, and utopic. I want to know if installing the driver from one of the other repos would work or if it would mess something up.  Also, I'm very new to Ubuntu and don't understand apt pinning so, if that is the best way to do this, then could someone break it down so it's very simple?


Is paying researchers royalties for publications a bad idea?

I would like to entertain a thought that a researcher could get paid for publishing a research article just as textbook/fiction authors do. The readers of articles already pay large sums of money (either directly, or indirectly through institute subscriptions) to read articles. Thus it would seem that they value the information contained in these articles and are willing to pay some amount of money for it (I understand that this practice is , but open access movement also wants publications to be free, which remains a different open debate. This question is under the premise that readers continue to pay for the publications). The two models of research that I'm aware of are the following:  Publicly funded: first receive grants, use the grant to fund research, and then as perhaps an obligation to terms of that grant make research available to the scientific community through journals for free. Commercial research labs: conduct research, gain technological advantage before competitors and capitalize on it or file patents.  In the first, those who put up funds (the government) get their return through some altruistic measures. In the second, those who put up funds (the company) get their return through using the research themselves. Neither are perfect systems (not all research may be good / profitable, not all good research may immediately do good / immediately turn a profit) but they do well enough to justify the spending. A third (also imperfect) model which I can think of is where the funds are recovered simply due to the popularity and the price tag of the research publication. The publication goes through the regular publication process, but when someone purchases the article (or the entire journal proceedings containing the article), researchers get paid their cut (and perhaps the peer-reviewers are paid an honorarium as well). Other researchers (academic/industrial) may be inclined to pay for this because they believe it would help them toward their respective goals (and perhaps get a refund if it doesn't live up to their expectations). As I already admitted, this model may be imperfect (bad research publication may end up turning a profit, good publications may take a decade after author's demise to start selling like hotcakes) just as the other two. And just like academic research doesn't suit all (people/projects), industrial research doesn't suit all (people/projects), this may be unsuitable for people due to lack of promise of a stable income, and for some projects because only short-sighted "best-selling" research might benefit from this model. I also see some structural challenges in current world which may prevent it from happening (current journals might be against this due to their own profit motive, academic/industrial research already incentivizes research to be popular through honors, distinctions, and bonuses) But is there something inherently wrong (morally, philosophically, or practically) with this idea of peer-reviewed publications opting to turn a profit just from the article's readers and benefactors while choosing not to rely on the other two models of funding, or is it only because of historical reasons (as detailed ) that this is not a viable model today? Has this already been tried, or discussed (just as open access has been discussed as an alternative to current system)?


Finding nearest raster cell value based on vector point?

I have two layers in ArcGIS: One is a vector point and the other is a raster layer. I want to append the value of the raster data grid to the vector point. The problem is the vector point is away from any existing raster grids with value, so the command "Sample" return no value for those vector point.    So my question is: How can I find the nearest raster cell given a vector point and extract the value from the cell?   Actually there are two things I need to do:   Identify the outliner within a ranger (Usually 1-2 cells away from my existing raster) Assign a value from the nearest raster to them, if they are in a range     Edited: I have about 3000 vector points and my problem is this:   I need to append the raster value based on locations to the vector points. I used the tool "Sample" and it works well for most of the points.  However, there is a situation like this   The right point can get the value from the raster ("Sample" works) but the left point cannot due to the alignment issues.  Raster to polygon is not working because I get error message that I cannot turn them into vector because they are out of the domain. Also I have points like this  Those upper points should not get any values because they are too far away from the raster.  I thought of someways to work around:    Step 1. Do the "sample" first    Step 2. Select the null value after the "sample" operations  Step 3. construct buffer zones (within 1 decimal degree) based on the null points    Step 4. use zonal statistics??? or other tools to loop through all the raster cells in the buffer, find the nearest one, extract its value and put it in the vector point.    I am stucked at step 4. I don't know which tool in ArcSDK I can use to achieve this function.   Or else...Do you have better idea to deal with that?    I have 20 raster layers like this and I would like to make it automatically (using model builder and arcobject).


Hi I tried to create a List Class. But in order to have a variation of list class, I am using template to store value in item variable.  Below is in "List.h"  template <class ListItemType>     class List     {         public:             .........             .........          private:             struct ListNode             {                 ListItemType item;                 ListNode    *next;              };          int size;          ListNode *head;         ListNode *find(int index) const;     };   Then how do I create the implementation of "ListNode *find(int index) const" function in List.cpp?  I tried to use  template <class ListItemType>     List<ListItemType>::ListNode *List<ListItemType>::find(int index) const     {         ........     }   But there is an error saying "error: need 'typename' before 'List::ListNode' because 'List' is a dependent scope"  Do you know how do I implement "ListNode *find(int index) const" in List.cpp?  This is my first time using template, I am a bit confuse. Thanks


Cant use getter because of non-static method

I have CarService.java class, List of car and getter inside. Like this: public class CarService { public Scanner scanner; private List<Car> cars; private List<Person> persons; private List<BankAccount> accounts;   public List<Car> getcarlist() {     return cars; } private void initalizeCars() {...}          Another Class Car.java. Here I want to use CarService.getcarlist().add(rest...)  The error is: Non-static method 'getcarlist()' cannot be referenced from a static context


I dualboot Ubuntu 14.04 with windows 8.1 pro.  In Ubuntu, Software & updates > Additional Drivers i don't know what one should i choose and now i'm using x.Org X server - Nouveau display driver from xserver-xorg-video-nouveau (open  source).   Can i change to Nvidia driver?


ANOVA terminology: "repeated measures" vs. "within/between subjects"

What does the term "repeated measures" mean in the context of ANOVA?  I understand the distinction between within-subjects test and between-subjects test, but am not familiar with the term "repeated" in the following context: "ANOVA: Repeated Measures - between factors" and "ANOVA: Repeated Measures - within factors" (in G-Power 3).


Is there a Stack Exchange site where website recommendations are on-topic?

I've tried asking for recommendations on DNS hosting/registrars only to have had the questions punted multiple times and result in responses telling me that it's on-topic elsewhere, that I've not phrased it correctly, that it is actually off-topic, etc. Is there any section of the Stack Exchange network where I can list a set of requirements for a DNS host/registrar and ask if any exist that fit those criteria and have it be on-topic?


Runaway argument? Paragraph ended before \Gin@iii was complete

I am having trouble with an image in Latex. I am getting the error message:  Runaway argument? width=8cm][height=8cm]{IMG_0390.PNG} \end {figure} ! Paragraph ended before \Gin@iii was complete. <to be read again>                    \par   I have got the graphicx package on the file, my code for the image is;  \begin{figure} \includegraphics[width=8cm][height=8cm]{IMG_0390.PNG} \end{figure}   There are no other errors in the document and no errors when I cut this part out  The full error message with the display math is:   ! Missing $ inserted <inserted text>                 $ l.63 ...aphics[width=8cm,height=8cm]{IMG_0390.PNG}


What can I do If my answer is not accepted even if every sign indicates it is good?

First of all I have no problem when my answer is not accepted, I can always be wrong, but there are cases when I must think I really answered correctly and noone else answered. I put in lot of details, received upvotes, but still the answer is not accepted. In these cases is there any polite way to remember the question owner to respond (either to accept or ask further)


Why isn't differentia just quality in Aristotle?

I will make it clear beforehand, that the little bit I know about Aristotle is from Aquinas (secondary material) and Deleuze (Difference and Repetition), so there may be some misunderstandings on my part. Anyway, the reason why Aristotle cannot say that Being is the uppermost genera (above all the categories) is because of the difference. Basically an animal can be rational or winged - but substance is only the animal, man or a bat. However, there's difference (rational or winged) which is still a Being but doesn't fall into the categories. However, isn't rational or winged just Quality?


My file Threadout.txt contains like Thread 1/1/25/100 val1=$(grep 'Thread' Threadout.txt | awk -F"/" '{print $1}')   val2=$(grep 'Thread' Threadout.txt | awk -F"/" '{print $2}')     val3=$(grep 'Thread' Threadout.txt | awk -F"/" '{print $3}')   val4=$(grep 'Thread' Threadout.txt | awk -F"/" '{print $4}')  for((i=1;i<5;i++))   do     val[i]=$(grep 'Thread' Threadout.txt | awk -F"/" '{print $[i]}')     echo $val[i]  done  I have tried this array but not giving the correct result like 1 1 25 100 values. Any error?


Extend a LUKS encrypted partition to fill disk

I recently upgraded my disk from a 128GB SSD to 512GB SSD.  The / partition is encrypted with LUKS.  I'm looking for help extending the partition to use all the free space on the new disk.  I've already dd'd the old drive onto the new one:  [root@localhost ~]# fdisk -l /dev/sda Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x00009f33  Device     Boot   Start       End   Sectors   Size Id Type /dev/sda1  *       2048   1026047   1024000   500M 83 Linux /dev/sda2       1026048 250064895 249038848 118.8G 83 Linux   There's about 380GB of unused space after sda2.  More relevant info:  [root@localhost ~]# vgs   VG             #PV #LV #SN Attr   VSize   VFree   fedora_chocbar   1   3   0 wz--n- 118.75g 4.00m  [root@localhost ~]# lvs   LV   VG             Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert   home fedora_chocbar -wi-a----- 85.55g                                                       root fedora_chocbar -wi-a----- 29.30g                                                       swap fedora_chocbar -wi-a-----  3.89g  [root@localhost ~]# pvs   PV                    VG             Fmt  Attr PSize   PFree   /dev/mapper/encrypted fedora_chocbar lvm2 a--  118.75g 4.00m   There seems to be a lot of info regarding how to do this, but very little explanation. I appreciate any help on this.


How to make the light from the flashlight in Blender Cycles? The Emission node doesn’t give volumetric light:  I'll use it in animation, example: .


Viewing Ubuntu command line in the web browser

I have an Ubuntu server running Netatalk and flex media server. I was just thinking that if I need to access the Ubuntu terminal from a machine like Windows is there a way I can simply enter my server's ip address and see my server's terminal. Both the machines are on the same network. ssh is one way. But can I see my server's terminal on a web browser or is it is impossible?


Blueman-manager can't detect devices Ubuntu 16.04 LTS

I have installed blueman and all dependencies, but in the blueman-manager app I can not find any device, any idea?  System Information       Manufacturer: Sony Corporation   Product Name: SVF1521C4E   Version: C10J0PTJ   Serial Number: 54610130-0001219   UUID: EC5205E0-53E9-11E2-B221-78843C3BB4B0   Wake-up Type: Power Switch   SKU Number: 54610130   Family: VAIO     lspci -nnk | grep -iA3 net; lsusb; dmesg | egrep -i 'blue|firm'; hciconfig -a     07:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)   Subsystem: Foxconn International, Inc. BCM43142 802.11b/g/n [105b:e071]   Kernel driver in use: wl   Kernel modules: wl   0e:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.   >RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)   Subsystem: Sony Corporation RTL8111/8168/8411 PCI Express Gigabit >Ethernet   Controller [104d:90b8]   Kernel driver in use: r8169   Kernel modules: r8169   Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub   Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Bus 001 Device 004: ID 5986:0543 Acer, Inc   Bus 001 Device 003: ID 0489:e062 Foxconn / Hon Hai   Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub   Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   [    1.668163] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS   [   11.244719] Bluetooth: Core ver 2.22   [   11.244734] Bluetooth: HCI device and connection manager initialized   [   11.244737] Bluetooth: HCI socket layer initialized   [   11.244739] Bluetooth: L2CAP socket layer initialized   [   11.244743] Bluetooth: SCO socket layer initialized   [   11.601936] Bluetooth: hci0: BCM: chip id 70   [   11.617939] Bluetooth: hci0: BCM43142A   [   11.617941] Bluetooth: hci0: BCM (001.001.011) build 0000   [   11.677603] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed   >with error -2   [   11.677612] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found   [   13.683789] Bluetooth: hci0 command 0x1003 tx timeout   [   23.065495] Bluetooth: BNEP (Ethernet Emulation) ver 1.3   [   23.065497] Bluetooth: BNEP filters: protocol multicast   [   23.065499] Bluetooth: BNEP socket layer initialized   [   90.059428] Bluetooth: RFCOMM TTY layer initialized   [   90.059436] Bluetooth: RFCOMM socket layer initialized   [   90.059444] Bluetooth: RFCOMM ver 1.11   hci0:  Type: BR/EDR  Bus: USB   BD Address: 0C:84:DC:F5:61:00  ACL MTU: 1021:8  SCO MTU: 64:1   UP RUNNING   RX bytes:986 acl:0 sco:0 events:54 errors:0   TX bytes:3653 acl:0 sco:0 commands:54 errors:0   Features: 0xff 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87   Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3   Link policy: RSWITCH HOLD SNIFF   Link mode: SLAVE ACCEPT   Name: 'ricciolino_bluetooth'   Class: 0x10010c   Service Classes: Object Transfer   Device Class: Computer, Laptop   HCI Version: 4.0 (0x6)  Revision: 0x0   LMP Version: 4.0 (0x6)  Subversion: 0x210b   Manufacturer: Broadcom Corporation (15)     hcitool dev     Devices:             hci0  0C:84:DC:F5:61:00      rfkill list     0: sony-wifi: Wireless LAN   Soft blocked: no   Hard blocked: no   1: sony-bluetooth: Bluetooth   Soft blocked: no   Hard blocked: no   2: phy0: Wireless LAN   Soft blocked: no   Hard blocked: no   3: brcmwl-0: Wireless LAN   Soft blocked: no   Hard blocked: no   4: hci0: Bluetooth   Soft blocked: no   Hard blocked: no     resolved following  guide, the problem was the bcm43142 driver


How could I write my name, for example, to look like the \LaTeX logo?

How could I write my name, for example, in a \LaTeX style? It is just interesting, as in Google all other things pop up when I try to search for an answer!


What’s the difference between esc_html, esc_attr, esc_html_e, and so on?

I got feedback from security guy and he pointed out that I should use proper escaping of user input in my code. So I've done some research and found escaping functions.  What’s the difference between them? When should I use esc_html() and when esc_attr()? And when should I use these functions with _e() at the end?


I use autocomplete a lot in the terminal, like for example for cp command. But sometimes, when I am putting in the directory for the cp command and I press Tab, the list of files is so long that Ubuntu spits out part of the list and then waits for key input before sequentially listing the rest of the files, one by one. This feature is near useless because you never know how many files are left, and almost always end up with an error.   Is there some way to leave this list and go back to my cp command, or do I have to press Ctrl+C and start typing in my cp command again?


The integral $\int_0^\infty \dfrac{x \sin(x)}{x^2+1} dx$

How to calculate: $$\int_0^\infty \frac{x \sin(x)}{x^2+1} dx$$ I thought I should find the integral on the path  $[-R,R] \cup \{Re^{i \phi} : 0 \leq \phi \leq \pi\}$.  I can easily take the residue in $i$ $$  Res_{z=i} \frac{x \sin(x)}{x^2+1}  \quad = \quad \frac{i (e^{ii}-e^{-ii})}{2i}  \quad = \quad \frac{i(\frac1e-e)}{2i} \quad = \quad \frac1{2e}-\frac e2 $$ I know that the integral on $[-R,R]$ will get nearby the real value of $ \frac12\int_0^\infty \frac{x \sin(x)}{x^2+1} dx$. That means that I'm done if I show that the integral on the other part of the path will be small, here is an attempt to do so:  $$ \left|\frac{x \sin(x)}{x^2+1} \right|  \quad \leq \quad  R \cdot \frac{|\sin x|}{R^2-1} $$ I could rewrite $\sin x$ but it becomes nasty. Can you help me with this?


I'm currently using the below script to timestamp when an edit is made to column 7 on a sheet named "Sheet 1".  function onEdit(e) {    if ([7].indexOf(e.range.columnStart) != -1) {    e.range.offset(0, 7).setValue(new Date()).setNumberFormat("dd.MM.yyyy at HH:mm");    }   }     I have a second sheet "Sheet 2" which I need to run the same script on but against column 5.  function onEdit(e) {    if ([5].indexOf(e.range.columnStart) != -1) {    e.range.offset(0, 7).setValue(new Date()).setNumberFormat("dd.MM.yyyy at HH:mm");    }   }     I've tried .getSheetByName("Sheet1") but just cant seem to get it working correctly.


I need to create a title page of the given format                              **(Title of the Thesis)**                                    Thesis              Submited in partial fulfilment of the requirements of                             BITS C421T/42T Thesis                                      By                                    (Author)                                    ID No. ( )                           Under the supervision of                            ----------------------                      (Name and Designation of Supervisor)                                Instiute emblem          BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI (RAJASTHAN)                                    (Date)   I am new to latex, and am miserably failing to do so. I tried the center the lines by using the command \center, but even that is not working. How should I go about creating said titlepage? Also, how do I embed an image in the title page?


Let $G$ be a finite group and $Z(G):=\{x\in G : gx=xg \ \ \forall g\in G\}.$ Prove that $[G:Z(G)]$ is not a prime number. I think that I should use the Lagrange Theorem, i.e., If $Z(G)$ is a subgroup of a group $G$, $$|G|=[G:Z(G)]|Z(G)|$$ So that $\dfrac{|G|}{|Z(G)|}$ cannot be a prime number. Can I get some help?


irrationality of $\sqrt{2}$ with ring theory

I consider the ideal $I \subseteq \Bbb Z$ with $I=\{n \in \Bbb Z \mid n \times \sqrt{2} \in \Bbb Z\}$. I do not manage to prove that this ideal is trivial. Can you help me ? Thanks.


Why isn't there a Business Intelligence site?

Reports are back in the market! Business Intelligence is gaining market traction with products from Microsoft SSIS/SSRS, Oracle OBIEE, Microstrategy to QlikView. Having a dedicated Q&A site for it may even get industry giants' or expert technical advisors attention/support to BI community. E.g.  has been an active supporter to SO Java/C# community and SO as a whole reckon. There's one for Database Admins. What about BI? I checked on the :  Project Management Freelacing Quantitative Finance Bitcoin  Why isn't there a BI dedicated SO site? Is it too costly? or  How does SO decide which "area" of sites to be released? Or being a dedicated site perhaps increases the risk of losing attention to a beta site?


I need to check whether a string matches the following logical pattern:  string, string, string  I NEED TO USE A REGEXP and I cannot use functions.  For example the following string should match:  hello,hola, ciao,bye -> [hello,hola,ciao,bye]   The following shouldn't match:  hello -> []   I'm using this regexp right now but it's working fine only for the first string. I'm trying to exclude the single string without a comma in the second example.  ([^,]+)   The following regexp doesn't work neither: isn't it supposed to match every group and then the end of the line BUT before the end of the line a comma followed by a string must be present?  ([^,]+)(?<=,)$   Any ideas?


Please tell me how to uninstall my laptop is falling apart. I tried using an iso but it wouldn't mount and using the boot menu at startup won't work either.


Ring homomorphism from $\mathbb Z$ to $\mathbb Z$ is always identity or $0$

I must assume that there exists f such that:  $$f(x+y) = f(x)+f(y)\\f(x\cdot y) = f(x)\cdot f(y)$$ One thing I managed to do was:  $$f(2+2) = f(2) + f(2) = f(2\cdot 2) = f(2)\cdot f(2) \implies \\f(2)+f(2) = f(2)\cdot f(2)\implies \\2f(2) = f^2(2) \implies f^2(2)-2f(2)=0 \implies f(2)(f(2)-2) = 0 \implies\\ f(2) = 0 \text{ or } f(2) = 2$$  but how to extend this argument to all the integers? That is, how to force $f(3) = 3$ and so on?


How to switch keyboard layouts in Xubuntu?

In Unity one can easily switch between keyboard layouts using the keyboard tray icon. There is also the Keyboard menu where one can add/remove/set keyboard layouts.  I can not find any of this functionality in Xubuntu. How can the keyboard layout be switched in this desktop environment?  Thanks.  Update I: details on the xubuntu-desktop package this question refers to:  $ sudo apt-cache show xubuntu-desktop Package: xubuntu-desktop Priority: optional Section: universe/metapackages Installed-Size: 43 Maintainer: Xubuntu Developers <xubuntu-devel@lists.ubuntu.com> Architecture: amd64 Source: xubuntu-meta Version: 2.152 Depends: [...] Size: 3790 MD5sum: 26efaa0f16c70a82d216165ba2af4fd4 SHA1: 49c283439314e48d46668e07d65c4a261e9b556a SHA256: 36e51760324e081988a068aa29de4968a7d050c18bad4128967ffd656c570f3f Description-en: Xubuntu desktop system  This package depends on all of the packages in the Xubuntu desktop system  .  It is safe to remove this package if some of the desktop system packages are  not desired. Description-md5: 25eeb522d88fba23a532953cbbf1638e Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu Task: xubuntu-desktop   Update II: The  is not working with this latest version of Xfce. The xfce4-xkb-plugin package is apparently installed together with xubuntu-desktop.    Update III: This is no longer an issue on Xubuntu 14.04, a nice tray icon in this latest version allows the user to easily switch between keyboard layouts.


Can I mill my opponent into defeat with Mindcrank and Duskmantle Guildmage?

Okay the scenario I'm thinking of is as follows:   I control a ,  and 3 untapped lands (2 swamps, 1 Island to be perdantic). In my opponents turn he casts a burn spell to kill my duskmantle.   I activate his first ability in response.   The way I am hoping the following interactions will go is:   Duskmantles ability will hit the stack at the top and resolve The burn spell resolves dealing its damage to Duskmantle The burn spell card hits the graveyard and triggers the infinite loop for duskmantle and mindcrank killing my opponent Duskmantle perishes   Is this the way that the stack would pan out? Do I win in this situation regardless of the stack being correct or not above? (I am not fully familiar with how the stack really works in magic) You can see the cards from my deck .


I'm writing a manual for a new piece of software, and I would like to be as clear as possible and include entire derivations for the governing equations. However, I understand that most users don't need that level of detail.   Does Latex have the capability for clickable icons to expand/collapse sections of the document in the PDF? I want the user to be able to click an icon to expand the text to show a new piece of the document (to show the derivation of a governing equation) without having the manual bogged down by all of these derivations.   Something like a "Show more" icon would be good, that when clicked shows the derivation.  Thanks!


Can Conjuration spells that conjure permanent objects penetrate Antimagic barriers?

I've seen some stuff in the 3.5 community that suggests if a spell is of the Conjuration type, has an instantaneous duration, and is of the Creation sub-school that the items created are not vulnerable to the effects of an .  I've read a few things that could support either side of the argument, but the most pervasive seems to be that the objects created by the spells in question are no longer considered magical, but rather are permanent objects, Thus the question:  Are Conjuration (Creation) spells with an instantaneous duration that create objects able to penetrate the effects of an Anti-magic field?  Addendum: And for Bonus points, if you're using the Psionics/Magic Transparency rules, does this also happen to apply to Metacreativity (Creation) Powers as well?


What are the major differences in style and system between D&D 5e and Pathfinder 2e?

I know this is abit of a "wide net" question. I am currently switching over to 5e from years of activity (after 4e was released) from 3.5e..  The mechanics of 5e seem secondary while the role-playing seems primary from my experience in about 10 AL games.  I've spent the last 13 years or so away from TT-RPG  I desire highly mechanical play with other players that are also "rules to their letter experts," not self-styled "RP-actors".   Is Pathfinder 2e the D&D akin system, currently is popular enough to find players, that fits my wants?  I have played D&D:Basic, Advanced, 2e, 3.5e, 4e (twice), 5e (about 10 times)  I have not played any version of Pathfinder


How is a sample from a Bernoulli distribution different from a binomial distribution?

The binomial distribution can be interpreted as $n$ independent and identically Bernoulli "trials". If $X_1, X_2, \dots, X_n$ is a sample from a Bernoulli distribution, how is that different from a binomial distribution?


If the intersection of all non-zero ideals of an integral domain R is non-zero, show that R is a field.

Let $R$ be a commutative ring with unity.  Call $R$ a *-ring if the intersection of all non-zero ideals of $R$ is non-zero.  Note that we consider $R$ itself an ideal.  If $R$ is an integral domain that is a *-ring, show that $R$ is a field.  My idea was to show that a maximal ideal $I$ is the zero ideal, but I'm not really getting anywhere.  Doesn't seem like too hard of a problem, so any hints would be amazing.


I am trying to understand this code, but can't understand why char[] buff2 is changing. I thought that variables passed to a function cannot be changed by that function??  the code:  public class Testing {     public static void permGen(char[] s, int i, int k, char[] buff) {         if (i < k) {             for(int j = 0; j < s.length; j++) {                 buff[i] = s[j];                 permGen(s, i + 1, k, buff);             }         } else {             System.out.println(String.valueOf(buff));          }     }      public static void main(String[] args) {         char[] database = {'a', 'b', 'c'};         char[] buff2 = new char[database.length];         int k = database.length;         for(int i = 1 ; i <= k; i++) {             permGen(database, 0, i, buff2);         }     } }


As far as I understand,  stacks when multiple people pull enemies (it stacks additively in that if 2 people each add 30%, you get 60% damage instead of 1.3*1.3 = 69% damage). In ,  has been redesigned so to "Enemies take 25% increased damage from all sources for 6 seconds".  Does this stack with multiple party members, like Strongarm does? Does it stack additively in the same pool as Strongarm and other 'enemies take more damage' effects?


Prove there exist a prime $p$ between $n^3$ and $(n+1)^3-1$

I'm reading Elementary Number Theory by Underwood Dudley, in Section 22 "Formulas for Primes" he mentioned a theorem without providing proof: there is an integer A such that if n > A, then there is a prime p such that $$n^3<p<(n+1)^3-1$$ Is there a name for such theorem and how to prove it in an elementary way?


Do you use the word "please" on your website?

We are developing a new product/website and one of our product managers said we should never use the word "please" either on our website or in our transactional emails.   Personally, I disagree. We are trying to make our site casual and friendly and I think using the word "please" is just polite.  What do you think?


Calculating covariance of a linear combination of random variables, negative random variable?

I have three random variables $X_1, X_2, X_3$ that are normally distributed each with different means $\mu_1, \mu_2, \mu_3$ and share the same variance $\sigma^2$. I want to find the covariance of $(X_1-\bar{X}, \bar{X})$, where $\bar{X}$ is the average of the three random variables.  I did the following , $Cov(X_1-\bar{X}, \bar{X})= Cov(X_1, \bar{X})+Cov(-\bar{X}, \bar{X})$. Now I am unsure if I can apply the formula $Cov(X_1, \bar{X})=E[X_1\bar{X}]-E[X_1]E[\bar{X}]$ because $\bar{X}$ and $X_1$ are not independent? Also I am not sure how to handle $Cov(-\bar{X}, \bar{X})$, because of the negative sign inside. Is it still $Var(\bar{X})$?


Proving an identity relating to the complex modulus: $z\bar{a}+\bar{z}a \leq 2|a||z|$

Show that $z\bar{a}+\bar{z}a \leq 2|a||z|$  I was able to check this using some examples which is not ideal for a mathematician way of proving a problem/case/theorem. I couldn't generalize it (prove it). I will be glad if I can be given the hint/proof for this problem. Thank you.


How to modify a taxonomy that's already registered

Today I needed to change the arguments on a custom taxonomy that was already registered by a . Specifically I wanted to set the show_admin_column argument to true and change the rewrite slug so that it wasn't just the taxonomy slug. In this case, it was a "People" post type with a "People Category" custom taxonomy.  I was surprised this wasn't asked before, so here's a question and answer.


Is it possible to get some help on this. I'm trying to help my friend solve this but it had been over 14 years since I did this type. All I have to work with is this.   Sorry if it is vague. Any help would be greatly appreciated!  Cosecant = cscx=1/sinx.


How to correctly delete all the packages in the pacman cache and why I shouldn't?

I struggle from insufficient space on my SSD all the time. Every time a major upgrade including a serious number of packages arrives I have to seek what can I delete/move to free up some space so the upgrade could succeed. pacman -Sc deletes old packages from the pacman cache but seemingly leaves non-old packages in place. My \var\cache\pacman is 5.1 GiB now and this is a significant number for me.  Are these files needed for anything useful but to install the apps? Given the apps are already installed and work just fine can I delete the packages? If it's Ok to delete them, what is the correct way I should use instead of just deleting the files manually?


Where should I ask questions about using software? For example:  How do I convert a .gif picture into a .png picture using XYZ software? How do you change the window; workspace layout in XYZ software? How do you import a document from ABC software into XYZ software? Where is the "Save" button in XYZ software?   I know I can't use , as it's not relating to programming, and I can't use  as it is not relating to the installation of software or anything to do with hardware.  To be specific, I'm looking for help on using , both in the departments of making scripts and basic usage/techniques.    Yes, I know I can ask script-related questions on , but where do I ask questions about usage of the software?


I am writing an iPhone application, and need to save the state of my application (5K or so).  My main worry is data persisting across upgrades. Some of the applications I use clearly got this wrong, and I would prefer not to!


Ubuntu stuck on some page after update and restart

This is the screen where everything freezes and the page lags a lot when I try to type something.


How to stop power light on PC from blinking when in sleep mode?

I regularly put my PC into sleep mode. Unfortunately the power button LED blinks every second and it's extremely bright blue which makes sleeping in the same room somewhat challenging. I have resorted to sticking gaffer tape on top but then it becomes difficult to press the button and it leaves a nasty sticky residue on the case/button. Is there a "soft" way to disable this blinking?  This system has a ASRock X79 Extreme6 motherboard and is running Windows 7 64-bit.


How to add function names to listings package

I have some MATLAB code in my tex file, which I am highlighting with the listings package. However, there are some functions, such as "vision.CascadeObjectDetector", "imcomplement", "bwboundaries", "imcrop" that the listings package is not highlighting as functions. Is there any way I can add these functions manually?  Thank you


I need to convert HTML documents into valid XML, preferably XHTML. What's the best way to do this? Does anybody know a toolkit/library/sample/...whatever that helps me to get that task done?  To be a bit more clear here, my application has to do the conversion automatically at runtime. I don't look for a tool that helps me to move some pages to XHTML manually.


I am trying to catch unions and structures with regular expressions. The full match will catch the whole structure and group1 will catch the members.  struct Name {   uint16 member1;   uint16 member2; };  union Name {   uint16 member1;   uint16 member2; };   When trying to find a specific union it works as expected with:  r"union Name[\s\S]*{\s*([\s\S]*)};"    but when trying to find a specific struct I use the regular expression:  r"struct Name[\s\S]*{\s*([\s\S]*)};"   which is identical except that union is replaced by struct. The regular expression for catching the struct just continues matching all the lines following the structure and I do not understand why, because it does not for the union case and I do not understand why?


Unable to edit my profile on Stack Overflow

Whenever I try to edit something on my profile the changes are denied and this message shows:     Oops! There was a problem updating your profile: This email address is already registered. If it belongs to you, log in above or visit our account recovery page to get access to this account.   I'm trying to edit my profile so I'm already logged in. I don't know how to fix it to be able to update my profile information correctly.


Why did Sirius Black's family live among Muggles?  The Black family were generational purebloods -- one of the "official" pureblood families -- and canon has demonstrated that they were vehemently anti-Muggle, aside from Sirius (One might argue Regulus as well, after his change of heart.). Yet they lived among Muggles, seemingly by choice. It's certainly possible number twelve Grimmauld Place was family property received by inheritance, but the Black family surely predates the construction of some row houses in a shabby part of London. I would think?  Why did the Black family choose to remain there? Why didn't they move?  Is there anything in canon that addresses this? Does Sirius explain why his family's home is in a Muggle neighborhood at any point in the series?     They were standing outside number eleven; he looked to the left and saw number ten; to the right, however, was number thirteen.   ‘But where’s –?’   ‘Think about what you’ve just memorised,’ said Lupin quietly. Harry thought, and no sooner had he reached the part about number twelve, Grimmauld Place, than a battered door emerged out of nowhere between numbers eleven and thirteen, followed swiftly by dirty walls and grimy windows. It was as though an extra house had inflated, pushing those on either side out of its way. Harry gaped at it. The stereo in number eleven thudded on. Apparently the Muggles inside hadn’t felt anything.   Order of the Phoenix - page 58 - Bloomsbury - chapter 4, Number Twelve Grimmauld Place


Why does my code change multiple list elements when I'm only trying to change one?

I'm creating an array with nested arrays of arrays in which which all the elements are 1, such as:  [  [[1, 1], [1, 1]],    [[1, 1], [1, 1]]  ]   When I run the following code I expect to have changed only a single element to 555, leaving all others as 1.  mesh = [[[1] * 2] * 2] * 2 mesh[0][0][1] = 555 print(mesh)  # same as above but trying to access a different element mesh = [[[1] * 2] * 2] * 2 mesh[1][1][1] = 555 print(mesh)   So I want:  [[[1, 555], [1, 1]], [[1, 1], [1, 1]]] [[[1, 1], [1, 1]], [[1, 1], [1, 555]]]   Instead, I'm getting the following:  [[[1, 555], [1, 555]], [[1, 555], [1, 555]]] [[[1, 555], [1, 555]], [[1, 555], [1, 555]]]   So, not only does it not do what I expect, different code seems to produce the same output. Please explain why this is happening and, if possible, what code I should use instead. Thank you.


How to add and refresh a group of ImageViews in javaFX

I need to loop through an ArrayList of objects and add their ImageViews to my main Group which is root in the code below. This is what I came up so far but still not working. Any idea?  for (int i = 0; i < myList.size(); i++) {     ImageView ii =myList.get(i).imageView;     root.getChildren().remove(bGroup);     Group bGroup = new Group();     bGroup.getChildren().add(ii); //NullPointerException     root.getChildren().add(bGroup); }


How can I assign the output of a command to a shell variable?

I want to assign the result of an expression (i.e., the output from a command) to a variable and then manipulate it – for example, concatenate it with a string, then echo it.  Here's what I've got: #!/bin/bash cd ~/Desktop; thefile= ls -t -U | grep -m 1 "Screen Shot"; echo "Most recent screenshot is: "$thefile;  But that outputs: Screen Shot 2011-07-03 at 1.55.43 PM.png Most recent screenshot is:   So, it looks like that isn't getting assigned to $thefile, and is being printed as it's executed. What am I missing?


How to assemble function name in javascript?

this is an example function:  function processFanGrowth() {     console.log('fanGrowth'); }   and an object "data" which has a property name "FanGrowth"  for(var property in data) {       // here i'm trying to generate the function name.       funcName = "process" + property;       funcName(); }   i'm getting this error: Uncaught TypeError: string is not a function


I have two output chains like this:  chain OUT {     type filter hook output priority 0; policy accept;     ct state established,related accept     oif "lo" counter packets 0 bytes 0 accept     ip protocol icmp counter packets 3 bytes 252 drop     counter packets 0 bytes 0 log drop }  chain ping {     type filter hook output priority -10; policy accept;     ct state established,related accept     ip protocol icmp counter packets 3 bytes 252 accept }   ping chain has lower priority of -10 so packets first traverse through this chain and are accepted. Why those accepted icmp packets are next dropped in OUT chain ? I want temporarily enable and disable rule like in this example. How to achieve this ?    nftables: 0.9.2-2 kernel: 5.3.9-3


Automorphism group of $\mathbb{P}^{1}_{\mathbb{C}}$

Show that every automorphism of $\mathbb{P}^{1}_{\mathbb{C}}$ is given by a linear automorphism of $\mathbb{C}^{2}$.  Equivalently: Show that $\operatorname{Aut}(\mathbb{P}^{1}_{\mathbb{C}})=\operatorname{PGL}_{2}(\mathbb{C})$.  I have no idea where even to start, and I am feeling a little bit ashamed about that. I know this is not true for $\mathbb{P}^{n}_{\mathbb{C}}$ if $n\geq 2$. Can somebody please give me a hint?


It says I have to have at least 42 GB or more but as you can see I have 55 GB available. Tried looking online for solutions but all they say is time machine but I have never used this and the "Backup Automatically" is not selected.


Probability of X greater than Y with different types of random variable

My problem is the following: I have 2 random variables $X \sim Gamma(2,\mu_2)$ and $Y \sim Exp(\mu_1)$. I have to compute $P(X > Y)$. How can I do that ? Thank you


Young, one out of two of the only girls and British

Okay, so I'm 13/14, a dnd nerd, a beginner, in a dnd club and has seen enough of the Internet to be pretty f---ed up. I live in Cambridge, England and I really wanna find a good dnd group. I've never played before but I am starting a bi weekly campaign in an all boys (except me and a best friend of mine) warhammer and dnd club. It's warhammer one week and dnd the next and so on. I have a backstory, drawing and stats for my elven character but I want to find a safe place that I could maybe join. Packed schedule but room can be made. I am open to dirty jokes, swear words and all of that but I live with my parents so yeah. Sorry if this sounds like an ad but I am genuinely looking for some nerds to chill with and play some trpg!


How to get wine to launch. exe files from a click

The question's simple enough I suppose. To launch a .exe file with wine from just double-clicking the .exe file.   On Ubuntu 17.10


Oneboxing Wikipedia section should quote the relevant part of the page

I was trying to link part of an article on wikipedia - specifically  to refer to a specific section of the wikipedia entry. It quotes start of the article, as opposed to the part of the article I was trying to link to - it was a little confusing.    The onebox for     The section that the link actually points to.  Note that the link still works - it takes you to the correct section. But, the onebox implies it will go to the top-level article instead, which is confusing.   So... could we get oneboxes to be aware of sections in pages - they do seem to use a standard notation.


Brackets in if condition: why am I getting syntax errors without whitespace?

I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month="01"] && [$day="01"]; then         date="$last_month/$yes_day/$last_year"         fulldate="$last_month/$yes_day/$last_year" else         if [$month="01"] && [$day="02"]; then                 date="$last_month/$yes_day/$last_year"                 fulldate="$last_month/$yes_day/$last_year"         else                 if [ $day = "01" ]; then                         date="$last_month/$yes_day/$year"                         fulldate="$year$last_month$yes_day"                 else                         if [ $day = "02" ]; then                                 date="$last_month/$yes_day/$year"                                 fulldate="$year$last_month$yes_day"                         else                                 date="$month/$yes_day/$year"                                 fulldate="$year$month$yes_day"                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found


How to stop the attack with the sleep command

My website was attacked yesterday, SQL injection attack thanks to the parameter left open I made the necessary editing in php codes. sql code of the attack (SELECT 7105 FROM (SELECT(SLEEP(32-(IF(ORD(MID((SELECT HEX(IFNULL(CAST(table_name AS NCHAR),0x20)) FROM INFORMATION_SCHEMA.TABLES WHERE table_schema=0x7472616b75735f647974726f726774657374 LIMIT 29,1),10,1))>49,0,32)))))FfpS)  I regularly review access and mysql logs. There were no new attacks on the url, but the slowness of my web site still continues. I monitor the processes with the show full processlist command, sometimes the sleep command comes into play. Could a timer have been created?


I have a pretty active discussion on SO right now, about giving an answer, that could potentially harm the questioner. The question is  and discussion is in comments to .   In short, the OP asks for a way to implement a really dangerous thing. I've provided an answer to the question with a lot of warnings, while  told me that this is a very bad idea, and it is better to use prepared statements, and so on. He is absolutely right; I'm among those who upvoted his answer, but the question remains.   So, I would like to hear community's opinion on that topic. Should we protect others from shooting in their legs, or let them have responsibility to do it, if they want?  Update: One of my university teachers created  site (long ago). The idea of that site is to allow people training their SQL skills. I won't tell much about the site, you can register and check it out yourself (it is available in english), but the whole idea is just the same: execute SQL provided by the user. Of course it is fltered, checked that it is safe, placed in a sandbox, etc. But the concept is just the same. It's rather popular resource, it is on third place in  and have large and growing community. I hope this update will stimulate further discussion.


How best to implement atomic update on a file inside a bash script

I have a script which has multiple functions, running in parallel which checks a file and updates it frequently. I dont want two functions to update the file at the same time and create an issue. So what will be the best way to have an atomic update. I have the following so far.  counter(){     a=$1     while true;do         if [ ! -e /tmp/counter.lock ];then             touch /tmp/counter.lock             curr_count=`cat /tmp/count.txt`             n_count=`echo "${curr_count}  + $a" | bc`             echo ${n_count} > /tmp/count.txt             rm -fv /tmp/counter.lock             break         fi         sleep 1      done }    I am not sure how to convert my function to use flock, since it uses file descriptor and it might create issue if I call this function multiple time(or I think so.)


Someone's telling me that he will send me 1000 dollars and I have to send half back

There's a guy I met randomly and he said he would give me 1000 dollars to my paypal (he also asked if it was in the U.S. and verified to which I said yes) but I would have to send half back to him. I asked him why didn't he just send me half so I didn't have to do the work and he said because "He had to take it out all at once." Anyway, long story short he asked for my address and phone number to "make sure I won't run off with [his] money". I didn't give it to him yet because he said we would do that all tomorrow. He told me to install the application Telegram and add him on there so I did. And basically that's where I'm at right now. I am guessing this is a scam and I'd like to have fun with him. Or would it be potentially dangerous for me? For example, would I get into any legal trouble? Could he hack my paypal? Should I report him? If so, to whom?


Do C++ compilers generally "optimize" malloc and free to new and delete?

If I'm writing 100% ANSI C but compiling in .cpp files will the compiler automatically "optimize" malloc and free calls to new and delete? Does that even make sense given their differences? I didn't think this is how it worked but a friend of mine said this is what happens.


How to make keyboard shortcut for wine application?

I know that launchers can be made, but is the same true for keyboard shortcuts? I've tried myself, with just a copy and paste of the directory to no avail. I apologize, but I'm new to linux, can someone please chime in here?   Edit: Not duplicate because xbindkeys does not work on my PC. Had to use both/the stock keyboard shortcuts setup.


Why does a bicycle (without any support of stand) falls down being at rest, but not under motion?

I have always seen a bicycle not standing without any support, it either falls down to the right or to the left, may even to some other direction. But,the same two wheeler when under motion,moves balanced, without falling to either side,even it not falls, when the two wheeler is bent to left or right by the driver, like the one which we could see in the bike races. So, what makes the bicycle at rest to fall? And what makes it not to fall when under motion?    MY VIEW ON THE CONCEPT If the bicycle is at rest, it will be acted upon by downward force ($mg$,where $m$ is mass and $g$ is acceleration due to gravity). If it is affected just by this force, it should have stood without falling, because there is no force which pulls it  to either side to make it fall. I think, it might fall, either due to the direction of wind, or due to the nonuniform distribution of mass, or due to other external forces. If we consider the same bicycle to be under motion, I don't know what makes it not to fall,even affected by nonuniform distribution of force,or direction of wind. I think there might be something related with , ,and forces like  and . (What ever I said, is just my opinion about the concept, I don't claim it to be true. Correct me,if I am wrong anywhere.)


Why should users have to press Return twice to insert new lines?

When I post a question and want to add a new line, I have to press Return two times, or else the next text will appear on the same line.  Is this really supposed to behave this way? If so, why?


Set a cron every certain hours between certain hours

How can I set a cron to run every 2 hours between 8 am and 5 pm for example? Is this possible?


Application of Kolmogorov's Zero-One Law

Most of the books I read, they only state some examples of tail events. One of them is  $[\sum_n X_n \ converges]$. My main problem is to show that this is indeed a tail event.


I'm just so new to blender I can't even figure out why this is happening. (picture)


I was given the sequence $\frac{1}{2}$, $\frac{1}{4}$,$\frac{1}{8}$, $\frac{1}{16},\ldots$ . I created an equation to represent the sequence $a_n=\dfrac{1}{2^{n+1}}$. Now how do I go about finding the limit?


Sending SMS from iPhone without notifying the iPhone user

I know this isn't wise to ask but i read many articles online but didn't get any satisfactory answer. Is it possible to send sms from iphone without user's knowledge. If yes, How?


Java LinkListed: java.lang.NullPointerException at Names.addName(Names.java:34)

I am trying to add a node to the end of my linked-list, but everytime I run the program I keep getting an error of a null pointer.   public class Names {          public String name;         public Names next, prev;          public Names(String name, Names next)         {             this.name = name;             this.next = next;         }          public Names(String name)         {             this.name = name;         }          public static void addName(Names newName, Names list)         {             Names current = list;              while (current != null)             {                 current.prev = current;                 current = current.next;             }               current.next = newName;         }          public static void removeName(String toDelName, Names list)         {             Names current = list;              while (current != null)             {                 current.prev = current;                 current = current.next;                 if (current.name == toDelName)                 {                     current.prev.next = current.next;                     current.next.prev = current.prev;                 }             }           }          public static void printNames(Names list)         {             System.out.print("Names: ");             while (list != null)             {                 System.out.print(list.name + " ");                 list = list.next;             }          }           public static void main(String[] args)         {              Names ListOfNames = new Names("Jason", new Names("Jim", new Names("Ray", null)));              Names name1 = new Names("Rick"), name2 = new Names("Chad", name1);              printNames(ListOfNames);              addName(name1, ListOfNames);             System.out.println();              printNames(head);         }      }   This is where it is occuring.    Exception in thread "main" java.lang.NullPointerException at    Names.addName(Names.java:34)  It is a result of `current.next = newName`


I have different browsers opening with  xdg-open www.google.com   and   x-www-browser www.google.com   Where are these commands came from? How to configure the browser, which opens with x-www-browser?


How can I calculate $\int^{\infty}_{-\infty}\Phi\left(\frac{w-a}{b}\right)\phi(w)\,\mathrm dw$

Suppose $\phi(\cdot)$ and $\Phi(\cdot)$ are density function and distribution function of the standard normal distribution.  How can one calculate the integral:  $$\int^{\infty}_{-\infty}\Phi\left(\frac{w-a}{b}\right)\phi(w)\,\mathrm dw$$


I've flagged a post about 2 days ago and on my flag summary it now has an orange "active" mark.     Any insights on what this is?


When I tried to upgrade Ubuntu 16.04 to Ubuntu 16.10 "errors were encountered while processing systemd-shim"

Preconfiguring packages ... (Reading database ... 238478 files and directories currently installed.) Removing systemd-shim (9-1bzr4ubuntu1) ... Removing 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim' dpkg-divert: error: rename involves overwriting '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service' with   different file '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd', not allowed dpkg: error processing package systemd-shim (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  systemd-shim E: Sub-process /usr/bin/dpkg returned an error code (1)


travelling salesman understanding constraints

I am trying to program TSP problem in R. From  page section "Integer linear programming formulation", I was able to understand all the constraints except the last one.  Need help to understand the last constraint...what are the variable U/artificial varaibles? are they slack variables for earlier constraints?


Suspended users cannot follow/unfollow posts

Suspended users cannot seem to follow/unfollow posts. Even the error message shown is wrong:   (Suspended users cannot vote)  After clicking the 'follow' link under the post, it changes to 'following' (and vice versa) along with the error popup but after refreshing the page the follow status goes back to the original setting. Source: personal experience :(


What is the name of the horizontal division line? Is there a name for it other than "division line?


Which one is correct? "what item ARE YOU looking for?" or "what item YOU ARE looking for?"

Which one is correct?  What item are you looking for?  or  What item you are looking for?  In British English if it's important.


How can I get a list of process IDs on the system under Linux?

I need to list the process IDs on the Linux command line. Can I use the ls command in the /proc directory?  The problem is that it lists some process IDs with file names. Can I remove those names using some ls command option?


Non-clickable message shows the clickable cursor

Hovering over "comments disabled on deleted/locked posts/reviews" should not show the hand cursor, since it is not clickable (clicking does nothing).    One example is right under , which has had a wiki lock applied to it by a moderator.


How to join multiple results into one row with dynamic columns?

Foreword - I don't know how to formally describe the situation in a single question so the below is as verbose as I can make it...  Taking wordpress as an example, there's the "wp_users" table which has all the standard things like email and login and then there's the "wp_usermeta" table which looks like the following:  +------------+---------------------+------+-----+---------+----------------+ | Field      | Type                | Null | Key | Default | Extra          | +------------+---------------------+------+-----+---------+----------------+ | umeta_id   | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment | | user_id    | bigint(20) unsigned | NO   | MUL | 0       |                | | meta_key   | varchar(255)        | YES  | MUL | NULL    |                | | meta_value | longtext            | YES  |     | NULL    |                | +------------+---------------------+------+-----+---------+----------------+   This table has many rows for each user with the meta_key and meta_value columns being the important bits of actual data.  What I'd like to do is query for all users and all meta, but only returning one row per user with every meta_key/meta_value as additional columns.  As an example scenario: there are three key/value pairs in the meta table, associated with the user_id 42. I'd like to query for the following result:  user_login,user_email,mk1,mk2,mk3 userone,one@example,"one","two","three" usertwo,two@example,"yes","wow","moars"   Where "mk1", "mk2" and "mk3" are the values of the "meta_key" and the "one", "two", "three" are the corresponding "meta_value"s.  Can this be done in pure SQL (no procedures or code)?


Package system is broken. How to fix it?

I just recently bought an arduino and requires gcc-avr/avrdude to compile the software. I installed avr for another microprocessor component a while ago but is obviously an outdated version (gcc version 3.3 20030512 (prerelease)) so I went ahead to update these but it didn't work.   (Please note that before hand I also broke my aptdaemon through an incomplete wine installation (couldn't get passed font installation agreement) but I fixed that via a re-installation then accepting the agreement.)   I am trying to update these by running  but the dependencies it requires cannot be installed due to avr... terminal reports   Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. libncurses5-dev is already the newest version. libncurses5-dev set to manually installed. libusb-0.1-4 is already the newest version. libx11-dev is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: arduino-core : Depends: gcc-avr but it is not going to be installed avr-libc : Depends: gcc-avr (>= 1:4.3.4) but it is not going to be installed Depends: binutils-avr (>= 2.20) but it is not going to be installed binutils-dev : Depends: binutils (= 2.21.0.20110327-2ubuntu3) but 2.21.0.20110327-2ubuntu2 is to be installed libcwidget-dev : Depends: libcwidget3 (= 0.5.16-3ubuntu2) but it is not going to be installed Depends: libsigc++-2.0-dev but it is not going to be installed Depends: libncursesw5-dev but it is not going to be installed libmpfr-dev : Depends: libgmp3-dev (>= 4.2.dfsg-1) but it is not going to be installed python-dev : Depends: python (= 2.7.1-0ubuntu5.1) but 2.7.1-0ubuntu5 is to be installed Depends: python2.7-dev (>= 2.7.1-1~) but it is not going to be installed tk8.4-dev : Depends: tk8.4 (= 8.4.19-4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   But running   apt-get -f install   results in   (Reading database ... 163021 files and directories currently installed.) Unpacking binutils-avr (from .../binutils-avr_2.20.1-1ubuntu2_i386.deb) ... dpkg: error processing /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb (--unpack): trying to overwrite '/usr/bin/avr-size', which is also in package avr-binutils 2.13.90.030512-2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Unpacking gcc-avr (from .../gcc-avr_1%3a4.3.5-1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb (--unpack): trying to overwrite '/usr/bin/avr-g++', which is also in package avr-gcc-c++ 3.2.90.20030512-2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried running update manager and updating my system via it but all I get is an error message  The following packages have unmet dependencies: arduino-core: Depends: gcc-avr but it is not installed avr-libc: Depends: gcc-avr (>= 1:4.3.4) but it is not installed Depends: binutils-avr (>= 2.20) but it is not installed   which then tells me to try running apt-get -f install which just results the same as last time.  So how can I fix my system, I really need the new avr, please :) BTW, my system is Ubuntu 11.04


Bug when clicking through closing options

Steps to reproduce:   Go to Close Votes review page. Click "Close" -> "off-topic because..." Choose "Other", change your mind, choose something else: now "Vote To Close" button is inactive until you enter something in "Comment" field, even if you choose different option. Becomes active if you change something in "Comment". The button should be inactive only for "Other" choice when comment is default.   EDIT: If I do it from question page, it is deactivated only on first click after "Other". On Close Votes review it doesn't come back until I type something in the Comment.  I'm on Linux Mint 12 with Chrome 28.0.1500.71.


I have a question that is in line with times: a non-gender-specific subject pronoun (which I call "genderless" in the title to make it simple to grab).  I'd like to ask what form you would choose:   he or she (or also "he/she") (s)he s/he they (followed by verb in plural form, of course)   I'll see if this question is answered to understand if it's of any interest to the community, before expanding the topic to other cases (object pronoun and possessive).  Thank you!


I have an array which is filled with inputs from the user and I need to print it. I tried but I get weird results. First im going to enter how many elements I want to input then I will enter the elements, then im going to print them.  For example: I entered 5 10 23 77 105 And I need to print it like this: Elements: 5 10 23 77 105  And also "INVALID INPUT" is in the false statement but it mixes in the true statement.  Here is what I tried so far:  import java.util.*; import java.util.ArrayList;  public class LinearSearch {      public static void main(String[] args) {         int choice;         Scanner in = new Scanner(System.in);         System.out.println("Choose between INT(1) --- DOUBLE(2) --- STRING(3) --:");         choice = in.nextInt();          if(choice == 1) {             choice(args);         }     }      public static void choice(String[] args) {         int num;         int repeat;         Scanner in = new Scanner(System.in);          System.out.println("Enter the number of elements in the array");         num = in.nextInt();          int array[] = new int [num];          for (int i = 0; i < array.length;  i++) {             System.out.print("Enter the number at array index"+i+": ");             array[i] = in.nextInt();         }          System.out.print("Do you want to search if the number is present in the array? YES = 1 , No = 2: ");         int answer = in.nextInt();          if (answer == 1) {             Linear(array);         }          if (answer == 2) {             System.out.println("Thank you for using the program");         }             if (answer >= 3) {             System.out.println("Invalid Input");         }          System.out.print("\nDo you want to repeat the program? Yes = 1 --- No = 2: --- ");         repeat = in.nextInt();          if(repeat == 1) {                main(args);          }          if (repeat == 2) {             System.out.println("Thank you again ! ! !");             System.out.println("Thank you again ! ! !");             System.out.println("Thank you again ! ! !");             System.out.println("Thank you again ! ! !");             System.out.println("Thank you again ! ! !");             System.out.println("Thank you again ! ! !");             System.out.println("Thank you again ! ! !");          }     }      public static void Linear(int array[]) {         int key;         Scanner in = new Scanner(System.in);          System.out.print("Enter a number that you want to search: ");         key = in.nextInt();          for(int i = 0; i < array.length; i++) {             if (array[i] == key) {                 System.out.println("Elements: " + array);                 System.out.println("Element " + key + " is found at index: " + i);             } else {                 System.out.println("INVALID INPUT");             }         }     } }


Why is it doing this? Every time I use viewport shading no matter what version I use this occurs. I've restarted blender. I've downloaded several versions both new and old. how do I fix this?


What does 'against' mean in the phrase 'Execute against a MySQL database'?

I've encountered this strange and rather odd (to me) usage of the preposition 'against', which I quite can't grasp as of now. I've tried to look it up in several dictionaries to no avail.


Solution to Error Message in Synaptic Package Manager

I'm trying to install new files from Synaptic Package Manager however, after marking all the files and clicking on "Apply", I subsequently get this error message:  E: The method driver /usr/lib/apt/methods/https// could not be found.  E: Unable to lock the download directory   How do I fix this?


I listen to Apple Music (subscription), and when I play an album I can't find a way to play the songs in order.    If I have an album pulled up and tap the first song, it plays and when done skips to a random song on the album.  If I click the ellipses and hit ...    and then the (what appears to be) "play album" button, it still randomizes...    Is there a way to make songs on an album play in order?


JS overides check in the checkbox on toggle

I have a problem regarding checkbox and JS.  I wrote the following code but prop checked is not changing...  $( "#showCoupon" ).toggle(function() {    $(".couponInputs").show();    $("#cart-page #cart-coupon").height(135);   document.getElementById("showCoupon").checked = true;        }, function() {     $(".couponInputs").hide();    $("#cart-page #cart-coupon").height(50);    document.getElementById("showCoupon").checked = false;        });   Any idea why it is like this? show/hide and height change is working, just checking not...

 Apply coupon     <input id="showCoupon" type="checkbox" style="   height: 20px;   width: 20px!important;   bottom: -8px;   position:  relative;   float:  right;   right: 10px;   display:none;" class="mobile-show">
       <input type="text" class="input-text" id="couponCode" name="CouponCode" size="16" placeholder="Enter coupon code:" />       <input type="button" class="input-submit coupon-submit" value="Add Coupon" onclick="javascript: SC.Cart.applyCoupon();" />


Setting focus in between the text on input field

Is there a way that I can set the focus in between text that I am generating dynamically on focus of input field? Scenario: There is a input field and I am generating some text on focus of it. ex: ("") I want the focus to set in between double quotes. Currently focus is setting at the right side of the text Is there a way to achieve this in javascript? TIA


Help: Fantasy magic book series male genius similar to Name of the Wind

Cant recall book names or author or character names.    Looking for this series (7-9 books). The first part of title was always the same as if it was a chronicle or Quest and vaguely remember something about time. Blue cover always with male character as if walking out of a tunnel with machinery/clockwork/swords etc in background. Long titled. Target audience Young Adult I have spent days searching online can find zero reference to it. Book 1 he is discovering his magical esque abilities. Black rubbery magical material he finds/uses. Reference to his grandfather who had died recently. There's a young girl (teen) Rebecca or Kate that he has a love interest in. She seemed very strong willed. He's from a wealthy background. His cousin is a prince that he has to protect - book 1 only. Political / war theme, but much more focused on the magical ability of the male protagonist. His father someone important. The girl is training to be a soldier or assassin of some kind of guild.   He travels with an odd group to a factory where the baddies are making weapons. They hide in these animal shaped big statues on the garden grounds of this factory/castle thru trap doors.   That's all I can think of, the books are brilliant and I can't REMEMBER and it's driving me nuts. Think published between 2000-2012.


Radiation of visible light from LC circuit

Can we get a visible radiation from LC circuit as it produces e.m.radiation when charge oscillates in it?


Integral of $\int_0^{\pi/2} \frac {\sqrt{\sin x}}{\sqrt {\sin x} + \sqrt {\cos x}}$dx

Question:  $$\int_0^{\pi/2} \frac {\sqrt{\sin x}}{\sqrt {\sin x} + \sqrt {\cos x}}\mathrm dx.$$  What we did:  we tried using $t=\tan (\frac x2)$ and also dividing both numerator and denominator by $\sqrt {\cos x}$, eventually using the second method we got to this: $\displaystyle \int \frac {2t+2}{t^2+2t-1}-\frac {2}{t^2+2t-1} +\frac {\sqrt{2t(1-t^2)}}{t^2+2t-1}  $, for which we know how to solve the first and second integral but not the third...  Thanks


Different outputs with/ without \newenvironment

I'm trying to setup my own CV without Curve. To do so, I intend to separate sections the same way with a \newenvironment.  %[...] \newlength{\margin} \setlength{\margin}{.3\textwidth}  \newcommand{\alinea}{\hspace{0.1cm}} \newcommand{\tn}{\tabularnewline}  \newcolumntype{M}[1]{>{\raggedright}m{#1}}  \newenvironment{rubrique}{ \begin{tabularx}{\textwidth}{M{\margin}|X} } % {\end{tabularx}}   But then in my document, the two blocks below give a different output :  % OKAY \begin{tabularx}{\textwidth}{m{\margin}|X} Aout 2006 & Lorem Ipsum... \end{tabularx}   --  % ERROR : File ended while scanning use of \TX@get@body \begin{rubrique} Aout 2006 & Lorem Ipsum... \end{rubrique}   I am certain to miss a point about \newenvironment, but which one ?


Quantum Field interaction transferred via "exchanging fermions"

In Standard Model every fundamental interaction is described by means of exchanging gluons of particular kind. It is very natural as gluons has spin with values given by inteegers, and can share the same quantum state, which gives us interactions with reasonable energy transfers.  On the other side, I cannot remember anyone proposed even theoretical toy model where interactions are exchanged by means of fermion particles of some kind.   Q: Could you provide any useful reference for such toy model?  It is remarkable that such hypothetical interactions should be much weaker than any governed by gluons, as "exchanging fermions" cannot stay at the same quantum states, so number of possible exchanges ( various effective exchange rates per seconds or per area or volume) should be very small.   I even can imagine, that with certain coupling with topological space properties, requirement of particular energy transfer level gives as results curved space, just because particular number of "exchanging fermions" have to be exchanged and the only curved space would allow required  "exchanging paths" big enough for "exchanging fermions" (  bigger area, volume etc with given borders).   So if we're able to discover fundamental force, much much weaker than the others, it may be an example of such interaction! Oh, wait....


Suppose I want to have someone with moderator abilities review a post. What would be the best way to flag this?    Is there already some standard way to do this that I don't know about?     For more information, see "" in the .


Prove that for $x,y \geq 0$ and $p>1$ , $xy \leq \frac {x^p} {p} +\frac {y^q} {q}$ whenever $ \frac {1} {p} + \frac {1} {q} = 1$.  My attempt $:$  Let us consider a function $f : (0,\infty) \longrightarrow \mathbb {R}$ defined by $f(x) = \frac {x^p} {p}$ , $x \in (0,\infty)$ where $0< p < \infty$. Then we have $f'(x)=x^{p-1}>0$ , $x \in (0,\infty)$.This shows that the function $f$ is strictly increasing in its entire domain.Now it can be easily observed that if $x=0$ or $y=0$ then the above inequality holds trivially.So WLOG let us assume that $x>0$ and $y>0$.If $x,y \geq 1$ then from the fact that $f$ is strictly increasing we must have $\frac {x^p} {p} +\frac {y^q} {q}  \geq \frac {x^{\frac {p} {2}}} {p} + \frac {y^{\frac {q} {2}}} {q}$.  Now how can I proceed?But I find trouble to prove the remaining part of the inequality.Please help me.  EDIT $:$  $\frac {x^p} {p} +\frac {y^q} {q} = \frac {qx^{p} + py^{q}} {pq} = \frac {p+q} {pq} .\frac {qx^{p} + py^{q}} {p+q}=\frac {qx^{p} + py^{q}} {p+q} \geq  (xy)^{\frac {1} {\frac {1}{p} + \frac {1} {q}}}=xy$, by the weighted AM-GM inequality and by using the fact that $\frac {1} {p} + \frac {1} {q} =1$.  Is my edit correct at all?Please verify it.  Thank you in advance.


How to adopt SD card as internal storage on Samsung devices?

I recently upgraded to 6.0.1 Marshmallow on my Galaxy S5 and I would like to adopt an SD card as internal storage.  However, there is no option to do this.  When I format the SD card, there is no "Internal" option, only a "Portable" option.      I am using this SD card:    I have tried formatting the SD card in windows, deleting the partition in windows, and even wiping the parition in windows.  But Android always wants to add it was portable storage.    How can I force Android to add this as internal storage?  EDIT: According to this article, .  So it's likely the S5 doesn't support adoptable storage either.  I'm looking for a way to enable it using the adb command line if possible now.


How to install Windows directly from Linux (elementaryOS) without anything

last week i have problem I can't deal with. How i can to install Windows directly from Linux (elementary OS) without flash drives and anything other? Tried everything and all of tries ended with failure


How can header cells in Excel be "pinned" or "frozen"?

How can you "pin" or "freeze" cells in the top row and/or leftmost column of an MS Excel sheet, so that they always remain visible regardless of scrolling?


I Wanted To Use Ubuntu From USB So I Burned The Iso File By Using "Rufus.exe",,  It Worked Fantastic! But There Is a Problem Which Is, If I Installed Google Chrome Browser For Example, I Can't Find It The Next Time I Boot From The Usb!   So How To Keep Everything I Install For The Next Time I Boot From That USB? Is That Possible Or I Have To Install Ubuntu Side By Side With Windows To Do It ??


Evaluation Method or Evaluation Methodology

In a research domain, evaluation part is itself challenging, and thus we are proposing a way of doing the evaluation in that domain (i.e. determining what inputs should be given to the system and what outputs should be expected). Should we call what we are proposing an "evaluation method" or an "evaluation methodology"?


I just passed my dissertation defense. This means there is nothing left but paperwork to get my doctorate. Among the various congratulations I've received a couple have termed me: Dr. My assumption was that I'm not really a doctor until I go through the graduation ceremony, but now I'm wondering. Is there a convention as to when exactly I can call myself Doctor?


Help needed with this problem in algebra.

Let $t$ be a real number such that $t^2 = at + b$ for some positive integral values of $a$ and $b$, then $t^3$ can never be equal to:  A. $4t+3$ B. $8t+5$ C. $10t+3$ D. $6t+5$


I'm doing just a basic setup using an environment node with an hdr file and a object but when I render its still in the panoramic view and it seems the background isn't rendering aswell what can be the issue.


Imagine you are doing the following inside a javascript function called Fetch.  function Fetch(context) {   var request = $.ajax({...});   request.done(function(response)   {     // it looks like context is visible here and in Scope.     //   });   }  Can you explain why context is visible inside the callback function.?


How does a  work? If seen from the outer side, we can see through thinking it is transparent, while if seen from the inside, the glass acts as a mirror. How?


This code throws a NullReferenceException when it calls ExecuteScalar:  selectedPassengerID = 0;  //SqlCommand command = GenericDataAccess.CreateCommand();   // 2nd test string connectionString = ""; SqlConnection conn;  connectionString = ConfigurationManager.     ConnectionStrings["ConnST-MHM"].ConnectionString; conn = new SqlConnection(connectionString); SqlCommand command = new SqlCommand(); command.CommandType = CommandType.StoredProcedure ; command.Connection = conn; command.CommandText = "SearchForPassenger";  SqlParameter param;  param = command.CreateParameter(); param.ParameterName = "@name"; param.Value = pName; // Session[""]; param.DbType = DbType.String; command.Parameters.Add(param);  param = command.CreateParameter(); param.ParameterName = "@flightDate"; param.Value = date;  param.DbType = DbType.String; command.Parameters.Add(param);  param = command.CreateParameter(); param.ParameterName = "@ticketNo"; param.Value = ticketNumber;  param.DbType = DbType.Int32; command.Parameters.Add(param);  int item;  command.Connection.Open(); item = (int)command.ExecuteScalar();


Calculating distance between two points with esri.geometry in ArcGIS API for JavaScript?

The function  should calculate distances between two points.  When I am trying to calculate distance between points having 100 meters between them  p1=new esri.geometry.Point(3997030.6690969253, 7444299.320646087, new esri.SpatialReference({ wkid: 102113 })); Object p2=new esri.geometry.Point(3996951.455397143, 7444142.154020177, new esri.SpatialReference({ wkid: 102113 })); Object esri.geometry.getLength(p1, p2) 176.00045037719127   I am getting 176 which is wrong. Projection is Web Mercator (WKID 102113).    @Krystian found that getLength uses just Pythagoras theorem to calculate length. So it gives length in projection meters. How to obtain distance in real meters?


Why does a velocity that gives gravity's centripetal acceleration make you stay in orbit?

Explanations of basic orbital mechanics that I can find all go,  $$\frac{v_{satellite}^2}{r} = a_c = \frac{F_{gravity}}{M_{planet}} = \frac{(\frac{G M_a M_s}{r^2})}{M_{planet}}$$  , and so you get a velocity,  $$v_{satellite}=\sqrt{\frac{GM_{planet}}{r}}$$  . So you need that velocity to orbit earth at that radius. But it doesn't answer alot of questions like:   How much can you increase or decrease your velocity for this v and r relationship to stop?  What changes when you reach those points which makes you fly away or crash into the earth?   Why would increasing v of the satellite effect something perpendicular like the ac?   Why does having a centripetal acceleration equal the force from gravity, 9.81, prevent you from crashing?


How does an outside of my LAN server know which computer made a request?

For example:  I have 5 devices in my LAN, on one of them I request http://superuser.com, the server responds and the 'answer' gets to my home router (gateway), but from there, how does it know which device made the request?   Is there any information added to the package sent over the internet that identifies my computer within my LAN?  I figured maybe by MAC adress but I heard that MAC adresses don't pass outside your router onto the internet.


The fate of a bar magnet released in an infinitely long copper tube

A bar magnet is released under gravity inside a long copper tube along the axis of the tube.   The answer is given (edit :) it moves with constant velocity. But I don't understand how.  My research :   The bar magnet is falling with an acceleration of $g$. So its speed increases. Thus the flux change also increases with time. And thus ultimately, the induced emf also changes as induced emf is directly proportional to the change of magnetic flux through the loop (the copper tube consists of infinite copper loops).  Now according to Lenz's Law, the induced emf produces a magnetic flux as to oppose the change in the magnetic flux through the loop. Consider, the magnet to fall vertically downward, thus a magnetic flux is induced vertically upwards. Thus a vertical force is applied to the magnet in the upwards direction.  What I do not understand is that won't the 'induced' force oppose the acceleration due to gravity. And if it opposes, the velocity of the magnet becomes less, thus the emf and ultimately the induced force becomes less. And the gravitational force dominates again. Will the motion be oscillatory, or will it stop? If it will stop, can you provide an elaborated reason? Thank You!


Why can't I type my password after using a sudo command?

I am running Ubuntu 14.04 LTS.  When I go to use a sudo command, it asks for my password. When I go to type my password, it doesn't let me type a password.  If anyone could possibly help, I would really appreciate it


YouTube - How can i play my youtube playlist in my android phone even my screen automatically goes to sleep mode?

In my samsung galaxy s4, i am playing my youtube playlists like 10 or 20 musics and when i switch off the screen then the music stops.  How can i play forever the music even the screen is on or off?  For example:  1) i am in Gym  2) i open the youtube music playlist and let it play by switching off my screen and head phone is on  3) now when i am doing my workout the music is stoopped  How can i keep it play forever unless i manually close it.


Probability that two sets are disjoint? the same?

Suppose two sets of $2$ elements, $\{X_1, X_2\}$ and $\{Y_1, Y_2\}$ are uniformly and independently chosen from the set of two element subsets of the integers $\{1, 2, \dots, r\}$, where $r \geq 1$.   What is the probability that the two sets are disjoint? What is the probability that the two sets are the same? What is the expected size of the intersection of the two sets?   I've tried to attempt these questions, but I'm completely wrong. It would be nice if you guys can help me out. Thanks


Make light paths only pass through non-emitted areas?

I'm trying to make it so that the plane is transparent except for the light from the aqua emission. Or in other words, how can I make it so that the plane's white areas are transparent and the plane's aqua areas are not? I want to achieve this without using the compositor, only with material nodes.


How to analyze the following non-linear ODE asymptotically,

$y\frac{\text{d}^2y}{\text{d}x^2}-2\left(\frac{\text{d}y}{\text{d}x}\right)^2+xy^3\frac{\text{d}y}{\text{d}x}=0.$  I want to analyze the above non-linear ODE asymptotically. Do you have an idea?


It's widely know that HTML5 offers some elements primarily for semantic purposes. These include: section, article, aside, header, footer, nav, figure, figcaption, time, mark & main.  Do any of these offer SEO benefits? If so, what are some of the best practices for using these semantic elements?  I've tried to read articles on the subject, but most of the material is non-committal on whether there exist actual SEO benefits of using these tags or not. Almost all WordPress websites (including Instagram.com) use these tags however. I'm sure other platforms do too.   So would love to hear educated opinions from industry experts on how best to use these tags (and which ones are more important than others).


Java - Escaping Meta-characters [ and ] in Regex

I am attempting to replace the first occurrence of the string "[]" in another string:  aString.replaceFirst("[]", "blah");  I get the error:  java.util.regex.PatternSyntaxException: Unclosed character class near index 1 []  [ and ] are obviously metacharacters, however when I try to escape them with a \  eclipse complains that it is not a valid escape sequence.  I've looked but couldn't find, what am I missing?  Thank You


How do I Convert a Geometry Node input to Integer

I'm trying to add an input to my nodes, I need it to be an integer (Lime Green) I know it can be done because one of the download examples has them set up like that, but I can't find in the documentation or anywhere online how to change their type


Cannot use Cmd+Enter in Google result page to open links in new tabs after upgrading to Yosemite

I enabled Google result page's shortkeys, so when searching for something, in the result page, pressing down arrow on my keyboard would make the pointer arrow to point to the first result, and that arrow can be moved up & down using arrow keys. If you have shortkeys enabled in Google's settings, you'd know what I'm talking about.    Before upgrading to Mac OSX Yosemite, I always used Cmd+Enter to open links that the arrow is pointing at, but this stopped working right after I upgraded to Yosemite - nothing happens when I press the key combination.  I just tested this as well: in stackoverflow.com, press tab to select something, and when pressing Cmd+Enter, it doesn't open. But I used this key comb to open selected links in new tabs all the time.  Any ideas/solutions?


How do I generate a list with specified size of random integers within a range in Java 8?

I want to generate a list of random numbers between a specified range and of a certain size.  I've tried using streams, and I think this is probably the best solution. I couldn't get it working myself, but I have not learned enough about streams yet.  The following code works for my problem, but I'd like to be able to use something from the Java api if possible. If I were to use stream's map method, I would need to use a consumer with n -> ThreadLocalRandom.current().nextInt(min, max + 1), but I could not appropriately collect at the end of my stream.  import java.util.*; import java.util.concurrent.ThreadLocalRandom;  class Scratch {     public static void main(String[] args) {         System.out.println(getRandList(100, 0, 10));     }      /**      * Get n random integers within the range of min and max      */     static List<Integer> getRandList(int size, int min, int max) {         List<Integer> integers = new ArrayList<>(size);         for (int i = 0; i < size; i++) {             integers.add(ThreadLocalRandom.current().nextInt(min, max + 1));         }         return integers;     } }   The referenced duplicate does not address my question directly, I wanted a List<Integer> and Oleksandr's solution provides a IntStream.


Constraints for the: X of Y vs. Y X constructions

While translating a text I came across this doubt that has been pestering me for too long, why is it possible to have these two constructions:  A) scene of crime. B) crime scene. (although this one is more frequent.)  However, only (A) 'History book' is possible but not (B) 'book of History'.  On the other hand, (A) 'medicinal plants book' does not sound correct; while you find construction (B) 'book of medicinal plants' frequently used.  I fail to grasp the difference here and keep making mistakes. If anyone could help, please? PS: I've read similar questions but they dealt with different aspects. Is it really semantics?


Can a child enter the UK on an accompanied visa and then leave the country alone?

My daughter who is just under 18 has a child accompanied visa to the UK. I am traveling with her to the UK for a few days. We return from UK on the same day except that she returns to India and I am heading to San Francisco an hour later on the same day.   Is that okay or will we have an issue at immigration into the United Kingdom?


Prove that the determinant of $ A^{-1} = \frac{1}{det(A)} $- Linear Algebra

If I have a single matrix A that is non-singular, how can I prove the determinant of its inverse = $\frac{1}{\det(A)}$?  Prove: $$ \det(\mathbf{A^{-1}}) = \frac{1}{\mathbf{\det(A)}} $$  I know that $(A)(A^{-1}) = I$, but I am not sure what to do with that knowledge.


Most books I've consulted on this matter give the following statement of Noether's theorem:  If a Lagrangian has a continuous symmetry then there exists a current associated with that symmetry that is conserved when the equations of motion are satisfied.  In my notes, the theorem is stated rather differently: if the action $S[\Phi]$ is invariant to the first order with respect to infinitesimal trasformations $\Phi\to \Phi+\theta\Delta\Phi$ if and only if the parameter $\theta$ is global, then there exists a local conserved current $j^\mu(x)$. There is something I am not sure about. By the principle of stationary action, the action should be invariant (to first order) under a transformation $\Phi(x)\to \Phi(x)+\Delta\Phi(x)$; this is true for on-shell fields, that is, for fields that actually solve the resulting equations of motion. Therefore, on-shell, it should also be invariant when $\theta$ is a global parameter and so any action $S[\Phi]$ is trivially invariant under a transformation of the form $\Phi(x)\to \Phi(x)+\theta\Delta\Phi(x)$. In this version of Noether's theorem, should I assume the invariance to also hold off-shell, for any possible field $\Phi(x)$?


do-release-upgrade from 18.04 to 20.04 - no development version

I am currently using 18.04 LTS in the web server production environment. I was under the impression that Ubuntu 20.04 LTS was ready to go, since it was released in april 2020. But running do-release-upgrade tells me "There is no development version of an LTS available". Does this mean that 20.04 LTS is not ready yet?