Given that a qubit in equal superposition of $|0\rangle$ and $|1\rangle$ is represented by following wave function \begin{equation} \Psi = \frac{1}{\sqrt 2}(|0\rangle + |1\rangle) \end{equation} and associated density matrix \begin{equation} \rho_1 = |\Psi\rangle \langle\Psi| = \frac{1}{2} \begin{pmatrix} 1 && 1 \\ 1 && 1 \end{pmatrix} \end{equation} Further a qubit in this state is considered to be in a pure state (even though its in a superposition) since the density matrix can be cleanly factored into a product. Fact $F$ : When measured this qubit will turn out to be 0 or 1 with 50% probability each. But there exists another density matrix consistent with the same fact $F$ as follows: \begin{equation} \rho_2 = \frac{1}{2} (|0\rangle \langle0|) + \frac{1}{2} (|1\rangle \langle1|)        = \frac{1}{2} \begin{pmatrix} 1 && 0 \\ 0 && 1 \end{pmatrix} \end{equation} and this matrix corresponds to a mixed state. Clearly $\rho_1 \neq \rho_2$ but they have same physical characteristics which is the fact $F$. My Question: What is a physical fact or property that can be used to distinguish $\rho_1$ from $\rho_2$?

My understanding so far is: a pure state is a basic state of a system, and a mixed state represents uncertainty about the system, i.e. the system is in one of a set of states with some (classical) probability. However, superpositions seem to be a kind of mix of states as well, so how do they fit into this picture?  For example, consider a fair coin flip. You can represent it as a mixed state of “heads” $\left|0\right>$ and “tails” $\left|1\right>$: $$ \rho_1 = \sum_j \frac{1}{2} \left|\psi_j\right> \left<\psi_j\right| = \frac{1}{2} \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} $$  However, we can also use the superposition of “heads” and “tails”: specific state $\psi = \frac{1}{\sqrt{2}}\left( \left|0\right> + \left|1\right> \right)$ with density  $$ \rho_2 = \left|\psi\right> \left<\psi\right| = \frac{1}{2} \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix} $$  If we measure in the computational basis, we will get the same result. What is the difference between a superposed and a mixed state?


how to install NS2 on linux correctly. because many tutorials cannot be run. ask for help please yes because I'm still a beginner in using Linux Ubuntu. thank you.

If I upgrade Ubuntu 12.04 to 14.04, will NS2 still be supported?  I am currently using NS2 on Ubuntu 12.04.


I once ran across a term for the error of misunderstanding the meaning or sense of a word because one doesn't know exactly what the word is. For example, someone mistakenly thinks that the phrase is "tow the line" rather than "toe the line." Can anyone tell me what this type of misunderstanding is called?

What would you call the following:     Speak now or forever hold your piece.


Is there a way to have an alias set for a particular directory and its subdirectories?  I know I can put it in my .bashrc file, but I would like it only for a certain directory.  Edit: what i mean is i'd like to run commands that are aliased inside of the directory  ~$ foo -bash: foo: command not found ~/project$ foo Bar!

Suppose you have an alias go, but want it to do different things in different directories?  In one directory it should run cmd1, but in another directory it should run cmd2  By the way, I have an aliases for switching to the above directories already, so is it possible to append the go alias assignment to the foo alias?  alias "foo=cd /path/to/foo"   Working in bash(?) on OSX.


Which is preferable, simple past or present perfect, in situations like this one: I had a conversation with my friend and we planned to do something; shortly afterwards I call him back to announce the accomplishments. My biggest doubt about simple past is that perfect aspect is used to indicate past action (accomplishment) with current relevance, at the same time I'm not sure if I'm allowed to use present perfect, because there's a gap between accomplishing and the current moment, which is a characteristic of simple past.

If I seem tired, can I say: "I haven't slept last night"? If not, why have I been told that we use present perfect for actions that have present effects?


I didn't know he was/is such a good person.  Which is correct in the above sentence. Is/was and why ?  (Assume the person is still alive and is still a good person)

I know the past tense carries the past tense in every dependent clause, but referring specifically to places or to things that are eternal, like the Earth, seems a bit weird and therefore we sometimes (I believe incorrectly) say     He didn't know that New Jersey was actually on the East Coast.   Because it still is. Or     He thought the Earth was round.   So is it square now?  Logically speaking, would you consider the use of past tense here a bit confusing in a day-to-day speech in these examples? Would you instinctively opt for using the present tense?


I want to curve an object to make a path like a roller coaster.  I just made the basic shape (wooden tablet, left and right binary).  How to curve it?  Thank you so much.

I have imported a prefab from unity that looks like this.    It is a track for a roller coaster.  I want to twist it about the axis in between them such that it forms a roller coaster path like this.   I can't figure out how to twist it, both along its own axis, and also along another axis such that it forms a loop, as shown in the roller coaster figure. I thought that making a parent empty object (Plane Axes) and twisting it would solve the problem, but the Empty object doesn't seem to have modifiers, so I can't even add a twist to that object.


I'm planning my big Europe trip, and I'm quite excited about it!   I have received a grant to attend a programmer conference in September, and I have an invitation letter from them. Since it's a conference, I'm applying for a business visa.   The problem I think I might run into is that I'm a freelance software engineer, and a single male. I know this type of people look the most risky, given that they have a lot of flexibility. I'm honestly attending the event and coming back, but I'm looking for some ideas to prove that my online job is stable.   As of now, I have these documents: - Bank statement of my local bank account (of past 6 months). - A digital certificate of earnings from the web site I use to transfer my payments. It shows how much I earned in past 12 months, 6 months, 3 months and the last month. - I use a prepaid Master Card to withdraw my money. I also have a screenshot of all transactions of past 6 months.   The amounts match each other and I can show more money than what I would ever need. But I do not have pay stubs or checks. All transactions are completely digital.   I will also provide a hotel confirmation and a return flight ticket confirmation. I also have the invitation and my cover letter includes links to the web site that mentions that I have received the grant (along with 20 other grant winners).   I actually have two questions:   How accepting is the Schengen visa schemes of digital transactions? I can provide a photocopy of the same card I use, and I can even show the physical master card to them, which has my name embedded and matching card numbers. I have submitted the same documents to other embassies and had no problems. Will I have problems with Schengen? Given that I am a freelancer, unmarried, living in a developing country, I understand I should show that I definitely intend to come back. I'm done with my education and I am not in the age to own a vehicle or property (I'm 23). Is a return flight ticket considered a reason to come back?    I have visited other countries and have never overstayed or violated any immigration laws. Is a fairly used passport considered as a positive point to prove that I take immigration laws seriously?

There are many visa applicants who are working as an unregistered freelancer (photographer, construction contractor, fashion designer, journalist etc ). Some of these freelancers make really handsome monthly income and don't really need to work as a full time employee. Most of them receive variable amount of payments (cash, cheques, demand drafts etc) When it comes to filling a visa application form (USA, UK, Schengen etc), there is always an employment section in all visa form, eg for Schengen visa employment form :    This is a very important factor to make an application really strong.  Questions:   1 Unregistered freelancers can just simply write their profession? what documents to produce along with the application?  2 Bank statements with variable methods of payments could convince the visa officer that these are all legitimate payments?


Now, I know that it's probably as simple as pseudo code if(job.contain("Java")) return true But I still feel like Stack Overflow Careers should know better. True, a lot of Java devs know JavaScript, I do, but when I want to have a subscription for Java jobs, I don't expect to see JavaScript. It's something I'd expect from a recruiter mentioning "DNS" and "Git" as programming languages...  Also, if I try to use the tag system I've now understood exist (feature request on it popping up tags as keywords?) then I still get the same results:   maybe?

Click on the tag "ruby-on-rails" from a job or just go to  and you'll see a lot of jobs (969 for me right now), a lot of them not containing the tag. I think that the results are actually just the search result for the "Ruby on Rails" string, using OR.


$f$ is a continuous function from $\mathbb{R}$ to $\mathbb{Z}$.  Prove it is a constant. If $f$ is uniformly continuous, I'm able to prove it: If $f$'s domain is the empty-set or a single point, the matter is trivial.  Else, assume $f$'s domain is an interval including $x$.  Since $f$ is uniformly continuous, there exists an $\epsilon > 0$ such that for any $y$ in $(x-\epsilon, x+\epsilon)$, $|f(y) - f(x)| < 1/2$, and since both $f(x)$ and $f(y)$ are integers, $f(x) = f(y)$.  By induction and the Archimedian principle, we can extend to the entire interval of $f$'s domain. However, this fails if $f$ is not uniformly continuous, as the $\epsilon$s may vanish such that we never extend the interval to cover the entire domain. A different approach is to argue that if $f$ is not constant, then for any $\epsilon > 0$, there exists an interval with length $< \epsilon$ where $f$ must take on two non-equal values.  While I believe this to be true, I do not know how to prove it. One approach may be to ask "What is the smallest $\delta$ such that $f(x) \neq f(x+\delta)$?"  However, it is not clear that there needs to be a smallest $\delta$.  While I feel that any continuous function will indeed have such, I again don't know how to prove it. How can this be proven?

I'm stuck on a question which asks to prove that any continuous integer-valued function of a real variable is constant. In my lecture notes we are told that a map is continuous if the preimage of any open set is open.  How do I use this to answer the question? A full answer would be greatly appreciated as I can't seem to figure out how to solve it in my  notes, in analysis books or anywhere online.


What are the possible eigenvalues of a projection matrix? I know that a projection matrix is any square matrix $A$ such that $A^2 = A$. Thus, we obtain  $$ A^2v = \lambda^2 v \\ Av = \lambda v $$  for some vector $v \neq 0$. The above imply that $\lambda v = \lambda^2 v$ so $\lambda^2 - \lambda = 0$ so $\lambda = 0, 1$. Does this seem right? For some reason I feel like $-1$ should also be an eigenvalue.

A projection operator $P$ is defined as $P^2$=$P$. Use this definition to find the eigenvalues of this operator.   In this question is it necessary to define what the projection operator is? And won't the eigenvalue just be zero?


I have a problem after importing the PO of the Drupal core 7.28 (I tried with French and Arabic), whenever I try to create a new feature or open the modules page, I will get an error:     Allowed memory size of 268435456 bytes exhausted (tried to allocate   5126472 bytes) in .../includes/form.inc on line 3906   After the import, it is consuming a lot of memory and time I tried debugging, this is the path I could trace:  menu_execute_active_handler -> drupal_get_form -> drupal_build_form -> features_export_form -> _features_export_form_components -> _features_export_build   This is as far as I could get while debugging. The last function _features_export_build takes a lot of time but I couldn’t know what is wrong inside.

I have a issue with my Drupal installation, for example:   when I enable or disable the modules, It redirects me to a blank page, when I create a new content type and save it, redirects me to a blank page, when I add a new view and save it, it redirects me to a blank page, when I try to clear the cache, it redirects me back to a blank page, or in similar cases.   Basically all the confirmation pages redirect me to a white screen. When I refresh it again, it shows me the page. I tried to increase the PHP memory value but it doesn't help.  Are there any other solutions for this?  The error which I'm having:      Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 8192 bytes) in sites/all/modules/views/plugins/views_plugin_localization_none.inc on line 1


