Sort order to order this list in a specific order

I know there are tons of sorting questions on here, but I'm unable to resolve my use case.  I am trying to sort a list in R (on Ubuntu 16.04) and am at my wits end! I've been trying to mess with the LC_ALL=C and collate settings and can get results to sort differently, but I'm unable to get the result I need. This is what I need:  2014_Actual / 2014_Target / 2014_Percent / 2015_Actual / 2015_Target / 2015_Percent  The trick I use in windows is to delete the underscore, so: 2014_Actual / 2014_Target / 2014Percent / 2015_Actual / 2015_Target / 2015Percent, which is acceptable to my users. But obviously this doesn't work in Linux since it ignores the underscore.  Does anybody have any ideas on how I could get the above mentioned sort order at the LC_ALL level?  Thanks in advance.  EDIT: Adding clarity: the problem is that when I sort the above in Linux, it ignores the underscore and gives: 2014_Actual / 2014Percent / 2014_Target /  2015_Actual / 2015Percent / 2015_Target


Why doesn't $0$ being a prime ideal in $\mathbb Z$ imply that $0$ is a prime number?

I know that $1$ is not a prime number because $1\cdot\mathbb Z=\mathbb Z$ is, by convention, not a prime ideal in the ring $\mathbb Z$.  However, since $\mathbb Z$ is a domain, $0\cdot\mathbb Z=0$ is a prime ideal in $\mathbb Z$. Isn't $(p)$ being a prime ideal the very definition of $p$ being a prime element?  (I know that this would violate the .)    Edit: Apparently the answer is that a prime element in a ring is, by convention a non-zero non-unit (see ).  This is strange because a prime ideal of a ring is, by convention, a proper ideal but not necessarily non-zero (see ).  So, my question is now: Why do we make this awkward convention?


T-SQL How to leave two decimals without rounding

I am using SQL Server 2008.  I am trying to leave number without rounding after data gets retrieved from .NET website.  For example, the number I get from the website is 10.7658234  I would like to leave the number as 10.76 instead of rounding it to 10.77.  Currently, the data type in SQL Server is numeric(11,2).  How do I go about doing it?  Thanks.


When space expands, light is said to be stretched or red-shifted. In fact, Penzias and Wilson discovered this in 1965 and were awarded the Nobel prize in Physics for this discovery.   Now, what I am confused with is whether the expansion of space into itself affects matter or in other words, how does expansion of space affect matter?   Does space expansion also mean time expansion?  Please enlighten me. Suggested readings will be highly valued.


Ubuntu software and other software stucks on software catalog is being downloaded

This is the result of sudo apt update on my system: Ign:1 http://ppa.launchpad.net/webupd8team/atom/ubuntu focal InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease                          Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]         Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]      Get:5 http://archive.ubuntu.com/ubuntu focal-security InRelease [107 kB]        Err:6 http://ppa.launchpad.net/webupd8team/atom/ubuntu focal Release            Could not connect to ppa.launchpad.net:80 (2001:67c:1560:8008::15). - connect (101: Network is unreachable) Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out [IP: 91.189.95.83 80] Reading package lists... Done                                 E: The repository 'http://ppa.launchpad.net/webupd8team/atom/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


What does it mean when a set is said to be a "finitely generated vector space"?

I've somehow managed to go through 3 years of my Maths degree without truly understanding what the term "finitely generated vector space" means.   Generated by what? Generating what? And for what? I have a very vague idea of what this term means and usually gloss over it when doing proofs but I think I just want a simple break-down of the meaning of this.


Including HTML code side by side in Latex

I want to write HTML codes of two pages side by side in LaTeX like as follows:  <html>   <html> <head>   <head> </head>  </head> <body>   <body>  ...      ... </body>  </body> </html>  </html>   I know how to include HTML code in LaTeX but I have no clue how will I achieve it. So if anyone please help me regarding this I will be grateful. Thank you.  EDIT: I have tried it with the help of table as shown below, but it is giving errors.  \begin{table}[htb] \parbox{.45\linewidth}{  \centering  \begin{tabular}{c}   \begin{lstlisting}[language=html]  <html>  <head>  </head>  <body>   ...  </body> </html>  \end{lstlisting} \end{tabular}    } \hfill \parbox{.45\linewidth}{ \centering \begin{tabular}{c}  \begin{lstlisting}[language=html] <html> <head> </head> <body> ... </body> </html> \end{lstlisting} \end{tabular}    } \end{table}


How to make Ubuntu 18.04 dock panel preview order stable?

Let's say I have 2 Terminals open in the background.  I click on the Terminal icon on the dock, it shows me the preview of two windows and I click on the first one. I discover that this is not the right one.  Now I click on the icon again, get the preview of two windows again and select the second one. I get same terminal again! Ubuntu has switched the order of the previews in the meanwhile.  Is there a setting that keeps the order of these window previews stable?


bash if statement troubles [Error==Error]: not found

Everytime I run my script the following if statement gives me the error;  script.sh: [Error==Error]: not found   or  script.sh: [Error==-2]: not found     if ["$P1"=="$P2"];then             echo $name fi   I've tried other versions      if ["$P1"=="$P2"]             then             echo $name     fi   and       if [[ "$P1" == "$P2" ]]             then             echo $name fi  P1="Error" P2="$(sed -n '1p' somefile.txt)"   somefile.txt might contain a number or a string


Minecraft coordinates unavailable, how can I find them

I can't find where I'm going or what depth level I'm on. How do I turn on my coordinates? Are they even on mcpe? Also, can villagers trade yet?


I have a few questions about Wolverine's regenerative properties.  So I heard that Magneto ripped out Wolverine's metal skeleton. This left Wolverine back to his bone form, so he had his bone claws.  My question is as follows... if Wolverine can survive his metal skeleton being ripped out of him and then he lives.    What would happen if you ripped his metal skeleton out then cut him vertically in two. Would he die, or regenerate? I believe if you do this to a worm, the worm will die.  If he'd die in Q1 then then what happens if you cut him horizontally at the waste? If one half would regenerate the other in Q2, could he cut off his own arm and use it as a weapon, and have the arm he cut off regenerate?


How can I prove that the additive group of rationals is not isomorphic to a direct product of two nontrivial groups?

I am working through Paolo Aluffi's new GSM text on my own (self-study). On page 63, he asks the reader to     Prove that $\Bbb{Q}$ is not the direct product of two nontrivial groups.   For some context, this is an exercise following a section entitled "The category Grp".  I am assuming that he means "is not isomorphic to the direct product of two nontrivial groups", and I can see two possible ways to proceed with this proof, but have been unsuccessful with either approach.    Approach 1:  Show that the additive group of rationals has a property that is preserved by isomorphism that the direct product of two nontrivial groups does not have or vice-versa.  This seems challenging unless I can significantly narrow down the properties that a direct product of two nontrivial groups that was isomorphic to $\Bbb{Q}$ would necessarily have.  Approach 2:  Considering the section in which this question occurs, show that if $G$ and $H$ are nontrivial groups and $\Bbb{Q} \cong G \times H$, then there are homomorphisms $\varphi_{G}:\Bbb{Q} \rightarrow G$ and $\varphi_{H}:\Bbb{Q} \rightarrow H$ which do not factor or do not factor uniquely through the product $G \times H$.  This would be a contradiction, as $G \times H$ is a final object in the category Grp.  I would greatly appreciate suggestions on how to proceed further with either of these approaches or with alternate approaches.


I have an array of integers say array = [1,2,3,4,5,6,7,8,9];  The array of integers is created from an array of strings using this command  int[] array = Array.ConvertAll(arr, int.Parse);   I am trying to extract some data from the database db1  sql = $"SELECT col1, col2 from dbo.databas1 WHERE col1 in array";   I am fairly certain that my SQL code is wrong towards the end in the where clause. Can anyone tell me how implement the where clause in the SQL code?  Col1 is bigint (if it is of any help)


ON or AT? "Our journey starts on the railway platform?" or "at the railway platform"

Can I write  Our journey starts on the railway platform?  Or does it start at the platform?


Whether the sequence $\{x_n-y_n\}$ converge or not.

Given, $\{x_n\}$ and $\{y_n\}$ are two real valued sequences such that $\lim_{n\to\infty} (x_{n}^{3}-y_{n}^{3})=0 $ Then is it always true that $\lim_{n\to\infty} (x_n-y_n) =0 $ ? I tried by splitting $ (x_{n}^{3}-y_{n}^{3}) $, but that didn't help as $\lim_{n\to \infty} (x_{n}^{2}+x_{n}y_{n}+y_{n}^{2}) $ can be $0$ or non zero or doesn't exist.


I want to write IRC Twitch bot. I have never used Pirc library before, so i wrote this simple bot to get started.   BasicBot class :  public class BasicBot extends PircBot{  public BasicBot(String name){     super();     this.setName(name); }  protected void onMessage(String channel, String sender, String login, String hostname, String message) {      if(message == "2/10"){          sendMessage(channel,"YAYO");       }      System.out.println(message + (message == "2/10"));  } }   but when message 2/10 appears on chat this is what i see in console :  2/10false   I don't know why "2/10" == "2/10" is false. I tried also other strings like "banana" or "apple" and result was similar. Please help.


Is there a phrase that means treat someone dismissively

A financial planner treated us in a dismissive fashion and I want to say that he "gave us the back of his hand" but that phrase doesn't seem to have the meaning of dismissive. Does it or is there a similar idiom?


batch renaming all files in a folder to lowercase letters regex not working

I need to rename all folders and files to lowercase, I looked on this forum and found the following command find . -name * -type f -exec rename 'y/A-Z/a-z/' '{}' \;  I tried this, and while the command runs fine with no error message, some files are still uppercase.  I also found this online find ./ -depth -exec rename 's/(.)/([/])/$1/\L$2/' {} \;  Oddly enough, this worked for one of my folders but not the other one. I'm a linux noob, does anyone know what is going on? I appreciate your time.


sudo permission denied on nmcli : ubuntu server 64 raspberry pi 3

I have freshly installed and updated ubuntu on raspberry pi 3.  Neither sudo ls nor sudo apt-get install pose any problem, but executing:  sudo nmcli device status   gives:     Error: Could not create NMClient object: Could not connect: Permission denied


Why is line #29 is causing a NullPointerException?

