Is there a more user friendly way to figure out where your question fits?

I often find it intimidating to try and figure out where my question fits.   And will often end up posting in the wrong spot. Then I will get sent links to meta sites with large amounts of text, explaining why my question does not live there. These meta sites do great work in setting out clear rules, but there is a large amount of information to process.  I fully support the need to maintain the quality of these sites. But I find the user experience is a little lacking.   Am I just going about this the wrong way?


(From a foreign speaker : ) I'm lucky enough to live with the man I love, but we're not married, nor having any "official" marital life. How should I refer to him ? He's a divorced man and will never be a "husband" again, and I don't feel like using the word "boyfriend" since both of us are over 50 ! The American "partner" sounds a bit too "raw" to me, and the Canadian "chum" doesn't befit the man either.  I sometimes need to refer to him when talking to British as well as American guests.


Blacklisting / Removing driver for a particular VID/PID

This is in continuation of my previous problem.   Here i have 2 usbserial hardware modules and it is provisionised that only one can be used at a time.   1. 0403:6014 2. 0403:6001   I also wanted to make sure device is R/W accesble to "plugdev" group  For device 0403:6014, I do not want to use inbuilt usbserial(ftdi_sio) driver. I want to access this device using FTD2XXX library. and for device  0403:6001, I want to use inbulit  usbserial(ftdi_sio) driver. I am trying to find a common way to acheive this.  Trails which I attempted so far. Since,  0403:6001 device uses inbuilt linux driver, I am trying to remove / blacklist ( 0403:6014 ) driver while loading    TRIAL 1  ACTION=="add", SUBSYSTEMS=="usb",  KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014",  RUN+="/usr/local/bin/rmmod.sh 4", GROUP="plugdev"  This removes the loaded FTDI driver, but it does not change the device group from ROOT to PLUGDEV   So address that issue added one more rule line   TRIAL 2  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="plugdev" ACTION=="add", SUBSYSTEMS=="usb",  KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", RUN+="/usr/local/bin/rmmod.sh 4"  This trial sets my device GROUP as expected to "plugdev", but this does not remove the kernel usbserial module. TRIAL 3  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="plugdev"  Added ftdi_sio to  /etc/modprobe.d/blacklist.conf , but this blacklists my  0403:6001 completely.   This approach works well for 0403:6014 but this completely obseltes my 0403:6001 device   Request some guidance to fix this issue


In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False?

I am studying entailment in classical first-order logic.  The Truth Table we have been presented with for the statement $(p \Rightarrow q)\;$ (a.k.a. '$p$ implies $q$') is: $$\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$  I 'get' lines 1, 2, and 3, but I do not understand line 4.      Why is the statement $(p \Rightarrow q)$ True if both p and q are False?  We have also been told that $(p \Rightarrow q)$ is logically equivalent to $(~p || q)$ (that is $\lnot p \lor q$).  Stemming from my lack of understanding of line 4 of the Truth Table, I do not understand why this equivalence is accurate.       Administrative note. You may experience being directed here even though your question was actually about line 3 of the truth table instead. In that case, see the companion question  And even if your original worry was about line 4, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.


public class Project9 {     public static void main(String args[])     {         InventoryItem[] items = new InventoryItem[3];          items[0] = new InventoryItem("Coffee", 1);         items[1] = new InventoryItem("Pencils", 2);         items[2] = new InventoryItem("Notebooks", 3);          System.out.println("Before sorting");         System.out.println(items[0]);         System.out.println(items[1]);         System.out.println(items[2]);          InventoryItem.sort(items, items.length);          System.out.println("After sorting");         System.out.println(items[0]);         System.out.println(items[1]);         System.out.println(items[2]);     } }  class InventoryItem implements Comparable<InventoryItem> {     private String name;     private int uniqueItemID;      public InventoryItem()     {         name = " ";         uniqueItemID = 0;     }      public InventoryItem(String newName, int newItemID)     {         name = newName;         uniqueItemID = newItemID;     }      public InventoryItem(InventoryItem i)     {         name = i.name;         uniqueItemID = i.uniqueItemID;     }      public void setName(String newName)     {         name = newName;     }      public void setItemID(int newItemID)     {         uniqueItemID = newItemID;     }      public int getItemID()     {         return uniqueItemID;     }      public String getName()     {         return name;     }      public int compareTo(InventoryItem i)     {         int anotherUniqueID = ((InventoryItem) i).getItemID();         return (this.uniqueItemID - anotherUniqueID);     }      public static void sort(Comparable[] a, int numberUsed)     {         int index, indexOfNextSmallest;          for(index = 0; index < numberUsed - 1; index++)         {             indexOfNextSmallest = indexOfSmallest(index, a, numberUsed);             interchange(index, indexOfNextSmallest, a);         }     }      private static int indexOfSmallest(int startIndex, Comparable[] a, int numberUsed)     {         Comparable min = a[startIndex];         int indexOfMin = startIndex;         int index;          for(index = startIndex + 1; index < numberUsed; index++)         {             if(a[index].compareTo(min) < 0)             {                 min = a[index];                 indexOfMin = index;             }         }         return indexOfMin;     }      private static void interchange(int i, int j, Comparable[] a)     {         Comparable temp;         temp = a[i];         a[i] = a[j];         a[j] = temp;     } }   When I compile my code it throws the error message "Project9.java uses unchecked or unsafe operations."   When I recompile with Xlint:unchecked like it recommends, I get this message "warning: [unchecked] unchecked call to compareTo(T) as a member of the raw type Comparable          if(a[index].compareTo(min) < 0)                              ^   where T is a type-variable:  T extends Object declared in interface Comparable   What do I need to do/understand so I can fix this? Many thanks!


Firstly excuse my english, I have one question. Protected modifier expose to all classes in the same package and to all subclasses in different packages. Isn't it useless? when you have it in your package with class with main method it act like public, and if you have it in different package with all subclasses you don't have to use any modifier becauce any modifier expose only to package, am i right?


How do you set durability AND add a enchant onto a item?

I wanted to make an overpowered one-time hit sword that deals knockback and blinds the player who was attacked. The command for adding enchants is : /give @p diamond_sword{Enchantments:[{id:"minecraft:STUFF",lvl:SOMETHING},{id:"minecraft:STUFF",lvl:SOMETHING}]}  Is it possible to combine the durability command with the enchant command?


Our company will be appearing on a prime time TV show this week, and they've told us we can expect around 200,000 visitors on our website all at once.  We normally only get about 100 visits per day, so I've no idea if we can handle that much traffic. We're hosted by 1and1.co.uk.  Are there any precautions we can take to prevent our site getting crippled?


Questions on the integration $\int_0^\infty e^{-(x^2+a^2/x^2)}dx$

Let $F(a):=\int_0^\infty e^{-(x^2+a^2/x^2)}dx$ with $a>0$. My questions are as follows:  (1) Calculate $\lim_{a \to 0^+}F(a)$. (2) Show that $F'(a)=-2F(a)$. (3) Calculate $F(a)$.  It seems to me that the well-known Gaussian integral $\int_0^\infty e^{-x^2}dx=\sqrt \pi/2$ plays some role here. However, if I set $t=x+a/x$ then $dt=(1-a/x^2)dx$. I'm stuck in finding a function $f$ so that $1-a/x^2=f(t).$ For part (2), I don't quite understand how to find the derivative of $F(a)$. It seems that we need to find the closed-form of $F(a)$ first. Assume that I am given part (2) to solve part (3). Is it true that $F(a)=e^{-2a+\ln(\sqrt \pi/2)}$? Any help would be much appreciated.


I was wondering if adding http:// into my links was a bad thing for SEO optimization.  I know that is unnecessary but I have several links that are displayed in multiple subdomains.  I try to explain it better:   The main site is in http://www.example.com and in every page there are some links to other pages I have, for example, http://search.example.com and http://account.example.com that has the same header with links that point to http://www.example.com   So, my question is, if the spyder goes to http://www.example.com and finds several links that point to http://www.example.com/page1 instead of /page1, ecc. would this hurt indexing?


Prediction interval on untransformed scale

I am attempting to use simple linear regression to construct a 95% prediction interval for a continuous response variable (Y) using a continuous input variable (X). When examining my data, I realized that if I log-transform both X and Y, the assumptions of equal variance and normality are essentially met, but if I do not log transform both variables, they are not. I'm able to run all of the R code needed to get the prediction interval for the transformed data, and I've read online and elsewhere how to interpret this interval. However, is there a way to get a 95% prediction interval on the untransformed scale using the 95% prediction interval on the log-transformed scale? In other words, I'm interested in talking about the conditional mean response instead of the median response (which, according to what I've read, is how I must interpret my prediction interval). I could exponentiate the interval endpoints, but I'm fairly sure that's incorrect because E(e^{Y}) is usually not equal to e^{E(Y)}.


How to make my site's categories appear in Google results?

I would like my site's categories to appear in the Google results. For example the , etc.  Is there any module for this? Has this to do with RDF, microformats, or rich snippnets?


Keyboard Fn Function key switchUsing language

Using Macbook Air M1. The keyboard Fn (Function) key has a globe icon to switch between languages. It works but a bit quirky. When it's not working, it tries to switch language but couldn't, and when I switch screen, the language switching dialog keeps popping up. To make the keyboard Fn key work again in switching language, I have to restart my computer. See video attached - the Fn key is not even pressed.


