I flagged a question as spam, and wanted to add a second, custom flag to let moderators and developers know about a repeating pattern I was seeing. When I clicked the flag link to add the second flag, I got this dialog:    It says that I already raised both a spam flag and a not welcome flag, but that's not true; I just raised one flag, a spam flag. It probably does make sense to disable both options when either type of flag was already raised, but the messages stating that I raised two flags are wrong and confusing.

After I  and flagged some spam on the , for a poorly-understood reason, I went back to one of the questions I'd flagged and opened the flag dialog. There, I saw something of little importance, but of less than perfect... perfection:        I had flagged  as spam. I had not flagged the question as "not welcome in our community". And, for what it's worth, I had not added a custom flag, so... that part's right.


I have an app in a remote Linux machine. I am trying to execute the app via ssh, but I get the error:  bash: /app: cannot execute binary file   Why is this happening? The application works fine in the remote machine.  UDATE:  Note related to  since it was a 'make' problem.

I have a script that works well when I ssh to the server to execute it myself, but has problems when , a continuous integration server, runs it.  I am automating tests on an embedded linux system (the target). The target is connected to Server A (RHEL 5) via serial and operated over minicom. Server B (FC 12) builds the tests that actually run on the target, and can ssh to Server A. Server C (RH) hosts Hudson, with Server B as a slave.   I've written a runscript (http://linux.die.net/man/1/runscript) script to do everything needed on the actual target; it boots the image, mounts a directory from Server B and executes the tests. A bash script on Server B invokes minicom with the runscript script along with some companion actions. I have a bash script on Server B which uses   ssh -t -t ServerA bashScript.sh   to get those tests run on the target. I am on Server C, I can get those tests run by ssh'ing to Server B and executing the script that ssh's to Server A which executes minicom with runscript. Whew.  To review:  Server A: Hudson uses its slave mechanism to ssh to Server B.  Server B: kickOffTests.sh has the line ssh -t -t ServerA runTests.sh  Server A: runTests.sh calls a perl script which invokes minicom -S my.script ttyE1  Target, after booting: Mounts a directory from Server B, where the tests are, and enters that directory. It invokes yet another bash script, which runs the tests, which are compiled C executables.  Now, when I execute any of these scripts myself, they do what they should. However, when Hudson tries to do the same thing, over in the minicom session it complains about a line in the "yet another bash script" that invokes the C executable, ./executable, with ./executable: cannot execute binary file  I still have a lot to learn about linux, but I surmise this problem is a result of Hudson not connecting with a console. I don't know exactly what Hudson does to control its slave. I tried using the line export TERM=console in the configuration just before running kickOffTests.sh, but the problem remains.  Can anyone explain to me what is happening and how I can fix it? I cannot remove any of the servers from this equation. It may be possible to take minicom out of the equation but that would add an unknown amount of time to this project, so I'd much prefer a solution that uses what I already have.


A couple of weeks ago I georeferenced a set of 7 scanned maps (.tiffs). Although the scans all have different shapes and sizes, the outline of all the maps on there is the same, and after having georeferenced them, the maps align quite nicely.   Today I found out that the southern area should be referenced differently. The same mistake has been made for all images: the northern part is allright for all maps, but the southern boundary of my maps should be shifted upwards a bit. I don't want to do the tedious job of aligning all tiffs by hand again.    Does anybody know if there is a way to rectify them all at once? Can I relate the tiffs in some way?

I have about 50 pdf maps that I would like to batch georeference and/or georectify. I've saved one as a jpg and georeferenced it manually and would like to automate the rest which are in the same location and have the same extent.      The density gradient will change in each case, but the map (saved as jpg now) will have the same extent for all 50 cases.  Does anyone know of a link to a step-by-step tutorial that deals with batch processing in Arcmap 10.2 only? I'm thinking of using the  or possibly the  option, but am not sure where to start?  The sample code is:   import arcpy arcpy.WarpFromFile_management( "\\cpu\data\raster.img", "\\cpu\data\warp_out.tif", "\\cpu\data\gcpfile.txt", "POLYORDER2", "BILINEAR")


How can we find the following limit. $$\lim_{x\to\infty}(x-\ln\cosh x)$$ where $$\cosh t=\frac{e^t+e^{-t}}{2}.$$   I thought about it alot but didn't get any start

Prove that $\lim_{x\to \infty}\left(x-\ln\cosh x\right)=\ln 2$  I used L Hospital Rule but it does not simplify.Then i expanded $\cosh x$ by using McLaurin series but due to $x\to \infty$,this is also not working.How should i evaluate this limit?


A similar question is asked by some user but unanswerd ().  I wants to show that the semidirect product of $A_n$ and $\mathbb{Z}_2$ is the symmetric group $S_n$.      $S_n\cong A_n \rtimes \mathbb{Z}_2?$   I tried a lot but I have seen that $A_5\rtimes \mathbb{Z}_2\cong $SL$(2,5)$. Please tell whethere I am correct or not?

In  note, I've read that $\mathbb S_n$ is a semidirect product of the alternating group $A_n$ by $\mathbb Z_2$. So I am trying to define a morphism $\rho: \mathbb Z_2 \to Aut(A_n)$ to show that $\mathbb S_n \cong A_n \rtimes Z_2$. I would appreciate suggestions on how could I define the morphism. Thanks in advance.


I tried to install Nvidia driver in Ubuntu 16.04, I download the package from the official website and excute the command   sudo sh ./NVIDIA-Linux-x86_64-384.183.run –no-opengl-files   However, An error happened with   /nvidia-installer: invalid option: "–no-opengl-files"  ERROR: Invalid commandline, please run `./nvidia-installer --help` for usage information.   Could somebody give me a solution?

I recently upgraded to 18.04 from 16.04. My machine has NVIDIA Graphics cards  Quadro 410 When i tried to change graphics driver using the GUI mode under Software and updates. The default X.Org X server keeps on getting selected and I do not get any error.   I see two additional Drivers listed besides the one selected by default   nvidia-driver-390 nvidia-driver-340 X org driver


Was thinking today, a good "answer badge" would be some number of answering your own questions.  Not sure what type of standards need to be set, maybe if there are no other answers, or if your answer gets X number of votes.

Someone's asked  the answer being that it's intended to help people learn about the site's functionality. Answering your own question  and there's a feature to .   The number of unanswered questions, on Stack Overflow at least, , so why not encourage people to fill in the blanks by answering their own questions more regularly?  I'm of two minds about the route to go down. I initially though of something like a silver self-learner badge with some conditions as follows: answer your own +3 scored question with an answer with a score of +5 but as there are only  open, unanswered questions with a score of 3 or more it seems fairly pointless.  A better way would be to allow people to earn a "self-learner" type badge multiple times but to stop people from getting it solely for self-answering. You could have a bronze badge (, or whatever) for people who:   Self-answer a positively scored question - This should not be open to negatively scored questions and I'd be wary of 0 scored to stop a deluge of people wanting the badge. That has not received an answer with a score of more than 1 since it was posted - Not completely sure about this but the goal is to answer the questions without answers More than 24 hours after the question was posted - Otherwise FGITW etc; the point is to get all the old questions answered. With a score of 2 or more - Otherwise you could answer it with anything, which is useless for the internet. Maybe +3 might be more appropriate?   There are  positively scored, unclosed questions with 0 answers so getting some of these answered is a worthy cause.


Which of the following sentences is grammatically correct?  I being not at home, my friend left a message.  Me being not at home, my friend left a message.  My being not at home, my friend left a message.   I think that the third sentence can be easily ruled out since My being not at home would be a gerund, and we need a participle here. I have seen sentences like Him being dead, there was no one remaining to challenge her. and I think they are grammatically correct. Following this trend of using the objective case, I believe that the second sentence would be the correct one, but my teacher says that it should be the first one (probably because the second one does have an informal feel to it). So, which one of them is the correct one, and why?

I read the following definition for , but the many syntactical terms (based on Latin) confound me: accusative and nominative absolute.     a construction in English, especially colloquial English, consisting of a pronoun in the accusative case joined with a predicate that does not include a finite verb and otherwise identical with the nominative absolute (as him being my friend in “him being my friend, I granted his request”)    I first heard this at 54:31 in .


Consider the differential equation $$y'=y(y-1)(y-2)$$ Which of the following statements is true ?   If $y(0)=0.5$ then y is decreasing. If $y(0)=1.2$ then y is increasing. If $y(0)=2.5$ then y is unbounded.  If $y(0)<0$ then y is bounded below.    My Attempt: I have solved the given differential equation by variable separable method and got it $$\frac{y(y-2)}{(y-1)^2}=ce^{2x}$$  where c is arbitrary constant.  Furthermore, please guide me!  Or suggest other way to tackle this question. Thanks ☺

Consider the Ordinary Differential equation $y' = y(y-1)(y-2)$. Then from the different initial conditions, can we derive properties of the function $y$ ?  I thought of finding the solution to this differential equation, which I tried to use Partial fractions!, (any other easier or efficient method to solve this ODE?). After doing Partial fractions  I got  $0.5 \ln|y| - \ln|y-1| +0.5 \ln|y-2| = x + c$. Now if $y(0) = 0.5$, is the function $y$ decreasing?, well I thought of substituting value of $y(0)$ into the ode to get $y' = 0.5(0.5-1)(0.5-2)>0$, implying $y$ is decreasing (is this the correct way?). Also if $y(0) =1.2$ then using the above criteria I think $y$ is increasing? Also if $y(0) = 2.5$ then can we say anything about the boundedness of $y$ ? If $y(0)<0$, can we say $y$ is bounded below?.