I have a ring $\mathbb Z[\sqrt{-2}]$ and I need to describe all the prime numbers of that ring. How I can do that? Thank you

First of all I am new to this topic, algebraic number theory, so I only know a decent (not great) amount of abstract algebra.     The question I have is that, given the imaginary quadratic field $\mathbb{Z}[\sqrt{-2}]$, I want to find;   (1) all irreducible elements of it,   (2) show that it is a Euclidean domain, and   (3) show that for an odd prime number $p,\; \exists \;x,y\; \in \mathbb{Z}$ s.t. $p = x^2+2y^2$ iff $p=1,3(\textrm{mod}\; 8)$.    I have been reading and have books but there are some things I am not getting.  (a) My attempt at finding the units (I read that there are only ${}^{\pm}1$ for this integral domain (ID));  A unit is an element with an inverse, so for an element $p_1 \in \mathbb{Z}[\sqrt{-2}]$, there is another element $p_1'$ s.t. $p_1\,p_1' = p_1'\,p_1 = 1$ (it is integral domain, not just domain).  Let $p_1 := a+b\sqrt{-2}$ and $p_1':=x+y\sqrt{-2}$ and so $p_1\,p_1' = 1$ becomes $(a+b\sqrt{-2})(x+y\sqrt{-2}) = 1  = 1+0\sqrt{-2}$ and into the two equations, $1=ax-2by$ and $0=ay+bx$. Solving these leads to $x=\frac{a}{a^2+2b^2}$, $y=\frac{-b}{a^2+2b^2}$ and $p_1'=\frac{a}{a^2+2b^2} + \left( \frac{-b}{a^2+2b^2} \right)\sqrt{-2}$, which can only belong to $\mathbb{Z}$ if $b=0,\;a={}^{\pm}1$.   Is there a better way of determing the units of an ID?  I read that the units, $\epsilon$, of a quadratic ID of the general form $R[\sqrt{d}]$, where $d$ was square-free, were determined by $Norm(\epsilon) = {}^{\pm}1$ Is this general ? Is this for any $d$ that is square-free (though I see little difference between $d=d$ and $d=z*d$, as $z\in \mathbb{Z}$) ?  (1) I know, procedurally, how to do this for a given element, but I do not know of a better way to do it in general. Here is my attempt:  I read that: An element $p$ of an ID is irreducible in R if it satisfies: (i) $p \neq 0$ and $p$ is not a unit, (ii) if $p=ab$ in R, then $a$ or $b$ is a unit in R.  (maybe because I know the units in this ID I can say that all other non-zero elements are irreducible ? )  So if $p = ab$, with $a = m+n\sqrt{-2}$, then using the as-of-yet-unproved-homomorphism-norm-map, $N(ab) = N(a)\,N(b)$, $N(p=x+y\sqrt{-2}) = x^2+2y^2 = N(a)\,N(b) = (m^2+2n^2)\,N(b)$. Now if I had a specific element, to determine if it was irreducible, I could then determine what values of $N(a)$ and $N(b)$ were valid so that their product equaled $N(p) = N(x+y\sqrt{-2})$, which this latter term would be an integer ($N: \mathbb{Z}[\sqrt{-2}] \mapsto \mathbb{Z}$).  The latter two questions I haven't got far with either but am wanting to get this initial question(s) understood first.  Thanks all for your time reading my rather lengthy question!


How can I boot directly to tty3 without seeing any GUI (login screen of gnome)? I don't want to press Ctrl+Alt+F3 on every startup.

Is it possible to disable X at boot time? I'm setting up a server so it would be nice if it wouldn't load the graphical interface every time I boot.


There is a provision in Java to achieve abstract class. Then how do I achieve in Ruby?  Abstract Class  /* File name : Employee.java */ public abstract class Employee {    private String name;    private String address;    private int number;    public Employee(String name, String address, int number) {       System.out.println("Constructing an Employee");       this.name = name;       this.address = address;       this.number = number;    }    public double computePay() {      System.out.println("Inside Employee computePay");      return 0.0;    }    public void mailCheck() {       System.out.println("Mailing a check to " + this.name        + " " + this.address);    }    public String toString() {       return name + " " + address + " " + number;    }    public String getName() {       return name;    }    public String getAddress() {       return address;    }    public void setAddress(String newAddress) {       address = newAddress;    }    public int getNumber() {      return number;    } }   Extending Abstract Class:  /* File name : Salary.java */ public class Salary extends Employee {    private double salary; //Annual salary    public Salary(String name, String address, int number, double       salary) {        super(name, address, number);        setSalary(salary);    }    public void mailCheck() {        System.out.println("Within mailCheck of Salary class ");        System.out.println("Mailing check to " + getName()        + " with salary " + salary);    }    public double getSalary() {        return salary;    }    public void setSalary(double newSalary) {        if(newSalary >= 0.0) {           salary = newSalary;        }    }    public double computePay() {       System.out.println("Computing salary pay for " + getName());       return salary/52;    } }

I know there is no concept of abstract class in ruby. But if at all it needs to be implemented, how to go about it? I tried something like...  class A   def self.new     raise 'Doh! You are trying to write Java in Ruby!'   end end  class B < A   ...   ... end   But when I try to instantiate B, it is internally going to call A.new which is going to raise the exception.  Also, modules cannot be instantiated but they cannot be inherited too. making the new method private will also not work. Any pointers?


I've been trying to learn it from other sites, but I'm not well-versed enough in mathematics to understand.

For time-like geodesic, the affine parameter is the proper time $\tau$ or its linear transform, and the geodesic equation is   $$\frac{\mathrm d^{2}x^{\mu}}{\mathrm d\tau^{2}}+\Gamma_{\rho\sigma}^{\mu}\frac{\mathrm dx^{\rho}}{\mathrm d\tau}\frac{\mathrm dx^{\sigma}}{\mathrm d\tau}=0. $$  But proper time $\Delta\tau=0$ for null paths, so what the physical meaning of is the affine parameter for null geodesic?


I have been asked by one of my players “can I touch myself with a spell the has a range of touch?” Most touch spell say “you touch a willing creature of your choice,” or something along those lines. And my judgement is that you’re willing if you want to impose the effects on yourself. So I say, a touch spell is a spell that is kind of like a self that you can also use on other creatures or characters. Please correct me if I’m wrong and tell if I’m right.

Invisibility reads: "A creature you touch becomes invisible until the spell ends..."  Greater Invisibility says: "You or a creature you touch becomes invisible until the spell ends..."  By omission, does this suggest that one cannot use Invisibility on oneself?


This is an urban fantasy book in which magic suddenly returns to the modern world. The setting is in a large city (maybe New York) and has a very disaster-genre feel. The protagonist's boss is slowly turning into a dragon. This would have been in the late 90s, I think.

I'm looking for this novel (or maybe a series of books?). I remember that technology began failing all over the world. Some people began transforming into different types of mythical creatures, like sprites, demons, etc. There was a band of about four travelers that were trying to make it to Chicago, since that seemed to be at the center of the issue. The story line frequently shifted the point of view in each new chapter. I vaguely recall a final battle in Chicago with an enormous and powerful demon creature. I think this demon used to be a corporate lawyer or big business guy before his transformation. I believe I read this in the early/mid 2000s, and was likely published around that time because of the types of tech used and failing in the story. Although it bears some surface similarity to the TV show, Revolution, they aren’t comparable in plot or characters.


If we cut 10 in half, then we get 5. This means two 5s makes 10, meaning, 6, 7, 8, 9, and 10, are the remaining 5 numbers that make it up. So why do we round up 6 numbers? It's such a small thing but it annoys me so much.

As an example, the number 15, rounded to the nearest tens, rounds to 20. I understand it's arbitrary, as 10 and 20 are equidistant from 15, I just wonder if there's any discernible logic behind the convention of rounding up. Even something like, 'It just feels more natural', would probably satisfy me. Just had to ask :)


Are there any functions whose output is a prime number? For eg. The function $x^2$ spits out squares of $x$; is there a similar function for Prime Numbers as well(which gives output as Prime Numbers)?

