How to evaluate Ternary string expression and identify value

value = 14000;  ternary string expression is "value > 20000 ? 200 :  value > 15000 && value < 19999 ? 150 : 100 "  Ans should be 100  Is there any ways to evaluate expression?


What is the difference between protected internal static and internal static in C#?

In my C# assembly "Abc", I have the following class and static method:  internal class Xyz {     protected internal static void MakeAwesome()     {         ...            } }   I noticed I can access this static method from anywhere in my assembly code. However, removing the "protected" from it seems to yield the same results:  internal class Xyz {     internal static void MakeAwesome()     {         ...            } }   Is the "protected" here making no difference because it's a static method? Or is it restricting something I overlooked?


Formatting is all screwed up on MySQL record when pulling with nl2br

Take a look here:   It is adding weird diamond like shapes and removing formatted text like  from the original body. The database uses UTF8 and I am using nl2br in PHP to pull the record. Any suggestions on how to fix it?  EDIT:  Using this code here:    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">   Seems to have fixed the weird formatting, but the website is still not showing anything in between  such as  that is in the text. Any thoughts on how to repair that then? I am assuming this is caused by the nl2br perhaps?


can we use <? insted of <?php for start of php file, if not what is the use <? at start of php

Currently i am working with an boonex dolphin project inside the project soruce code many of the php file starts with <? instead of <?php  also i found out that in many of statements it used another statement like<?= $start ?>  <?= $str ?>


do-release-upgrade (trying to upgrade from 13.10 to 14.04) fails with this message:  [...] Calculating the changes  Could not determine the upgrade  An unresolvable problem occurred while calculating the upgrade.  This can be caused by: * Upgrading to a pre-release version of Ubuntu * Running the current pre-release version of Ubuntu * Unofficial software packages not provided by Ubuntu  If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.   Restoring original system state [...]   What can I do to fix it? Is it because of google-chrome? If so, how do I fix that?    I ran sudo apt-get remove xserver-xorg-video-all, which seems to have fixed it.


Let P be a prime ideal in a commutative ring R and let S = R\P, i.e. the complement of P in R. Pick out the true statements: (a) S is closed under addition. (b) S is closed under multiplication. (c) S is closed under addition and multiplication


Managed package API URL is different then unmanaged package?

After my app is granted an OAuth token by the user, I take the "url" provided in the OAuth request, and the token, and make a request back to salesforce to store some settings.  In my unmanaged package testing the url looked something like this:    And this domain matched the domain in salesforce while the user was using the app.  Now that I uploaded a *Managed package though, it seems to be different. The URL in Salesforce looks like this    and the POST request to  is returning a 404   Is this expected? Do I need to append the app namespace to my API requests to the custom REST endpoint? Or is the namespace optional and can I just omit it when creating the managed package?


Monic $f(x)\in\Bbb Z[x]$ has no rational root if $f(0)\ \&\ f(1)$ odd [Parity Root Test, Modular Root Test]

A polynomial problem from my old algebra textbook:     $f(x)\in\Bbb Z[x]$ with leading coefficient $1$, $\deg f(x)\ge 1$, and both $f(0)$ and $f(1)$ are odd numbers, prove:   $f(x)$ has no root within $\Bbb Q$   Eisenstein's criterion seems to be of little help here because we know virtually nothing about the coefficients. So I tried some other approach. Let $$f(x)=a_0+a_1x+a_2x^2+\cdots+a_{n-1}x^{n-1}+x^n\in \Bbb{Z}[x]$$ What we have known so far is $$f(0)=a_0\text{ is an odd number}$$ and $$f(1)=a_0+a_1+a_2+\cdots+a_{n-1}+1 \text{ is an odd number}$$ from which we can also conclude that $$f(1)-f(0)=a_1+a_2+\cdots+a_{n-1}+1\text{ is an even number}$$ To be honest I don't know how to proceed now. It isn't until just now that I realized "irreduicible" is not equivalent to "has no roots".. So all my previous attempt is fundamentally wrong.. Can anybody help or drop a hint? Best regards!


Would a Nazgûl in possession of the One Ring seek to use it?

All who came to possess the One Ring after Sauron, who possessed ambition for great deeds (basically not hobbits) have sought to master the Ring and use its power to serve their cause. Few, such as Galadriel, have successfully resisted the Ring's overpowering will and temptation.  Considering the Ring's description above, what will happen if a Nazgûl successfully retrieves the One Ring? Will he truly return it to Sauron obediently? Or will he, like all who possess a greed for power, be driven to keep, master and control the One Ring, his already-feeble will utterly unable to resist such temptation?


Clone permissions for all files in a folder

I have a question. So I have 2 folders, both of which have the same files in them, but some with different content, but the same names. What I want to do is clone all of the file permissions from one folder, into the permissions for another folder. Is this possible?


I need to prove that if $A,B,C,D$ are sets, $(A \times B) \cap (C \times D)=(A \times D) \cap (C \times B)$  I am trying to show that if for all $x,y$ in LHS, it is also an element of RHS.   $(x,y) \in (A \times B) \cap (C \times D) \iff$ $(x,y) \in (A \times B)$ and $(x,y) \in (C \times D)$  $\iff x \in A, y \in B$ and $x \in C, y \in D$  $\iff x \in A, y \in D$ and $x \in C, y \in B$    (Am I allowed to change the order of $y$ as above?) and if so, what law allows me to do that?.


Do I need to include a squared and linear variable in a random forest to achieve a parabolic effect?

I'm using a random forest model. One of my independent variables almost certainly has a parabolic effect on the dependent variable. In a linear regression, I would include the variable as both linear and squared in order to capture this effect. Should I do the same in a random forest?  By extension, same question for variables that have logistic effects (age, for example): should I do the logistic transformation before including it into the random forest?


As far the definition goes emf of  is basically potential difference. It even has dimensions of potential. Then why is  it called a force?


Is there a way to show progress when copying/moving files using the command line?

sometimes with large files it takes a while and some sort of progress bar to know that its still working would be nice.


How to edit mp3 artists property in the terminal

So I know I can edit the mp3 song properties in rhythmbox. However, it very time consuming to do this via the GTK+ interface. So I was hoping there was a way to do it in the terminal. I look at the rhythmbox --help, however I don’t see a any options that could help. Does anyone know how I can do this in the terminal. Third party software is an acceptable answer in my book.


Word used to designate a group of sub-terms

Example:  I have the words red, blue, yellow, green. The term enclosing all those words would be "color".  For computer, phone, laptop, that word may be electronic devices.   On top of most words, you have the word "thing".  In short, what do you call a word enclosing a specific group of words?  Right now, I am searching for a word enclosing words such as "beehive", "birdbox", and other spaces humans created for animals to live in, most often as a product.  Thanks.


Principal Component Analysis handled multicolinearity in data

How principal component analysis handled high multicolinearity in data set?


Integration by change of variable $\iint (x+y) \, dx \, dy$

I am not really sure how to tackle this one. Any help is appreciated!  By using the change of variable $u=x+y$ , $v=x$ evaluate $$\iint_{Ta} (x+y) \, dx \, dy$$ where $Ta$ is the region in the $xy$ plane bounded by the $x$ and $y$ axes and the line $x+y = a$.  Update: I have since worked out the Jackobian = -1 so am now onto: $$\iint_{Ta} (x+y) \, dx \, dy$$ $$=\iint_{Ta} (v+u-v) \, du \, dv$$ since $x=v$ and $y=u-v$, so $$\iint_{Ta} u \, du \, dv$$ I am still struggling with what to put as the limits though!


An exponential equation over positive real numbers $4^x+14^x+3^x=11^x+10^x$

Solve the following equation over the positive reals: $$4^x+14^x+3^x=11^x+10^x.$$  By inspecting the graph, the solutions must be $x \in \{1,2\}$  I tried using inequalities like $3^x+4^x<5^x$ for $x>2$ but I couldn’t work it forward. Thanks in advance!


Solving a homogeneous recurrence relation

How to solve $$a_n=4a_{n-1}-4a_{n-2}$$ $a_0=6$ and $a_1=8$    I found first few terms as $$6,8,8,0,...  $$ But I don't know how to proceed.


Can I install PS3 games on an external hard drive?

I have a PS3 Super Slim with 12 GB of flash. I need to expand its storage to install games.  On the net, I found contrasting opinions: I know I need a disk formatted in FAT32, but I don't understand if I can install games on it or if I can only store saves and multimedia on it.  In case I have to install an internal drive, do I need something to place it in? Some type of box?


I've installed texlive-latex-extra. When I try to use tlmgr, for example: sudo tlmgr update --all tlmgr update --all I allways get the same error message: /usr/bin/tlmgr: unexpected return value from verify_checksum: -5


I am having trouble designing a schema in which there are two models an employee and projects. I am storing employees details in a table structure as:  id | employee | report_to   wherein employee table store the employee id and report_to store the id of the employee to whom the employee reports.  I have another table in which we store diff projects created by employees.  Id | project_name | employee_id   Now if I need to get projects done by employees who report to me I can easily get the list and also get the projects.  But the concern is eventually over time the employee reporting manager changes and hence along with that all the project that falls under let's say project manager 'a' also changes.   How to handle this kind of a problem in database. can this be designed in such a manner so that the projects which were initiated during that time remains under that particular manager only?


No instance of overloaded function ".erase" matches the argument list