let $f(x)=xa^{\frac{1}{x}}-x$ for positive $x,a\in \mathbb{R}$  Show that $f(x)$ is decreasing on $(0, \infty)$.  I am trying to show that $f'(x)= a^{\frac{1}{x}}(1-\frac{ln(a)}{x})-1$ is always negative.  To do that, I am thinking about showing that finding a max/min for $f'(x)$ by solving for $f''(x) = 0$ then prove that what we found was indeed a maximum by calculating $f'''(x)$ but then things get ugly.  So I'm wondering if there is a easier way.


Start by ignoring all of the advice posted here:   Then you can do this:  #!/usr/bin/env bash while read channel do     for property in $(xfconf-query -l -c $channel)     do         xfconf-query -c $channel -r -p $property     done done < channels.txt   ...  $ cat channels.txt displays ristretto thunar xfce4-desktop xfce4-keyboard-shortcuts xfce4-notifyd xfce4-panel xfce4-power-manager xfce4-session xfce4-settings-editor xfce4-settings-manager xfwm4 xsettings   Why is this a question? I don't have Stack Exchange points needed to reply to the actual thread.   Somebody please do the needful.


Is there a way to say from the 20th row to the last row? Instead of saying 9999999999, I would like to replace it with something like the last row. Is that possible?  SELECT name from names limit 20, 9999999999


I want to install Ubuntu onto my sandisk usb stick NOT onto my hard drive win 10. There isn't enough room (with all my other stuff) and I don't want to overwrite (as bad as win 10 is). Plus I want the luxury of mobility - tablet to pc and vice versa and even external!!!


I have encountered a problem or atleast that's what I think, I have recently started an ec2 instance and I changed my A records at Godaddy to point to my new elastic ip and it worked fine and then I signed up to Route 53 and changed the name servers at Godaddy and imported the DNS zone file to Route 53 and it all worked fine, but for some reason when I do whois search for my domain I get Godaddy's ip address, but my site loads fine.  Here is the link for whois records:   The reason this question aries in my mind is because I have seen other site's whois with ec2 and route 53 and they seem to be normal here is the example:   Thanks in advance  Ankit Yadav


How do I know the command to check if an application is installed on my computer or not?

I had recently installed a version of VMWare Workstation that I had to uninstall and to look for instructions about doing so I came across  thread.  It stated writing this command to see if there was any version of VMWare Workstation installed:     vmware-installer -l   So what I want to know is, just like the quoted command for VMWare, how do I know about other commands that exist to let me know if a particular product is installed on my computer or not?  Thanks for looking in.


I've taken the regular expressions from a website some time ago, and now I'm trying to fix some issues but I'm terrible with regular expressions, I'm just learning, any help would be appreciated.  What am I doing wrong here?   function validateEmail(email) {      var reg1 = /^([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example@mail.com     var reg2 = /^([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example@mail.test.com     var reg3 = /^([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example.test@mail.test.com     var reg4 = /^([a-zA-Z0-9])+\.+@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example.test@mail.com      return reg1.test(email) || reg2.test(email) || reg3.test(email) || reg4.test(email)   }   I need to accept mails in this formats:  example@mail.com example@mail.test.com example.test@mail.test.com example.test@mail.com   reg1 and reg2 are working, reg3 and reg4 are not working.  Last edit:  I've tried to fix it like this, didn't work properly neither:  function validateEmail(email) {      var reg1 = /^([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example@mail.com     var reg2 = /^([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example@mail.test.com     var reg3 = /^([a-zA-Z0-9])+\.+([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example.test@mail.test.com     var reg4 = /^([a-zA-Z0-9])+\.+([a-zA-Z0-9])+\@([a-zA-Z0-9])+\.+([a-zA-Z0-9])+$/; // example.test@mail.com      return reg1.test(email) || reg2.test(email) || reg3.test(email) || reg4.test(email)   }


Shading issue with parametric modelling and booleans

I'm new to Blender and I started to learn by modeling an old camera lens with the help of this excellent tutorial on parametric non-destructive modeling:  I've now encountered a problem that I can't seem to find a solution. I have modeled the lens body with only about 100 vertices and a screw modifier.  I then used BoolTool to create screw holes into the lens body. However, this somehow messes the topology and creates these ugly shading issues.  Does anyone have an idea how to fix the shading without applying the screw modifier? I would like to maintain the fast editability of the lens body. I have tried increasing the steps of the screw modifier and moving the place of the screw hole a little bit, but none of them removed the issue, just changed the appearance a little. Thanks in advance!


A friend of mine got Dominion for Christmas, and while the game plays wonderfully (I'm hooked), we were both confused by the randomizer deck.    Why are there Curse, Copper, Silver, Gold, and victory point cards in the randomizer deck, when they're needed for every game?  We figured out we would remove those cards from the randomizer deck before dealing out 10 of the Kingdom cards to set up the game, but why bother having the above-named cards in the deck in the first place?  Are we missing something?


How can I find matrices satisfying these commutation relations?

Problem 1.58 in  ask us to find the dimension of the Lie algebra generated by $x$ and $y$ with defining relations $[x,[x,y]]=0$ and $[y,[y,[y,[y,x]]]]=0$.  I've managed to show that the algebra is spanned by the six elements $x$, $y$, $z$, $w$, $v$, $u$ with $[y,x]=z$, $[y,z]=w$, $[y,w]=v$, $[z,w]=[v,x]=u$, and all other brackets equal to $0$. But to show that the algebra has dimension 6, and not less than 6, I need to show that these elements are linearly independent. My strategy for that is to find six linearly independent matrices that satisfy those commutation relations, but I can't for the life of me figure out how.  Is there any good way to find matrices that satisfy those relations, or is there a better strategy to tackle this problem?   addresses part (b) of the same problem, but unfortunately it doesn't help here - when we change $ad(y)^4$ to $ad(y)^5$ the structure changes significantly (in particular, it becomes infinite dimensional), and that question doesn't cover any general methods.


I have just installed Ubuntu for the first time  I cant get my bluetooth to turn on.  I ran a couple of commands and these are the results:  $ sudo rfkill list   0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   $ sudo rfkill unblock bluetooth $ sudo rfkill list  0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   $ dmesg | grep Blue  [   16.575002] Bluetooth: Core ver 2.21 [   16.575014] Bluetooth: HCI device and connection manager initialized [   16.575016] Bluetooth: HCI socket layer initialized [   16.575018] Bluetooth: L2CAP socket layer initialized [   16.575021] Bluetooth: SCO socket layer initialized [   19.060274] Bluetooth: hci0 command 0x1001 tx timeout [   27.056612] Bluetooth: hci0: BCM: Reading local version info failed (-110) [   27.061648] Bluetooth: hci0: BCM: chip id 70 [   27.077663] Bluetooth: hci0: BCM43142A [   27.077667] Bluetooth: hci0: BCM (001.001.011) build 0000 [   27.535077] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [   34.933334] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   34.933337] Bluetooth: BNEP filters: protocol multicast [   34.933341] Bluetooth: BNEP socket layer initialized   $ lspci -knn | grep Net -A2; lsusb  04:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]     Kernel driver in use: wl Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 138a:0050 Validity Sensors, Inc. Swipe Fingerprint Sensor Bus 001 Device 003: ID 064e:930a Suyin Corp.  Bus 001 Device 002: ID 0a5c:216d Broadcom Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


This plant was found growing in Germany. I have never seen it before, reverse Google image search did not help either. Can you help me identify what type of plant this is?      Thanks, looks like it is something like this:    Related question:


I stored a decimal value 0.57 as number (10,2) in the database. When I retrieve the value on my screen using Ruby on Rails it shows 0.570000000001


What do you call an unsupported roof that juts out over the entrance to a building?

Here is a sample picture:    Do we call this a cantilevered roof? Or is there a more apt description?


This notation has come up in a paper I'm co-working on.  We're currently calling $$\{\{1\},\{2\},\ldots,\{n\}\}$$ the partition of singletons.  This name seems suitable.  However, I'm not sure what to call $$\{\{1,2,\ldots,n\}\},$$ and I'm guessing there's a name for it in the literature that I'm unaware of.  Question: What is an appropriate name for the partition $\{\{1,2,\ldots,n\}\}$ of the set $\{1,2,\ldots,n\}$?


jessie-backports fix creates "has no installation candidate" error

I was recently affected  and have attempted to fix it as follows.    - run:       name: Apply jessie-backports Fix       command: |         rm /etc/apt/sources.list         echo "deb http://archive.debian.org/debian/ jessie-backports main" | tee -a /etc/apt/sources.list         echo "deb-src http://archive.debian.org/debian/ jessie-backports main" | tee -a /etc/apt/sources.list         echo "Acquire::Check-Valid-Until false;" | tee -a /etc/apt/apt.conf.d/10-nocheckvalid         echo 'Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' | tee -a /etc/apt/preferences.d/10-archive-pin         apt-get update   - run:        name: Install Dependencies       command: |         npm install -g @angular/cli         npm install         npm install -g firebase-tools         apt-get -y -qq update         apt-get -y -qq install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget         if [[ "$CIRCLE_BRANCH" == "master" ]]; then           apt-get -y -qq update           apt-get -y -qq install python3.4-dev           curl -O https://bootstrap.pypa.io/get-pip.py           python3.4 get-pip.py --user           echo 'export PATH=/root/.local/bin:$PATH' >> ~/.bash_profile            source ~/.bash_profile           pip install awscli --upgrade --user         fi   However, whenever I run my build, it fails with the following errors:  E: Package 'gconf-service' has no installation candidate E: Package 'libasound2' has no installation candidate E: Package 'libatk1.0-0' has no installation candidate E: Package 'libdbus-1-3' has no installation candidate E: Package 'libgconf-2-4' has no installation candidate E: Package 'libgtk-3-0' has no installation candidate E: Package 'libnspr4' has no installation candidate E: Package 'libx11-xcb1' has no installation candidate E: Package 'libxcomposite1' has no installation candidate E: Package 'libxcursor1' has no installation candidate E: Package 'libxdamage1' has no installation candidate E: Package 'libxfixes3' has no installation candidate E: Package 'libxi6' has no installation candidate E: Package 'libxrandr2' has no installation candidate E: Package 'libxss1' has no installation candidate E: Package 'libxtst6' has no installation candidate E: Package 'fonts-liberation' has no installation candidate E: Package 'libappindicator1' has no installation candidate E: Package 'libnss3' has no installation candidate E: Package 'lsb-release' has no installation candidate E: Package 'xdg-utils' has no installation candidate   How can I fix it?


jQuery code not working in child theme JavaScript file

Added in  my child's theme JavaScript File: $(function(){     $(".copyright").prepend("Yo!"); });  What's wrong?


I'm having trouble finding something to clarify this. It's been mentioned in the Difficulty Class section of the DMG (238) that there should be a 50/50 chance that an average person can succeed at a DC 10 challenge, implying you have to beat it. However, I'd always thought that there's a 50/50 chance for an average person to hit another average person, but the chance is really 55/45, since you only have to equal their AC.


What's with the trend of releasing movies outside the US first?

A recent trend that I've noticed (or I'm just crazy and need to delete this question) is to release a major film outside of the U.S. first, even if it's a Hollywood film.  Usually a week or so later the film gets released in the U.S.  Why are movies being released this way?


Allocating a block of memory with malloc()

I've got a rather unusual question. I've seen two variants of passing arguments to malloc. Let's say we've got:  int *arr = (int *) malloc(sizex * sizeof(*arr));  Some people say that using sizeof(*arr) is bad and you should use sizeof(int) (in this example) instead. Could you explain what's the difference and what's better to use?


Why is it - "My great-grandfather never left Scotland" Instead of " My great-grandfather has never left Scotland"?

Since, the sentence has "never" it must be present perfect, but whereas it's simple past. Why is it so?


Displaying numerical attributes as strings in ArcGIS Online?

I have several columns of research data that are coded 0-2. For example:  0=No monkeys in state 1=Some monkeys in state 2=Only monkeys in state   When I actually bring this map up to ArcGIS Online, obviously I don't want someone to click on a state and get a popup telling them just an integer. I would like some way of writing a conditional statement that will display whatever string I want instead its numerical code.


How to type the "~" key on Macbook Pro with Ubuntu？

I install ubuntu 16.04.3 on my macbook-pro. But when I use the terminal, I find I cant type wave. When I type the wave key, it print "<" instead.  I think it's a text entry problem, maybe I choose the wrong input source. But I do use the English(US) text entry. Then I open keyboard layout chart, I know the reason. Every time I type the wave key, a weird key is shining which is left of the "z" and right of the "shift". I have never seen any keyboard has it before.  To solve the problem, I think I have to change a single key's reflection on the keyboard layout. But I don't know how to do that.


Can someone give me an example of a group which has exactly $2$ proper, non-trivial subgroups?  I appreciate that there is no context with this question but there's no really much else I can say.


Embedding a flv (or mp4) video using pdfTeX (plain TeX only)

I am attempting to find out how to embed a flv video in a pdf file created using plain TeX and pdfTeX.  I was successful at manually (via Adobe Acrobat's menu: Tools->Multimedia->Video Tool) embedding a flv video clip into an existing pdf.  Then examined the pdf file in a text editor (vim) to see if I could figure out the code that needed to be added to embed a video.  Although I was able to identify some of the lines associated with the embedding, I am clueless as to how to achieve the embedding using plain TeX and pdfTeX.  Would appreciate any pointers.  Thanks.  PS:  @AlexG 's response does give me what I was looking for.  However, I do have a follow up question.  I attempted to write the follow-up as a comment, but was not able to format the follow-up properly.  So here it is:    Toward the end of the code, what's the need for the "\setbox0=..." and the "\hbox to ..." lines?  Commenting these two lines did not seem to affect the solution:  top    %\setbox0=\hbox{  }\immediate\pdfxform 0%    \vbox to 25.6mm{%   \pdfannot width \videowidth depth \videoheight height 0pt {     /Subtype/RichMedia     /BS <</W 0/S/S>>     /Contents (embedded video file:\videofile)     /NM (rma:\videofile)     /AP <</N \the\pdflastxform\space 0 R>>     /RichMediaSettings \the\pdflastobj\space 0 R     /RichMediaContent \rmcontent\space 0 R   }}%   %\hbox to \videowidth {\vbox to \videoheight {}\hss}%    bottom     The above ending results in the video showing up placed vertically between the words top and bottom.


If $G_1, G_2$ are two nonzero subgroups of $(\mathbb{Q},+)$, prove that $G_1\cap G_2\neq\{0\} $.

Let $(\mathbb{Q},+)$ be additive group of rational numbers. If $G_1, G_2$ are two nonzero subgroup of $(\mathbb{Q},+)$, prove that $G_1\cap G_2\neq\{0\}$.  My approach :  Take $p/q\in G_1$ and $a/b \in G_2$. Then $p/q+p/q+..=p \in G_1 $ ($q$ times addition). Similarly $a\in G_2$. Now we can always choose $p$ and $a$ as positive because in group their inverse are of opposite parity.   Now set $l=lcm(p,a)$. Since $l=\frac{pa}{d}$ where $d=\gcd(p,a)$ one finds $l\in G_1$.   Reason : Just  $p+...p=l$ where (addition is done $\frac{a}{d}$ times).  similarly $l\in G_2$.  So $l\in G_1\cap G_2 $. Hence $G_1\cap G_2\neq \{0\}$. Proved   I would like to know if my solution is correct. This was supposed to be a tough problem. So it feels like i have committed some mistake in proof. Thank you.


Password not working in Graphical Applications (gksu)? Works with sudo

I am having a problem where when I try to run say GParted, when I am prompted for a password, it says "Incorrect Password"  But when I enter the same password using terminal sudo gparted for example, it works. Why is that?  UPDATE  I noticed that theres a difference between using sudo and gksu. The later will fail with incorrect password ...


Use both AddForceAtPoint and change velocity property?

I'm using Rigidbody2D for some game objects. It seems that when I AddForce() or AddForceAtPoint(), the game objects are mostly affected on the Y axis and hardly at all on the x axis. I don't understand why. To really get any effect on the x axis, I need to have a very strong force like *10 000. But the effect on the y axis is then extremely strong and shoots the object out of screen, yet only nudges the game object on the x scale.  I believe that the problem with the y axis is because I use .velocity to move the character. But I don't know how to change the velocity directly without doing that.  What should I do to use both forces and set velocity on the same object?


I am working on a problem in my Algebra homework and I am having some problems. The question is: if $H_1$ and $H_2$ are normal subgroups of $G_1$ and $G_2$ respectively and we know that $G_1$ is isomorphic to $G_2$ and $G_1/H_1$ is isomorphic to $G_2/H_2$, can we conclude from this that $H_1$ is isomorphic to $H_2$?  I need to prove that is true or give a counterexample if it is false.  My first idea was to use the idea behind the proof of the 1st isomorphism theorem. For this I have considered the inclusion homomorphisms $i_1: H_1 \to G_1$ and $i_2:H_2 \to G_2$, which are injective homomorphisms. These homomorphisms admit left inverses. Then I considered the surjective homomorphisms $f_1: G_1 \to G_1/H_1$ and $f_2: G_2 \to G_2/H_2$ which admit right inverses. And the last the isomorphism $\varphi:G_1/H_1 \to G_2/H_2$ that exists by assumption.  Then, we can construct the homomorphism $\psi$ from $H_1$ to $H2$ as $$\psi = i_2^{-1}f_2\varphi f_1^{-1}i_1.$$  But, I dont know if I am tired enough to confuse these things but I think that my beautiful homomorphism takes everybody in $H_1$ to the identity in $H_2$, 'cause if $h \in H_1$, then $i_1(h)=h \in G_1$, then, $f_1^{-1}(h)=hH_1=H_1$, then $\varphi(H_1)=H_2$ and $f_2(H_2)=1$ and $i_2^{-1}(1)=1.$  I don't know if this reasoning can take me somewhere. Can anybody give me a hint to solve this problem? Any hint, any reference, any idea is gonna be welcome for me.  Thank you so much, everyone.


Has the algorithm for "Interesting" questions changed?

In the last couple of days I've noticed that the homepage (when logged in), with its default filter of "Interesting" has gone from being consistently 90% questions containing one or more of my Watched Tags, to maybe 10%.  Has anything changed recently regarding these filters? Or is everyone in the web development world just having a very productive, question-free, few days?


How to merge two files in corresponding row?

Now,I have two files:  aaaa.txt:  a=0; b=1; c=2;   bbbb.txt:  d=3 e=4 f=5   I want to merge aaaa.txt and bbbb.txt to cccc.txt.   cccc.txt as follow:  a=0;d=3 b=1;e=4 c=2;f=5   So, what can I do for this?


Misplaced Google Maps with OpenLayers plugin in QGIS?

I was using Google Maps with OpenLayers plugin in QGIS with my vector layer with projection EPSG:4326 with google map projection EPSG:3857 and "on the fly" transformation enabled.   It was matching all the vector layer with Google Maps but now it's not working.  How can I reproject Google Maps so that it matches with my vector layer as before?


If we cal $X$ the matrix where each line is an observation, the book of Lebart & Co ()  state that  in PCA   the  "best" (such that the sum of squared distance projected observations on that space is maximized) vectorial space of dimension 2 contain the first factorial axis. The book dosn't prove this fact, have you an idea of the demonstration/intuition ? Thanks


How do I get the offer to purchase the third office?

I am playing Game Dev Story on my Galaxy Ace. I am on year 25, I have $200.000K, I have Mr X and King, two of them are 5 level hackers and I have a Hardware Engineer, but I am still on my 2nd office, as the 3rd office offer never appeared. I want to buy someone from the Holywood Agent, I want to developea few best consoles, and then I will start a new game. But I seriously want my own console. How can I buy the 3rd office?


Using REML in mixed models if random factor is small

I'm trying to fit linear mixed models to 3 different DV (so three models). I understand that REML gives less biased variance estimates. As im more interested in the fixed effects, I use ML for the initial stepwise model reduction based on AIC-values, and use REML to fit my final (reduced) models.   However, if I got that right, REML ignores the fixed part for fitting the model, right? And since 2 of my 3 models have only very little random variance, I'm confused whether I should completely stick to ML-estimates? What is your opinion on this? Am I right in my understanding of REML vs. ML?


I've been seeing words with umlauts in prominent publications - for example The New Yorker  re-election like this:     reëlection   What's going on?


Creating an alarm using an intent and having some issues

I am really new to Android Studio (and relatively new to Java too), and I am trying to create an app that will allow the user to input a time and have a timer start counting down when that time occurs. After looking into it, it seems like using an intent is the best way to go, but I am having some issues understanding how to use it. Right now, I have the following code in my main activity file (called Countdown):   public class Countdown extends AppCompatActivity { EditText mHours; EditText mMinutes; TextView mDisplay; public static long finalTime = 0; private AlarmManager alarmMgr; private PendingIntent alarmIntent; Context context;  @Override public void onCreate(Bundle savedInstanceState) {       super.onCreate(savedInstanceState);     setContentView(R.layout.activity_countdown);     mHours = (EditText) findViewById(R.id.text1);     mMinutes = (EditText) findViewById(R.id.text2);     mDisplay = (TextView) findViewById(R.id.display);     Button button = (Button) findViewById(R.id.button1);      button.setOnClickListener(new View.OnClickListener() {         public void onClick(View v) {             Calendar calendar = Calendar.getInstance();             calendar.setTimeInMillis(System.currentTimeMillis());             calendar.set(Calendar.HOUR_OF_DAY, 11);             calendar.set(Calendar.MINUTE, 22);             Intent intent = new Intent(context, Countdown.class);             alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);              alarmIntent = PendingIntent.getBroadcast(context, 0, intent, 0);             alarmMgr.set(AlarmManager.RTC, calendar.getTimeInMillis(), alarmIntent);              final long hourInput = Long.parseLong(mHours.getText().toString());             final long minuteInput = Long.parseLong(mMinutes.getText().toString());             finalTime = (hourInput * 3600000) + (minuteInput *  60000);        } } );}}   And in my receiver file I have:   public class CountdownStarter { TextView mDisplay; public void onRecieve() {      final CountDownTimer aCounter = new CountDownTimer(Countdown.finalTime, 1000) {          public void onTick(long millisUntilFinished) {             mDisplay.setText("Seconds remaining: " + millisUntilFinished / 1000);         }          public void onFinish() {             mDisplay.setText("Finished");         }     };     aCounter.start(); } }   Right now, running the debugger I get this message:  E/AndroidRuntime: FATAL EXCEPTION: main               Process: com.example.android.timerexample, PID: 32276               java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference                   at android.content.ComponentName.<init>(ComponentName.java:128)                   at android.content.Intent.<init>(Intent.java:5283)                   at com.example.android.timerexample.Countdown$1.onClick(Countdown.java:42)                   at android.view.View.performClick(View.java:5702)                   at android.widget.TextView.performClick(TextView.java:10888)                   at android.view.View$PerformClick.run(View.java:22533)                   at android.os.Handler.handleCallback(Handler.java:739)                   at android.os.Handler.dispatchMessage(Handler.java:95)                   at android.os.Looper.loop(Looper.java:158)                   at android.app.ActivityThread.main(ActivityThread.java:7229)                   at java.lang.reflect.Method.invoke(Native Method)                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)   I was trying to look into it but I just don't understand why I am getting the NullPointerException or how to fix it - I am definitely doing some stuff wrong here but I can't figure out what the next step is. Any assistance would be very helpful!


In the last few days I noticed that, border color was applied for the badge counts in the Profile and Activity tabs. I thought of it is a new design change.        So I checked in the  page, but there is no design change for the badge counts.        Is the badge count design changed intentionally? If so, the SO Design site not updated correctly? Or it is a bug?


Are there some default grid pattern textures in blender?

I'm looking for a texture like this one:    Or the grid on the ground here:    Are those already implemented in blender internal? Or else in Cycles ?  I searched for "grid textures", "color grid textures" (on google) to get the images and apply them as image textures but I didn't find them.  Is it possible to generate them procedurally (in python)?


Find the order of convergence of the Newton-Raphson method from a given table

I am given this table  (Iterações = Iterations; Erro absoluto = Absolute Error) The question is:  Determine the order of convergence of the method from the values of the table and justify.  I got as far a $$|\alpha - x_{k+1}| \le C|\alpha - x_k|^p \Leftrightarrow \\ \frac{|e(x_{k+1}|}{C} \le |e(x_k)|^p \Leftrightarrow \\ \frac{\log(\frac{|e(x_{k+1}|}{C})}{\log(e(x_k))} \le p$$ That fraction with the logs doesn't look right. How do I know the log on the right hand side isn't negative (thus inverting the sign)? I don't know how to find C. Help?


How to improve rendering performance of a very large shapefile?

I have a polygon shapefile that has a 100MB .dbf, and 500MB .shp file component. The reason it is so large, is that it is  classified as a landbase for a whole district.   Everytime I view the file in ArcCatalog, or ArcMap, and move the view window slightly, the entire file needs to redraw from scratch. I have tried spatial indexing and importing into a geodatabase - neither approach provides any noticable performance improvement with respect to rendering.  Esri's help page suggests that that to improve shapefile performance, the user can . While this would obviously work, I do not want to lose any information. Splitting the file up is not ideal since I am doing a lot of geoprocessing/queries with its entire area. I guess I could avoid viewing the entire area at once - but sometimes, for example, it is good to see what parts of the file a query has selected.  Is there any other approach I could take to improve rendering performance?   (In theory, building shapefile "pyramids" would be ideal - I'm unsure why ArcGIS has never supported such an approach  - at least that I am aware of...)


Repair Unity panel & dash after compiz settings change

I played a little with the compiz settings and the Unity top panel and dash disappeared.  They aren't loaded anymore. I tried  but I had no success.  Temporary I installed kubuntu-desktop (KDE) that runs fine, but I want Unity back.  How can I do this?    Solution  I posted my solution .


Proving the equivalence of an alternative definition of the Riemann integral (Baby Rudin)

This is Exercise 7, Chapter 6 in Baby Rudin.  Suppose $f$ is a real function on $(0, 1]$ and $f \in \mathscr{R}$ on $[c, 1]$ for every $c > 0$. Define $$ \int_0^1 f(x) \ \mathrm{d} x = \lim_{c \to 0} \int_c^1 f(x) \ \mathrm{d} x $$ if this limit exists (and is finite). (a) If $f \in \mathscr{R}$ on $[0, 1]$, show that this definition of the integral agrees with the old one.  I think to show that to show that this new definition above "agrees with the old one," one would need to show that this new definition above implies that the old definition holds AND that the old definition implies that this new definition holds. I want to inquire above about the former; how does one show that this new definition above implies that the old definition holds? My attempt/idea for this proof is pretty limited: I was thinking of proving that assuming the new definition above, it follows that $$ \int_{-0}^1 f(x)\, dx = \int_{0}^{-1} f(x)\, dx.$$ where $\int_{-0}^1 f(x)\, dx$ is the lower Riemann integral and $\int_{0}^{-1} f(x)\, dx$ is the upper Riemann integral. To show this, I thought of showing $$\int_0^1 f(x)\, dx = \int_{-0}^1 f(x)\, dx$$ and $$\int_0^1 f(x)\, dx = \int_{0}^{-1} f(x)\, dx$$ which I now think would be incorrect since I would then be using the old definiton itself. My latest thought on this is that I would need to show something of the form $$ \textrm{[something]} \implies \left|\int_{-0}^1 f(x)\, dx - \int_{0}^{-1} f(x)\, dx\right| < \epsilon$$ and the desired result will follow because $\epsilon$ is arbitrary. Am I even on the right track? How can the desired result be proven?


I have two variants of one sentence and I want to find out which of them is correct and why:   So you'll see immediately the notification when the crucial for you information changes. So you’ll immediately see the notification when information crucial for you changes.   Main concern is position of "immediately".


why use regular for loops when you can use for in loops

I've been watching some courses and reading some lectures on JavaScript. I've seen that many web developers when they have an array or an object, to loop through it, they use the common for loop like this:  for (var i = 0; i < Things.length; i++) {     Things[i] }   where Things is an array or an object. or this:  for (var i = Things.length; i--; ) {     Things[i]; }   others makes it even more complicated by using this:  for (var i = Things.length - 1; i >= 0; i--) {     Things[i] }   and lately, I've found out that there's even a JQuery method to loop through arrays and objects:  $.each(Things, function (index,value){    // some code });   but why using these four, while we have a more direct for loop for arrays and object like the following:  for (var prop in Things) {     Things[prop] }   is there anything behind this common practice? performance issues? any browser compatibility issues? anything at all?


Getting java.lang.NullPointerException on ActionListener

Getting   "Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException"   at soms1.actionPerformed over all ActionListener events of lines:     thread.set_state(1);  thread.set_state(2);  thread.reset;  thread.send;   Can you please suggest where is null values is getting in thread? this code worked fine previously but after little changes in code this error showed up.  Code Snippet:  public class soms1 extends JApplet {  static public SOM_thread1 thread = null; static JApplet japplet = new JApplet();  static JButton go1 = new JButton("go"); static JButton play = new JButton("play"); static JButton reset = new JButton("Reset"); static JButton send = new JButton("send");  static Container c; static JPanel p1 = new JPanel(); static JPanel p2 = new JPanel(); static JPanel p6 = new JPanel();  Toolkit tool;  public void setup_applet() {     japplet.setVisible(true);      go1.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {thread.set_state(1);}     });     play.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {thread.set_state(2);}     });     reset.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {thread.reset();}     });     send.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {thread.send();}     }); }  public void init() {     tool = Toolkit.getDefaultToolkit();     setup_applet();     setup_radios();     setup_layout();      thread = new SOM_thread1();     thread.init();     thread.start();     if (clientSocket != null) {thread.set_state(2);}    } }  class SOM_thread1 extends Thread{ public void set_state(int f) {state = f;} public void send() { //code block} public void reset() {//code block} public void run() {//code block} public void init() {reset();} }   As i am newbie in java please suggest changes thank you in advance.


I can't cross-compile a simple program that uses libgd because of undefined references though libgd.a is present

I'm trying to cross-compile on Linux (i686-w64-mingw32-gcc) a small 32-bit Windows program that requires (libz, libpng and) libgd. I have them all installed correctly, as far as I can tell, though the linker keeps on complaining it can't locate the libgd functions I'm using.  $ i686-w64-mingw32-gcc -lgd -lpng -lz -lm -o demo demo.o smssc.o demo.o:demo.c:(.text+0x2d): undefined reference to `_imp__gdImageCreateFromPng@4' demo.o:demo.c:(.text+0x1f7): undefined reference to `_imp__gdImageGetPixel@12' demo.o:demo.c:(.text+0x316): undefined reference to `_imp__gdImageCreate@8' demo.o:demo.c:(.text+0x368): undefined reference to `_imp__gdImagePaletteCopy@8' demo.o:demo.c:(.text+0x3b0): undefined reference to `_imp__gdImageGetPixel@12' demo.o:demo.c:(.text+0x3ec): undefined reference to `_imp__gdImageSetPixel@16' demo.o:demo.c:(.text+0x430): undefined reference to `_imp__gdImageDestroy@4' demo.o:demo.c:(.text+0x465): undefined reference to `_imp__gdImageSetPixel@16' demo.o:demo.c:(.text+0x4a9): undefined reference to `_imp__gdImageSetPixel@16' demo.o:demo.c:(.text+0x4e0): undefined reference to `_imp__gdImageColorAllocate@16' demo.o:demo.c:(.text+0x569): undefined reference to `_imp__gdImageLine@24' demo.o:demo.c:(.text+0x5e9): undefined reference to `_imp__gdImageLine@24' demo.o:demo.c:(.text+0x669): undefined reference to `_imp__gdImageLine@24' demo.o:demo.c:(.text+0x6e3): undefined reference to `_imp__gdImageLine@24' demo.o:demo.c:(.text+0x70f): undefined reference to `_imp__gdImagePng@8' demo.o:demo.c:(.text+0x71f): undefined reference to `_imp__gdImageDestroy@4'   this is how I had configured libgd  ./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32 CPPFLAGS="-I/usr/i686-w64-mingw32/include" LDFLAGS="-L/usr/i686-w64-mingw32/lib"   of course libgd.a, libpng.a and libz.a are found into my /usr/i686-w64-mingw32/lib  also, objdump output seems correct:  $ objdump -tT /usr/i686-w64-mingw32/lib/libgd.a In archive /usr/i686-w64-mingw32/lib/libgd.a: gd.o:     file format pe-i386 [snip]


How to find information about the system/machine in Unix?

I have always found it difficult to find information about the system itself in Unix, whether it be   Which OS I am using (version number and all, to compare it with the latest available builds)? Which Desktop Environment am I using? If I am using KDE, most of the programs begin with a K and I can say I am using KDE, but there should be some way to query this, say from a script. Which kernel version am I using? (For example, I am using Fedora, and I want to know what Linux kernel version I am using)   Basically, what I miss is a single point/utility that can get all this information for me. Most of the times the solutions to the above would themselves be OS specific. Then, you are stuck.


footnote resets on every section but i want it reset on every page

I have this problem with footnotes on every section.  i have two sections in one page and each of them has a footnote in it and the footnotes reset after the first section ends  it somehow seems section dependent although i have used the package :  \usepackage[perpage]{footmisc}   the problem is it is not working as it should be just resetting at every page.


How can I understand a Vortex Tube and its efficiency?

A  takes a pressurized input stream, most typically of a gas, and creates two output streams with a temperature differential. .  Both linked sources are scarce with information about how and why this works. Now, I have two questions:   Why does it work, specifically why should the situation in the vortex lead to a transfer of thermal energy from the inner stream to the outer one? How efficient can it be?  How do you define the efficiency of a device that may be closer to Maxwell's Demon than to a heat pump? My feeling is that any analysis should not only take into account the sum of input energy (thermal and mechanical energy instream) and sum output (thermal energies and pressures of both gas streams), but also the Temperature differential that is created - since that contains an ability to create work.* If course it's pointless to create heat from high grade 8mech.) energy to transform it back to mech. energy - but it gives an idea on the worth of the output.


If I turn the tip of a 100 light years long pencil, the other end instantly turns , or it takes 100 years?

If a civilization could build a strong , lightweight tube, hundreds of thousands of kilometers long , could theoretically use it to communicate faster than light, simply by rotating it at one end , the other rotates at the same time , or not ?


Help to ID military Space Opera trilogy with feliniods (tigerish) and suspended animation using a gas

I read this trilogy in the 90's, though it might be older. There is a felinoid security officer on the starship who goes EVA from one hatch to another in an effort to prove that it was possible for an opposing infiltrator/saboteur/assassin to do so.  The very much disliked hard horse captain of the ship has a partial brain augmentation (I believe to repair damage). I don't remember how, but the opposing force managed to place get him into a chamber filled with the gas used in suspended animation without the prerequisite drugging and preparation leaving the crew wondering if the man was actually dead or if his implant had absorbed enough of his personality to make it appear as though he were still alive.


I have noticed that many people use images in their Ask Ubuntu answers. What software are people using?


Can't see what I type in the new mobile chat

I just can't scroll to the bottom to see what I type in when I open the keyboard.    App Version: 1.4.2.2 Device: iPad 2 (GSM) OS Version: Version 9.3.2 (Build 13F69)


How could Charles Xavier walk in Xmen: The Last Stand?

We see how Charles Xavier getting shot as a young adult (In First Class) and have to sit in a wheelchair. But in the beginning of The Last Stand when he visits Jean Grey with Eric he walks, how can this be?


If $g(x+1)+g(x-1)=g(x)$ for all real $x$, then for what $p$ is $g(x+p)=g(x)$ necessarily true?

Let $g(x)$ be a function such that $g(x+1) + g(x-1) = g(x)$ for every real $x$. Then for what value of $p$ is the relation $g(x+p) = g(x)$ necessarily true ?  I am unable to provide my solution approach for this problem as I was not able to move forward with this question. Can someone please help me on this? Thanks in advance !


How can I remove the last comma separator from the end of a file?

How can remove the last comma separator from a file on Linux?   Example of file :  "is_supported_kafka_ranger" : "true", "kafka_log_dir" : "/var/log/kafka", "kafka_pid_dir" : "/var/run/kafka", "kafka_user" : "kafka", "kafka_user_nofile_limit" : "128000", "kafka_user_nproc_limit" : "65536",   expected results:  "is_supported_kafka_ranger" : "true", "kafka_log_dir" : "/var/log/kafka", "kafka_pid_dir" : "/var/run/kafka", "kafka_user" : "kafka", "kafka_user_nofile_limit" : "128000", "kafka_user_nproc_limit" : "65536"


I'm having problems transferring stuff to my Samsung Galaxy S4 and its memory card.  The long and short of it is that I just can't transfer certain files across: the music is mostly in .wma format, but several songs just won't transfer and the transfer protocol grinds to a halt every time it encounters one it doesn't like, citing various errors, such as "could not send object" and "could not get object handles" furthermore, clicking on the mounted drive simply seems to render the GUI unresponsive and the progress bar says I'm going at a speed of less than 100 kilobytes per second, file transfer via Samsung Kies Air is woeful as well, as it tells me that I have to install java to run it, whereupon I just run into the tons-of-tar.gz-files-but-no-executable problem.  At the moment I'm trying to transfer to the card via nautilus, I am seemingly unable to sync with rythmbox and Banshee can't seem to find any of my music at all.


How do I download from my ubuntu-one account now?

I have my files synced with ubuntu-one. But as the service will be closed, I need to download the files. I installed 14.04 and my previous documents were deleted.In 14.04 , there is no ubuntu-1 app, so I can't really do anything. what should I do to download the files. In the site I see only the message I don't see any option to download, everywhere its the same message The service has been discontinued . no download options.  Here is a screenshot after I use the files () link:


Having an issue trying to upload a file via php unit through selenium. This is the code for my current attempt.    public function testFileUpload()    {      $filePath = '/Users/cdolan/Desktop/CamsodaTest/mern.png';      $this->flingLogIn();      $this->webDriver->findElement(WebDriverBy::cssSelector('.btn.btn-upgrade-nav.no-follow'))->click();       $this->webDriver->findElement(WebDriverBy::cssSelector('.add-pic'))->click();      sleep(3);      $file_input = $this->webDriver->findElement(WebDriverBy::cssSelector('#upload-button'))->click();      $file_input->setFileDetector(new LocalFileDetector());      $file_input->sendKeys($filePath)->submit();   The test seems to run and complete with no errors, however it will not upload a file! It seems to get stuck on this screen and then closes out without uploading anything.    Any advice would be appreciated.


In the introduction of my thesis, I have the following statement: "It has been stated [...] from both __ theoretical and __ experimental standpoints.". My advisor is saying that I should put indefinite articles ("a" and "an", respectively) in the blanks. However, I don't think any articles are necessary, and it even sounds better without them. A reasonable middle ground for me seems to put a "the" in the first blank only. Are any of these options correct? If so, which are better sounding?


I need a formal expression to designate the police siren and lights together. In Hungarian they are both called with the same name: distinctive signals which is different from what we call them when using one of them alone. Is there a word or expression that I can use in an essay? Thanks in advance for your answers.


Prove the union $\bigcup A_n$ has empty interior in $X$

Let $X$ be a Hausdorff compact space; let $\{A_n\}$ be a countable collection of closed set of $X$. Show that if each set $A_n$ has empty interior in $X$, then the union $\bigcup A_n$ has empty interior in $X$.   My solution:  Suppose that, $U=$ interior of $\bigcup A_n$ is nonempty. Then any open subset of $U$ can not have isolated point, since then all interior of $A_n$ can not be empty. (If $U$ have isolated point, then for some $x\in X$ with $\{x\}\subset U$ is an open set, then it must be a subset of some $A_n$, since $\{x\}$ do not intersects with $X-A_n$)  Let, $x_0$ and $x_1$ (where $x_1\in A_{1}$) are two points in $U$. Then there exists two disjoint open sets in $X$, say, $B_1$ and $C_1$. Take, $B_2=U\cap A^c_{1}\cap C_1$, then $x_1\notin \bar B_2$.   Since $B_2$ is an open set containing $U$, there is a point $x_2\in B_2$ with $x_2\in A_{k_2}$ for some $k_2$,  for which, in the same way, we can get an open set $C_2$ such that $x_2\notin \bar B_3$ with $B_3=U\cap A^c_{k_2}\cap C_2$  In this way, we can find sequence $\bar B_2\supset \bar B_3\supset\dots$  Since, $X$ is compact, $\bigcap_{n\geq 2} \bar B_n$ is nonempty. Then there exists a point $x$ which is an element of interior of $A_n$, for some $n$. A contradiction.  Is my solution ok?


What becomes of conservation of energy in many-worlds theories?

Disclaimer, my interest in physics is purely recreational; also, in spite of my research so far, I couldn't really make sense of the question I am asking here.  What follows is my understanding so far, please correct me if I'm wrong...  The Copenhagen interpretation states that each time a measurement is made, the state vector (wave function) of the system under scrutiny collapses to one particular state, and that prior to this, the state vector is the sum of all possible states prior to this measurement. In other words (?), a superposition of states.  In the many-worlds interpretation, it is said that when this collapsing occurs, in fact, all possible states occur in a different world.  And this is where I have trouble, because to my eyes, this is a direct contradiction with the principle of conservation of energy. If the many-worlds hypothesis is true, it would mean, to my eyes, that the energy after the measurement of a particular system is n times that of the system before, where n is the number of possible states. And even though this energy is distributed among these n worlds, there are still n-1 times the energy unaccounted for. Created, in fact.  How do many-world theories counter this (probably naive) argument of mine?


Why can I change class attributes for an instance without changing the class value in Python?

In Java, there's no way to change a static variable (what I thought was more or less the same as a Python class attribute) for just an instance. In Python, however, I tried the following code in an interactive session: >>> class TestClass: ...    x = 0 ... >>> a = TestClass() >>> a.x += 1 >>> a.x  1 >>> TestClass.x  0 >>> TestClass.x = 2 >>> a.x  1 >>> TestClass.x  2  Further, I checked the IDs of both a.x and TestClass.x and determined that they weren't equal, so I guessed that there's an instance-level x and a class-level x. Can anyone explain why this is? I figure the best way to modify a class attribute through an instance through a method that modifies TestClass.x, but I also can't figure out quite why this behavior exists as is.


Identify this extremely tiny white bug please!

I have noticed these extremely small, hard to notice with naked eye bug for about 3 nights now. Twice on my body in the kitchen and once on my thumb in my living room. I managed to catch one last night from my living room which has an area rug near a mattress, coffee table and couch. I managed to put it in a small 2 inch box with white lid. Today it seems little brownish and inspected it under a microscope. First  picture is of the box size to put some real world perspective on the actual size.  Second pic is of the bug lying on the white lid, doesn't seem to be even 1.5 mm.  Third and fourth pic is from the microscope(150x), I had to move the bug so I might have squished it a bit.   We are getting bite marks and are almost convinced that this bug is the reason as we never had a bug problem ever. The only other thing we noticed is a silverfish in our living room but not sure if that can cause these bite marks.


Six months later, she had not conceived and her anxiety had increased.   Is it grammatically correct to use past perfect twice in the same sentence?


How to get Wi-Fi on Ubuntu with secure boot enabled?

I have installed Ubuntu 18.04 along side windows 10 on HP desktop. The Wi-Fi of the system works well on windows 10 , but on Ubuntu 18.04 it shows no wi-fi adaptor found. After going through internet I was able to get Wi-Fi on Ubuntu but for this I have to disable secure boot from BIOS settings. Is there any way to get Wi-Fi on Ubuntu 18.04 with secure boot enabled? Desktop have Realtek drivers


I am using the following code to extract raster values over a SpatialPolygonDataFrame.  result<-extract(Stack, polygons)  >Stack class       : RasterStack  dimensions  : 634, 862, 546508, 13  (nrow, ncol, ncell, nlayers) resolution  : 10, 10  (x, y) extent      : 492660, 501280, 4378960, 4385300  (xmin, xmax, ymin, ymax) coord. ref. : +proj=utm +zone=29 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0  names       : L2A_T29SM//21_B02_10m//etc.  min values  :             1.0000000,             1.0000000,             1.0000000,             1.0000000,             1.0000000,             1.0000000,             1.0000000,           119.0000000,            88.0000000,             1.0000000,   -0.9932203,   -0.9959184,    1.0000000  max values  :          1.460000e+04,          1.547100e+04,          1.485900e+04,          1.547600e+04,          1.168700e+04,          1.131400e+04,          1.109100e+04,          1.084500e+04,          1.451000e+04,          1.105000e+04, 9.996238e-01, 9.992918e-01, 4.000000e+00     > polygons class       : SpatialPolygonsDataFrame  features    : 13  extent      : 493428.6, 499603.9, 4379481, 4383781  (xmin, xmax, ymin, ymax) coord. ref. : +proj=utm +zone=29 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0  variables   : 3 names       : id, ID_1,    LC  min values  :  1,    1,  Agri  max values  :  9,    4, Water    Then I want to create a dataframe out of it but I received the following error:  resultdf<-as.data.frame(result) Error: arguments imply differing number of rows: 225, 320, 286, 351, 68, 79, 41, 63, 70, 171, 72, 158, 497.    From what I check in the forum it is a problem with the data structure since the dataframe would not have the same length; how can I solve it?


hp 4500 stopped working not installed. after an update

Using Ubuntu 16.04LTS printer stopped working. I think it was after an update.Will not give me a way to install the printer. the add button can not click it.If i try to continue it says no server.


Cool a room with a fan, what sens orientation?

It is really hot these days, and at night, I try to cool my room before going to sleep but I'm wondering  in which sens I should orient my Fan   Answer A : Push the hotter air with my fan outside.   Answer B : Make enter the cooler air into my room   Answer C : Fan orientation doesn't change anything


Why are AWG charts rated in amperes and not in watts?

American wire gauge chart is rated in Ampacity. Isn't it wise to be rated in watts? Let say a wire is rated to conduct a certain amount of current what's going to happen when the voltage goes higher and higher? edit: My question is concerning the AWG chart that I think should be in watt or VA but after saying that who am I to dare.


There is a strange thread called sourplum running in my CentOS server. It uses a lot of resources and affects the excel and pdf generation.  Tasks: 280 total,   2 running, 277 sleeping,   0 stopped,   1 zombie Cpu(s): 51.6%us,  1.0%sy,  0.0%ni, 47.3%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st Mem:   8030792k total,  6821428k used,  1209364k free,   892256k buffers Swap:  4194300k total,    36712k used,  4157588k free,  3776380k cached    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 13170 root      20   0  613m 3544  964 S 402.1  0.0   2595:58 sourplum 25664 focu      20   0  384m  21m  14m R  9.9  0.3   0:00.65 php  4377 root      20   0  129m  22m 3780 S  2.0  0.3   0:48.58 MONyog-bin     1 root      20   0 19348 1372 1136 S  0.0  0.0   0:01.13 init     2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd     3 root      RT   0     0    0    0 S  0.0  0.0   0:00.42 migration/0     4 root      20   0     0    0    0 S  0.0  0.0   0:01.12 ksoftirqd/0     5 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 stopper/0     6 root      RT   0     0    0    0 S  0.0  0.0   0:00.05 watchdog/0     7 root      RT   0     0    0    0 S  0.0  0.0   0:00.24 migration/1   and that there are two files of this name located  /sourplum /root/sourplum   But I was not able to find out anything regarding what this process is.  I tried to kill the thread but it started again automatically. I have to restart the server but it is just a temporary fix. After several hours the thread start again.  What should I do? Can I just delete the file? Thanks!


Good MSc Thesis Proposal Templates on Overleaf?

I need to write an MSc thesis proposal, and I can't seem to find any good templates for such. Do you guys know of any good templates? It's urgent :)


Use irreducible fibers to show $X$ is irreducible

Let $\pi:X\rightarrow Y$ be a proper morphism to an irreducible variety and all fibers of $\pi$ are nonempty, irreducible, and of the same dimension.  Show $X$ must also be irreducible.  Thanks (Any hints would work too)


1970s or '80s animated movie about a boy who visits an island or city populated by androids

I'm trying to identify an animated movie I saw in the theater around 1980. It was a children's matinee, so it may be older. In the movie, a boy visits an island or city where the inhabitants are all androids or robots. The island may have been operated or built by his relative... an uncle? Things go wrong, and he has to escape, chased by everyone. The twist at the end was that as the boy was floating away on a boat, he started repeating himself like a broken record, thus revealing himself to be an android/robot also. The only line I can remember from the movie was during the chase, when the villain shouted he was going to turn them into shish kebabs. Googling that phrase hasn't turned up any hits that I recognize.


Add prefix and suffix to every line in a .txt file

I am trying to append and prepend text to every line in a .txt file.  I want to prepend: I am a   I want to append:  128... [}  to every line.  Inside of a.txt:  fruit, like bike, like dino, like   Upon performing the following command:  $ cat a.txt|sed 'I am a ',' 128... [}'   it does not work how I want it to. I would really want it to say the following:  I am a fruit, like 128... [} I am a bike, like 128... [} I am a dino, like 128... [}


At what modifiers are the attacks from the Two-Weapon Fighting feats made?

I am aware that this may seem like a basic question or may have a duplicate (although I checked for both, and if this case I would happily remove the question) but I am curious about how many attacks and at what BAB those attacks are made if a character has if they go down the Two Weapon Fighting feat tree. Below are the feat descriptions of Two-Weapon Fighting, Improved Two-Weapon Fighting and Greater Two-Weapon Fighting.  Improved Two-Weapon Fighting: In addition to the standard single extra attack you get with an off-hand weapon, you get a second attack with it, albeit at a - 5 penalty (see Table 8-10, page 160). Greater Two-Weapon Fighting: You get a third attack with your off-hand weapon, albeit at a -10 penalty.  The Player's Handbook is fairly clear that if the off-hand weapon is light then the penalties are -2/-2.  So... Assuming a 11 level fighter with BAB of +11/+6/+1, a strength bonus of +1(for the sake of simplicity), wielding a shortsword(1d6) in his mainhand and a kukri(1d4) in the off-hand. How many and can he have and at what BAB if he has TWF, and ITWF? What weapons are used for each attack? How many and can he have and at what BAB if he only has TWF, ITWF and GTWF? What weapons are used for each attack?


I tried to replace the existing file with ">" symbol but it ends up with empty file, can someone help me to check my code?  $ grep -c "ERROR" server.log.2016-03-15  633 $ grep "ERROR" server.log.2016-03-15 >error  $ grep -c "ERROR" error  633 $ grep -c "Login errors" error  95 $ grep "ERROR" error | grep -v "Login errors" >error $ grep -c "ERROR" error  0


Running analyses with uneven group sizes

I was trying to run a study with 100 people per condition for 4 conditions. When I looked at the results, the group sizes were skewed - some had 80, some had 120. If I'm planning on running a series of two-way ANOVAs, would the uneven group sizes negatively affect the results?


Hi i want to validate url in jquery so i am using that regex expression  if(/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i.test(url)){ } else {    $('#peUrl-'+index).prev('.errorHint').text("Please enter valid URL");     }   But that regex expression is sometimes not working what is that issue in expression?


i have 1GB micro SDcard, earlier used that one in mobile phone, when i try to format that using card reader got error message, "can't write to dev/sdb, because it is opened as read-only" but able to format in android phones, i tried in windows and ubuntu, unable to format in both os. then i tried this command : sudo fdisk /dev/sdb  Welcome to fdisk (util-linux 2.34).     Changes will remain in memory only, until you decide to write them.     Be careful before using the write command.  fdisk: cannot open /dev/sdb: Read-only file system  How to fix this issue, and i tried some other micro SDcards the result is same, all sdcards in read-only mode.


Kill process when PID is constantly changing

When I issue  ps aux | grep mtp   I get  ubuntu-+ 15934  0.1  0.0 519848  7068 ?        Sl   21:13   0:00 /usr/lib/gvfs/gvfsd-mtp --spawner :1.9 /org/gtk/gvfs/exec_spaw/20   So the PID in this case is 15934. But every new time this is run the PID is different. Is there any other way to kill a process other than by PID?


PHP Mysql Prepared statement different result

I have this mysql query in php:  $sql2 = "SELECT id, nazev, poradi FROM system WHERE id IN($idIs) ORDER BY poradi"; $result2 = mysqli_query($conn, $sql2);   The variable $idIs is a string '2,3' (two ids of system). When I try to fill array $nazevSystemu, there are two values (beacause of the two ids from $idIs)  $i = 0; $nazevSystemu = []; while($row2 = mysqli_fetch_assoc($result2)) {   $nazevSystemu[$i] = $row2['nazev'];   echo $row2['nazev'];   $i++; }   Result of echo $row2['nazev'];: Value1Value2  I want to make it safe, avert SQl inj., so I use prepared statement like this (instead of the first two rows of code on this page):  $stmt2 = $conn->prepare("SELECT id, nazev, poradi FROM system WHERE id IN(?) ORDER BY poradi"); $stmt2->bind_param("s", $idIs); $stmt2->execute(); $result2 = $stmt2->get_result();   But now I get only this as result of echo $row2['nazev']; - just one value: Value1  What did I do wrong in prepared statement?


Looking to Identify Book that has a large Leviathan type ship on the front

The cover has a large Leviathan type ship on the front.   It is set in deep space as the people on said ship have been living there for generations. They come across an abandoned ship and set out to check it out. There are several traps but it seems to be a human ship and they even find a lone woman. Unfortunately she turns out to be an alien and attacks. They end up on a planet where a factory/warehouse is found to contain bodies, they think were eaten/experimented on by the aliens. I thought the book was called Leviathan but can't seem to find it anywhere. I seemed to be an older book from the golden age maybe even up into the 70's but I haven't had any luck yet. Any help I could get finding this would be great,thanks.


Do I need to wipe and reinstall after possible hacker attack

Yesterday I noticed that the xterm title I use changed suddenly to something strange. So I suspect that someone hacked my Linux laptop (I'm using Arch). I changed the WiFi parameters (pass, essid) and changed my password on the computer. I also reinstalled all packages to overwrite files that may have been changed. I tried to take a look at the changed files, logs and so on, but I don't have experience in security, so it was like walking in the dark ;) and of course I didn't found any signs of intrusion. Do you think I should wipe the system and install from scratch?


c++ template partial specialization member function

I'm new to templates so maybe this is a trivial thing but I cannot get it to work. I'm trying to get partial specialization of a class member function. The shortest code would be:  template <typename T, int nValue> class Object{ private:     T m_t;     Object(); public:     Object(T t): m_t(t) {}     T Get() { return m_t; }      Object& Deform(){          m_t*=nValue;          return *this;     } };  template <typename T> Object<T,0>& Object<T,0>::Deform(){     this->m_t = -1;     return *this; }  int main(){     Object<int,7> nObj(1);     nObj.Deform();     std::cout<<nObj.Get(); }   I tried with nonmember functions and that's worked fine. What also works fine is full specialization of a member function.  But, whenever I try with partial spec. of a member function I get error of the form:   PartialSpecification_MemberFu.cpp(17): error: template argument list must match the parameter list Object<T,0>& Object<T,0>::Deform().   Would appreciate any help :-)


I'm fairly aware that who is used for subjects and that whom is used for objects. However, what about when the object is actually being modified by a clause? I have the sentence      We can determine this by solving for the location of a consumer, ______ is indifferent to each of these stores.   Would who or whom be more appropriate in the blank? Would it be who because the customer is indifferent, or would it be whom, since it is the location of a customer?


My supplier sent  my raw material 250 kg short of the full amount .   Is use of '' short '' correct in this sentence ? Can I use this in this way? What I want to say is that My order which was raw material was sent by my supplier. But it was 250 kg less than total amount.


Shortcut for determining equivalence relations?

Is there a short cut to determine the number of equivalence relations on the set $\{1,2,3,4\}$? I mean I could do that manually but for a larger set it becomes annoying. Is there a general way to partition it?


Understanding XOR (Exclusive Or) in code

I understand the idea and concept of XOR outside of code. But I wanted an easy explanation when it's used in code. Let me give you a few examples of what I'm having trouble understanding.   Say we wanted to Swap internet values in C++ with out using a third temp variable and by using XOR, like so:  int a = 1; int b = 3;  int *x = &a; int *y = &b;  *x ^= *y; *y ^= *x; *x ^= *y;    Now I understand that *x ^= y translates to *x = *x ^ *y But I just need to understand one line only to understand the rest. Basically, in *x = *x ^ *y why is *y always being set to *x in order to being the swap sequence? (Or am I getting that part wrong too?) How is *y being exclusively chosen and on what criteria?


What does a confidence interval with a negative endpoint mean?

I have 10 iid r.v. with Bernoulli distribution with $X_{i} = 1$ for a positive result. I'm given $\sum_{i=1}^{10} X_i= 1$ and need to find a two-sided 99% confidence interval for $\theta$.   So $\alpha = 0.01$ and $z_{\alpha/2} = 2.575$ based on the standard normal distribution. The variance is given $\sigma^{2} = \hat{\theta}(1-\hat{\theta})$, with $\theta = 1/10$ from the given information. The confidence interval is: $$ \left(\hat{\theta} - z_{\alpha/2}\frac{\sigma}{\sqrt{n}}, \hat{\theta} + z_{\alpha/2}\frac{\sigma}{\sqrt{n}}\right) $$ so my confidence interval is $(-0.143, 0.343)$. Have I messed up a calculation somewhere? I'm not sure what this confidence interval tells me ... perhaps that the sample size is too small to really get any useful information on $\theta$?


How to fix"java.lang.OutOfMemoryError" in android?

I got the logcat error:   12-10 17:49:21.393: E/AndroidRuntime(16350): FATAL EXCEPTION: main 12-10 17:49:21.393: E/AndroidRuntime(16350): java.lang.OutOfMemoryError 12-10 17:49:21.393: E/AndroidRuntime(16350):    at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 12-10 17:49:21.393: E/AndroidRuntime(16350):    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:527) 12-10 17:49:21.393: E/AndroidRuntime(16350):    at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:301) 12-10 17:49:21.393: E/AndroidRuntime(16350):    at com.smalt.photoview.MyAdapter.getView(MyAdapter.java:110)   my android class file is write like this:  @Override public View getView(int position, View convertView, ViewGroup parent) {     ViewHolder viewHolder = new ViewHolder();     if (convertView == null) {         convertView = inflater.inflate(R.layout.item, null);         viewHolder = new ViewHolder();         viewHolder.imageView = (ImageView) convertView                 .findViewById(R.id.item_imageview);         BitmapFactory.Options options = new BitmapFactory.Options();         options.inSampleSize = 2;         Bitmap bitmap = BitmapFactory.decodeFile(                 imgPathlist.get(position % imgPathlist.size()), options);         viewHolder.imageView.setImageBitmap(bitmap);// 为ImageView设置内容         viewHolder.imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);         viewHolder.imageView.setLayoutParams(new LinearLayout.LayoutParams(                 100, 100));         viewHolder.imageView.setBackgroundResource(mGalleryItemBackground);         convertView.setTag(viewHolder);     } else {         viewHolder = (ViewHolder) convertView.getTag();     }     return convertView; }   class ViewHolder {     ImageView imageView; }   I don't know how to fix the code,please teach me how to do?


What should I be doing with my money as I save for a down payment on a house?

A bit of background:  My wife and I have a combined income of over $100k (before taxes, retirement, etc). We both put 15% of our paycheck into a 401(k), and we have no debts of any kind. We pay off our credit cards in full every month.  Currently, we are saving for a down deposit on a house, and as a result we have $35,000 that is just sitting in my bank account. We live modestly and save around $3000 a month so our savings are growing quickly.  My question is: what should I be doing with this money while we save for a down deposit? I know it is bad to simply keep money in a bank account due to inflation, missed investment opportunities, etc, but we want the money to be easily accessible when it comes time to purchase a house. Is there a wise, safe investment strategy I can make that will allow me to easily and quickly withdraw the money when the time comes?  Some of our friends advise us to purchase a house now, but we are trying very hard to get to a 20% down deposit, which would be around $50k for the kinds of houses we have in mind.


Note : This is not a duplicate question to . After filtering a custom filed, I need to order by another custom filed. (The above link explains filtering by two custom fields. But I need to filter by a custom filed and then order by another custom filed.  This is a my current wp query array.  $args = array(  'post_type' => array('post', 'video'),  'meta_key' => 'pp_like_count',  'orderby'  => 'meta_value_num',                         );   I have order by custom filed called pp_like_count. This works fine.  But I need to display only if 'pp_lang' custom filed equals to 'english'. How to modify this to add it?  (Order by pp_like_count also should be there.)


(This is adapted from problem $1$ of Putnam $2009$)  Find all values of $n$ such that the following is true:   There is a non-constant function $f : \Bbb{R}^2 \longrightarrow \Bbb{Z}_2$ such that for any regular $n$-gon $A_1...A_n$, $f(A_1) + \cdots + f(A_n) =0$.


Show that for any integer $n$ we have $1+2\left( abc \right)^{n}\ge a^{2n}+b^{2n}+c^{2n}$

Let be $a,b,c$ real numbers from $\left[ -1,1 \right]$ satisfying : $$1+2abc\ge a^{2}+b^{2}+c^{2}$$ Show that  : $$\forall n\in \mathbb{N} \ \ \ \ 1+2\left( abc \right)^{n}\ge a^{2n}+b^{2n}+c^{2n}$$ I tried using induction but I can't find  way to lower the term $a^{2n+2}+b^{2n+2}+c^{2n+2}$ properly. Any suggestions or hints This problem was on IMC 2010.


I'd like to install photoshop cs6 on ubuntu 12.10   I've tried searching software center but didn't find anything except gimp, but I want photoshop cs6 not anything else  Anyone can help?


Is it OK to have Microsoft Visual C++ Redistribuable installed several time (same year / CPU / version)?

If I go to Programs > Programs and features on my computer, I have Microsoft Visual C++ Redistribuable item installed several times, for the same year and for the same CPU target (x86 or x64). Sometimes, even version is the same (only install date is different).    Is this OK or, should I uninstall the duplicates (and only keep latest version ?)


Using plural or singular verb after "neither" and "none"

With reference to       None of the above sentences is strictly correct.      Neither of the above sentence/sentences is/are strictly correct.    The person has used  are with none. This contradicts above notion of using singular with none. Which is more correct?  The first sentence is perfectly fine, but I'm getting confused from the second sentence. In this sentence, how would we decide about antecedents? Can we use both sentence interchangeably?


Recently, I have messed around trying to dual-boot Windows 10 and Ubuntu. It was a great failure with various problems. Long story short, I wiped my drive and installed Windows 10 fresh. The first thing I wanted to do was to boot into UEFI firmware settings (using Windows Advanced Restart) and disable secure boot and fast boot. However, the UEFI firmware settings boot option does not exist! As far as I can tell, it is impossible for me to boot to UEFI/BIOS (spamming F12, F2, del, etc. does not work either). So how can I boot to firmware settings, or restore them if they are broken? Surely they cannot be non-existent. Image of System Information:


Total sum of squares(TSS) is not equal ESS +RSS, when the model doesn't include intercept of ones

Why is that? Why $TSS = ESS + RSS$ ,iff only we have an intercept(constant term) in our regression model?Why it doesn't work, when model doesn't include intercept?


How can I find $\lim_{n\rightarrow \infty}{(\frac{n}{n^2+1}+\frac{n}{n^2+2}+ \cdots + \frac{n}{n^2+n})}$?

I am having troubles with this limit:  $\lim_{n\rightarrow \infty}{(\frac{n}{n^2+1}+\frac{n}{n^2+2}+ \cdots + \frac{n}{n^2+n})}$  The denominators make an arithmetic progression, I have tried to calculate it, but it didn't help me. Any ideas, how to solve it?   Thanks a lot


Started new job. Rollover previous employer 401k to new 401k, IRA or Roth IRA?

I recently started a new job and have a 401k from my previous employer that I don't know what to do with.  Should I roll it into my new employer's 401k, a traditional IRA or a Roth IRA?


Cannot login to Stack Exchange using Blogger OpenID with custom domain

I tried to login today using my blogger custom domain account, but I kept getting a 404 error. Here are the steps I tried using both Chrome and a Internet Explorer, both with cache and cookies cleared:  Visit any Stackexchange site (SO, DIY, English, etc) Click login button and select More OpenID options Enter my custom domain into the box:  Press login and browser is redirected to the blogger login page (as expected) Login with my blogger credentials Credentials are accepted, but browser is then redirected to a 404 error page.  Depending on the browser I was using the URL that it was directed to would appear different: IE displayed:  Chrome displayed (redacted): https://www.blogger.com/loginz?d=%2Fopenid-confirm.g%3Fidentity%3Dhttp%253A%252F%252Fblog.theg2.net%252F%26realm%3Dhttp%253A%252F%252Fenglish.stackexchange.com%252Fusers%252Fauthenticate%252F%26openIdSetupToken%3Doidrp.identity%253Dhttp%25253A%25252F%25252Fblog.theg2.net%25252F%2526oidrp.return_to%253Dhttp%25253A%25252F%25252Fenglish.stackexchange.com%25252Fusers%25252Fauthenticate%25252F%25253Fs%25253D8820be50-xxxx-xxxx-xxxx-da58db477401%252526dnoa.userSuppliedIdentifier%25253Dblog.theg2.net%252526dnoa.op_endpoint%25253Dhttp%2525253A%2525252F%2525252Fwww.blogger.com%2525252Fopenid-server.g%252526dnoa.claimed_id%25253Dhttp%2525253A%2525252F%2525252Fblog.theg2.net%2525252F%2526oidrp.trust_root%253Dhttp%25253A%25252F%25252Fenglish.stackexchange.com%25252Fusers%25252Fauthenticate%25252F%2526oidrp.assoc_handle%253D&a=ALL&pli=1&auth=DQAAAHwxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxx........ I also noticed that a new login option for "StackExchange Account" was listed. I tried entering in my email account, but it said there was no account associated with it. Update: See blog post about new  UPDATE: I was finally able to login by adding a second OpenID to my account (a Google account or ) and then login using that OpenID. It appears either blogger changed their OpenID system and/or StackExchange is no longer comparable with blogger open id accounts. It also works if you login to  before trying to login to a StackExchange site (see answer below). Trying to login to StackExchange first using a blogger OpenID with custom domain still generates a 404 error.


Infinitely differentiable functions: how to prove that $e^\frac{1}{x^2-1}$ has derivative of any order?

Let $f:\Bbb{R}\to\Bbb{R}$ be a function given by  $$f(x)=\begin{cases} \exp\left(\frac{1}{x^2-1}\right) & \text{if }\vert x\vert\lt 1\\  0 & \text{if }\vert x\vert\geqslant 1  \end{cases}$$  I would like to prove that $f\in C^\infty$, that is, $f\in C^k$ for all $k\in \mathbb{N}$. I think that it can be done by induction on $k$. If $\vert x\vert\gt1$, the problem is trivial. On other points, the base case is the simplest and the only that I'm be able to do. Can someone help me?  Thanks.


I have code javascript:  valueToBelocl = 9876543210123456; modLocale = "en-US"; valueToBelocl = valueToBelocl.toLocaleString(modLocale);   ressult: 9,876,543,210,123,460  Expected:9,876,543,210,123,456  Please help me make correct result! Thanks!


Can one buy a licence to customize stack exchange

I am looking for a product.  Basically exactly stack exchange but for a custom internal application.   We want to implement a Q&A site with reputation into our existing customer base.   I'm open to paying or open source solution.   Self hosted or cloud


When combining p-values, why not just averaging?

I recently learned about Fisher's method to combine p-values. This is based on the fact that p-value under the null follows a uniform distribution, and that $$-2\sum_{i=1}^n{\log X_i} \sim \chi^2(2n), \text{ given } X \sim \text{Unif}(0,1)$$ which I think is genius. But my question is why going this convoluted way? and why not (what is wrong with) just using mean of p-values and use central limit theorem? or median? I am trying to understand the genius of RA Fisher behind this grand scheme.


I'm planning a trip to recover a motorcycle from a distant city. The ideal trip would be flying to that location and coming back riding the bike, but that would require me to transport my riding gear with me in the plane: Leathers, boots, gloves, back protector and crash helmet.  All this is bulky and expensive stuff, and a crash helmet may be damaged if dropped or hit hard.   I don't expect any airline to allow me a crash helmet as hand luggage; and wearing it all the time is out of the question :-)   To complicate things, I would be coming back riding the bike, so any hard suitcase would have to be left behind.   How do people normally transport that kind of stuff?


I have an object in STL format that I have imported into the Blender. The Object is made of up several parts but in the editor mode it shows up as one set of polygons.  I have managed to use the Linked option in the Select menu to only have the desired parts in edit mode.  How can I make this a separate object from the original STL object ?  I just want to add different colors and textures to different parts of my object. But as it is Blender sees everything as one object .  I have attached an image where you can see the orange area are the linked parts in edit mode that I wish to separate from the original Green colored areas so that I can give them a different texture and color.  Many thanks.


How to redirect stdout and stderr in different files

While running shell scripts how we can redirect the output of shell scripts into two different files. i.e.STDOUT and STDERR files. If there is some error logs should go to STDERR file and if script successfully runs then logs should be generated under STDOUT file


Can I store the .git folder outside the files I want tracked?

I have an unusual idea to use git as a backup system. So let's say I have a directory ./backup/myfiles and I want to back that up using git. To keep things clean I don't want to have a .git directory in the myfiles folder, so I thought I could create ./backup/git_repos/myfiles. From looking at the git docs, I've tried doing this:  $ cd backup/myfiles $ mkdir ../git_repos/myfiles $ git --git-dir=../git_repos/myfiles init Initialized empty Git repository in backup/git_repos/myfiles/ $ git --git-dir="../git_repos/myfiles/" add foo fatal: pathspec 'foo' did not match any files   You can see the error message I get there. What am I doing wrong?


Evaluating $\int^\pi_{-\pi} \cos^3(x) \cos(ax)~dx$

I need to evaluate $I = \int^\pi_{-\pi} \cos^3(x) \cos(ax)~dx$ where $a$ is some integer.   I get: $\dfrac{2a(a^2-7)\sin(\pi a)}{a^4 - 10a^2 + 9}$. However $\sin(\pi a)$ is $0$ for all $a$ so $I=0$. But as noted by an answer, there are answers for $a = 1,3,-1,-3$.


Specific vocabulary for making someone laugh by rubbing their underarm with finger

To make someone laugh, we sometime rub his underarm with our fingers in a way that makes him feel restless and then  he starts laughing. My question is: What is the specific vocabulary in the English language for the aforesaid rubbing?


English word for days/weeks/months where there is a skip between each days/weeks/month?

I'm looking for an English word (phrase) to be used when someone wants to mentioned days/weeks/months/year ... where there is a space or skipped days/weeks... between each two. ** For example:** let say we have 10 days and I want to say only Day#1, Day#3, ..., Day#9 or (#2, #4, ..., #10).


Prove that for a Fibonnaci sequence $f(5n)$ is divisible by $5$ for all $n$.

QUESTION: Let $f:\mathbb{N}→\mathbb{N}$ be the function defined by $f(0)=0$ ,$f(1)=1$ and $f(n)=f(n-1)+f(n-2)$ for all $n≥2$ , where $\mathbb{N}$ is the set of all non negative integers. Prove that $f(5n)$ is divisible by $5$ for all $n$.   MY ANSWER: It's clear that this is a Fibonacci sequence which goes like$→$ $0,1,1,2,3,5,8,13,21,.......$  Now intuitively, we can see that $f(5n)$ is congruent to $0(mod 5)$. But how do I rigorously prove the same?  Any help is much appreciated.  Thank you.


Getting GIF and/or moving images into a LaTeX presentation

I'm very new to presentations in LaTeX (I've been using PowerPoint for years but have finally converted). I am wondering how to get a GIF into a section. If need be, I can convert a GIF into lots of pictures and have them overlay to give the impression of movement.


QGIS creating a fixed distance buffer over selected areas not the entire layer

what im doing is making a fixed distance buffer and it's working splendidly but i need the buffer to be created over certain selected areas not the entire layer, and at the creation wizard is only offers the the option of selecting the entire layer, and i need some areas within that layer to have a different buffer and some none at all.  is there a way around that?


One force applied to one point of a rigid body: centre of mass and torque

Let us suppose that one force is applied to a point of a rigid body that is not acted upon by any other force. I think an example can approximatively be a rock in deep space, far from any relevant gravity force, pushed by an astronaut.  I would intuitively say that the rock would in general be subject to a non-null torque, unless the line passing through the centre of mass of the body and the point where the force acts is parallel to the direction of the force... Nevertheless, I am not able to prove it to myself: I have tried to reason by using a non-inertial frame accelerating together with the centre of mass of the body, but I have reached no result.  I am a beginner in the study of torque and rotation mechanics, but I am very curious about the issue. I have searched the Internet for an explanation of what happens in such situations, but I have found nothing and. How can it be proved, by using rigourous mathematical tools, that the torque is null if the line passing through the centre of mass of the rigid body and the point where the force acts is parallel to the direction of the only one force acting on the rigid body?  EDIT: I suspect that 's answers may solve my question, but, although my thirst for knowledge is great, I have not got the needed tools to understand whether and how it relates to my question: for ex. my textbook has not explained concepts like the moment of inertia yet at the point where my studies are. I will return to it to understand it better once I masterize those tools.


I already know how to use grep or awk to match something in a log file, but is there a way to do the following?  Match a specific line in a file...and include it in the result. From the matched line from (1.) in the file, go up until a second string is matched and include it as well as all the lines between in the result. And then with a third match start searching from the match (1.) down a third string is matched and include it as well as all the lines between in the result.  This way if what is being searched for is in the context of a BEGINNING and an END you can search for just the context that what you were searching for occurred in. The log file looks like this: <several-1000-lines> ...[BEGINX] some log a <several-1000-lines> ...[First-string-i-search-for] <several-1000-lines> some log b ...[ENDX] <several-1000-lines>  and then I would get something like this as output after searching for [First-string-i-search-for]: ...[BEGINX] some log a <several-1000-lines> ...[First-string-i-search-for] <several-1000-lines> some log b ...[ENDX]


How to show that $\sqrt{p}$ is an irrational number, given that $p$ is a prime number?  $\sqrt{p}=\frac{a}{b}$  $p=\frac{a^2}{b^2}$


I have the following formula in a sheet:  =if(E1="HOLD",,query(Cust_Orders!B6:Z5000,"Select Y,G,I,H,K where H>0  "))   With E1 being a drop down with values HOLD and FETCH  The recalculation when I go to FETCH takes about 13 seconds.  But when it is in HOLD, the query doesn't exceute, and everything goes blank. Not what I want.  I'm trying to avoid recalculating this query every time I make a change in the Cust_Orders range, but keep the old values, as two different pivot tables that are viewed by other people are dependent on it.  Google spreadsheet recalc settings all are 'on change and foo'  Is there a way to do this?


Command to check whether the current user has write permission

I have to create a script to check if the current user has write permission on a file. If not, an error should appear.   I wrote this:  if [namei -m /path/to/textfile.txt | grep w]; then    echo "message"   But I seem to get a syntax error.


How do I simplify the following:   $a^{b} \ \pmod {b}$ where $b$ is very large.  For example:  $2^{499} \pmod {999}$   How do I find the result without computing all?  I don't want to use such a quantity of memory for storing the value of $2^{499}$.  Is there any sort of property to find the result in a faster way?


Is the number 0.2343434343434.. rational?

Consider the following number:  $$x=0.23434343434\dots$$  My question is whether this number  is rational or irrational, and how can I make sure that a specific number is rational if it was written in decimal form.  Also, is $0.234$ rational or irrational?


Anime movie with two brothers, one has a sword which gets more powerful (but also more evil) when stones are added to it

I watched an anime movie 4-8 years ago. Here's what I can remember: It's about two brothers, they go to school. But the older brother has a sword and has to find gems/stones which make it more powerful. The younger brother wants him to stop (because of the evil that comes with that power I think). Now I can't remember what was up with the stones at this point, but the brothers entered some kind of other world (it looked very bright I think) and had to fight, I THINK the older brother wanted to have the last stone which the younger one had. I don't remember the ending.


Can evaporated milk be converted to sweetened condensed?

(Not a duplicate of , I don't believe)  If I have a recipe that calls for sweetened condensed milk but only have a can of evaporated milk, is there anything I can do to it to the evaporated milk to make it a suitable replacement for sweetened condensed milk?  Does the heating / sterilizing of evaporated milk ruin it as a replacement?


Convert an image to grayscale in HTML/CSS

Is there a simple way to display a color bitmap in grayscale with just HTML/CSS?  It doesn't need to be IE-compatible (and I imagine it won't be) -- if it works in FF3 and/or Sf3, that's good enough for me.  I know I can do it with both SVG and Canvas, but that seems like a lot of work right now.    Is there a truly lazy person's way to do this?