How to recover from terminal custom setup

I installed ubuntu 12.04 and I added "Terminal" to the launcher bar, the default size of the terminal is a bit small, after some googling here is how I made the disaster change:   At HUD menu, type "preference" and I see the option of Edit > preference, this is as I expected After I clicked the option, I forget the exact steps, but somehow I came to some configuration panel and there is a checkbox for terminal "custom" and I checked it now an input box is enabled and I type gnome-terminal --geometry 160x50   Now the problem comes, whenever I click the terminal button at the launcher bar, new terminal windows pops up endlessly from everywhere, I cannot do anything any more except logout or shutdown.  The weird thing is, after I come back, I cannot get that Edit > preference any more when I type "preference" in HUD, I tried "Edit", "preference".   To be clear, I still can use the computer as long as I do not click that terminal button, but I really want to use terminal to run commands.  Help is appreciated greatly!  Update -   OK, figured out.  Go to /home/jibin/.gconf/apps/gnome-terminal/profiles/Default and open that xml file, I can see the options I changed at the GUI, remove them and terminal runs good.  The preference HUD is back also, it is actually Profile Preference and it is only available when terminal is open.  Continue my ubuntu-ing...


Is an obstacle obscuring the EHT's view of Sagittarius A- star?

The Event Horizon Telescope programme would naturally like to be able to capture Saggitaius A-star. I read an article over a year ago, which seemed to suggest there was an obstacle obscuring the view (possibly a cloud of interstellar matter, but I cannot recall). Is it indeed the case that something is obscuring the view of the EHT?


What is maximum likelihood estimation in logistic regression?

Can you please explain in simple way.  Is it so important in logistic regression?


I want this font:    But everything I've tried makes ugly pseudo-times new roman font in comparison. What I've tried based on the research I've done so far;   \usepackage{mathptmx} \usepackage{times}   I use Windows 7.


My document has lots of extra whitespace appearing between various elements. The problems appear around one macro which appears multiple times. After every line in the macro, I've placed %'s, however, extra white spaces are still appearing.   What method can I use to track what is causing these white spaces? Is it possible that items such as ifstrequal (from etoolbox), macros referenced inside macros,  mathmode-textmode switching, glossary entries, \pageref's and other cross-referencing and labeling commands. or indented space before code will cause these problems?


Closed form for the integral \[\int_{0}^{\infty}e^{-ax}e^{-x^{4}}dx\]

Good afternoon to everybody  Could you please help to get a closed form of the integral above  where a is a positive real number.  A form based on hypergeometric functions will be also considered as closed form  Best regards


Unable to add event listeners to elements rendered after a JSF Ajax update

I need to add an event listener on paste to all elements with a specific class.   I used this simple javascript:  var fields = document.getElementsByClassName('ui-inputfield');   to get all the elements, and then for each element this one:  addEventListener('paste', handlePaste);   Where is the problem:  The funtion starts on page load, but at that moment, i don't have all the elements rendered.  When some conditions render another element with that class, this element doesn't have the paste event handled.  I use Primefaces to render or not the elements.  Someone can suggest any solution?  Thanks in advance!


Do frontpage questions learn from user preferences?

I just realized that my Stack Overflow frontpage is filled with Android & other Favorite Tags. I tried to look it up from Chrome's incognito mode and it's quite different than when I'm logged in.  Are frontpage questions really different for logged in and non logged in users?


Task bar remains visible with "Auto-hide the task bar" checked in Windows 7

It's about time that I figure this out. I can say with a pretty high confidence that I have experienced this issue in all consumer versions of Windows since XP.  I keep "Auto-hide the task bar" checked to maximize screen real estate. Every once in a while, the task bar will refuse to hide while individual windows will continue to act as if that option is checked (by falling under the task bar).  For years, I have fixed this by rebooting. Of course, I cannot predict the timing or frequency of the problem, so the process becomes burdensome.  I want to know how this can be fixed without rebooting. It has affected my on multiple machines using multiple versions of Windows, so I cannot be the only one who is bothered by it.  Can anyone help me solve this?


What precautions should be taken after the process of cooking?

Food that is being cooked/boiled will possess no chance for the virus to stick to them while cooking. But what precautions should be taken after the process of cooking?


What does "were to" mean here?     Indeed, I do not believe she could carry on a deception if she were to try, and if she did she would certainly be found out very quickly, for such a line of action is altogether foreign to her nature.


How to format data so that it can be stored in a mysql database