I am creating an atari breakout game in processing and I'm trying to figure out the collision detection that allows the ball to bounce off the controller. The commented out lines (along with the hitController function) is supposed to be the method for this and the program runs fine without the commented lines but with them, it causes a NullPointerException. Any suggestions?  class Ball {   float rad = 15;   float xpos, ypos;   float xspeed = 2.8;   float yspeed = 2.2;   float xdir = 1;   float ydir = 1;   Controller controller;    Ball(){     noStroke();     ellipseMode(RADIUS);     xpos = width/2;     ypos = height/2;    }    void move(){     xpos = xpos + (xspeed * xdir);     ypos = ypos + (yspeed * ydir);      if(xpos > width - rad || xpos < rad){       xdir *= -1;     }     if(ypos > height - rad || ypos < rad){       ydir *= -1;     }     //boolean hit = hitController(xpos, ypos, rad, controller.getY());     //if(hit){       //xdir *= -1;       //ydir *= -1;     //}   }     void display(){     ellipse(xpos, ypos, rad, rad);     }      boolean hitController(float cx, float cy, float rad, float ry){       float testX = cx;       float testY = cy;       if(cy < ry){         testY = ry;       }       float distX = cx - testX;       float distY = cy - testY;       float distance = sqrt((distX * distX)+(distY * distY));        if(distance <= rad){         return true;       } else {         return false;       }     }    }   edit: I have included the controller class below as well.   class Controller {   int cwidth;   int cheight;   color c;   float x, y;    Controller() {     cwidth = 155;     cheight = 15;     c = color(50,10,10,150);     x = 0;     y = 0;   }    void setLocation(int x, int y) {     this.x = x;     this.y = y;   }     void display() {     x = constrain(mouseX, 70, 640 );     y = constrain(mouseY, 480, 480);      rectMode(CENTER);     fill(c);     rect(x, y, cwidth, cheight);    }    float getX() {     return x;   }    float getY() {     return y;   }  }


Cannot use begin split. Receive a "missing $ inserted" while in equation mode

I want to have a 2 line aligned equation. When I try to compile the following code I receive a few errors and I cannot understand why.  \begin{equation} \begin{split} n \nabla \cdot \boldsymbol{v} + \boldsymbol{v} \cdot \nabla n + \frac{\partial n}{\partial t} &= 0 \\  n \sum_{i=1}^3\Big( \frac{\partial\dot{q_i}}{\partial q_i}+\frac{\partial\dot{v_i}}{\partial v_i} \Big) + \boldsymbol{v}\cdot \nabla n + \frac{\partial n}{\partial t} &= 0 \end{split} \end{equation}   I recieve the errors:  Missing $ inserted Missing \endgroup inserted Display math should end with $$.


biblatex: separator for citing multiple sources, some of them with page, some not

I'm using biblatex for my references.  Normally, if I use \cite{source1, source2, source3}, I get a citation like  [3, 45, 98]   If I now want to give a page number for one of them, it looks confusing imho, as I should get (did not try it out up to now, honestly)   [3, 45, 78, p. 23f, 98]   So imho it would make sense to change one of the separator from a comma to e. g. a semicolon like:  [3; 45; 78, p. 23f; 98]   Question 1: Does that make sense, or are there other conventions for citing sources with and without page numbers together?  (Up to now I collected the citations without page number in one cite command and added singular \cite[][p. xy]{} commands for those with page numbers., so I'd get:   [3, 45, 98][78, p. 23f]   )  the \cites[]{}[]{}[]{} could also do that, but it also uses the same separators for entries and postnotes.  Question 2: How could I change the separator globally for those number-citations from comma to semicolon in biblatex?


How long do unrefrigerated opened canned peppers last?

I received a couple homemade cans of banana peppers that were canned with a jalapeno in each for some extra heat. I absolutely love the taste of them, but I am curious how long they can last once opened when there isn't access to refrigeration.  After opening, keeping the lid on, at room temperature (around 75F), how long should they be good for? Is there a way to specifically tell when they have become unsafe to continue eating?


What laptop specs are important for intensive image editing work?

How important is the following in purchasing a laptop that will be used for image editing:   processor speed amount of RAM integrated vs. dedicated graphics card HD speed (SSD; or 5400/7200/10000 rpm)


Find   $$\lim _{n \to \infty}   \int_0 ^ {1} \left(\frac { 2nx^{n-1}}{1+x}\right) \mathrm{d}x$$   How to find it? The sequence of function is certainly not uniformly convergent. Should I do it in brute force manner?


Is any downside in using align instead of \[...\]?

Is any downside in always using the align environment? I.e, if I use    \begin{align} a&=b \end{align} instead of \begin{equation} a=b \end{equation} and \begin{align*} a&=b \end{align*} instead of \[ a=b \]   would I see a difference in output?


Wordpress 3.5 Media Manager - add a button

In my plugin, I would like to add two buttons to Media Manager (to the left of "Insert Into Post" in "media-toolbar-primary" section), and connect a jQuery action to it.   First one - The "Select All" button shoud allow to select all availabe images (only images), depending on option value selected (eg. All Media Items, Uploaded to This post etc). So if "All Media Items" is selected - all images available will be selected, if "Uploaded to This post" is selected - only images attached to current post will be selected. Second one - "Custom Insert Into Post" - will get images data for all selected images (full size image source, alt text, size etc that are available) and while allowing to wrap them in aditional html code - return code to tinymce editor.   Returned code for second button could look this way:

   As far as I understand, the only way is to use override appropriate Backbone view, but beside that, thats all I know for now.  Thanks for help.


public class HelloWorld{      static class Sample {         private String n;          public Sample(String n){             this.n = n;         }          public String toString(){             return n;         }     }      public static void main(String []args){         Sample k = new Sample("A");         System.out.println(k);         stuff(k);         System.out.println(k);      }       public static void stuff(Sample k){          k = new Sample("B");      } }   Why does this print AA instead of AB? I came across this from a video about C#, but apparantly java also has it.


I have just downloaded Ubuntu 14.04 but I'm unable to connect to the internet. I travel a lot and connect to WiFi hotspots at various bars and restaurants. No home service.  In Windows 7, I just ask the bartender or waitress the password, type it in, and I'm connected. Not so in Ubuntu.  Computer is brand new, Lenovo 11e. AMD A4-6210 APU with AMD Radeon R3 Graphics. Four gigs of RAM. 64-bit operating system. Windows 7 installed.  There is a “windshield wiper” type icon in the upper right hand corner of my desktop that seems to refer to connecting to the internet:   I click the windshield icon and I get three choices: Option # 1: VPN Connections and an option to configure VPN- click on that and I get a window that says Ethernet and an “ADD” button.  Option #2: Enable Networking. Click on that and I get “Disconnected.”  Option #3: Edit Connections – click on that and get I get Ethernet, Wired connection 1. And the “ADD” button.  Can someone walk me through this maze? Please realize I am in a foreign country and can't speak the language. The guy behind the counter doesn't know what a router is.  He does not know what a Connection Name is. Nor a SSID, a BSIDD or a MAC Address is. And frankly, neither do I. Just tell me, in plain English, where to type in the bar's password so I can get connected.


Camellia Sbox - Linear Approximation Probability

One Page 7, of Document   The author says,     In the case of Camellia, the maximum diferential/linear probabilities of s-boxes are $2^{-6}$.   Since Camellia S-boxes are made up from Affine-Inverse-Affine Transformation in $GF(2^8)$ which has Linear Approximation Probability of $2^{-4}$, then why authors wrote it $2^{-6}$.  Does Camellia S-boxes have Linear Approximation probability of $2^{-6}$ or $2^{-4}$?  any body calculated it?


How to delete a folder that is being used by the system

I am trying to delete this folder, C:\Windows\System32\catroot. I am using the application, LockHunter and it is telling me that it is being used by the system and the svchost.exe and it is preventing me from deleting it. How do I delete this folder?  Thank you for your help and support!


How can the empty set be open in the definition of the cofinite topology?

Say we have an infinite set $X$ and a topology $T$. In the general defition of a topology the empty set $\emptyset$ and the whole set $X$ belong to the topology. But isn't that contradictory with the defintion of the cofinite topology.  Cofinite Topology:  $T = \{ A \subset X  | A = \emptyset $ or $ X\setminus A$ is finite$\}$  So according to the definition of a topology we have that $X,\emptyset \in T$ and according to the cofinite topology we only have $\emptyset \in T$ (The whole set $X$ is closed).  Gr


How to create a string with n characters? How to create a string with specific length?

I'm writing JavaScript unit tests and I need to create a string of length 65536. What's the best way to do this in JavaScript?  Currently I'm using:  var myString = ''; for (var i = 0; i <= 65535; ++i) {     myString += 'x'; }


I am currently trying to use HERO Designer, a Java program, on Ubuntu 16.04. All other Java programs work as expected (i. e. I double click on them and they start without issue).   If I run it from the command line (java -jar HD6.jar) everything works fine. If I double click on it, it locks up. The splash screen comes up and it stops a few moments later. When executed by double clicking the program starts, then hangs on the splash screen.  According to the developer, this means I don't have write permissions. I looked in Properties > Permissions. I am the owner. The owner and group have read/write access, and the executable flag is checked. I also created a bash script that just runs the above line with the same results.   The result of the ps aux | grep HD6 is:    daniel   13216  1.0  2.6 5019752 214316 ?      Sl   19:28   0:18 /usr/bin/java -jar /home/daniel/Programs/HERODesigner/HD6.jar   I'm opening with "OpenJDK Java 8 Runtime". Other Java programs run without issue by double clicking the icon. Any suggestions?


Do separate autofocus motors exist for entry level Nikon DSLRs?

I have a Nikon D3200, which doesn't have an autofocus motor. Therefore, I'm mostly deterred by lenses that don't have focus motors in them. But the ones that do have it are much more expensive.  Take the Nikon 70-300 for example:  AF Zoom-Nikkor 70-300mm f/4-5.6G: $172.95 AF-S VR Zoom-Nikkor 70-300mm f/4.5-5.6G IF-ED: $589.95   So is it possible to have an autofocus motor as a separate attachment to the camera? This would go between the camera and the lens, like an extender. I think it should be doable in principle, but not sure if anyone makes them..


How to burn .zip image to SD card from command line?

A  is provided:  unzip -p 2015-11-21-raspbian-jessie.zip 2015-11-21-raspbian-jessie.img | dd of=/dev/sdb bs=1M   however dd is contra-indicated with the availability of cat.  I would like to constrain the question to answers that do not use ddsolutions.  Solutions engaging cat (good) or pv(better) to write to the SD card are preferred over dd.  An image of an SD card was  to sdcard.image with the cat command and burned to a second SD card:  sudo sh -c 'pv /dev/disk2 >sdcard.image'    /dev/disk2 is the SD card  The SD card image is 32GB and was zipped to an 8GB file: sdcard.image.zip.  From the command line, how does one unzip and burn the file?  Assume there is not enough space to unzip the image to the Macbook's SSD.    The goal is to avoid writing the 32GB file to the laptop's SSD and burn the compressed image directly to the SD card.