I read today that $Ax+By+Cz=D \text { has a solution iff } \gcd(\gcd(A,B),C\mid D$ but I can't find it again, I also can't find any Diophantine equations with 3 variables that doesn't have solutions so I'm starting to suspect that I'm remembering something wrong.  My questions are: Are there Diophantine equations with 3 variables that has no solutions?  Is the statement in the title correct?  Note: $A,B,C,D,x,y,z\in \mathbb Z$ and $ A,B,C\neq0$.

I know how to solve $ax + by = c$ using Extended Algorithm. But with more than variables, I'm lost :(.   To verify if it has an integer solution is easy, since we only need to check for $\gcd(a,b,c)|d$. Other than that, how can we find an integer solution for this equation?    Thanks, Chan


I'm a math major, and in an undergraduate real analysis sequence I got a B- and B over the two semesters. A year later I took the first year graduate real analysis sequence and got a B+ and a B over the two semesters. I know there's a lot of outside factors to consider, but in general how do these grades affect my ability to get a Master's in Statistics and a PhD in Computer Science?  My overall GPA is an A-. How can I remedy this track record if it looks negative? Does it involve taking even higher level courses in Real Analysis  (i.e., comparable to 6000 level) and getting A's?

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


I have tried to use the xrdp to remotely connect from Windows to Lubuntu. I have tried several ways and have followed several guides but nothing worked.  When trying to connect from Windows I am asked for username and password. I enter them but the only thing that is displayed is some kind of gray screen and the cursor is just an cross. Nothing happens after that.

Is there a way to remote connect (via windows remote desktop) to my Ubuntu server which has the Lubuntu Desktop, just like is possible with Unity?


Hello everyone I'm new to Ubuntu so I probably messed something up. When I installed Ubuntu on my windows 8 hp laptop it did not give me the option to install Ubuntu alongside windows so I installed it using the something else option.   I think I may have messed up during the partitioning but I'm not sure.  When I turned on the PC it at first directly booted up Ubuntu without showing me the grub screen, eventually I was able to get the grub screen to appear but it does not recognize windows. I ran boot repair and I was given this url :  . Boot-repair did not solve my problem.   Thanks for any help guys I really want to be able to run windows alongside Ubuntu and access the files that are in windows.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


Which is the right usage of unselect or deselect when it comes to getting checkboxes unticked. Will you use,  Select/unselect the checkbox of your choice  or will you use,  Select/deselect the checkbox of your choice  I'd like to know the more appropriate usage in this context.

If I want the user to revert their operation of selecting an item, should I say: "Unselect the option" or "Deselect the option"?


Suppose I run a process in the background likw ./script &, I can bring it to foreground by running fg.   However, is there a way to move it back to background without stopping it (as in ctrl+z) or opening a new session?

Say you start the job like this  foo   and then desire that you want to place it in background. Typing Ctrl+Z and then bg does the trick but will freeze foo between Ctrl+Z and bg. How can I place foo in the background without first freeze it?


The following code runs without problems using XeLaTeX. I use polyglossia to be able to write Arabic. But when I use hyperref I get this error TeX capacity exceeded, sorry [input stack size=5000]. in the line of the \maketitle line so that I have commented the lines when hyperref is used.  However, If when I remove \maketitle everything works :(  \documentclass[journal]{IEEEtran}  %\usepackage[ocgcolorlinks,pdfusetitle]{hyperref}  \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Scheherazade}  \title{TITLE} \begin{document} \maketitle  %\href{www.google.com}{Google Link}  \end{document}    I want to use hyperref and polyglossia in an IEEEtran document.

When hyperref is loaded I receive the following error:     TeX capacity exceeded, sorry [input stack size=5000].   However, when I remove hyperref package it compiles successfully. I traced it back and found that \maketitle causes the error but don't know how to fix it. Is there any way to use hyperref in my setup.   Code:       %!TEX TS-program = xelatex     \documentclass[journal,transmag,]{IEEEtran}      \usepackage[hyphens]{url}     \usepackage{hyperref}      \usepackage{xunicode}      \usepackage{fontspec}      \usepackage{polyglossia}     \setmainlanguage{english}     \setotherlanguage{arabic}     \newfontfamily\arabicfont[Script = Arabic]{Amiri} % Replace 'Simplified Arabic' with a font from your system       \begin{document}     \title{A Very Nice Title}      \author{\IEEEauthorblockN{             John Doe\IEEEauthorrefmark{1}}%,~\IEEEmembership{Member,~IEEE}         \IEEEauthorblockA{\IEEEauthorrefmark{1}My address}         % <-this % stops an unwanted space         \thanks{Manuscript received mm dd, 20xx; revised mm dd, 20xx.               }     }      % The paper headers     \markboth{headers...}%     {Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for IEEE Transactions on Magnetics Journals}      \IEEEtitleabstractindextext{%         \begin{abstract}My Abstract.\end{abstract}          % Note that keywords are not normally used for peerreview papers.         \begin{IEEEkeywords}             Key 1, Key 2     \end{IEEEkeywords}}      \maketitle       \IEEEdisplaynontitleabstractindextext     % \IEEEdisplaynontitleabstractindextext has no effect when using     \IEEEpeerreviewmaketitle       \section{Introduction}     English Text      \begin{Arabic}      السَلَامُ عَلَيكُمْ     \end{Arabic}       \end{document}


I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I'm interested in the idea that my USB device can carry its own drivers.  I'd like the device the be plugged in, enumerated, and if a driver does not attach to it within a few seconds and initialize it, it also connects as a USB drive, and provides drivers on that drive.  Once the driver contacts the device, then the drive would be disconnected.  Do I have to design my device to be a USB hub, with two USB devices that attach and detach from that virtual hub, or does the USB specification have a way to allow this sort of design without pretending to be a hub?

I am wondering if it possible to create a USB device (in following the device) composed from   a custom circuit (eg arduino) and  a flash storage   in such a manner that the device is recognized as a standard usb flash storage (and as such is operable with standart OS drivers), while said storage holds the utilities to operate with the custom circuit (dispalying the data colled by the circuit); and if so, how?  My first thought was to smack a cheap usb-hub and usb-pen before my circuit but that solution, is not pleasing to me.  My goal is to eliminate the need to carry an extra flash-drive just for the operating software, and use default os drivers, make it plug-and-just-work:   i plug the device in the os (windows) mounts a new flash-drive without needing a special driver is start (manually or via autorun) my custom.exe from that flash-drive i recive data measured by the circuit


I'm running a nightly version of Firefox (aptly called "Nightly"), and there's a problem. Given this is a nightly release, one of the recent updates, pretty much make Firefox unusable - it'll crash after around a minute of running and doing nothing.  Since this is around two or three days ago, at least one nightly release should've been pushed through now.  Is there a way, to engage the update process of Firefox, without actually starting Firefox? As in a command line option or something?

Is there a command line switch for firefox.exe or an "about:" URL that will either force an update check or at least display the Help/About dialog, which checks for updates and tells if you're running the latest version?    One site claimed that the "about:" URL was the same as menu Help -> About, but it's not.  I built a program to automate the updating of various programs on my machine, and most programs have command line tools for checking for updates. Windows update has wuauclt.exe, Java has jucheck.exe. For some applications, I can even automate the interface, but it's difficult in Firefox, because the main window title is unpredictable (it depends on which web page is active), and all Firefox windows seem to use the exact same window class name.


How stable is the period of the multi-annual seasons?  I know this is deliberately kept vague by the author, but there has been much speculation that the climate has some magical elements, and also that it has something to do with the doom of Valyria.  A simple explanation for multi-annual seasons would be simply a planet with a longer orbit than Earth. For simple orbits, the period is determined only by distance from the sun (for instance Jupiter has a 12 year cycle) and this could easily explain the longer seasons if we assume SOIAF's sun is stronger to compensate for being farther away.  However, if the reason was astronomical, the summer/winter cycle would have be very regular. I know that the books mention that some winters are longer than others, but this is separate from periodicity. For instance, on Earth, a given place may have a winter that lasts 3 months one year and 4 months another, but this doesn't change that the peaks of winter will on average be 12 months apart.  On the other hand, if the seasons occur because of a magic spell or something like that, or perhaps some kind of geologic (eg. fluctuating heat output of the planet's core) or atmospheric phenomena (for instance like our ice ages that happen once every couple dozen hundreds of years, but much faster), they need not follow a very strict schedule.  Which version does SOIAF's world most closely correspond to? Is the summer/winter cycle on a stable period? If not, is the period changing unpredictably, or has it steadily increased or decreased over the years?

I had originally thought that the seasons were extended due to The Doom, which was 400 - 500 years ago. However, with The Long Night lasting a generation and being 8000 years ago, and the source of the season shift being "magic" (as explained in a ), has there ever been a time that the seasons were normal? Is there any reference in the books to three month seasons?


I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers.   I've found  (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution.  The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers.   Does anyone know of a better way? Using map(), maybe?


Let $H$ a subgroup of $G$ and the index of $G\backslash H$ is $2$. Prove that   $H$ is a normal subgroup of $G$.   I have already know that $1_G *H $ is an element of $G\backslash H$. I miss the little flash to continue the problem. Will someone be able to give me advice?

Please excuse the selfishness of the following question:     Let $G$ be a group and $H \le G$ such that $|G:H|=2$. Show that $H$ is normal.   Proof:  Because $|G:H|=2$, $G = H \cup aH$ for some $a \in G \setminus H$.   Let $x\in G$. Then $x \in H$ or $x \in aH$.  Suppose $x \in H$. Then $xhx^{-1} \in H$ because $H$ is a group.  Suppose $x \in aH$. Then $ahH(ah)^{-1} = ahHh^{-1}a^{-1} = a(hHh^{-1})a^{-1}$ ***1  ***1: Can I say now that $x \in H$, based on the that $hHh^{-1} \in H$ and that $aa^{-1} = e$ ?  Thank you for the time you spent reading my doubts.


I  have recently bought a Honeywell rth9580 programmable WiFi thermostat. Unfortunately I have old electric heating/cooling system probably from 70's. The system is based on two relays (I guess heating and cooling).  Since transformer doesn't have 3rd wire (C?) by default I would like to make one by connecting extra wire to transformer chassis. Having terminal C I would like to connect wire G  to terminal C and jump terminal G with Y. I measured the voltage between transformer chassis and Rh wire: idle 34VAC,  calling for heating/cooling 24VAC. Here are my questions: 1) Is this setup will work?  2) Is it safe to connect thermostat since voltage on idle is a bit higher than it supposed to?  3) Am I right to assume that transformer won't overheat because thermostat will try to drain to many amps?