I am trying to store some data in a mysql database through a php script. The data that I am trying to store is encrypted and so this means that it stores something like this:  '$ñŠN4Åßv4ñ•ÜÅØµÙÜqÚö4Þ§ƒÑìèêù¬a+µºeN¶†)‰ož¥´™³¯BâPqt‡š3ÊØyGyŠí!¬‚ƒý`,È-SFn…,˜EïÕ¬_¯ ÛÆ1y©aœ«#˜¼öe÷·2,¢‹éUËx‰0ý`ÎªÄÅŒ1²ljìí -{6“6{ÊÜ¤^3ùˆ-G¹'   However, when I try to construct my query, I get an error connecting to the database as these encrypted values sometimes have quotation marks (' or ") and commas meaning that the query is wrongly interpreted.   Is there a way that I can ignore the commas and quotes in this data so that my query is properly interpreted and so a value like the one above can be stored?   Many Thanks.  (My query works when I simply put in plaintext and no encrypted data)


How can I fix "Connection timed out" when connecting to a server after watching youtube or taxing my computer

I have a major issue that just popped out of nowhere: After I watch Youtube or do intensive activity on my computer, when trying to connect to my favorite server I get the error      java.net.ConnectException: Connection timed out: no further information: play.opcraft.net/31.220.14.118:25565   I have searched on Tom's Hardware and the Minecraft Forums for common solutions like adding inbound UDP and TCP rules for port 25565 but to no avail. Others said turn the chunk render down to a low setting, but that also didn't work. I'm honestly out of tricks and don't know how to solve it.  This just started happening about a week ago and its never done it before. I've tried to reset the .minecraft folder and it didn't work.   The only thing that does work is restarting my computer, which is getting annoying every day. If someone has a solution, can you please help me.


Fundamental Theorem of Algebra - an elementary complex analysis proof?

We begin by assuming that a non-constant complex polynomial $$p(z)=a_n z^n+a_{n-1}z^{n-1}+...+a_1 z+a_0,$$ where $a_0 \neq 0$, doesn't vanish in $\mathbb{C}$. Therefore $1/p$ is also an analytical function everywhere. Note that $(p(z)-a_0)/z$ is a polynomial and therefore, due to Cauchy's theorem, the following integral must be zero.  $$\int_{S_r^1}\frac{(p(z)-a_0)/z}{p(z)}dz=\int_{S_r^1}\frac{a_nz^{n-1}+a_{n-1}z^{n-2}+...+a_1}{a_nz^n+a_{n-1}z^{n-1}+...+a_1 z+a_0}dz=0.$$  On the other hand  $$\int_{S_r^1}\frac{a_nz^{n-1}+a_{n-1}z^{n-2}+...+a_1}{a_nz^n+a_{n-1}z^{n-1}+...+a_1 z+a_0}dz$$  $$=\int_{0}^{2\pi}\frac{a_n(re^{i\theta})^{n-1}+a_{n-1}(re^{i\theta})^{n-2}+...+a_1}{a_n(re^{\theta})^n+a_{n-1}(re^{i\theta})^{n-1}+...+a_1 (re^{i\theta})+a_0}(ire^{i\theta})d\theta$$  $$=\int_{0}^{2\pi}i d\theta - \int_{0}^{2\pi}\frac{a_0 i}{a_n(re^{i\theta})^n+a_{n-1}(re^{i\theta})^{n-1}+...+a_1 (re^{i\theta})+a_0}d\theta$$ $$=2\pi i -\int_{0}^{2\pi}\frac{a_0i}{p(re^{i\theta})}d\theta.$$  Let $r \rightarrow \infty$ and the integral approaches value $2\pi i$ - a contradiction. Therefore $1/p$ can't be entire and $p$ must vanish somewhere in the complex plane.  EDIT: I have changed this post and deleted the idea that the integral $\int_{\partial D_r}\frac{(p(z)-a_0)/z}{p(z)}dz=0$ could be evaluated with the fundamental theorem of calculus. Now, as it stands, this proof is essentially the same as the one that Mr. José Carlos Santos points out in his comment.


Example of a Borel set that is neither $F_\sigma$ nor $G_\delta$

I'm looking for subset $A$ of $\mathbb R$ such that $A$ is a Borel set but $A$ is neither $F_\sigma$ nor $G_\delta$.


Why is $\{\emptyset\}$ not a subset of $\{\{\emptyset\}\}$?  It contains this element, but why is it not a subset?


What is wrong in calculation of the derivative by this method?

$$ y = x^2 $$ $$   y = \underbrace{x+ x+\cdots +x}_{x\text{ times}}$$ $$\frac{dy}{dx} =\underbrace{1+ 1+\cdots +1}_{x\text{ times}} $$ $$\frac{dy}{dx} = x$$  But the real answer is obviously $2x$. I know that I am making some kind of huge mistake but just can't find out where.


How to replace these characters "[" and "]" using regex?

I have a string like this  String myString = "I love [stackoverflow]";   What I want to do is to replace the character "[" to  and the character "]" to  to change the color of the word stackoverflow to red.  So the expected string result is "I love stackoverflow"  I am new in regex so I tried like this  String myString = "I love [Stackoverflow]";  myString.replaceAll("[",).replaceAll("]","");   but seems not the correct way because the android studio says      unclosed character class   What is the correct regex of that single character?


Proof that a polynomial is irreducible for all $n \ne 4$.

I am working on the following proof:     Prove that $f_n(x)$ is irreducible over $\mathbb Z$ for all $n\in$ Z, with $n\not=4$, where $f_n(x)=1+(x-1)(x-2)\cdots(x-n)$.    I found that $f_4(x)$ can be factored into $(x^2-5x+5)^2$.  I was thinking of proving cases, 1, 2, 3, and 5, and then performing induction to get the rest, but I have come to a roadblock. After assuming irreducibility in the $k^{th}$ case, I arrive at:  $f_{k+1}(x)=1+(x-1)(x-2)...(x-k)(x-k-1)$.   I honestly have no idea how to proceed from here, or if induction will work for this proof.   Thanks for any ideas.   -MathUser3


I'm experiencing some trouble with the width property of CSS. I have some paragraphs inside a div. I'd like to make the width of the paragraphs equal to their content, so that their green background looks like a label for the text. What I get instead is that the paragraphs inherit the width of the div father node which is wider.     #container {   width: 30%;   background-color: grey; }  #container p {   background-color: green; }

Sample Text 1

Sample Text 2

Sample Text 3


Why do paramaters of \renewcommand need to double up the # within a \foreach

Introduction: When you use \renewcommand within another macro or environment, one needs to double up the ## to access the parameters of the inner macro.  This serves as a way to distinguish the inner macros ##1 with the outer macros #1 (even if the outer macro does not have any parameters, it provides for error checking). For example: \newcommand*{\OuterCommand}{%     \renewcommand*{\SomeCommand}[1]{\color{red}##1}%     .... }%    The references below provide more details on this. Issue: It appears that the same doubling up of the # is needed within a \foreach loop as illustrated in the MWE below. This took me quite some time to figure this out as the error message that the MWE below gives is:  Illegal parameter number in definition of \pgffor@body  This was within a very deeply nesting of \foreach loops, so I was sure the problem was that I was nesting the \foreach too deeply.  Surprisingly, if you skip past the error, the output is still correct, so this made it even harder to locate the problem. Questions:  Since the \foreach does not have parameters like #1 (as \newcommand does), why is it necessary to double up the # within a definition within a \foreach? How is that the output is still correct, if you simply ignore the error and hit return to continue processing?  References:  . . .  Code: \documentclass{article} \usepackage{xcolor} \usepackage{pgffor}  \newcommand*{\MyList}{A,B,C}% \newcommand{\SomeCommand}[1]{#1}%  \begin{document} \foreach \x in \MyList {%     \renewcommand*{\SomeCommand}[1]{\color{red}#1}%  Using ## here eliminates the error.     \par\SomeCommand{\x}% }% \end{document}


RegEx validator for my JSON response incoming from REST webservice

I want to create RegEx validator for my JSON response data, but I could not create successfully. What I am doing wrong? Please help me in this regards, thanks.  If service returns an error, response json must be as follows;  {  "status":"error",  "error":{    "connection timeout"  } }   If service returns a success, response json must be as follows;  {    "status":"success",    "result":{       "username":"msmumbucoglu",       "password":"123456",       "name":"Hacked By Mehmet:)"    } }   My regex is as follows:  (?:"status":")|(?:"result":")|(?:"error":")(.*?)(?:")


I want a single word embedded in whole logo. How do i do it in adobe illustrator?  I want to design a logo like this. Kindly help me


I'm very new to Ubuntu and Linux in general. I'm using Ubuntu 14.04 and I wish to downgrade PHP version 5.5.9 to 5.3.8 but I'm stuck because I can't find a tutorial for exactly this.


Stanford: "Objects in spacetime all move at constant speed $c$." Are they right?

In this , it is stated: Likewise, objects in spacetime all move at constant speed c in spacetime but if you change its direction, say by moving at speed v in the x direction, then spatial speed will change and so will the speed along the ct direction. Again, its total speed will still be c through spacetime.      Brian Green of Columbia University also says the same thing, as do many others. Are they right?


How did Harry break the Elder Wand in Deathly Hallows Part 2?

The Elder Wand in the Harry Potter series was considered to be the most powerful wand, does that make it indestructible? How did Harry just snap the Elder Wand as if it was a thin wooden stick?


What are some good tactics for the early game in Risk?

In general what do you recommend at the beginning of the game?


How do I programmatically set the value of a select box element using JavaScript?

I have the following HTML <select> element:  <select id="leaveCode" name="leaveCode">   <option value="10">Annual Leave</option>   <option value="11">Medical Leave</option>   <option value="14">Long Service</option>   <option value="17">Leave Without Pay</option> </select>   Using a JavaScript function with the leaveCode number as a parameter, how do I select the appropriate option in the list?


Schrodinger equation using relativistic kinetic energy

I have seen work with introducing relativistic corrections to the momentum term of the Hamiltonian by taking higher order terms in the Taylor series, but do people work with $H = \sqrt{P^2 c^2 - m^2 c^4} - mc^2$ where $P$ is the ordinary spatial momentum operator? If not, why isn't this an interesting/useful case?  Note: of course this is just the free particle case. This is the simplest case, which is why I'm asking about it.


How can I minimize any browser window using a code (for example 'javascript') ? I would like to minimize browser in infokiosk.


I have been desperate to resolve this problem as I am not being able to install certain programs.   my computer says that I have broken packages:   The following packages have unmet dependencies:  python3-requests : Depends: python3-chardet (>= 2.2.1) but 2.0.1-1 is to be installed E: Unable to correct problems, you have held broken packages.   But when I check in synaptic manager i can't find any broken packages. I can't re-install python3-requests for some reason. And for some reason all the other steps to clean up unmet dependencies or broken packages such as sudo apt-get install -f, autoremove, upgrade, etc don't seem to work.   Please someone help!


Use of unused pairs in cat5 ethernet cables?

Cat5 ethernet cables use only 2 pairs for Ethernet what are the other 2 pairs for ?  Pin Color               Function 1   White with Green    +TD 2   Green               -TD 3   White with Orange   +RD 4   Blue                Not Used 5   White with Blue     Not Used 6   Orange              -RD 7   White with Brown    Not Used 8   Brown               Not Used


Is there a Wine equivalent for Android apps?

As Android is gaining more and more users every day (and Windows losing some), i consider reasonably fair for me to ask: Is there ANY Wine equivalent for Android apps?  I'm not asking for native linux support for apk packages, just for a non-emulator like Wine is.  Touch-interface hardware is getting cheaper every day, and Android being king there, is just natural that all programmers keep on rushing into making Android apps. In the last year alone i've seen most famous software getting implemented in Android: Photoshop, Autocad, Revit, Pixlr, etc    I'm not an Android developer, not looking for an android-sdk, just regular user looking to use certain android apps in Ubuntu. Typical example: Autocad and Photoshop - neither one working properly under wine, but having Android variants. I'm hoping that Android being linux, it could be more easy to adapt Android to Ubuntu code, than adapting Windows to Ubuntu code.


Android_Eclipse Code is not acknowledging if statement

I have a very basic android app that has 1 tab, with three sub sections on it. Section 1, 2, and 3. The code below tells the app to display "1", "2", or "3" in a string depending on which section is selected. I added an if statement to see if I could alter the output, but it appears to be ignoring the condition. When I debug the code using logcat it shows the value of dummyTextView is "1", but it does not step into the condition and change it to the "Peeshaw" line i created. Anyone know why this is happening?  @Override         public View onCreateView(LayoutInflater inflater, ViewGroup container,                 Bundle savedInstanceState) {             View rootView = inflater.inflate(R.layout.fragment_main_dummy,                     container, false);             TextView dummyTextView = (TextView) rootView                     .findViewById(R.id.section_label);             dummyTextView.setText(Integer.toString(getArguments().getInt(                     ARG_SECTION_NUMBER)));              if (dummyTextView.getText() == "1")             {                 dummyTextView.setText("Peeshaw");             }              if (dummyTextView.getText().toString() == "1")             {                 dummyTextView.setText("Peeshaw");             }              return rootView;         }


Probability that it is raining or snowing but not both?

It can either rain, or snow, or do both, or neither. There is a $15\%$ chance that it is snowing right now. There is a $10\%$ chance that it is raining right now. Each is independent of the other. What is the chance that it is either raining or snowing right now, but not both?


Will my iPhone show me the date stamp of a photo?

I'm I missing something basic or is there no way to see the the date stamp on a pictures taken with or synced to the iPhone?


I am trying to install Nvidia drivers on Red Hat  Why am I getting the following error:  rpm -i NVIDIA_kernel-1.0-2880.rh62.i386.rpm  error: Failed dependencies:     kernel = 2.2.14-5.0 is needed by NVIDIA_kernel-1.0-2880.rh62.i386 [root@INEICP-EPM-W134 Downloads]# uname -a Linux INEICP-EPM-W134 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux   I have kernel 2.6. WHy is it crying about kernel 2.2 ?


This just blew my mind away!  I was watching a video about imagining the fourth dimension and the narrator said that little line.  Can some people elaborate on this.  Also please keep it simple not too complicated.  Thank you!


Who decided that p value should be less than 0.05 and why?

In many scientific fields, a p value less than 0.05 is considered significant, pointing to real difference in reality, whereas anything above it cannot be accepted (i.e. null hypothesis cannot be rejected, which means your results cannot be accepted for publication), From a perspective of pure statistics, this threshold of p value is completely arbitrary. Why have the scientific community settled on this value, and is willing to reject the null hypothesis only for for anything with a probability less than 5%?


Is it possible to run an x86 binary on an ARM processor?

Is it possible to convert/recompile an already compiled x86 binary into an ARM binary?   I'm using a  with a command-line Ubuntu (Maverick) and want to run a  server but the x86 executable they supply cannot be run on the hardware as far as I can tell (most likely due to differing architecture).  Unfortunately I don't have access to the source to allow me to recompile it natively.  If not, is there any other way I can get the binary to run (emulation for example)?


How to modify width of "wire" material type

I'm struggling to model my objects into a 90's retro vector style, with the wireframe and low poly look.    Freestyle won't render in a game mode, and it seems to use a tremendous amount of time just to render simple black outlines around my mesh faces.  It seems if I create two materials, one as "wire" and the other as a surface - it does the trick, however it's only 1 pixel thick, and seems to get lost.  When I pan around different angles, the matte material seems to take over the wireframe material.  Does anyone know how to modify the thickness of that wire attribute in the materials?    I don't want to create a whole different mesh object for the wireframe effect, that the blender previewer seems to handle gracefully by default in preview mode. The render animation seems to do a whole lot of extra work to render frames, and all I want is a retro 90's cartoon, and possibly do something in simulator / game mode.


List of tables, db schema, dump etc using the Python sqlite3 API

For some reason I can't find a way to get the equivalents of sqlite's interactive shell commands:  .tables .dump   using the Python sqlite3 API.   Is there anything like that?


MySQL: Conditionally selecting next and previous rows

You see how at the bottom there're links to the next and previous articles ("Unprepared For Divide_By_Zero" and "A Completely Different Game")? How do I do that, but selecting the next and previous non-private articles? This works for selecting the next article:  SELECT * FROM articles WHERE id > ? AND private IS NULL   But I cannot find a way to select the previous article.  What is the proper/efficient way to do this, preferably in one query?


How to remove windows 7 from windows 8 dual-boot?

I installed Windows 8.1 on the same hard disk partition as windows 7. Now I have this problem - I cannot remove Windows 7 from this boot screen. How to do it? Thanks in advance!


Functional Equation involving derivatives and time-steps

I am attempting to solve the equation  $$f(x + 1) = f'(x)$$  for distributions $C \rightarrow C: f(x)$  My first guess to exploit the fact that this seems similar to identity  $$\sin\left( \frac{\pi}{2} - x\right) = \cos(x) = \frac{d}{dx} [\sin(x)] $$  I therefore assume my answer takes on the form:  $$Ce^{ax}$$   And now attempt to solve:  $$Ce^{a(x+1)} = Cae^{ax}$$  Yielding  $$e^{a}e^{ax} = ae^{ax}$$  Yielding  $$e^a = a$$  How do I extract a single solution, let alone the infinitely many complex solutions for $a$ that satisfy this equation?


Prove: if $a \mid c$ and $b \mid d$ then $ab \mid cd$

Can this be proven? Or does it need a counter example?      For any $a, b, c, d\in\mathbb{N}$, if $a \mid c$ and $b \mid d$ then $ab \mid cd$   Need help.


"I believe it's valid" vs. "I believe it valid"

Over on another network site, a helpful user corrected the grammar of .  The answer now says     I believe it's valid.   where I originally wrote     I believe it valid.   Is the original sentence gramamatically (or at least idiomatically) correct or do I absolutely need a form of 'to be' here? (What's more, is 'to be' a copula or an auxiliary verb if used like this?)  I am quite certain that I have seen sentences like the original one in the past, but I am uncertain where. Given that I am frequently exposed to the somewhat made-up English of authors in the fields of sci-fi and fantasy, I might have fallen into a trap here.  Edit: I don't doubt that the correction is valid and enhances readability.