The error is "No Instance of overloaded function ... matches the argument list" I understand that i give wrong argument to the erase function, but i do not know  how to fix that      void Folder::DeleteFolder(Folder* folder)     {      for(int i = 0; i> (this->Folder::GetFolders().size());i++)      {           if(this->Folder::GetFolders()[i]==folder)           {              //The problem occures on the next line              this->Folder::GetFolders().erase(this->Folder::GetFolders()[i]);              break;           }      }      }     //here is the method GetFolders    std::vector<Folder*>& Folder::GetFolders()    {      return this->listOfFolders;    }


If the Universe is expanding, how is that galaxies run into each other?

As the title says. If everything is moving outward, thrown by the Big Bang, how could two Galaxies end up with velocity vectors that run them into each other?


Warning message overfull \hbox what does it mean?

When I run my latex the document is set, but it takes a long time and I have lots of warnings like this:     Overfull \hbox (4.0pt too wide) has occurred while \output is active   What does this mean?


My Stack Overflow consecutive days have been reset to 1

I see there are lots of posts about this in the past, but I wasn't able to find any recent ones (it may be my failure at searching).  I've been visiting every day to work up to the Fanatic badge. I'm not just loading my account page, but I'm also clicking around, viewing some questions, and sometimes answers a few.   I was on Stack Overflow yesterday (the 31st) and saw that my consecutive days had dropped to 1, even though the consecutive days calendar showed that I had been active every day for the last eight days. I even posted answers on the 31st (), but it's not showing that I was active on that day.  What can I do to resolve this?


I'm interesting on consecutive prime power numbers. I see that there is the Mersenne primes and the Fermat Primes that give solutions and $(8,9)$. In Sloane collection it is referred on A006549 and it is written:      David W. Wilson and Eric Rains found a simple proof that in this case of Catalan's conjecture either n or n+1 must be a power of 2 and the other number must be a prime, except for n=8.   But I can't find this proof on the web (and I don't find it myself...).  I tried the first case. I get a proof for $2^k+1=3^q$, but found it complicated. If someone has something simple?  Simple: I see that it's enough to consider the case $(2^k, q^n)$ because... ok it's clear  I see that it's enough to show that $2^k=-1$ mod $q$ or $q^2$ is impossible. But for exemple that give nothing for $2^k+1=5^q$ because $2$ is primite modulo $5$ and $25$ and so modulo all the $5^q$.


I have a requirement to hide custom button when condition is satisfied.On case I have person_role field.If the field is null then I need to hide custom button on vf page.  <apex:commandButton value="Confirm" action="{!Confirm}" />  if(case.Person_Role__c==NULL){           ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO,'order cannot be created'));   Any help


If you're quick, you can earn two review 'points' for one review

I appear to have earned a 'point' for a single review in two queues, by flicking quickly between queues:    and...    I don't mind much really, but this seems incorrect.


Why can an ability resolve even if I exiled the creature it came from?

I just started learning magic a week ago and I've been playing duels of the planeswalkers 2014 to kind of get a hang of things.  I'm confused with something that has happened twice now. I'm playing against a campaign deck with a  which has an activated ability that says:     {T}: Goblin Fireslinger deals 1 damage to target player.   So this gets cast while I have the instant  in my hand, which "Exile(s) target creature." So I cast that.  Now it is my understanding with the way the stack works that once the GF uses its ability and then I follow it up with the Exile, the exile is resolved first so the GF should be exiled before it can resolve. And that's what the game does, but it still resolves the GF's ability while that card is exiled and deals me one damage.  I tried looking for why this could have happened, but I haven't been able to find an answer myself. I can't find anything that says an exiled spell still casts... I'm just confused about the way this works.


A word that describes when, in speech, you intentionally use the opposite word. (ex. bad for something really good)

I remember when i was growing up we had many slang methods of describing things using the opposite terms. It wasn't always as simple as saying "bad" for something "good," but it seemed to be an expansion and variation on that.   Here are some examples:  "My mom made a cake for my birthday, and it was so crappy"  "Man, this test is great."  "Did you see her win the 50 yard dash? she's slow."  Is there a word for this?


Website hacked and redirected with 1700 spam backlinks

Ok, so here is the deal. I have a client that got a website with me. But before he did one day he was hacked and his website had about 120 links and in the middle of december his site all the sudden had 1700 links. When you would put in his company name in google search his site would come up but when you click it in google search it would take you to Dr. Dre Headphones website. Now he has 1700 links that we see are crap links. I understand the "disavow" process but he doesn't have that kind of money to pay me to go and send a email to all the links and ask them to remove the link. He was in really good standing on google local but not since this happened. There has to be something that can be done within reason. He did nothing to deserve this and he is just a small Biz man. Please Help.


Can I enter Czech Republic with Schengen visa issued by Greece?

I am an Indian passport holder. Can I enter Czech republic with Schengen visa issued by Greece? Are there any additional formalities/documentation required for the same?


I am doing something simple with tikz, but code keeps not compiling. I would like to have something like this:   \foreach \x in {0,...,4}     \foreach \y in {0,...,4}      \ifthenelse{mod(\x, 2)=0 \AND \y=3 }{   \node (\x\y) at (1.5*\x,1.5*\y) { $e^{l+1}_{1}$ };} {};    What is correct tikz syntax for this?


So I am having this weird issue with Ubuntu. When I open my laptop back up and resume Ubuntu, my normal desktop image is replaced by a white image with what looks like different colored pixels are sprinkled all over the white background.     Then the windows and any type of mouse hover actions, it creates almost the same image for its border. I painted the background purple so the border sticks out a little better.     Before anyone marks this as a duplicate, I have tried the following solutions:   - I tried installing nvidia-367 and nvidida-375 - this one just points back to the first bullets solution.  - This has the exact same answer as the first on as well - not the same problem   I have also updated everything within the Ubuntu Software and within the command line apt-get.  So those solutions didn't help. Most of them are pretty much the same exact solution and it still doesn't work. The only way I can get them to stop, is to restart the computer. Are there any other suggestions for me to try? I'm still pretty new to Linux. So please explain what everything does.   My processor: Intel® Core™ i7-6700HQ CPU @ 2.60GHz × 8  My GPU: Nvidia GeForce GTX 980M/PCIe/SSE2  OS Type: 64-bit  Ubuntu Version: 16.10  Update  I tried compiz --replace and that appeared to work for the window borders but not the desktop. Also it locked up my Terminal and I tried to close it and it locked up my computer.


On my visitor visa to the UK application form,the question “have they always had the same nationality?”which is under parent details  I put No instead of Yes..and I have already paid and submitted my application but I haven’t been to the embassy..what can I do please advice ..and I plan on going to travel alone and not with any parent of mine


I have a problem while starting ubuntu,  When I start my laptop this appears on my screen  What should I do?


Why don't applications opened as root use global menu?

Why do applications like synaptic (and other that need root privilege) have their menus in the window instead of top panel? Is it going to change or will it stay like that to indicate that user is on root privileges?


Why can't I get reputation for accepting my own answer?

I want to know why I don't get reputation after accepting my own answer.


I have a function which gives me randomly a combination of letters from A-Z and numbers from 0-9. I want to generate 20000 keys out of this. My question is now that I want to determine the probability to create unique keys.   I tried it the following:  $$nCr(36 + 4 - 1,4) = 82251$$  I want to find out how random 20000 keys are, so:  $$\frac{20000}{82251} = 0.2431$$  So the probability that I get a non unique key is $24.31$ percentage.  Are these thoughts correct?  I appreciate your answer!


I have configured and built the source code for Ardour 5.4 successfully, and have been able to run it from the terminal after exported LD_LIBRARY_PATH to ~/.bashrc (for me, the path was /usr/local/lib/ardour5, if that helps anybody out there) and adding ARDOUR_DATA_PATH (usr/local/share/ardour5), ARDOUR_CONFIG_PATH (usr/local/etc/ardour5), and ARDOUR_DLL_PATH (usr/local/lib/ardour5) to /etc/environment.  However, I want to be able to run the program from the Ubuntu Dash, and building Ardour did not create a desktop file. I found a file called "ardour.desktop.in" in the gtk2_folder of Ardour's directory tree after building it, and copied and pasted its contents as a new text file called "ardour.desktop" in /usr/share/applications. Here is the contents:  [Desktop Entry] Version=1.0 Name=Ardour Comment=Ardour Digital Audio Workstation Exec=/usr/local/lib/ardour5/ardour-5.4.0 Icon=/var/lib/app-info/icons/ubuntu-yakkety-universe/64x64/ardour_ardour.png Terminal=false MimeType=application/x-ardour; Type=Application Categories=AudioVideo;Audio;AudioEditing;X-Recorders;X-Multitrack;X-Jack;   I then set executable permissions using "chmod 755 ardour.desktop" and tried to run it, but nothing happened. I tried running the desktop file from the terminal and got these results:  ./ardour.desktop: line 1: [Desktop: command not found ./ardour.desktop: line 4: Digital: command not found ./ardour.desktop: line 10: Audio: command not found ./ardour.desktop: line 10: AudioEditing: command not found ./ardour.desktop: line 10: X-Recorders: command not found ./ardour.desktop: line 10: X-Multitrack: command not found ./ardour.desktop: line 10: X-Jack: command not found   I've finally resorted to asking for help here, as I am completely stumped. Any help would be much appreciated. Thank you for reading this.


In $\Bbb R^3$, If tangent map of F preserves inner product, then F is an isometry?

I am differential geometry beginner. I have one question.  Following statement is well known. If $F$  : $\Bbb R^m\rightarrow\Bbb R^n$ is a map & diffeomorphism. And if $F_*$(tangent map of $F$) preserves inner product, then $F$ is an isometry.  But In $m=n=3$, $F$ is still Isometry even if we subtract the condition of '$F$ is a diffeomorphism'  I tried several ways to prove this, but it was useless. I really want to know this elementary proof. Thanks.


Why blender rendering objects to block/cut each other? And how to avoid it?

It looks like one object projected and blocked/cut another.  It gets worse with more distance between objects.  How to avoid this mess?


Idiom or expression criticizing people who ignore you right after getting what they wanted/ were after

There is an idiom in Persian that literally says: "(to be ignored right after) somebody's donkey has crossed or passed (over) the bridge"  We use it in situations where someone (now feels relieved and) ignores or treats us much differently after:   We have helped them to overcome or reach a solution to a problem, but as soon as they feel relieved, they start treating us as if we are now strangers or even annoying to them! (i.e. They totally forget the help they received.)  We have provided them with something they needed (like a piece of information or news, a confirmation, an acceptance or agreement, money, etc), but since their need has been met, they don't think twice about ignoring us.   As you know, donkeys are stubborn and when they perceive danger, you can't force them to do anything. So I think the origin of this idiom might have been like this: someone's donkey refrained from crossing the bridge, so they asked a friend to help them get the donkey over the bridge, but after being on the other side, they forgot about their friend or treated them ungratefully.  Example scenarios:   Your friend calls and desperately asks you to lend a large sum of money otherwise they will go to jail. They promise to pay back the sum in two months. You lend the money and they say you are their best friend. After three months they still haven't paid you back. You need the money, so you call and ask them when they would repay it.  They promise the following month! A month goes by and still no sign.  So you call them again on the 6th month. They get angry and scold you about why you have called them over that trivial (!!) sum of money and ask you not to waste their precious time with these annoying phone calls since they would definitely pay you back as soon as possible! At this point you say:      "Okay, you are talking like this because your donkey has already passed over the bridge and you feel safe and relieved now, but are you sure it was your last problem??! I will never help you anymore even if you are about to be executed!"    Joe and Jane have been dating for five years, during all those years Joe's behavior has been exemplary; he really wanted to marry her (so he was just acting according to Jane's wishes and requests). After Jane accepted his proposal of marriage and they got married, Joe started to show his other side and gradually ignored Jane's requests. So Jane told him sarcastically:      "Oh, yeah! now that you've got my "yes", you are ignoring me and the reason is clear: your donkey has just crossed over the bridge!"   Is there any equivalent idiom, expression or proverb in English to criticize such people?


Why do we have to use IS NULL instead of = NULL?