Novel with humans travelling to a distant planet becoming super-intelligent

I'm trying to find the name of a novel (or was it a short story) where a group of humans travel to a distant planet and along the way (through genetics?) become more and more intelligent. I seem to recall that at some point they send back one of their who's a little less bright. Also, they send communications coded with some mathematical factorization that takes humans a long time to decrypt.  Any ideas?


I want to make a function work like an on off switch in python. I know how to do it in Javascript, but I don't understand how indenting works with Python, can someone help point me in the right direction?
test
 <button onClick="myFunction()">change</button>     onoff = 1  def test():   if onoff == 1:     print("on")     onoff = 2   elif onoff == 2:     print("off")     onoff = 1   test() test() test() test()


How to append a "/*" to the end of a variable with spaces and glob it?

If I have a directory wibble, the following command does what I want:  WIBBLE=wibble wc $WIBBLE/*   If I have a directory foo bar, the following command does what I want:  wc foo\ bar/*   But this doesn't do what I want  FOO="foo bar" wc $FOO/*   I get:  wc: foo: No such file or directory wc: bar/*: No such file or directory   I've tried everything I could find here, but nothing wants to work for me! What am I missing? I do not want a solution using for as I want to pipe the output from wc to other commands.    Examining the dup, this works:  FOO="foo bar" BAR=("$FOO"/*) wc "${BAR[@]}"   My question now becomes "Can I avoid the intermediate variable?". This just prints the straightforward expansion:  FOO="foo bar" wc "("$FOO"/*)[@]"


I have an external Hard disk with 500 GB capacity.  I have data filling almost 300 GB.  I want to install Ubuntu into it.  I have downloaded the iso and have written it to a USB drive as a bootable device.  My laptop runs on Windows 7.  What is the way to install Ubuntu in my external HDD.  I have yet to do any partitioning.  I would not like to lose the data.


I have just upgraded to Windows 10. Since the upgrade, my touchpad won't work at all (an external mouse does work, but the touchpad doesn't respond). I'm using an ASUS X200L laptop. I tried searching but couldn't find any proper drivers on ASUS's website. Any suggestions?


I have an object with a lot of fields, is there a method in apex which returns a list of the object's fields?


Continous function iff $x \notin \mathbb{Q}$ or $x = 0$

Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be given as $f(x) = \begin{cases}        0 & \textrm{x = 0} \\       0 & x \notin \mathbb{Q} \\       \frac{1}{q} & x = \frac{p}{q} \in \mathbb{Q} \\    \end{cases} $ where $\frac{p}{q}$ is irreducible fraction. I have to prove that $f$ is continous in $x$ iff $x \notin \mathbb{Q}$ or $x = 0$. If $x = 0$ then $f(x)$ and for every $a_n \to 0$ we have $f(a_n) \to 0$ because we know that $\forall_{\epsilon > 0}{\exists_{N \in \mathbb{N}}{\forall_{n > N}{|a_n|<\epsilon}}}$ so we take $a_n$ for $n > N$ and if $a_n = 0$ or $a_n \notin\mathbb{Q}$ then $f(a_n) =0$ by definition, otherwise $|f(a_n)| < |a_n|$ so $|f(n)| < \epsilon$. How to make proof for other cases?


Finding footprint data for US buildings?

Are there any sources for free and distributable building footprint datasets for major cities around the United States?  Ideally, the data would also have the number of stories of each building; is that available as well?  I'll give you an idea of what I'd like to do: I want to estimate population within an area of a map based on building square-footage and day/night population densities.


How do I apt-get a 32-bit package on a 64-bit installation?

I was trying to get a game working. But I have Lucid Lynx on amd64 running while the game binary was 32 bit (no 64 bit version available and nobody was in the mood for recompiling). It lacked libfsml-windows1.5 to run, and apt-getting it failed. So I have to manually download the i386 packages and force install them. (No, not part of ia32libs.)  Now I'm wondering if there is an automated way to have x86 packages downloaded at least on a 64-bit installation. apt-get -o apt::architecture=i386 did not work. (If you switch the architecture mode it doesn't find the package or assumes missing dependencies for existing packages all around.)  Is there another tool to automate that? Possibly one which downloads the i386 packages and relocates contained libraries into /usr/lib32/ implicitely?


Routing traffic to specific web sites through Ethernet, rest via wifi on Mac OS X 10.6?

I have two separate Internet connections connected to a Mac and I'd like one of them (via Ethernet en0 gateway) to serve for just backing up to an remote online storage, and the other one (via Airport en1 gateway) for all other Internet traffic.  I tried using "route" from the terminal as follows:  sudo route add -host 98.207.226.113 -interface en0   (just for testing against the site www.whatismyip.org whose IP is 98.207.226.113, to see through which gateway the traffic is routed)  I can see using netstat that the route is added.  However, the traffic in this case does NOT get routed properly through Ethernet, as if the routing definition I made is ignored.  Any ideas?  Thanks!


Can I use Wi-Fi and cable (Ethernet) networking at same time?

I am on an intranet that is not connected to the Internet and a Wi-Fi router with connection to the Internet. When I am connected to the wireless network, I can browse the Internet, but I cannot browse my LAN with my Ethernet cable connected.  How can I browse the Internet via my Wi-Fi router and at the same time browse my local LAN web application via my connected Ethernet cable?


How to insert a linkedin logo to my document that also acts as a link to my profile

I would like to insert a linkedin logo to my document that also acts as a link to my profile.  Here's my code  \documentclass{article}  \usepackage{hyperref} \usepackage[demo]{graphicx} \usepackage{wrapfig} \usepackage{lipsum} \usepackage{fontawesome} \usepackage{setspace}  \begin{document} \begin{wrapfigure}{l}{25mm}      \includegraphics[width=1in,height=1.5in,clip,keepaspectratio]{AuthorImage} \end{wrapfigure}\par \textbf{Author A} \lipsum[1]    \begin{figure}     \centering     \href{http://www.google.de}{%         \scalebox{0.1}{             \parbox{\textwidth}{                 \centering                 \includegraphics{LinkedinImage}}         }     } \end{figure} \end{document}   I'm trying to inert LinkedIn logo just after Author A or at the end of the paragraph.  Thanks


Chinese Galaxy note has no google account

I am using a Galaxy note [GT i9220], it has samsung account for cloud synchronization but no google account.  I9220ZCLSF  It supports Chinese / Korean / English language only. using Android 4.1.2   It seems I could set up gmail through exchange synchronization which is not so efficient.   Is there a way to enable google account ? Once solved, can I sync contact both to Samsung and Gooogle cloud ?   UPDATE: I just want a google account for email, addressbook and calendar sync. Do I necessarily need to flash cyanogen mod to enable google account ?


I have seen that people use ls -alh in the Linux terminal. However, when I see the manual, I don't see -alh (i.e. when I type man ls).  Why do I not have it in the manual? Can someone explain what it does?


I am new to Ubuntu. I want to know if sh is a symbolic link to bash. Similarly, if "/usr/bin/awk" is a symbolic link to gawk and if "/usr/bin/yacc" is a symbolic link to bison or a small script that executes bison. How do I do it?


I have a plugin that adds a few admin pages, a dashboard widget and a normal widget but I can't figure out how to add a page to the site.  I want to create a permalink that makes wordpress use myplugin/page.php which I assume will need to look like:  <?php get_header(); ?> MY CONTENT <?php get_footer(); ?>    Is this possible?


Procedural texture for longitudinal lines

In Cycles, is there a way to create a procedural texture that follows the longitudinal lines of a sphere? Like a beach ball or globe? The texture should be able to be mapped to any sphere-shaped object, not just perfect spheres.    My current approach is to use a rotated wave texture, but that doesn't come from the poles (It uses latitudes)


Where can I find a website that provides free textures

I am looking for a website that provides texture 'images' bump and specular maps included. High resolution would be appreciated.


Provide two arguments to one option using getopts

In below code when I give option r then getopts requires one arguments:  while getopts ":hr::l:" opt; do     case $opt in         r ) echo "Run Numbers - argument = $OPTARG " ;;         l ) echo "Latency range - argument = $OPTARG" ;;         h ) helptext             graceful_exit ;;         * ) usage             clean_up             exit 1     esac done   But I need to pass two arguments after -r option, instead of one. Is there an easy way to do this?


TeXWorks keeps replacing " with '' (i.e. 1 " with 2 ') and that's bad

I wish to properly accent Hölder's name in LaTeX by using \"{o}, but TeXWorks keeps replacing my double quote with a single quote. My hacky workaround to this is to copy the " unicode character from a browser and directly paste it into TeXWorks, but I would like a more permanent solution. Is there a way to make TeXWorks stop doing this?


how to disable Internet Explorer 10 Password Eye using windows 7

The instructions for Windows 8 does not work for Windows 7.  How do I remove the Password Eye from Windows 7.  Thank you.


Usage of maverick as an adjective for a thing

I saw on Google the formulation: "the maverick of the sea scrolls…".  Would it be better, equivalent or incorrect, instead of saying for example "the maverick of frameworks", to say "the maverick framework" or the "the frameworks' maverick"?  EDIT Actually I want to know if I can use correctly the shorter sentence: "the maverick framework", as it is using maverick as an adjective?  Thanks!


Book trilogy(?) about advanced civilisation, wormholes and portals, first mission to Mars

I'm trying to remember a good book, maybe divided by three volumes, about a future human society.  I remember that it starts with the first human mission to Mars, where the astronauts land just to discover two guys in their 20-ish just built some kind of portal and managed to get on Mars from their garage.  I know that after this there is a huge universe, and a lot of things going on, including a character buying and living in its own asteroid, later used to help a endangered species?  I believe later in the story we follow the two portal builders, one became incredibly rich as the CEO of the company selling portals, while the other decided to step down from it.   Later in the story, in the second book maybe, the second guy decides to explore a planet with hiking trails that are supposed to make people disappear, and he ends up traveling through several planets, one very cold and covered in snow.  I read that book about 4 years ago I think, but it was not new. I'd say it could be from the late 2000's.


Given $f$ is an even function of interval $(-a, a)$, .... $f'$ is an odd function on $(-a,a)$

Given $f$ is an even function of interval $(-a, a)$, $a>0$ and $0<c < a$. Prove that if $L'f(c)$ exists, then $Rf'(-c)$ exists and $Lf'(c)=-Rf'(-c)$. Deduce that if $f$ is differentiable on $(-a,a)$, then $f'$ is an odd function on $(-a,a)$.   $f$ is even then $f(-x)=f(x)$, then $f'(-x)=-f'(x)$ i.e $f'$ is odd function. But what exactly the question want? Please help with apropriate answer.


How to make sure old datas could not be retrieved back?

I would like to sell my old laptop but after reformatting all. I'm still worried that the new user is able to get back old the old data's. How to prevent this, without damaging the laptop.


How can the energy eigenkets and position eigenkets of a quantum system both be complete?

A quantum system is often given as a wavefunction of position. This is a vector in a continuous, infinite-dimensional vector space, with uncountable dimension.  However we also know that the energy eigenkets are complete, which means that the dimension of the space should be able to be given by the number of energy eigenkets. How can this be, when the energy eigenvalues are often discrete, and hence of a countable number?


I recently installed Ubuntu 18.04 and realized that when I click the poweroff button (most upper right) there is no option for sleep/suspend? I only have restart and poweroff (and cancal) options. In 16.04 that I have in my laptop I have also suspend option.


What is the state of the art on Quantum Random Access Memories?

I realized that Quantum Random Access Memory (qRAM) was proposed to make quantum computers more similar to classical one. Currently quantum computers have very constrained memory, given only quantum registers on quantum processors can be used for an algorithm to run. It is true that e.g. Qiskit language allows to use RAM or HDD of classical computer, however, resulting algorithms are hybrid quantum-classical.  I found some proposals how to implement qRAM, e.g. .  But my understanding is that the device is highly experimental nowadays.  So my questions are those:   Does anybody know about progress in this field? Some links to articles of state-of-art implementation of qRAM will be highly appreciated. What about IBM Q? Do we have an opportunity to use qRAM on IBM Q computer in foreseeable future (i.e. few years)?


Why do website host handles dns to resolve services(mail.domain.com ftp etc) instead of the domain registry?

I have bought a new hosting service, and needed to change the name servers pointing to the new host for my website. When I did , all other subdomains especially ftp, mail subdomain and mx record broke.  I was told I have set up the dns resolution again in my host cpanel to fix this. So I wonder why cant it be set up in the domain registry? Why not point the website to the host which have all my files, and the rest leave as it is?  My suspicion is, correct me if Im wrong. That in able to find the domain.com IP, it needs go through the domain "." root then "com" top level and finally my domain. Once it finds where its sitting, it resolve the rest of names like @, then mail subdomain , ftp etc.But since it doesnt have any record to where to find it , it just stops. The thing is why cant it just go back to the domain registry to find the other info?  Please do let me know If Im understanding this all wrong.  PS: Current situation is I have a website in a cloud server on rackspace, our website points to that site and mails, ftp etc points to other server. So if this works why do I have to change the dns records in my hosting too. Really confused.


I can't (vote to) close a question I voted to close before but then retracted?

For example...  I closed a vote for 'too broad'. But then I realized I wanted to close it as a specific duplicate of another question instead. So I retracted my close vote.  That worked. But I can't now vote to close as duplicate and the title says I already voted to close.  Maybe this is intentional but it doesn't feel that way.


Most efficient way to randomly "sort" (Shuffle) a list of integers in C#

I need to randomly 'sort' a list of integers (0-1999) in the most efficient way possible.  Any ideas?  Currently, I am doing something like this:  bool[] bIndexSet = new bool[iItemCount];  for (int iCurIndex = 0; iCurIndex < iItemCount; iCurIndex++) {     int iSwapIndex = random.Next(iItemCount);     if (!bIndexSet[iSwapIndex] && iSwapIndex != iCurIndex)     {         int iTemp = values[iSwapIndex];         values[iSwapIndex] = values[iCurIndex];         values[iCurIndex] = values[iSwapIndex];         bIndexSet[iCurIndex] = true;         bIndexSet[iSwapIndex] = true;     } }


how to install software through software center?

Software center don't give option of download or install it just give option to see more info then how can i install software through it?


I am interested in the question of, if a particle is initially localised at some position $x_0$ what it will evolve to at a later time assuming a free Hamiltonian $H = p^2 /2m$. Long story short, I find that I am roughly able to get a result but what I get is nonsense.  In momentum-space, the TDSE is simply $$i \frac{\partial}{\partial t}\psi(p,t) = \frac{p^2}{2m} \psi(p,t)$$ This has the solution $\psi(p,t) = f(p)\exp(-i\omega_p t)$ where $\omega_p = p^2 /2m$. If the particle is initially localised in space at $x_0$, then $f(p) = \exp(-ipx_0)/2\pi$ (i.e. a delta function in position space). Thus we have the solution in momentum space $$\psi(p,t) = \frac{1}{2\pi}\exp(-ipx_0 - i\omega_p t)$$  However if I transform this back into position space I get (after completing the square in the exponent) $$\psi(x,t) =  \frac{1}{2\pi} \sqrt{\frac{2m}{t}}e^{im(x-x_0)^2/2t} \int_{-\infty}^\infty  e^{-is^2} ds$$ Aside from the fact that the integral over $s$ doesn't converge to anything, we have the additional problem that $|\psi(x,t)|^2 \propto 1/t$ doesn't depend on $x$. In other words, for all times the particle is completely delocalised in position-space. Have I made a mistake or is there a deeper problem with what I'm doing?


I have 20 lines on one layer, and many of them overlap like a grid.  I have currently used the following:  [%'ROUTE #' || CASE WHEN $id = $atlasfeatureid THEN "Route #" END%]   When I use the atlas function to zoom to a specific line, it will still show the other lines within the zoom extent.  I only want the line that the atlas function is zooming to to be visible, but still allow me to flick through all 20 lines/atlas pages.  Is there any way to do this?


Talk to him is what I did.  (this sentence is from )  "Talk" is a verb here that is not in the imperative mood. I suppose, it's in the infinitive form. But then how can it stand alone, without "to"?  What will be if we add "to" to "talk"?  To talk to him is what I did.  If we can do so, then what will difference be between the initial sentence and the new one with "to"?  Maybe, there are some omitted words, after inserting which the sentence will immediately become understandable? I mean, maybe, there is an ellipsis?  Thanks!  To make it clearer:  Upd.1: if we type "bare infinitive" in google, we can't find any sites that could explain the absence from "to" before "talk".  Upd.2: Why can we replace "to talk" with only "talk" in "To talk to him is what I did."  Upd.3: I have my own logic but I don't know whether it's right or not:  1) I think that without an ellipsis "Talk to him is what I did." is to look like "I did talk to him is what I did do."  2) Also I know that we can't use "to" before "read" in "What we must do is read the manual." because in the left part we don't have "to" before "do".  By this logic, we can't use "to" before "talk" in "Talk to him is what I did." because in "what I did do" we don't have "to" before "do".  Am I right or not?


Space which is connected but not path-connected

Consider the following two definitions:  Connected : A topologiocal space X is connected if it is not the disjoint union of two open subsets, i.e. if X is a disjoint union of two open sets A and B, then A or B is empty set.  Path Connected : A topological space X is path-connected if any two points in X can be joined by a continuous path.    So far I can picture, I think they should be equivalent. If X is connected iff it is path-connected. But, the Thm I got from lecture is just if X path connected then X is connected (The converse not necessarily true.)  Can anyone give me some picture of space which is connected but not path-connected? Just picture please, cuz I wanna grab the idea. I have already seen some examples like in , I cannot grab the idea if it (such space) consist of a single piece, then I couldn't make a continuous path from any two points.  Thank you :)


Use class from test scope in other module

I have a module as part of a framework that provides common features to other modules. I have created a class (UtilitiesForTesting) that provides some utils to be used only in my tests, so it's stored in test section of the module.  The module has the following structure:  project     -src        -main          -java            -com              -company                -product                  +Foo        -test          -java            -com              -company                -product                  +FooTest                -utility                  +UtilitiesForTesting   UtilitiesForTesting class is visible inside the project but when I compile it the resulting jar does not contains any test class.  Now I want to use the modules in other modules, because I need this common functionality, but also I want to use testing utilities.  I don't want to place UtilitiesForTesting in the /main section, since I don't want to allow the use of this class in production code, only in test.  I want to have just a module that provides production classes to other module and test util to the same module, but restricting using the test utilities in the /main section.  Is there any way to use a class of the test scope of a module in other module?


Used Named Credentials to Call Web Service in OTHER Domain

I have a named credential for Microsoft Access Control Service, this named credential is Authenticated, so I need the token to call another web service that isn't in the same domain for example the URL to login is this : ********/v2.0 and I need to call a web service from other domain https://*********.org/api/Salesforce, both are different domains, to call the second web service I need the token generated for the named credential, Have any of you had this situation before?