Say I have a script that has:  command $1   Also say command has an optional parameter so it could also be command $1 $2.  What happens if $1 includes a space here (let us assume $1=A B)? Will command be interpreted as command A B, or command A\ B where A B is a single variable?


How to read the last row with SQL Server

What is the most efficient way to read the last row with SQL Server?  The table is indexed on a unique key -- the "bottom" key values represent the last row.


Django: multiple models in one template using forms

I'm building a support ticket tracking app and have a few models I'd like to create from one page. Tickets belong to a Customer via a ForeignKey. Notes belong to Tickets via a ForeignKey as well. I'd like to have the option of selecting a Customer (that's a whole separate project) OR creating a new Customer, then creating a Ticket and finally creating a Note assigned to the new ticket.  Since I'm fairly new to Django, I tend to work iteratively, trying out new features each time. I've played with ModelForms but I want to hide some of the fields and do some complex validation. It seems like the level of control I'm looking for either requires formsets or doing everything by hand, complete with a tedious, hand-coded template page, which I'm trying to avoid.  Is there some lovely feature I'm missing? Does someone have a good reference or example for using formsets? I spent a whole weekend on the API docs for them and I'm still clueless. Is it a design issue if I break down and hand-code everything?


Does this spoof integral from a meme have a coherent solution $\int\frac {3x^3 -x^2 + 2x-4}{\sqrt{x^2-3x+2}}dx$

I ask because I have what I think is a solution, but it doesn't fit the spirit of the joke, which is to say, it doesn't produce anything like a pin.  The solution I get is the equation below:  $$-\frac{135\sqrt2\ln(3-2\sqrt2)+404}{16\sqrt2}$$  However, this solves to a transcendental number, beginning:  $$-2.98126694400553644032103778411344302709190188721887186739\cdots$$  So, I'm appealing for better or more informed solutions if I have made a mistake.  Does the equation solve to something nice and friendly, or is the whole thing just a wheeze?


Wine won't install, Does not have valid release file

I'm trying to install wine on Ubuntu Mate 18.04. Whenever I add the repository I get the error message      Blockquote E: The repository ' bionic Release' does not have a Release file.   N: Updating from such a repository can't be done securely, and is therefore disabled by default.   N: See apt-secure(8) manpage for repository creation and user configuration details.   It's given the same error message for a few other programs I've tried to install too. Is it because 18.04 is so new it doesn't officially support it yet?


I wanted to get the usage of There’s clarified. I have read sentences like:     There’s a lot of projects on that topic.   It appears to me that There’s applies to a lot of projects, rather than to the projects themselves. Is that right? If that’s the case, is     There’s many students standing there.   not grammatical?


i am really confused with the UTF-8, displaying "Ä", "Ö", "Ü" and such.   On my page i have a form where the user can enter a message. This text is supposed to be stored in a mysql database and loaded from the database to show on the screen.  These symbols are not properly stored in the mysql database and if i manually change them in the database they are not printed properly after i fetch them. I dont understand how to get this to work.   mysql_set_charset("utf-8");Doesn't work somehow, and i probably dont know how to use it properly. Same with the encoding / decoding. Could you please enlighten me on the concept of how to properly handle those "Umlauts" and the UTF-8?  Thanks!


Integral involving logarithm: $\int_0^\infty \frac{ \ln x}{(x+a)(x+b)} dx$

How to solve the following integral $$\int_{0}^{\infty} \frac{ \ln x}{(x+a)(x+b)} dx,$$ where $a,b>0$ and $a \neq b$. I was looking for some kind of substitution. However, I don't see an obvious one.  Thanks!


Why does the lake surface appear darker in some areas?

What causes the surface of the lake to appear darker in some places?   Firstly, I know that it's not fishes that cause it. Secondly, the dark surfaces move from time to time and thus are not associated with the depth of the water or the structure of the lake bottom. Lastly, I may say they are due to a kind of ripple distortion. What causes this distortion and what is its mechanism?  Please, provide more explanation than "the wind", for example.  In this photo, look at the far area; it's darker somehow.


Flash Player on Ubuntu 16.04 firefox no video

I have ubuntu 16.04, firefox version 47. and according to this page  my flash player version is 21.0.0.197.    It was working fine till about a week ago when some updates were installed.  Unfortunately i did not note what they were.   I have no video on firefox.  The sound works fine,  but in the flash box is just a black screen.  I cant even view the settings panel.    I followed the directions here  ,  did a purge first,  then installed.  Same issue.  So I tried the install that I found on a few pages.   sudo add-apt-repository ppa:nilarimogard/webupd8   No good there also.  Note: Chrome works fine,  its just not working in firefox.


What's the meaning of "new" in this C++ code

I know this may not be a very specific question title, but I don't really know how to ask in my situation, sorry for that.  Here is the code pieces I find from MSDN blog :  void construct(T* const p, const T& t) const {     void * const pv = static_cast<void *>(p);     new (pv) T(t); }   The "new" here looks strange to me, help me understand this, please.