I don't know if this is the case for all database implementations but it is for SQL Server and MySQL which are the two I've worked with. I've read articles about the topic and the manuals of SQL Server and MySQL and the reasoning always boils down to semantics around the meaning of the word NULL and how it represents an unknown and therefore nothing can be equal to NULL. What I'd like to do here though is set aside semantics, legacy code considerations and existing developer expectations and see if there are any practical arguments against allowing = NULL. So what I mean is, if we were starting with a clean slate, had no legacy considerations, why would we not want to allow = NULL? In my 20 years of dev experience I've never encountered a situation in which IS NULL has been anything but an annoyance, an extra condition that I have to handle separately from everything else. So can someone give me an explanation of why the following examples shouldn't work as a naive, new dev might expect them to? SELECT * FROM MyTable WHERE myField = NULL SELECT * FROM MyTable WHERE myField <> NULL SELECT * FROM MyTable WHERE myField IN (1, 2, 3, NULL) What is the danger/problem here with collapsing IS into =? If these admittedly trivial examples would be fine but there are other examples where it would be a problem, feel free to bring those up. I've never gotten a satisfactory answer to this and every time I'm writing a query and this comes up it gnaws at me. The question is meant to be general and not tied to a specific implementation.


Tiny GUI buttons and text on high resolution monitor

I recently downloaded blender but when I run the program it is full screen but the nav bars are very small including text and icons. I don't know if its anything to do with the fact my monitor is 4K, I have tried going into resolution settings but it means eeverything else will be too big.  Any help would be greatly appreciated.


Class imbalance in Supervised Machine Learning

This is a question in general, not specific to any method or data set. How do we deal with a class imbalance problem in Supervised Machine learning where the number of 0 is around 90% and number of 1 is around 10% in your dataset.How do we optimally train the classifier.  One of the ways which I follow is sampling to make the dataset balanced and then train the classifier and repeat this for multiple samples.   I feel this is random, Is there any framework to approach these kind of problems.


What can I do to improve exposure on my Canon 30D?

All my pictures taken indoors show very low-light. I guess it should be giving more brightness when I chose f/5.6 aperture, 1/25 sec, ISO 200. And I doubt I might be doing something wrong or if its time to upgrade my camera.  Is there something I can do to improve the exposure in my pictures without using any flash, increasing ISO, reducing shutter speed? Adding a sample image:


How do I install adobe flashplayer in ubuntu 16.04?

I was wondering how I can install the adobe flashplayer from this site:   I have no experience with the formats that are available there.  There is no .deb version of it there and I need the flashplayer for Opera.  Thanks


Is it possible to give a texture thickness?

I have a plane with a texture with both transparent and opaque elements. I would like to give that texture thickness. If I solidify the plane, the texture is only on the faces, not 'through' the solidified plane. I could apply array modifier in very tiny increments to build the thickness, but that's not optimal and seems not really smart either.  UPDATE: More details:  My initial request for this project:   I am trying to recreate series of confocal microscopic images into 3D structures. Each image is flat, I tried to give them thickness by adding array of 6 planes but it looks awful. If I could give each plane thickness, they would stack in nice 3D shapes.     UPDATE 2 David - I tried your suggestion, but I'm getting no effect after displacement. I added solidify modifier on top of that, but I only get fill on edges / rims:    FINAL UPDATE: I followed atomicbezierslinger method - it gave me pretty decent results with very good 3D reconstruction. I used 100x100 cubes per picture, resized z-size to 0.2. Attached is a render of 13 z-stacks from confocal. I need to tweak noise a bit, but I guess there's no better way to go. Now I need to write a Python code to automate it - each data set is 100 z-stacks - too much to do it by hand. I appreciate all suggestions and your help.    FOLLOW UP: I probably was unclear asking initial question and didn't explain my goal well. Confocal microscope uses laser to scan fluorescent-labeled animal tissue. Each laser pass reads a plane of ~1 micron thickness then, the next scan goes deeper and deeper. This way z-stacks are created. There is a software for 3D reconstruction of z-stacks (e.g. ImageJ) but I am exploring possibilities and limitations of Blender in this application. Please see below image for the explanation.   Picture source: Hammad et al., Arch Toxicol (2014) 88:1161–1183


I need to show my Induction  ${1\over 2}\cdot{3\over 4}\dotsm{2n-1\over 2n}<{1\over \sqrt{3n+1}}$  $P(2)={1\over 2}{3\over 4}<{1\over\sqrt{7}}$, Which is true,  $p(k)<{1\over \sqrt{3k+1}}$  Now I am not able to show $p(k+1)<{1\over \sqrt{3k+4}}$  Thank you


I'm using GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu). And this command:  echo "-e"    doesn't print anything. I guess this is because "-e" is one of a valid options of echo command because echo "-n" and echo "-E" (the other two options) also produce empty strings.  The question is how to escape the sequence "-e" for echo to get the natural output ("-e").


What does $\sum_{i=1}^{10} 2$ mean exactly?

Suppose I have $$ \large\sum_{i=1}^{10} 2. $$ Do I just add $2$ to itself $10$ times? I have worked on more complex ones with $n$ and such in the place where the $2$ is, but I have never done it when there is just a number there.


java separate string on first line break

Is there any efficiency way to separate a string into two when detecting the first line break in the String  for example, the String like this:  String str = "line 1\n"+              "line 2\n"+              "line 3\n";   so what i want to do just separate "line 1" from the string, and the rest as another string, so finally the result as below:  string1 = "line 1"; string2 = "line 2\n"+           "line 3\n";


Are practical experiences as valuable as academic research experiences?

I'm a non-U.S undergraduate Computer Science student and I want to get admission from an eminent U.S university for M.Sc./PHD.    In my experiences, there are lots of practical records. From about 10 teaching assistantships (well I call it practical in comparison to publishing papers for example) and holding programming workshops to doing valuable professional projects, for example a noticeable social networking website which is of course related to my field of study and the fields I'm interested to continue to study and do research in M.SC./PHD.    But I don't have any publications and my GPA is about 2.8/4.0 .  I'm afraid if my CV seems to be more "practical" than "academic" and maybe admission offices of eminent universities are looking for more academic prospective students.    1- Now what's your opinion about this situation and my chance to get admission from eminent U.S universities? 2- From an academic professor's point of view, which is more valuable for an undergraduate student: having publications or making such projects or teaching experiences?


$\mathbb Z[\sqrt 3]$ contains infinitely many units

I'm asked to show that there are infinitely many units in the ring $\mathbb Z[\sqrt 3]$.   But I don't really see a good approach to this one, so far.   Some thoughts: The inverse of $a+\sqrt3 b$ should be given by $\pm(2 - \sqrt 3 b)$, since the norm   $$N: \mathbb Z[\sqrt{3}] \to \mathbb Z, \qquad N(x+\sqrt{3} y) = x^2 - 3y^2$$  is multiplicative. So if $(a+\sqrt{3}b)^{-1}=x+\sqrt 3 y$, then   $$1 = N(1) = N((a+\sqrt{3}b)(x + \sqrt{3}y)) = (a^2 - 3b^2)(x^2 - 3y^2)$$  Hence we must have $\pm 1 = (a^2 - 3b^2) = (a+\sqrt{3}b)(a-\sqrt{3}b)$.  Therefore I need to show that there are infinitely many $a,b$ such that $a^2 - 3b^2 = \pm 1$.   Here I don't know how to proceed.   Maybe rewriting as $a = \sqrt{3b^2 \pm 1}$, and now trying to prove that there are infinitely many $b$ for which $3b^2 \pm 1$ is a square?  A hint would be appreciated! =) Thanks.


How to acces to a ubuntu partition in my sata hdd from windows 10

I have a bit old hdd hdd that has a ubuntu partition, now I want to use it as a external hdd with a sata adapter to connect it to a usb port in my laptop.  But I cant access that data because of the partition type.  What can I do?


What travel documents do I need to travel to Germany from the US?

I am a US Citizen planning on traveling to Germany to visit some relatives in the military.  I don't know what documents I need to have, and the last thing I want to do is show up at the airport (or worse, get to the other country) and find out I forgot something.  So what documents do I need to travel from the US?


Given $$u (\lambda) d\lambda = \frac{8 \pi hc \lambda ^{-5}}{e^{\frac {hc}{\lambda k t}}-1}d\lambda,$$ I want to convert this into frequency form $u(\nu)d \nu$. Basically, I want to covert the amount of energy in a wavelength $\lambda \to \lambda + d\lambda$ to the corresponding expression from $\nu \to \nu + d\nu$. I know that $\nu = \frac{c}{\lambda}$ and to replace this in the denominator, and I know that $d\nu = -\frac{c}{\lambda^2}d\lambda$, but I can't make the formula come out right. What am I missing?


SQL Server, what is the optimal Processor & Core configuration for VMs?

In my day job I deal with alot of SQL Servers...and lately I've had a rash of clients running 16 cores but configured as 1 core per processor and their SQL Standard edition runs like a dog, as expected.  My question is this: Have you ever looked into what tends to be a better Processor-Core configuration? 1x8, 2x4, 4x4, 4x2, 8x1, etc. I know there are other aspects to this too around NUMA & 24+ cores on enterprise edition, increasing the CPU share in VMWare vs. increasing the CPU core count, etc.  I'm curious if you (or any of your fine friends) have looked into this and what the performance differences may look like as well as test results.  The software I work with typically has a minimum of 8 cores in SQL Server, some clients have 12 or 16, and a rare few outliers run even more.  Additional Details: -We start Cost Threshold for Parallelism to 50 or 75 depending on the scenario. -We change MAXDOP to 4 or 8 depending on the scenario. -We have an army of other changes that we make to SQL Server for best practices (for us).  This question about Processor-Core configuration has never really been dug into that I can recall.


If I have 1 reputation, I don't have enough reputation to comment on someone's post, but I want to help him/her. What should I do in this situation?  The only way to interact is through posting an answer, but if I do so everybody flags it.


I am self-studying real analysis for fun and came across the following question (from A First Course in Real Analysis by Berberian).  (i) Prove the following: If $r$ is a real number such that $0 \leq r \leq 1$, then there exists a unique real number $s$ such that $0 \leq s \leq 1$ and $s^2 = r$. (ii) Generalize (i) to the following: If $a \in \mathbb{R}$, $a \geq 0$, then there exists a unique $b \in \mathbb{R}$, $b \geq 0$ such that $b^2 = a$.  Put $y = 1-r$ and $x = 1-s$. Then we want to find a real number $x \in [0,1]$ such that $(1-x)^2 = 1-y$. I am trying to find an increasing sequence $(x_n)$ such that $0 \leq x_n \leq 1$ (defined recursively). For (ii) how could I use (i) to get the result?


Must a husband and wife make separate online applications for a UK Standard Visitor visa, and so attend separate appointments for biometrics?

My wife and I are both applying for a UK Standard Visitor visa.  Do we need to fill the visa application form at visa4uk separately?  That would mean we will have to go for biometric appointments separately.  Is that how it works?


