Another device is using your IP address mac, what do I change my IP address too?

Our internet router often stops working at home, but for the the second time only I have got a pop-up error saying:     "another device is using your ip address".   We have an iPhone and a Macbook but as far as a remember this problem occurred for a brief time when we were without an iPhone. In any case, I had a look at  which suggests the problem is a cause of the iPhone and Macbook trying to use the same address.   I changed the IP address via System Preferences > Network > TCP/IP > configure IPv4 Using DHCP with manual address to 11.11.11.11. I then switched back to Using DHCP and clicked 'Renew DHCP Lease'.   When I checked the IP address again it changed to 192.168.1.11. It works now but I wonder if this is a permanent fix or will this problem keep occurring?  Update: The problem persists, but his time without the error message which would leads me to believe that there another problem in addition to the "Another device is using your ip address" problem.


Ticket to Ride multiplayer between OS X and iOS

We've purchased Ticket to Ride for iPhone/iPad iOS and I was wondering if I purchase the desktop version for OS X would we be able to play locally between the two devices.


I am trying to join a .csv file with a .shp file in QGIS but QGIS is unable to read the data in my .csv file as it indicated that the variables are string of length and precision 0. As a result, I am unable to use the method of create a new column of numeric characters and the option to add a new column or to use the field calculator is disable in my attribute table.


In Star Trek, does the original die in teleportation?

I am just curious.  If I am teleported is the original me dead and the teleporter just makes another copy of me there[at destination]?


how do i get the copyright of a manga to publish it on my application in my own language?

İ m using applications to read manga and as a application devoloper i want to publish an app like that for the people in my country  in our own language..The thing is, i know community doesnt approve pirated product , i know how hard it is to create these contents and i respect it , but people in my country already using these contents from websites and these websites earn money from commercial. 1-So what should i do to achieve  my application dream with copyrighted content?? (dont tell me to contact the owner  i tried it and i couldnt) 2-How these numberless of applications and websites use these contents without copyright issue?(they got  this warning before reading,  "this is not copyrighted and if you re the owner contact us to remove your product from our platform" , like is this ok to do that wtf?) 3-People in the internet says "its fanmade content when you change to language and copy it so its not illegal" but there is no more info about that , nothing clear ,can someone explain the meaning of this? is this the reason most of the platforms using these contents without any legal issue? 4-Do you think is it ok if i just publish the content in my app without any profit till i solve this copyright issue?


For a variety of reasons, I have an unusually complex email address which is tiresome to keep re-typing.  Is there any way I can re-program one of my little used Windows 10 keys, such as a function key, to hold this address?


Upgrade from 13.10 to 14.04 with live USB

Is it possible to upgrade 13.10 to 14.04 with live USB?


How to download video from arte+7, arte-tv and similar sites?

has a  where some videos are provided for a period of time. But these are not as easy to download as those on youtube and other such websites.   Is there a program that can do that?


Why does "I would enjoy to [verb]?" sound so awkward?

I was journalling, and I typed the following:     I would love to learn how to program in Haskell and Rust.   But then I realized that "love" is too strong a word. It's only true that I would enjoy learning to program in Haskell and Rust, but it's not true that I would love doing it.  So, I replaced the word "love" with "enjoy":     I would enjoy to learn how to program in Haskell and Rust.   But then I realized that this sounds awkward to my English-as-my-first-language ears.  But, it seems like the verbs "to enjoy" and "to love" should work the same? They do work the same in the following:        I enjoy line dancing.   I love line dancing.      But they don't seem to work the same in the following:        I enjoy to line dance. [this sounds awkward]   I love to line dance.      Is there a grammatical reason that "I enjoy to line dance" sounds so awkward to me?    Edit (after I accepted that this question is an exact duplicate of a different question) :  I might note that the following does sound fine to my ears, though:     I would enjoy very much to tell my boss that he can go f*** himself! I hate him so much!


I want to show that for some compact hypersurface $M$ in $\mathbb{R}$ it holds that for any $v \in S^n$ there exists some $p \in M$, s.t. $v$ is the unit normal to $T_pM$. I also have the hint to look at the hyperplanes $Rv+v^{\perp}$ for some $R>0$, s.t. this hyperplane and $M$ are disjoint and then to look at the point with minimal distance to $Rv+v^{\perp}$.   Now I can picture this (for $n \leq 3$ obviously) because then $Rv+v^{\perp}$ is some plane $\cong \mathbb{R}^2$ and if I take the point with minimal distance its obvious (graphically) that its tangent space has to be orthogonal to $v$. But I don't know how to formalize this.  I can get the point with minimal distance to $Rv+v^{\perp}$ by looking at the smooth function $f:M \rightarrow \mathbb{R}, q \mapsto dist(q,Rv+v^{\perp})$ which has a minimum since $M$ is compact.   Can somebody give me some hint how to formalize this (for all dimensions)? Thanks!


How can I find out BIOS version in Windows without rebooting the system? I would gladly spare finding out the shortcut to enter BIOS and search in BIOS.


How to connect a USB 2.0 9 pin cable to a USB 3.0 19 pin connector?

I have a multi-card reader that connects to my motherboard via USB 9/10 pin port, the problem is that I have none available, however I have a free 19/20 pin USB 3 port. I have been looking everywhere for an adapter to convert the 9 pin to 19 but I cannot find it anywhere... The only one I found is the other way around, 19 to 9.  Am I missing something? Like it's not possible to do the conversion or something?  Thanks!  EDIT: I don't want to just jam the 9 pin into the 19... I was looking more for an adapter/converter


Does centering really help interpret the intercept?

Various people have advocated centering independent variables in regression, on the grounds that the intercept then refers to a sensible point (the mean of each IV) rather than the often impossible case that all the IVs are 0.  But does this really help?  First, the intercept is often not of interest.  Second, the mean of the variables depends on the particular data set.  Third, that means that, if you want to interpret the intercept, you need to know the mean of each IV.  So, I'd say that this reason for centering is not a good one. (There are some other reasons for centering which I am not discussing here).  Am I missing something?


I want to calculate the size of $GL_n(\mathbb{F}_p)$. Originally I was locking specifically for the size of $GL_2(\mathbb{F}_5)$ but I managed to calculate it by directly calculating ${\{A\in M_2(\mathbb{F}_5)\mid detA=0\}}$ and some arithmetic. I was wondering if there is a generalization and couldn't find one. Thanks in advance!


I tried multiple times installing the unity tweak tool via the terminal but every time it give me the following output. Similarly i cant install it via the Ubuntu software center. I have tried sudo apt-get install -f & sudo apt-get install unity-tweak-tool . the output when using the terminal is as follows:  nikunj@nikunj-DL-H61MXE-V:~$ sudo apt-get install unity-tweak-tool [sudo] password for nikunj:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   unity-tweak-tool 0 upgraded, 1 newly installed, 0 to remove and 170 not upgraded. Need to get 0 B/368 kB of archives. After this operation, 2,761 kB of additional disk space will be used. (Reading database ... 197290 files and directories currently installed.) Preparing to unpack .../unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb ... Unpacking unity-tweak-tool (0.0.7-0~201~ubuntu15.10.1) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess <decompress> returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb (--unpack):  cannot copy extracted data for './usr/share/unity-tweak-tool/monitor-window-snapping.png' to '/usr/share/unity-tweak-tool/monitor-window-snapping.png.dpkg-new': unexpected end of file or stream Errors were encountered while processing:  /var/cache/apt/archives/unity-tweak-tool_0.0.7-0~201~ubuntu15.10.1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) nikunj@nikunj-DL-H61MXE-V:~$


Vector erase function not working (simple code)

Can someone please explain me why this code doesn't erase all 1s from the vector:  for (int i = 0; i < numbers.size(); i++) {     if (numbers[i] == 1)     {         numbers.erase(numbers.begin() + i);     } }


How can I get a list of all packages available for a specific version of Ubuntu (not necessarily the one I have installed)?

I can get a list of all available packages and their details using the following command:   apt-cache search .   Which outputs a list of packages which looks like this:  i   0ad                - Real-time strategy game of ancient warfare i   0ad-data           - Real-time strategy game of ancient warfare (data files)                             i   0ad-data-common    - Real-time strategy game of ancient warfare (common data files)                         p   0ad-dbg            - Real-time strategy game of ancient warfare (debug)                                     p   0xffff             - Open Free Fiasco Firmware Flasher                                                      p   2ping              - Ping utility to determine directional packet loss                                      p   2vcard             - perl script to convert an addressbook to VCARD file format                             p   3270-common        - Common files for IBM 3270 emulators and pr3287                                         p   389-admin          - 389 Directory Administration Server  ...     How can I get such a list of packages for a version of Ubuntu which I don't have installed?   So, specifically, where can I download the database of all available packages for a specific version of Ubuntu, and how do I get the details (Possibly including version, size, long description...) from it, in plaintext or in a format which is easy to parse with a script?


post-apocalyptic novel (farmers & a Russian airman)