So, the spiffy new wi-fi thermostats want power on the C wire from thermostat, but the old thermostat doesn't have a C wire at it.  What's the easiest way to add the C wire/24 volt to the thermostat location?


I have several scoreboards in an adventure map, so they can't all be shown in screen, and I want one particular scoreboard value to be shown in the chat when right clicking an item. For example, if I right click with a Gold Ingot it will say in the chat how many money I have. Is that possible?

Is there a way so that I make make it when I left click/right click with a certain item it applies an effect? I know that you can apply attributes to wearing armor and things but I want it so when you use the item it applies an effect on your player.  For example, let's say I want something so that when I right click with a certain item (let's say an iron ingot that was given to me) I'll then have a jump boost for 10 seconds. So kinda like a potion in a way.  Is this possible with command blocks/commands/any mods?


Batman has tended to introduce himself as simply 'Batman', e.g. In the Keaton movie we had the line  "Who are you?!" "I'm Batman"  However he is also referred to as 'the Batman'. Is there any rhyme or reason behind which form is used and when?

In Batman's first appearance in Detective Comics No. 27, he is referred to as "The Bat(-)Man" exclusively.      In the issue, characters say "It's the Bat-Man" rather than "It's Batman".  For example:     It's the Bat-Man — get him!   In which issue does a character refer to him as just "Batman" for the first time? In particular, when is "It's Batman" (with no definite article) used for the first time?  For the purpose of this question, hyphenation ("Bat-Man" vs. "Batman") is unimportant.


I want to use latex to make PDF for all figures. Please see the code. The image is inserted but "100" on the left column appears at the bottom of the row. How do I align that to top or center of the row? Thanks a lot Jay    \documentclass[12pt,a4paper]{article} \usepackage[margin=1in,landscape]{geometry} \usepackage{parskip} \usepackage[T1]{fontenc} \usepackage{txfonts} \usepackage{graphicx} \usepackage{array}    \begin{document} \textbf{Title} \hfill \textit{Author} \smallskip \hrule  \begin{tabular}{ |>{\centering}m{1.1in}| p{1.6in}|} \hline  Drug Conc (ug/ml) & Image \\  100 & \includegraphics[width=1.5in]{100.jpg} \\   \end{tabular}   \end{document}

I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of every column should also be centered horizontally. I am aware of the m{} column type but somehow this seems to fail if an image is contained in the row and determines the row height. Any ideas?  Minimal example:  \documentclass{article} \usepackage{graphicx} \usepackage{array} \begin{document} \begin{figure} \begin{tabular}{m{3cm}c} (a) & \includegraphics{some_picture.pdf}\\ \end{tabular} \end{figure}  \end{document}


Can anyone please explain why I'm getting a NullPointerException when I try to register a user and save his details to the database?  Here is the xml file, which just asks for the user's details  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical" >      <EditText         android:id="@+id/eT_R_userName"         android:layout_width="250dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:ems="10"         android:hint="User Name"         android:inputType="textPersonName" >          <requestFocus />     </EditText>      <EditText         android:id="@+id/eT_R_email"         android:layout_width="250dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:ems="10"         android:hint="Email"         android:inputType="textEmailAddress" />      <EditText         android:id="@+id/eT_R_password"         android:layout_width="250dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:ems="10"         android:hint="Password"         android:inputType="textPassword" />      <Button         android:id="@+id/btn_R_register"         android:layout_width="200dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:onClick="Login"         android:text="Register" />  </LinearLayout>   onClick Listener  Button btn_register = (Button)findViewById(R.id.btn_R_register);  btn_register.setOnClickListener(new View.OnClickListener()  {      @Override     public void onClick(View v)      {          //insert user profile data into database         final String Name = user_name.getText().toString();         final String Email = email.getText().toString();         final String Password = password.getText().toString();          //Debug         System.out.println(">>>onClick1---> Register User\nName: " + Name + "\nEmail: " + Email + "\nPassword: " + Password);          //Method         insert(Name, Email, Password);     } });   Method to insert data, the NullPointerException occurs here      public void insert(String Name, String Email, String Password)     {         //Debug         System.out.println(">>>Method---> insert user data into Database\n" + Name + "\n" + Email + "\n" + Password);          db.insertData(Name, Email, Password); }   The Database stuff looks like this  public static final String USER_ID = "email"; public static final String USER_NAME = "user_name"; public static final String PASSWORD = "password";  public static final String DATABASE_NAME = "molo.db"; public static final String DATABASE_TABLE = "user_profile"; private static final int DATABASE_VERSION = 1;  //SQL to create new database private static final String DATABASE_CREATE =          "create table " + DATABASE_TABLE +         " (" +         USER_ID + " text not null, " +         USER_NAME + " text not null, " +         PASSWORD + " text not null);";   and this  public void insertData(String user_ID, String user_Name, String Password) {     // Put these elements in the User Profile table     ContentValues element = new ContentValues();     element.put(com.example.molo.UserDB.USER_ID, user_ID);     element.put(com.example.molo.UserDB.USER_NAME, user_Name);     element.put(com.example.molo.UserDB.PASSWORD, Password);     database.insert(com.example.molo.UserDB.DATABASE_TABLE, null, element); }

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


Find the  positive integral values $n$  can take for which  :${(x+y+z)}^2=nxyz$ is solvable for positive integers.  My try: Due to symmetry WLOG let $x\ge y\ge z$. Now ,making it in a quadratic in $x+y$,we have $$nxyz={(x+y)}^2+2(x+y)z+z^2$$ or $z| {(x+y)}^2$. But I don't know what to do with this. Also I tried playing with inequalities to get $$nyz\le 9x$$ and the equality condition $x=y=z$, yields $$nx=9$$ or $n$ can take the values $(1,3,9)$ but I can't find more. I know this question has been asked before but I have not learned that much. I also tried using a little bit of calculus but nothing promising came  up.

Find all $n\in\mathbb{N}$ so that there exist $x,y,z\in \mathbb{N}$ that solve:   $$(x+y+z)^2=nxyz$$   I tried to attack it finding solutions, but all the solutions doesn't seem to have something in common. For example:  $$ (x,y,z,n)=(1,1,1,9)$$ $$ (x,y,z,n)=(1,2,3,6)$$ $$ (x,y,z,n)=(1,4,5,5)$$ $$ (x,y,z,n)=(2,2,4,4)$$ $$ (x,y,z,n)=(8,8,16,1)$$  I was trying to solve this problem, but someone told me that a hint to solve it is using Vieta Jumping. I don't know how to use Vieta Jumping, so can anyone help me to understand how to apply Vieta Jumping and solve the problem?


:  The gamma function obeys the equation  $\Gamma(z+1)=z\Gamma(z)$.  Taking the derivative with respect to $z$ gives:  $\Gamma'(z+1)=z\Gamma'(z)+\Gamma(z)$  Dividing by $\Gamma(z+1)$ or the equivalent $z\Gamma(z)$ gives:  $\frac{\Gamma'(z+1)}{\Gamma(z+1)}=\frac{\Gamma'(z)}{\Gamma(z)}+\frac{1}{z}$  or:  $\psi(z+1)=\psi(z)+\frac{1}{z}$  Since the harmonic numbers are defined as  $H_n=\sum_{k=1}^n\frac{1}{k}\tag{1}$  the digamma function is related to it by:  $\psi(n)=H_{n-1}-\gamma$  where $H_n$ is the nth harmonic number, and $\gamma$ is the Euler–Mascheroni constant.     This doesn't make sense to me. The two values subtracted appear to be equal: How does $$\psi(z+1)=\psi(z)+\frac{1}{z}\tag{2}$$ differ from $\sum_1^n \frac{1}{z}=H_n$ If the sum in (2) doesn't terminate at 1, the definition of the sum is undefined for gamma at negative integer values. If wikipedia is saying non integer values of $\Psi$ of a finite sum i.e. $\frac{1}{1.5}+\frac{1}{2.5}+\frac{1}{3.5}\dots$ differ from $H_n$ by $\gamma$ I'm equally doubtful as $\gamma$ is only equal to infinite sums and I don't see how this value could equal the infinite difference between the integral and sum $\frac{1}{n}$. What am I not understanding. Please help.     Edit: as noted in the comments, could someone explain/link/prove why $\frac{\Gamma'(0)}{\Gamma(0)}=\gamma$

I wish to extend the factorial to non-integer arguments in a unique way, given the following conditions:  $n!=n(n-1)!$  $1!=1$    To anyone interested in viewing the final form before reading the whole post:   $$x!=\exp\left[\int_0^x\left(-\gamma+\int_0^1\frac{1-t^\phi}{1-t}dt\right)d\phi\right]$$    $$f(x):=\ln(x!)$$  $$f(x)=\ln(x!)=\ln(x)+\ln((x-1)!)=\ln(x)+f(x-1)$$ $$f(x)=f(x-1)+\ln(x)$$ $$\frac d{dx}f(x)=\frac d{dx}f(x-1)+\ln(x)$$ $$f'(x)=f'(x-1)+\frac1x\tag1$$ $$f'(x)=f'(x-2)+\frac1{x-1}+\frac1x$$ $$=f'(0)+1+\frac12+\frac13+\dots+\frac1x$$ for $x\in\mathbb N$:  $$f'(x)=f'(0)+\sum_{n=1}^x\frac1n\tag2$$  Euler has a nice extension of the harmonic numbers to non-integer arguments, $$f'(x)=f'(0)+\int_0^1\frac{1-t^x}{1-t}dt\tag{2.1}$$ from the FTOC we have $$\ln(x!)=\int_0^x\left(f'(0)+\int_0^1\frac{1-t^\phi}{1-t}dt\right)d\phi$$  $$x!=\exp\left[\int_0^x\left(f'(0)+\int_0^1\frac{1-t^\phi}{1-t}dt\right)d\phi\right]\tag3$$  And with $f'(0)=-\gamma$, the Euler mascheroni constant, we should get the gamma function.  Or we may just let it sit as an unknown parameter.  My questions are if this captures all possible extensions of the factorial with the given conditions, since, if it did, it'd be a pretty good general extension to the factorial? Given a few more assumptions, it is easy enough to set bounds to what $f'(0)$ might be as well. Notably, this representation fails when considering $\Re(x)\le-1$, but coupled with the first condition, it is extendable to all $x$, except of course the negative integers.  robjohn♦ notes an extension to the harmonic numbers that converges for $x\in\mathbb C$, except the negative integers: $$\int_0^1\frac{1-t^\phi}{1-t}dt=\sum_{n=1}^\infty\left(\frac1n-\frac1{n+\phi}\right)$$  Any suggestions on things I could've improved and flaws in this would be nice.  Edit: Using the second condition and $x=1$, we may have $$1=\exp\left[\int_0^1\left(f'(0)+\int_0^1\frac{1-t^\phi}{1-t}dt\right)d\phi\right]$$ $$\implies f'(0)=-\int_0^1\int_0^1\frac{1-t^\phi}{1-t}dt\ d\phi$$ $$f'(0)=-\gamma$$ where $\gamma$ is the Euler-mascheroni constant. Using this we get a new form of the gamma function(?):  $$\boxed{x!=\exp\left[\int_0^x\left(-\gamma+\int_0^1\frac{1-t^\phi}{1-t}dt\right)d\phi\right]}\tag4$$  $$=\exp\left[\int_0^x\left(-\gamma+\sum_{n=1}^\infty\left(\frac1n-\frac1{n+\phi}\right)\right)d\phi\right]$$  I'm not sure how to deal with trivial manipulations of this expression, as surely someone is gonna say "hey, just multiply everything by $(1+\sin(2\pi x))$ and it will still satisfy the conditions, right?" But regardless, I think this is a pretty cool new gamma function?  Also, references to this if it's not new. If someone could make a graph of this to look at, you would be great.