I know the ultimate meaning of this is "I have no money."  But why? If ain't means have not, then isn't it true that "I ain't got no money" would be read as "I have not got no money"?  Can I have not got [no money] be interpreted as double negative, and hence determining that "I have money", which is not the true meaning of such saying?


Notebook computer battery says: plugged in but not charging with no further information. Is the battery bad already?

My 1.5 year old Dell Studio 15 notebook computer has a battery and I keep it attached to the notebook but 98% of the time I just plug in the power adapter.  Lately when I unplugged the power adapter, the battery was only good for 10 minutes, and a few days ago, when I unplugged the power adapter, the computer simply turned off.  When clicking on the battery icon on Win 7, it says "Plugged in, not charging":    is the battery dead?  Or can Windows 7 have any option to not charge the battery?  It is a Dell Studio 15, I wonder if in such case, it looks like it can be a manufacture's defect, would Dell replace the battery? (if there was a recall, then they probably would, i think).  The notebook is 1.5 year old.


Topologist's Sine Curve not a regular submanifold of $\mathbb{R^2}$?

I am trying to work out the details of following example from page 101 of Tu's An Introduction to Manifolds:     Example 9.3. Let $\Gamma$ be the graph of the function $f(x) =  \sin(1/x)$ on the interval $]0, 1[$, and let $S$ be the union of   $\Gamma$ and the open interval $I=\{(0,y)\in \mathbb{R^2} |−1<y<1\}$.      The subset $S$ of $\mathbb{R^2}$ is not a regular submanifold for the   following reason: if $p$ is in the interval $I$, then there is no   adapted chart containing $p$, since any sufficiently small   neighborhood $U$ of $p$ in $\mathbb{R^2}$ intersects $S$ in infinitely   many components.   Using Tu's definitions, I need to show that given a neighborhood $U$ of $p$, there exists no homeomorphism $\phi$ from $U$ onto an open set of $V \subset\mathbb{R^2}$ with the property that $U \cap S$ is the pre-image with respect to $\phi$ of the $x$ or $y$ axes intersected with $V$.   I am not sure where the fact that $U \cap S$ has infinitely many components comes into play. I tried to derive a contradiction using this fact; but even if restrict my attention to connected neighborhoods $U$ of $p$, the intersection of the connected set $\phi(U)$ with the $x$ or $y$ axes might have infinitely many components (I think), so there's no contradiction with the fact that homeomorphism preserves components.  I would appreciate any help!