I have found from a site this formula:    Ok.I have found that this formula is correct.see the reason below.  This part of formula is always $1$ or $zero$.    it's zero when $(2m)!+1$ isn't dividable to $2m+1$. And when it's zero this formula will give us the number 2.And it's 1 when (2m+1)! is dividable to 2m+1.Using Wilson's theorem if $(2m)!+1$ is dividable to $2m+1$ then $2m+1 $is prime.From these we can know that this formula always gives primes.But here is a big problem.This formula is very hard to use and it gives us many times the number $2$.My question is this is there a better formula for finding primes?  I have tried a lot of of formula.The best I have seen after this is mersenne's formula I don't liked this because it don't gives always a prime out.sometimes it generates not a prime number.I really believe that there is any formula that generates prime ordered because they are so much random but is there a formula that always gives out primes an it's easy to use?


I found the answer to these questions but I want someone could give explaination $100$ tickets numbered $1,2,3...,100$ are sold to $100$ different people for a drawing. Four different prizes are awarded, including a grand prize (trip to Tahiti). How many ways are there to award the prizes if:  a) There are no restrictions? Answer: $94109400$  b) The person holding ticket 47 wins the grand prize? Answer: $941094$ c) The person holding ticket 47 wins one of the prizes? Answer: $3764376$  d) The person holding ticket 47 does not win a prize? Answer: $90345024$  e) The person holding ticket 19 and 47 both wins prize? Answer: $114072$

If someone could give answers and explain, it would be greatly appreciated. Help required studying for a final.  One hundred tickets, numbered 1,2,3,…,100, are sold to 100 different people for a drawing. Four different prizes are awarded, including a grand prize (a trip to Tahiti).   A) How many ways are there to award the prizes?  B) How many ways are there to award the prizes if the person holding ticket 47 wins the grand prize?  C) How many ways are there to award the prizes if the person holding ticket 47 wins one of the prizes?  D) How many ways are there to award the prizes if the person holding ticket 47 does not win a prize?  E) How many ways are there to award the prizes if the people holding tickets 19 and 47 both win prizes?  F) How many ways are there to award the prizes if the people holding tickets 19, 47, 73, and 97 all win prizes?  G) How many ways are there to award the prizes if none of the people holding tickets 19, 47, 73, and 97 wins a prize?  H) How many ways are there to award the prizes if the grand prize winner is a person holding ticket 18, 47, 73, or 97?  I) How many ways are there to award the prizes if the people holding tickets 19 and 47 win prizes, but the people holding tickets 73 and 97 do not win prizes?


This has been bothering me for so long, my phone never has storage no matter how much I delete. I have less than 40 photos, and only around 2 very big games. But that’s not the issue.   Yesterday my mother saw this problem, and choose to buy 50 GB for my phone. That option where you go to settings - iCloud- etc and choose the 0.99 per month plan. This increase my iCloud storage from 5GB to 50GB, but my phone is still at 16 GB! My iCloud only has around 3 GB full, so why  isnt the stuff from my actual phone storage increasing or transferring to iCloud? I had a friend buy this same plan, and it increased the phon storage to 64 GB on top of the 50G GB added to iCloud.  Someone please help! This has been killing me for weeks and I’m tired of it!

I just changed my storage plan for 50 GB for $0.99 per month. When i went on settings>General>Storage and icloud usage, where it said storage above it i didnt have more storage. But the second box, where it said icloud abov it had upgraded to 50 GB. But i dont have any more storage for me to be able to get more apps etc.


I have Ubuntu 20.04 installed via WSL2 and am able to run commands in that Ubuntu instance by doing wsl.exe ls -latr in PowerShell. But what if I wanted to run a command that required sudo? If I try wsl.exe sudo whatever I get the following error: /bin/bash: sudo whatever: No such file or directory  I guess there's also the problem of getting sudo to accept a PW via the CLI but there are . Any ideas?

Is there a way to access Windows file with administrative rights using WSL?  sudo vi /mnt/c/Users/a/admin/file.txt


Consider United States of America or United Kindgom. While using these, it is customary to add the before it. Eg. I'm travelling to the United Kingdom    However, when I use the abbreviation, it doesn't seem right to add the before UK. It will usually be sans the the, like, I'm travelling to UK.    Is it because when I use UK, I treat it as a proper noun, and in case of United Kingdom, it is mainly used to denote a cluster of kingdoms, and not treated a proper noun? Is skipping the the correct usage?

I'm wondering when to use or not to use the definite article, when using acronyms or initialisms in a sentence. Is there a rule for this, or does it depend on the context?  For example, let's look at some example sentences DDR  = detailed design review.  NASA is planning to launch the final shuttle soon (no article) The FBI shut down this website (article) ESA is a full partner in the ISS (no article, article) The project was cancelled at the DDR. (article)  What confuses me is that if NASA or ESA would be written in full, the article would be necessary.


public class Exa {     public static void main(String[] args) {         Integer b = new Integer(10);         add(b);         System.out.println(b.intValue());    }      public static void add(Integer b){         int i = b.intValue();         i += 3;         b = new Integer(i);         System.out.println("b="+b+",i="+i);     } }   I wrote the above code, and run output 10. Why did it not change?  Why output 10, please give detailed instructions，thanks！

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


here is the code  // connecting the hosting Server  $conn = new mysqli($HostServer,$userName, $pw) or die("unable to connect"); if ($conn) {     echo ('successful connected');//echo successful if connect  }    In php.ini  I uncommented the extension=php_mysqli.dll  In http.config I uncommented  extension_dir = "./" and extension_dir="C:\xampp\php\ext"