I want to export equations from LaTeX to PowerPoint (if possible as vector graphic, e.g. .svg). I use Windows7 / Office 2010 and ShareLaTeX. Since I would like to export every equation, I tried:  \usepackage[active,tightpage]{preview} \PreviewEnvironment{equation} \begin{equation}     \dot x = f(x(t)) \end{equation} \begin{equation}     x(t_0) = x_0 \end{equation}   But I have no idea, how to convert the .pdf into a .svg-file.  Would be great, if somebody could help.


Authenticate to Stack Exchange using GitHub

I've seen sign in methods using  as an authentication provider, for example : (AWS Cloud9)        Is it possible to authenticate into Stack Exchange using this method? At the moment there's other methods such as OpenID, Google, Yahoo and Facebook, but it would be interesting to also have the GitHub authentication.


Connecting desktop computer to the internet through laptop wifi

Due to some home network complications I have had to move my router to a seperate part of the house, therefore the wired network I had set up can no longer work. Before I find the time to go out and buy a Wifi adapter for my desktop PC, I have a laptop that uses a built in Wifi card to connect to my router and this can connect to the internet, and I was wondering if I could somehow access the internet on my desktop PC via my laptop.  I'm hoping for a not-so-complex solution as this will only be set up for a few days, but it is quite vital that my desktop computer gets internet access.  Does anyone have experience in this sort of thing and can help me out? Thanks.


Why is it called "under the sea" when it should be "in the sea?"

Why is the phrase "under the sea" constructed the way it is? Shouldn't it be "in the sea?" Does "sea" refer to the surface of the ocean in this case? Or is it just one of those quirks in English?


What are Harry, Ginny, Ron and Hermione's professions?

After the end of the Second Wizarding War Harry Potter later married Ginny Weasley, and the couple had three children of their own: two sons James Sirius, Albus Severus, and one daughter Lily Luna. What are Harry and Ginny's professions? I heard that Harry became an Auror, but what about Ginny, Ron, and Hermione?


How should I flag a user account if it has no posts to flag?

It came up in chat that a spammer's account needed destroyed; their posts had been deleted but their name (which was offensive) still showed up on the front page as updates to posts and their user account hadn't been deleted.   Someone in chat wanted this fixed but there "wasn't anything to flag" so they complained in chat rather than flagging, which would have directly notified moderators. For future reference how should I tell users to handle a situation like this? Just flag a related post with the "Other" flag reason and explain the situation? What if there's no "related" post?


Cannot run regedit to fix registry problems

I cannot run regedit or any other exe programs after I used by mistake the command open with windows media center by default. Everything is opening with wmc and I cannot repair anything. please help!


Is there a reasonable limit to how far you can generalise complex numbers?

Real numbers satisfy a(bc) = (ab)c as well as ab = ba. They are also comparable. Generalising to complex numbers, everything stays the same, except the numbers lose their comparibility. Generalising to quaternions, the ab = ba no longer holds Generalising to octonions, a(bc) = (ab)c no longer holds. My question is, can you keep generalising indefinitely, and is there ever a point where the resulting number system has lost so many useful relations/identities that it just becomes a useless mush? (As a speculative example, perhaps it may become so generalised that something as simple as "a + b" becomes meaningless or uncomputable)


How do I center an element within a div without knowing the child element's width?

I have this div that has a width of 100% and a height of 90px. Inside the div I have a img that is 90px in height, but I let the width set itself. So how do I set the img withing the div, without knowing it's width?


Pretty common problem here but the posts I've seen are a little different. New Wi-Fi tstat, no C terminal at furnace but plenty of available wiring at both ends. Unlike others problems posted of unwiring and rewiring, couldn't I just take an available wire and combine it to my G connection at the terminal and then connect wire at tstat? If G controls the fan and I know there is power because I can turn on fan manually, is this the easiest fix?  Thanks


Installing ubuntu on pc with asus motherboard

I want to install ubuntu 16.04. After booting from usb stick and selecting "Install Ubuntu" the screen stays black.   Any ideas, what to do?    Edit:  I can boot from  one of the ubuntu advanced options in grub:  4.4 ubuntu (upstart)  And could figure out the error message:  gr: faild to load fecs_inst


Yesterday, I met Susan at the grocer's. - Is the comma here incorrect?