I have searched the tutorials but have not been successful in understand them. The tutorials always mensionam concepts that I do not know. I would like to understand the basics of BibTeX.  By basics I mean:   How do I install BiBTeX? How to build a file in bib? For this question assume that I already have the bibtex format each reference provided by databases like MathSciNet. See observation 1 below. What I write commands in the file format. Tex to call call the format file bib? How to exploit the format of the bibliography that comes out in PDF? The commands are made in the preamble of the file. Arquifo bib or format. Tex? What must be the BiBTeX with biblatex? Is there any tutorial (in pdf or video) that teaches step by step how to operate BiBTeX?   Observation 1 I already have the bibtex format each reference provided by databases like MathSciNet:   @article {MR2373353,  AUTHOR = {Avila, Artur and Lyubich, Mikhail},  TITLE = {Hausdorff dimension and conformal measures of {F}eigenbaum {J}ulia sets},  JOURNAL = {J. Amer. Math. Soc.},  FJOURNAL = {Journal of the American Mathematical Society},  VOLUME = {21},  YEAR = {2008}, NUMBER = {2},  PAGES = {305--363},  ISSN = {0894-0347},  MRCLASS = {37F35 (37F10 37F25)},  MRNUMBER = {2373353 (2009i:37112)},  MRREVIEWER = {Feliks Przytycki},  DOI = {10.1090/S0894-0347-07-00583-8},  URL = {http://dx.doi.org/10.1090/S0894-0347-07-00583-8}, }


Range of f(x) = $\frac{\sqrt3\,\sin x}{2 + \cos x}$

Can you give any idea about the range of the following function?  $$f(x) = \frac{\sqrt{3}\,\sin x}{2 + \cos x}$$


Why singularity in a black hole, and not just "very dense"?

Why does there have to be a singularity in a black hole, and not just a very dense lump of matter of finite size? If there's any such thing as granularity of space, couldn't the "singularity" be just the smallest possible size?


I'm taking an intro course in Probability theory, and we have just defined expectation for a random variable as $E(X) = E(X^+) - E(X^-)$ if either of them is finite (extending the definition first from simple positive rv to positive rv, and then to all rvs, positive or not).  Then I came across this result for the expectation of a positive random variable. Let $(\Omega, \mathcal{F}, P)$ be a probability space and $X \ge 0$ be a positive rv:  $$ E(X) = \int_{\Omega} X dP = \int_\Omega \int_0^\infty \mathbf{1}_{\{X > t\}} dt  \, d P = \int_{0}^\infty P(X > t) dt. $$ Actually, I'm familiar with this result, and the proof I've seen before involves converting $\int^\infty_0 P(X > t) \, dt$ to a double integral. What I'm struggling with is the step $ \int_{\Omega} X dP = \int_\Omega \int_0^\infty \mathbf{1}_{\{X > t\}} dt  \, d P $, and also the formal definition of an expectation itself.   I have no previous with integration or a "hard analysis" background, and the material covered so far in the course I'm taking has only used $\int_\Omega X dP$ as a notational device for $E(X)$. In general, any pointers to literature or "intuitive" explanations are more than welcome.  Thanks in advance!


Data Loader login fails for sandbox instance

I am able to login to data loader for production instance however I am able to login to sandbox. I am adding the security token at the end too. I am using version 37 of data loader and windows 7.  When I try to login into data loader, I get a login error "Error:Check your username and password. If you still can't login, contact your Salesforce admin". I am sure that I am using the correct username and password. I am also adding security token at the end of password.


What does this number equal if it goes on forever? $$\frac{\frac{\frac{\frac{\frac{1}{2}}{\frac{3}{4}}}{\frac{\frac56}{\frac78}}}{\frac{\frac{\frac{9}{10}}{\frac{11}{12}}}{\frac{\frac{13}{14}}{\frac{15}{16}}}}}{\frac{\frac{\frac{\frac{17}{18}}{\frac{19}{20}}}{\frac{\frac{21}{22}}{\frac{23}{24}}}}{\frac{\frac{\frac{25}{26}}{\frac{27}{28}}}{\frac{\frac{29}{30}}{\frac{31}{32}}}}}$$ $$.$$$$.$$$$.$$  Treat the fraction in blocks, one divides what is under it, then that pair is divided by the next pair, those four are divided by the next four. ETC  Edit.  I'm reformatting as I can't read the original... aged eyes I guess ;-( but in deference to almagest's comment I am leaving the original too. $$\frac{\frac{\frac{1}{2}\Big/\frac{3}{4}}{\frac{5}{6}\Big/\frac{7}{8}}\Bigg/   \frac{\frac{9}{10}\Big/\frac{11}{12}}{\frac{13}{14}\Big/\frac{15}{16}}}   {\frac{\frac{17}{18}\Big/\frac{19}{20}}{\frac{21}{22}\Big/\frac{23}{24}}\Bigg/   \frac{\frac{25}{26}\Big/\frac{27}{28}}{\frac{29}{30}\Big/\frac{31}{32}}}   \cdots$$


I have an older trek 8500 aluminum bike with rigid forks and I would like to change them to be suspension forks. Is this possible? Btw the tire size is 26".


Simplification of nested module operations.

Can I simplify this formula to use only one module operation?     $$(x + (y \text{ mod } z)) \text{ mod }z$$   Intuitively I simplified it so:     $$(x + y) \text{ mod } z$$   This seems to do the same as the original. However, I don't know why it works nor if this is right.


Can I disable auto logon on windows 10 home

I recently setup a new computer for my parents with windows 10 home. I made two local accounts for them - no microsoft accounts. I also would like to keep them without a password. Problem is now that windows automatically signs in with the last used account. No lock/login screen.  I tried a number of answers from similar questions here but none worked. Since it's a home version there are no group policies and the method using task scheduler does not work because accounts with no password are not allowed to create such tasks.  Are there other options to force windows to show a user list on startup without setting passwords for the accounts?


Using the Selected Item from Combo box in If Statement In Java

How can i use the selected item from combo box in if statement (the combo box value is converted to string), the java compiler shows an incompatible type error , saying string cannot be converted to Boolean. Please help :) Thank You in advance.  Code:  private void btnSignInActionPerformed(java.awt.event.ActionEvent evt) {                                               String userid = txtUserID.getText();     String username = txtUserName.getText();     String usertype = cmboUserType.getSelectedItem().toString();      DBConnector dbcon = new DBConnector();     dbcon.connect();       if(dbcon.isUserExists(userid, username,usertype)){         if (usertype = "Customer"){            msg.showMessageDialog(             this,             "Login Successful",             "Login Status",             1);         OrganicFoods.Customer cust = new OrganicFoods.Customer();         cust.setVisible(true);          }         else if ( usertype = "StoreAdmin"){            msg.showMessageDialog(             this,             "Login Successful",             "Login Status",             1);          OrganicFoods.StoreAdmin S1 = new OrganicFoods.StoreAdmin();         S1.setVisible(true);          }          else if ( usertype = "Collection_Delivery_Officer"){            msg.showMessageDialog(             this,             "Login Successful",             "Login Status",             1);          OrganicFoods.Collection_Delivery_Officer cdo1 = new OrganicFoods.Collection_Delivery_Officer();         cdo1.setVisible(true);          }     }else{         msg.showMessageDialog(             this,             "Login Failure",             "Login Status",             0);      } }


Movie recorded on phone reports inconsistent number of frames when imported to blender (Blender 2.8 vs 2.9)

When I import same movie clip, recorded with my phone, in Blender 2.80 it automatically recognize 1278 frames with FPS 42.28 and that's correct, but blender 2.81 and above recognizes only 923. So when I render clip to frames I'm missing 355 frames although in sequencer when I slide through timeline, I can preview those frames. I tried to play with FPS and Base settings but with no luck. Does anyone know what's happening here? Thank You


$V = U_1 \oplus W = U_2 \oplus W = \dots = U_k \oplus W$

Let $V$ be a finite dimensional vector space and let $U_1, U_2, \dots, U_k$ be subspaces of $V$ such that $\dim U_1 = \dim U_2 = \dots = \dim U_k$. Gotta show that there exists a subspace $W$ of $V$ such that $$V = U_1 \oplus W = U_2 \oplus W = \dots = U_k \oplus W.$$   I let $\dim V = n$ and let $\dim U_i = m$. I then tried taking the basis of all subspaces and extended to a basis of $V$ $$u_{11},u_{21},\dots,u_{m1},u_{12},u_{22},\dots,u_{m2}, \dots, u_{1k},u_{2k},\dots,u_{mk}, x_{mk + 1}, x_{mk + 2}, \dots, x_n.$$ I then let $W = span\{u_{11} +u_{12},u_{12} + u_{13}, \dots, u_{1 (k-1)} + u_{1k}, \dots, u_{m1} + u_{m2},u_{m2} + u_{m3}, \dots, u_{m (k-1)} + u_{mk}, x_{mk + 1}, x_{mk + 2}, \dots, x_n\}$   But this would be a hassle to show it is linearly independent when doing a direct sum with any of the $U_i$'s and when showing it spans $V$.   Is my method right at all? Is there an easier way? Please, any kind of aid or hints would be greatly appreciated.


I've placed two figures in the same heading Specification and Design but when I compile the document in TexStudio, the second graphic Proposed physio application prototype system architecture is shown under a different heading Results and Evaluation  Does anyone have any idea as to why?  This is the section of document where I've placed the two figures:  \subsection{Specification and Design} \label{sec:Specification and Design}   \begin{figure}[h] \caption{ Proposed project time line.} \centering \includegraphics[width=1\textwidth]{initial_timieline} \end{figure}      The platform being used for the application was initially proposed to be a Windows Universal application.But the C sharp wrapper being used to interface with the Myo arm band relies heavily on platform invocations which the Windows Universal application platform doesn't support. Owing to this the platform chosen for development was windows presentation foundation.     \begin{figure}[h] \caption{ Proposed physio application prototype system architecture, detailing flow of user input.} \centering \includegraphics[width=1\textwidth]{gesture_arc} \end{figure}     \subsection{Implementation} \label{sec:Implementation}    \section{Results and Evaluation}   Output:


How to evolve my pokemon in Pokemon go without the app making me go to the top of the pokemon list?

I seem to remember being able to rename, favorite, evolve, transfer, etc. my pokemon in Pokemon Go without the app making me go back to the top of the list but for some reason, the latest update makes me go back to the top of the list when I do any of the above actions to my pokemon.  How do I make it not do that and make the behavior like before?  The reason this is a big deal to me is before when I used my Lucky Egg, I could alphabetize my pokemons and evolve all my Rattatas quickly.  Now, I have to scroll back down my list to Rattata after each evolution.  I used to be able to evolve 65 or so pokemons for each egg.  Now, I'll bet I can't evolve more than 50 because of the delay.  Thanks in advance for your advice and help.


Why there's no article with 'Mexican' and 'an' with American in sentence:

"She’s Mexican. But she’s married to an American."   (Pimsleur English course)


How to Remove URLs from Google Search Engine

I have used so many things like url removal request and deleted the pages etc., but still the errors are shown in my webmaster tools.  How can I remove the urls completely from Google?


So I fell asleep during some quest, and had Ria as my follower. When I switched on today, she's nowhere to be found. Not my house, not in Jorrvaskr, and my load files date back too far and I'll lose my progress. I have fast travelled several times, and "waited in game" for over a week game time. The worst part is, I can't get a new follower, everyone tells me it seems I already have someone. So what do I do now? I'm using a PS4.


How can this sentence be translated into a logical expression?

"You cannot ride the roller coaster if you are under $4$ ft tall, unless you are older than $16$ years old."   $q$: ride the coaster  $r$: under $4$ft tall  $s$: older than $16$  It was my understanding that "unless" translates to "if not" therefore I came up with: $$\neg s \to (r \to \neg q).$$  However, the book gives this as the answer:  $$(r \land \neg s) \to \neg q.$$  Which makes sense, however I don't see where the "and" comes from. Does "unless" mean something different in this context?


Sum of Number of non-decreasing sequences

I know that the number of non-decreasing sequences of length $n$ and numbers in the sequence lying in the range $[l,r]$ is given by $$\binom{n+r-l}{n}$$  What is the formula to find the $$\sum_{n=1}^{N}{\binom{n+r-l}{n}}$$


We know that the trace of a matrix is a linear map for all square matrices and that $\operatorname{trace}(AB)=\operatorname{trace}(BA)$ when the multiplication makes sense.   On the , under properties, it says that these properties characterize the trace completely in the following sense: If $f$ is a linear function on the space of square matrices satisfying $f(xy)=f(yx)$, then $f$ and $\operatorname{tr}$ are proportional. A  of the page gives the justification, but I do not understand the logic of it. Thanks


What is the practice of dropping words from sentences?

Most instructions for equipment and software make a habit of shortening sentences by dropping words of certain parts of speech - usually definite and indefinite articles.  For example:     PULL (THE) LEVER TO OPERATE      CARS MAY BE TOWED WHEN (THEY ARE) PARKED ILLEGALLY      PLEASE USE (THE) OTHER DOOR   Is there a name for this custom? And what is the best way to describe it?


Is it possible to use \usetikzlibrary inside a figure?

It seems that whenever I use \usetikzlibrary in the context of \begin{figure}, the library is not loaded. I often put the content of my figures in separate files, and I'd like to place the library usage in the same file, but right now it seems I have to put \usetikzlibrary outsid the figure in another file. Is there any way to get the library to load from within a figure environment?


How to boot into Windows 8.1 using safemode?

I changed a setting on my Windows 8.1 PC and now the screen has gone black. Ive tried to get into safe mode using F8 / Shift-F8 but it never gives me safe mode.  All the guides on how to get into safe mode just state to do it through windows but as i disabled GPU Scaling on my AMD graphics card the screen is just black. I need to get into safe mode and re-enable GPU Scaling.  I've tried booting from Windows 8.1 disc and used repair PC that didn't work.  Also i tried restoring to an earlier version but that didn't work keeps saying cannot restore.  Really hope i don't have reformat the drive.  Anyone got any advice?


Can trim() and strip_tags() prevent sql injection in php?

Is using trim() and strip_tags() for preventing sql injection is as okay as PDO or Prepaid Statement? thre is another question on how to prevent sql injection. trim() and strip_tags() was not even discussed there. I dont know from where people saying duplicate finding about trim() and strip_tags() in the former question answer!? Go read the answers and my question again       $username = strip_tags(trim($_POST["username"]));      $password = strip_tags(trim($_POST["password"]));


"This site is all about getting answers. It's not a discussion forum. There's no chit-chat."

The  has this text:     This site is all about getting answers. It's not a discussion forum. There's no chit-chat.   It's probably an oversight and copied from the regular site tours. Can it be reworded/removed?  Right above that text, there's this:      So each community has a meta to discuss site-specific issues, and Meta Stack Exchange is for conversations about problems and ideas that affect the whole network.   Don't they contradict eachother?


Is RSA encryption with a private key the same as signature generation?

It is often said that RSA encryption of a cryptographic hash with a private key is the same as signing (signature generation). And that verification consists of decryption using a public key.  Is RSA encryption with a private key over a cryptographic hash equivalent to  signature generation?


Why aren't Martian Manhunter and Green Lantern in Justice League (2017) movie?

I can't imagine Justice League without Martian Manhunter and Green Lantern. My emotions are attached with this:    But, I am getting this:    Why did producers choose to not include Martian Manhunter and Green Lantern (they were also part of original seven members of Justice League in comics) in the movie?


Don't lower the review limit on Stack Overflow

I just reviewed 20 items in the close vote queue and got the message     Thank you for reviewing 20 close votes today; come back in 15 hours to continue reviewing.   Normally this is 40 items but .  Can this restriction be removed for Stack Overflow or better the actual queue size be considered since the queue actually contains more items than being displayed?


Prove $n < 2^n$ for all $n \geq 0$ using induction.

Please verify for me?  Base case: $n = 0 $  $0 < 2^0$  $0 < 1$. This is true.  Inductive step: Suppose $n \geq 0$. Assume $P(k)$ is true if $k = n$. We must deduce that $P$ holds for $k+1$.  $n < 2^n$  $n - 2^n < 0$  $(n+1) - 2^{n+1}$  $n+1 - (2^n \times 2)$  $n+1 - (2^n + 2^n)$  $n - (2^n + 2^n) + 1$  $n - 2^n - 2^n + 1$  $(n - 2^n) - (2^n-1)$  We know $(n - 2^n) < 0$, that is to say $(n-2^n)$ is negative.  For all values of $n \geq 0, (2^n-1)$ is always a non-negative number.  A negative number minus a non-negative number is always negative, so  $(n - 2^n) - (2^n-1) < 0$ is true.  $(n - 2^n) < (2^n-1)$.  $n < (2^n + 2^n) -1$  $(n+1) < 2^{n+1}$  So $n < 2^n$ for all $n \geq 0$.


Installation of own *.sty files in TeXstudio?

How do I have to include my own *.sty files in TeXstudio (with default setting, e.g. with PdfLaTeX)?  According to the log file TeXstudio uses TeX Live 2019 .  The *.sty files are organised in folders with separate subfolders e.g.  /beamer/base/themes/color/   /beamer/base/themes/font/   /beamer/base/themes/theme/  (the main *sty file ist located here, it include than e.g. corresponding color)   /briefe/ ……  and so on   kpsewhich –show-path ls-R shows the following path:  /usr/local/share/texmf /usr/share/texmf /usr/share/texlive/texmf-dist /var/lib/texmf   I have already tried to copy the *.sty folder into the first three paths as root and afterwards I executed sudo texhash.  Additionally I have created the subfolder /home/ich/texmf/tex/latex and tried to copy the sty-folder there, too, and executed texhash.  whereis texlive shows /usr/share/texlive.  kpsewhich texmf.cnf shows /etc/texmf/web2c/texmf.cnf. A comment inside it explains that /etc/texmf/texmf.d should be modified or own *.cnf should be used and then update-texmf should be invoked.  kpsewhich -var-value=TEXMFHOME shows ~/texmf.  kpsewhich -var-value=TEXMFLOCAL shows /usr/local/share/texmf.  I am using TeXstudio V 2.12.16 (Flatpak) on Linux Mint 19.3 Cinnamon.


Attribute data showing (Pop-up) in GeoSever

How can I show attribute value of shapefile in geodatabase?    <title>OpenStreetMaps and GeoServer</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">  <link rel="stylesheet" href="http://localhost:8080/geoserver/openlayers3/ol.css" type="text/css">
Text


nonexistent, non-existent or non existent?

I see various spellings of the same, which one is correct?  I have considered that the spelling might differ if it is British or American English, but as English isn't my native speak I have no clue.


Additive group of all polynomials in x with integral coefficients is isomorphic to $\mathbb{Q}^*$

Let G be the additive group of all polynomials in $x$ with integer coefficients. Show that G is isomorphic to the group $\mathbb{Q}$* of all positive rationals (under multiplication).  This question is from my abstract algebra assignment and I am unable to  prove it. I am not able to deduce what should I map   $a_0 +a_1 x + a_2 x^2 +...+ a_n x^n $ to so not able to proceed. Can you please give a hint?


Prove that any two cyclic groups of the same order are isomorphic?

Prove that any two cyclic groups of the same order are isomorphic.   Let the groups be $G,H$ with order $k$. Let $G=<a>$ and $H=<b>$. Thus we have $|a|=|b|=k$ and by definition, $G=\{a^0,a^1,...,a^{k-1}\}$ and $H=\{b^0,b^1,...,b^{k-1}\}$. Next I set up the bijection $\theta : G \rightarrow H: \theta(a^n)=b^n$. I think I should proceed by showing $\theta$ is an isomorphism but I'm not sure how to do that. What's a good way to go about showing $\theta$ is an isomorphism?


I tried to install Ubuntu by dual booting it with windows 10 technical preview. but when I started to install it I found that there was no option in Ubuntu 14.10 to dual boot it with windows 10. so plz can anyone help to dualboot ubnutu 14.10 with windows 10 technical preview.


I am trying to prove that if $a>1$ $x,y>0$, and there is $b$ such that $\frac{1}{a} + \frac{1}{b} = 1$ then xy $\leq \frac{x^a}{a} + \frac{y^b}{b}$  I have made several attempts, but I get to no answer. Is there any inequality that needs to be shown before?


I have just started a . I just got things going, and was about to install tmux, and was hit with the message...  Error: This command has to be run under the root user   Ok. I attempt to run  sudo dnf install tmux   And now I get hit with the error  <my username> is not in the sudoers file. This incident will be reported.   I , using a command called visudo. However, it appears that this command too also requires access to sudo.   visudo visudo: /etc/sudoers: Permission denied   And with sudo  sudo visudo <password prompt> <my username> is not in the sudoers file. This incident will be reported   So it seems like I need to change the sudoers file to be able to use sudo, but I cannot change the sudoers file without sudo. What do I do??


How to find the roots of $\frac{\sqrt{3}-1}{\sin x}+\frac{\sqrt{3}+1}{\cos x}=4\sqrt{2}$?

Find all $x$ in the interval $(0,\pi/2)$ such that $\frac{\sqrt{3}-1}{\sin x}+\frac{\sqrt{3}+1}{\cos x}=4\sqrt{2}$.  The options are (i)$\pi/9,2\pi/7$, (ii)$\pi/36,11\pi/12$ (iii)$\pi/12,11\pi/36$ (iv) All  I have been able to find one value of $x$, $\pi/12$.  How do I find the other root(s)?   My attempt:  $\frac{\sqrt{3}-1}{\sin x}+\frac{\sqrt{3}+1}{\cos x}=4\sqrt{2}$  or, $\frac{\sin\pi/3-\sin\pi/6}{\sin x}+\frac{\cos\pi/6+\cos\pi/3}{\cos x}=2\sqrt{2}$  or, $\frac{\sin(\pi/4)cos(\pi/12)}{\sin x}+\frac{\cos(\pi/4)cos(\pi/12)}{\cos x}=\sqrt{2}$  or, $\sin(x+\pi/12)=\sin2x$  or, $x=\pi/12$


An electron (negative charge) and a positron (positive charge) annihilate in pure energy. For an electron and a proton it is all similar, the different charge, the mutual attraction and the emission of EM radiation. What is the mechanism by which an electron and a proton do not annihilate, but stop their approach at some distance? To confine the answers, please do not refer to statements such as that the calculated energy levels are stable states. This is a consequence of the initial observations; the corresponding calculations only reflect the observations.


How do you get the Party girl in the mobile version of Terraria?


Dichotomizing Continuous Variables in Regression: Good or Bad?

I believe Dichotomizing(also called bucketing/binning) of continuous variable is not always a good idea. My colleague while building regression model always bins continuous variables and only keep dichotomous variable in the final model. My counter arguments to him   Lose lot of valuable information and reduce predictive power of variable May cause some customers to get probability score just based on intercept   His arguments   Dont have to worry about non-linearity and no need to transform variables   How can I convince him its not a good practise, is there any good research paper on this? What are the drawback of having only dichotomous variables in the final model?


I am getting null pointer exception while using .equals method in java

I have checked the positions of assembler array in this functions and they are not empty. But I am getting the following error Exception in thread "main" java.lang.NullPointerException  While debugging the .equals method is giving this exception. So please help in understanding this problem.  Here is the code snippet.  public static void lc(int i, String[][] assembler, String[][] mc) {         int x = Integer.parseInt(assembler[0][3]),j;         int flag;         for(j=0;j<13;++j) {             flag = 0;             if(assembler[j][1].equals("START") || assembler[j][1].equals("END") || assembler[j][1].equals("STOP") || assembler[j][1].equals("LTORG") || assembler[j][1].equals("EQU") || assembler[j][1].equals("ORIGIN")) {                 flag = 2;                 //System.out.println("Hi");             }             if(assembler[j][1].equals("ORIGIN")) {                 x = Integer.parseInt(assembler[j][3]);                 mc[j+1][0] = assembler[j][3];                 flag = 1;             }             if(assembler[j][2].equals("DS")) {                 x += Integer.parseInt(assembler[j][3]);                 mc[j+1][0] = Integer.toString(x);                 flag = 1;             }             if (flag == 0) {                 x += 1;                 mc[j + 1][0] = Integer.toString(x);             }             if(flag == 2)                 mc[j+1][0] = Integer.toString(x);         }         mc[j][0] = "null";     }


How to capture text that are inclosed between two same simbols?

I have a string:   'PROTEIN\t1\t0\ttr|Q6ZN40|Q6ZN40_HUMAN\t\t-1\t;;;;;'.    And I need to capture the text between two |. So it would be 'Q6ZN40'.   I tried this code for that:   re.match('|(.+?)|', string).group(0)   but it gives me an empty string: ''.   What is wrong with my code ? I presume that the regex is not correct but I don't understand why..


Why can't I access a directory even though I'm in the owner group?

So there's a user rtorrent:torrent which is in group media-agent.  Here is the command I'm trying to get working:  rtorrent@seedbox:/shared/storage$ cd books bash: cd: books: Permission denied   Even though the folder has permission 664:  rtorrent@seedbox:/shared/storage$ ls -al total 44 drwxrwxrwx 11 media-agent media-agent 4096 Aug 15 15:05 . drwxrwxrwx  8 root        root        4096 Aug 15 01:12 .. drw-rw-r--  3 media-agent media-agent 4096 Aug 15 15:15 books drw-rw-r--  2 media-agent media-agent 4096 Aug 15 15:03 cartoons drw-rw-r--  4 media-agent media-agent 4096 Aug 15 01:10 games drw-rw-r--  3 media-agent media-agent 4096 Aug 15 00:47 libraries drw-rw-r--  5 media-agent media-agent 4096 Aug 12 16:54 media-center drw-rw-r--  2 media-agent media-agent 4096 Aug  6 15:31 other drw-rw-r--  8 media-agent media-agent 4096 Aug 15 01:10 personnal drw-rw-r--  5 media-agent media-agent 4096 Aug 15 01:10 software drw-rw-r--  2 media-agent media-agent 4096 Aug  6 18:38 sync   Here is the group setup:  rtorrent@seedbox:/shared/storage$ getent group | grep 'media-agent' torrent:x:1005:vinz243,www-data,ftpuser,media-agent,nodejs,rtorrent media-agent:x:1007:vinz243,plex,deluge,rtorrent,root,nodejs nodejs:x:1008:media-agent


Does $1.0000000000\cdots 1$ with an infinite number of $0$ in it exist?

Does $1.0000000000\cdots 1$ (with  an infinite number of  $0$ in it) exist?


Change default code page of Windows console to UTF-8

Currently I'm running Windows 7 x64 and usually I want all console tools to work with UTF-8 rather than with default code page 850.  Running chcp 65001 in the command prompt prior to use of any tools helps but is there any way to set is as default code page?  Update:  Changing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCP value to 65001 appear to make the system unable to boot in my case.  Proposed change of HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun to @chcp 65001>nul served just well for my purpose. (thanks to )


I'm trying to build a simple app for Android can't figure out why my app keeps crashing I have traced it down to this line of code   WG.setRandomWord(words.get(rand.nextInt(words.size())));   I have check my logcat and it showing that my word file is not even being detected com.sagproductions.gamertaggenerator W/System.err: java.io.FileNotFoundException: words.txt: open failed: ENOENT (No such file or directory) but I have my file word file in the document structure.  for more context here is my code:  JAVA wordGenerator   package com.sagproductions.gamertaggenerator;   public class WordGenerator {     private String mRandomWord;     private int mRandomNum;      public WordGenerator(String randomWord, int randomNum){         mRandomNum=randomNum;         mRandomWord=randomWord;     }      public int getRandomNum(){         return mRandomNum;     }      public void setRandomNum(int randomNum){         mRandomNum=randomNum;     }      public String getRandomWord(){         return mRandomWord;     }      public void setRandomWord(String randomWord){         mRandomWord=randomWord;     } }     Java MainActivity    package com.sagproductions.gamertaggenerator;  import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView;  import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.lang.String; import java.util.ArrayList; import java.util.Random;  public class MainActivity extends AppCompatActivity {      WordGenerator WG;     private Button mSingleWordGenerator;     private Button mTwoWordGenerator;     private Button mThreeWordGenerator;     private EditText editText;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          mSingleWordGenerator = (Button)findViewById(R.id.button);         mSingleWordGenerator.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 generateWord();                 editText=(EditText)findViewById(R.id.editText);                editText.setText(WG.getRandomWord(),TextView.BufferType.EDITABLE);             }         });          mTwoWordGenerator = (Button)findViewById(R.id.button2);         mTwoWordGenerator.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {              }         });          mThreeWordGenerator = (Button)findViewById(R.id.button3);         mThreeWordGenerator.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {              }         });     }      public void generateWord(){         final File file = new File("words.txt");         ArrayList<String> words= new ArrayList<String>();         Random rand=new Random();          try(final Scanner scanner=new Scanner(file)){             while(scanner.hasNextLine()){                 String line = scanner.nextLine();                 words.add(line);             }         }catch(FileNotFoundException e) {             e.printStackTrace();         }         WG.setRandomWord(words.get(rand.nextInt(words.size())));     } }