I saw this in , in reference to shortcomings of the Java spec:  There are more shortcomings and this is a subtle topic. Check  out: public class methodOverloading{      public static void hello(Integer x){           System.out.println("Integer");      }       public static void hello(long x){           System.out.println("long");      }       public static void main(String[] args){          int i = 5;          hello(i);      } }  Here "long" would be printed (haven't checked it myself), because the compiler chooses widening over auto-boxing. Be careful when using auto-boxing or don't use it at all!  Are we sure that this is actually an example of widening instead of autoboxing, or is it something else entirely? On my initial scanning, I would agree with the statement that the output would be "long" on the basis of i being declared as a primitive and not an object.  However, if you changed hello(long x)  to hello(Long x)  the output would print "Integer" What's really going on here?  I know nothing about the compilers/bytecode interpreters for java...


I would like to keep the footer at the bottom of the browser, until the content filled up with body height. let it the content box empty.  what is the correct approach to do this?  here is my try:     SCSS:  .wrapper.container-fluid{     padding:0;     margin: 0;     border:2px dashed red;     display: flex;     flex-direction:column;     height: 100%;     max-height:inherit;      header{         border: 1px  solid blue;     }      div.content{         border:1px solid gray;         display: flex;         flex-direction:row;         height: 100%;          .leftnavi{             border:1px solid gray;             width: 20%;             background:lightgray;         }          .rightContent{             border: 1px solid red;             max-width: 100%;             width: 100%;             background:lightgreen;         }      }      footer{         border: 1px solid green;     } }   html:

Header title goes here

         Header navi goes here

             I am left navi

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatem quod labore distinctio nulla delectus, recusandae officiis at. Earum accusamus ea, sed dignissimos. Voluptatem, exercitationem! Dignissimos porro labore vel velit beatae.

      Footer goes here

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I learned just recently about asbestos in condos I had few possible exposures:  In old condo put 20 screws and nails into asbestos wall and took them out later, without cleaning the dust. What to do with carpet, bed, clothes, shoes, camping stuff...where it all might got? Keep or throw out? Do I need to wash every single clothes?  In new condo around 3 tablespoons of dust/powder from possible asbestos drywall, popcorn ceiling, tiles  from old renovation was uncovered under new laminate floor and blew into whole aparment, carpet, furniture, blankets... What should I do with all the stuff? Keep or throw away? How to make sure the place is safe?  I am worried that also there is still some asbestos dust left from the old renovation in hidden places, between baseboard heaters, in dust in popcorn ceiling,walls, closets... since the previous owner said they didnt test for asbestos before renovation (renovation was done 2 years ago, condo is from 1970)  I am worried about constant exposure because of many renovations in the condo building in common areas, elevator, garbage chute...Also blowing it inside while the windows are open from renovation or if exterior of bulding is made of it and its windy...  I am worried about exposure in common areas of the building in laundry room, garage... as I doubt its being monitored and I seen falling paint, missing vinil tile, broken pipe insulation...   Any advice appreciated!

My father manually screwed in two self-tapping screws into drywall that most likely contains asbestos in the compound. It was in a garage in a house built in 1976. It was actually those hooks that you screw into the wall to hang stuff off of. He did not use any power drill. Is the risk of asbestos exposure low? I understand the drywall usually doesn't contain asbestos but the compound usually did. No idea where he screwed it in.


I'm trying to do payment with Node.js, but find:  4.9 * 100 = 490.00000000000006   I can't stand this situation sometimes. How can I solve it?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I've got a bit confused  When I do log in via sudo su -  I get full environment loaded  $ sudo su - # env SHELL=/bin/bash TERM=screen-256color LC_ALL=en_US.UTF-8 HTTPS_PROXY_HOST=myproxy.com HTTP_PROXY_PORT=3128 USER=root (some other lines)  # cat /etc/environment HTTPS_PROXY_HOST=myproxy.com HTTP_PROXY_PORT=3128   But when I do execute a single command via sudo, the environment (specially /etc/environment) is not loaded  sudo -i -u root /bin/bash -c 'env' TERM=screen-256color SHELL=/bin/bash USER=root (some other lines) NO LINES FROM /etc/enviromnment   Any clue?  System Ubuntu 14.04

When I execute   which pip3   it points to   /usr/.../anaconda3/bin/pip3   However, when I run   sudo which pip3   the result is   /usr/bin/pip3   Where does this problem comes from and how do I achieve that sudo pip also points to /usr/.../anaconda3/bin/pip3?


How to write the following to a file printf "*\n!.gitignore\n" > $datadir/.gitignore   -bash: !.gitignore\n: event not found

I tried to create a script by echo'ing the contents into a file, instead of opening it with a editor  echo -e "#!/bin/bash \n /usr/bin/command args"  > .scripts/command   The output:     bash: !/bin/bash: event not found   I've isolated this strange behavior to the .  $ echo ! !    $ echo "!" bash: !: event not found  $ echo \#! #!  $ echo \#!/bin/bash bash: !/bin/bash: event not found    Why is bang causing this?   What are these "events" that bash refers to?     How do I get past this problem and print "#!/bin/bash" to the screen or my file?


I know how to vote to close, but I don't see the reopen path anywhere. Where is it?

Currently, when I want to reopen a question via my mobile device, I have to go to Safari or other browser app to do this.  Is it possible to add an option to vote to reopen via the app itself?


Say I have three settlements: A, B, and C  A has all my wood. B has all my steel. C has all my rubber.  Now if I set up a supply line from B to A and from C to A, A has access to all three.  But does B or C have access to all three?  Or do I need to also set up a supply line from B to C?

Supply routes are great when a settlement is just starting out to get things off the ground, but what is specifically transferred along them? I know anything on the  Junk, Aid and Mods tabs are transferred, and Fusion cores and Power Armor pieces aren't. Does that mean weapons, armor and ammo aren't transferred at all?  And what about Food and Water resources? Can I build a farming community with a surplus of food and use that to feed a merchant-only settlement, or are local crops always required? Ditto water.


I need to match the text inside
 element excluding the first  element from the text. When tested on an online regex tester like  it works fine, but when I run on my python script, it doesn't matches anything. Regex:
(.*)<\/p>$  Text:
Ackee and Saltfish Fritters
\n2 cup salted Cod fish, soaked overnight
\n2 cloves garlic
\n½ medium onion
\n1 tsp thyme
\n1 tbsp cilantro
\n1 scallion, finely chopped
\n¼ scotch bonnet pepper, seeds removed
\n1 cup all purpose flour
\n1 tsp baking powder
\n½ cup ackee
\n¾ cup water
\nCanola oil
  Python code: re.search(r"
(.*)<\/p>$", target_string)  Desired result in matches group 1: \n2 cup salted Cod fish, soaked overnight
\n2 cloves garlic
\n½ medium onion
\n1 tsp thyme
\n1 tbsp cilantro
\n1 scallion, finely chopped
\n¼ scotch bonnet pepper, seeds removed
\n1 cup all purpose flour
\n1 tsp baking powder
\n½ cup ackee
\n¾ cup water
\nCanola oil

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I'm basically duplicating , because I'm not satisfied with the answer.  Here's why I'm not satisfied.  If we know that "gravity travels at a finite speed", then it seems obvious that it can cause waves. You don't need to be a genius like Einstein to figure that out. Sure, you might not be able to write down the equations that model its behavior as Einstein did for general relativity, but the mere prediction of the existence of gravitational waves hardly seems surprising (in fact, seems necessary) when you've already considered the idea that nothing can travel faster than light.  Now, I don't know who first had the idea that gravity might travel at the speed of light, but it sure doesn't seem to have been Einstein. (Wikipedia  Poincaré argued for this idea in 1904?)    Considering these, why do we say Einstein predicated the existence of gravitational waves, and why does it seem like such an extraordinary conclusion? Doesn't it seem like a trivial corrolary of the fact that gravity has finite speed, which had already been experimentally verified? Why were the recent discoveries such a big deal, and why does Einstein get all the credit for it?  Or, is it the case that, e.g., the waves predicted by Einstein somehow behave fundamentally differently from what you would expect from a finite-speed Newtonian gravitational wave? Am I missing something there?

Consider the electric field surrounding an electron. The electron moves. A wave propagates at $c$ reflecting the electron's movement. This is an electromagnetic wave. Consider a mass. Classically surrounded by a gravitational field. The mass moves. The field deforms and it propagates at $c$.    Is this not a gravitational wave?  Why do people talk as if only general relativity predicted gravitational waves?


For me it is faster to create two website versions rather than a responsive one. The URL structure will be the same, the website will load the desktop template or mobile template dynamically, without redirecting to a subdomain, without duplicating pages. Only the html and css will differ for mobile and desktop. Are there any SEO disadvantages on this? Thanks a lot!

Given that I'm using  <link rel="alternate" href="http://m.example.com"> on my desktop site and <link rel="canonical" href="http://www.example.com"> on mobile, is there any SEO reason for me to replace the mobile site and desktop site with a single responsive site?  If I keep my separate mobile site, is there anything else I should be doing to ensure optimal SEO?  Secondly, what is the most SEO-friendly way of redirecting example.com to m.example.com when a mobile user requests it? Javascript? Apache? Something else? Or are all these redirection approaches the same for SEO?


is it possible to set a virtual microphone which captures the windows audio? The goal is to record audio with google docs. Thank you.

I've tried using VAC virtual audio cable, as well as virtual audio streaming. Unfortunately, none of these solutions provide a way to send audio output to a microphone input. None of the virtual audio cable related posts on here or internets address this specific limitation.   The reason I want to do this is to stream audio to the microphone and set the microphone as input device for another program. This "other program" only allows microphone inputs to be used as its input device.  See how no mic's are listed as output devices:    There is a software called Solicall which actually allows this. But I would like to do this through VAC virtual audio cables because Solicall only allows one instance running. Thus, I can't do my audio routing method more than once simultaneously. I have yet to find a better solution however than Solicall.  Someone please post if you found a way to do this with virtual audio cables, or any solution more elegant than Solicall. Currently, all the virtual audio cable programs I've tried do not allow microphones (real or virtual) to be selected as output.


I want to log my public ip to a file using cron. Something like this: 2021-05-17T01:11:46 99.99.99.99 2021-05-17T01:12:46 99.99.99.99 2021-05-17T01:13:46 99.99.99.99  Here's what I've cobbled together: * * * * * { date +%FT%T | tr "\n" " "; curl https://ipinfo.io/ip -s ; echo "" ; } >> /home/mario/logs/pubip.log  It works* in at sh prompt but once I put the asterisks in front and put it into crontab -e I get the following error: /bin/sh: 1: Syntax error: end of file unexpected (expecting "}")  OS: Ubuntu 20.04.2 LTS *There's gotta be a more elegant way to handle the formatting. What I frankensteind feels pretty awkward.

I want to create a log file for a cron script that has the current hour in the log file name. This is the command I tried to use:  0 * * * * echo hello >> ~/cron-logs/hourly/test`date "+%d"`.log   Unfortunately I get this message when that runs:  /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c: line 1: syntax error: unexpected end of file   I have tried escaping the date part in various ways, but without much luck. Is it possible to make this happen in-line in a crontab file or do I need to create a shell script to do this?


Sorry I have an similar question asked before. But I'm a newbie with mysql and I don`t get it.. I don't know how it works.. hope someone can help me again. Thank you!  I have an SQL select, that gives one row back. The SQL update gives the error message 1093 back;     mysqli error: [1093: Table 'ASSET_ASSOCIATION' is specified twice,   both as a target for 'UPDATE' and as a separate source for data]   UPDATE ORG1.ASSET_ASSOCIATION SET ASSOCIATED_ASSET_ID =  ( SELECT ASSET_ID FROM ORG1.HD_TICKET WHERE ID = (<TICKET_IDS>) ) WHERE ASSOCIATED_ASSET_ID =  ( SELECT ASSOCIATED_ASSET_ID FROM ORG1.ASSET_ASSOCIATION WHERE ASSET_FIELD_ID = 11 AND ASSET_ID = (SELECT ID FROM ORG1.ASSET WHERE ASSET.NAME = (SELECT CUSTOM_FIELD_VALUE0 FROM ORG1.HD_TICKET WHERE ID = (<TICKET_IDS>))) OR ASSET_FIELD_ID = 111 AND ASSET_ID = (SELECT ID FROM ORG1.ASSET WHERE ASSET.NAME = (SELECT CUSTOM_FIELD_VALUE0 FROM ORG1.HD_TICKET WHERE ID = (<TICKET_IDS>))) OR ASSET_FIELD_ID = 1111 AND ASSET_ID = (SELECT ID FROM ORG1.ASSET WHERE ASSET.NAME = (SELECT CUSTOM_FIELD_VALUE0 FROM ORG1.HD_TICKET WHERE ID = (<TICKET_IDS>))) )

I have an SQL select, that gives two rows back. The SQL update gives the error message 1093 back;     mysqli error: [1093: Table 'HD_TICKET' is specified twice, both as a   target for 'UPDATE' and as a separate source for data]   update HD_TICKET, HD_STATUS as T5     set HD_TICKET.HD_STATUS_ID = T5.ID,  HD_TICKET.TIME_OPENED  = IF(T5.STATE = 'opened', NOW(), HD_TICKET.TIME_OPENED),  HD_TICKET.TIME_CLOSED  = IF(T5.STATE = 'closed', NOW(), HD_TICKET.TIME_CLOSED),  HD_TICKET.TIME_STALLED = IF(T5.STATE = 'stalled', NOW(), HD_TICKET.TIME_STALLED),  HD_TICKET.SATISFACTION_RATING = IF(T5.STATE = 'closed', NULL, HD_TICKET.SATISFACTION_RATING),  HD_TICKET.SATISFACTION_COMMENT = IF(T5.STATE = 'closed', NULL, HD_TICKET.SATISFACTION_COMMENT),  HD_TICKET.TITLE = (SELECT NAME FROM ORG1.ASSET WHERE ORG1.ASSET.ID = (SELECT ASSET_ID FROM HD_TICKET WHERE HD_TICKET.ID = HD_TICKET.PARENT_ID))   where T5.NAME = 'New' and  HD_TICKET.HD_QUEUE_ID = T5.HD_QUEUE_ID and     (HD_TICKET.ID in (<TICKET_IDS>))   Can anybody help me, please? Thanks!


Help me please!  apt-get install imagemagick:i386 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  imagemagick:i386 : Depends: libmagickcore4:i386 (>= 8:6.6.9.7) but it is not going to be installed                     Depends: libmagickwand4:i386 (>= 8:6.6.9.7) but it is not going to be installed                     Recommends: libmagickcore4-extra:i386 but it is not going to be installed E: Unable to correct problems, you have held broken packages.

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I use the following code to draw a line to connect two nodes in my graphic:  \draw ( p-\prow-\col) -- (p-\row-\col);   At the edge of the figure, however, not every node will have a predecessor from which the line can originate.  What I would like to do is only draw the line conditionally, depending on whether the node ( p-\prow-\col) already exists or not.  I have seen , but the implementation and usage aren't clear to me (and it also seems to be handling the opposite case, executing when the node is undefined).  I'm simply looking for the correct syntax for the command if node is defined: do this

I think I've seen this question before, but I can't find it. The problem is simple; before I assign a name to a node I would like to know if the name is already used.  I think when a node is created \node (name) {label}; some macros are defined from name.


I'm aware there are other similar questions asked previously but I couldn't solve the problem. I have Ubuntu 16.04.6. When I run sudo apt-get update I get the following error. Reading package lists... Done E: Failed to fetch http://iq.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/by-hash/SHA256/80072611fed265613ccc008c0d8d907243709ea50965b11609ba4909e4508617  Hash Sum mismatch E: Failed to fetch http://iq.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-amd64/by-hash/SHA256/458cfcc42fea94019c8f376037a9a6692664122c63c372b80044b891d0e6235d   E: Some index files failed to download. They have been ignored, or old ones used instead.

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


I had submitted a Manuscript in a good journal which has given me the reviews as " Accepted for publication pending revisions"? What does this review actually mean? Is it accepted?   FYI, I have created a response letter in which I have given justification for some concerns and also made the changes that were asked to be made in the figures.  Can anybody please help?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I have a JSON Object   {scope:{results:{...}}}   And I have a String named  "data.one.url"   Now I want to set the value inside the JSON Object. Normally I would do it like this:   scope.results.data.one.url = "hello";   But how to do it when I only have the string mentioned above?

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


I've always wondered if cutting & pasting / removing the file from an OS would be the equivalent of taking proper precautions when deleting a file such as using the rm -rf command.  I DID read here:  that IF you move it via sneakernet that all the OS does is unlink the file thus rendering it useless, the same as (to my understanding) the command rm -rf would do.  I would just like to know, hypothetically speaking, what would be the best, most secure way of removing a file from existence? So far I can only think of shredding it via the dd command, shredding it via bleachbit, rm -rfing it or as I'm super curious to know, using a USB flash drive to physically remove the file.

Recently I accidentally did rm on a set of files and it got me thinking where exactly these files end up?  That is to say, when working with a GUI, deleted files go to the Trash. What's the equivalent for rm and is there a way of undoing an rm command?


I've recently read this post:    tldr; It basically says that the error rate of a RAID system is tied to the hardware, and you need disks with a higher URE to make a RAID more stable.  We run a RAID 5 with these details:   6 x 2TB drives = 10TB useable URE <1 in 10^14 (each drive)   Understanding the article above I would like to check my numbers with someone else   10^14 bits gives me 12,500GB's per chance of a URE 12,500GBs / 10TBs = 1.25   Does that mean If one of my drives fails (lost 2 in the last 3 months) and I replace it, I have a 1 in 1.25 chance of getting a URE on one of my other drives?  I'm no expert so please feel free to tear this one apart and help me learn.  Thanks

A recent issue with a Buffalo TeraStation NAS here in my office has got me investigating Raid 5.  I've found a few different articles talking about the unsuitability of using raid 5 in large arrays, or with large disks  Here is one  that talks about problems with rebuilding an array with large consumer drives.  I'm trying to work out what counts as 'large'?  The NAS we have here is a 4 drive Raid 5 setup, each drive is 1 TB. A drive failed and has been replaced, the array is currently rebuilding.  Does this setup constitute as large, in terms of will likely have a problem during the rebuild?  How reliable is this setup for day to day use?


I seem to have found a minor bug in the formatting of code within comments.  Code that ends in a = followed by a space "consumes" any space after it.  I realize that multiple spaces are automatically removed but in this case I don't think it works quite as intended.  The comment:  code `test = ` tag   Formats as:    I think it should format as it would within a post: code test = tag (With a space between the light gray code area and the word tag.)

In my comment here:    I needed to have a : symbol with a leading space, but I couldn't figure out how to get it.  And for some reason it converts differently in this question to how it would in a comment - as you can see, in the comment box ` :` wasn't turned into code block at all.  Is it impossible, by design, to have leading or trailing space in a codeblock?


I need to select from a table that has two fields , a start date and an end date , selecting the row that the current date is. Look at the image ...how do i select the row that encompasses the date range 91/201 - 9/15/2018 ? Somehow this was flagged as a duplicate. I am NOT attempting to find overlap. I am attempting to find the row that represents a given date. Say , one table has a field that has the value 9/5/2018 ....how do I select the row that has a start date of 9/1/2018 and end date of 9/15/2018

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?  As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2.


I have a names.txt file with with the top line of text being  51 Pipe-line\Closed3\00001011_-_Portfolio\UW\Old\NID50_Future_022814.xlsx   I would like to write new filenames replacing \ with /  I wrote a script.sh and invoked it using sh script.sh. My first attempt...    while read one two three; do    new=$(echo $two|tr '\\' '/')   echo $one   echo $two   echo $three   echo $new  done < ./names.txt     51 Pipe-lineClosed300001011_-_PortfolioUWOldNID50_Future_022814.xlsx  Pipe-lineClosed300001011_-_PortfolioUWOldNID50_Future_022814.xlsx     This ate the / char. I found out passing a -r will show the / so my next attempt was   while read -r one two three; do    new=$(echo $two|tr '\\' '/')   echo $one   echo $two   echo $three   echo $new  done < ./names.txt     51 Pipe-line\Closed3  Pipe-line/Closed3     This eats half the filename. What is happening? How do I get this to work?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


How long will a sauce last for when placed on freezer and in a refrigerator?

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


If I ask bash to echo the -1th argument it prints hb1:  echo $-1 hb1   Why? What is it accessing?

From ,     - (A hyphen.) Expands to the current option flags as specified upon invocation, by the set builtin command, or those set by the shell   itself (such as the -i option).   I am not sure what it says. Can you give some examples for the meaning of a hyphen parameter?


I'm trying to get cron.daily to run just after midnight with the line below     2   0  * * * * ... (the rest is the standard verbiage)   However it is run at  07:36   and claims to be run by anacron (I don't necessarily believe that) What is the scoop,  Oh yeah, my system is in the PST8PDT timexome.

If I place a shell script in /etc/cron.daily/, at what time of the day will it be executed?


This question here asks about where as a subject in relative clauses:      As can be seen from my specific questions at the end (as opposed to the back-story), the specific question here is more fundamental and more general.    I have a Taiwanese friend who asks me for English help with some regularity. I believe I am almost always able to furnish them with the correct answer, but the latest topic is one of which I'm unable to explain the 'why'.   The sentence in question:      The office will be moved to a place which/where is near my apartment.   I said it should be      The office will be moved to a place which is  near my apartment.   (or: a place that is near my apartment ).  My friend asked '"Why? Doesn't where indicate a place?"  Erm, ... yes, but no... I can't explain the why of it, and now I'm really curious. When should we use where and when which or that? Any input will be much appreciated!

I know the "omitting-rules" regarding the relative pronouns who/which/that and whose. How does it work with where and when? In the first sentence I cannot omit where but I can easily omit when in the second sentence. What is the rule?   I saw John in the shop where you bought your brown T-shirt. I met Laura on the day (when) I missed the train to Barcelona.


Fiddle:   I want to get appended inputs' values. But When I try to   $(".isyeri-aralik-btn").on("click",function () {      console.log("clicked");       });   It is not working. I think newly added inputs and buttons are not HTML DOM element.  How can I get min max values from button related to that button?  --   $("#isyeri-aralik").on("click",function () {                 $('
\n' +                     '
\n' +                     '          <input type="text" class="form-control isyeri-min" placeholder="min tl" onkeypress="return isNumberKey(event,this)">\n' +                     '
\n' +                     '
\n' +                     '          <input type="text" class="form-control isyeri-max" placeholder="max tl" onkeypress="return isNumberKey(event,this)">\n' +                     '
\n' +                     '
\n' +                     '          <input type="text" class="form-control isyeri-indirim-orani" placeholder="indirim oranı" onkeypress="return isNumberKey(event,this)">\n' +                     '
\n' +                     '
\n' +                     '          Save\n' +                     '
\n' +                     '
').appendTo($("#isyeri-aralik-container"));             });              $(".isyeri-aralik-btn").on("click",function () {                  /*Get                  isyeri-min,                  isyeri-max,                  isyeri-indirim-orani's                  value when click save button of new appended div */              });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