Need help finding a book, for a friend (read about 20 years ago)  his text:  It's one of yer postapocalpytic numbers ... farming family in their own little valley are shielded from the worst of it though they could see the flashes and tops of the clouds over the hills, but once the food and fuel (and ammunition...) starts to run out, and the radio broadcasts peter out, they go off in the pickup truck to hunt for supplies in the nearest town, leaving the eldest daughter behind to tend to the animals for the day or two they expect to be gone. They never return, and we're then left seeing the rest of the story unfold through her eyes, as someone who appears to be a Russian airman comes over the hill in a rather bad state... various drama then ensues, and at the end of it, one of them (can't even remember which) takes off over the horizon on the remaining tractor with the last of the fuel, presumably having never heard of biodiesel. It was another one of these where the author had died and someone else stepped in to finish off the final chapter from his notes. Any clues, anyone?  ps: will add more info if/when possible.


What is the use of zigzag pattern on PCB board

I found this on old CPU motherboard circuit and find its interesting.  What is the purpose of that pattern? is it only for aesthetic or is there something else? I only seen the same pattern on bluetooth module rf antenna.


Is it alright to use 2 different DDR2 RAM modules?

I have an old desktop PC which has a  motherboard. It currently has one  memory module but the motherboard can support two DDR2 memory modules. I'm planning to upgrade it to have 2GB of memory (1GBx2).  My question is, do I need to have two identical memory modules? Or will it work fine if I just install a different one to be paired to the existing one?


How to print 0 - 10000 to file with zeors as padding using Python

I am looking to create a file printing 0 to 10000 with padded zeros  For example: 00001 00002 00003 00004 ... 09999 10000  How could I achieve this? Thank you!  Edit, I see that this was marked as duplicate for the leading zeros, my issue is more the printing all numbers out to file. Thanks!!


Terminal is not opening in Linux after accidental permission overwrite

I am using Debian. I tried to give a permissions to /opt/folder by using   chmod -R 0755 / filename   Unfortunately it changed the permissions of a lot of folders in the root filesystem. So it leads into a lot of problem.  Now I can't open any application (i.e) Terminal, Browser or even I get errors on restart.  How to open a Terminal? (starting and stopping)  How to resolve this whole problem?


If $E$ and $F$ are two fields and $f : E \to F$ and $g : F \to E$ be field homomorphisms. Is it true that $E$ and $F$ are isomorphic?  We know that both $f$ and $g$ are injective which prompts the question.  EDIT: As pointed out in comments and other posts, this is not true in general. Are there any conditions on $E$, $F$ which makes this result true? Algebraically closed, characteristic zero, positive etc.?


I have seen things like \lessgtr $\lessgtr$ (less on top, greater on bottom;) being used in paper. Can someone give me an example of how a double inequality is used?


How to transform (d e normalize) predicted values when I normalize the data in the range between -1 to 1?


How can an antisymmetric relation be not reflexive?

Reading a book (I do not know if I can mention its title) I found these definition (the following is exactly the quotation from the pages of the book): "For a binary relation R on a set Y, that is, R⊆YxY, it is customary to write xRy rather than (x,y)∈R. A binary relation R on a set X is: - reflexive if xRx; - antisymmetric if xRy and yRx imply x=y. An antisymmetric relation may or may not be reflexive" I do not get how an antisymmetric relation could not be reflexive. Can you explain it conceptually? A concrete example aside the theory would be appreciate. Thanks in advance


In the course of solving a certain problem, I've had to evaluate integrals of the form:  $$\int_0^\infty \frac{x^k}{1+\cosh(x)} \mathrm{d}x $$  for several values of k. I've noticed that that, for k a positive integer other than 1, the result is seemingly always a dyadic rational multiple of $\zeta(k)$, which is not particularly surprising given some of the identities for $\zeta$ (k=7 is the first noninteger value).  However, I've been unable to find a nice way to evaluate this integral. I'm reasonably sure there's a way to change this expression into $\int \frac{x^{k-1}}{e^x+1} \mathrm{d}x$, but all the things I tried didn't work. Integration by parts also got too messy quickly, and Mathematica couldn't solve it (though it could calculate for a particular value of k very easily).  So I'm looking for a simple way to evaluate the above integral.


New install Ubuntu 12.04 64 bit is painfully slow and freezes on a Dell 5150 desktop. It has dual core 2.8 GHz Pentium 4 processors and 1 GB RAM. Usage is over 700 MB with just the desktop running.  I installed using Wubi and used the 64 bit kernel by mistake. Our other machine is flying with the 32 bit and has 2 GB RAM. Could the 64 bit be the reason for the freezing? Would upgrading the RAM alone fix it? How could a reinstall of the 32 bit be done - would Wubi simply overwrite the previous installation ?  Alternatively am I barking up the wrong tree entirely. My technical knowledge is zero so please go easy - but I do love Linux. Wish I had found it years ago. Graphics from pci devices in hardinfo  Good machine 32 bit. Intel 82G33/31 memory 512KB 256MB(32bit prefetch) 1MB (32bit non prefetch) Slow machine 64 bit  AMD/ATI RV370 (no memory entry) 32 MB prefetch  64kB non prefetch


$(a,b)=1$ $\iff~\Bbb Z_a\times\Bbb Z_b$ is cyclic

Assuming $(a,b)=1$, I want to construct an isomorphism $\phi:\Bbb Z_a\times\Bbb Z_b\mapsto\Bbb Z_{a\cdot b}$ defined by $\phi(1,1)=1$. So I need to prove that for any $(x,y)\in \Bbb Z_a\times\Bbb Z_b$ there exists $n\in \Bbb N$ such that $n\equiv x \mod a$ and $n\equiv y\mod b$  For example $(1,2)\in\Bbb Z_2\times\Bbb Z_3$ is $(5\mod2,5\mod3)$  I'm not sure how to prove that, I tried using the Bezout equality...  For the other way we need to assume $\Bbb Z_a\times\Bbb Z_b$ is cyclic i.e. $\Bbb Z_a\times\Bbb Z_b =\langle(x,y)\rangle$  for some $(x,y)$  Since $0\in\langle(x,y)\rangle$, $\exists n\in \Bbb N~:~nx\equiv0\mod a~\text{and } ny\equiv 0\mod b$  And here I'm stuck again.


Object tilts along animation constraint path

I have attached an object along a constraint path, When the path is flat the object follows along accordingly. I then make one point elevated so the object can heave then dive along the path. All up to the blue line its perfect, then once it comes down the slope, the object is tilted all along till the end of the path.


What is the exact principle of this circuit? (PNP transistors and P-channel MOSFET)

I have this given circuit:    I can see by the look of it that this is a power rail "choosing" circuit. When VBUS is applied and there is no +5V, then the body diode of Q1 simply conducts.  I am trying to understand what the logic behind this circuit is, when VBUS and +5V are supplied externally at the same time. I think that Q1 is being turned off when +5V is higher than VBUS, but I can't explain it.  I would appreciate some hints, as I cannot really follow the scenario here with the Q2 and Q3 transistors.


My IP xxx.xxx.xxx.xx is pointing to example.com at GoDaddy but I just noticed that when I type the IP in browser, it doesn't redirect to the website, how can do this? I am sure this will happen through httpd.conf but unsure about what I need to add.


How does Synchronous Transmission provide synchronized clocks?

I was reading a textbook which says: in synchronous transmission, the bit stream is combined into longer “frames,” which may contain multiple bytes. Each byte, however, is introduced onto the transmission link without a gap between it and the next one.  as the picture below shows:   and I was also told in Synchronous Transmission, the sender and receiver should have synchronized clocks before data transmission.  so how does clock get synchronized before data transmission? all I can see i the picture is, the sender sends many bits in frame, how could it synchronize the clock?


Is there any part in the 7th book where it is detailed of who personally killed Ariana Dumbledore from the trio's duel?     “And there was an argument . . . and I pulled out my wand, and he   pulled out his, and I had the Cruciatus Curse used on me by my   brother’s best friend — and Albus was trying to stop him, and then      all three of us were dueling, and the flashing lights and the bangs   set her off, she couldn’t stand it —” The color was draining from   Aberforth’s face as though he had suffered a mortal wound. “— and I   think she wanted to help, but she didn’t really know what she was   doing, and I don’t know which of us did it, it could have been any of   us — and she was dead.”   Harry Potter and the Deathly Hallows Chapter 28 Missing Mirror   I don't quite remember if it was mentioned in the books.


word for a correction or change made retroactively

What's a noun that means a correction/amendment/addition made to a text after the text has been "finalised"  JK Rowling's many ______s posted on twitter


I recently browsed WooCommerce source, and it appears that they're doing this:  <?php /**  * The template for displaying product content within loops.  *  * Override this template by copying it to yourtheme/woocommerce/content-product.php  *  * @author      WooThemes  * @package     WooCommerce/Templates  * @version     1.6.4  */    if ( ! defined( 'ABSPATH' ) )  exit; // Exit if accessed directly  global $product, $woocommerce_loop;   So I did some reading about checking if ABSPATH is defined - it appears to be used for security purposes.   However, I don't see _s theme ( developed by automattic ) doing anything with ABSPATH, so my question is - is this a plugin thing, a paranoid thing, a best security practice ? Who should be checking for ABSPATH ?   Should I check for ABSPATH in my theme files ? Custom function files ? Should I check at all ?


fixed position css clear both not working

hi im trying to put fixed text at the end of every page like this ..   everything working so fine yet but if the page has lots of trs and its full  the footer will looks like this ..   and this is the css for the footer ..   .end-footer {     position: fixed;     left: 0;     bottom: 10px;     width: 100%;     text-align: center;     clear:both;     }   and this is the html code for the footer

Jordan.Amman&nbsp;/ Mob.791075521/Tel.65562555/P.O.Box.950579 &ndash; 11195/Email. cland@theaddress.info

   clear:both not working with fixed position ..  any help here thanks a lot ..


Can you use square brackets to correct punctuation in quotes?

I know why we use square brackets in quotations. But can we also use it for changing punctuation, in order to make it fit better with the sentence? For instance: Original Quote: "We went to the mall today, and had a lot of fun." Bracketed Quote: "[They] went to the mall today[.]" I'm doing this because I want to include only part of the statement, and not all of it. Thanks.


is it wrong? -> using Gradient to get the steepest slope to go upwards, so in order get minimized loss we go the opposite

I am not good at mathematics and have been learning ML from Udacity. In its tutorial video, the tutor says(I concluded it in a short way): using Gradient to get the steepest slope to go upwards, so in order get minimized loss we go the opposite. Here is the video starting from time 3:00:  my question is : it is not necessary the exactly opposite direction of the gradient(steepest ascent) that the steepest descent goes. As it's 3D, if the gradients goes 0 degree, it doesn't necessary mean the 180 degree points you the steepest descent. So I assume his statement is wrong? Could someone correct me(using plain language even a laymen can understand, thanks) if I got wrong somewhere? Thanks update After reading John's answer, my understanding is: At the particular point P we can draw a tangent line A. Let's assume that the 0 degree of A points to the fastest direction for ascending, but the actual fastest direction for descending is 150 degree at point P. Since the tangent line can ONLY have 2 directions which are 0 and 180, so we can only take 180 degree of the line A as our next direction for descending. Is my understanding correct?


I must be making some silly mistake but I can't see it... I have a document with some objects on a layer (metaballs) and 1 cam. The layer is enabled, the objects have preview and render ticked. The objects have Max draw textured. The renderer is cycles. The objects have nodes shaders.  Two 3dviews are open. both are aligned to cam. The cam has been pointed at the objects. Both are in object view. One shows the objects in all draw modes. The other shows the objects in no draw modes. The objects do not render. I have restarted blender.  What am i doing wrong? (2.79b)  Another thing I notice is the working mballs seem to have an orange icon with their name that expands to a white icon with the same name. eg mball.005 contains mball.005.  the broken mballs seem to be mixed up - the names don't match. e.g. mball.010 contains mball.012. Renaming the child elements doesn't seem to fix things but maybe it indicates something got corrupted. Pure speculation...  Regards  update: I pushed it out to an obj, factory reset blender and brought it back in. apart from needing the nodes rebuilt all is back to normal. it's made all the metaballs into single objects which I couldn't work out how to do, so in fact it's actually done me a favour.  I'd still like to know what I did wrong to mess up the file...


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


Excel file . xlsx can't join with the shapefile map layer

Trying to join a shapefile layer - polygons - (municipalities with a data table with corresponding data sets) an Excel file with the .xlsx extension, BUT as showed in the attached image some error occurs.  Any suggestions what's wrong with this join procedure?


Block quotes on Buddhist beta site comments are black text on black background.


I have to delete some stuff from /boot to make updates

When i do my updates, the /boot folder is always full with old stuff... So, after a while, I can't make any updates/upgrades anymore, because the /boot folder is full. I have to delete some stuff from /boot via sudo aptitude remove ...   I also have to remove from time to time my old headers and images...   Is that normal? My colleague, also with an Ubuntu does not have this problem  my du -h boot says:  3,4M    /boot/efi/EFI/ubuntu 3,4M    /boot/efi/EFI 3,4M    /boot/efi 127K    /boot/grub/locale 2,4M    /boot/grub/fonts 2,9M    /boot/grub/x86_64-efi 7,7M    /boot/grub 12K /boot/lost+found 100M    /boot


How can I copy from Tmux terminal and paste it other application in my OS?

I am using tmux on ubuntu. I read this  for copy and paste inside tmux. But I would like to know how can I copy from TMUX terminal and paste it to other application e.g browser in my OS?


Check the proof of: $(A')^{-1}=\left(A^{-1}\right)'$.

Prove: $(A')^{-1}=\left(A^{-1}\right)'$.  $$\begin{align*}\left(A^{-1}\right)'=\left(\frac{1}{\det (A)}A^*\right)'=\frac{1}{\det (A)}\left(A^*\right)'=\frac{1}{\det (A)}(A')^*=(A')^{-1}\end{align*}$$  Is it right?（This is the question...）Duplicate?    $A'$ is the transpose of A.  $A^*$ is the adjugate matrix


How can I use the layout and twoside options of the geometry package?

When I use the  (2010/09/12 v5.6) for a twoside document with one paper size (e.g. A4) and another layout size (e.g. A5), I had expected that I could print a page, turn the paper, print the other side, and cut the paper according to the crop marks. For this to work the crop marks at both sides of the sheet of paper must lay at the same position, i.e. if the first side is placed at the left of the sheet of paper, the second one must be placed at the right side. But the MWE  \documentclass[twoside]{article} \usepackage[twoside,a4paper,layout=a5paper,showframe,showcrop]{geometry} \begin{document} 1 \newpage 2 \end{document}   and pdfLaTeX result into    What must I change to get "twoside-mode"?


I'm wondering if there's a way to /replaceitem the same amount as a previous execute if command,  so basically I am trying to make my own blocks in a datapack that is craftable, so I've made crafting recipes that makes spawn eggs, then I want to replace them with a spawn egg that spawns an entity with a tag so I can set a block there,  but the problem is that if I just have one command like     execute if entity @a[nbt={SelectedItem:{id:"minecraft:villager_spawn_egg",Count:1b}}] run replaceitem entity @a weapon.mainhand minecraft:villager_spawn_egg{isplacer:1b} 1   that just checks if the player's active slot has a spawn egg and then replaces it with one with a tag on it, it will always replace it with 1, so if you have for example 64 spawn eggs without tag, you would still just get one with a tag,  is there any way to di this without having 64 different commands for each amount* PS: sorry for my English it's not my primary language


Can I use the terms "CEO" and "Managing Director" synonymously?

Can you please clarify if it's acceptable to use these terms interchangebly and if not point out to significant differences between these titles. It seems to me that it may be something with scale of an organization (perhaps, small/medium businesses have managing directors, and large corporations have chief executive officers) but I'm not sure. I do understand that a person may bear one or another of these titles formally, but what about real differences?


I'm having a dilemma, I am trying to make a Prison Game in vanilla Minecraft, but can't make a part work.  I give the players this command to stop them from breaking blocks /gamemode a @a[r=40]  When they enter onto the logs they are switched to survival /gamemode s @a[r=17]   This is my problem:  From the logs, where they are in survival mode they can still reach the wood planks and destroy them up until the lime green wool     I hoped the gamemode switch would solve this, but unfortunately it didn't quite do it.  So I was thinking there may be a way to stop this and I need them to be unbreakable or something like it.


Did Paul Feyerabend ever develop some alternative, useful and viable philosophy of science?

I know he criticized Popper's critical rationalism as limited and dogmatic, but critical rationalism isn't like that, because critical rationalism does accept ideas which at first sound illogical and out of tune with accepted knowledge. If those ideas survive scrutiny, they are incorporated into or even change the existing body of scientific knowledge?  Did Feyerabend really understand Karl Popper?


When abstract logic circuits get translated to the electrical equivilant, how are conversions from 0 to 1 handled?

I've searched around and there's lots of good information out there, but I'm a bit of a n00b when it comes to the precise meanings of words like current, voltage, amplify, resistor, diode etc. So what at first presents itself as a simple explanation quickly turns into a wikipedia tabfest of ever increasing complexity. With that in mind please forgive my probably inaccurate use of these terms in this post.  The basic problem for me is that gates on a logic circuit appear to be creating power from nothing, which is impossible. For example imagine two NOT gates connected in sequence: To my uninitiated mind what seems to be happening is that the first NOT gate cuts the power to the second NOT gate, which responds by magically conjuring new power out of thin air and sending it on it's way. The only explanation I can come up with feels a bit redundant and absurd (That every single gate on the diagram is implied to be directly connected to a power source)  The closest I've come to an answer is something to do with changing the "signal" from "high" to "low" but again, I'm not familiar enough with the language. It still suffers from the same problem, if you've got a low signal how is it that a NOT gate can turn it into a high one without directly drawing on a power source?  To wrap up and present the question in all it's rookie glory: How do logic gates physically convert 0 to 1 without violating the law of conservation of energy?


Difference between "downvote" and "downvoted"?

What is the difference between "downvote" and "downvoted"? Here is a screen shot from the Reputation sub-screen on the User tab:


I go through the posts on this issue on Stack Overflow, but nothing really works for me. I have the following CSS code to vertically align checkbox / label pair:  body {     font-family: "lucida grande",tahoma,verdana,arial,sans-serif;     font-size: 11px;     margin: 0;     padding: 0; }  fieldset {     line-height: 100%; }  label {     display: inline-block;     vertical-align: baseline; }   The full HTML code is .  Checkbox / label pairs are vertically centered correctly in Safari (5.0.3) and Firefox (3.6.13) under Mac OS X. On Chrome (Mac OS X) checkboxes are rendered slightly to the top. On Windows OS checkboxes and associate labels are aligned to the bottom (consistently across different browsers: Firefox, Safari, Chrome, and Internet Explorer 8).  Could somebody please explain me why this differences between browsers / OS happens (and also how to avoid them)?  Update  The hack to vertically align checkbox with label in Chrome under Mac is as follows:  input[type=checkbox] {     position: relative;     top: 1px; }   Now need to implement OS and browser specific conditionals...


Is the "review your question" page expected to be beneficial if none of the detectable warnings are triggered?

As per  2 months ago (March 2020): after you've written your question, you are taken to a 2nd page which prompts you to "Review your question".  There are 2 possibilities when you land on that page:   either your question has "obvious" validation failures. or it successfully passes validation.   In the former case, the page is clearly beneficial, in that it provides a nice UX for understanding what needs to be fixed (especially if you're new to the site, and aren't familiar with the form).  But in the latter case, I offer that it doesn't add anything. As far as I can tell, it has all the same information as the previous page:   You could already see a pre-render of your question. You could already see a list of various Similar Questions.   As far as I can tell, it just forces me to click the same button twice; adding annoying UX for no benefit.    It might be a prompt for new users to encourage them to actually use the above features.  It might perhaps be intended as a mental prompt to get people to reflect on their question? But I'd honestly be surprised if it were actually achieving that, rather than everyone ignoring it and auto-clicking "Post".  Do we have server-log evidence of how long people spend on the "Review" page? Conversely is there any evidence of questions getting "lost" because people forget to click twice?    If there is some new info on that page, then it needs a re-design in order to make that clear! If not, we should gather evidence to assess its efficacy. If it does nothing (as I suspect), then I offer that it's a pointless irritation and should be removed.


I have two formats and they are shown below.  Format 1 :  printstring = printstring & "---------------------------------------" & vbNewLine   Format 2 :  printstring = String.Format("{0}---------------------------------------{1}", printstring, vbNewLine)   It was recommended to follow Format 2 by a Code Optimization Tool.  Is there any specific reason for this? Like memory consumption or some other reason?


Fibonacci, tribonacci and other similar sequences

I know the sequence called the Fibonacci sequence; it's defined like:  $\begin{align*} F_0&=0\\ F_1&=1\\ F_2&=F_0+F_1\\ &\vdots\\ Fn&=F_{n-1} + F_{n-2}\end{align*}$  And we know that there's Binet formula for computing $n$-th element in the sequence.  However, I'm trying to find something totally different.  We know that $K=2$ for the Fibonacci sequence; let's call $K$ the number of previous elements to get the $n$-th element. For example,  $\begin{align*} K=2&\Rightarrow F_n= F_{n-1} + F_{n-2},\\ K=3&\Rightarrow F_n= F_{n-1} + F_{n-2} + F_{n-3},\\ \end{align*}$  and so on.  How to compute the $n$-th element for given $K$? I couldn't find any formula for $K > 2$.  Thanks for any help.


Links in Inbox and Achievements panels lead back to insecure, non-https pages

When I'm on, for example, the secure SO site, and then open the "StackExchange" drop-down, links to other SE sites include their "https" equivalent as well, which is expected. (If I'm on the the regular http site, then the links are all http.)    But links to questions via the "Inbox" and "Achievements" drop-downs lead back to the insecure, http equivalent, even when I'm on a secure page.      Can those links be generated in such a way that we're kept on the secure version of the site?


I'm frustrated that I can't bevel an edge. The change is in a larger area than I would like and I can't get a smooth edge. I'm trying to learn Blender having used 3dsmax and maya before, but something doesn't seem to make sense. I can't get the same level of border control as I did in other programs. Does anyone have any idea what I'm doing wrong?


So, I would like to start investing for the long-haul (10 - 15 years, expecting 4% ROI). When I looked up the top Broad European Stock Funds, I get an index that includes these holdings:   Nestle SA British American Tobacco PLC Royal Dutch Shell PLC Class A BP PLC   These are not the sort of companies I want to support because I personally dislike their business. How would I go about getting a similar index that covers solar/renewable energy companies, companies that are performing R&D on improving quality of life etc.


How to get the equivalent of chmod 600 using icacls on Windows?

I'm looking for a way to achieve the equivalent of chmod 600 on Windows using the icacls utility. For the user part I got the rw permission by using icacls file /inheritance:r /grant:r %USERNAME%:(R,W). Now, I'm having troubles with denying all the other users from any access to the file. I could explicitly deny every existing user but any users created after the denial will still have access to the file. Is there any good way to deny all the users except for me?  Thank you in advance!


If $i^2=-1$, at one point undefined, then why not define $\frac00$?

Would this even assist math in the way that $i$ did? Or is this just outright pointless and/or too exclusive to call for a definition?


Uploading large folders to Dropbox from external hard drive

I've got a puzzling dilemma that I've been trying to solve for weeks. I want to backup about 500 GBs from an external hard drive to my Dropbox Pro account.    My computer's hard drive is nowhere near as large as my EHD, so I can't just move the file to the Dropbox folder. I've tried using MacDropAny by Zibity to create a symbolic link, but when my EHD is no longer connected, Dropbox seems to assume these files have been deleted, and propagates the deletion to the cloud. I've also tried using GoodSync to do a one-way sync to the cloud, but upload speeds seem to be so slow that this is turning out to be impractical. (Dropbox's own streaming upload seems to be orders of magnitude faster.) Finally, I've considered moving my Dropbox folder to the EHD, but this seems very inconvenient for any times when I don't happen to have my EHD plugged in.   I've been trying to find other options, and I just haven't found anything that would seem to suit my needs. Can anyone suggest a solution that will allow me to upload this folder in a convenient and relatively speedy manor? Thanks!


I was working on my computer running 14.04, and it just gave me this popup:    Output of lsb_release -a:  Distributor ID: Ubuntu Description:    Ubuntu 14.04.5 LTS Release:        14.04 Codename:       trusty   What the heck?  I thought 14.04 was supported for 5 years. What is going on?!


I was a first-year PhD student but was forced to quit although hard-working day and night! I am disappointed, I am now 27 and did not create family, left my home country. Problems from the past in my family hugely affect my mental health. I have OCD and some other health issues.   Everyone admires my personality in presenting my work, however I am now shocked as I dreamt of doing good research to really help people and imprint a memory before leaving this earth. But I found it does not look like that. When I was a little girl, I used to tell my late mother: "I do not want to be an ordinary person, I want to add this world, to become an important person".  However, while writing now I would burst in tears and feel deeply alone. I suffered from complaining, so I would forget to speak and grew used to keeping every thing inside. I am afraid for my family as I feel responsible and I would like to make their lives better. Maybe the problem was that I did not do as well as the others? I thought I could do something new and meaningful, but I ended up being kicked out.  I would be grateful if someone tell me how can I overcome this harsh period?


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


Inserting into table: either invalid datatype or duplicate column name error. (But the datatype is valid and there's no duplicate)

Spoiler: solution to this is . the solution was really simple. I'm trying to insert data from an external table. Here's the code I'm trying to use: INSERT /*+ ignore_row_on_dupkey_index ( consruct ( construct_id ) ) */ INTO construct        (construct_id,       n_term ,       enz_name,       c_term,       cpp,       mutations,       mw_kda) SELECT *     FROM EXTERNAL ((       construct_id NUMBER(10),       n_term VARCHAR2 (50),       enz_name VARCHAR2 (50),       c_term VARCHAR2 (50),       cpp VARCHAR2 (50),       mutations VARCHAR2 (50),       mw_kda NUMBER (7,3))      TYPE ORACLE_LOADER     DEFAULT DIRECTORY data_to_input     ACCESS PARAMETERS (         RECORDS DELIMITED BY NEWLINE         SKIP 1         BADFILE bad_files:'badflie_insert_into_construct_from_construct.bad'         FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'         MISSING FIELD VALUES ARE NULL          )      LOCATION ('CONSTRUCT.CSV')     REJECT LIMIT UNLIMITED) ext          WHERE NOT EXISTS (         SELECT * FROM construct c         WHERE c.n_term = ext.n_term         AND c.enz_name = ext.enz_name         AND c.c_term = ext.c_term         AND c.cpp = ext.cpp         AND c.mutations = ext.mutations     );  But now i get this error: Error at Command Line : 171 Column : 7 Error report - SQL Error: ORA-00957: duplicate column name 00957. 00000 -  "duplicate column name"  Line 171 is the last line of this part INSERT /*+ ignore_row_on_dupkey_index ( consruct ( construct_id ) ) */ INTO construct        (construct_id,       n_term ,       enz_name,       c_term,       cpp,       mutations,       mw_kda)  Which is clearly not a duplicate column. If I do: INSERT /*+ ignore_row_on_dupkey_index ( consruct ( construct_id ) ) */ INTO construct      (construct_id,      n_term,      enz_name,      c_term,      cpp,      mutations,      mw_kda) SELECT *     FROM EXTERNAL ((       ext.construct_id NUMBER (10),       ext.n_term VARCHAR2 (50),       ext.enz_name VARCHAR2 (50),       ext.c_term VARCHAR2 (50),       ext.cpp VARCHAR2 (50),       ext.mutations VARCHAR2 (50),       ext.mw_kda NUMBER (7,3))      TYPE ORACLE_LOADER     DEFAULT DIRECTORY data_to_input     ACCESS PARAMETERS (         RECORDS DELIMITED BY NEWLINE         SKIP 1         BADFILE bad_files:'badflie_insert_into_construct_from_construct.bad'         FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'         MISSING FIELD VALUES ARE NULL          )      LOCATION ('CONSTRUCT.CSV')     REJECT LIMIT UNLIMITED) ext          WHERE NOT EXISTS (         SELECT * FROM construct c         WHERE c.n_term = ext.n_term         AND c.enz_name = ext.enz_name         AND c.c_term = ext.c_term         AND c.cpp = ext.cpp         AND c.mutations = ext.mutations     );  I get Error at Command Line : 174 Column : 10 Error report - SQL Error: ORA-00902: invalid datatype 00902. 00000 -  "invalid datatype"  Line 171 is ext.construct_id NUMBER (10),  Background: The reason I'm listing the columns out instead of just saying insert into construct select  is because I have a virtual column in the construct table taht's defined like this: construct VARCHAR2 (200) GENERATED ALWAYS AS  (n_term || '-' || enz_name || '-' ||c_term || ' ' ||mutations) VIRTUAL, And there's no corresponding column in the csv file for it. The second column in the ERD called CONSTRUCT is defined like this:  Edit: originally, I defined datatypes for columns from the table that I was inserting into. This was a mistake and I deleted that code, replacing it with the new version for readability. It was taking up a lot of room in this post. (Edit: originally, I defined datatypes for columns from the table that I was inserting into. This was a mistake and I deleted that code, replacing it with the new version for readability. It was taking up a lot of room in this post.)


Can we get an 2x bigger flair that will look nice in HDPI screens?

It's not the most crucial thing in the world but there are more and more HDPI screens and things are looking ugly when there is a text and low quality photos combined in an image.  I understand that all of the SE icons should be updated as well to a higher quality, but my guess would be that these icons are already exist in some kind of vector format so it shouldn't be an issue.


Is it possible to use If/Then Statements with dynamic text in Data Driven Pages?

Is it possible to use If/Then statements with dynamic text in Data Driven pages labeling? I have been trying a bunch of different ways, but it has not been working, and I am fairly new at writing scripts.  If I was to write out my statement in a label expression, my example would be:  Function FindLabel([Land_Owner_Zone1], [Land_Owner_Zone2], [Zone]) If [zone] = "Zone 1" Then Findlabel = [Land_Owner_Zone1] & vbnewline & [Zone] Else Findlabel = [Land_Owner_Zone2] & vbnewline & [Zone] End If End Function   I am unsure how to write this in dynamic text format for data driven pages.


Practically speaking, how do people handle ANOVA when the data doesn't quite meet assumptions?

This isn't a strictly stats question--I can read all the textbooks about ANOVA assumptions--I'm trying to figure out how actual working analysts handle data that doesn't quite meet the assumptions. I've gone through a lot of questions on this site looking for answers and I keep finding posts about when not to use ANOVA (in an abstract, idealized mathematical context) or how to do some of the things I describe below in R. I'm really trying to figure out what decisions people actually make and why.   I'm running analysis on grouped data from trees (actual trees, not statistical trees) in four groups. I've got data for about 35 attributes for each tree and I'm going through each attribute to determine if the groups differ significantly on that attribute. However, in a couple of cases, the ANOVA assumptions are slightly violated because the variances aren't equal (according to a Levene's test, using alpha=.05).   As I see it, my options are to: 1. Power transform the data and see if it changes the Levene p-val. 2. Use a non-parametric test like a Wilcoxon (if so, which one?). 3. Do some kind of correction to the ANOVA result, like a Bonferroni (I'm not actually sure if something like this exists?). I've tried the first two options and gotten slightly different results--in some cases one approach is significant and the other is not. I'm afraid of falling into the p-value fishing trap, and I'm looking for advice that will help me justify which approach to use.  I've also read some things that suggest that heteroscedasticity isn't really that big of a problem for ANOVA unless the means and variances are correlated (i.e. they both increase together), so perhaps I can just ignore the Levene's result unless I see a pattern like that? If so, is there a test for this?  Finally, I should add that I'm doing this analysis for publication in a peer-reviewed journal, so whatever approach I settle on has to pass muster with reviewers. So, if anyone can provide links to similar, published examples that would be fantastic.


I install Ubuntu on my notebook bought in USA but I'm from Brazil, the problem is, because of the keyboard model, I have to run this command every time I turn on my system:  "setxkbmap -model abnt2 -layout br -variant abnt2"  How can I turn this process automatic, or maybe install a keyboard model. Sorry for bad enlgish.


Proving $\lim \limits_{n\to +\infty } \left(1+\frac{x}{n}\right)^n=\text{e}^x$.

I knew that $e^x=\lim \limits_{n\to+\infty }{\left(1+\frac{x}{n}\right)^n}$. But I've never seen its proof. So I tried to prove it using $\exp(\ln x)=\ln(\exp(x))=x$. Here is what I've tried so far :   $$ \left(1+\frac{x}{n}\right) ^n=e^{n\ln(1+\frac{x}{n})}$$ $$\text{I'll now study just } {n\ln\left(1+\frac{x}{n}\right)}.$$$$ \text{If this function has the line }y=x \text{ as oblique asymptote, then the equality is proven.}$$  $$ n\ln\left(1+\frac{x}{n}\right) = n\ln\left(\frac{n+x}{n}\right)$$  $$=n[\ln(n+x)-ln(n)]$$ $$=n\left[\int_1^{n}\frac{dt}{t}+\int_{n}^{x}\frac{dt}{t}-\int_1^{n}\frac{dt}{t}\right]$$ $$=n[\ln(x)-\ln(n)]$$  But I just don't know how to show that this expression has an oblique asymptote $y=x$. I've thought that if there is an oblique asymptote as $n$ goes to infinity, than for a huge $n$, we have :  $$\ln\left(1+\frac{x}{n}\right)\approx \frac{x}{n}\approx0$$ Which looks correct but we could have any other function $f(x)$, $\ln\left(1+\frac{x}{n}\right)\approx\frac{f(x)}{n}\approx 0$. Which doesn't prove the oblique asymptote because $x$ is constant.  So how can prove $e^x=\lim \limits_{n\to +\infty } \left(1+\frac{x}{n}\right)^n$? And where did I go wrong?


Writing scripts that use different commands in different shells

How can I write a script that is shell independent? I want to be able to run one script which will run in ksh, sh and bash.  For example: If I have a line in my script like whence ls which will run in ksh and not in sh, I want to be able to have something like  if (ksh) then whence ls if (sh) then whereis ls   Can I use $SHELL value or is there any other way?


Why does the scanner gets te wrong input?

The input is a word. If the word is hello it should print: Hello sir etc if the input is not hello it should print: why dont you say hello? The problem is that it always prints: Why dont you say hello? Why is this?  Scanner input =new Scanner(System.in); String word=input.nextLine(); if(word=="hello"){     System.out.println("hello sir have a good day"); } else{     System.out.println("Why dont you say hello?"); }


I want to make a $ \rightrightarrows $ (basically two rigtharrows vertically aligned) in a latex file, I have tried to use some libraries, but I don't have a clue which one is the right one (I'm also failing totally about finding it about). I have tried to include ansmath, ansmath + tikz + arrows.  Additional question, how should one go about when encountering "! Undefined control sequence." and googling the name of the sequence doesn't give results?


Characters of Symmetric and Antisymmetric Powers

Let $V$ be a representation with character $\chi$.  I would like to have a formula for the characters of the representations $\mathrm{Sym}^m[V]$ and $\wedge ^m[V]$ in terms of $\chi$.  Fulton and Harris presents such a formula for $m=2$, but not for general $m$.  Is there a "nice" such expression?  I found a paper by , but this doesn't seem to be what I'm looking for (it doesn't seem to give a general formula in terms of $\chi$).  In case the link does not work, here is the reference:  X. Zhou, P. Pulay. Characters for Symmetric and Antisymmetric Higher Powers of Representations: Application to  the  Number of Anharmonic Force Constants in Symmetrical Molecules. Journal of Computational Chemistry, Vol 10, Issue 7, (1989).


Using GParted to expand my root partition

I'm trying to expand my root (/) partition in Ubuntu, but GParted will not let me change this. I've read several things about using the swap partition to accomplish this, but maybe I'm not doing this in the right order.  I'm booting from a live CD. I need to add my unallocated space to sda5. Can someone tell me the order in which I need to proceed? Thanks.


Trying different flavors of Ubuntu from a USB drive

Is it possible to have a dual boot of different Ubuntu versions? X K L M E U Since only 1 gig of space is recommended you should be able to have 8 possible version on a 16 gig flash drive. Cause I really hate the scroll scroll bars in the Unity version and want to see which system I Like best XFCE, KDE, Fluxbox custom(is what my friend uses), etc.  Currently I have made 3 boot up drives all one USB drive which means erasing and reinstalling every time. Cheers,,


I passed by some really good answers and I wouldnt mind giving them 50 of my reputation. Will there be a "tip" feature that will giveaway my rep to a person? I know its possible for the Original Poster to give out a bounty, but it would be great for the occasional reader to tip as well.


I have been looking onto Mirantis website and others but could not figure out if Mirantis OpenStack is free to use or not.  There are many links of web including this one  which says that you only pay for support and software for Mirantis OpenStack is free but answer was not accepted, can someone please confirm if it is really free to use for production? and I can get this from here:


Unable to remove TeXLive 2016 from Ubuntu 14.04

I installed TeXLive 2016 via PPA and used following set of commands-  sudo add-apt-repository ppa:jonathonf/texlive sudo apt update sudo apt install texlive-full   Due to some reasons, I tried to remove it but I couldn't. Later, I installed TeXLive from the official website by following this link  I used the following command-  ravi@home:~/Downloads/install-tl-20180527$ sudo ./install-tl   Now, I am able to use TeXLive 2018 on Ubuntu 14.04 LTS using Texmaker 4.1 (compiled with Qt 4.8.4 and Poppler 0.24.3). However, my Ubuntu shows the following error-    It seems that TeXLive2016 is the culprit. I used sudo apt-get purge texlive* but it didn't work. Please see below-  The following packages have unmet dependencies:  asymptote : Depends: texlive-latex-base but it is not going to be installed              Depends: texlive-base-bin              Depends: texlive-pstricks but it is not going to be installed  dvipng : Depends: texlive-base-bin  feynmf : Depends: texlive-latex-base but it is not going to be installed           Depends: texlive-font-utils but it is not going to be installed           Depends: texlive-extra-utils but it is not going to be installed  fragmaster : Depends: texlive-base-bin               Depends: texlive-latex-base but it is not going to be installed               Depends: texlive-latex-recommended but it is not going to be installed               Depends: texlive-extra-utils but it is not going to be installed               Depends: texlive-font-utils but it is not going to be installed  latex-beamer : Depends: texlive-latex-base but it is not going to be installed  latex-xcolor : Depends: texlive-latex-recommended but it is not going to be installed  latexmk : Depends: texlive-latex-base but it is not going to be installed  pgf : Depends: texlive-latex-recommended but it is not going to be installed  prosper : Depends: texlive-latex-base but it is not going to be installed            Depends: texlive-pstricks but it is not going to be installed            Depends: texlive-latex-recommended but it is not going to be installed  purifyeps : Depends: texlive-metapost but it is not going to be installed  tex4ht-common : Depends: texlive-base-bin                  Recommends: tex4ht but it is not going to be installed  tipa : Depends: texlive-latex-base but it is not going to be installed         Depends: texlive-base-bin E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   Also tried sudo apt-get autoremove and sudo apt-get -f install. Plese, see below-  ravi@home:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   luatex texlive-binaries texlive-extra-utils texlive-font-utils   texlive-fonts-recommended texlive-fonts-recommended-doc   texlive-generic-recommended texlive-latex-base The following packages will be REMOVED:   context The following NEW packages will be installed:   luatex texlive-binaries texlive-extra-utils texlive-font-utils   texlive-fonts-recommended texlive-fonts-recommended-doc   texlive-generic-recommended texlive-latex-base 0 upgraded, 8 newly installed, 1 to remove and 264 not upgraded. 1 not fully installed or removed. Need to get 0 B/30.2 MB of archives. After this operation, 9,608 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 295461 files and directories currently installed.) Removing context (2016.05.17.20160523-1~ubuntu14.04.1york0) ... unknown option: format dpkg: error processing package context (--remove):  subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing:  context E: Sub-process /usr/bin/dpkg returned an error code (1)   Any workaround to fix it, please?


Combining a parameter argument inside an echo

I use the following script to do the following actions in my environment:   Creating an Nginx site conf. Creating a corresponding Let'sEncrypt SSL certificate. Creating a symlink between my sites-default dir to my site conf. Restarting the server.   My code:  #!/bin/sh for domain; do     > "/etc/nginx/sites-available/${domain}.conf" cat <<EOF         server {             root /var/www/html/${DOMAIN};             server_name ${DOMAIN} www.${DOMAIN};              location ~ /\.ht {                 deny all;             }              location / {                 index index.php index.html index.htm fastcgi_index;                 try_files $uri $uri =404 $uri/ /index.php?$args;             }              location ~*  \.(jpg|jpeg|png|gif|ico|css|js|ttf|woff|pdf)$ {                 expires 365d;             }              location ~ \.php$ {                 fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                 include fastcgi_params;             }         }     EOF     sudo ln -s /etc/nginx/sites-available/${domain} /etc/nginx/sites-enabled/     #########################################################################     certbot --nginx -d ${DOMAIN} -d www.${DOMAIN} done systemctl restart nginx.service # Create Webapp Substrate.   How and why I want to improve this code:  Where the long row of hashmarks, I want to insert the following command:  echo 'create database ${DOMAIN}; create user "${DOMAIN}"@"localhost" identified by "mypassword"; grant all privileges on ${DOMAIN}.* to ${DOMAIN};' | mysql -u root -p   Adding this command will change the script to do 5 steps instead 4:   Creates an Nginx site conf. Creates a corresponding Let'sEncrypt SSL certificate. Creating a symlink between my sites-default dir to my site conf. Adding an all privileged, and authenticated DB user suitable only for localhost, with a DB with the same name. Restarting the server.     My question:  As you can see, I used my parameter ${DOMAIN} inside the echo. I did that because I must pass the same argument there as well, otherwise, the DB username and it's associated DB both won't fit my site conf and my Wordpress based site won't boot.  Is this operation logical in Bash or you would take another approach?  To clarify, I ask this to understand if passing arguments based on parameters is valid when the parameter is inside an echo.


Science fiction short story - limited war where last surviving soldier is immune from all laws

Looking for a science fiction short story, probably published in 1960's or 1970's.  War has been formalized to a battle in a valley sized arena between two armies that is fought until only one soldier is left.  That solder is called a "Winner" and he is immune from all laws for the rest of his life. The wars are televised. Final scene is the "Winner" breaking into the house of a big fan of watching the wars and walking up the stairs to where his daughter is... anyone remember it?


There are copious posts on disabling Ubuntu swap completely. Is it possible to tell Ubuntu to allow but discourage swap usage?  I've installed Xubuntu on a laptop with 1Gb ram and a small SSD, turning it into a Samba server. In a worst case scenario free memory still can fit all data from a swap file:  ~$ free -m             total       used       free     shared    buffers     cached Mem:           991        696        294         17         66        175 -/+ buffers/cache:        454        536 Swap:         1952        107       1845   I want to discourage discourage swap when free memory is available, because swap does a lot of IO writes that degrade SSD quickly.   Is it possible to prioritize RAM over swap or the choice is limited to "swap on/off"? What side effects if any does it cause?    Thank you for pointing out existing answers they are relevant but hard to find. User must know 90% of the answer to search for "how to configure swappiness". Question answered. Hope this question header helps indexing.


I'm new to SVN and I'd like to know what methods are available for backing up repositories in a Windows environment?


SVD for PCA: Why would one standardize the data matrix?

As explained in amoeba's beautiful answer  one can use a singular value decomposition of the data matrix, $\mathbf{X} = \mathbf{USV}^\top$, to do a principal component analysis, if it is assumed that the data matrix $\mathbf{X}$ is centered. The principal directions will then be given as the columns of $\mathbf{V}$.  Now, I have come across some statistical analysis where the data matrix was centered and standardized for the data to have unit variance before being used in a singular value decomposition. The analysis then proceeded in using the columns of $\mathbf{V}$ as principal directions.  Can any of you think of a reason to do this standardization step before running the singular value decomposition? Is the result of such a procedure in terms of what PCA should tell you even meaningful?


I'm trying to read in a list of words a file using BufferedReader and determine if any are duplicates, and if they are, to not print them.  I know that there is a SuperClass called "UniqueLineReader" that can check the occurrence of duplicate lines for you, and something else called Linked HashSet. However, I haven't learned either of these in class, so I'm trying not to use them.  Anyways, the e.getMessage() is printing "null", which I don't understand, because the file obviously isn't and I'm checking that it isn't. Do I have wrong placement of variables?   try {  inFile = new BufferedReader(new FileReader(inputName));  outFile = new PrintWriter(new FileWriter(outputName));   while((nextLine = inFile.readLine())!= null){     if(indexOf(nextLine) == -1){       insert(nextLine);        outFile.println(nextLine);}    else{      System.out.println(nextLine + " has been seen before!");        }     }    inFile.close();  }//try  catch(Exception e){  System.out.println(e.getMessage());  }//catch   My indexOf method:  private int indexOf(String newWord){  for(int i = 0; i < numWords; i++){   if(arrayStrings[i].equals(newWord)){     return i;   } }  return -1;  }//indexOf   stacktrace  `java.lang.NullPointerException     at A2Q2.indexOf(A2Q2.java:58)     at A2Q2.removeDuplicateLines(A2Q2.java:79)     at TestA2Q2.main(TestA2Q2.java:10)


Prove the inequality $u^{\alpha}v^{1-\alpha} \leq \alpha u + (1-\alpha)v $

I'm trying to prove the inequality highlighted by the red line in the picture, but I do not know how. Please provide detail as much as you can, thank you!  For a minimal family, the sufficient statistic $\mathbf{T}$ is also minimal sufficient. For a proof, see Lehmann: Theory of Point Estimation, Example 5.9, pp. 43-44 If we parametrize the family using $\eta=c(\theta),$ this is called the natural parametrization (or the canonical parametrization). We then write $$ f(\mathbf{x}, \mathbf{\eta})=\exp \left(\mathbf{\eta}^{T} \mathbf{T}(\mathbf{x})-A(\mathbf{\eta})\right) h(\mathbf{x}) $$ where $$ A(\mathbf{\eta})=\log \int_{E} \exp \left(\mathbf{\eta}^{T} \mathbf{T}(\mathbf{x})\right) h(\mathbf{x}) d \mathbf{x} $$ The natural parameter space is $\mathbf{H}=\{\boldsymbol{\eta}: A(\boldsymbol{\eta})<\infty\} .$ Theorem 1 : H is a convex set. Proof: Let $0<\alpha<1$ and take $\eta$ and $\eta_{1}$ in $\mathbf{H}$. Write $$ A\left(\alpha \eta+(1-\alpha) \eta_{1}\right)=\log \int_{E}\left(\exp \left(\eta^{T} \mathbf{T}(\mathbf{x})\right) h((\mathbf{x}))\right)^{\alpha}\left(\exp \left(\mathbf{\eta}_{1}^{T} \mathbf{T}(\mathbf{x})\right) h((\mathbf{x}))\right)^{1-\alpha} d \mathbf{x}$$ But $\underline{u^{\alpha} v^{1-\alpha} \leq \alpha u+(1-\alpha) v}$ (take logarithms of both sides and use the fact that the logarithm is a concave function), whence $$A\left(\alpha \eta+(1-\alpha) \eta_{1}\right) \leq \alpha A(\eta)+(1-\alpha) A\left(\eta_{1}\right)<\infty$$


I was working on the computer and installed gnome tweak tool I went to the extensions and tried to turn on system monitor ext. However, for some reason, it locked the computer up and now when I log in it keeps looping back to gdm3 login screen.


Modify arraystretch for a single row in table

I need to display fractions within a table and it requires to set  \renewcommand{\arraystretch}{2.3}   The problem is that not all rows contain fractions, and in this cases the white space below and above is too big. I can tweak it manually with something like \\[-2ex]. This works for the middle cases, though its a little inconvenient, but I have no idea how to reduce the absolute top space.   Something like   \vspace{-2ex}   has no effect.  The best would be to be able to change the arraystretch for a single table row, but the command has no effect after \begin{tabular}. How can I solve this issue?    MWE  \documentclass{article}  \usepackage{amsmath} \usepackage{booktabs}  \begin{document}  \begin{table}     \renewcommand{\arraystretch}{2.3}      \begin{tabular}{@{}c|l@{}}             \bfseries $R_x$ & Symbol\\             \hline\hline             $\dfrac{a}{b}$ & $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ & $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ & $ \dfrac{A}{B} $\\             \hline     \end{tabular} \end{table}  \end{document}   MWE with siunitx  \documentclass{article}  \usepackage{amsmath} \usepackage{booktabs} %\usepackage{siunitx} \usepackage{wrapfig}  \usepackage{cellspace} \setlength\cellspacetoplimit{4pt} \setlength\cellspacebottomlimit{4pt}  \begin{document}  \begin{wrapfigure}[14]{R}{8.5cm}     \renewcommand{\arraystretch}{2.3}      \begin{tabular}{@{}Sc|Sl@{}}             \bfseries $R_x$ & Symbol\\             \hline\hline             $\dfrac{a}{b}$ & $ \dfrac{A}{B} $\\             some text & some other text \\             $\dfrac{a}{b}$ & $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ & $ \dfrac{A}{B} $\\             \hline     \end{tabular} \end{wrapfigure}  \end{document}


I have an iOS app that requires me to have a "bank" of multiple strings. What I mean is that I need to have several strings that I can call upon at any time. Here is what I am thinking of.  // Strings.h #define STR_ONE @"1" #define STR_TWO @"2" // ...   And when I need to use these strings, I simply include the header file. I chose to go with a header file because there will be many of these strings, and I just wanted to keep them separate. So the question: Is this the best approach to solve my problem? Are there any alternate (and better) ways that I am missing?  Side notes: Is there any memory management I need to be thinking about here?             Should this be written to a file, and drawn upon from there?  Thankyou


Distinguish between normal posts and community wiki posts in Android App

In the Android App, one cannot distinguish between normal posts abs community wiki ones. Firstly example, below is a screen shot of a question from the mobile view, and the same from the app:    Screenshot from app:    Why is there an anomaly like this? This should be edited as fast as possible.


I have some trouble when applying transparency to ipe objects - colours become much more grayish. We have for instance this example (ipe capture / final pdf capture):      The problem has definitely to do with the Adobe PDF engine, because Texmaker (the software I use to write Tex) shows the correct colors in the PDF-viewer.  Is there any way to fix this problem? Any suggestion is welcome.


What is the meaning of maximum likelihood estimation?

From what I understand, MLE for a model helps us find out what parameters in the model will suit the data most.  Thus, in linear regression, we try to find $L(\theta)$ as $\prod_{i=1}^{m}p(y|x;\theta)$ i.e., we try to find what $\theta$ will suit the data points most and we already have $x$ given to us. This is similar to logistic regression, where also we maximize $\prod_{i=1}^{m}p(y|x;\theta)$. However, for GDA and Naive Bayes, we define $L(\theta)$ as $\prod_{i=1}^{m}p(y,x;\theta)$ because these are generative models and we find both $x$ and $y$ ourselves.  Is my understanding correct? If not, then why is MLE calculated differently for GDA and linear regression?


Ask for a reason why the user is rejecting and editing

Currently, when a user rejects and edits a suggested edit, Community♦ rejects it with the following reason:     This edit did not correct critical issues with the post - view the revision history to see what should have been changed.   The problem is that when I reject and edit, I would like to provide more feedback to the editor than just that. Sometimes some edits can be bad for one of the reasons mentioned in the list of reasons for rejecting, and I would therefore like to reject them for one of those reasons, but the original post contains some completely different issues that I would like to correct.  I currently see two solutions to this problem:   Simply reject the edit without editing and then hope that others also reject it and come back when they have done so. The problem is that I'm very likely to have forgotten all about it once this is done. Reject and edit anyway and hope the editor understands why the edit was rejected. This could work if someone else has already rejected the edit, but generally not.   None of these solutions are really good, and when I face this situation, which one of them I choose depends entirely on the circumstances.   is one example of an edit that I rejected and edited but that I would have liked to give a more specific reason for rejecting. That edit formats unformatted code, which is useful, but it also removes a lot of code from a question. The code that it removed may or may not have been useful, but since the edit summary didn't mention anything about the removed code, I thought that it's better to keep useless information than remove useful information, so I rejected it and edited it to format the unformatted code myself. However, I would have preferred to reject it as "clearly conflicts with the author's intent" than "does not correct the critical issues with the post", because it does correct the critical issues with the post, it just causes other issues which may be even worse.  Here is another example of a suggested edit which I have never actually reviewed, but I think it's a good example to illustrate my point.  should clearly be rejected as vandalism. However, I think that the the indentation in the code is completely useless and should be removed (). If I would have got this suggested edit I would have liked to reject and edit with the reason "vandalism", which is currently impossible.  I therefore think that when rejecting and editing, the user who rejects and edits should have a choice of a reason for rejecting it, instead of always having the same reason. These reasons should be the same as those for simply rejecting an edit, possibly changing the formulation a bit or including the reason that's currently always chosen.


Whilst voting to close this question:    I received the following alert:     The app submitted invalid meta data. Please let us know in meta.    ... or something along those lines   App Version: 1.4.1 Device: iPhone 6 OS Version: Version 9.1 (Build 13B143)


Protagonist becomes the avatar of an alien deity and has to cope with adversary god

I read this at least 20 years ago, and I believe it was originally published in the '60s.   The main character is a human, but somehow "inherits godhood" from an alien, whose species is very long lived. IIRC this is one of the old-style god thingies, i.e. "god of thunder" not "omniscient omnipotent omnipresent transcendent being".  The plot somehow revolved around identifying and fighting some enemy which, I believe, was in turn a member of the alien species who acted as the avatar of the opposite god in the alien pantheon.  The only thing I remember for sure is that the enemy was identified as "green green" or "gringrin" (sadly, I read this in translation so I am not sure what the original meant)


Finding basis of $\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5})$ over $\mathbb{Q}$

I'm having trouble finding a basis for $\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5})$. So far I know that $[K=\mathbb{Q}(\sqrt{2}):\mathbb{Q}] = 2$ and $[L=\mathbb{Q}(\sqrt{2}, \sqrt{3}):K] = 2$, but it's harder to extend $L$ to $L(\sqrt{5})$. Namely I'm trying to prove that $x^2-5$ is irreducible over $L$ by showing that $\sqrt{5} \notin L$ as follows:  Assume by contradiction that $\sqrt{5} \in L$. Then we have   $$\sqrt{5} = a + b\sqrt{2} + c\sqrt{3} + d\sqrt{6}$$ with $a,b,c \in \mathbb{Q}$. Squaring both sides and using independence of basis gives the following nasty system of equations:  $$-5+a^2+2b^2+3c^2+6d^2 = 0$$ $$ab + 3cd = 0$$ $$ac + 2bd = 0$$ $$ad + bc = 0$$  I can't see how these equations contradict the assumption that $\sqrt{5} \in L$.


Is there any software on ubuntu to float my screenshot on the screen, like the snappy for mac?

As the title explained, I'm eager to find an alternative software on Ubuntu which can make my screenshot floating on the screen, just like the snappy application on macOS. But after googling for a while I didn't manage to get a good answer. Would you like to give me some advice? Thanks for your time.


Can't find an escaped string in the data base

In the database I have a string like this: Caisse primaire d'assurance maladie  Now when I try to look for it in my PHP script, it returns no items.  $array=array("Caisse primaire d'assurance maladie","Mairies","Hotels"); $in_list = "'".implode("','",$array)."'";  $stmt = $this->db->prepare('SELECT libelle,activite,adresse,tel,lat,lng FROM etablissements where type IN ('.$in_list.')'); $stmt->execute(); $stmt->bind_result($libelle,$activite,$adresse,$tel,$lat,$lng);//the $stmt is empty   Now, if i try to look for Mairies only or Hotels only it would return me a result. That mean that the apostrophe is preventing my prepared query from running correctly. How can I fix this?


Is there a way to see the pokestops and gyms on a map?

I'm on vacation on a pretty rural area and there is only 3 pokestops and a gym around me. I wonder how many pokestops and gyms are near my house in another city.   Is there a way to see pokestops and gyms in other places in a map (preferably online)?    There seems so be loads of websites linked. While posting your own website is allowed (as long as it answers the question properly) please keep in mind that stating your affiliation is required (Add something like "Disclaimer: I own this website" to the end of your answer) in order to avoid being spam flagged.


Combine two dictionaries with preference to one of them -

I have two dictionaries One: default = {"val1": 10, "val2": 20, "val3": 30, "val4": 40}  Two: parsed = {"val1": 60, "val2": 50}  Now, I want to combine these two dictionaries in such a way that values for the keys present in both the dictionaries are taken from the parsed dictionary and for rest of the keys in default and their values are put in to the new dictionary. For the above given dictionary the newly created dictionary would be, updated = {"val1": 60, "val2": 50, "val3": 30, "val4": 40}  The obvious way to code up this would be to loop through the keys in default and check if that is present in parsed and put then into a new list updated, and in the else clause of the same check we can use values from default. I am not sure if this is a pythonic way to do it or a much cleaner method. Could someone help on this?


What resolution images could I use for posters on the wall?

If I wanted to print an image found online and get a typical 27" x 40" sized poster what resolution image do I need? 4000 x 6000 or double that? I am confused over DPI and PPI.


How would I populate a cell with a symbol (for example x) and for that x to convert to currency (for example £4) Could the x also relate another currency in a different cell (for example £10). I then need to be able to add all cells. I am trying to create a register. Thank you


A commutative ring is a field iff the only ideals are $(0)$ and $(1)$

Let $R$ be a commutative ring with identity. Show that $R$ is a field if and only if the only ideals of $R$ are $R$ itself and the zero ideal $(0)$.  I can't figure out where to start other that I need to prove some biconditional statement. Any help?


Finding the degree of a differential equation

I am trying to find the degree of the following differential equation: $$ \sqrt{\frac{d^2y}{dx^2}}+\frac{dy}{dx}=y^3. $$ I am not $100$% sure, but I know (correct me if I'm wrong) that for a differential equation to have a degree, it has to be able to be represented as a linear polynomial like the following : $a_{0}(x)y+a_{1}(x)y'+a_{2}(x)y''+...+a_{n}(x)y^{(n)}+b(x)=0$ Therefore, I did the following reasoning : $\sqrt{\frac{d^2y}{dx^2}}+\frac{dy}{dx}=y^3\Rightarrow \sqrt{\frac{d^2y}{dx^2}}=y^3-\frac{dy}{dx}\Rightarrow \frac{d^2y}{dx^2}=(y^3-\frac{dy}{dx})^2\Rightarrow \frac{d^2y}{dx^2}=y^6-2y^3\frac{dy}{dx}+(\frac{dy}{dx})^2\Rightarrow -y^6+(2y^3-\frac{dy}{dx})\frac{dy}{dx}+\frac{d^2y}{dx^2}=0$ After representing the differential equation in a linear polynomial form, I concluded that the degree of the differential equation is $1$. But for some reason, the term: $(2y^3-\frac{dy}{dx})\frac{dy}{dx}$, puts me off and I don't know if this is considered to be a linear term. If any of you people could help me out, that would be very kind of you.


How to migrate images in Gmail over to Google Photos?

I am approaching the 15GB limit of Google's free storage for Gmail and Drive. I have a lot of screenshots that I have sent with Gmail. I want to free up space but I don't want to delete any emails. Given that Google Photos will start counting newly added photos and videos towards this common Google storage quota, but not for the items uploaded prior to 2021-06-01, I want to move the images embedded within my Gmail messages to Google Photos and leave a link to the photo in Google Photos in the email. I have searched for quite long for a solution to automate this but so far I haven't found any solution. How to migrate embedded/attached images in Gmail to Google Photos and leave a link in the email to the moved location? Ideally I would love to see images in the emails as they are now by using <img src="https://photos.app.goo.gl/someRandomString"/> in the emails.


When I open an app and then I'm dong using it I usually just push the home button. The problem is that leaves the app open and if you do that too many times it slows down your phone. My question is what is the correct way to close an app after you're doing using it without pressing the home button?  Or is pressing the home button and then sliding it away the correct way of closing an app?


I want to send an array as an Ajax request:  info[0] = 'hi'; info[1] = 'hello';  $.ajax({   type: "POST",   url: "index.php",   success: function(msg){     $('.answer').html(msg);   } });   How can I do this?


Beef casserole partially cooked this morning and left in the oven to cook later - is this OK?

I partially cooked a beef casserole this morning (about 8am) and left it in the oven to finish cooking between 4pm and 6pm tonight.  Is this going to be OK? or will I make my family ill?


In minecraft it says I can't play games because I have to update my client. Also, 2 of the servers say X-1.6.2 so am I in 1.6.3? It also says that I can't play some servers because they are 1.6.4. How can I update Minecraft?


Strange NullPointerException on .getFirst()

Hello stackoverflow world! There comes a time when the answer you're looking for is not already here and so you'll have to ask.  My issue is I'm checking for null values using an if statement and I'm still getting a NullPointerException.  I'm having my app tested by someone and they run into a NullPointerException but I'm not able to recreate the bug for the life of me. making it harder to pinpoint the issue.  This is the CrashReport on dev console for the app:  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dev.admin.blacklist/com.dev.admin.blacklist.Page_RecentCalls}: java.lang.NullPointerException     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2391)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)     at android.app.ActivityThread.access$800(ActivityThread.java:166)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)     at android.os.Handler.dispatchMessage(Handler.java:110)     at android.os.Looper.loop(Looper.java:193)     at android.app.ActivityThread.main(ActivityThread.java:5387)     at java.lang.reflect.Method.invokeNative(Native Method)     at java.lang.reflect.Method.invoke(Method.java:515)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:831)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:647)     at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException     at com.dev.admin.blacklist.Page_RecentCalls.getRecentContacts(Page_RecentCalls.java:110)     at com.dev.admin.blacklist.Page_RecentCalls.onCreate(Page_RecentCalls.java:32)     at android.app.Activity.performCreate(Activity.java:5363)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2335)     ... 11 more   and this is the line 110 that is throwing this error:      Cursor cursor = getContentResolver().query(queryUri, projection, null, null, sortOrder);       while (cursor.moveToNext())     {         String phoneNumber =  cursor.getString(cursor.getColumnIndex(CallLog.Calls.NUMBER));         String title = (cursor.getString(cursor.getColumnIndex(CallLog.Calls.CACHED_NAME)));         if(phoneNumber != null && !phoneNumber.isEmpty() && !phoneNumber.equals(manager.getVoiceMailNumber().toString()))         {             if(title == null || title.isEmpty())title = "No-name";             if(recentcontacts.size() > 1 )             {                 String one = "";                  one = recentcontacts.get(recentcontacts.size() - 1).getFirst(); //Line 110 error was here                 if(!one.equals(title)) recentcontacts.add(new Object_TwoString(title,phoneNumber));             }             else  recentcontacts.add(new Object_TwoString(title,phoneNumber));         }      }     cursor.close();     return recentcontacts; } }     public Object_TwoString(String one, String two) {     setStrings(one,two); }  public String[] getStrings(){ String[] strings = {firstString,secondString}; return strings;} public String getFirst(){return firstString;} public String getSecond(){return secondString;}  public Boolean IsContained(List<Object_TwoString> obj) {     for(Object_TwoString  ts: obj)     {         if(ts.getFirst().equals(firstString) && ts.getSecond().equals(secondString))return true;     }     return false; }


I have never used Ubuntu or any other Linux OS before last Friday. For all I know, I might have installed Ubuntu wrong and be missing a component. I would prefer if you use simplest terminology possible, but I'm OK with doing a bit of googling if need be. I just installed Steam for Ubuntu 16.04 but it won't open when I click on it in the launcher. The icon flashes for a few seconds, stops and then nothing happens. I looked in the system monitor and steam shows up there but ending the process and trying again does nothing. I heard trying to open apps that aren't working through the terminal tells you what the error is so I tried that and I got this:  Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast   Please help I just want to play CS:GO again.


Are meta site questions linked to each other?

I do not know if this is feasible, as I do not know the current design of meta sites.  This also might have been implemented already, for all I know.  I think that , questions with certain tags should be displayed indiscriminately across all meta sites, and belong to none in particular.  These questions would be the questions which apply to the entire SE site network, but not a particular site in general.  Questions such as general etiquette, feature requests, anything tagged with 'stackexchange' or 'stack-exchange', etc. should be spread across all meta sites.  One way to do this is to keep the question on the meta site it was originally posted in but include it in searches across any meta site.  The main reason to do this would be to try and reduce how often redundant questions are asked.  To that effect, .  However, I think that it wouldn't be very hard at that point to include it in searches as well.  The only alternative method I can think of would be to create a new site-wide meta questions site, which would be infinitely more cumbersome to the developers and the moderators who must migrate the questions.  Overall, I don't like posting duplicate questions, even if they are duplicates of meta questions from other sites.  I think it would be nice if all these questions with certain qualified tags were either made site-wide and inspecific to any site or at least indexed in all searches and included in the "similar questions" category (when asking a question).  Wouldn't it be ironic if somebody found a duplicate of this question from another meta site? :)


Correct usage of date format in a sentence

I have an example here.     Payment of $45 from 20 Aug 16 to 20 Sep 16 has been made successfully.   Is is right to frame a date this way for the user to read it easily or is there any other way to format a date in sentences like above?


Expanding two-variable function $f(x,y)$ over the complete sets $\{ g_{i}(x) \}$ and $\{ h_{j}(y) \}$

Quite often (see, for example, this ) when discussing the Born-Oppenheimer approximation the following assertion is made: any well-behaved function of two independent variables $f(x,y)$ can always be expanded over the complete set of functions $\{ g_{i}(x) \}$ and $\{ h_{j}(y) \}$ in the following way $$ f(x,y) = \sum\limits_{i} \sum\limits_{j} c_{ij} g_{i}(x) h_{j}(y) \, , \quad (1) $$ or by defining $$ c_{j}(x) = \sum\limits_{i} c_{ij} g_{i}(x) \, , $$ as $$ f(x,y) = \sum\limits_{j} c_{j}(x) h_{j}(y) \, . $$  Sometimes an argument in favor of the statement above is that it is equivalent to expanding a function of one variable $f(y)$ over the complete set of functions $\{ h_{j}(y) \}$ $$ f(y) = \sum\limits_{j} c_{j} h_{j}(y) \, , $$ with the difference that coefficients $c_{j}$ in the former case carry the $x$-dependence.  For me it seems like this argument is a bit far-fetched. So my question is: how do we know that (1) is true? Is it a theorem, or an axiom, or something?


Length of time interval for an atom in excited state to drop to lower energy level

This is either a basic question or one that doesn't make any sense, but here goes.  If I have an atom in an excited state (1st energy level or 2nd or more), how long does it take to drop to a lower energy state? Is there a predefined time or are there different time periods for different isotopes/elements?   If it's different for different isotopes, I'd imagine the results are tabulated somewhere. If that's the case, where?  Hopefully that makes sense.


How does entropy depend on location and scale?

The entropy of a continuous distribution with density function $f$ is defined to be the negative of the expectation of $\log(f),$ and therefore equals  $$H_f = -\int_{-\infty}^{\infty} \log(f(x)) f(x)\mathrm{d}x.$$  We also say that any random variable $X$ whose distribution has density $f$ has entropy $H_f.$  (This integral is well-defined even when $f$ has zeros, because $\log(f(x))f(x)$ can be taken to equal zero at such values.)  When $X$ and $Y$ are random variables for which $Y = X+\mu$ ($\mu$ is a constant), $Y$ is said to be a version of $X$ shifted by $\mu.$  Similarly, when $Y = X\sigma$ ($\sigma$ is a positive constant), $Y$ is said to be a version of $X$ scaled by $\sigma.$ Combining a scale with a shift gives $Y=X\sigma + \mu.$  These relations occur frequently.  For instance, changing the units of measurement of $X$ shifts and scales it.  How is the entropy of $Y = X\sigma + \mu$ related to that of $X?$


jquery .on() method with selector not working for dynamic button

I have some code where I add a button dynamically to the page.  Next   I am using the .on() method with the selector parameter but nothing is happening when I click the button. I saw that other people had a similar problem for dynamically added elements but they were missing the selector and adding it solved it.  $(".next").on("click", ".next", function() {      alert(“next page");  });   I've put the button in the main body of my page when it loads and it works fine. It just doesn't work when it gets added to the page later.


Can anyone show that:  $\mathbf{a_{\perp}}=\mathbf{a}-\frac{\mathbf{x}\mathbf{x}^T}{\mathbf{x}^T\mathbf{x}}\mathbf{a}$,  $\mathbf{a}\in\mathbb{R}^N$, $\mathbf{x}=(1,1,\dots,1)^T\in\mathbb{R}^N$  results in $\mathbf{a}$ becoming orthogonal to $\mathbf{x}$?  Thank you for your help.


Why cat command doesn't use its command environment?

AFAIK, cat is an external command and it forks off a new process when executed, just like sh -c or executing a script. With that said I expect cat to  use its command environment as it is used by other external command, like    f=test.txt sh -c 'cat "$f"'   Shouldn't this display the content of the file   f=test.txt cat $f       ?    Note: I am not asking what is  someVariable=someValue command. I am asking why first example uses its command variable but not the second one. The way variable expansion is happening in second example it should happen in first example.


Google "answering" my search with link to SE, but not showing the top answer(s)

I googled .  Like (almost) always, SE was first.  However, they actually answered my question in a fancy box!    I read it, and clicked the link because I needed to know how many upvotes the answer got. It got 2 upvotes and is near the bottom, since there are many answers to this question.  The top (selected) answer has 317, and is also the description being pulled for the second top listing, as shown above.  Here is the question:   I would think this should be fixed, but maybe it is intentional, as the shown answer DOES agree with the top answer, and is short enough to fit properly.


In  Deathly Hallows, when Harry, Ron, and Hermione are at No. 12, Grimmauld Place, Harry summons Kreacher from the kitchens at Hogwarts where the elf has been working on Harry’s orders given a year previously.  When the trio’s heist in the Ministry of Magic ends with Hermione inadvertently bringing Yaxley inside the perimeter of the Fidelius charm that protects Grimmauld Place, the trio leg it and dare not return there for fear that it’s now crawling with Death Eaters.  Before they leave for the Ministry in the morning, Kreacher is talking about making a stew or pot roast or something for dinner. After the trio go on the run and camp out in the tent, Harry thinks of poor Kreacher preparing a dinner they’ll never return to eat, but they dare not summon him lest a Death Eater tag along (like how Dobby ‘tagged along’ with Kreacher when Harry called him to have him follow Draco in Half-Blood Prince).  The next time we see Kreacher is during the Battle of Hogwarts where he leads the house-elves from the kitchen with battle-cries of “For Master! For Harry Potter!” (or something like that), so he’s clearly lost none of his new-found loyalty to Harry.  Harry is still Kreacher’s master throughout the book, and since he does not communicate at all with Kreacher after their escape from the doorstep, he cannot have ordered Kreacher to return to Hogwarts to work there again.  We know that house-elves can go against their masters’ wishes, but this usually entails them punishing themselves rather brutally, and Kreacher does not seem to have been constantly injuring himself for the better part of a year at Hogwarts.  So when and how does Kreacher leave his master’s house without orders and return to Hogwarts?


Why does the wavelength gets shorter in the denser medium in refraction?

In the refraction, the wavelength gets shorter if it enters denser medium. Why is that happening? Is it just a phenomenon?


I'm a newbie in electronics. I'm trying to build a calculator from scratch as a simple project and side hobby to keep me busy.  My goal is to build a simple calculator, not a scientific or graphing calculator, although I don't mind receiving information about how to do that either, just for kicks.  Is there a good tutorial for this? How should I start?


My Japanese friend asked me why we can say "Is he gone?" but we can't say "Is he arrived yet?". I corrected it to "Has he arrived yet?".  I'm not sure how to explain this grammatically :( Can someone please help me? Thank you.


What is the mathematical term for an operation that is self reversing?  For example:   Multiplying by -1 1/x   In general:  f(f(x)) = x


I was able to read and write NTFS filesystems normally in Mountain Lion, but after the upgrade this stopped to work.  I installed ntfs-3g and fuse4x using homebrew in Mountain Lion and followed the instructions displayed by homebrew to finish the installation of fuse4x kernel extension.  To try to solve this problem I removed ntfs-3g, fuse4x and fuse4x-kext and reinstalled them. But this didn't solve my problem.  Does anyone know how to solve this? Thanks.


Where are Windows 10 desktop wallpapers stored?

I plugged in a thumb drive to my pc, right-clicked on an image, and chose 'Set as desktop background'. The thumb drive was subsequently stolen. Windows obviously creates a copy on the image since it remains as the desktop background even after the thumb drive is removed. My question is, where exactly is this file stored?


Will be glad for a little hint: let x and n be positive integer such that $1+x+x^2+\dots+x^{n-1}$ is a prime number then show that n is prime


Individual and Collective Terms for Family Members

How come some family relationships have individual gender specific terms  and collective terms, while some have only one?  The adults who are responsible for conceiving, birthing, and raising you are collectively called "parents" and individually "mother" and "father".   The people that you conceive, birth and raise are collectively called your "children" or individually "daughter" or "son"  Your parents's parents are collectively called "grandparents" or individually "grandmother" and "grandfather" (amongst other affectionate terms). We also can continue with greats, great-great, etc.  People who have the same parents as you are collectively called "siblings" and individually called "sister" and "brother"  These relationship are directly in your family tree. But other relationships that are "one-offs" lack either the collective or gender-specific term.  Your parents' siblings are individually called your "aunt" and "uncles", but (as far as I know) there is no collective term to refer to your aunts and uncles together.  Your siblings' children are individually called your "niece" and "nephew", but no collective term exists for this grouping.  Your parents' siblings' children are your "cousins" but there is not gender-specific term for your female or male cousins.  This has always interested me, and I have coined my own phases for this missing labels: I have auncles, fecousin, macousins, and niecphews.  Any thoughts?


What's the difference between 'part of' and 'a part of '？

I usually see these sentences containing 'part of' or 'a part of' ,like  1.An apartment or compartment is part of a larger whole.  2.He spends at least a part of his time in reading.  What's the difference beween them, and how to use them in different conditions? Thanks a lot.


Adobe Illustrator: Deboss or Engrave Effect

I'd like to create a realistic debossed (indented), recessed or engraved effect. Often seen on tactile commercial products, particularly for embellishing text and symbols. Here's an example of a gear stick that I'd like to illustrate (birdseye view or whatever is fine); with the gear numbers and shifting pattern debossed on the top:   Another prevalent example is hand-tools, like this open-ended spanner, featuring a combination of both debossed and embossed styling:   It has a bit of a 3D look and feel to it, but can be represented in 2D.


Question regarding finding inverse of a matrix

The most common method to find the inverse of a invertible square matrix is to apply row operations to the matrix and reduce it to the identity matrix.  An row operation is applied to the matrix by doing a left multiplication by an elementary matrix.   Denote the elementary matrices as $E_1, E_2, ... , E_n$ , then  $(E_1, E_2, ... , E_n)A = I$ , where $E_1, E_2, ... , E_n$ is the inverse of $A$.  However, the procedure to check whether two matrices $A$ , $B$ are the inverse of each other is to check that $AB=I$ and $BA=I$.  Why do we claim that $(E_1, E_2, ... , E_n)$ is the inverse of $A$ without checking that $A(E_1, E_2, ... , E_n) = I$ ?


Hi I need to know about a sticky notes application in ubuntu similar to that of windows which pops up every time I boot my system as if a start up application.