Every rotation in 3D space can be defined by a rotation axis and an angle. Now let's say we have two rotations $R_1 (\text{(axis)}_1, \text{(angle)}_1)$, $R_2 (\text{(axis)}_2, \text{(angle)}_2)$.  I remember that Rotation operator is closed under composition, so $R_1 (R_2(\text{object}))$ will be a rotation again.  Does anybody know how to find the new axis and angle for $R_1R_2$?


How is the simplified version (below) of the Bromwich inverse Laplace transform integral derived?

I do not understand how the last equality is derived from the previous. Apparently the first term in the integral (involving cos) is equivalent to the second (involving sin)!! How so??  I DO understand how the integral range is halved (since F(s)* =F(s*);where F(s) is the Laplace transform of f(t), and *=complex conjugate.  And the imaginary part must equal zero, and is dropped in the last 2 lines...OK. Any help would be appreciated since this form is used often in numerical inverse Laplace transform algorithms. Thanks... M D Mill  [Note:f"hat"(s)= the Laplace transform of f(t), s=(a+iu)  [Note: This question has been asked before but not answered adequately, and I     have added some new specificity.]  \begin{align} f(t) &= \frac{\mathrm{e}^{at}}{2\pi j} \int_{-\infty}^{\infty} \bigl( \cos(ut) + i \sin(ut) \bigr) \hat{f}(a + iu) \, j\mathrm{d}u \\ &= \frac{\mathrm{e}^{at}}{2\pi} \int_{-\infty}^{\infty} \bigl( \cos(ut) + i \sin(ut) \bigr) \bigl( \operatorname{Re}(\hat{f}(a + iu)) + i \operatorname{Im}(\hat{f}(a + iu)) \bigr) \, \mathrm{d}u \\ &= \frac{\mathrm{e}^{at}}{2\pi} \int_{-\infty}^{\infty} \bigl( \operatorname{Re}(\hat{f}(a + iu)) \cos(ut) - \operatorname{Im}(\hat{f}(a + iu)) \sin(ut) \bigr) \, \mathrm{d}u \\ &\quad + i\frac{\mathrm{e}^{at}}{2\pi} \color{blue}{\int_{-\infty}^{\infty} \bigl( \operatorname{Im}(\hat{f}(a + iu)) \cos(ut) + \operatorname{Re}(\hat{f}(a + iu)) \sin(ut) \bigr) \, \mathrm{d}u} \\ &= \frac{\mathrm{e}^{at}}{2\pi} \int_{-\infty}^{\infty} \bigl( \operatorname{Re}(\hat{f}(a + iu)) \cos(ut) - \operatorname{Im}(\hat{f}(a + iu)) \sin(ut) \bigr) \, \mathrm{d}u \\ &= \color{red}{\frac{2\mathrm{e}^{at}}{\pi} \int_{0}^{\infty} \operatorname{Re}(\hat{f}(a + iu)) \cos(ut) \, \mathrm{d}u} \end{align}  These equations are from the web source:Abate and Whitt, 1995


Why would Google show the old title when it has indexed the page with a new title?

I changed the title and meta description of a web page.  It got re-indexed but still it shows in search results with the old title.  Why would this happen and how would we resolve it?


Are raindrops actually "shaped like tears" when they fall?

Raindrops are always pictured like this, people imagine they have this shape when they fall, but is this true? Doesn't this shape create too much drag? What shape do they really have? It would also be nice to know how is the actual shape formed regarding the flow of air.


In Cookie Clicker, there is an upgrade called "One Mind".  Besides giving the usual bonus to something (in this case grandmas), it comes with a red warning: "Note: The grandmothers are growing restless. Do not encourage them."  If you try to purchase it the page pops up a warning:      Warning : purchasing this will have unexpected, and potentially undesirable results!   It's all downhill from here. You have been warned!   Purchase anyway?   With the options to purchase anyway or cancel.  So far, I've always canceled.  What happens if I buy "One Mind"?


Reporting an inappropriate or offensive user name

On Stack Overflow we can raise a flag on an inappropriate comment or post. What if an user has an inappropriate user picture or name? "Inappropriate" being derogatory, rude, racially demeaning, defamatory, etc.   Is there a way to flag or report this?


Will upgrading Windows 8 to 8.1 affect Ubuntu?

It's a rather simple question (I hope). I currently have Windows 8 and I am dual booting it with Ubuntu 13.04.   If I were to install the latest update for Windows 8, that being 8.1, will it affect Ubuntu or will there be any conflicts between the two?


System.DmlException: Upsert failed - UNABLE_TO_LOCK_ROW

I am trying to do an upsert using Database.Upsert() and getting this error: "caused by: System.DmlException: Upsert failed. First exception on row 200; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 13 records:" Normally, the code works fine, but on occasion I get the above error. I know in SOQL statements you can use "FOR UPDATE", but I am doing Database.Upsert().  Is there anything that can be done to solve for this error?


How to include all the jars present at a particular directory in the CLASSPATH in one go?

I have around hundreds of jars at a particular directory which my application uses. So I thought its hard to add each jars one by one to the classpath. So is there any command or any way so that i can add all the jars at one go. some *.jar should add all the jars.


Is $\phi$ convex if it is continuous and $\phi \Big(\frac{x+y}{2}\Big)\le \frac{1}{2}\phi (x) +\frac{1}{2} \phi (y)$

Assume that $\phi$ is continuous real function on $(a,b)$ such that $$\phi\Big(\frac{x+y}{2}\Big)\le \frac{1}{2}\phi (x) +\frac{1}{2} \phi (y)$$ for all $x,y \in (a,b)$. Prove that $\phi$ is convex.   We need to show that for $\lambda \in [0,1]$ we have $\phi(\lambda x+ (1-\lambda)y) \le \lambda \cdot\phi(x)+(1-\lambda)\cdot \phi (y) \quad\forall x,y \in (a,b)$. I had drawn some figures and it was coming out to be convex, for rigorous proof I was thinking of proving this for rationals $x,y$ then using continuity argument we can prove it for all $x,y$ but I'm not able to do so.


pls i av a hp laptop pavillon ze 4800ea 1ghz and 1gb  ram ,mobi amd athlon xp2500+™ what kind of ubuntu can i download then how pls ansr fast.  i want to use it for; programming graphics design webdesign software enginnering online schooling.   it run window xp profesaional with a free partition space of 9.5 gb.


Political affiliation discrimination, a one word answer

Politics: When a person discriminates on sex they are sexist, race we call it racism, what is called when someone discriminates based on a political party?


The significance of the preposition "From" in the given sentence, and the difference between the given sentences

Where did you get that chipset/ (anything you want IT to be) from?  Where did you get that chipset/ (anything you want IT to be)?   What's the difference in the two sentences? What's the significance of the preposition "From" in the first sentence?


Open a second "modern" control panel window in Windows 10 or Server 2016

Let's say I want to open those two windows in parallel on a "Modern UI" based Operating System (Windows 10 or Server 2016+):     The first one, so I can monitor the upgrade process, and the second one, so that I don't forget to reset the screen auto-turn-off when the upgrades are done.  How can I open both windows in parallel? As soon as I have one of them open and open the second one via the start menu, the first one gets replaced by the second one.  I tried to start "control.exe" manually, but that's the "old, classic" control panel and Windows Update is no longer available there.  (Fortunately, the power options are still available there, so I was able to work around this particular issue by opening the power options in the classic UI, but I'm still interested in a solution for the general problem.)


Let Q(√2) = (a + b√2 | a, b ∈ Q), prove that Q(√2) is a number field. I have no idea how to prove this. Someone can give a prove process?


Suppose $A$ is a $n \times n$ matrix i.e. $A \in \mathbb{C}^{n \times n}$, prove that rank($A^{n+1}$) = rank($A^n$). In other words, I need to prove that their range spaces or null spaces are equal. If it helps, $A$ is a singular matrix. Note that, I don't want to use Jordan blocks to prove this. Is it possible to prove this without using Jordan form? I can use Schur's triangularization theorem. Also, it's not known if A is diagonalizable.


Is it possible to validate a Public Key in RSA?

If I have a 1024-bit number, and someone is telling me that it is in fact a valid RSA public key, is there any way I can quickly validate that it is indeed so (without cracking RSA)?  (I suppose I am asking if it's possible to quickly tell if a number only has 2 prime factors)


Make the green full screen window icon on Yosemite maximize windows

On Mac OS X Yosemite the green icon in every window:    is by default used to make the application full screen.  How do I make it work the same way as in previous versions of Mac OS X, i.e. to maximize the window?


Series whose terms are implicitely defined

Consider the next statement:  Let $(u_n)_{n \in \mathbb{N}^*}$ be defined implicitely by:  $$u_n = \tan(u_n) \\ -\frac{\pi}{2}+n\pi\leq u_n\leq\frac{\pi}{2}+n\pi$$ Then: $$\sum_{n=1}^{\infty} \frac{1}{u_n^2}=\frac{1}{10}$$  I found this statement in an undergraduate exam, but I can't find it anymore (I only have the result in mind). I have no clue on how to tackle this problem, especially how to get such an intriguing result.  More generally, are there somewhat general methods/theorems to compute series whose terms are defined implicitely?


Cant login to ubuntu 16.04 (this is fifth time in last week)

I am on mobile.   This is fifth time. I reinstalled four times.  Please look at my recent questions.  I entet password and it says xxx files xx blocks and keep showing logib screen.  I dont know what caused this.  I installed as usual chrome yakuake zsh notepadqq inteljidea nvidia mysql emma  Changed  etc enviroment Zshrc Anthome javahome  Please help me. I dont want to reinstall :( or break my desktop  This is 5. Times happening same thing. I dont know what i am doing to cause.  What i did:   I removed nvidia, settings but did not work. Renamed xauthotiry to see if causing. But not worked sudo dkpgreconfigure lightdm var log xorg 0 log shows no error. I couksnot find any error or warning there. But maybe i am looking wrong. This is image fron there. Only error is that. Can you look   This is xsessionerrors   ls -al , all of them are my user except dbus. It is root. Inside tmp, all of rhem are root. Such as xim unix  Any suggestions?


I have a laptop with no cd/dvd drive. I want to remove win 8 and put ubuntu instead. I am not sure if there is UEFI in this laptop (its the cheapest). I don't want to buy a usb optical drive just for this. Is there a reliable and EASY way to install ubuntu from a USB drive onto my new laptop ?  I tried to install it on an external hard drive, but i saw no boot options. So, I got a new cheap laptop instead. Again, I am stuck. Is it really this hard to install ubuntu via usb ?


Ambiguity when finding an Inverse trigonometric derivative

The question I was solving was to find the derivative of $y = \arcsin(2x\sqrt{1-x^2}), -\frac{1}{\sqrt{2} } <x< \frac{1}{\sqrt{2}}$ Substituting $x = \cos\theta \Rightarrow \theta = \arccos (x)$, I got $y = \arcsin(\sin2\theta) = 2\theta$ Differentiating, I got $\frac{-2}{\sqrt{1-x^2}}$ However, substituting $x=\sin\theta$, simplifying and then differentiating, I got $y' = \frac{2}{\sqrt{1-x^2}}$, which is the negative of what I'd gotten earlier. Also, this is the correct answer according to my textbook. Both substitutions lead to $2x\sqrt{1-x^2}$ turning into $\sin2\theta$, so why is the substitution $x = \sin\theta $ more valid than the substitution $x = \cos\theta$?


Permanent Environment Variable for all users

I want to have all users on the system to have an environment variable named SPI that points to /usr/local/share_ideas directory.  How do I do it?


What does the 'B' (or bonus) mean on a basketball scoreboard?

I was looking at pictures of scoreboards today, and I noticed that some of them have 'B's on the boards:    The same thing appears on NBA games, often in the broadcast scoreboard as well:   I've never noticed those before. What do they mean?


How to specify the caption names in bilingual captions without babel or polyglossia?

I use 's  package to setup bilingual captions.  bicaption needs babel's \selectlanguage to set the different caption names for different languages. However, I cannot use the faculty of babel/polyglossia since it doesn't work for east Asian languages.  It is easy to set a name option for the two captions, but I can't set different names for different types of floats. For example,  \documentclass{article} \usepackage{caption}[2012/02/19 v3.2f] \usepackage{bicaption}[2011/10/30 v1.0a] \captionsetup[bi-first]{name=Foo} \captionsetup[bi-second]{name=Bar}  \begin{document}  \begin{figure}   \centering FIGURE   \bicaption{XXX}{YYY} \end{figure}  \begin{table}   \centering TABLE   \bicaption{XXX}{YYY} \end{table}  \end{document}   I tried  \captionsetup[bi-first,figure]{name=Foo}   there's no effect. And I tried  \captionsetup[bi-first]{figurename=Foo}   then I got an error     ! Package caption Error: Can be used only in preamble.   So what can I do? Is there a simple way to use bicaption without babel?  In an older version of caption package (e.g. 2011/11/10 v3.2e), figurename and table options can be used in document environment, but the latest caption allows them only to be used in the preamble. I cannot see any advantage to set \@onlypreamble\caption@SetName. However, even if I use the old version of caption, I still cannot set the name for user-defined (via newfloat package) floats in bilingual captions.    Note: I do not like the \bicaption provided by ccaption package, it is complicated to use. And I have the ability to define my own version of \bicaption, but it seems also a bad option.  Currently I can use this weird trick:  \captionsetup[bi-first]{font=bi-first} \captionsetup[bi-second]{font=bi-second} \DeclareCaptionFont{bi-first}{%   \def\tablename{Table}%   \def\figurename{Figure}} \DeclareCaptionFont{bi-second}{%   \def\tablename{Alter-table}%   \def\figurename{Alter-figure}}


Can I use a string as a named argument in python

I've got a string which will form a timedelta object based on its value. I could write this with if statements, but I know that the string will always match one of the named arguments for the timedelta object. I want to do something similar to below:  td = timedelta("hours"=5)   or:  my_var = "days" td = timedelta(my_var=5)   What would be the recommended way to do this?


I know if you move your time moves slower than someone who is stationary, by Lorentz's transformation. However, I don't get how this happens.  What does it mean when time moves slower? How does it affect my watch for example when I move close to the speed of light?   Does an electron for example feel time-dilation?


What are the models of quantum computation?

It seems that quantum computing is often taken to mean the quantum circuit method of computation, where a register of qubits is acted on by a circuit of quantum gates and measured at the output (and possibly at some intermediate steps). Quantum annealing at least seems to be an altogether different method to computing with quantum resources1, as it does not involve quantum gates.  What different models of quantum computation are there? What makes them different?  To clarify, I am not asking what different physical implementations qubits have, I mean the description of different ideas of how to compute outputs from inputs2 using quantum resources.     1. Anything that is inherently non-classical, like entanglement and coherence. 2. A process which transforms the inputs (such as qubits) to outputs (results of the computation).


How many subsets does a set $S$ with $n$ elements have?    I think the product principle can be used to answer this question. But I am not sure how it applies. I tried to do this by finding all of the subsets for $n=1, 2, 3$ but I couldn't find a pattern because I was probably doing it wrong. For example when $n=2$ we could have a subset with just the first element, just the second element, both elements, or the empty set, this gives us $4$ subsets when $n=2$, is this correct?


I recently asked a question which was given no answer. Only some edits and comments. the next day in the title a [on hold] was written. I didn`t understand what does it mean by [on hold]. I don't know weather it is right place to ask this question.


Prove that every year has at least one Friday the 13th

Everyone knows Friday the 13th is regarded as a day of bad luck. Why does every year have at least one of this bad day?


I am trying to optimize a user's laptop PC which has become very sluggish. It's a 10-year-old Dell Inspiron 1545 with a single-core Intel Celeron running at 2.2 GHz, with 3 GB RAM, running 64-bit Windows 10 with the latest updates (Fall Creators Update, 10.0.16299).  Although grossly under-powered by today's standards, it used to work just fine for the user's purposes (web browsing, email and word processing) when it was running Windows 7. It seems to have slowed down when Windows 10 was automatically installed and possibly continued slowing down ever since.  I've looked at existing questions on the Internet but none of the suggestions so far worked.  When the laptop is sitting there doing nothing, it's using 91% CPU. Memory usage is 50% (1.5 GB out of 3 GB). Disk activity is between 0 and 2%. It has a single C: drive with just 61 GB in use and 157 GB free. A full virus scan using paid-for AVG Internet Security shows no threats.  There are two processes using the bulk of the CPU, both svchost.exe:   Service Host: Local Service (No Network) - 53% CPU, 4 services:   Windows Defender Firewall Diagnostic Policy Service CoreMessaging Base Filtering Engine  Service Host: Local System - 34% CPU, 17 services:   Windows Push Notifications System Service, WMI, User Manager, Web Account Manager, Themes, Shell Hardware Detection, ICS, System Event Notification Service, Task Scheduler, Background Intelligent Transfer Service, et al.    The CPU usage remains the same at 91% even when I turn off wi-fi (so it's not related to Internet activity). It doesn't seem to be related to disk activity as that's very low (0 to 2%).  I've cleared all of the Event Logs to make sure the services weren't taking too much time writing to very big event logs (they weren't very big to start with anyway). Before doing that, I checked for any tell-tale signs in the event logs and didn't find anything important.  One post suggested that a problem with a device driver (StorAHCI.sys) can cause high CPU usage in svchost.exe. I've checked and this laptop is not using this driver, it's using iastor.sys.  Can you give me any further pointers to investigate the cause?


What happens if you roll doubles 3 times then land on "Go to jail?"

Do you have to serve two jail sentences? For example, you go to jail the first time and use your "Get out of jail free" card, and then go right back to jail for another sentence without rolling the dice.


Is there a line symbology that also shows vertices?

Is there such a thing as a line/vertices symbology? If not a workaround? In some situations, particularly when editing, I would like to see my lines as well as all the vertices similar to the effect I get when using the Edit Vertices tool but on all features in the feature class not just the selected feature.  The solution should be dynamic, without having to create a separate point layer but having one line features class loaded twice in the TOC is acceptable.  Programmatic solution using an example (addin, ArcObjects & VB.Net) is acceptable.  I have the ArcEditor license in case there is a trick to use with representations.


"The ticket is printing" vs "...is being printed"

You're standing in front of a ticket vending machine and it says "The ticket is printing". Is that correct or should it be "The ticket is being printed"?  EDIT:  If both are correct, which one should be preferred or is more common?


Please add a search field where one could search for a question that had been asked before, without having to use a search engine in browser. Please if there exist such a feature, you can make it easily accessible by users.


How to execute a .sh file in Ubuntu 14.04 LTS?

I have tried executing this file with every possible alternative but still no luck.chmod +x file.sh, ./file.sh and also checked permissions window everything looks fine.  error looks like this --> sh: 0: Can't open ./file_name.sh


I'm getting a null point error, but I don't know why. Below are the classes which I use.  Kofferslot.java  package com.tvh;  /**  * @author   */ public class Kofferslot {     private static Letter[] letterlijst;     private static Cijfer cijfer = new Cijfer();      Kofferslot(){         letterlijst[0] = new Letter();         letterlijst[1] = new Letter();          Cijfer cijfer = new Cijfer();      }      Kofferslot(char firstLetter, char secondLetter, int cijfer){         letterlijst[0].setLetter(firstLetter);         letterlijst[1].setLetter(secondLetter);          this.cijfer.setCijfer(cijfer);     }      public static String volgende(){          letterlijst[0].volgende();         char res1 = letterlijst[0].getLetter();          letterlijst[1].volgende();         char res2 = letterlijst[1].getLetter();          cijfer.volgende();         int rescijfer = cijfer.getCijfer();          String result = String.valueOf(res1 + res2 + rescijfer);          return result;      }      public static void main(String args[]){         Kofferslot.volgende();     }  }  Letter.java  package com.tvh;  /**  * @author   */ public class Letter {     private char letter;      Letter() {         char letter = 'A';     }      char getLetter() {         return letter;     }      void setLetter(char letter) {         this.letter = letter;      }      void volgende() {         if (this.letter > 'Z') {             letter = 'A';         } else {             letter++;         }     }      public static void main(String[] args) {         Letter letter = new Letter();         letter.setLetter('A');         letter.volgende();          char letter1 = letter.getLetter();          letter.setLetter('B');         letter.volgende();          char letter2 = letter.getLetter();          System.out.print(letter1);         System.out.print(letter2);     } }   package com.tvh;  /**  * @author   */ public class Cijfer {     private  static int cijfer;      public Cijfer(){         cijfer = 0;     }      public static int getCijfer(){         return cijfer;      }      public void setCijfer(int cijfer){         this.cijfer = cijfer;      }      public void volgende(){         cijfer++;     }      public static void main(String[] args){         System.out.println("Get cijfer object: " + Cijfer.getCijfer());          Cijfer test = new Cijfer();         System.out.println("New object: " + Cijfer.getCijfer());      }   }   Stacktrace:  Exception in thread "main" java.lang.NullPointerException     at com.tvh.Kofferslot.volgende(Kofferslot.java:26)     at com.tvh.Main.main(Main.java:6)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(De`enter code here`legatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)   I hope that you guys can help me finding the nullpointexception!  Thanks in advance! Because for now I'm stuck..


What are the differences between Decibel (dB) and Decibel milliwatts (dBm)? I'm most interested in dBm with cell phone signal strength. Please give a  detailed explanation. I'm not familiar with the basics so I didn't understand what I was reading when I googled it.


The Bash Manual says   { list; }        Placing a list of commands between curly braces causes the list to be executed in the current shell context. No subshell is   created. The semicolon (or newline) following list is required.      The braces are reserved words, so they must be separated from the list   by blanks or other shell metacharacters.       The parentheses are operators, and are recognized as separate tokens   by the shell even if they are not separated from the list by   whitespace.   If I remove the semicolon, like this:  $ { date } >    Why does it expect stdin input? A metacharacter is a character that separates words.  The semicolon and whitespace are both "shell metacharacters". Why can't whitespace separate words date and }? Why do we need a semicolon instead of a whitespace for separating the words?


i am new to ubuntu...  i recently install ubuntu 13.10. ,after installing ubuntu ,i got a notification that update are available.the notification come from software updater app,i got 2 updates,one is come yesterday and other one come today,i update the first update ,after i got another update today,i wait and post this question..  are this updates send by ubuntu ? are this updates are software(apps) updates ? is it safe to update ?


How can I export a font file from Adobe Illustrator?

If a person or a designer wants to export a font file from Adobe Illustrator, how can he or she so do to make it a TTF or OTF file?


public static void main(String[] args) {     Scanner Input= new Scanner(System.in);     System.out.print("Enter String: ");     String s =Input.nextLine();     int index = s.length();     boolean isVowel= true;     isVowel = vowels(s,index);     if(isVowel==true)         System.out.println("Its Vowel"); } public static boolean vowels(String s,int index){     String small=s.toLowerCase();     String large = s.toUpperCase();     char z=s.charAt(s.length()-1);     if (s==small) {         large = s.toUpperCase();         if(s==large){         }         for (int i = 0; i < s.length(); i++) {             if (z=='A'||z=='E'||z=='I'||z=='O'||z=='U') {                 System.out.println("Character at " + s.charAt(s.length()-1) + " is a vowel");                 return true;             } else if(z!='A'||z!='E'||z!='I'||z!='O'||z!='U'){                 System.out.println("The String contains no Vowels");                     return false;             }         }     }     return true;     } }   It keeps returning the last printing statement, "The String contains no Vowels" Any suggestions?


Why can't I save permalink "360" for a page?

I am trying to save my page with permalink "360" but for some reason WP keeps updating the permalink to "360-2". I have checked everywhere in my WP and there is no page or post that uses permalink "360". Is 360 a permalink for something internal? If not, what is the problem?


I have added a state machine WF in VS by right clicking my solution and Add -> Add New Item -> then under "Office/SharePoint I added the "State Machine WF (Farm Solution Only). So the WF is now part of the solution along with my form and code behind. I have not wired up the submit button to "Start" the WF, because I am unsure of how to do it. I have been looking online for any good leads on this and have been unable to find anything that helps with my issue.   My form is developed in asp.net, my code behind is vb.net and I added my state machine WF to the same solution. I then deployed my form, code behind and WF into SharePoint via an Application Page (Farm Solution only) in Visual Studio 2013.  Could someone please provide me with any good advice or articles that relate and solve this issue? Maybe I am approaching this from the wrong direction... I am open to any opinions of others.  Thank you


How do I get the length of an array in C?

How can I get the length of an array in C, I tried it how i get it in other languages but it doesn't work like this:  int array [5];  for(int i = 0; i < array.length; i++) {..


Check when an user has not entered anything in JTextArea

I have written the below code in Java to check for no entry by a user in JTextArea. Only JTextArea.getText().equals("") works while others do not. It would be of great help in case you can explain why other other checks don't work.  Thanks  import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*;  class TestJTextArea{   private JFrame frame;   private JPanel panel;   private JLabel textLabel;   private JTextArea textArea;   private JButton submitButton;    public TestJTextArea(){     frame = new JFrame("Test JTextArea");     panel = new JPanel();     textLabel = new JLabel("Enter your Text below");     textArea = new JTextArea(20,20);     submitButton = new JButton("Submit");      setupGUI();   }    private void setupGUI(){     textArea.setLineWrap(true);     textArea.setWrapStyleWord(true);     JScrollPane scrollPane = new JScrollPane(textArea);     scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);     scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);      textArea.setFont(new Font("sansserif", Font.BOLD, 24));      panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));     panel.add(textLabel);     panel.add(scrollPane);     panel.add(submitButton);     submitButton.addActionListener(new SubmitButtonListener());      frame.setSize(200,200);     frame.getContentPane().add(BorderLayout.CENTER,panel);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.setVisible(true);   }    private class SubmitButtonListener implements ActionListener{     public void actionPerformed(ActionEvent e){   Check for equals("") works. So the below code throws True:  if(textArea.getText().equals("")){         JOptionPane.showMessageDialog(null,"No Text test True for equals()","Check equality through equals()",JOptionPane.WARNING_MESSAGE);       }       else         JOptionPane.showMessageDialog(null,"No Text test False for equals()","Check equality through equals()",JOptionPane.WARNING_MESSAGE);   The below code throws False:    if(textArea.getText() == ""){     JOptionPane.showMessageDialog(null,"No Text test True for ==","Check equality through ==",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for ==","Check equality through ==",JOptionPane.WARNING_MESSAGE);   The below code throws False:   if(textArea.getText() == null){     JOptionPane.showMessageDialog(null,"No Text test True for null","Check equality through null",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for null","Check equality through null",JOptionPane.WARNING_MESSAGE);   All the below Codes throw False:    if(textArea.getText().toString() == ""){     JOptionPane.showMessageDialog(null,"No Text test True for toString()","Check equality through toString()",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for toString()","Check equality through toString()",JOptionPane.WARNING_MESSAGE);    if(textArea.getText().toString() == null){     JOptionPane.showMessageDialog(null,"No Text test True for toString() = null","Check equality through toString() = null",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for toString() = null","Check equality through toString() = null",JOptionPane.WARNING_MESSAGE);


What I want to do here is create a system where an enemy object has some kind of "sight", as in the enemy can detect a player object when the player object comes in its field of view. I am currently thinking of the following two ways:   A spotlight that is parented to the enemy object acts as it's field of view. The enemy object casts multiple rays, with each ray being 5 degrees away from the previous one, creating an isosceles triangle of some sorts with rays between it.   The first method is problematic, and I do not know how to go about with the second method. How can I go about implementing it? Also, is there another way of doing the same that is better than the two methods listed above? If so, please do mention it.


Regression method if dependent variable is the absolute value of a continous variable

Suppose we have a dependent variable $Y$ that has normal distribution with a mean of $0$. If I run a regression model using the absolute value of $Y$, $|Y|$, i.e. $|Y| = b_1 + b_2 X + u$, my dependent variable is actually truncated at $0$. My guess is that then OLS is not efficient anymore. What would be the usual model to use in this case? Tobit? And what would happen with the OLS estimates – are the coefficients still unbiased and only the standard errors are wrong (or OLS is inefficient) or are the coefficients biased?


Lotus is a/the national flower of India?

Lotus is a/the national flower of India.     Before "national flower", which article should I use?


Override parent theme function that is not hooked or in the functions.php file

I need to remove a function from the parent theme and replace it within the child theme.  The function is called print_meta($meta_box). The function is not pluggable and it located in a random file, not the functions.php file.   The function adds options to a metabox that shows in a page or post. I need to add more options but to do this I re-write the function from within the child theme.  I don't think I can use remove_filter() as the function is not hooked.  I tried this: print_meta($meta_box)  function remove_parent_theme_functions( $meta_box ) {   remove_filter( 'init', 'print_meta' ); } add_action( 'after_setup_theme', 'remove_parent_theme_functions' );   but I do not know what tag to use. I have tried all kinds.  Since the function is vital to setting up the metabox option, I assume that if I successfully removed the function when I use metabox I should get an error or the options should not appear.  So far I appear do matter what tag I use.   Is this even possible?


A probability theory question about independent coin tosses by two players

Say Bob tosses his $n+1$ fair coins and Alice tosses her $n$ fair coins. Lets assume independent coin tosses. Now after all the $2n+1$ coin tosses one wants to know the probability that Bob has gotten more heads than Alice.    The way I thought of it is this : if Bob gets $0$ heads then there is no way he can get more heads than Alice. Otherwise the number of heads Bob can get which allows him to win is anything in the set $\{1,2,\dots,n+1\}$. And if Bob gets $x$ heads then the number of heads that Alice can get is anything in the set $\{0,1,2,..,x-1\}$. So\begin{align}P(\text{Bob gets more heads than Alice})&= \sum_{x=1}^{n+1} \sum_{y=0}^{x-1} P( \text{Bob gets x heads }\cap \text{Alice gets y heads }) \\[0.2cm]&= \sum_{x=1}^{n+1} \sum_{y=0}^{x-1} \left(C^{n+1}_x \frac{1}{2}^{x} \frac{1}{2}^{n+1-x}\right)\left( C^n_y \frac{1}{2}^y \frac {1}{2}^{n-y}\right)\\[0.2cm]& = \sum_{x=1}^{n+1} \sum_{y=0}^{x-1} \frac{C^{n+1}_x C^n_y}{2^{2n+1}}\end{align}   How does one simplify this?      Apparently the answer is $\frac{1}{2}$ by an argument which looks like this, Since Bob tosses one more coin that Alice, it is impossible that they toss both the same number of heads and the same number of tails. So Bob tosses either more heads than Alice or more tails than Alice (but not both). Since the coins are fair, these events are equally likely by symmetry, so both events have probability 1/2.


I have downloaded "firefox-29.0.tar.bz2" to update my firefox. How do I use this file to update firefox?


What is the best method of purchasing a ticket with an open return date?

I’ve been doing some research on traveling to South America and staying for an extended period of time (working vacation). The usual sources for flight info (Kayak, Expedia, Hipmunk) don’t have any info on flights with open return dates.  The other option would be to just buy a one-way ticket, then buy a return flight when I want to leave, but I’ve heard that international flights from South America are quite expensive.  What would be the most cost-effective solution?