Plot Details/Summary Another one of my "long shot specials", I'm afraid. The show was some sort of sci-fi adventure set on Earth or an Earth-like planet.  There is a mixed group of survivors/adventurers who are brought together somehow and all put into the situation they are in. I believe all of the characters are humans and from Earth. The one thing I can really remember from the show is that one of the characters had a wand-like device that had a clear glass or plastic "tuning fork" on the end of it.  The character could focus his thoughts or will through the device, which would glow and do things like shatter glass, etc. That's about all I can recall.  I don't know if it was only a tv pilot, or if it went to series.  It was definitely an American or Canadian produced show (i.e. it was not British) and I'm almost certain it was broadcast by one of the major tv networks. Timeframe Mid-to-late 1970s.  I think it was probably later in the 70s, though I'm not certain of that.

I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel.


I cannot for some reason move a plugin folder for my server into /usr/lib/name  I get an error saying permission denied... I need this plugin to fix my issues... Does anyone know how I can get permission to perform this task?

I'm still a little new to Ubuntu and was wondering how I can copy files, in this case Aptana Studio, to /usr/local/ without being denied.   Is there a way to do it in terminal? Or a way to allow myself permission?  I should add that I am using 10.10 Desktop edition, not server.


Dear Ladies and Gentlemen,  After updating TeX Live with the TeX Live Utility, today, XeLaTeX does not compile any file any more, and gives in the console the warnings:  “package expl3 Version 2018/02/21 not installed”, and “Package xparse Error: Support package l3kernel too old” and says: “Please install up to date version of l3kernel using your tex package manager from CTAN“. It seems that with the new update something which has to be updated also has not been updated. Does anyone know what to do?  With best regards, Jens Bakker

After the latest TeX Live updates I keep getting these errors:  LaTeX Warning: You have requested, on input line 26, version            `2018/02/21' of package expl3,            but only version            `2017/12/16 L3 programming layer (loader) '            is available.   ! Package xparse Error: Support package l3kernel too old.   Any help appreciated.  Solution (from Christian's comment): restore l3packages to the previous version.