Why is it "description" but "describe" (b and p)?

I've just wondered by it is "description", but "to describe". It looks as if "to descripe" would be a more consistant choice. Is there any other explanation besides "this is how it is written for years"?  edit: Or alternatively "to describe" and "describtion".


Dual Boot Ubuntu 15.10 with Windows 10 (Can't see partitions in Windows)

I Used the "install ubuntu alongside windows boot manager" option to download ubuntu yesterday (after hours of confusion from reading about manually adding partitions).  I think I allowed 65GB (using the slider during installation) for Ubuntu and the rest for Windows. (I have 300GB usable HDD space).  After it finished installing, I tried booting in to each OS and they worked perfectly. The problem is, I am unable to see any of my Windows files and documents from Ubuntu.  When I click that Hard drive icon on Ubuntu, I get this:  Error mounting /dev/sda4 at /media/atlanta-thinkpad/BED68EB6D68E6F09: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda4" "/media/atlanta-thinkpad/BED68EB6D68E6F09"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   Edited:  I can now see the ubuntu partitions after diabling fast startup in windows, but the partitions are empty.


How to find tables with foreign keys that reference a specific table

Suppose my database contains the following tables :   table_A with primary key PKA table_B with foreign key FKA   Suppose also that I have no clue of the content of the database, except that it contains a table named table_A.  Here is my question : given table_A's name, what (PL/)SQL request do I have to make to the database to know that there is a table B that has a foreign key to table A ?  I'm using Oracle 11g


Section numbering is X.X.0 instead of X.X

All my section are numbered X.Y.0 instead of X.Y., e.g. 2.1.0 instead of 2.0. The subsection start then at number 2.1.1. In the index the sections are correctly numbered as X.Y.  Where is this configured? I cannot find anything or I am searching with the wrong terms.


What is it called when reversing a phrase doesn't mean the same as the original phrase?

What is the rhetorical device/argument called when one says:     All surgeons are doctors, but not all doctors are surgeons.


I have a solution in VS 2008 with 2 projects in it. One is a DLL written in C++ and the other is a simple C++ console application created from a blank project. I would like know how to call the functions in the DLL from the application.  Assume I am starting with a blank C++ project and that I want to call a function called int IsolatedFunction(int someParam)  How do I call it?


Where does bash take its PATH from if run with --norc option?

Trying to find out where the . (current directory) entry in PATH originates, I've run bash as follows:  $ env -i /bin/bash --norc -c 'echo $PATH' /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.   Surprisingly, current directory is still listed there. I've then tried using strace to find out what files bash reads, but found nothing relevant:  $ env -i strace -fefile /bin/bash --norc -c 'echo $PATH' |& grep -v ' ENOENT ' execve("/bin/bash", ["/bin/bash", "--norc", "-c", "echo $PATH"], 0x7fff02c40550 /* 0 vars */) = 0 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/dev/tty", O_RDWR|O_NONBLOCK) = 3 getcwd("/home/ruslan", 4096)            = 13 openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3 /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. +++ exited with 0 +++   So, where does bash take this default value for PATH?


How do I move a windows installation hdd to a new computer?

This always happens to me. Every time I try to move a hard drive to a new computer, I always get boot errors. So I go on my windows recovery dvd and do bootrec.exe /fixboot and bootrec /fixmbr and bootrec.exe /rebuildbcd. It should be that simple right? Well it's not. That never works for me. I still continue to get the boot error and the only way I can make a hdd work on a new machine is by formatting it.   How do I move a windows installation to a new pc without having to format it? I'm giving my old pc to my friend for their birthday. I took the dvd drive out of it and put it in my new pc because I only had one. I'm gonna buy another but for the time being there isnt a dvd drive and I dont want to take the drive out of my pc. so what I'm trying to do is put a hard drive in my pc and then install windows to that hard drive and then move the hard drive to the old pc.   But I know once I do that, I'll get boot errors because I know its looking for the other hard drives as well but it wont find them. And then as mentioned above I run those commands and the problem still persists. And besides I cant even run the commands once I put the hdd into the old pc because theres no dvd drive. I could make a recovery usb but I see no point because those commands never fix the boot.  Whats the proper way to do this?


Why is Java able to store 0xff000000 as an int?

An integer's max value in Java is 2147483647, since Java integers are signed, right?  0xff000000 has a numeric value of 4278190080.  Yet I see Java code like this:  int ALPHA_MASK = 0xff000000;   Can anyone enlighten me please?


libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed when installing libopencv-dev python-opencv

How should I fix the following problem? (vision) mona@goku:~/research/code/vision/integration$ sudo apt-get install libopencv-dev python-opencv Reading package lists... Done Building dependency tree        Reading state information... Done libopencv-dev is already the newest version (4.2.0+dfsg-5). python-opencv is already the newest version (2.4.9.1+dfsg-1.5ubuntu1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). (vision) mona@goku:~/research/code/vision/integration$ sudo apt-get --fix-broken install libopencv-dev python-opencv Reading package lists... Done Building dependency tree        Reading state information... Done libopencv-dev is already the newest version (4.2.0+dfsg-5). python-opencv is already the newest version (2.4.9.1+dfsg-1.5ubuntu1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). (vision) mona@goku:~/research/code/vision/integration$ sudo apt-get --fix-broken install libpng12-0 Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   cpp-7 libpython-dev libpython2.7-dev libpython3-dev python2.7-dev python3-decorator python3-ipython-genutils   python3-jupyter-core python3-traitlets python3.8-dev Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed:   libpng12-0 0 upgraded, 1 newly installed, 0 to remove and 92 not upgraded. 31 not fully installed or removed. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. (Reading database ... 408548 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb (--unpack):  unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system                                                                                Errors were encountered while processing:  /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  I am using the solution in  in order to solve the problem in


I often find myself asking questions that I realize the answer to a day later.  I want to know if there is a Stack Exchange template that I can host myself on localhost so that I can put up questions, answer them myself, and if I can't, write them on an appropriate Stack Exchange online.  I know I can use forums, or make my own copy of Stack Exchange manually, but I like Stack Exchange format more, and wanted to know if I have to start from scratch or if it's already available somewhere.


java.lang.NullPointerException exception while reading csv file

I'm trying to calcule the distance and travel time between origins and destinations using the distance matrix API.  I used the following code :    public class read_csv_file {  public static ArrayList<String> getTownList(String fileName) {     try {         ArrayList<String> towns = new ArrayList<String>();         File csvFile = new File(fileName);         BufferedReader br = new BufferedReader(new FileReader(csvFile));         String line = "";         while ((line = br.readLine()) != null) {             String[] arr = line.split(",");             towns.add(arr[0]);         }         return towns;     } catch (IOException ex) {         ex.printStackTrace();         System.out.println("Failed: could not find file.");     }     return null; } public static String getTown(ArrayList<String> towns) {     int townsLen = towns.size();     int rand = (int) (Math.random() * townsLen + 1);     return towns.get(rand); } public static long getDriveDist(String origins, String destination) throws ApiException, InterruptedException, IOException {     GeoApiContext distCalcer = new GeoApiContext.Builder()             .apiKey("key")             .build();     DistanceMatrixApiRequest req = DistanceMatrixApi.newRequest(distCalcer);     DistanceMatrix result = req.origins(origins)             .destinations(destination)             .mode(TravelMode.DRIVING)             .avoid(DirectionsApi.RouteRestriction.TOLLS)             .language("en-US")             .await();    long dist = result.rows[0].elements[0].distance.inMeters;   return dist; } public static void main(String[] args) throws ApiException, InterruptedException, IOException {      ArrayList<String> towns = getTownList("src/main/java/test_three.csv");      if (towns != null) {         // get 2 specific towns from the file         // remove the first from ArrayList before getting the second         String town1 = getTown(towns);         towns.remove(towns.indexOf(town1));         String town2 = getTown(towns);          long dist = getDriveDist(town1, town2);          // totalMinutes is based on walking at a speed of 10.6 minutes per km         long totalMinutes = (long) (((dist / 1000) * 10.6));          // calculate the days, hours and minutes from total minutes         int days = (int) (totalMinutes / 24 / 60);         int hours = (int) (totalMinutes / 60 % 24 );         int minutes = (int) (totalMinutes / 60);          // print         System.out.println("It will take" + days + "days" + hours + "hours and" + minutes + "minutesto walk from"                 + town1 + "to"                 + town2 + ".");      } else {         System.out.println("Failed: null ArrayList for towns");     }    }}   But that throws :   Exception in thread "main" java.lang.NullPointerException at line  "long dist = result.rows[0].elements[0].distance.inMeters;")   Example of My csv file :   Rochdale,Greater Manchester,North West Lowestoft,Suffolk,South East Kingston-upon-Thames,Greater London,London Horley,Surrey,South East   I did some research and I found that the reason for this is that I am trying to access a table cell that does not exist for example tab [4] while the size of the table is 4 ,but I don't see here where the problem comes from. If you have any idea ,help me   Thank you.


I accidentally created a file with the name - (eg, seq 10 > -). Then I tried to use less to view it, but it just hangs.  I understand that this is happening because less - expects input from stdin, so it does not interpret the - as a file name. I tried less \- but it does not work either.  So, is there any way to indicate less that - is a file and not stdin?  The best I could get is:  find -name '-' -exec less {} +


Can anybody help me with changing colors of a mesh in animation? When I change the color and set the keyframe, the last modified color of the mesh is applied on all previous keyframes.  When I press i to set keyframe, which keyframe should I choose from the rolling list?


What is a word or phrase for someone who professes to know something but actually doesn't?

Is there a word or phrase that describes when a person professes to know about a certain subject, but in fact knows nothing about it?


In the directory /home/username/data I have both files and directories. Some of these filenames end in .txt (to which I'll refer as text files), others don't. The same happens in the subdirectories.  One of the subdirectories is called other_files (its full path is /home/username/data/other_files/).  I'd like to move all the files not ending with .txt in the root of /home/username/data to other_files.    I could possibly do it with a loop, but that's not what I want. I want to use commands and piping. I believe this is easy, I'm just not seeing it. A combination of mv, find, grep and xargs should do it, I'm just not sure how.  So I'm stuck in trying to match the text files (to then think of way to match everything except them). In the following, assume my current directory is /home/username/data. First I went for find . | grep -E "*\.txt", but this matches all text files, including the ones in the subdirectories. So I tried find . | grep -E "\./*\.txt" just to see if I would get the same matches to then work my way towards my goal, but this doesn't match anything and this is where I'm stuck.    How do I go about doing what I described at the beginning of the question?


I know that if matrix $a$ is similar to matrix $b$ then $\operatorname{trace} a=\operatorname{trace} b$.  Does it go to the other side?  Thanks.


UK Visitor Visa - Genuine intention to visit

I am in tier 2 general visa and I am planning to invite my in-laws from India to the UK in a standard visit visa. My Father in law is a farmer and he doesn't have bank statements to show as income proof or any financial status. We can show some agricultural lands registration documents which are actually not in English.   What kind of documents I can provide for him to prove Genuine intention to visit.


Why is snow white when water has no color?

I just don't get it. Isn't snow just another form of water? Also are all ices transparent or do they go white after a certain temperature?


How to restore http service on Windows 10 while accidentally removed the service

While installing Apache as a service, I have accidentally removed Windows' default http service. Now many dependant services don't work and I can't get it back.  Is there a way (beside restore points since it's been a while and I noticed this too late) to fix this both as a service and in the registry?  What I have done:   Installed Apache using http -k -n "http" command. Noticed that I have misspelled httpd and typed http instead. Removed the service using sc delete http Reinstalled Apache using http -k -n "httpd" Found out spooler isn't starting. Searched the web and found http was a Windows service required for many discovery tasks. Panicked


Recommended aspect ratio for android / smartphones?

I'm making a game for android and would do it in 720p, but the phones got all different aspect ratios. Also thinking about a ios and windows phone port later.  When the aspect ratio does not match, pretty much all I can do is making black borders, stretch it, or leave the part which does not make it out on the screen. The game would be not as good when not the entire screen is visible, for example you see an enemy spawning later.  Which aspect ratio should I choose? On the techniques I stated above, maybe I just let the user decide, they are very easy to implement and they can choose the handicap which is at least annoying for them.  On 16:9 they will be only borders on the top and bottom, but at some aspect ratio somewhere in between, some would have them on the left and right.  Resolution itself is not important, trying to scale down with drawing to a renderTarget first.


$y''-2y'+y=te^t$ by method of undetermined coefficients

In order to solve  $$y''-2y'+y=te^t$$ I did:  $$y = (at+b)e^t\implies\\ y' = ate^t+ae^t+be^t\implies \\y''= ate^t+2ae^t+be^t$$  but when I put these in the differential equation I'm getting zeros eveywhere. Does somebody know what I'm doing wrong?


Python - List with arrays, check if arrays are empty

Background: my code takes the changes of a git merge request and compares the extentions with a rule file, which says which file was changed (for example implementation file because .py was changed). Now I want to do a mapping. If something in the implementation files are changed I want to save this information. I just did an boolean implementation_check = False. My change_log_array list has so many arrays like my rules. If the rule is not triggered the array will stay empty (for example a file with requirements) Question: Now I have some empty arrays in my list (in the beginning or in the middle of the list). How can I check if an array is empty? like if x is not None:


I'm currently starting a course about Graph Theory, and I've been explained about the Havel & Hakimi degree sequence. However, I'm not too sure about it yet. First of all, I want to know if I understand it correctly, so I'm going to try to explain what I think the theory proves.  First, I've shamelessly stolen the following statement from the presentation:    Okay, so what I want to ask is the following.   What does "is graphic" mean exactly. Does that mean it's a graph? I know stupid question, but I cannot think of a degree sequence that's not a graph... What's the practical use of this. What problems could you solve with this.


Was Mjolnir ever used for building something?

In the movie Thor (2011), while he was about to crown Thor as the next king of Asgard, Allfather Odin describes the mighty hammer Mjolnir as the following:      So long entrusted with this mighty hammer, Mjolnir. Forged in the heart of a dying star, from the sacred metal of Uru. Only one may ift it. Only one is worthy. Who wields this hammer commands the lightning and the storm. Its power has no equal -- as a weapon, to destroy, or as a tool, to build. It is a fit companion for a King.   We know Mjolnir as a weapon of destruction but are there references where it is used to build something?


Disable or uninstall side bar on android

I'm wondering if it is possible to disable or uninstall this bar that I show on this image. I'm sorry i don't know what it is named that is why I included the image (click to enlarge). I'm using Android version 4.1.


Why are secondary storage mediums divided into sectors, why is primary storage allocated in blocks of 8 bits?

Secondary storage mediums are always divided into sectors, but if a file is placed on a secondary storage medium, most likely, part of the file will partially fill up a sector and another file will not be able to store itself in that partially filled up sector. Hence if secondary storage mediums are divided into sectors, then less data can be stored versus if the secondary storage medium was not divided into sectors. Then what is the philosophy of the sector system?  Does this philosophy carry over in terms of primary storage and how they are allocated into blocks of 8 bits?


I'm absolutely horrible at scripting.  Never really done it before.  I've been asked to create a script for a class project and have no idea where to start.  Here are the requirements:  Create a simple script on the client to request the user to supply a numeric value (X) and then ping each IP address starting from 192.168.222.1 to 192.168.222.X :   The value could be provided to the script as a command line parameter or read from the keyboard when prompted A conditional expression should be used to evaluate when all needed IP addresses have been pinged The script should ping each IP address starting from 192.168.222.1 and ending at 192.168.222.X. The script should display text saying “Beginning scan of 192.168.222.X ….” followed by the output of the ping command of the current IP addresses Use an appropriate ping parameter to only send two ping echos to each host Run the script with an input value of 15 and show the results.   Any help would be much appreciated.  Danny E.


\[   \begin{aligned}  \left{x= [1,0]^{T}t \right) \Rightarrow x^{T}Ax = \alpha > 0,t \\   x= [1,0]^{T} \Rightarrow x^{T}Ax = \gamma > 0),\\  x = [1,1]^{T} \Rightarrow x^{T}Ax = \alpha  + 2\beta + \gamma  > 0,\\  x = [1,-1]^{T}  \Rightarrow x^{T}Ax = \alpha - 2\beta + \gamma  > 0.  \end{aligned}   \right\]      i want to use left and right in my code and i he dont accept with textstudio


What is the advantage of Model Based Testing and how is it used in practice?

I just attended a webinar for Tricentis and their Tosca tool which looks promising.    How can this be applied to the real world? Would this tool replace manual testing?    What does Model Based testing really mean?


Lighter in CPU/Memory Usage: Lubuntu or Xubuntu

I am looking for an Ubuntu version that consumes less Memory and CPU. I have read both Lubuntu and Xubuntu (The homepages, wikipedia, phoronix and other sites comparing both). But from experience, which one uses less memory and is less CPU intensive. I need to install them in very old hardware and want to persuade the owner of the hardware of the benefits of Ubuntu.  in this case I want to install 11.10 or 12.04 when it comes out. How are each behaving in those versions?  The 2 PCs I will be installing either Xubuntu or Lubuntu are:  Granpa PC:  CPU - Pentium 2 450Mhz RAM - 64MB DIMM Video - 16MB Used for - Documents and Internet. No listening to music, no looking at videos. Just using it for document writing.  The other old meat:  CPU - Pentium 3 550Mhz RAM - 128MB DIMM Video - 16MB Used for - Documents and Internet also but they want.. or maybe they are wishing for it to use it to see movies and listen to music. This one has internet. The other one does not.  UPDATE  Wanted to update this question with the test results for over 8 months worth of using Lubuntu and Xubuntu. When it comes to very old hardware, am talking about 64 MB, 128 MB or even 256 MB of RAM computers, Lubuntu is better than Xubuntu when comparing Memory usage. When it comes to CPU usage, both are the same.  This will not improve I/O Disk performance which will be the bottleneck for old computers. Also the difference in performance between Xubuntu and Lubuntu is about 10% to 20% percent in memory usage. Again, CPU usage is the same.  Now, when it comes to how responsive the Desktop is, LXDE (Lubuntu) has a much better response time than XFCE (Xubuntu). I would say about 50% or just simply noticeable to the eye. Lubuntu is similar to how Windows XP looks while Xubuntu is more like how Gnome 2 looked.  The computers (The old ones mentioned here) and 2 more are still working in excellent conditions thanks to the Ubuntu family. I also want to add I am using 13.10 for both distros.


How can I get very vivid colors in night cityscape pictures?

Can you suggest me what kind of settings would I need to make these kind of pictures.  The scenario will be just like the pictures:  Outdoors, lights on the streets, and maybe very small rivers with houses and lights on each side.  Just like Venice or Brugge in Belgium.


Create Group of Cylinders from a TXT file

I need to visualize a large group (say 200, 300) of cylinders from coordinates stored in a text file. One cylinder per line, defined by X1,Y1,Z1 and X2,Y2,Z2 (start and end), and by a diameter.   Is it possible just to import this TXT file and visualize all cylinders?


Can I delete files or folders from /private/var/folders/?

I have this folder /private/var/folders/bf/ with 3GB of what seems temporary files. Can I delete this folder?


Does a microwave take longer to heat two bowls of soup?

From my experience the microwave takes longer to heat two bowls of soup than to heat just one.  But it's not so obvious to me why this should be the case.  Each bowl of soup is a single thermally isolated system, and the same power radiates across each one, so it should take the same amount of time to heat both, no?  Edit: I'm not convinced by the below answers. The answer should depend on the specific mechanism by which a microwave works, because if we ask the same question for a stove instead of a microwave, I would guess that two soups placed on a stove top would take the same amount of time as one soup, as long as the soup bowls have the same geometry and thermal conductivity.


$A \in \mathbb{C}^{n,n}$ is upper triangular and all it's elements on main diagonal  are different. I have to prove that $A$ and $A^T$ are similar. I know that $A$ and $A^T$ have same characteristic polynomial but I don't know how to prove what I have to prove. Any hints?


Minecraft: How to make an arrow that when it lands it summons a lightning? 1.13

How to make an arrow that when it lands it summons a lightning? I want it for a minigame please help its in 1.13


To Test Installation of Wolfram Workbench 2 in Eclipse of Ubuntu 16.04?

I want to have this  in Ubuntu 16.04.  I want to include .m files in my project as functions to keep things organized.  You can use Eclipse 3.8 or 4.5 to reproduce the problem.  I downloaded now the official Workbench_2.0.0_ECLIPSE.zip in my Wolfram user page. It has the Wolfram Workbench plugins.  I managed to import it in my system.  I managed to disable the two software sources below for 3.8 Eclipse, since I am using 4.5.   Still, I cannot start .nb file in my Mathematica Development of Eclipse. I get the same error as in the screenshot below under the section.  It would be great to understand those plugins which downloaded/installed in Wolfram Premiere service.   How can you test if the Wolfram Workbench .zip file is correctly installed in Eclipse?    Eclipse 3.8 with other sources  I install Eclipse 3.8.  I follow the instructions in the thread  and successfully install the sources        However, they do not seem to work with Mathematica 10. In Eclipse, I create Basic Mathematica project. Add project where .m and .nb files. The .m open successfully. However, clicking .nb file gives the error    which suggests me that the sources install the plugins for old Mathematica (7).   Eclipse 4.5 Mars with other sources  I uninstall Eclipse 3.8, and install the precompiled Eclipse 4.5 of the official site  by solving the case together  about To Have Eclipse 4.5 in Path?  I however get the same error as in 3.8.  How can you have .nb files of Mathematica 10 Workbench in Ubuntu 16.04?


I have this problem  $:~/media_build$ ./build Checking if the needed tools for Ubuntu 18.04.1 LTS are available ERROR: please install "Proc::ProcessTable", otherwise, build won't work. You should run:         sudo apt-get install  libproc-processtable-perl Build can't procceed as 1 dependency is missing at ./build line 274.   But when I run it I get error  E: Unable to locate package libproc-processtable-perl   I also try   sudo apt-get update   But without success


Show the Trace$(B)^{2} \leq$ nTrace$(B^{T}B)$

The following definition is needed for my actual question:  For $A, B \in \mathcal{M}_{n \times n}$ define $$  \langle A, B \rangle = \text{Trace}(B^{T}A) = \sum_{j=1}^{n}\sum_{i=1}^{n}b_{ij} \, a_{ij} $$  And here is the actual question:  For $B \in \mathcal{M}_{n \times n}$ show that $$ \text{Trace}(B)^{2} \:\leq\: n \,\text{Trace}(B^{T}B) $$  I know I have to use the Cauchy-Schwarz Inequality, but I wasn't exactly sure how to.  Here is my attempt:  Since I only have one matrix I decided to use the identity matrix $$ \begin{align} \text{Trace}(B)^{2} \:&\leq\: n \,\text{Trace}(B^{T}B) \\ \text{Trace}(I^{T}B)^{2} \:&\leq\: n \, \langle B, B \rangle \\ \langle I_{n}, B \rangle^{2} \:&\leq\: n \, \Vert B \Vert^{2} \\ \langle I_{n}, B \rangle \:&\leq\: \sqrt{n} \, \Vert B \Vert \end{align} $$  I feel like I either did it incorrect, or that I'm close but am missing something.


Is it possible to create a table like this one?    The usual structure of tables I use looks like this:  \begin{table}[H]     \begin{adjustbox}{width=\textwidth,center}     % \begin{adjustbox}{center}         \begin{tabular}{lll}             \hline             \multicolumn{1}{l}{\head{XXX}} & \multicolumn{1}{l}{\head{XXX}} & \multicolumn{1}{l}{\head{XXX}} \\             \hline             \ttfamily xxx & \ttfamily xxx & \ttfamily xxx \\             \hline         \end{tabular}     \end{adjustbox}     \vspace{ - 05 mm}     \caption{xxx}     \label{tab:xxx} \end{table}


I'm self studying discrete math from a books which states the formula for No of ways of selecting r objects from n distinct objects, allowing repeated selections as  $C(n+r-1, r)$. I couldn't understand completely how they derived this formula. Could someone please explain this to me?  Kindly also do give some examples to help me understand how to use this formula.  The book is elements of discrete mathematics by KC liu and DP mohapatra


Associate my Careers profile with SO profile

On my SO profile (this is the new, recently released one), in the Web Presence section, it says that there's no Careers profile for this account, and to click the link (Discover StackOverflow Careers) to find out more.  I have a StackOverflow Careers account, and when I click the link it logs me straight in to my account.  Have I messed things up somehow - perhaps they are somehow two different accounts, and I'm logged in to both of them? If so, how can I associate my SO Careers account with my SO account?


If I add an my http address in a text box of another website and as raw text such that it is not a hyperlink, would this count by googlesbot and for SEO purposes as a backlink? I note a  to this one has been asked but it's either 5-10 years old and the algo will have evolved or the answer gave no comfort of its accuracy. Thank you


I was trying to exclude the "Export to Spreadsheet" from survey for users and after I got into this.      When i pressed one of the issues in Central Admin, I got this:    I wanted to make a survey in SharePoint 2013 but I didn't want users to see the results so I removed the following code:  <SharePoint:FeatureMenuTemplaterunat="server" FeatureScope="Site"             Location="Microsoft.SharePoint.StandardMenu"             GroupId="ActionsMenuForSurvey"             UseShortId="true"             ...             runat="server">   from the file C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES\DefaultTemplates and was ok. After  server restart I noticed that even if I have admin rights I can't upload documents, create new folders, use library setting etc. So I restorede it back and saved it but things are the same. I still have admin rights.


How can I dynamically specify 'T' value in a .NET generic?

I am not sure if this can be done but I am wondering if it is possible to specify the 'T' type of a generic at run time. I have an object that has been serialized and stored in the database. The type of the object has also been stored. So when the object is retrieved I have the serialized object stored in a string variable as it's type also stored in a string variable. What I want to be able to do is something like this:  var serializer = new AbcSerializer(); var typeString = "Abc.Group.Common.Domain.DomainObject, Abc.Group.Common.Domain"; var serializedObject = "some serialized data here..."; var retObj = serializer.Deserialize<Type.GetType(typeString)>(serializedObject);   Does someone know if this is possible?  Other questions that are similar to this one talk about using MakeGenericType like this:  Type constructed = d1.MakeGenericType(typeArgs);   And then doing:  object o = Activator.CreateInstance(constructed);   to create an instance of that object. That is not what I am trying to do. I want to create an instance of my object from data that has been serialized.


Normal paragraphs in a certain list environment

Consider the following MWE.   \documentclass{article} \usepackage{enumitem} \def\widestnumber{25}  \newlist{mylist}{enumerate}{1} \setlist[mylist,1]{      leftmargin=40pt,   labelsep=1.0em,    itemsep=0.0em,    topsep=0.5em,    label=\arabic*.,   widest*=\widestnumber}  \begin{document}  \begin{mylist}    \item Here is a list item which consists of two paragraphs. This is the first paragraph.      Here is the second paragraph. I want it to have a normal indent at the beginning.    \item Here is another item. \end{mylist}  \end{document}


Using MOSFETs To Automatically Switch Between 2 Power Supplies

For my circuit the primary Power Supply is a 6V Solar Panel (Note that for the most part the Solar Panel is usually well below 6V but it varies anywhere between 6V to 0V depending on light conditions.)  However there will be times when I want to power the circuit using a simple 5V USB Adapter.   Here are the design requirements:  1) I will NEVER remove the Solar Panel from the circuit. 2) I want the Solar Panel to automatically disconnect from the circuit when the 5V USB Adapter is connected to the circuit.  3) I'd prefer not to use any IC's or things of that nature. I wanted to accomplish this using MOSFETs (preferred), diodes if necessary, resistors, and capacitors/inductors if necessary.  I've seen similar posts to this and they've been moderately helpful but I haven't found anything that has helped me with a fully functioning circuit as I've described in the requirements.