In 2007 I was in Texas when I fell really sick. I was rushed to hospital because my throat closed up and walked out with a medical bill of $1,200. I had travel insurance but they where being difficult in paying the claim, so I never did. I am travelling to Hawaii in November this year and I am worried that I will not be allowed into the country due to my outstanding bill?

While on vacation in the US last year, my wife and I was in a traffic accident. My wife had to spend more than a week in hospital before we could fly home. Our insurance is covering everything, but we keep receiving more bills in the mail. We are forwarding the bills to our insurance company, who tells us that they are taking care of them, but they are probably not paying them immediately (I expect there are a lot of paperwork involved). We can see that some of the invoices have strange addresses on them and have taken a long time to reach us, so we are a bit worried that there might be others that haven't reached us yet.  Also, since the accident was partly my fault, I received a ticket for careless driving, which I have paid.  We are going back to the US in a few weeks on vacation. Can any of this give us problems in immigration or elsewhere? Is there anything we should do or special papers we should bring?


I want to make a command that will create a new section or subsection (or subsubsection or...) based on its argument.  Why does calling \section and \subsection via \csname not seem to work at all, and how can I fix it?  MWE:  \documentclass{article}  \newcommand{\democmd}[2]{%   \csname #1section \endcsname{#2}% }  \begin{document}  % Doesn't (visibly, at least) make a subsection. \democmd{sub}{Should Make a Section}  % Also does not make a section. \csname section \endcsname{foo}  \end{document}   EDIT: The fixed version is \csname section\endcsname{foo}, no space after section.  But why do some macros, like textbf, work as \csname textbf \endcsname{foo} with the space, whereas others, like section and ref, do not?

I was naively expecting the following code to produce the word "Jimmy" between dashes  but it produces only the dashes (commented out version also). Could someone explain (preferably one syllable words) what I'm missing, please?  \documentclass[10pt]{article}  \usepackage[T1]{fontenc}  \setlength\parindent{0pt}  %  \begin{document}  \expandafter\def\csname v0 \endcsname{Jimmy}  %\expandafter\def\csname v0 \endcsname#1{Jimmy}  -\csname v0\endcsname-  \end{document}


So I just noticed that the avatar on all my posts looks like this:    ... but only for myself. Other people still see my actual avatar. I also see the correct avatar in chat.  How can I entice my avatar to come out of hiding?

For a few days now, I have wondered why my small avatar changed to some "colored blob". I've tried with different browsers, all the same. Found some related questions here at Meta:       But none of the explanations seem to match. Some facts:   I haven't changed either my image nor my mail address for years (so it shouldn't be a caching issue) while the small image resolves to a blob, the big one comes fine URL of the small: https://www.gravatar.com/avatar/e2b29bd68eb03763a0e18c691ecf9fa5?s=32&d=identicon&r=PG URL of the big: https://www.gravatar.com/avatar/e2b29bd68eb03763a0e18c691ecf9fa5?s=328&d=identicon&r=PG   you see they only differ in the s= parameter (size) you see both are using d=identicon instead of d=gravatar (trying the small URL with d=gravatar resolves to the correct image)  My profile image is set to "Gravatar", not to "Identicon"   Any way to get that fixed?


I think that when we throw a body in air, at top point the body is in equilibrium but gravitational force is still acting. Is this correct?

This question has been asked many times all over the Internet and answers can be found on places such as yahoo and ask.com, but I'm not satisfied with those answers and I don't trust the validity of those places.  This seems like a more appropriate place to ask.  So, here's my train of thought and I would like to ask you if you think I'm right or wrong.  Even though most of the answers point to the fact that the ball does not achieve equilibrium because the force of gravity is constantly acting upon it, thus causing an acceleration, I still think there's a moment of equilibrium and here's why:  When the ball is traveling up, it's accelerating towards the ground and eventually reaches a point at which its speed reaches 0.  At this moment, isn't the reason the speed is 0 is due to the fact that net force is 0?  The force that made the ball travel in the upward direction was canceled out by the gravitational force.  So, the sum of forces at that brief moment is equal to 0, otherwise the ball would be moving.  I don't think gravity is the only force acting on the ball at that moment, since the throwing force was acting on it as well, until both canceled each other out for that brief moment.  Am I right or wrong?


When I start Ubuntu must be press s latter twice times to start system:     'an error occurred while mounting /home/aljobory/drive' press S to skip or m to recover

I have just set up my new system by creating three partitions on a whole hard disk (/boot, /home, swap and /). I saw  article and now I am getting those errors and the system provide me with some options: (I to ignore, S to skip mounting or M for manual recovery).   I am forced to choose skip mounting because I don't know what manual recovery is. Despite the error I get I think that the system boots okay because I can use the system but this error is very annoying.


It was announced in October of 2018, that IBM will acquire Red Hat (RHT) for 190 per share. I have shares of RHT. Current price is in the 180 range. What will happen next?  Will my shares be converted to IBM shares? If so, where can I locate the conversion factor? If not, will I eventually "force sell" at 190? Is there any risk to sitting on the shares, or could it potentially fall apart, falling in price, and I should consider selling now?

If a company is bought by another company, does my stock rollover to the new company when it is combined with the new parent company?


In order to use an older version of firefox I followed the suggestion presented . However, after I have unpacked firefox, started is as another user, added an extension and restarted it, its version 58 again. I want to be able to start version 56 instead (before the Quantum update).   $ ls firefox  firefox-56.0b9.tar $ cd firefox/ $ ./firefox --no-remote -P firefox56   start 58 version of firefox. What is going on?   I need to start the 56 version of firefox with the ability to have extensions working for firefox version 56...

What is the most straight forward way to downgrade Firefox 57 to Firefox 56?   This is to have more time to wait for working replacements for legacy extensions.


I've been given an Ubuntu VM to work with. It has no internet connection nor GUI. Actually, it's not supposed to be used directly, but I need some extra libraries on it and I don't know how to install them. My idea is to download the libraries somewhere else, copy them through WinSCP and install them throw PuTTY. This should replace the apt-get install. The problem is that I don't know where to download them. If you know how to do that I would really appreciate. If you have any other idea that can solve this problem it's also fine. Thank you. EDIT: RELEASE DETAILS cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.6 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial  hostnamectl Static hostname: 06e2e468f8c4          Icon name: computer-vm            Chassis: vm         Machine ID: 07e8a1bebd223fc12a4a73e45d72352a            Boot ID: ae8230cd752c4e5f8a4772ebf2ae80a1     Virtualization: oracle   Operating System: Ubuntu 16.04.6 LTS             Kernel: Linux 4.4.0-75-generic       Architecture: x86-64  uname -srm Linux 4.4.0-75-generic x86_64

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


How can I merge objects' properties into an object in Javascript/JQuery ?  I have the following two objects, obj & obj2:  var obj = {    a: '1',    b: '2' }  var obj2 = {    c: '3',    d: '4' }   I would like to merge them into something like this:  var obj = {    a: '1',    b: '2',    c: '3',    d: '4' }   Any help would be greatly appreciated! Thanks!

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


I understand that at the equator, you will have maximum centripetal force acting on you, whereas if you're standing directly on the pole you will have none. But because centripetal is a resultant force, why isn't the value of $g$ GREATER on the equator because you'd need a greater force to 'pull' you inwards to force you to travel in circular motion?

Many sources state that the Earth's gravity is stronger at the poles than the equator for two reasons:   The centrifugal "force" cancels out the gravitational force minimally, more so at the equator than at the poles. The poles are closer to the center due to the equatorial bulge, and thus have a stronger gravitational field.   I understood the first point, but not the second one. Shouldn't the gravitational force at the equator be greater as there is more mass pulling the body perpendicular to the tangent (since there is more mass aligned along this axis)?


Some unfixed bugs or feature requests have had many upvotes for a long time, but are still not implemented. I would like to know is there a way to expedite such implementation.  For ordinary questions on any site you can start a bounty to draw additional attention. But what if you want to see a bug report or feature request  here on Stack Exchange? Per-site metas don't have bounties. Also, while MSE has bounties, as far as I can see SE employees don't want my rep.  Probably if we could start some crowdfunding project, to fund our own community developer, who would make what we want in order to make the SE network better for us. What do you think about it?  Some small bugs are annoying for me; in several cases there are already answers from other users how to implement fixes. There is even the , which offers client-side fixes for over a hundred bugs across the network packaged in a handy user script. The author has specifically given permission for any of those fixes to be incorporated into the SE code base. But neither of these happen and I don't know the reason.  The SE team  that they prefer that even trivial issues be reported, as they are "super easy and trivial to fix".

I posted a question here on Meta Stack Exchange, or on a per-site meta, regarding a bug I found in the system. I got no comments, or a few comments stating that this is a legitimate bug (and not by design). However, it's been quite a long time, and no official response was ever posted there.  Or, I had an idea for a new feature, but realized it's already requested, either by searching or posting a request myself only to have it closed as a duplicate of the existing one. It's been a while since the original request was filed, but no official response has been made.   I'm aware that staff members are , but either my post isn't about one of the indicated topic areas for which they're accepting escalation requests for that month, or I already flagged to request escalation but it was declined, so the instructions there don't apply for my post.  What can I do to draw attention to meta questions for the SE team, so they can give an official response, and possibly implement the bug fix or feature?  Note: This is different from other general questions which ask for how to get attention for unanswered questions, since the procedures on meta sites are different, and getting an official response isn't necessarily the same as getting a good answer.


I incurred an expense in 2015, put it on a credit card, but didn't pay it off until January 2016, can I count that as an expense for 2015?

If I paid my business expenses with a credit card during the month of December, which year can I deduct them from my taxes? 2011 (when the purchase was made) or 2012 (when I paid off the credit card)?  IRS pub reference greatly appreciated


I want to build very easy circuit to change -10;10V sine wave to 0;3.3 for ADC in my MCU. I know that I must  reduce the amplitude and change offset.   This circuit would be perfect (Output: 0-3,33V), but I have only 3,3V source (from MCU) and I made another circuit (in which I have output: 0,04-2,83V):    What should I change in second circuit to have output (0-3,3V) like in first circuit? Maybe voltage stabilizer diode or op-amp? Thanks   For those who would searching the same info to their project: I chose first circuit from this post.  I changed R11 to 110K and R12 to 22K,  In place of 2V source I put 2V voltage stabilizer (Sanyo LA5002) (between the 3.3V MCU output and R11). And it work great :)

I want to build a very simple voltmeter using ATMEGA328 ADC. I can successfully measure up to 20v (using a voltage divider), but the problem is, I don't understand how to measure the voltage properly, if negative and positive terminals are switched.   Only way I could think of is adding another ADC input which is responsible for measuring the 'inverted voltage'. The join both ADC inputs, but add diodes in between, so one channel works with (+-) and the other channel works with (-+) and then 'merge' the input from both channels using code. Then I should be able to measure things like sin wave for example (where polarities switch).   Is the concept correct or is there a better way to do this? Thanks!


I am trying to check all checkbox but its not working.    <apex:includeScript value="//code.jquery.com/jquery-3.2.1.min.js" /> <apex:includeScript value="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js" /> <apex:includeScript value="{!URLFOR($Resource.Others,'/Others/JQuery_File/jquery-2.2.4.min.js')}" /> <apex:slds />    <apex:form>

          <apex:commandButton id="myButton" styleClass="slds-button slds-button--brand" value="Select All " />

                                                              <input type="checkbox" name="options" id="PDCheck" checked="" />                                                                                Draphic

                                                              <input type="checkbox" name="options" id="PICheck" checked="" />                                                                                Insurence

 </apex:form>

I have custom fields in contacts form named checkbox1__c, checkbox11__c, checkbox12__c, checkbox13__c.  When I check checkbox1__c then I want checkbox11__c,  checkbox12__c,  checkbox13__c to be unchecked.  When I unchecked checkbox1__c then I want checkbox11__c, checkbox12__c, checkbox13__c to be checked.  Is there any way to do this by using validation-rules? If not no way to this by validation-rules, then what is the best way to do this?


Hi I'm learning android development with an Udacity course, i'm getting an error on trying to add a child view to an LinearLayout. Following are the xml file and the class files for the activity  Please help  the error i get is                                                                           Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference  numbers_activity.xml      <?xml version="1.0" encoding="utf-8"?>     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"             xmlns:app="http://schemas.android.com/apk/res-auto"             xmlns:tools="http://schemas.android.com/tools"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:orientation="vertical"             android:id="@+id/rootView"             tools:context="com.example.android.miwok.NumbersActivity">       </LinearLayout>   NumversActivity.java      package com.example.android.miwok;      import android.support.v7.app.AppCompatActivity;     import android.os.Bundle;     import android.util.Log;     import android.widget.LinearLayout;     import android.widget.TextView;      import java.util.ArrayList;      public class NumbersActivity extends AppCompatActivity {              @Override             protected void onCreate(Bundle savedInstanceState) {                     super.onCreate(savedInstanceState);                     setContentView(R.layout.activity_phrases);                      ArrayList<String> words = new ArrayList<String>();                     words.add("one");                     words.add("two");                     words.add("three");                     words.add("four");                     words.add("five");                     words.add("six");                     words.add("seven");                     words.add("eight");                     words.add("nine");                     words.add("ten");                      LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);                      TextView wordView = new TextView(this);                     wordView.setText(words.get(1));                     rootView.addView(wordView);              }     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am a new Ubuntu user. I just installed 12.04. To get Chrome on the Launcher, I clicked the BFB and searched for Chrome, then dragged that icon to the Launcher. However, when I run Chrome, it creates a second icon for the running chrome. Creating a second window creates a second triangle under the second Chrome icon, with the first icon not doing anything. It is also apparently not locked to the launcher and I can't remove it. Does anybody know how to remove the first icon? I have locked the second icon to the launcher and it seems to be working fine, but I don't want two icons.

When I open Google Chrome on Ubuntu 14.04, it opens a new window on a different launcher icon (I have Chrome in my Launcher pinned) and the title of the window is a tab that I don't have open any more. I have uninstalled and reinstalled Google Chrome.


I want to use a system user to separate permissions when I run nodejs scripts.  I created node-user:  sudo useradd -r -m node-user   Then I expected that next command login me in shell node-user:  sudo -u node-user -s   But seems that it's uses my var environment:  node-user@host:~$ echo $HOME > /home/me   Why? On CentOS 7 it's print /home/node-user.  I know that I can to set password for node-user and login like this:  su - node-user   But for me it's not logical, because node-user it's system user and may not have a password.

In Ubuntu releases prior to Ubuntu 19.10 Eoan Ermine, when I run a command with sudo, that command receives my home directory in the $HOME environment variable. This is the behavior I have long expected and . If I want sudo to reset the $HOME environment variable, so that it refers to the target user's home directory instead of my own, I have to pass the -H option (or -i, though that does more).    ek@Kip:~$ lsb_release -d Description:    Ubuntu 18.04.3 LTS ek@Kip:~$ sudo printenv HOME  # Shows ek's home, not root's. /home/ek ek@Kip:~$ sudo -u as printenv HOME  # Shows ek's home, not as's. /home/ek ek@Kip:~$ sudo -H printenv HOME  # Shows root's home. /root ek@Kip:~$ sudo -Hu as printenv HOME  # Shows as's home. /home/as   When I first upgraded to Ubuntu 19.10, I was surprised to discover that sudo seems to reset $HOME no matter what! I continue to observe this now that 19.10 is released and I've installed updates--both on newly installed systems and one I upgraded to 19.10.  ek@Cord:~$ lsb_release -d Description:    Ubuntu 19.10 ek@Cord:~$ sudo printenv HOME  # Shows root's home, even without -H or -i. /root ek@Cord:~$ sudo -u as printenv HOME  # Shows as's home, even without -H or -i. /home/as ek@Cord:~$ sudo -H printenv HOME  # Also shows root's home. /root ek@Cord:~$ sudo -Hu as printenv HOME  # Also shows as's home. /home/as   I thought this might be due to .  But I checked, and always_set_home does not appear in any Defaults line in my 19.10 /etc/sudoers file.  What makes sudo treat $HOME differently starting in 19.10, and why was this change made? Does this make it safe to use plain sudo in cases where I would previously have used sudo -H?


I am very new in C# and I have a doubt.  In an application on which I am working I found something like it in the code:  if (!String.IsNullOrEmpty(u.nome))   This code simply check if the nome field of the u object is not an empty\null string.  Ok this is very clear for me, but what can I do to check it if a field is not a string but is DateTime object?

Is there an easy way within C# to check to see if a DateTime instance has been assigned a value or not?


Let topological space $X$ and $f:X \to C$. Show that the space   $$X_{f}=\{g \in C(X) \mid \sup|g-f|<\infty\}$$  is a complete metric space with distance function   $$d(g_1,g_2)=\sup_{x \in X}|g_1(x)-g_2(x)|.$$  Can anyone help me to show this?

I have lecture notes with the claim $(C_b(X), \|\cdot\|_\infty)$, the space of bounded continuous functions with the sup norm is complete.  The lecturer then proved two things, (i) that $f(x) = \lim f_n (x)$ is bounded and (ii) that $\lim f_n \in \mathbb{R}$.  I don't understand why it's not enough that $f$ is bounded. I think the limit of a sequence of continuous functions is continuous and then if $f$ is bounded, it's in $C_b(X)$. So what is this $\lim f_n \in \mathbb{R}$ about? Many thanks for your help.


In the middle of  an alien ship is detected on long-range sensors. Worf says, that it travels with Warp 9.72 on interception course and it will take 10.53 hours to meet it.  We don't know the exact relativistic speed equivalent of Warp 9.72, but , that it is more than Warp 9, i.e. more than 1516.381 c. This speed (according to ) allowed to travel 4.152 light years in 24 hours. (4.152 / 24) * 10.53 = 1.82169 light years of estimated distance between Enterprise and that alien ship. And yet, Worf was ordered to try to hail them.  Is it really possible (in StarTrek franchise) to estabilish audio communication and "talk" to a ship, that is nearly two light years ahead and travels more than 1500 times faster than light speed?

mentions there to be a definite upper limit as to the speed of Subspace Communications. Is the reason for this ever touched on in any of the Star Trek media (Canon or not) or is it "speed of plot"? This  would suggest speed of plot but I'm curious what would provide an upper limit if light doesn't?


There is SQLException java.lang.NullPointerException when moveToInsertRow() method called.  rsStock.moveToInsertRow();  rsStock.updateInt(1, 1);  rsStock.updateInt(2, 1);  rsStock.insertRow();  rsStock.moveToCurrentRow();


I am using ubuntu 16.04 in my Dell laptop and since some time I am getting an error message   E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/dep11/Components-amd64.yml  Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_restricted_dep11_Components-amd64.yml.gz - open (13: Permission denied) [IP: 91.189.88.162 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   while updating using command sudo apt update. I don't know exactly why this is happening. please help me in solving this issue.

For the last week or more, running sudo apt-get update culminates in error:  Reading package lists... Done E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/xenial/main/dep11/Components-amd64.yml   Could not open file /var/lib/apt/lists/partial/au.archive.ubuntu.com_ubuntu_dists_xenial_main_dep11_Components-amd64.yml.gz - open (13: Permission denied) [IP: 202.158.214.106 80] E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/dep11/icons-64x64.tar  Could not open file /var/lib/apt/lists/partial/au.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_dep11_icons-64x64.tar.gz - open (13: Permission denied) [IP: 202.158.214.106 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   Entering either of the 2 specified urls into a browser address bar results in a 'File not found' (404) error - but if I append .gz to both addresses, then the respective files can be downloaded.  However, having downloaded the 2 files, I then don't know how (or if) I can utilize them.  Seeking advice on how best to proceed.


I've a set of files named in the following manner:  _9978967868768763ghjgj7598983678hjva_week1-6.pdf _78637832bdsjh275637bkkaww786b_week12-32.pdf 8786767867868978713bkwkhjhkjqw_week1-622.pdf 867813567bdjsbgbadsyu6712353125561235_week100-6.pdf   I'm intersted in making use of  utility to obtain names:   week1-6.pdf  week12-32.pdf  week1-622.pdf  week100-6.pdf   The regex to achieve that could be be:  (.*)(week.*)   which works fine :    Question  How do I translate this syntax into rename's expression of format:  s/expr1/expr2/[gi]   In effect, I want to delete first group.  Notes  I'm not interested in using mv or sed-based solution. I want to use rename  utility only.


I need some help regarding the random wire selector, what would be a good way to store/select the values?  import random  wires = ["yellow", "blue", "green"] # need some help making this random wire selector bomb = random wire neutral = random wire diffuse = random wire # bomb, neutral, diffuse can't be equal

Assume I have the following list:  foo = ['a', 'b', 'c', 'd', 'e']   What is the simplest way to retrieve an item at random from this list?


I have a problem, I looked for it on google, couldn't find it.  $result = mysqli_query($link,"SELECT * FROM  update ");   Error  Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in   When I change the query to:  $result = mysqli_query($link,"SELECT * FROM  `update` ");   It works. Why is that?

For example, mysql quote table name using   SELECT * FROM `table_name`;   notice the `   Does other database ever use different char to quote their table name


Working in DirectX (with DirectXMath objects): If I have the rotation of an object relative to some coordinate space as quaternion Q, and I have a transformation matrix tx from that coordinate space to world space, how do I find the rotation of my object in world space?  My thinking, which has proven inaccurate, was: Use XMMatrixDecompose on tx to get the orientation that is the rotation difference between world space and my local coordinate space (qLocalToWorld), invert it to get the rotation of the local coordinate system relative to the world (qWorldToLocal) and combine it with my local rotation Q.  XMVECTOR scale, qLocalToWorld, translation; XMMatrixDecompose(&scale, &qLocalToWorld, &translation, tx); auto qWorldToLocal = XMQuaternionInverse(qLocalToWorld); auto worldOrientation = q * qWorldToLocal;   I figured for e.g. that if the local coordinate system was rotated 90 degrees with respect to the world, and my object was 5 degrees with respect to local, this would yield the 90 + 5 = 95 in world space. But I was wrong :(   I'd appreciate help in understanding the right way to do this. Thanks in advance!

OSVR has a right-handed system: x is right, y is up, z is near.  I need to convert orientation data from a sensor in OSVR to a different right-handed system in which x is forward, y is left, and z is up.  I need to calculate the transformation that will convert a quaternion from one system to the other.  I naively tried:  void osvrPoseCallback(const geometry_msgs::PoseStampedConstPtr &msg) { // osvr to ros     geometry_msgs::PoseStamped outputMsg;      outputMsg.header = msg->header;     outputMsg.pose.orientation.x = msg->pose.orientation.y;     outputMsg.pose.orientation.y = msg->pose.orientation.z;     outputMsg.pose.orientation.z = msg->pose.orientation.x;     outputMsg.pose.orientation.w = msg->pose.orientation.w;      osvrPosePub.publish(outputMsg);     ros::spinOnce(); }   But that made things really weird. Facing north pitch is pitch, facing west, pitch is yaw, facing south, pitch is negative pitch...  How can I convert my OSVR quaternion to the a corresponding quaternion in the new coordinate system?


At my office when referring to customers or external vendors I often use the word gentleman. I do this in effort to show that I’m speaking respectfully about them so the content and tone of my statement is less likely to be mistaken. For example, “I spoke with the gentleman about the issue he was having and it turned out he forgot to turn his computer on.”  However, when the subject is a female the use of the word lady doesn’t seem to project the same level of intended respect.  Is there an alternative female or gender neutral word that I could use in these cases?

For males, it's gentleman; and for females?


I want to hide a certain application (in this case Chrome) from the taskbar in Windows 7 64-bit but keep the window visible (the window is running permanently visible on a 2nd monitor and I don't want to be bothered by the taskbar icon all the time.).   Anyone did manage to do this somehow?  This is not a duplicate. Please read carefully. The mentioned duplicate topic does not solve the issue (keeping the window still visible). That is why I asked this question, again.

Is there a way to "hide" a normal windowed application in Windows?  I'm looking for something that removes it from the taskbar and possibly puts an icon in the system tray instead.


If you had been my child, I would have demanded that such an irresponsible teacher be fired.   It is the subjunctive mood, I suppose. Why every verb in the sentence in the past, but be is in the present?

It was recommended that the international development partners develop guidelines or a roadmap to help countries take the necessary steps to select the right tool for their purposes.   Why is it using present tense "develop" in the sentence which is actually a past tense "It was recommended"?


I want to convert an object into a byte array and convert that array back into an object. Everything works fine, besides that the method which converts the array back into an object doesn't print the right object out. public static List<Person> list_interviewees;     main {          list_interviewees = new ArrayList<Person>();         Person p = new Person();         p.setAge(20);         p.setDegree("bhd");         p.setLastJob("asd");         p.setLastName("Test");         p.setName("Tester");         list_interviewees.add(p);         Person p2 = new Person();         p2.setAge(20);         p2.setDegree("bhd");         p2.setLastJob("asd");         p2.setLastName("QWEQW");         p2.setName("ASAD");         list_interviewees.add(p2);         transferBytes();         }      public static void sendBytes(byte[] b) {         System.out                 .println("++++++ This method simulates sending information to other site and reads the data");         System.out.println("Received bytes" + b);         System.out.println("Total bytes" + b.length);          Person p = null;          try (ByteArrayInputStream bis = new ByteArrayInputStream(b);                 ObjectInputStream in = new ObjectInputStream(bis);) {             p = (Person) in.readObject();             System.out.println(p.getName() + " " + p.getLastName());         } catch (IOException e) {             e.printStackTrace();         } catch (ClassNotFoundException e) {             e.printStackTrace();         }      }      public static void transferBytes() {          try (ByteArrayOutputStream bos = new ByteArrayOutputStream();                 ObjectOutputStream out = new ObjectOutputStream(bos);) {              for (Person p : list_interviewees) {                                  out.writeObject(p);                 sendBytes(bos.toByteArray());             }          } catch (IOException e) {             e.printStackTrace();         }      }  If I run the code above I get the output  ++++++ This method simulates sending information to other site and reads the data Received bytes[B@4aa298b7 Total bytes158 Tester Test ++++++ This method simulates sending information to other site and reads the data Received bytes[B@4554617c Total bytes195 Tester Test  Why do I get the name Tester Test twice there? I checked the person which is send through the debugger, it is the correct one, so why does the sendBytes method receive the wrong array?.

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I've gone and accidentally scratched the paint off my wall. It annoys me. The scratch isn't big, but if I can see it I'm sure everyone can see it. Is there an easy way to fix this chip/scratch without having to sand and repainted the entire wall again. The scratch is tiny... but my OCD is getting the better of me and my eye twitch is getting larger the more I look at it.

I'm not sure exactly with what I've bumped my wall and caused this this:    Is there anything that can be done to fix this without repainting the entire room?  I've been reading around a bit, and not sure exactly what to call this, hence the weird question title.  The paint is a beige-ish colour, not exactly white. The hole is about 2 x 1.5 cm in size.   I've read a bit about spackling paste, though I understand that's for small cracks and holes.  Here are some picture with a better resolution:  and   Unfortunately, I don't have much experience with this sort of thing. Help please.  Also, this is in the UK, so you can tell what stores I might have access to for materials.


In one oven I need to bake 2 dishes: one needs 35 minutes at 375ºF, and the other needs 45 minutes at 350ºF.  How much time should the second dish cook at 375ºF?

I'm cooking two different dishes in the oven at the same time that each require different temperatures. One is a roasted vegetable dish that says to cook at 475 for 35-40 minutes and the other is parmesan crusted pork chops at 350 for 40-45 minutes. What do you suggest I do?


I am making a small programme, part of which iterates over an arraylist sorting the different competitors into a map depending on abilty of each competitor in the array list. It seems to work apart from one problem. The first if statement is not working. Any competitor classed as beginer is not sorted into beginerResults, but instead standardResults. The others are working fine however. Any suggestions?    public void sort()   {     for (Golfer rating : competitors)     {        if (competitors.getScore()== "beginer")       {         beginerResults.put(competitor.getName());         }       if (competitors.getScore()== "Intermediate")       {         intermediateResults.put(competitor.getName());         }       else       {         expertResults.put(age.getName());       }     }   }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


In a hypothetical situation,say I have a sound box with a very large volume and let's say it is placed pretty far away from me. If it travels towards me at a speed higher than that of sound in the same medium, air for instance, then will I hear the song playing backwards?  according to the equation  f' = [v+vo/v+vs]f where all symbols have their usual meaning , I get a negative f` for vs>v . What does a negative frequency indicate? I understand a similar question has been asked however the answers didn't satisfy me. I still believe that before the first pulse reaches the observer , the second pulse is created and so on until the observer hears the 'n'th pulse and then the pulses preceding it.

Consider a supersonic plane (mach 2) aproaching a stationary sound source (e.g a fog horn on a boat).  If I understand it correctly, the passengers in the plane can hear the sound twice. First at a 3 times higher frequency, and then (after they passed the source) a second time at normal frequency but backwards. None of the textbooks or web sites mention this backwards sound. Yet I am quite sure it must be there.  Am I correct? And if so, is it actually observed (e.g. By fighter pilots) and why do textbooks never mention this?


Apparently, there is an advantage to having 6 legs in the insect world. What is that advantage, if anything? Why would such an advantage exist for insects, but not for other, larger land animals?  What do those middle legs do that the front and hind legs cannot, if anything? Are they really essential, or do they just generate more muscle power?

If a trait would be advantageous to an organism then why hasn't it evolved yet?  Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist?  In other words why does evolution not make the organism more "perfect"?    This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific.   Read this meta post for more information:


I have Macbook Pro Retina with Mavericks. Somehow I uninstalled iBooks. How can I re-install it? I tried Google but did not help.

So I accidently removed iBooks from my installation. Is it possible to reinstall that app again without reinstalling Mavericks?  If so, how?