Revising to the exam again...  In a chapter dedicated to something else, in the answers to an exercise, there was such a sentence:     Yesterday I met Susan at the grocer's. / I met Susan at the grocer's yesterday.   Problem is, when I was doing this exercise, I wrote this sentence in this way:     Yesterday, I met Susan at the greengrocer's.   I'm very doubtful about this comma.  I must confess: I don't know (or remember) any rule that would say if the comma here is necessary? acceptable? Incorrect? I must confess: When I was learning English in school, I consciously skipped learning all those comma rules and instead I was relying on my intuition, which, I think, was becoming better and better the more English texts I was reading and the more commas my teacher was crossing out or putting in my tests with her red pen.  And now, my intuition strongly tells me that the natural order of words in English, in case of this sentence, is:     I met Susan at the grocer's yesterday.   So, if I put "yesterday" at the beginning of this sentence, I'm inverting the usual order of words, thus necessitating a comma. (In a manner similar to conditional sentences: The usual order is "blah1 if blah2", so if I'm inverting it, I must put a comma: "if blah2, (then) blah1" but not "if blah2 (then) blah1".)  Is my intuition correct here? (I suppose it's not, since this would imply this book has another error, and while that's not impossible, I find it more likely that I'm wrong.) Which rule is appropriate here?  EDIT: Since someone marked my question a dupe of a couple of other questions that deal with possessive forms of store names: To make it clear: My question has NOTHING to do with store names and possessives! It is all about the comma after "yesterday" - this "grocer's" part is just to provide a full sentence example of my concern.


I have a 32GB iPhone 4 version 4.0.1. I have many photos on my phone, but I have deleted an important photo from my iPhone. How can I get this photo back from my iPhone?


"Do you ever do something" vs. "Have you ever done something"

In "Pragmmatic Programmer" by David Hunt and Andy Thomas, there is a sentence:     Do you ever watch old black-and-white war movies?   To my best english grammar knowledge, present perfect tense should be used here:     Have you ever watched black-and-white war movies?   Is the version of the authors correct? If so, what's the difference between these two variants and what is the appropriate way to use each?  PS. I checked this sentence in the translation of the book in my native language and it was translated exactly as if the orginal sentence was in present perfect form.


Shell: send foreground process to background without suspending it?

I have a command I'm running in the background,  fnordctl &   Occasionally I pull it up into the foreground,  fg   Now, I'd like to send it back to the background to continue running. Typing Ctrl-z will suspend the process, and it won't continue running until I run bg.  Is there a way I could background the process without suspending it?  If that's not possible, maybe there's a way I could bind the suspend operation and subsequent bg to a shortcut key (e.g. Meta-z)? I'm using Bash, so maybe this is something I could create a custom Readline binding for?


How do users get started on new Stack Exchange sites?

How do users on the new Stack Exchange sites get started? Each user starts with 1 rep, and can't upvote until they have 15 rep.  It struck me that this creates a bit of a deadlock. If a new user asks a question and a new user answers, neither can upvote the other.  Are we relying solely on existing SE users to join these exchange sites (with their bonus 100 rep) so that they can get started?


What are the negative and positive aspects of dark color scheme?

I am using   (dark background with light text) in my application.    My question is, what are the negative and positive aspects of this color scheme and why this color scheme is not widely used?


Does $\sum_{n=2}^\infty \frac{1}{n\log(n)}$ converge or diverge?

So I know that $\sum_{n\in\mathbb{N}}1/n$ diverges and $\sum_{n\in\mathbb{N}}1/n^2$ converges. What about the series $\sum_{n=2}^\infty1/n(\log(n))$? I'm pretty confident that it diverges but is there a quick justification?


Getting absolute elevation from WMS raster tiles

When I use GetMap on a raster layer of a WMS GeoServer, the color scale adjusts automatically, so the scale is relative to the retrieved content of the requested area. How do I extract numerically the absolute altitude/elevation ? Alternatively, is there a way to tell the WMS server (GeoServer) to provide the absolute values ?


What should I say if someone from the opposite side of the earth says “good morning”?

This may sound like a silly question, but I'm having a bit of confusion.   I'm not sure what to say. I work remotely and I am a member of a team on the opposite side of the earth. On the chat, when they say “good morning” or “good night”, I get confused about what I should reply because when they are enjoying morning it is night for me.  Should I say “good morning” when they say “good morning”? Can I say “good morning” to them when it's morning for me? Thanks!!


I have a problem with redefining a comamnd within a new environment.  Not working MWE:  \documentclass{book} \makeatletter \newcommand{\mysection}{\@ifstar{\mysection@star}{\mysection@nostar}} \newcommand{\mysection@star}[1]{\begingroup\sloppy\raggedright\section*{#1}\endgroup} \newcommand{\mysection@nostar}[1]{\begingroup\sloppy\raggedright\section{#1}\endgroup} \newcommand{\mysubsection}{\@ifstar{\mysubsection@star}{\mysubsection@nostar}} \newcommand{\mysubsection@star}[1]{\begingroup\sloppy\raggedright\subsection*{#1}\endgroup} \newcommand{\mysubsection@nostar}[1]{\begingroup\sloppy\raggedright\subsection{#1}\endgroup} \makeatother  \newenvironment{MySubAppendix}{%     \makeatletter%     \renewcommand{\mysection}{\@ifstar{\mysubsection@star}{\mysubsection@nostar}}%     \makeatother% }{}  \begin{document} \begin{MySubAppendix} \mysection{Sub After Block Example} \end{MySubAppendix} \end{document}   This leads, with pdflatex, to:  This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) entering extended mode (refman.tex LaTeX2e <2018-04-01> patch level 5 ("C:\Program Files\MiKTeX 2.9\tex\latex\base\book.cls" Document Class: book 2014/09/29 v1.4h Standard LaTeX document class ("C:\Program Files\MiKTeX 2.9\tex\latex\base\bk10.clo")) (refman.aux) ! You can't use `\spacefactor' in vertical mode. \@->\spacefactor                  \@m {} l.19 \mysection                {Sub After Block Example}   Working MWE:  \documentclass{book} \makeatletter \newcommand{\mysection}{\@ifstar{\mysection@star}{\mysection@nostar}} \newcommand{\mysection@star}[1]{\begingroup\sloppy\raggedright\section*{#1}\endgroup} \newcommand{\mysection@nostar}[1]{\begingroup\sloppy\raggedright\section{#1}\endgroup} \newcommand{\mysubsection}{\@ifstar{\mysubsection@star}{\mysubsection@nostar}} \newcommand{\mysubsection@star}[1]{\begingroup\sloppy\raggedright\subsection*{#1}\endgroup} \newcommand{\mysubsection@nostar}[1]{\begingroup\sloppy\raggedright\subsection{#1}\endgroup} \makeatother  \newenvironment{MySubAppendix}{% }{}  \begin{document} \begin{MySubAppendix}     \makeatletter%     \renewcommand{\mysection}{\@ifstar{\mysubsection@star}{\mysubsection@nostar}}%     \makeatother% \mysection{Sub After Block Example} \end{MySubAppendix} \end{document}   At first glance the working version would be an alternative, but when having this multiple times it is a bit of a problem writing each times the part:      \makeatletter%     \renewcommand{\mysection}{\@ifstar{\mysubsection@star}{\mysubsection@nostar}}%     \makeatother%   Any ideas?


What is the idiom/phrase you can use when someone tells you to do (the work) that he is assigned to do (in reality it is assigned to him)?

What is the idiom/phrase you can use when someone tells you to do (the work) that he is assigned to do (in reality it is assigned to him).   For example:  XYZ company is located in Harbor port premises in Dubai city.  Mike - officer at XYZ company.  Joe  - the Security Administrator XYZ company and works at the harbor port gate.  Mike (calls joe on his extension at the gate): Hello Mr. Joe. I have these 3 gentlemen flying in from London to Dubai by flight # 9W-216 tomorrow morning. They are coming to visit us. They need to enter the harbor port security gate at 10:00 am. Just check whether their gate passes are still valid. They had visited us last week so it must be still valid.   Joe answers: Ok, let me see.   Joe sends the entire spreadsheet with the list of people who have valid  gate-passes to Mike by email.  Mike (after receiving the list, again calls Joe): Joe, whats this list for ?   Joe: You can check in the list for their names.  Here It is Joe's job to do the checking. But he unintelligently dumps the list to check for the men on to Mike. Mike like to respond to him by saying,   Joe you are __________  or  Jor you cannot ___________.  PS: For Joe its seems a simple task that Mike can do, while Joe simply misses the fact that its a gross inconsistency on his part (thinking) to expect it from Mike which could mean in principle and considering this example in its extremities that Joe could get away without doing any job and still get paid. This usually occurs when foot-in-the-door requests go haywire.


wish for the community to help point my in the direction to the must know when using Ubuntu please. My primary use for it is for Blender but wish to build the appropriate knowledge along the way to understand the Linux world better :).


How to calculate the buoyant force on a balloon at different altitudes

For a project into balloon simulation I'd like to know how the force on a balloon changes with altitude:  I know that the Buoyant force on a balloon is:  $F = (\rho_{air} - \rho_{helium})gV$  Using changing air density from the international standard atmosphere and changes in gravitational acceleration I can calculate the buoyant force and add this to the (negative) force of gravity mg.  However I know that it isn't this simple, the balloon changes volume with altitude as the air pressure outside the balloon changes.  I'd like to know how the balloon inflates - this would be a great help!  I think it may be something to do with ideal gas laws -  I can calculate air temperature and pressure from the international standard atmosphere but do I use pressure as the air pressure? - or air pressure minus balloon pressure?


Algebra trick question: quotient/factor group isomorphic to a subgroup of $S_n$ where $[G:H]=n$

I think this might be a trick question, even if it is I am still not sure how to write it.  Let G be a group  Let H be a subgroup of G  I wish to show that if $|G:H|=n$ with $n>1$ then G has a quotient (or factor to some) group $G/N$ which is isomorphic to a subgroup $I$ of the Symmetric group $S_n$ with $|I|>1$  I'm not actually sure what N is, I think it is a typo for H. If it is supposed to be H then (this is the bit I am not sure how to write)  I want to say something like $|G:H|$ is the number of left cosets of H in G, and the quotient group is just the group of them, if that group is of order N then of course it is isomorphic to a subgroup of the symmetric group on n items, the symmetric group contains every group as a subgroup we could have on n things.  If $N$ is intended, this usually denotes a normal subgroup, I am not sure how to interpret the question.  If you can interpret this correctly please do say how you interpreted it, hints are great when you are stuck on the question, not reading the question.  I don't think my "of course it is isomorphic to a subgroup" is the answer, it is from the wrong chapter's part (Rings Fields and Groups) to be so trivial.


Assumed True until proven False. The Curious Case of the Vacuous Truth

Given two statements, $P$ and $Q$, and the logical connective, $\implies$, the truth table for $P \implies Q$ is:  $$\begin{array}{ c | c || c | }   P & Q & P\Rightarrow Q \\ \hline   \text T & \text T & \text T \\   \text T & \text F & \text F \\   \text F & \text T & \text T \\   \text F & \text F & \text T  \end{array}$$  Lines one and two are quite clear. What is ambiguous is lines three and four.  One explanation as to why $P \implies Q$ is true when $P$ is false, provided by Velleman goes:     Let $P(x)$ be the statement $x>2$ and $Q(x)$, $x^2 > 4$. When $x=3$, $P$ is true, and $Q(x) = 9$ thus $Q$ is true. If $P(x) = 1$ then $Q(x) = 1$ and they are both false. If $P(x) = -3$ then $Q(x) = 9$ and so the statement is true.   This explanation was quite unsatisfactory to me. Looking at Enderton, we have:     For example, we might translate the English sentence, ”If you're telling the truth then I'm a monkey's uncle,” by the formula ($V \implies M$). We assign this formula the value $T$ whenever you are fibbing. In assigning the value $T$, we are certainly not assigning any causal connection between your veracity and any simian features of my nephews or nieces. The sentence in question is a conditional statement. It makes an assertion about my relatives provided a certain condition — that you are telling the truth — is met. Whenever that condition fails, the statement is vacuously true.      Very roughly, we can think of a conditional formula ($p\implies q$) as expressing a promise that if a certain condition is met (viz., that $p$ is true), then q is true. If the condition $p$ turns out not to be met, then the promise stands unbroken, regardless of $q$.   Though a significant improvement over the Velleman explanation, I still feel uncomfortable with it.  Really, it seems we can conjure up as many silly counter-examples as we like, such as:     If pigs can fly, then I can walk on water.   Though following the above truth table, the implication is that my ability to walk on water is true.  After considering it, it seems to me that $\implies$ is only meaningful when $P$ is true, then we can look at it in relation to $Q$. However, if $P$ is false, then we actually know nothing about the relationship between $P$ and $Q$. This would give a truth table of:  $$\begin{array}{ c | c || c | }   P & Q & P\Rightarrow Q \\ \hline   \text T & \text T & \text T \\   \text T & \text F & \text F \\   \text F & \text T & \text ? \\   \text F & \text F & \text ?  \end{array}$$  where the $?$ denotes that given $P$ we actually don't know anything about $ \implies $.  Thus. one way to clear this up would be to assume that $? = T$. Thus the vacuous truth is a "definition of convenience" in a sense.  The above is my take on the matter.  Could someone provide some clarification on the conditional logical connective?


I defined a syntax highlighting for my code like so: \lstdefinelanguage{CSharp}{     sensitive = true,     keywords={assembly, class, method, field},     keywords=[2]{public, private, family, assembly, famandassem, famorassem, nested, static, abstract, virtual, hidebysig, cil, managed, specialname, rtspecialname, interface, sealed, auto, ansi, unicode, beforefieldinit, sequential, explicit},     keywords=[3]{class, void, string, int, object, if, else, if, switch, break, case, boo, while, truel},     keywordstyle=\color{forestgreen},     keywordstyle=[2]\color{purple},     keywordstyle=[3]\color{blue},     numbers=left,     numberstyle=\scriptsize,     stepnumber=1,     numbersep=8pt,     xleftmargin=2em,     framexleftmargin=1.5em,     showstringspaces=false,     breaklines=true,     frame=single,     basicstyle=\ttfamily,     comment=[l]{//},     morecomment=[s]{/*}{*/},     commentstyle=\color{forestgreen},     stringstyle=\color{maroon},     morestring=[b]',     morestring=[b]" }  \definecolor{forestgreen}{rgb}{0.13, 0.55, 0.13} \definecolor{maroon}{rgb}{0.5, 0.0, 0.0}  \newcommand{\sourcecode}[3]{\vspace{10pt}\lstinputlisting[language=CSharp, label={#2}, caption={#3}, captionpos=b, abovecaptionskip=10pt]{#1}}  It works nicely but I can't change the colors of numbers in the code. When I add them to the keyword list they are simply ignored. And modifying the numberstyle only affects the line numbers but not the numbers in the code:  How can I set custom color highlighting for numbers in the code, such as the 0 and the 3?


Select an area in rep graph not working on Chrome

The "select an area by dragging across the lower chart" thing is not working on Chrome.  Tested with Chrome 13.0.782.220 m, works with Firefox 6.0.1 and IE 8  Quirk: For some reason, if I open an incognito window, it works. Tried clearing the cache and cookies, still not working.


Is there a term for this (two words sound like one word)?

Example:  Tell her  and teller  Or cellar and sell her


Converting a Hex Code String to an int[] of decimal


I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex?  \documentclass{article} \usepackage{fontspec} \setmainfont{Noto Color Emoji} \begin{document} 😺 👅  \end{document}   Error:  $ lualatex emoji.tex  This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian)   restricted system commands enabled. (./emoji.tex LaTeX2e <2018-12-01>  luaotfload | main : initialization completed in 2.224 seconds (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty (/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (./emoji.aux) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./emoji.aux))  409 words of node memory still in use:    3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 48 glue_spec , 5 attribute_list, 1 write nodes    avail lists: 2:15,3:4,4:1,5:21,6:1,7:13,8:1,9:6 </usr/share/fonts/truetype/noto/NotoColorEmoji.ttf ! error:  (file /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf) (ttf): sfnt  table not found !  ==> Fatal error occurred, no output PDF file produced!


The materials tab appears different than the usual material tab

when i open my blender a material is applied automatically and i am unable to use the material node editor. The materials tab also appears different than the usual material tab. I am having trouble applying the usual gloss, mix, and other shaders


How is Hamilton's first equation useful in solving mechanics problems?

Here is the first Hamilton equation: $\frac{\partial H}{\partial {p}_q} = \dot{q}$ Let's use it. Imagine a ball rolling down a frictionless hill (ignore the friction vector in the image). As time goes on it covers a distance $x$ in an inclined coordinate system and turns out an angle $\phi$:  Here the Hamiltonian is: $H=KE+PE= \frac{1}{2}m\dot{x}^2+\frac{1}{2}I\dot{\phi}^2+mgx\sin{\theta}$ If we define our generalized coordinates in terms of $x$ (so $v=\dot{x}$) and apply Hamilton's first equation we ultimately get: $$\dot{x}=\frac{p_x}{m}$$ or in other words, linear velocity is linear momentum divided by mass. Nothing interesting. If we define our generalized coordinates in terms of $\phi$ (so $\omega=\dot{\phi}$) and apply Hamilton's first equation we ultimately get: $$\dot{\phi}=\frac{p_\phi}{I}$$ or in other words, angular velocity is angular momuntum divided by rotational inertia. Nothing cute. I understand why the equation works and to use it. My question is, what is the point? Every time I use it it results in these same two obvious facts, at least in a classical context. Are there any circumstances where this equation yields other facts? If not, what exactly IS it's purpose? And if it is not useful in solving mechanics problems, is it there to make using phase space possible or something of the like? Don't feel limited to classical mechanics, perhaps the answer lies elsewhere, like in quantum mechanics. I really appreciate this community!


JQuery .find() not finding a specific element

First I know the title isn't the best nor what the site recommends/asks for, but I have no idea how else to put it. I'm using JQuery to edit twitter widgets on my website. I had no problem doing so until this one element. I have checked that I'm searching for the correct element timeline-Widget and what I'm trying to edit is the border-radius  snippet of my code: $('.twitter-block').find('.twitter-timeline').css({"border": "4px solid rgb(255, 225, 241)", "outline" : "8px solid rgb(255, 189, 225)"}); $('.twitter-block').find('.timeline-Widget').css({"border-radius": "0px"});  first line edits twitter-timeline element and it works just fine, but timeline-Widget JQuery just does not find. Sorry, this is my first time working on a website and a first time working with JS and JQuery


How to solve the following congruence equation? $$3n^3+12n^2+13n+2\equiv0,\pmod{2\times3\times5}$$ If $t_n$ be the $n$th triangular number, then  $$t_1^2+t_2^2+...+t_n^2=\frac{t_n(3n^3+12n^2+13n+2)}{30}$$ so if we solve this congruence equation we find the values of $n$ that $t_n$ divides $t_1^2+t_2^2+...+t_n^2$.


Is there a way to do Like against a list of Values?

Is there a way to mix LIKE operator with IN ? Something Like  SELECT Id FROM Account WHERE Name LIKE IN:nameList   Where nameList is list of String? Is this is possible ? (I can make a dynamic query by doing OR with all the elements, but was looking for a more elegant way to do this)


What makes a distribution GNU and are there Linux distributions, that are not GNU?

So GNU/Linux is an operating system, consisting of several programs at a minimum: Linux kenel, gcc, gnu-binutils, Gnome desktop, etc.   What makes a Linux distribution GNU? Is it the tools, with which the kernel was compiled? Is it the tools, with which the distribution is shipped? Do there exist fully functional, desktop operating systems, that are Linux based but not GNU?


Why this simple comparison is not working correctly in JavaScript?

I'm working on an E-learning project and I need to have a simple  verification function which takes 3 arrays and return true when each element in the 3rd array is equal to the 1st array corresponding element multiplied by the 2nd array element.  The 3 arrays have the same length.  Examples:  verifyNotes([5], [2], [11]) //should return false because 5*2=10 verifyNotes([5], [2], [10]) //should return true   This is the function I created (I think that nothing is special):    function verifyNotes(coefficients, notes, savedResults){  var resultVerif=true;  savedResults.forEach(function(element, i){   if( (coefficients[i]*notes[i]) !== savedResults[i] ){    resultVerif=false;   }  });  return resultVerif; }  var verif1 = verifyNotes([1,4,2], [12,16,8], [12,64,16]); console.info("Verif1: Are notes okay?", verif1);     The problem  When I have float notes, the function is returning false when it should return true (since 1.5*15.66=23.49) in this example:  var verif2 = verifyNotes([1,4,2,1.5], [12,16,8,15.66], [12,64,16,23.49]); console.info("Verif2: Are notes okay?", verif2); //ouputs: Verif2: Are notes okay? false   What is going wrong?


Passing method parameters with apex:actionFunction

I have this Visualforce code snippet in a page:  <apex:outputLink value="javascript:if (window.confirm('Are you sure?')) DeleteQuoteLineItem('{!LineItem.QuoteLineItem.Id}');">     Del </apex:outputLink>  <apex:actionFunction action="{!DeleteQuoteLineItem}" name="DeleteQuoteLineItem" reRender="content">     <apex:param value="test"/> </apex:actionFunction>   The two methods I'm using for testing are:  public void DeleteQuoteLineItem(String RecordID) {     System.debug('method with a paramater');     System.debug(RecordID); }  public void DeleteQuoteLineItem() {     System.debug('method without a parameter'); }   Everytime I click on the link to execute the apex:actionFunction, it's calling the DeleteQuoteLineItem() method without any parameter. I looked online and it seems like I need to create a class attribute and use assignTo= in my apex:param to populate it accordingly.  Is it possible to prevent this behavior and use standard method parameters, so I don't have to create class attributes? I want to work on a clean and optimized codebase, preventing unnecessary variable scope (so no class attribute when it's not required) and improve code re-usability by staying context agnostic.  Thanks


I am new to AD. We have a total of three domain controllers that are also DNS servers. Can I decommission the DC running Windows Server 2003 standard. Will the global catalog be replicated safely?


I have the same code for my footer in all sub pages. In this particular one, I have a map. The footer is located at the bottom of all pages except this one.  I noticed that of I zoom out in my browser, it will go to the bottom. Otherwise, it is located on the map. I already tested the answer here  but it just changed the position of footer and it is still in the middle of the map.                                    Home                 Resume                 Awards                 Teaching                 Contact

Address

1750 cyg Hwy

                          ©copyright


Is it possible to reference enum from another class via a shortcut?

So I have an enum like this:  public class MyObnoxiouslyLongClassName : AbstractModel, IPerforceModule {     public enum Status { Fatal, Priority, Error, Warning, Info, Debug }   and when I access the enum in another class I have to do so like:  MyObnoxiouslyLongClassName.Status state = MyObnoxiouslyLongClassName.Status.Fatal   What im trying to do is like link to this enum in my other class so I can skip the long class name.. something like this pseudocode:  public class MyOtherClass : AbstractModel, IFileBrowser {     private enum Status = MyObnoxiouslyLongClassName.Status     Status state = Status.Fatal;     (state == MyObnoxiouslyLongClassName.Status.Fatal) //true   Any way this could be done in C#?


How is the value in a BH1750 light sensor assigned using a shifting operator <<?

I'm using a BH1750 light sensor with arduino to display the lux values on an LCD. But in the code, I'm unable to get the formula. Can anybody explain me the formula?  I tried to find it in the datasheet of BH1750, but I was not able to understand this line:   value = ((buff[0]<<8)|buff[1])/1.2;   The whole code:  #include<Wire.h> #include<LiquidCrystal.h>  int BH1750address = 0x23; byte buff[2]; LiquidCrystal lcd (7,6,5,4,3,2); //RS, E, D4, D5, D6, D7  void setup() {   Wire.begin();   lcd.begin(16,2);   lcd.print("  BH1750 Light  ");   lcd.setCursor(0,1);   lcd.print("Intensity Sensor");   delay(2000); }  void loop() {   int i;   uint16_t value=0;   BH1750_Init(BH1750address);   delay(200);    if(2==BH1750_Read(BH1750address))   {     value=((buff[0]<<8)|buff[1])/1.2; //This is where the problem is     lcd.clear();     lcd.print("Intensity in LUX");     lcd.setCursor(6,1);     lcd.print(value);   }   delay(150); }  int BH1750_Read(int address)  {   int i=0;   Wire.beginTransmission(address);   Wire.requestFrom(address, 2);   while(Wire.available())    {     buff[i] = Wire.read();     i++;   }   Wire.endTransmission();     return i; }  void BH1750_Init(int address)  {   Wire.beginTransmission(address);   Wire.write(0x10);   Wire.endTransmission(); }


So, i want to add some water to my scene. But i´ts the second video i am watching with options displayed that are missing in my blender. Am i missing something? It´s about the materials...   this is how it should look.   and how it looks on my blender. There are far less options. Where is Lambert for example? Can someone suggest another video/way to do it?


Dual Boot ( Windows 7 32bit and Ubuntu 14.04LTS 64bit )

I am using (windows 7 - 32bit) Please advise can I install ( Ubuntu 14.04 LTS -  64bit ) as dual boot? Or should I install Ubuntu 32bit alongside.  Thanks.


Bootable USB for Windows and Linux Installation

I just got a new 64GB USB 3.0 flash drive, and I want to be able to install the various flavors of Windows and Ubuntu from that flash drive. The Windows USB Tool only installs the different versions of Windows, while UNetbootin installs just about everything but Windows. One needs the flash drive to be formatted as NTFS, the other, Fat32. Could I partition the flash drive to make it work with both USB tools? Is there any way for Windows and Linux installers to coexist on the same flash drive?


Link a range of vertically ordered rows, to a horizontal range of columns

Is there a range function in Google Spreadsheets where I can link the values of SheetA!A1:A10 to SheetB!A1:J1? So basically rotating the values from rows to columns.


How To Upgrade Kubuntu From 16.04 to 16.10 using Kubuntu 16.10 ISO Image File?

I have just downloaded the latest image ISO file of Kubuntu 16.10.   I would like to learn if there is a way to upgrade my current operating system from Kubuntu 16.04 LTS to Kubuntu 16.10 using the new ISO image file that I have just downloaded.   Note: I know that I can get the latest upgrade using the following command:  sudo do-release-upgrade   The above upgrade command though will re-download the same files that I have already downloaded.


Identify this symbol: two circles overlapping

The attached screenshot is from a schematic in a datasheet.  I know that the flat-topped arrow is a diode, but I don't know what the pair of looped circles are.  Can anyone help me out?  If there's a good online symbol reference, please share the link!    Thanks!


Using beginning of TLS ecnrypted data to reveal secret

I have the following question about TLS security:  Assume TLS-PSK protected HTTP with AES256-CBC cipher.  When a TLS connection is established, client sends some encrypted data, where the plaintext is well known to an attacker.  For example, it can be a HTTP request, like:  GET /some_resource HTTP/1.1 ...   Can an attacker use intercepted ciphertext and known plaintext it to reveal the secret key?  Does TLS have any features to protect from that?


I'm trying to return a boolean if a curl response has a status of 200.  curl https://www.example.com -I | grep ' 200 ' ? echo '1' : echo '0';   This however brings back:  grep: ?: No such file or directory grep: echo: No such file or directory grep: 1: No such file or directory grep: :: No such file or directory grep: echo: No such file or directory grep: 0: No such file or directory   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0   So I'm thinking (and from reading other threads) that grep doesn't support the ternary operator?  Is there a simple one liner to do this without creating a shell script? (also my grep ' 200 ' is loose but I figure I can make that more specific later)


Via command line, I have a log file I'd like to keep track of.  What I want is to have, basically, a tail that refreshes when the log is updated making the text scroll upwards as new lines are appended to the log file.  Is there anything out there that does that without having to write some code?


Best and fastest transportation from Gatwick to Heathrow airport

I arrive into Gatwick from Nice at 12:30 pm on 9 May, 2016 and depart from Heathrow at 15:15 for Shannon. What is the most efficient transportation between the two London airports? Will the airline transfer my luggage to my final destination on Shannon?  NCE | LGW | SNN


I had previously ubuntu 14.04 LTS installed and I have so many projects on laravel 5.0. After the release of Ubuntu 16.04 I installed it on my machine and I am facing a lot of difficulties to get laravel 5.0 working in it. I installed Xampp 7.0.5 / PHP 7.0.5. There were errors about mbstring and mcrypt I got rid of those errors by installing them from terminal. Now when I try to run php artisan serve it throws [PDOException] Driver not found error. In my phpinfo I can see PDOdrivers for mysql, pgsql, sqlite are enabled.  The requirement of laravel.5.0 says PHP >= 5.4, PHP < 7, so I also tried installing Xampp 5.6.20 / PHP 5.6.20 and downgrading the php version of 16.04 to php5.  Is there any way I can get my laravel 5.0 projects working on Ubuntu 16.04?  I am wondering if laravel 5.0 has worked in 16.04 for other people. Thank you in advance.


How do I simulate in Photoshop what a piece will look like when printed on non-white paper?

I'm designing a box in Photoshop that will be offset printed on unbleached paper. I haven't picked out a printer yet, so I don't know the exact kind of paper I'll be using and don't have access to it for proofs. For now I'm using a lightly-textured layer of tan color as a placeholder to mock it up.  What I'm trying to figure out is, how do I figure out how my design will look printed on natural paper rather than bleached white paper? I know that the brightness will be diminished and the hue will be altered, but I need to know how much so I can compensate for it as much as possible.  Is there a way to get at least a rough but reliably-simulated idea of how my prints will come out? Does it have to do with blend modes, or color separations? I'm at a bit of a loss here.


In C# how could I listen to a COM (Serial) Port that is already open?

I am using a program that talks to my COMM port, but I have made another program that I want to "sniff" the comm port messages and perform it's own actions against those messages  in addition. Is this possible in .NET c#?


How long can the average, healthy adult human survive with only water?


Is the sentence “ask any doctor — they'll all tell you that alcohol is a poison” grammatically correct?

I am not a native speaker and I find the following sentence pretty confusing.     Ask any doctor — they'll all tell you that alcohol is a poison.   Here the speaker is referring to any doctor. Why is they used instead of he/her? Or to put it in other words shouldn't the correct form of the sentence be as follows?     Ask any doctor — he/she'll all tell you that alcohol is a poison.`


When considering titles of scientific papers, why are definite and indefinite articles omitted sometimes?

Is it a rule or is it a sign of bad English among foreign researchers and scientists?  Example: Observation of Einstein-Podolsky-Rosen Entanglement on Supraquantum Structures by Induction Through Nonlinear Transuranic Crystal of Extremely Long Wavelength Pulse from Mode-Locked Source Array  I think there are at least three indefinite articles missing, and possibly some definite articles. 1) Through a nonlinear transuranic crystal 2) an extremely long wavelength pulse 3) a mode locked source array   I'm a non-native speaker, so any thoughts on this topic are very welcome!


Create bash file to open minecraft launcher

I use this command in the terminal to run the minecraft launcher with java 8:  /home/max/Java/jre1.8.0_25/bin/java -jar Minecraft.jar   I included the full java path because I installed it on /home as a normal user and i want to include it.   That command works, it opens the launcher with Java 8 but I want to make a bash file so I don't have to open the terminal. And, most important, I don't want the terminal to remain open when I click play in the Minecraft launcher and the game starts.  Now if i close manually the terminal when the game have started, the game is closed too.


ut8 meta tag doesnt show special chars in php site

Iam using a php web site which ia by default has iso-8859-1 header type in html page. I had changed it to utf-8  then the special characters were showing in different way [ not rendering properly]  Edit:  Header:  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   echoing the string which is showing as mentioned below:  1.  Nytt filter f�r v�lja spr�k och aktiva Medarbetare    May i know the reason.  Thanks


Preview and rendered video from VSE suddenly shows nothing

I started using Blender couple of weeks ago to edit some of my video clips. Spent quite a while editing this one, and everything worked fine. Video rendered as it should. The whole project consists of a MP4 file with a whole lot of soft cuts. Came back to it a couple days later and now the preview won't show a thing. When I render the scene, it's just a black screen with no sound.  The original file is still working, as well as my other Blender projects. And the weirdest thing is that if I add a new movie clip to the project, the preview works just fine for that clip.  Can anyone guess what might have caused this? I've googled like crazy and haven't found anything helpful.


Is the speed of light in a medium also remains constant when the medium travels at high speed?

There is a problem given as  A light signal travels from $A$ to $B$ within a glass slab which is moving (in same direction as that of light) with speed 0.3c with respect to an external observer.If the refractive index of slab is 1.5, then what is the speed of the signal as observered by the observer?  The problem is easy. We know that $$\begin{align} \text{Velocity of light in a medium} \,\,=&\,\, \frac{\text{Velocity of light in vaccuum}}{\text{Refractive index of the material}}\\\text{Velocity of light in glass slab} \,\,=&\,\, \frac{c}{1.5}\end{align}$$ This velocity of signal comes out in the frame in which the glass slab is stationary. But as the signal is light signal, so I think that the speed of signal will also appear same to the observer for whom the glass slab appears to move. But in the solution, the relativistic addition of velocity is also used ,i.e., $$\displaystyle u_x=\frac{u_x'+v_{frame}}{1+\frac{u_x'v_{frame}}{c^2}}$$ $$\displaystyle\implies u_x=\frac{\frac{c}{1.5}+0.3c}{1+\frac{0.3}{1.5}}=0.81c$$ This is the final answer given. But I have a doubt that in relativity it is assumed that speed of light in vaccuum remains constant in all inertial frames. But doesn't then speed of light in any medium should also remain constant in any other inertial frame (irrespective of material of those other frames)? Please explain why velocity transformation equations are used after getting speed of light in the frame of glass slab. The observer should also observe the velocity of light to be $\frac{c}{1.5}$. Please clasrify the doubt!


What's the best way to animate an illustration for the web?

I have a couple of illustrations done in Illustrator and I am planing to animate it for a website that I am working on, I've heard of  toolkit with flash, but is it the best way to go or is there another "better" way of doing it?  Here's an example of the kind of animations I am aiming for:


Can I use Desktop version of Ubuntu linux in my office environment, I do not need any extended support for my desktops.


Does the following "theorem" have a name?

I am aware that if one has random variables, and sums them, then the result belongs to a distribution which is the convolution of the parent probability distributions of the initial random variables.   For example, let $X$ and $Y$ be random variables drawn from the probability distributions $F(t)$ and $G(t)$ respectively. If $Z = X + Y$, then $Z$ belongs to the probability distribution $$Z\sim (F*G)(t) = \int_{-\infty}^{+\infty} F(\tau)G(t - \tau) \ d\tau \text{.}$$  Does this principle or theorem have a name? Is it part of central limit theorem? I want to be able to refer to it quickly rather than explain the above every time.


Grep for dates older than 14 days in a file

I'm trying to find a way to grep how many messages in a file are older than 14 days and have a value of number of results return  Example going with today's date of 20160616. $grep 'Put Date' filename:  Put Date     :'20160425' Put Date     :'20160501' Put Date     :'20160514' Put Date     :'20160609' Put Date     :'20160610' Put Date     :'20160616'   The results should see the following are older than 14 days and would return 3 :  Put Date     :'20160226' Put Date     :'20160501' Put Date     :'20160514'


How can I enable packet forwarding on Windows?

In the Linux system, we can use bellow command to enable packets forwarding:  ~ # sysctl net.ipv4.ip_forward=1 net.ipv4.ip_forward = 1   but how can I realize the same function in Windows?  I use Windows Server 2008 R2.


Is there a difference between "are here also" and "are also here"

Is there a difference between are here also and are also here?     In this street you see 2 trees, 1 mithril rock and 1 patch of wheat.   You look around and notice that Bob, Sara and Tom are also here.   This is my actual use case, but I wonder if one of the two makes it more implicit. My intention is to say "besides all these resources, you also see some users". Or perhaps there's even better wording..


What is the difference between a datum and an ellipsoid?

For example I am converting from ECEF to lla using  def ecef_to_lla(x, y, z):     lla = pyproj.Proj(proj='latlong', ellps='WGS84', datum='WGS84')     ecef = pyproj.Proj(proj='geocent', ellps='WGS84', datum='WGS84')     lon, lat, alt = pyproj.transform(ecef, lla, x, y, z)     return lon, lat, alt   I'm not sure how the ellps and datum keywords differ. Documentation points me here:  but it's still unclear how they differ?   I though a datum was a model of earth, usually an elippsoid with different parameters. So what's the difference between a datum and ellps?


The following is an incorrect proof of “if a set of n balls contains a green ball then all the balls in the set are green”. Find the error.

The Statement: If a set of n balls contains a green ball then all the balls in the set are green. The proof:  The statement holds trivially for n = 1. Assume that the statement is true for n ≤ k. Take a collection $B_1$ of k + 1 balls that contains at least one green ball. From $B_{k+1}$, pick a collection $B_k$ of k balls that contains at least one green ball. Then by the induction hypothesis, each ball in $B_k$ is green. Now, remove one ball from $B_k$ and put the ball which was left out in the beginning. Call it $B_k'$. Again by the induction hypothesis, each ball in $B_k'$ is green. Thus, each ball in Bk+1 is green. Hence by PMI, our proof is complete.  What's the error?


Internal "share" answer links are not converted to a title

Answer:   https://stackoverflow.com/questions/10760326/merge-multiple-lines-two-blocks-in-vim/10760494   https://stackoverflow.com/a/10760494/298479   Question:   https://stackoverflow.com/questions/10760326/merge-multiple-lines-two-blocks-in-vim   https://stackoverflow.com/q/10760326/298479   ends up as     Answer:         Question:         As you can see, the share-answer link is not converted to the question title. This is kind of annoying, especially when linking an answer in another answer - the fastest way to get the answer link is the "share" button. Having to open the URL to get the long URL is annoying (additionally chances for one of the share badges are lowered).


chinese simplified characters appears as question mark diamond

i've set the meta and check mysql appears to be on utf 8 already, what seems to be the issue here?  HTML  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />     PHP DB connection  $DB_NAME = 'ssl'; $DB_HOST = 'localhost'; $DB_USER = 'dbuser'; $DB_PASS = 'dbpass';  $mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);   // $mysqli->character_set_name(); mysqli_set_charset($mysqli,"utf8");   if (mysqli_connect_errno()) {     printf("Connect failed: %s\n", mysqli_connect_error());     exit(); }   Querying for output   $query = $mysqli->query("select {$translate_to} as lang from locale_cn where {$translate_from} = '$phrase' ");         $row = mysqli_fetch_array($query);   Display
<?php echo translate("In-Kind Donation"); ?>
   tried setting header('Content-Type: text/html; charset=UTF-8') as well but the result is still the same    Edit: add in translate function info   function translate($phrase) {      if(!isset($_SESSION))      {          session_start();      }      require 'db/mysql.php';          $_GET['lang'] = $_SESSION['lang'];         $lang_session = $_GET["lang"];          if($lang_session == 'CN') {             $translate_from = 'EN';             $translate_to = 'CN';         }          else {             $translate_from = 'CN';             $translate_to = "EN";         }           $query = $mysqli->query("select {$translate_to} as lang from locale_cn where {$translate_from} = '$phrase' ");         $row = mysqli_fetch_array($query);          if(isset($row['lang']) && $row['lang'] !== ""){              return $row['lang'];         }         else{            return $phrase;         }     }


What is the difference between [[]]*4 and [[],[],[],[]]

I create two lists that seems the same   x = [[]]*4 y = [[],[],[],[]]   since when I print x, y, they give me the same output [[],[],[],[]]. However, when I apply the same operation x[0].append((1,2)), y[0].append((1,2)) on them, they give me different result  print x  >> [[(1, 2)], [(1, 2)], [(1, 2)], [(1, 2)]] print y  >> [[(1, 2)], [], [], []]   Why this happens? And how to modify x to make sure x and y are exactly the same?


"Quest of providing" vs. "quest for providing"

Which sentence is correct and why?        In our quest of providing unparalleled value to our customers.   In our quest for providing unparalleled value to our customers.      I understand that the preposition of indicates "related to or belonging to", whereas the preposition for indicates the use of something.


I know a plaintext - ciphertext couple of length 6 for a hill cipher where its key is a [3x3] matrix.  Based on what I've read and learned, to attack and crack keys of [n x n], if we know a plaintext - ciphertext duo of length $n^2$ then we have our set of n equations with n variables, and this is generally solvable. However in my case there is only length of $6$ instead of $n^2 = 9$ .   My question is, how will I solve this problem and find the key? Or, since this is an obvious homework question, what should be my way of thinking? I cannot think of anything else but matrix multiplications and inverses but they do not help me at all.


Where should I ask a question about Google Chrome?

The question is very similar to , but I don't think that that question should be on the Ubuntu site (doesn't seem to be Ubuntu specific).  To be specific my question is: "Since the change in Chrome 35.0 that makes backspace a shortcut for back on Linux, how do you disable this feature?"  Is there a site in the Stack Exchange network that would be appropriate for this question?