I am trying to store the bundle name and its latest version in the Map.  Below is my newDirs which is an ArrayList<Map<String, String>>() from which I am supposed to get the Bundle name and its latest version-  [{objectName=/storage/Model/Framework/1.0.0/, objectId=4fa042a5a56c861104fa05c246cf850522a2354ca223, objectType=DIRECTORY},  {objectName=/storage/Model/Framework/1.0.1/, objectId=4fa042a5a66c860d04fa056bbe1cf50522a14094ca3f, objectType=DIRECTORY}]   Now from that above List, I am supposed to extract the latest version of Framework bundle . So in the above case, it is 1.0.1 version and the bundle name is Framework. So my map will store Framework as the Key and 1.0.1 as the version of the bundle in the above case.  Below is my code-  final List<Map<String, String>> newDirs = new ArrayList<Map<String, String>>();  for(String ss : list) {      //some code here for newDirs      Map<String, String> map = storageDirectorySort(newDirs);     System.out.println(map); }  /**  * Sort the list and then return the map as the Bundle Name and its Latest version  *  */ private static Map<String, String> storageDirectorySort(List<Map<String, String>> newDirs) {      Map<String, String> map = new LinkedHashMap<String, String>();      // do the sorting here and always give back the latest version of the bundle and its name      return map; }   Can anybody help me with this. I am not sure what is the best way of doing this?

I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values.  Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key.  Is there an easier way?


How do I install Ubuntu on a new drive with a downloaded version 13.10 on a dvd? The file is a zip, do I unzip it the the dvd? I have been able to install Ubuntu on a pc with an OS but having trouble with a new hard drive.

I would like to see a full how-to guide on how to install Ubuntu.


I am traveling first to Greece then to Croatia. But I have Schengen with single entry. So is it allowed to enter Croatia with this visa?

I am traveling to Zurich with a single-entry Schengen visa.  While coming back can I travel to Croatia for 3 days and then return to India (Country of Origin)?


My Squid (3.1.20 on Ubuntu 13.04) is under DDoS attack (with about 1000 different IPs). I'm using Basic Authentication on it and all of those requests are getting DENIED response but still they increase server's load. How can I defense against DDoS attack on Squid?

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


I used to hear you are supposed to use gksudo, but that is no longer installed by default. What should be used in its stead?

I have always recommended pressing ALT+F2 and typing for example gksu nautilus or gksudo nautilus both are equivalent; to run graphical programs with root privileges.  However, I have just installed raring on a test system and this no longer works.  gksu and gksudo are not installed as part of a default raring install; though they are in the repositories. In 12.04 at least gksudo was just a symbolic link to gksu  The reasons I have always done this are because while it is often safe to use sudo under some circumstances it can cause problems with graphical applications because gksu has you running the program as root while with sudo you are running as yourself but with elevated privileges.  This can mean you inadvertently change the owner of critical system files.  This can cause problems.  This reasoning is explained better here:         Why was command removed from a fresh install and what should we be using instead?


I'm trying to prove the following:     Let $A\in \mathbb{C}^{n\times n}$ be a matrix with null trace; then $A$ is similar to a matrix $B$ such that $B_{jj}=0$ (i.e. it has zeroes on its diagonal).   Any ideas? Induction on $n$ sounded feasible but I wasn't able to put together anything.

Prove that if $A$ is a square matrix and $\mathrm{Tr}(A)=0$, then there exists an invertible matrix $R$ such that the matrix $T=R^{-1}AR$ has all entries on its main diagonal equal to $0$.   It seems like the formula $A=S\Lambda S^{-1}$, but maybe it does not help.  Thanks so much.


I have a question on Stack Overflow which some one has taken the liberty of editing massively. I reverted the question, and in my re-revision stated, among other things, that I felt the edits missed the point of the original question.  A little while later I received a personal email from the user in question, trying to apply emotional pressure, which I chose to ignore.  A few days ago, I find that the question was massively edited again by the same user, which, again I rolled back. I have no idea why this user feels the need to hack my question, but I do feel that it's inappropriate.  Just a few minutes ago, the user again edited my question, but this time the changes are trivial enough to overlook.  How can I stop someone from making massive changes to a question which I feel are at odds with the original?

So... from a while back, I posted a question dealing with implementing a certain feature within an iPad app (no specifics, see  for question), and I noticed that there was an approved edit by a user named Zephyer who posted something about Windows 7.  After a face-palm, I re-edited my question to bring it back in line with my query.  So, my question then is: What the heck do we do with the occasional stupid/irrelevant edit?  I know it doesn't happen often, but there's got to be something other than just re-editing I can do!    EDIT: Excellent suggestions.  To clarify two things though:   This post is quite old.  I was a new user at the time, unaware of the rollback feature if it even existed at the time of it's posting. I just wanted to know if there was some way to get the attention of the editor.  It doesn't need to be a downvote or a flag, just a message, or an indication.


Greeting, I am aiming to do a website with a "onePage style". As I have 3 different pages I want to display, I want the first section of the page to be the content of those 3 pages and the other section would be the same on the 3 pages. But my question is : how to do that avoiding duplicated content ? In a nutshell : 3 pages with a onepage style with the first section being different and the other section being the same. Like can you see this :

This is a general, community wiki question regarding duplicate content.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .     What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content?


I want to use javascript as a text for an example. Here is the following code:

 Here you can see how the XSS works

 Example of injecting malicious JavaScript:

     Now the attacker can craft a URL in the following format and send it to the victim:

     http://www.test-attack.com/index.php?name=myuser      When the victim loads the URL shown above into the browser, he will see an alert box with the text "hacked".      Even though this specific example doesn’t cause any damage besides the annoying "hacked" pop-up,     it’s clear how an attacker can use this simple and straightforward method to exploit websites and applications.
   So i want to have http://www.test-attack.com/index.php?name=myuser  as text but all you can see is the url without the JavaScript code.  I have jquery loaded, so i wanted to ask is it possible to make it visible ?

I'm trying to write a blog post which includes a code segment inside a <pre> tag. The code segment includes a generic type and uses <> to define that type. This is what the segment looks like:  <pre>     PrimeCalc calc = new PrimeCalc();     Func<int, int> del = calc.GetNextPrime; </pre>   The resulting HTML removes the <> and ends up like this:  PrimeCalc calc = new PrimeCalc(); Func del = calc.GetNextPrime;   How do I escape the <> so they show up in the HTML?


I was trying to execute an INSERT query which ensures that only 1 row is inserted and avoid duplicate insertions/ here is my SQL string that i used inside my PHP file:  $sql = "INSERT INTO `users`( `user_name`,`email`,  `password`, `active`) VALUES (:name, :email, :pass, :active) LIMIT 1";   I got this following error:  Calling BeforeException -> string(211) "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 1' at line 1"    i think MariaDB Insert command do not use LIMIT syntax.  please suggest.Thanks

While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either:  ON DUPLICATE KEY UPDATE which implies an unnecessary update at some cost, or INSERT IGNORE implies an invitation for other kinds of failure to slip in unannounced.  Am I right in these assumptions? What's the best way to simply skip the rows that might cause duplicates and just continue on to the other rows?


I have a PHP code that exports the products to the XML file with the database. I have a problem with the created XML file because its contetent-type is set to "text / html" and I need to change it to "text / xml"  This code works for me but creates xml in text / html.  <?php      $con = mysqli_connect("xxx","xxx","xxx","xxx");     mysqli_set_charset($con,"utf8");     $sql = "SELECT * FROM products WHERE ";     $myFile = "xml/xxx.xml";      $fh = fopen($myFile, 'W +');     $rss_txt = "";     $rss_txt .= '<?xml version="1.0" encoding="utf-8"?>'.PHP_EOL;         $rss_txt .= '<products>'.PHP_EOL;         $rss_txt .= '<datetime><![CDATA['.date('d.m.Y H:i').']]></datetime>'.PHP_EOL;             $query = mysqli_query($con, $sql);              if (!$query) {                 die(mysql_error());             }              while($values_query = mysqli_fetch_assoc($query)){                     $rss_txt .= '<product>'.PHP_EOL;                         $rss_txt .= '<title><![CDATA[' .$values_query['product']. ']]></title>'.PHP_EOL;                         $rss_txt .= '<sku><![CDATA[' .$values_query['sku']. ']]></sku>'.PHP_EOL;                         $rss_txt .= '<description><![CDATA[' .$values_query['description']. ']]></description>'.PHP_EOL;                         $rss_txt .= '<image><![CDATA[' .$values_query['img']. ']]></image>'.PHP_EOL;                         $rss_txt .= '<quantity><![CDATA[' .$values_query['stock']. ']]></quantity>'.PHP_EOL;                         $rss_txt .= '<category><![CDATA[' .$values_query['product_categories']. ']]></category>'.PHP_EOL;                         $rss_txt .= '<price><![CDATA[' .$values_query['price']. ']]></price>'.PHP_EOL;                     $rss_txt .= '</product>'.PHP_EOL;             }          $rss_txt .= '</products>'.PHP_EOL;      fwrite($fh, $rss_txt);     fclose($fh);      mysqli_close($con); ?>   I know I will change the content-type by adding this code:  header("Content-Type: text/xml");

I've got a php script. Most of the time the script returns html, which is working fine, but on one occasion (parameter ?Format=XML) the script returns XML instead of HTML.  Is there any way to change the returned mime type of the php output on the fly from text/html to text/xml or application/xml?


If i change this method:  public void setCustom(Map<String, Object> custom) {     this.custom = (LinkedHashMap<String, Object>)custom; }   to:  public void setCustom(LinkedHashMap<String, Object> custom) {     this.custom = custom; }   do i have to update the serialVersionUID? Is it a compatible change or not?

Eclipse issues warnings when a serialVersionUID is missing.       The serializable class Foo does not declare a static final   serialVersionUID field of type long   What is serialVersionUID and why is it important?  Please show an example where missing serialVersionUID will cause a problem.


Is there a .svg to .pdf_tex converter without Inkscape?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:  Is there a way to include SVG diagrams directly without conversion to an intermediate format?  Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.


I am looking to buy a new mountain bike and comparing two models with different head tube angles.  How big of difference does 1 degree of slackness make?  Would an intermediate rider be able to feel the difference?    Both bikes appear to be fairly slack.      has a 67 degree headtube angle.    has a 68 degree headtube angle.

My girlfriend and I are looking at a new bike for her. The one we're looking at has a 70 degree head tube angle while her current bike has a 70.5 degree head tube angle. Unfortunately, none of the local shops has one in stock for her to try out. So my question is:  How much does the head tube angle affect the fit and feel of a bicycle? I'm sure that it has at least some effect over the fit of the bicycle, but how much? And I'm guessing it has an even bigger effect on the steering, but again, how much?


(A) let $S=\{xa+yb: x, y \in \mathbb{Z}\}$. Explain why $S$ has a smallest positive element. Denote the smallest element by $u$  Attempted Solution: I tried plugging in values for a and b, since they can not be $0$ but the only common positive divisor is $1$. I assumed $1$ would be the only option for these values.  I'm not sure if this is even what the question is asking.

Given $a_1, a_2, a_3, \ldots , a_n$ not all zero, show $\gcd(a_1, a_2, a_3, \ldots , a_n)$ is the least positive integer that can be expressed in the form $a_1x_1+a_2x_2+ \ldots +a_nx_n$. Also deduce $a_1x_1+a_2x_2+ \ldots +a_nx_n = b$ has solutions $\iff \gcd(a_1, a_2, a_3, \ldots , a_n)|b$.   I know that $ax+by=n$ has integer solutions $\iff \gcd(a,b)|n$. I'll need to use induction to show $a_1x_1+a_2x_2+ \ldots +a_nx_n = \gcd(a_1, a_2, a_3, \ldots , a_n)$ has solutions, and then I will be able to say that as $\gcd(a_1, a_2, a_3, \ldots , a_n) | a_1x_1+a_2x_2+ \ldots +a_nx_n $ for any $x_1,x_2, x_3 \ldots x_n$ then $c \leq \gcd(a_1, a_2, a_3, \ldots , a_n)$ and $c \geq \gcd(a_1, a_2, a_3, \ldots , a_n)$, and thus $c=\gcd(a_1, a_2, a_3, \ldots , a_n)$.


Does anybody know which typeface might this be and can it be used with LaTeX via a package?    Thank you!

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Back in December I didn’t have a proper working visa for the UK, so I was sent back to America. Essentially, denied entry.   I’m going to Italy in March, but I stop in Portugul for the border check. If I have a totally new, fresh passport- will Portugual know I was deported? Will I run into any issues? I wasn’t banned from the UK, they just suggested I go home and try to come back but I did have my finger prints taken.   I’m going to Italy as a tourist and staying with a host family I met in September when I was there for three months, and come March I’ll be that family’s Au Pair.

In Early September I was an au pair in Italy, but because I'm American I can only stay in the Schengen Zone for 90 days. I decided to continue as a nanny in Manchester, UK until my 90 days were up. Essentially, I said “working” to the UK border, so they sent me back to the USA.  My passport now has an ‘X’ across the Manchester stamp. Will this affect me re-entering the EU (I go through immigration in Portugal, despite my final destination being Italy)? Or am I better off getting a new passport? I’m not sure if they share the same database, but I don’t want to run into any issues again.


Well, i have this problem with a larger script but I will make it simple  Let's supouse this is my script  $("a").click(function(){    alert("test"); });   So, everytime someone click on an hyperlink, it will alert the user.  But when i retrieve an  element from another page with AJAX, the script isn't activated when someone click on it.  Does anyone knows? Thanks

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


I am a real estate agent. My only need for the camera that I purchase, is to have the best wide angle photos. I was looking at DSLR and point and shoot cameras. What is the best point and shoot camera (i'm not sure if this is the correct term, I'm speaking of something like the canon coolpix)? Also, are there some cheaper options for DSLR cameras with the attachments? I saw a canon ef-s 10-18mm that was priced pretty well but I don't know what kind of camera I would need to attach this to. Any help would be appreciated. Thank you!!

What equipment is necessary for real estate photography, and what is preferred?  I'm starting into real estate photography, and I'm trying to figure out what I need and what I will want to plan on adding to my kit as I go.  I'm thinking especially along the lines of lighting equipment and lenses (focal lengths).  For example, is an ultra-wide actually necessary? Or is a general walk around sufficient.


when i pass variables to my method they are not updated in the main code, but only passed to the method. how to do that once passed variable would update in main code?   Thanks!  //////////// here is main code: public static  class MyCoding extends MainScreen{ static int mee=1;         public static void myCode(){         Status.show("mee="+mee, 2000);   // shows me=1         Moo.moo(mee);         Status.show("mee="+mee, 2000);// should be mee=76547545 but still shows mee=1 !      } }   //////////// here is my method:  public static  class Moo extends MainScreen{     public static void moo(int bee){         mee=76547545;          return;     } }   What to do? Thanks!

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


Dear Friends: Like most of you, I care for the aesthetics of the font and presentation of my work in Tex.   I am interested in the Tex template file for Journal called "Mathematical Notes" which is published by Springer. Unfortunately, I am unable to find a template that matches their publication.   If you some one can find me the template or even identify the fonts used in the layout, it would make me happy! The fonts look like a variant of the family: Obyknovennaya Novaya  I am attaching a screen shot.


Is it allowed for user to post question proposing some protest actions against SE site/network? For example propose to avoid using it on concrete date or misuse/overuse some of the rules to explicitly show its inadequacy. Actually not sure if we can join these cases, so if they differ, I'd like to find some kind of border between them.  If yes, are there special requirements for such kind of posts? If no, how should such questions be handled: just close as offtopic or close and delete? If some of them are allowed and some are not, where is a border?

I was just reading , i.e., stop moderation and similar type duties, for some period of time to get the attention of the SE staff. It was only on the site for a few minutes, and I was just about finished reading it, when it was deleted. I assume the OP didn't delete it, so I suspect it was likely done by a moderator. I realize having somebody ask other people to take such actions would not be appreciated by SE, but I don't believe such censorship is warranted. As far as I know (but I'm not an expert), it didn't break any rules here.  I have seen from various recent posts and answers there's a lot of confusion, frustration and anger here, with people going to reduce or stop various moderation type activities regardless of whether or not any posts explicitly asking people to take such actions are removed. Actually, I would not be surprised if this post will also be removed just for me asking about it.


Whats wrong with the following query. The first part of the select always return 0 rows.    DECLARE      @AgentID varchar(20),     @StringValues varchar(max),     @ContactKey int,     @Note varchar(255)       SET @AgentID = 'c110010'     SET @StringValues  = '08-328222,08-337333,09-348444,09-352555'     SET @ContactKey = 0     SET @Note = ''        SELECT   @AgentID as agentid,mlsnum,'New' as status,ADDRESS,@Note as notes,PROPERTY_TYPE as propertytype FROM mls_unified_svo_tbl (nolock)                     WHERE mlsnum IN (Select txt From [dbo].[fn_ListToTable](@StringValues, ','))                     AND mlsnum  NOT IN (select mlsnum from listing_cart (nolock) where agentid = @AgentID and contact_key = @ContactKey)    UNION ALL     SELECT   @AgentID,mlsnum,'Old',ADDRESS,'','' FROM mls_unified_svo_tbl (nolock)                     WHERE mlsnum IN (Select txt From [dbo].[fn_ListToTable](@StringValues, ','))                     AND mlsnum  IN (select mlsnum from listing_cart (nolock) where agentid = @AgentID and contact_key = @ContactKey)

When I have a query that checks if a column of type uniqueidentifer does not exist in a table that has a null value then I get no results back. If the subquery does not return a null it works fine and it only happens when using not in.   I know I can just do a not null check in my subquery, but I am curious why this does not work.  Query Example:  select a.guid from tableA a where a.guid not in (select b.guid from tableB AS b)   Working Test:  select 1 where newid() not in (select newid())   Broken Test:  select 1 where newid() not in (select null)


I have objects which contain a dictionary and a name (string). I want to loop through these objects, compare their dictionaries and names, and if any dictionaries & names are exact matches, I want to remove all duplicates, then return a list of objects where none of the dictionaries & names match.   Here is what I have so far:  private void removeDuplicates(List<MyObject> objectList) {     List<Dictionary<string,string>> listOfObjDicts = new List<Dictionary<string,string>>();     List<string> nameList = new List<string>();       foreach(MyObject object in objectList)      {          nameList.Add(MyObject.name);          listOfObjDicts.Add(MyObject.dict);      }      //compare name & dictionary against all other objects, then remove any duplicates from objectList. }   It is probably safe to assume that even this structure of a foreach loop iterating over the list of objects isn't great - because I want to return a list of objects, not a list of names and a list of dictionaries. I'm pretty stuck on this. Some people have mentioned LINQ, but I really have no experience or ability to read/understand LINQ syntax.

I am playing with LINQ to learn about it, but I can't figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not the question). What I if want to use  on a list of an Object on one or more properties of the object?  Example: If an object is Person, with Property Id. How can I get all Person and use Distinct on them with the property Id of the object?  Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2"   How can I get just Person1 and Person3? Is that possible?  If it's not possible with LINQ, what would be the best way to have a list of Person depending on some of its properties in .NET 3.5?


I was able to show that if $(n,72)=1$ then $n^{12}\equiv 1\mod {72}$, and now the second part of this question seeks to find the largest $m$ such that $n^{12}\equiv 1\mod m$ for all $n$ relatively prime to $m$. Based on the first part we must have $m\geq 72$. But I have no idea on how to proceed; any hint would be vastly appreciated. Maybe using Euler's totient function?

Let $k\ge 2$ be a natural number.      What is the largest number $n$ with $\lambda(n)=k$, where $\lambda(n)$ is the Carmichael-function. (See :  ) ?   For $k=2$, the maximum seems to be $24$.  For $k=4$, the maximum seems to be $240$.  For $k=6$, the maximum seems to be $504$.  For $k=60$, I found many $n's$, currently I arrived at $227,146,920$. (The program just found a higher number, so the number is not maximal)  I am not sure, but a maximum should exists for every $k$, thus defining the number $n(k)$.     Which growth rate will $n(k)$ probably have ? Exponential ?


Good day, My “restrictions” folder in “general “ unable to access) It’s disappeared in “general “ settings. In search I can see  search result as “restrictions” but unable to access this search result. Is it connected with update 12.3??? Symbol E appeared in music. I’m not sure regarding this symbol during usage 12.2. And my friend with 12.2 now has normal access to “restrictions” folder in “general” settings.

This is probably a duplicate, but the &@$#& app won’t let me scroll through the suggestions.  I keep getting “page is restricted” in Safari for pages that are obviously quite innocent.  (Some of them confirmed so by checking on laptop.)  Multiple web pages say Settings: General: Restrictions, but there is no such path in IOS 12.1 and I have so far failed to find anything anywhere in settings.  Checked Privacy, Safari, and several other places.  One of those pages claimed to be telling us that it was for IOS 13.


I recently changed the lighting in the viewport in the system preferences.    How can I rest the positions of the lights? The Reset to Default Value does not work. it simple sets them all to a top light.  How can I reset the direction of the lamps without restoring factory defaults?

I read the original , I understand, but I don't do Python.  How would I "reset" my settings as shown? I've had trouble with these forever, so my Solid lighting as I work is bizarre. Even with a new startup they're kaflooey.  Added bonus: How to "put back" the settings I have now if I screw up?


I am using Centos as my server OS and in my desktop I have a directory called "john", I need delete it via a command. How can I do this?

In bash all I know is that   rmdir directoryname   will remove the directory but only if it's empty. Is there a way to force remove subdirectories?


I'm a beginner of using R and Latex. Just wonder how to write yi = β0 + β1xi + β2x2i + ei by using Latex?

Which book (free or otherwise) was the most useful to you when you started learning LaTeX?  I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got me started, , but I feel that there might be better options around.  Also see .


If I want to question someone about what makes up a given dish, which of the following sentences is the most appropriate ?   What is this dish made up of ?  What is this dish made from ?    It seems to me that the first sentence is more appropriate when we want to know all of the food found on a dish while the second one is more for ingredients, am I right ? In addition to the proper way to question a person, how can we answer someone who asked us to describe a given dish ?  This dish is composed of eggs, french fries, rice ...  Is this construction fine or is there a more proper way to say that ?

I'd really value your thoughts on this one. I'm familiar with the following use of 'made of':  The shirt is made of silk.  But I'd like to know if anyone thinks using this phrasal verb as a synonym for comprise/consist of/be composed of/made up of is actually grammatically correct/non-standard usage.  The board is made of five members. The board is made up of five members.  A few instances of this usage came up on a google search, but I'm not convinced...


I have the following question:  Suppose that $f$ is analytic in the unit disk and $|f(z)| \leq \frac{1}{1-|z|}$. Prove that $|f'(z)| \leq \frac{4}{(1 - |z|)^2}$ in the open unit disk.  I am not really sure where to start. Any help would be appreciated.

$f$ is an analytical function on the unit disk $\mathbb{D}$ for which there is a $C > 0$ such that  $\forall z \in \mathbb{D} \colon |f(z)| \leq \dfrac{C}{1-|z|}$.  I know have to prove that    $\forall z \in \mathbb{D} \colon |f'(z)| \leq \dfrac{4C}{(1-|z|)^2}$.  I tried using the Cauchy integral formula but I can't find a fitting circle to get this result.


So here's a funny thing: I have 3 Fs and 1 D on my transcript, but my GPA is ~3.8, which is "high" because I double majored in math and computer science. The reason for those 4 bad grades is that I had 2 bad semesters where I suffered from depression; I didn't drop the classes before the deadline so I ended up failing the classes. However I retook the classes and got As in them (hence my GPA), and in fact got A/A-s in all subsequent classes (quite an improvement). I plan to apply to a master's for computer science, and eventually a phd. However I know the admission officers eyes will bleed when they see my transcript, despite my GPA, because my school keeps ALL grades on transcripts, even if the grades were replaced by retaking classes. Do I still have a chance at top-10 graduate school for computer science even with these grades (which were retaken and then aced)?

I am in the third year of my undergraduate degree now, and in the process of applying for Graduate schools and Med schools. I have a burning questions about a creepy "C" in my transcript.   To summarize my story: I was recovering from a biopsy operation back then. Though I was advised to take one semester off to rest physically and mentally (I was extremely paranoid waiting for the pathology report, and luckily it came back benign), I still decided to take all the courses and the heavy research that I had started before. I performed so badly that semester that I received a C. That is like the most embarrassing element in my transcript.   Some told me that such a bad grade is a disadvantage for admissions. Do I still have a chance to make it to top grad and med schools?  With extra effort (I have managed to pull up my GPA to 3.8 now, I have been on the Dean's list for some semesters, have 3 publications, and 2 poster presentations at symposium, my GRE and MCAT are good too), can I cover that ugly spot?


I'm looking for a sci-fi short story where a crew from Earth makes first contact with an alien. The alien tells them about how all the alien races united to destroy an extremely violent/belligerent species that threatened everyone. They defeated and exterminated the species, but a few got away.   At the end, we learn this ancient enemy was humanity. And then Earth gets destroyed.

So the story goes, humans in a spaceship search for an inhabitable planet, being surprised they found none in the vicinity of Earth. They find one, and it seems uninhabited. At the same time are observed by the aliens, who go down on the planet to meet them. The aliens sit them down and tell them a story about war and conflict that ruled the galaxy, and how all the sentient races in the galaxy got together and got rid of the race that tried to conquer all by blowing up their planets.  In the end you realise man is this terrible conqueror the aliens are talking about.


string = 'protein219 Info=Acidfast Name="Mycobacterium   smegmatis" pcp=36789'   I would like to split the string ignoring  the whitespaces between  "" . I am using the below regex to split the line   mystring = [s for s in re.split("( |\\\".*?\\\"|'.*?')", mystring) if s.strip()]    Which gives me the result as   ['protein219', 'Info=Acidfast', 'Name=' , '"Mycobacterium  smegmatis"', 'pcp=','36789']   Expected Output:  ['protein219', 'Info=Acidfast', 'Name="Mycobacterium   smegmatis"',' pcp=36789']   please provide your suggestion

I'm new to regular expressions and would appreciate your help.  I'm trying to put together an expression that will split the example string using all spaces that are not surrounded by single or double quotes. My last attempt looks like this: (?!") and isn't quite working. It's splitting on the space before the quote.  Example input:   This is a string that "will be" highlighted when your 'regular expression' matches something.   Desired output:  This is a string that will be highlighted when your regular expression matches something.   Note that "will be" and 'regular expression' retain the space between the words.


I am looking at the long-term association between a diagnosis of depression and smoking status. I have data collected from the same participants at 2 points in time (i.e. 2 occasions). My data is in long format, here is a list of my variables:  pt_id : unique participant id occ: 1 (baseline - occasion 1), 2 (follow up - occasion 2) smoking_status: 1 (yes), 0 (no) depression: 1 (yes), 0 (no)  I realise that I can used mixed effects modelling for this; however, I am not familiar with multilevel modelling in the context of longitudinal data. Would any of the below alternative be appropriate: Using the svy command, as such: svyset pt_id svy: logit depression smoking_status i.occ, or Using robust/sandwiched SEs, as such: logit depression smoking_status i.occ, or vce(cluster pt_id)

I am trying to examine the long-term association between smoking cannabis and a diagnosis of depression. I have survey data from 2 points in time for the same participant (repeated measures). The variable in my dataset are cnb_smoke (1: yes, 0: no), diag_depr (1: yes, 0: no), occasion (1: occasion 1, 2: occasion 2), and ppt_id (unique ID). I am also interested in including the following confounders: sex (1:female,0:male) and age (continuous) What statistical tests, other than multilevel models, can I use to test the long term association; i.e. what model would allow me to account for the repeated measures nature of the design?


E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  please help me to solve this issue

I have been trying to install the latest version of java-8. However, I found out that the  due to changes in the java licence.  How should I update my java to 8.0_201 or 8.0_211 now?  Thanks!


There are mainly two questions that I would like to ask, thanks in advance.  (1) How can I open an external program in Linux? I know in Windows there is a command os.startfile() to open another program, the equivalent for Ubuntu is open(), but there's no response after I run the code,  and the alternative one is subprocess.call(). This works well in Windows, but in Ubuntu it fails, could someone provide a standard templete I can use for? (Similarly like to double click the icon of a program)  (2) How can I realize functions like the code is able to open the terminal and write down several commands in terminal automatically using python?

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I have a hasmap with a key object,   HashMap<Key, Object> test;   and make new Key("the same") as key..  so its like..:  test.put(new Key("the same"), someObject);   (without storing that key in a variable)  so.. after a while... i want to access the hashmap, because i do not have the object, i've tried to make new Key("the same") and make it as a key. But it didnt work.  How to make it work? (without saving the first object "key" in a variable)  So meanwhile, for now, im using String object as a key.  HashMap<String, Object>

What issues / pitfalls must be considered when overriding equals and hashCode?


def rand_gen1():     import random     for i in range(8):         print random.choice('0123456789abcdefghijklmnopqrstuvwxyz')   The above piece of code prints a string of 8 random chars or ints or both vertically. I need it to print like 'abcd123b' i.e. horizontally.  What changes do I need to make ?

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


The permutation representation of $S_n$ is $\mathbb C^n$ with elements of $S_n$ permuting the basis vectors $\{e_1, e_2, \ldots, e_n\}$. It has a trivial subrepresentation spanned by the vector $v = \sum_i e_i$. By Maschke's theorem there is a complement subrepresentation (given by the condition $\sum_i x_i = 0$, where $x_i$ is the i'th coordinate). This last representation (the standard representation of $S_n$) is irreducible. Why is this?  If we try characters, we can get the following: denote the standard representation by $V$ (dimension n-1), and the full permutation representation by $Perm$. Then $$  Perm = V\oplus Triv, $$ where the latter is the trivial representation. This means that $\chi_V(g) = |X^g| - 1$, and $$  \langle\chi_V, \chi_V\rangle = \frac{1}{|G|}\sum(|X^g|-1)^2|C(g)| = 1+\frac{1}{|G|}\sum (|X^g|^2 - 2|X^g|)|C(g)|, $$ where $X = \{1,2,\ldots, n\}$ and $X^g$ is the set of fixed points of permutation $g\in S_n$ and $C(g)$ is the conjugacy class of $g$. The sum is taken over all different conjugacy classes of $S_n$.  Now, since I know that $V$ is irreducible, the last sum must be zero. I don't see, however, why that should be.  Perhaps there is a direct proof or irreducibility?  Thank you.

Let $G=S_n$ and let $V$ be the permutation module of $G$ with basis $\{x_1,\ldots,x_n\}.$  Let $\lambda, \mu \in \mathbb{C}$ to allow one to define a $\mathbb{C}G$-homomorphism $\rho:V \to V$ by $$\rho(x_j):=\lambda x_j+\mu\sum_{i \neq j}x_i.$$  By using the above fact or otherwise, how can we prove that $V$ is the direct sum of two non-isomorphic irreducible $\mathbb{C}G$ -submodules?  I tried to prove this by construction. A familiar irreducible submodule in this case is the $1$-dimensional space $U:=\operatorname{span}\{x_1+\cdots+x_n\}$. I intend to find another $(n-1)$-dimensional submodule $W$  which makes $V=U\oplus W$ hold, but it's hard to do so. Is there a way to use the fact instead of a random construction?


UPDATE making the colorChange function global solves the problem   I am trying to change the color of the path when the button 'Red' is clicked using colorChange function .Regardless of my logic , the error says 'Function 'colorChange' is not defined' . The internal paper js functions like path() are working , but my function isn't .   <head> <!-- Load the Paper.js library --> <script type="text/javascript" src="js/paper.js"></script> <!-- Load external PaperScript and associate it with myCanvas --> <script type="text/paperscript" src="js/myScript.js" canvas="myCanvas"></script> <!-- CSS --> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body>     <button onClick='colorChange(id)' id='red'>Red</button> // Using it here     <canvas id="myCanvas" resize="true"></canvas> </body>   Here's myScript.js for canvas ID='myCanvas' :  var myPath={};  var colorChange=function(id){  //function I defined doesn't work     myPath=new Path();     myPath.strokeColor=id; }  function onMouseDown(event){   //this works     myPath=new Path();     myPath.add(event.point); }

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


Shouldn’t the word bird in the first sentence be birds’ as it’s a nest for more than one?

A doll house or a dolls house? Which is correct for the toy? ... There's that thing called Same Sex Couples Act; how about calling it Same Sex Couple Act?  The question is - when should I put attributives in plural? As far as I remember, Bill Bryson claimed in his Dictionary of Troublesome Words that - and that's what I vaguely recall from my classes - attributives should be in singular. Except for some exceptions. If so, what are they? I'm looking for some rule of thumb here other than "when in doubt, JFGI", of course.  NOTE: I leave out forms like a doll's house/dolls' house as they're pretty clear to me, as well as cases like The 'Big Boys and Their Motors' Club in which attributives are separate entities.


'It sounds as if Jack has found the perfect job'!   'It sounds like a violin, but I think its a viola'.  Are these the correct forms?   It was drummed into me at school over half a century ago that to say 'It sounds like he's in trouble' is very bad English. You only say 'sounds like' if it is something you can hear.

Is there any difference between the following couples of sentences?     Dress as you would if you were having guests.   Dress like if you were having guests.        She kissed him goodbye, as usual.   She kissed him goodbye, like the usual.        Sweet as she is, she doesn't pay his bills.   Sweet like she is, she doesn't pay his bills.


I’m a beginner to trading and reading some stuff about Limit & Market orders. I’ve thought up some scenarios and I would like to confirm on how the underlying order book mechanism deals with them. Let’s take Bitcoin, Current price is $45,000 Highest bid is $44,990 Lowest ask is $45,010  I placed a bid at $45,005. Means I get to “jump ahead of the queue” and any fresh Sell market orders will fill my bid. Am I correct in assuming that?  I placed a bid at $45,020 (more than the lowest ask). There’s also a sell limit order at the same price. Does my order only execute against the matching ask order? Or does it execute against the lowest ask order?  If the former is true, will the price jump from $45,000 to $45,020? And If the latter is true, can I say that my buy limit order (bid) worked in the same way as a market buy order?    Also, it’s only today that I started reading about this and I’m already fascinated with these ideas. Can anybody please suggest a book that explains the market phenomena and strategies from the order book perspective?

Say a security has been trading at under $20.10, and there are limit orders selling at $20.10 and $20.21. Then Simon issues a limit order to buy at $20.21. According to , Simon would end up buying shares at $20.10.  Why does the exchange favor the buyer here?  I.e., why does the transaction execute at the seller's limit of $20.10 instead of the buyer's limit of $20.21?  (I.e., why don't Inara/River get to sell at $20.21 / above their limit, but Simon gets to buy at $20.10 / below his limit?)  Is the example flawed?  If it makes a difference, I'm mainly curious about NASDAQ and NYSE.  I tried Googling for specs (e.g. ), but couldn't find anything.  Only found that some  implementation executes the average of the buy/ask.  Just curious how the system works.


I am laying my floor but I have a transition that I need help with, I am going from laminate to tile but the tile is much bigger. I have attached a drawing of the 2 different materials and I am looking to see what people might recommend on doing

I have ripped out some old carpet and am preparing to install a new solid hardwood floor myself.  In several places, the floor transitions to an existing tile floor.  The hardwood floor guys told me the best transition between the two is a T molding.  You simply leave a gap between the two floors, and then place down the T molding between the two floors, so it sits on both surfaces.  Sounds simple enough.  However, the height difference of the two floors is considerable, and the T molding does not sit flush.  What are my options?  Here is a diagram showing the dimensions.      NOTE:  Using the T molding is not a requirement, I could go some other route if there is a better option.


Just for some context, so people understand why I'm doing what I'm doing...  My movie collection is stored in this fashion;  Movies (folder)  |---- Movie title, Year released (folder)        |---- Movie title (file)   This means all my movies are stored in alphabetical order, which is (usually) great, as I generally know what I want to watch and can just search for (or scroll to) it.  However, as a requirement for another project, I downloaded . This app - unsurprisingly - allows you to change the attributes of files and folders.   To give me some more options for movie storage and sorting, I have been working my way through my films, and editing the Date Modified and Date Created attributes to the release date of the film. This gives me the option to sort by release date, so if I decide I want to watch a new film, but don't necessarily have a film in mind, I can easily sort by newest releases.  Now, actually onto my question - what is the earliest date that a file / folder could have as its created / modified date? I just tried to set a films date to , but Windows explorer is now showing the Date Modified as blank. If I open the folder properties (right click > Properties) then it shows the correct date, it just seems to be explorer which doesn't like it.  EDIT: I thought it might be something to do with , however I have tried dates after 1970 and I'm still getting a blank space in Windows explorer.

I want to set the created date on some old scanned pictures to a date in 1970.  If I do that using a third party tool, Windows explorer displays the date as blank.  I thought NTFS could go back to the 1600s some time.  What is going on?


Can anyone explain,  why, like unlike all planets, Pluto does not have a regular orbit?   Why does it have an orbit that meets the orbit of Neptune?   Why does it never collides with Neptune?   Is it a mere coincidence?

Why does Pluto's orbit cross Neptune's orbit? Is this a fault in Newton's law of gravitation?


I ran top on my VM droplet and saw my postgres consuming a ridiculous amount of CPU in the background. I'm currently not running any queries.  How can I locate, given the information from the picture above, what's causing my postgres to act up. I see the PID and Command id's, wonderinf if I can use those to help me out.

I have a recurring issue where a postgres process is pegging my cpu at > 100%. It's a strange one, you can see below the command is ./Ac2p20853 (surrounded by asterisks, added by me).  Running SELECT pid, datname, usename, query FROM pg_stat_activity shows nothing too interesting (to me at least). Simply a few inserts into pg_proc.  How would you go about debugging what is the issue here?  See below for output from ps, grepping postgres.  Thank you.  deploy@localhost:~$ ps auxww | grep ^postgres postgres   590  0.0  0.3 309312 13768 ?        Ss   20:29   0:00 postgres: deploy template1 5.5.5.5(53394) idle postgres  2264  0.0  0.3 309312 13748 ?        Ss   20:20   0:00 postgres: deploy template1 5.5.5.5(37818) idle postgres  3079  0.0  0.3 309312 13776 ?        Ss   20:12   0:00 postgres: deploy template1 5.5.5.5(60006) idle postgres  3809  0.8  0.0   4504  1656 ?        S    18:11   1:19 /bin/sh ./systemd **postgres  3862  167  0.1 252512  5464 ?        Ssl  18:11 265:06 ./Ac2p20853** postgres  5287  0.0  0.6 308388 24560 ?        S    Aug09   1:22 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf postgres  5289  0.0  2.1 308516 87096 ?        Ss   Aug09   0:01 postgres: checkpointer process postgres  5290  0.0  0.5 308388 22832 ?        Ss   Aug09   0:04 postgres: writer process postgres  5291  0.0  0.2 308388  8676 ?        Ss   Aug09   0:03 postgres: wal writer process postgres  5292  0.0  0.2 309196 11972 ?        Ss   Aug09   1:03 postgres: autovacuum launcher process postgres  5293  0.0  0.1 163724  5004 ?        Ss   Aug09   2:34 postgres: stats collector process postgres  6065  0.0  0.3 309312 13824 ?        Ss   20:04   0:00 postgres: deploy template1 5.5.5.5(51616) idle postgres  7384  0.0  0.3 309312 13832 ?        Ss   20:40   0:00 postgres: deploy template1 5.5.5.5(55916) idle postgres 11467  0.1  4.0 328788 161612 ?       Ss   Aug09  10:50 postgres: deploy db_production [local] idle postgres 11638  0.0  4.3 339336 174368 ?       Ss   Aug09   4:52 postgres: deploy db_production [local] idle postgres 11812  0.0  0.5 316092 21496 ?        Ss   Aug09   0:00 postgres: deploy postgres [local] idle postgres 12707  0.0  0.4 315660 16820 ?        Ss   Aug09   0:00 postgres: deploy db_production [local] idle postgres 17511  0.0  0.3 309312 13716 ?        Ss   20:33   0:00 postgres: deploy template1 5.5.5.5(33460) idle postgres 17968  0.0  0.3 309312 13804 ?        Ss   20:44   0:00 postgres: deploy template1 5.5.5.5(34548) idle postgres 18974  0.0  0.3 309312 13768 ?        Ss   20:16   0:00 postgres: deploy template1 5.5.5.5(52290) idle postgres 19017  0.0  0.3 309312 13752 ?        Ss   20:24   0:00 postgres: deploy template1 5.5.5.5(37348) idle postgres 21120  0.0  0.3 309312 13788 ?        Ss   20:08   0:00 postgres: deploy template1 5.5.5.5(33084) idle postgres 24189  0.0  0.3 309312 13744 ?        Ss   20:36   0:00 postgres: deploy template1 5.5.5.5(35660) idle postgres 31498  0.0  0.3 309312 13804 ?        Ss   20:48   0:00 postgres: deploy template1 5.5.5.5(39618) idle


I'm really getting stuck on this and would appreciate some help:  $$ \lim_{x\ \to\ 0}\left[\,\tan\left(\,x\,\right) - \sin\left(\,x\,\right) \over x^{3}\,\right]  $$ I know I need to change $\tan\left(\,x\,\right)$ into $\sin\left(\,x\,\right)/\cos\left(\,x\,\right)$  and turn $\sin\left(\,x\,\right)$ into $1 - \cos^{2}\left(\,x\,\right)$.  But then I get stuck.

How can I find the following problems using elementary trigonometry?  $$\lim_{x\to 0}\frac{1−\cos x}{x^2}.$$  $$\lim_{x\to0}\frac{\tan x−\sin x}{x^3}. $$  Have attempted trig identities, didn't help.


I created a custom shortcode from my child theme's functions.php, And I want that shortcode to display in Post Category Description. But it's not working.   Do you guys have an idea on how to enable display of shortcodes in post category description?    Just correct me if I'm wrong.  Thanks!

I want to use a shortcode for a table in a category description. It's my understanding that WP does not support this. I searched google and found some codes that i needed to add to the functions.php. But it's not working for me. What should I do?  Site/page:


I was watching TV series "Prison Break" and in the first episode I came across this kind of strange to me sentence.  HALE: We're all clear on the Burrows execution. KELLERMAN: Good. HALE: Except for one thing. Bishop McMorrow is not in the fold. HALE: He's got a lot of influence with the Governor. They went to prep school together apparently. HALE: Look, the closer it gets, the more I'm worried that the bottom is  gonna fall out of this whole thing. KELLERMAN: Well, maybe it's time we arranged a visit with the good bishop  then. KELLERMAN: Look, in one month it'll all be over.  I don't get why there has been used a definite article. I learned that articles always come before nouns. In this situation "more" doesn't seem to be a noun, I would say it's an adverb. Maybe I'm missing something, any suggestions ?

Why is the definite article used in expressions like the more and the less? For example,  The more you study, the more you know. The less you study, the less you know.


I am not sure what seems to be the issue but running exec() inside for loop in Javascript(Nodejs, Chrome console, Firefox console) is producing incorrect results. As far as I know, exec() is a synchronous method, called inside a synchronous loop which should produce the expected output.  const FILTER_REGEX = /(\w+)\s+(below|under|lesser than|lower than|above|over|more than|higher than|greater than|equals|equal to|same as|>|<|=)\s+(\d+)/gi; const searchQuery = "Package Quantity > 50000 Date yearly ListPrice above 100"; const filterMatches = searchQuery.match(FILTER_REGEX) || []; for(const filterMatch of filterMatches) {     const filterMatchGroups = FILTER_REGEX.exec(filterMatch);     console.log(`filterMatch: ${filterMatch}, filterMatchGroups: ${filterMatchGroups}`); }   Currently, I am getting the following as output, sometimes filterMatchGroups for first string becomes null and gives filterMatchGroups for second one.  filterMatch: Quantity > 50000, filterMatchGroups: Quantity > 50000,Quantity,>,50000 filterMatch: ListPrice above 100, filterMatchGroups: null

I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.


I just built a new PC and would like to install Linux/Ubuntu alongside Windows (dual boot). I already installed Windows 10 and all the required drivers, namely for the motherboard and Nvidia graphics card, and am about to install Ubuntu.  My questions:  Are the drivers OS specific?  If yes, does this mean I need to reinstall the drivers for Ubuntu as well or was it sufficient to install them on Windows?  Finally, if I reinstall the drivers on Ubuntu, will this not override the drivers that were initially installed on Windows? (i.e. which would mean I would have to reinstall drivers every time I switch to the other OS)

My laptop has 1 GB Nvidia graphics card.   When i used windows i needed to install graphics card.   Now i am using ubuntu 14.04 with windows 8.1 as dual boot.  Do i need install a graphics driver for ubuntu? if yes how?


I was trying to use a simple mediation model (the classic triangular model) to test my hypothesis. However, my data exhibited a significant total effect and a total indirect effect, with the direct effect being insignificant.  Could you please tell me how I should interpret this?  Thank you so much!

The mediation package in R returns results in which:   Average Direct Effect (ADE) (the unmediated effect) is not statistically significant The Average Causal Mediated Effect (ACME) (the effect of the mediator alone) is positive and statistically significant The Total Effect (ADE+ACME) is larger than the ADE and ACME alone, positive and statistically significant   Does this indicate that the variable being mediated can only act through the mediator DV? I'm not quite certain as to how this would be interpreted.  Thank you for any help.


In a $2 × 4$ rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid?   My attempt: I found a formula somewhere, Number of rectangles are $= m(m+1)n(n+1)/4 = 2\times4\times3\times5/4 = 30$.  Can you please explain this?   Upadte - The post  looks similar, but that has $3 \times 4$ grid and I need more variant explanation.

I have come across numerous questions where I am given the picture such as the above one been asked "how many rectangles are there?". I have even come across some slightly different images that instead of rectangles you are supposed to find the number of triangles. Well, I was thinking whether there is any formula or strategy that is used to solve these problems without having to manually count every shape.  Help would be appreciated.  Thank you :)