Can the torsion of a connection be measured mechanically?

In general relativity, we assume that the connection is torsion-free. In some alternate theories, like Einstein-Cartan theory, we consider connections with torsion.   According to , torsion can be measured through the precession of spins, but this requires understanding spinors in GR. Is there a way to directly measure torsion without using spin, ideally through a simple mechanical system? (I don't care if this is an impractical experimental test, I just want intuition for what the torsion tensor means physically.)


How long is raw (unrendered) beef suet is good for in the fridge?

Note that this question   is about  (unrendered kidney fat from cow), . was never answered before on this site;  specifically does not say anything about unrendered fats.    Therefore please refrain from closing this question as a duplicate of either of those aforementioned questions.    The question really is: how long can raw unrendered beef suet be left in the fridge? Suet when rendered is called tallow and can be left outside for about a year, but what can be said of suet when not rendered and left in the fridge?


How to measure voltage of a floating GPIO (Raspberry Pi)

I would like to measure that voltage of a floating GPIO on a Raspberry Pi 3. When I use a multi meter or an oscilloscope it looks like the pin is pulled to ground and shows 0.  Another way of asking the question is, 'How can I determine if a GPIO pin is floating using an oscilloscope or multi-meter?"  How can I use an oscilloscope to measure the voltage of a floating GPIO pin on a Raspberry Pi?


How to dismiss alert without pressing enter in JavaScript

Is there any way to dismiss JavaScript alert() programatically OR by pressing any key and not necessarily pressing the ENTER key?


I'm making a test program for resource loading inside a jar and I'm having problems.  I've read that you should use ClassLoader or alternatively getClass() to access a file inside a jar. Since the method that i use to load the resource is static, I use ClassLoader.getSystemResource(String path). My program finds the file but says that the path contains invalid syntax for filenames or directory names. This is the code that I use to load my resources:  String path = ClassLoader.getSystemResource(file).getPath();  System.out.println(path);  try {     wave = WaveData.create(new BufferedInputStream(new FileInputStream(path))); } catch (FileNotFoundException e) {     e.printStackTrace(); }  AL10.alBufferData(buffers.get(i), wave.format, wave.data, wave.samplerate); wave.dispose();   Yes, I'm loading soundfiles for OpenAL.  Anyway, I should remind you that it actually finds the file but the path has invalid syntaxing. This is an example of the path I get when I run it in jar form:     file:\C:\Users\name\development\jars\test.jar!\sounds\test.wav   I've tried to remove the "!" and I still get the same error. If i remove the "file:" it doesn't find the file. Note that the program runs fine when I'm running in Eclipse.


Removing feature layer using ArcPy script?

I have an ArcPy based script where I'm trying to intersect two layers where one layer must have its centroid in the other layer.   Since I need to know that one layer (feature_layer below) includes the centroid of the other, I'm using the arcpy.SelectLayerByLocation_management() tool.   I do not have a Map Document (*.mxd) open so in order to do this, I have to use  to feed into it.   The documentation notes that the feature layer will disappear when the program exits, but I need it to disappear sooner since I have it in a loop similar to below  for feature_class in large_list_of_feature_classes:     some_function(feature_class)  def some_function():     feature = "{path to feature class}"     feature_layer = "feature_layer"     HUCs_layer = "all_HUCs" #HUCs being Hydrologic Unit Codes      arcpy.MakeFeatureLayer_management(feature, feature_layer)     arcpy.MakeFeatureLayer_management(feature, HUCs_layer)           arcpy.SelectLayerByLocation_management(HUCs_layer, "HAVE_THEIR_CENTER_IN", feature_layer, selection_type="NEW_SELECTION")      arcpy.CopyFeatures_management(HUCs_layer, selection_name)   I'm looking for a function to remove feature layers and I haven't been able to find one.   I realize I could put some sort of count in there or something to make each one unique within the scope of the program, but that's not ideal unless there is no way to remove feature layers.


Where are WhatsApp messages stored when they arrive? They are stored in backup at 4 AM but before that, where are our latest messages stored? How can we access this location?


I'm trying to create a car rim in Blender. However when I try to add array modifier, and rotate the instances around empty, they are not in the same distance from the center (as shown in the image). I can't figure out, how to put them in the same distance from centerpoint and I haven't found a satisfying answer. Thank you in advance.


Given that matter cannot escape a black hole, how did the big bang produce the universe we see today?

Extrapolation of the expansion of the Universe backwards in time using general relativity yields an infinite density and temperature at a finite time in the past.  If the matter contained within our galaxy were concentrated within a small radius wouldn't that lead to the entire universe being a black hole? If so how is it that all the matter of our observable universe could have originated from a region of infinite density?


What does `LOGFILE=${1:-/var/log/syslog}` do?

I stumbled across  containing:  LOGFILE=${1:-/var/log/syslog}   What does this line do?


Is the integral $\int_1^\infty\frac{x^{-a} - x^{-b}}{\log(x)}\,dx$ convergent?

Is the integral $$\int_1^\infty\frac{x^{-a} - x^{-b}}{\log(x)}\,dx$$ convergent, where $b>a>1$?  I think the answer lies in defining a double integral with $yx^{(-y-1)}$ and applying Tonelli's Theorem, but the integral of $\frac{x^{-a}}{\log x}$ is still not integrable. Any ideas?


How to align footer (div) to the bottom of the page?

Can anyone explain how to align a footer div to the bottom of the page. From the examples I've seen, they all show how to make the div stay visible at the bottom, no matter where you've scrolled the page. Although I don't want it like that. I want it fixed at the bottom of the page, so it doesn't move. Appreciate the help!


Alternating sum of binomial coefficients up to certain value

I would like to compute the value of the following sum:     $\sum_{k\leq m} (-1)^k\binom{n}{k}$    for an integer m and a non negative integer n.  Progress  I know $\sum_{k=0}^n (-1)^k\binom{n}{k} = 0$ and symmetry of binomial-coefficients can be used to simplify some cases but beyond that i'm stuck.


'Our calendar is based... or was based'?

Our calendar is based on Julius Caesar's calendar.      Our calendar was based on Julius Caesar's calendar.   Which is correct "is" or "was"?


There's an extra  in the flag overlay shown when viewing the full flagged post:    It's escaped in the source:  answered&lt;/a&gt; 5 hours ago by


Declaring Text Decorations such as Underline, Strikethrough in a Style

How do I include text decorations such as Underline, Strikethrough etc in a Style definition:  <Style x:Key="UnderlinedLabel">      <Setter Property="Control.FontFamily" Value="Trebuchet MS" />      <Setter Property="Control.FontSize" Value="14" />      <!-- Next line fails -->      <Setter Property="Control.TextDecorations" Value="Underline" /> </Style>   I'm familiar with using the following XAML to underline text:  <TextBlock>    <Underline>        Underlined text    </Underline> </TextBlock>   However text decoration is just another style, I want to be able to define it declaritively like FontWeight, FontSize etc.  [Update]  I was applying this style to a Label control.  This was my main problem.  It appears you can't underline text in a Label.  Change to a TextBlock (thanks gix) and all is well.


Merge two seperate columns in Google Sheets into a single column

I have a list that contains people's names in one column and their company's names in a second column. At the top of each column there is a label, i.e "Name" for column A, "Company" for column B.  The way a program I want to use works is to read data from a master list in one column, and it differentiates the type of data contained in the first column using second column, like this:  The ultimate goal is to have this data pulled automatically from an outside source, which is stored on one tab. There will then be another tab containing this master list, one column containing people's names and various company names, and a second column with the first column's data type (i.e 'Person' or 'Company', as pictured above) right next to it. So far I have been able to populate individual columns in the second tab by using Sheet's "QUERY" function, `QUERY('Importer'!A2:A)`    which allows the column to update very nicely every time the other tab is updated from the outside source, the problem is that because I don't know ahead of time how long the referenced column is going to be, I can't add a second 'QUERY' function to pull data from another column below it. Any tips on how to solve this would be much appreciated. Thanks!


In my textbook, there is written that:     Done work = spent energy   Suppose I am riding a motorcycle. I start my journey from a place and then going to various places I come back to the exact point(I never stopped in my journey). So my displacement is $0$, and the work done by me is also $0$.   But in my journey I have combusted fuel and spent energy and that energy is not $0$. So is my textbook wrong or I am wrong?


Point 1: When there is 1 car passing the road, the average speed is 50km/h.  Point 2: When there are 5 cars passing the road, the average speed is 45km/h.  Point 3: When there are 12 cars passing the road, the average speed is 38km/h.  How do I write all 3 systems of linear equations this in matrix form? Any help is appreciated.  50 = α + β  45 = α + 5β  38 = α + 12β


Man sent to a crystalline planet gets his eyes replaced

I remember reading this over 15 years ago, and feel it was old even then.  The story had a man sent to a planet for some reason (survey maybe?) and discovering that there are evolved life-forms on there, of a mechanical nature. They use solar energy to survive so effectively shut down overnight. There are night time predators that attack, and he shows them how to create batteries to fend them off.  During the story the robots talk about what is obviously infra-red and ultraviolet light, and one day he wakes up to find he can see in those spectra. He asks how they "fixed" his eyes, and gets shocked when one of the robots opens a drawer in it's body to show that they actually replaced them.  I seem to remember that the cover had a man in a spacesuit surrounded by huge crystals.


I wonder if there is any phrase or idiom to express a situation, where one of the discussion participants, lacking arguments to upkeep a constructive discussion, steers the direction to personae:  -- ... So these are my arguments, proving that you are completely wrong. Do you agree? -- This is utter rubbish, only fools like you think that way!


I have a server application that uses "a lot" of threads. Without wanting to get into an argument about how many threads it really should be using, it would be nice to be able to see some descriptive text in the debugger "threads" window describing what each one is, without having to click through to it and determine from the context what it is.  They all have the same start address so generally the threads window says something like "thread_base::start" or something similar. I'd like to know if there is an API call or something that allows me to customise that text.


Buy action in the past need the past perfect or the present perfect?

I  need to translate a sentence into English.    This is my attempt:     Thank's to my parents' help, Andrew has been  able to buy a house.   My question is: should i use "has been" as i did or "had been", and why?  I know the use of the two tenses , but i don't understand if the action to buy something like a house is considered to be over in the past when i paid for it (pasts), or if it last untill i own it (present perfect).  Or should  i say:      Andrew was   able to buy a house?   Thank you in advance.


Why does my camera record a .JPG image and .NEF image on my memory card?

When I looked my photos in my computer, two images appeared. One is a JPG image and another one is a NEF image. I'd already formatted my memory card but there's no change at all. What should I do? The another file is eating spaces on the memory card.


There is a good feeling you get when your curiosity is satisfied, especially if is about a question you found interesting or important, or have spent a lot of time and energy trying to answer. Depending on how much I wanted to know, this feeling can be quite pleasing. Is there a word specifically for either the satisfaction of a curiosity, or the feeling that results?


How can I superimpose LaTeX / TeX output over a PDF file?

I have a form as a PDF file.  I would like to use LaTeX/TeX to overlay my text over the form, and send the output to either a print or another PDF file.  Is this possible?  How would I go about it?


Is there any climatic portal for downloading historical climatic data ( Rainfall & Temperature) on a daily basis or at least on a decadal basis?  PRISM gives only for US regions.


My 5 year old son has recently got into the habit of getting into these incredibly annoying tantrums. They start when he doesn't get his way and can often rumble on over a couple of hours. They usually peak at bedtime.  When it occurs he doesn't do anything. He lays on the floor and says "nothing" when you ask him to do something. After a while mixes this up with raspberry-blowing spitting and saying the word "poo".  I start off being over nice, attempting to coax him out of his tantrum. I make some jokes to try to get him to smile. I offer to help him do things. Ask if he wants to pick a bedtime story etc.  This practically never works.  I then get frustrated and shout. This usually lasts about 10 seconds. He cries and says he doesn't like me.  I become calm again but I have a child who won't go to bed. At this point I put him to bed. I pull him up. I then hold his hand and steer (encouragingly pull) him towards the bathroom, I ask him to do everything that is expected off him. He doesn't. I sit him on the toilet. I wash his hands. I gently edge him towards his bedroom and get him into his pyjamas while he continues to say "nothing".  During this process he protests a little bit but I am not aggressive. He isn't being dragged along the floor. He doesn't like it but does reluctantly comply. He does edge a foot up about 3cm from the floor so I can slide on his pj's etc.  I hate doing this final step. It isn't right but if I don't, if I leave him outside his room he will sit there and start saying words he knows he is not allowed to say. We once left him for 45 minutes and he laid there contently running through the list of things he is not allowed to do.  What am I supposed to do? We have taken away his treats the next day but doesn't seem to do anything.  Has anyone else dealt with this behaviour? Does anyone have any advice? Just want to add. 70% of the time he is well behaved. 25% of the time he is a bit silly. This is like 5% of the time where he seems to get into the mindset where he doesn't want to comply with anything and wants to try to press to buttons.