Find solutions to $\varphi\left(n\right)=2^{32}$

I'm looking for some solutions to $\varphi\left(n\right)=2^{32}$ where $\varphi$ is the Euler's totient function. I know that if $n=p_{1}^{r_{1}}\cdot\ldots\cdot p_{k}^{r_{k}}$ satisfies $\varphi\left(n\right)=2^{32}$ then \begin{align*}  & 2^{32}=\varphi\left(n\right)=\prod_{i=1}^{k}p^{r_{i}}\left(1-\frac{1}{p_{i}}\right)=n\prod_{i=1}^{k}\left(1-\frac{1}{p_{i}}\right)\\ \Rightarrow\quad & n=\frac{2^{32}}{\prod\left(p_{i}-1\right)}\prod p_{i} \end{align*} So I was looking to compute solutions by finiding primes $p_{i}$ such that $p_{i}-1\mid2^{32}$ and plug them into the last equation. Those are $p_{i}-1\in\left\{ 2^{l}\mid1\leq l\leq32\right\} $  and for example $p_{i}-1=2$ is good because then $p_{i}=3$ is a prime. Plugging it into the equation  gives $$ n=\frac{2^{32}}{\left(3-1\right)}\cdot3=3\cdot2^{31} $$  But then $\varphi\left(3\cdot2^{31}\right)=\varphi\left(3\right)\varphi\left(2^{31}\right)=2\left(2^{31}-2^{30}\right)=2^{31}\boldsymbol{\neq}2^{32}$  What am I missing here?


Exposure compensation or ISO sensitivity?

If ambient light isn't enough and I don't have a tripod with me for long exposure, which one should I prefer to increase the brightness of my photo?   I know high ISO comes with noise. Is there any side effect of high exposure compensation?  What I do is open full aperture & increase exposure till 1/10s. If not enough, increase ISO till about 300. After that noise is noticeable so I resort to exposure compensation, all the way up to +5. Then back to ISO. Last option is flash, if possible. Is this the best  practise? Should I increase Exposure compensation before increasing ISO?


I only want an intuitive proof or idea that underlines the essence of this equality. I proved this already using the summation but it doesn't help me to actually see why they are equal. I hope you could help me. Thanks in advance!


Intranet/Internet DNS name conflict on windows server

I have an intranet network on which a Windows IIS7 server is named mycompany.com. We also have a website hosted elsewhere named mycompagny.com.  From the outsite of the network, everything is fine for our current use case. But from the inside, it's not possible to access the website in a browser without the www prefix. It return a dummy page from IIS7.   A hack used by a colleague is to skip local DNS routing by using . A major con for the solution is that it have to be configured locally on all machines and that it disable local http serving.  Another hack would be to always use www, but we have some subdomains that are not configured to work with it. For example, our famous: nice-app.mycompagny.com.  I can't just change the intranet server name because it's already used for other purpose as ssh-access-ing a bunch of machines ftp-serving. Renaming mycompagny.com by mycompagny-intranet.com or something else would certainly breaks a lot of things and create headheaches for everyone for a couple of days ... As I am new here, I can't afford it.  How could I handle that specific problem?   This kind of duplicate use of DNS duplicate seem to be a common anti-pattern in the windows server community, at least it have been reported many times on Serverfault:      and many other sauces...   How could one prevent that to happen again at the design stage of a network?   EDIT: The sub-question is clearly a duplicate of .


I'm using mysql_real_escape_string() on every INSERT before anyone asks. However, I want users to be able to type apostrophes but they come up as back slashes. However, I also want them to be able to use backslashes.  The users are trusted but is it possible to allow these characters whilst also preventing the possibility of an SQL injection?


Find all polynomials that fix $\mathbb Q$ and the irrationals

Problem: Describe all polynomials $\mathbb{R}\rightarrow\mathbb{R}$ with coefficients in $\mathbb C$ which send rational numbers to rational numbers and irrational numbers to irrational numbers.


Integral element in $\mathbb{Q}(\sqrt{2})$ over $\mathbb{Z}$ has form $m+n\sqrt{2}$

I have studied about integral element. And I am not clear about an example.  Could you please help me explain about it?  Let R is a subring of S. $s \in S$ is integral if $s$ is a zero of some monic polynomial in $R[x]$.  Example:  Every elements $s=a+b\sqrt{2} \in \mathbb{Q}(\sqrt{2})$ that is integral over $\mathbb{Z}$ is in $\mathbb{Z}[\sqrt{2}]$.


Suppose that we have some group G in which the following holds for all $x $ belongs to G: $x^{-1} =x$. Prove that G is abelian.  How would you guys solve this one?


I know the matrix differentiation of $x^TAx$ is if A is symmetric is 2Ax. I saw that some people write as $2x^TA$. Are these two results the same?  I am not sure how they are same. Can anyone explain to me..


A question about the room of requirement

The room of requirement is supposed to fulfill the seeker's needs. Voldemort needed to hide his Hocrux where none could reach. Now how come Harry Potter could find the Hocrux hidden in the room of requirement?. Is the magic of the room limited to time?  Suppose someone says I need a place to hide where none could reach before hiding. If another person enters the room and after saying I need that particular thing to be found. What would happen then ?


In the opening scene of Star Wars:  Episode IV:  A New Hope, as 3P0 and R2D2 are scuttling about the ship, 3P0 says:     "There'll be no escape for the Princess this time".     Obviously, he knows who Leia is.  But later, when Luke removes R2's restraining bolt, inadvertently causing him to play back part of Leia's secret message, Luke asks who the woman in the hologram is, and 3P0 says:     "I'm afraid I'm not quite sure, sir... I think she was a passenger on our last voyage. A person of some importance, sir -- I believe."   Now, R2 doesn't trust Luke yet, and deliberately avoids playing the full message for him.  But 3P0 trusts Luke immediately, and actually chides R2 for his insolence, reminding him that Luke is now their master, and therefore deserves their obedience and respect.  So why does 3P0 hide the princess' identity from Luke?  Even more important, why does he actively lie to Luke?      Note:  I know that some people will claim that 3P0 knew that Leia was important, and that there was a princess onboard the Tantive IV, but he didn't necessarily know that Leia was the princess.  This is extremely unlikely.  Wookieepedia says that the Tantive IV held about 85 passengers and crew, a relatively small number, which makes it very likely that 3P0 would have known who the princess was.  It also seems unlikely that 3P0 would show such concern about someone he has never met.  If he doesn't know the princess, why single her out as a special cause for concern, as opposed to all the people he does know?  He apparently belongs to Captain Antilles - if he didn't know the princess, wouldn't he say "There'll be no escape for Captain Antilles this time"?


Why do some user profile photos display a larger thumbnail and description and others don't?

Sometimes the profile picture thumbnail that appears below an answer is converted into a larger picture and description, sort of a tooltip, upon mouseover, while other pictures don't display that behavior.  Below I just took a random profile to show the described behaviour.  Before mouseover:    During mouseover:     Is that intentional? If yes, what are the criteria used to differentiate whether to display the enlarged version or not?


Number of homomorphisms $f:S_3 \to S_3$ when $\ker(f)=(1)$.

I am finding the number of homomorphisms $f:S_3 \to S_3$ when $\ker(f)=(1)$.  By first isomorphism theorem, $$S_3/Ker(f)=S_3/(1) \simeq f(S_3)\subset S_3.$$i.e, $f:S_3 \to S_3$in this case. Now any element $x \in S_3$ goes to $f(x) \in f(S_3)=S_3$.  Also $O(f(x)) |O(x)$.   The $identity$ permutation  $(1)$ maps to $(1)$ as $1|1$;  order $2$ elements maps to order $2$ elements, i.,e., $\{(12),(13),(23) \} \to \{(12),(13),(23) \}$ in $3!=6$ ways.   But the problem occurs with the order $3$ elements, $(132)$ and $(123)$.   We can have $f((123))=(123)$ or $f((123))=(132)$  and $f((132))=(132)$ or $f((132))=(132)$.  So here total $2!$ ways.  Hence total $6 \times 2=12$ homomorphisms  from $S_3 \to S_3$  if $\ker(f)=(1)$.  Is it true?    Edit:  Why  we cannot get $f((123))=(132)$ or $f((132))=(123)$ ?


How can I see my IP address on Ubuntu? I used   ifconfig eth0   but it only displays HWaddr and I don't see where the IP address is.


how can i remove all cookies from browser

I can do logout but at that time localhost cookies folder are not clear that's why my site user is not logout properly.  <li>        <button id="btnLogoff" onclick="deleteAllCookies()">LOGOFF / logout</button>   </li>  <script>                             function deleteAllCookies() {                                 var cookies = document.cookie.split(";");                                  for (var i = 0; i < cookies.length; i++) {                                     var cookie = cookies[i];                                     var eqPos = cookie.indexOf("=");                                     var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;                                     document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";                                 }                             }                         </script>