Help setting up wireless in Ubuntu 13.04

I'm having problems connecting my WIFI in Ubuntu 13.04 .  So I was wondering if filling in the data manually ie: the IPv4, IPv6, the SSID and BSSID info etc. I did try this before but maybe I put in the wrong data or maybe not enough.  Would that make it work?  I just don't know how to find out some of the data you need to put in?  I'm new and it's confusing. Does anyone know the solution?  Here is lspci:  james@james-MM061:~$ lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01) 00:1c.3 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 4 (rev 01) 00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 01) 00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01) 03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02) 03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller 03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19) 03:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a) 03:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05) 0b:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)   Computer information:   Model: Dell MM061  Mobile Intel(R) 945GM Express Chipset Family [Display adapter] (2x)


Is it okay to use a power supply that provides slightly more voltage and amperage than what's rated?

To preface; I am aware that there are a lot of questions that are similar to mine.  But I am finding mixed signals as well as jargon I don't understand; and I was really just hoping somebody could give me a yes/no because I'm really paranoid about plugging it in based off of my reading  I have an LED sign that says that it takes "Class 2, 18VDC, 2A" from a wall adapter with "100-240VAC, 50-60HZ, 1.2A"  I lost the adapter, and it's surprisingly difficult to buy a new one that matches those specs.  I did find an old laptop power supply that has these ratings:  Input: 100-240VAC, 50-60HZ, 1.2A Output:19V, 3.42A  There is a weird symbol between the 19V and the 3.42A, but I have no idea what it means.  Here is a picture of the sign:    And here is one of the laptop power supply:


Is there a noun that denotes "things which exist"?  The only noun form of existence that I can find/think of is "existence" which is the condition of existing, not the things which do.  It's to summarize the tools for a given task that already exist, in a presentation outline (so it needs to be a single word, but I can't give an example sentence!).  The other headings are RCA/Techniques/Lacunae.    ETA: Beings implies a certain amount of animacy, which these things definitely don't have.


I am new to perl (beginner, learning perl for past 1 week during spare time). This is my first programming language.  I want to know how this regex []+ works in perl. I have 3 questions.   What will this do: if /[\d\s\.,:\/]+/?   I learned if /.../ matches pattern.    So will it match the following?  And which parts of the following will not match?   335.31, 312.52 Dave1.532 Path: "./1243/453 /48.1" 543, 546    Edit:  This is not a duplicate of the linked question as I am specifically asking how []+ works. The answer in the linked post does not cover this.  I know what each character in the regex I have written above represents and how each character work. What I want to know is how []+ will influence the regular expression. Specifically how the + will influence the [].


A way of creating bibliography in latex is   \begin{thebibliography}{}  \bibitem{} ...   \end{thebibliography}   In this bibliography, I wanted to make different sections for "English books, German books, Research Papers etc." How can we make different lists in such way?  Writing \section{} within the \begin{thebibliography} and  \end{thebibliography} creates an error.


Sending a notification when a flag is reviewed

There should be a notification when a moderator reviews or looks at a post which you've flagged.  The notification could show the status (helpful, declined, disputed, or something else) of your flag.  Edit  The reason for doing this is so that you would be able to see when a post which you have flagged has received moderator attention, at which point you could go back to the post. This would be good, for instance, if:   you flagged a post for migration to another site; after migration occurs, you could answer the question, since  that only unanswered questions should get migrated you flagged a post for removal of spam or otherwise nonconstructive content, and the content removal has to be carried out in batches


Evaluation order of expressions with read-line in Clojure

I am running the following code snippet:  (print "Enter something:") (let [entry (read-line)]   (println "You entered" entry) )   I expect to see the following type of interaction:  Enter something:abc You entered abc   Instead, I see:  abc Enter something:You entered abc   Why is user input requested first, even though the print comes first in the code? I tried Googling around, but from what I can tell, evaluation order should be what I would expect coming from a Java/Python background. Is this the expected behavior of the code?


(A kind soul at  suggested I post here as well, sorry if out of bounds.)  I'm trying to programmatically model a damped harmonic spring for use in mobile UI animations (physics mathematics isn't my background, please pardon any misconceptions).  Having derived the parameters for the general case equation, I can iteratively calculate values until I reach a suitable threshold, though because this is bound to "simple" trigonometric and $e^{x}$ functions on the CPU, the 4000-some-odd steps can cause about 0.25 seconds lag on slow devices while it calculates. I'd like to speed this up using my platform's super-optimized vector and BLAS/LAPACK variants.  The requirement for doing this is precalculating the number of steps necessary to reach my threshold value.    In the underdamped case, where the roots of the characteristic function of the differential equation are non-real, I can use algebraic tricks to get my values:  $$x(t) = c_{1}e^{r_{1}}\cos(i_{1}t) + c_{2}e^{r_{2}}\sin(i_{2}t)$$  (Given $r_{1}$, $i_{1}$, $r_{2}$, and $i_{2}$ are the real and irrational components of my two roots, respectively.)  Knowing that $r_{1} = r_{2}$ and $i_{1} = -i_{2}$, I can simplify to:  $$x(t) = c_{1}e^{r_{1}}\cos(i_{1}t)$$  And get my desired value of $t$ for my threshold $a$:  $$t = \arccos(a / c_{1} / e^{r_{1}}) / i_{1}$$    When the roots are real, the equation looks a lot simpler:  $$x(t) = c_{1}e^{r_{1}} + c_{2}e^{r_{2}}$$  However, I don't have my trig functions floating around to help me solve it (even if I did, the irrational components being 0 would cause problems, of course).  Take the concrete example on pages 3-4 of  (my bible during this process), since they at least solve cleanly:  $$x(t) = 1.5e^{-t} - 0.5e^{-3t}$$  I know how I would solve for $t$ to get my for when $x(t) = a$ on paper, by setting $x=e^{t}$, solving, and back substituting, but I don't have that luxury here.  I can make a few assumptions: the roots and constants are all real. I'm always going to be looking for the smallest, first, positive value of $t$. Obviously, the iterative solution is the simplest for this case, but in the end that would involve more steps and therefore be slower no matter what my other optimizations would be. How, then, would I go about solving for my threshold value algorithmically in this (supposedly) simplified case?  Addendum  The underdamped solution presents an extra requirement. The motion curve will oscillate back and forth a few times across the endpoint. Therefore, "first and lowest" $t$ requirement is not necessarily true. In my current, iterative code, the threshold value is both checked against the distance from the current $x(t)$ to the endpoint, as well as to the distance from the previous $x(t)$ as well to allow for a number of oscillations. This might make a more efficient solution nearly impossible.


How to edit `postgresql.conf` with pgAdmin 3?

How does one edit the 'postgresql.conf' file with the pgAdmin app?  With pgAdmin 1.18.1 on Postgres 9.3.x, when I choose File > Open postgresql.conf I get a file picker dialog. And, yes, I'm connected in pgAdmin as the superuser 'postgres'.  I know I've done this in older versions of Postgres.


I am trying to create a simple save/load app in Android studio but I'm getting a null object reference error(full error below)

This Error Message pops when i press the button to open an other activity that has 2 text fields and a save and cancel button.The error is being pointed out to this part of the code in the save function-       listView.setAdapter(adapter);   Full Error  Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference   Java for the Save function  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_add);      Button btnSave = (Button) findViewById(R.id.btnSave);     ListView listView = (ListView) findViewById(R.id.listDisp);     arrayList = new ArrayList<>();     edName = (EditText) findViewById(R.id.editName);     edMobile = (EditText) findViewById(R.id.editMobile);      adapter = new ArrayAdapter<Classes>(this, R.layout.activity_add, R.id.txtItem, arrayList);     Log.i("test", " " + arrayList.size());     listView.setAdapter(adapter);      btnSave.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             Classes class1 = new Classes(edName.getText().toString(), edMobile.getText().toString());             arrayList.add(class1);             adapter.notifyDataSetChanged();               Log.i("test", " " + arrayList.size());              try {                  FileOutputStream fos = openFileOutput("Saves.tim", Context.MODE_PRIVATE);                  ObjectOutputStream oos = new ObjectOutputStream(fos);                 oos.writeObject(arrayList);                 oos.close();             } catch (IOException ex) {                 ex.printStackTrace();             }         }     });   Java for the Load function  private ViewPager viewPager; private SectionsPagerAdapter mSectionsPagerAdapter; ListView lv; public static ArrayList<Classes> arrayList; private ArrayAdapter<Classes> adapter; private EditText etName, etMobile;   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      lv = (ListView) findViewById(R.id.listDisp);     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);      etName = (EditText) findViewById(R.id.editName);     etMobile = (EditText) findViewById(R.id.editMobile);     Button btSave = (Button) findViewById(R.id.btnSave);     arrayList = new ArrayList<>();     try {         FileInputStream fis =  this.openFileInput("Saves.tim");         ObjectInputStream ois = new ObjectInputStream(fis);         arrayList = (ArrayList<Classes>) ois.readObject();         ois.close();       } catch (IOException ex) {         ex.printStackTrace();     } catch(ClassNotFoundException ex){         ex.printStackTrace();     }   Method that launches the activity      public void loadAddActivity (View v) {     startActivity(new Intent(this,AddActivity.class)); }


I have a command to run a python program. I do not want to run this command manually after login, I want this command should run automatically after I logged in to my ubuntu. I am using Ubuntu 16.04.  Here is the command.   sh demo_darknet_yolov3.sh   This shell script is placed in this directory  /MobileNet-YOLO-master/MobileNet-YOLO-master


How do you test non-live sites before switching DNS?

I have a few websites that I need to move to a new server - how would I test that they work before switching DNS? What URL would I navigate to?


Change Between Open Documents, SPANISH Keyboard, LibreOffice Chrome

I found this article:    According to changing between multiple opened documents in LibreOffice and Chrome.    But I was testing in macOS Sierra with Spanish Keyboard and was not Working on LibreOffice and Chrome.  Here the video of my result testing:   With this answer:   Is not working.  Where I Can set a new Key combination alternative (different to WITCH)?


Conjugate Variables, Noether's Theorem and QM

What is the underlying reason that the same pairs of conjugate variables (e.g. energy & time, momentum & position) are related in  (e.g. time symmetry implies energy conservation) and likewise in QM (e.g. $\Delta E \Delta t \ge \hbar$)?


Do we need a more generic "off-topic" close reason?

This question was just posted to SO:    The OP admits right off the bat that the question is "more of a career question", which is very clearly off-topic. But I could not match one of our off-topic reasons to this question because they are all too specific:   Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User. Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. See SSCCE.org for guidance. Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist Questions on professional server, networking, or related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. This question belongs on another site in the Stack Exchange network Other (add a comment explaining what is wrong)    Other can obviously be made to work for any situation, but the question was so far from on-topic that I wasn't really sure how to begin ("wha... you... can't you read?" just didn't seem to fit with the spirit of the new close reasons). Perhaps we need a more general off-topic reason, or at least some language I could copy/paste into the other reason?  As-is, I weant with "primarily opinion-based" which, in this case, seemed to fit just fine.


$x^2 \equiv a \mod p$, $\ x^2 \equiv b \mod p$, and $x^2 \equiv ab \mod p$, prove either all three are solvable or exactly one

Let $p$ be an odd prime and $a, b \in \Bbb Z$ with $p$ doesn't divide $a$ and $a$ doesn't divide $b$. Prove that among the congruence's $x^2 \equiv a \mod p$, $\ x^2 \equiv b \mod p$, and $x^2 \equiv ab \mod p$, either all three are solvable or exactly one.  Please help I'm trying to study for final in number theory and I can't figure out this proof.


Why can't I log into minecraft with a mojang account?

I created a Mojang account and downloaded the Minecraft launcher, but when I started it up, I couldn't log in. Since the log in fields did not require a username, I tried typing in my email, and still couldn't log in. I've tried after resetting my password, but that didn't work either. What am I supposed to do to log in and play?


Let $A,B \in {C^{n \times n}}$ and ${\sigma (A + B)}$ is spectrom of $(A+B)$.  Suppose   $M = \left\{ {\lambda  \in C:\lambda  \in \sigma (A + B),\left\| B \right\| \le \varepsilon } \right\}$ $F(A) = \left\{ {{v^*}Av:v \in {C^n},{v^*}v = 1} \right\}$ $K = \left\{ {\lambda  \in C:dist(\lambda ,F(A)) \le \varepsilon } \right\}$ ,where ${dist(\lambda ,F(A))}$ denotes the distance between $\lambda $ and  $F(A)$.   Why does $M \subseteq K$?


Error while installing 32 bit Library on 64 bit Ubuntu

$ sudo apt-get install package-name:i386 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package-name:i386 $ sudo apt-get install ia32-libs Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  google-chrome-stable : Depends: libnss3 (>= 3.14.3) but 3.13.1.with.ckbi.1.88-1ubuntu6 is to be installed  ia32-libs : Depends: ia32-libs-multiarch E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


In the design of an AC servo position flight control surface system, a feedback system compares the output position to the pilot's input command signal. How is an operational amplifier used as an error detector?


Countable measure space: Convergence in probability implies convergence a. e.

Can somebody give me a hint for the following exercise, I don't know how to start...    Thanks a lot!


How do remove "Ignoring file in directory /etc/apt/sources.list.d/ as it has an invalid filename extension?

Since upgrading 13.10 to 14.04, I get these annoying messages each time I install, update, upgrade, and so on:   N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension  N: Ignoring file 'bumblebee-stable-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension  N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'ubuntu-x-swat-x-updates-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'xorg-edgers-ppa-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'bumblebee-stable-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'ubuntu-x-swat-x-updates-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'xorg-edgers-ppa-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension   How do I fix the underlying problem told in the message?  edit: Sometimes, I get additional messages appended to the messages above:  W: GPG error: http://www.duinsoft.nl debs Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E18CE6625CB26B26 W: Failed to fetch http://ppa.launchpad.net/person/ppa/ubuntu/dists/karmic/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/person/ppa/ubuntu/dists/karmic/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   And sometimes, I might others, but I cannot find the precise messages anymore.


Minecraft folder does not contain resource packs folder

My .minecraft folder does not have the folder resourcepacks, and I can't rename it.  I have library open in finder and the application support folder with Minecraft open, but I don't have resource packs, and it cant be renamed to .minecraft-old.


How can we disable IPv6 system wide via terminal commands?  I've read editing /etc/modprobe.d/aliases  and replacing:  alias net-pf-10 ipv6   with:  alias net-pf-10 off alias ipv6 off   Is this safe to apply and does it permanently disable ipv6 across reboots?


Where was the earliest mention of Vader falling into a volcano?

Back in the days of BBS's and Newsgroups - and before  (early 90's), there was lots of talk about Star Wars lore and theories of what the other episodes might include if they were ever made. One of the things that was always talked about as fact was that Anakin/Vader and Obi-Wan had dueled on a volcano and the fight resulted in Vader being "more machine than man".  This, of course, ended up being Vader/Obi-Wan fighting on the volcanic world of  in Episode 3.   I've spoken to a number of people and we can all remember hearing this often repeated over the years, but none of us can remember just where we heard this. It was never mentioned in the movies or novelizations. Nor was it mentioned in any of the Han Solo/Lando Calrissian books which served as sort-of-prequels at the time. For it to have been such a pervasive and universally accepted story, it must have had some somewhat-official origin (an interview, a back of a trading card, something).  Where did this "fact" originate?


How can I create new language layout in Ubuntu?

I need a tutorial tour about creating a new language layout with a different name for Ubuntu, downloadable for all and which everyone can install them on their Ubuntu OS.  I was searched on internet for this tutorial and I found 2 tutorials, but those are not clear and not for beginners.


make all javascript functions work for JavaScript written elements

So I have a new button that is written by JavaScript when the users clicks on the + button.  However it seems that the new button can not access the JavaScript click function.  I am wondering how do I fix this.  JS  $('div.btn-floating').click(function () {  //alert(this.id);  if(this.id === "addnew"){     dl= document.getElementById("newpetprofiles"); dl.insertAdjacentHTML('afterbegin','

');   }    var morphFAB = $('#overlay');   morphFAB.toggleClass('visible hidden');   if (morphFAB.hasClass('visible')) {     $('#form').addClass('animated slideInUp');   }else {     $('#form').removeClass('animated slideInUp');   } })


Why is my subsurf modifier is shown differently in render?

I've been working with Blender for one week only, after working with Maya so everything is new for me.  I tried to put a modifier on my object and I saw that it is shown differently in the viewport and render.    can I somehow fix this?


Why was the Death Star's shield generator on Endor?

Isn't the point of the Death Star that you can use its lasers to destroy any planet or capital ship nearby? Then how could the Empire use the Death Star if it has to stay close to Endor at all times, because its shield generator is there? It seems that the Rebels just need to wait for the Death Star to move away from Endor and render itself vulnerable.


I'm working on a wizard where users go through a sequence of screens:    On the left-hand side I show the title of the wizard, 'Add a foo', above an ordered list of steps. In the main content area, I have the title of the step.   For accessibility, should I make the step title, 'Create a foo' the H1 of the page? Or should the H1 be the title of the whole wizard? Does it matter?


Unwanted shortcut for switching to the next input source for Ububtu 20

After upgrading to a new lts ubuntu 20.04 it suggested me to add a new shortcut for switching input source as ctrl + shift.  I agree, but later I figure it wasn't a good idea, how can I disable it.  Settings -> Region & Language - only show me that extra shortcut is available, but I'm not allowed to change it    Settings -> Keyboard Shortcuts - shows only one shortcut    Thank you


Can every group be extended to ring with idenity

Can every abelian group converted into ring(by defining multiplication operation) with identity with same order. We can convert every group G into ring by defining a.b = 0 for all a and b in G. But this ring has no multiplicative identity


This  says:      A player has to win six games, and at least two more than the foe, to claim a tennis match. Players switch sides after every odd game, as in the first, third and fifth games, and so on. Players also switch sides at the end of a set if they're playing an odd number of games.   So, you start, 1-0, and change sides. If the game ends 6-0, 6-2 or 6-4 (or an even number of games), you play the first game of the new set, change sides, and you are back to the previous rule.  But what if a player wins 6-1 or 6-3? You win the set, then change sides. Now, you play a new set, do you change again at 1-0 (therefore after having played just one game), or wait until the 1-1 or 2-0, therefore now changing after an even number of games in the second set?


Is there a name for the function $\max(x, 0)$?

Is there a name for the function $ \max(x, 0) $?  For comparison, the function $ \max(x, -x) $ is known as the absolute value (or modulus) of x, and has its own notation $ |x| $


Problem with biblatex - Cannot get simple specification to execute

I am trying to replicate with biblatex a very simple specification that works with bibtex (but I want to migrate to biblatex because it's better). This works fine (which proves as well that my .bib file has no errors): \documentclass[11pt,a4paper]{article}  \usepackage{setspace} \usepackage[a4paper,includeheadfoot,margin=2.54cm]{geometry}  \begin{document}  \title{\vspace{-2.54cm}Simple Test of \texttt{bibtex}} \author{} \date{} \maketitle  Three items are cited: \begin{itemize} \item \textit{The \LaTeX\ Companion} book \cite{latexcompanion} \item The Einstein journal paper \cite{einstein} \item The Donald Knuth website \cite{knuthwebsite} \end{itemize}  The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.   \bibliographystyle{plain} \bibliography{sample}  \end{document}  But this won't work: \documentclass[11pt,a4paper]{article}  \usepackage{setspace} \usepackage[a4paper,includeheadfoot,margin=2.54cm]{geometry} \usepackage{biblatex}  \addbibresource{sample.bib}  \begin{document}  \title{\vspace{-2.54cm}Simple Test of \texttt{biblatex}} \author{} \date{} \maketitle  Three items are cited: \begin{itemize} \item \textit{The \LaTeX\ Companion} book \cite{latexcompanion} \item The Einstein journal paper \cite{einstein} \item The Donald Knuth's website \cite{knuthwebsite} \end{itemize}  The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.   \printbibliography[title={References}]  \end{document}  The references are undefined. Anyone that can point out to me what I am doing wrong would be doing me a very great favour. My sample.bib file, for what it's worth, is as follows: @article{einstein,     author =       "Albert Einstein",     title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})         [{On} the electrodynamics of moving bodies]",     journal =      "Annalen der Physik",     volume =       "322",     number =       "10",     pages =        "891--921",     year =         "1905",     DOI =          "http://dx.doi.org/10.1002/andp.19053221004" }  @book{latexcompanion,     author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",     title     = "The \LaTeX\ Companion",     year      = "1993",     publisher = "Addison-Wesley",     address   = "Reading, Massachusetts" }  @misc{knuthwebsite,     author    = "Donald Knuth",     title     = "Knuth: Computers and Typesetting",     url       = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html" }  Thanks!


How to create a live system on usb-drive with persistent changes on disk/hdd

I was trying to install Ubuntu live on a USB-drive with persistent changes. However i wanted to write the changes to HDD instead of USB for various reasons (Performance, Space).  I found out, that the changes are handled within a file with a ext3 file-system that is mounted by the system (casper-rw). But it seem to be auto-detected on flash-drive on startup.  How can i create a new casper-rw file on HDD and reroute the Ubuntu live system on the USB-drive to HDD?  edit 2015-07-14:  Thank you for the answers so far. They are very interesting and help a lot to understand the mechanics of the "live system persistent save feature" better, and show good approaches to solve the problem. Unfortunately i was trying to overcome some limitations that i had in mind when asking the question regarding access to the host system and/or access to new hardware i did not clearly state (sorry for that).  If partitioning is an option, i think the answer stated  is very good, since it only requires you to create a new partition, label it casper-rw and you're done (work's great, i tested it).  If buying new hardware is an option, usb3.0 Flash-Drive (MLC or SLC), portable HDDs, eSATA and other options come to mind that have a far better performance than an average USB2.0 flash-drive.  So i was wondering if there is a way to just create a casper-rw file instead of a partition on a disk with limited access to (or copy/link the one on the flash-drive).  This way it would be easy to just copy the casper-rw file back to the flash-drive and use it from there again or move it to an other computer, granting great flexibility, minimal changes to the HDD and easy removal of changes done to the system.


What are the red glowing towers in Zoltun Kulle's archives?

They look like this:    If I hit them they explode and then reform, and they appear to spit out a bit of blood.


I would like to create centerlines for many glaciers I am doing work with in ArcMap. I feel like I have a conceptual model that could work but can't seem to figure out how to make it happen with the tools available. I have polygons for each glacier outline, and DEMs for elevation data.  My idea is as follows:   Using zonal stats find max/min elevation for each glacier using the outline polygons Turn the max and min pixel into a point file Then find either a least cost path using the DEM between the max/min for each glacier(seems complicated) or find the path between the two points that lies in the center of either side of the polygon.   It's the last step I need help with.


Adding new results during review process

I submitted a paper to an applied mathematics journal. I have since found a way to generalize one of the results.  Is it acceptable to update the paper during the first review step even if I have not been requested to improve on this particular aspect?  I understand that this would create extra work for the reviewers since they would have to check that part again. However, writing a brand new paper with the additional result would probably cause even more extra work for the review community. I also understand that a dissemination strategy that incorporates some salami slicing might be better for my career, but somehow I am opposed to doing that kind of thing.


How to find which folder is eating space fast?

I am running Linux server, we using this server as a samba share drive. From yesterday suddenly, one of the share drive size getting increasing (~ 100 MB every ten min). There are too many folders and sub folders are there in this share drive. Now the share drive running out of space.   Please help me how I can find which folder is getting increasing. I have tried below command to get the size of sub directories of the share drive. But I need to compare the output and its take too long time to find if i am not lucky.   du -sh --maxdepth=1     Can you please suggest me, is there any other way I can find the data transaction in this file system?


I have only started learning in blender on my own and don't really have a teacher I could ask for help. I saw two blender tutorials on UV mapping for beginners, but found myself unable to follow along because of a different layout of the uv mapping. Both autthors of tutorials seemed to have the same layout, preview, surface and such. But my layout was different and I don't know how to fix it. Additional images of how it looks in my blender and how it looked in the tutorials


After trying apt-get install postgresql-9.4, updating, trying again etc etc. It seems I can't install it:   Couldn't find any package by regex 'postgresql-9.4'   I know there is a similar question in askubuntu but the answer there doesn't work either.  I need postgresql version 9.4 cause I'm doing a pg:backup from Heroku and I get  error if I don't have 9.4.  Thanks a lot for your help.


Windows 10 + Ubuntu dual boot - Windows can't boot

I have a motherboard with UEFI (Gigabyte GA-B75M-D3H with latest UEFI). I installed Windows 10, then installed Ubuntu 17.04 with dual boot option.  Ubuntu would boot, but due to no overscan options working for my LCD TV, I went to boot Windows.  Windows proceeded to try to repair itself, and failed; startup repair fixes nothing.  I want to find out how to boot Windows without wiping the hard drive.


Why the name of picture can not to be removed?  This is my code:  >     \begin{figure} >       \centering >       \includegraphics[scale=0.7]{One Step Multi Step.png}\\ >       \caption{hehehe} >     \end{figure}   and this is the result:   What is the problem? So, I can remove the "one step multi step.png".


I am creating a form for a model, one of the fields of the model is a ForeignKey. I want the options of the ForeignKey to be the ones related to that instance of the model. to make it clearer, here is some code: views.py def AddOrderDetail(request, pk):     Product = Products.objects.get(ProductID=pk)     order = Orders.objects.last()     locations = Product.productqtys_set.values_list('Sublocation', flat=True).distinct()      form = OrderDetailForm(request.POST or None)  forms.py class OrderDetailForm(forms.ModelForm):     class Meta:         model = OrderDetails         fields = (              ...              'Location',              ...            )  now I want the data retrieved from the query that I am performing in the view: locations = Product.productqtys_set.values_list('Sublocation', flat=True).distinct()  to be the data that the user can select from while selecting the location of the OrderDetail. Moreover, I have another problem. I want to initialize some fields, I tried using the initial={} while defining the form in view, as shown below: form = OrderDetailForm(request.POST or None,  initial={"ProductCode": Product, "OrderID": order, "Location": locations})  but when I do that I get the following error, 'OrderDetailForm' object has no attribute 'ProductCode'. I tried another way in the Function in the view.py file which is the following:     form.fields['ProductCode'].initial = Product     form.fields['OrderID'].initial = order  but sadly, I still get the same error 'OrderDetailForm' object has no attribute 'ProductCode'. Any help is appreciated. Thank You.


Is constructor chaining pass by reference in Java, and how does casting affect it?

Suppose I have three constructors in a class:  public class MyClass {     Parent thingA;     Child thingB;     boolean someBoolean;     double someDouble;     double anotherDouble;      public MyClass(Parent thingA, boolean someBoolean) {        this(thingA, someBoolean, 0.25);     }      public MyClass(Child thingB, boolean someBoolean, double anotherDouble) {        // Casting to prevent recursive constructor call        this((Parent) thingB, someBoolean, 0.5);        this.thingB = thingB;        this.anotherDouble = anotherDouble;     }      public MyClass(Parent thingA, boolean someBoolean, double someDouble) {        this.thingA = thingA;        this.someBoolean = someBoolean;        this.someDouble = someDouble;     }   }   Where Child extends Parent. My question is, when I call another constructor from a constructor in Java via this(...), am I passing by reference or passing by value? How does casting affect it? If I were to use the second constructor and modify a property of thingB, would that reflect in thingA?  Edit: I have both thingA and thingB fields because sometimes my class will be used without an instance of Child, but when Child is used, I need to take advantage of specific behaviors of Child.


I can't seem to install Ubuntu Desktop on my Windows 7 PC.  Once it was done downloading Cyberlink Power2Go opened up and told me that "No burner is currently available or you don't have rights to access the burner" Not sure why this is happening or how to fix it.  Any advice?  Also, I have been told that I need a disk burner to make this work, but I do not currently have one, and I'd rather not buy one to make it work.


Why, by design, are group permissions ignored for the owner of a file?

Edit: I didn't realize that the owner of a file can chmod the file no matter what the permissions. This renders the situation of owner permissions being less than group permissions useless, as the owner can give themself more permission.  So as far as I can tell, there isn't an elegant solution to having a shared group folder, leaving you with the following options:   Deny execute permission for "others" on the folder (chmod o-x test), so when somebody is removed from the group, they won't be able to read/modify/delete any files in the folder. A side effect of this is that no users outside the group will be able to read the files. Allow "others" to read the folder. When you remove somebody from the group, change the owner of all the files they owned. e.g: chown -R nobody test.     From what I can tell, it would be very useful to have owner/group/other permissions ORed together. This way you can set owner permissions to less than the group permissions when you want to share files among a group and don't want the owner to make a difference (or similarly for group/other).  Currently when you set owner permissions to less than group permissions, the owner of the file is restricted, even when they belong to the group. Wouldn't it be better for basic permissions to be ORed together, with the option of using setfacl to restrict access for particular users? I essentially want to know:   Are there any/many cases where restricting access for the owner of the file is particularly useful? Is ORing a better solution, but we're stuck with the current model due to legacy?   I'm not suggesting that owner permissions should be removed. See here for reasons why owner permissions exist:   If you are not convinced that ORing the permissions would be particularly useful, you may read below, otherwise stop here.    Here are 2 scenarios showing the problems of attempting to share files among somegroup, with user1 being an arbitrary user belonging to this group.  In scenario 1, removing a user from a group doesn't deny them access to the files and folders they still own. In scenario 2 we attempt to solve this by lowering the owner permissions below group permissions, but then of course, as per the title, if you are both the file owner and in the group, the (lower) owner permissions are used.  Scenario 1  Basic permissions allow members of a group to share files, but after removing a user from the group, extra work is necessary to deny them access to those files.  As root, run:  mkdir test chgrp somegroup test chmod 2775 test setfacl -d -m u::rwx,g::rwx,o::rx test   Output of getfacl test:  # file: test # owner: root # group: somegroup # flags: -s- user::rwx group::rwx other::r-x default:user::rwx default:group::rwx default:other::r-x   As user1, cd to test, and run:  mkdir test2   As root:  deluser user1 somegroup   Ideally, removing a user from the group should be enough to deny them permissions inside group directories, but user1 still has full access in the test2 directory. We have to perform chown -R on the directory, and any other somegroup directories on the system, leaving room for error.  Scenario 2  Without knowing the details of file permissions, one may think that the easy solution is to restrict permissions for the owner of the file. But this prevents members of the group from modifying files that they create.  As root, run:  mkdir test chgrp somegroup test chmod 2575 test setfacl -d -m u::rx,g::rwx,o::rx test   Output of getfacl test:  # file: test # owner: root # group: somegroup # flags: -s- user::r-x group::rwx other::r-x default:user::r-x default:group::rwx default:other::r-x   now as user1, cd to test and run:  echo hi >> test2 echo hi >> test2   and of course, you get Permission denied because user1 is the owner of the test2 file. Even though your group has permission to modify the file, you are denied access because only the owner permissions are checked.


Why linux is a monolithic kernel, while you can load/unload modules (e.g. drivers)?

Hybrid- and Microkernels are flexible, in the way one can add any higher-level functionality as a module, is it not the same for linux kernels? Why then linux is called a monolithic?


I have a maven java project ABC which has main and test folders. The test folder has lot of API utility classes to make some API calls. These classes use some classes in the main folder.  I have another maven java project XYZ which needs to use the API utility classes in test folder of ABC. I am not sure how to use ABC code in XYZ.   I could copy-paste only the relevant code from ABC to XYZ, modifying the directory names, packages etc as needed. Or I could package ABC as Jar and import it into XYZ.  Any suggestions on how to do this ?


If humans were able to catch all sun energy reaching the earth for their use, will the climate change?

I guess that energy will be used up and, at the end, will contribute to heat the earth, so I see no big differences...  please explain your point of view.


\autoref does not capitalize initial character in sentence when referencing label in listings environment

I have defined the following  \providecommand*{\lstnumberautorefname}{line}   and within my text   \begin{lstlisting}              |\label{sdd_1}|<sqlCallStatistics>YES</sqlCallStatistics> \end{lstlisting}   When I now use in my text   xxx. \autoref{sdd_1}    then I receive the following output :  xxxx. line 1    instead of (what I had expected)  xxxx. Line 1


Is it grammatical to use "would" twice in a sentence? Why? Please consider the following examples

Is "would" used correctly in these sentences?   I would not be surprised if you would lose.  I would not give you the weapon if you would use it to harm others.


As what user does a command end up executing?

How can I find out as what user a command executes? (I'm running Ubuntu, but I suspect the answer applies to Unix in general).  What I'm trying to do is  and logging to /var/log/msmtp. I've set the owner and group of that file to mail, then added my user to the mail group via sudo adduser dandv mail:  $ ls -al /var/log/msmtp.log -rw-rw---- 1 mail mail 0 Jul 24 18:45 /var/log/msmtp.log $ groups dandv dandv : dandv mail sudo   Yet when when I run  cat testmail | msmtp dan@example.org -v   I get a permission denied:  msmtp: cannot log to /var/log/msmtp.log: cannot open: Permission denied   What is msmtp's problem?


javascript: not getting proper results with callback function

I looked at similar questions and tried Object.key(patientList).length but it returns 0. I was recommended to use callbacks and this how I am implementing it.  var data; var patientList = {}; var parseDate = d3.time.format("%d/%m/%y").parse;  function input_Data()  {      d3.json("data.php", function(error, json)  {     if (error) return console.warn(error);         data = json;         console.log(data);             for(var i = 0; i < data.length; i++)  {             var name = data[i].name;                 //data[i].dates = parseDate(data[i].dates);             if(!patientList[name])  {              var newPatient = {                 dates: [data[i].dates],                 alpha: data[i].alpha,                 beta: data[i].beta             };              patientList[name] = newPatient;              } else  {              patientList[name].dates.push(data[i].dates);             }         }         console.log(patientList);             console.log(Object.keys(patientList).length);             console.log(Object.keys(patientList));        });  }  function number_of_patients(callback) {     callback();     console.log(patientList);     console.log(Object.keys(patientList).length);     console.log(Object.keys(patientList)); }  number_of_patients(input_Data);   console.log inside the input_Data function displays correct results with length 4. And console.log in the number_of_patients displays correct patientList but 0 length and doesn't display name (keys) either. I have read similar posts but still can't fix the problem here.  Any help would be much appreciated.


I am traveling with esta visa ( visa waiver program) i wanted to spend whole summer in North America. I was in US for 87 days and now came to Canada to see my family. I wasnt aware that Canada is under the 90 days for visa waiver!! I dont get it , I had to come to Canada with a  E-Visa. I am confused did I over stayed my US ESTA visa !! If i am whats should I do next to get my visa back ... As my return flight is from LA


Scale parameters -- How do they work, why are they sometimes dropped?

I'm having difficulty wrapping my head around scale parameters.  How exactly do they work?  Why are they sometimes ignored?  (in other words, when is it important to preserve them in a calculation?)   Thank you for any simple, lay explanations.     UPDATE: What motivated the question was the Gamma distribution; in reading of it with relation to Poisson priors, I saw it described as simply $\propto  x^{\alpha-1}  e ^{-x /\beta }$    However, the question is more of a general nature.  While I get the concept of proportionality, I do not yet fully grasp when it is important for items to be equal versus simply proportional; or rather why so often in the literature I see items referred to as proportional with the scaling factor dropped.


Let $\mathcal{M}_{n,p}(\mathbb{K})$ be the set of matrices $n\times p$ with coefficients in $\mathbb{K}$.  Let $A\in\mathcal{M}_{n,p}(\mathbb{Q})$.  We suppose there exists a non zero solution $X\in\mathcal{M}_{p,1}(\mathbb{R})$ to $AX=0$. ($0$ denotes $[0]_{p,1}$)  Show that there exists a non zero solution $X'\in\mathcal{}_{p,1}(\mathbb{Q})$ to $AX'=0$  PS : This is NOT a duplicate of , which gives a zero solution in my case.    I've tried building up the system of linear equations linked to $AX=0$.  I got the result for simple small square matrices, but I can't manage to generalize it to all the matrices.


Trim supports for Kington SSD is in default or not?

I have just installed Ubuntu 17.10 on a Kington SSD.  I heard that Ubuntu enables Trim by default, but it is only for some brands like Intel and Samsung while Sandisk and Kingston are not included in the list ().  Thus, I want to ask:   How do I check Trim was enabled for the SSD brands I am using (Kington and Sandisk)? How do I enable if the trim is disabled?   Update:   Main question I want to ask you is Kington is not in supported list of fstrim,  [And I have already read some old threads at here and somewhere at here that, enable Trim ubuntu only effect to supported brands (samsung, Intel)]  => How to check/ enable/ disable Trim function for Kington SSD (special brand, which is not in the support list)  Because the old threads I read is maybe outdate.  Update 2: Kington technical supporter informed me that no need to care about Trim function in OS, because Garbage collection is a function was built-in firmware of Kington SSD.  Best regard,  Thanks in advance,


I want to find all .app files on my Mac that aren't in the  Applications folder. How do I do this?    Please unmark as duplicate  1st point: The suggested dupe's answer explains how to get a list of all applications installed, but does not explain how to exclude the Applications folder.        How do I find all files of a specific type that are outside of a folder?     I want to find all .app files on my Mac that aren't in the  Applications folder. How do I do this?      2nd point: This is a 2-part question. The 1st part is a generic question that asks how to find ANY files of a certain kind not in a folder. The 2nd part is the situation specific to myself. The suggested dupe partially solves my own problem but doens't address the generic question.    3rd point: Furthermore, a key word in this question is "find." The suggested dupe's answer works to get a list of all installations, but it's not possible to get to where they're stored on the disk.


In Ticket to Ride, do cities have to be connected in the same order as on the ticket?

Is the direction of the ticket important? Do cities have to be connected in the order shown on the ticket?  For example, if I am attempting to claim the Rostov-Erzurum ticket, can I connect Erzurum to Rostov instead of connecting Rostov to Erzurum?


I'm a newbie. I was trying to draw circuits in latex. After drawing a circuit I have written a section.In this section, while drawing circuit it is coming in the previous section after the first circuit.  Thanks in advance


recently popped to the top of the active question queue. I spent some time reading the question, added some comments, and then realized that the last visible activity was a month ago.  To make sure I wasn't losing my mind, I returned to the Active queue to see if the question really had appeared there. I saw that the activity was generated by the Community user:    Since no edits appear on the question or answers, what is Community doing that causes the question to be considered "active?" For what it's worth, I have noticed the same behavior a handful of times before today.


Completing something just to finish it despite lack of interest - is called …?

Recently I started reading a novel that I was excited to read. After getting approximately 45% into it, I lost the pace. It started becoming slow and lousy.   I thought to leave it unfinished but it was from one of my favorite writer (Paulo), so why not just complete it just to meet the finish line?  Sometimes we complete work just because we have started it, regardless of its interest. Is there a word or phrase for this situation?


I have recently installed Ubuntu 16.04. Today suddenly I am seeing that it freezes during shutdown. I have no idea why this is happening.


How would you visualise a curvature in spacetime?

Just wondering how one could visualise a curvature in spacetime. If anyone has a site, image or video showing this it would be appreciated.


What should I look out for when buying a second-hand DSLR body?

I'm considering buying a DSLR from a friend. I've read the  question elsewhere on this site, but I was wondering what I should look at on the body to assess the condition?


How to make Windows 10 taskbar thumbnail previews bigger?

The window previews in Windows 10 are too small to make any informed decisions. How can I increase the size of the thumbnail preview?    Note: This is not a duplicate of  which is about taskbar icon size. This question is regarding the preview/thumbnail size.


What's the best way to detect if a given Javascript object is a DOM Element?

Say for instance I was writing a function that was designed to accept multiple argument types:  var overloaded = function (arg) {     if (is_dom_element(arg)) {         // Code for DOM Element argument...     } };   What's the best way to implement is_dom_element so that it works in a cross-browser, fairly accurate way?


Add a row and a column to tikz matrix with a different style

I should add a header row: 1 2 3 4  to a matrix and a column (as before: 1 2 3 4 ) on the left of the same matrix. But the style should be different like below:    this is my MWE:  \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}  \tikzset{square matrix/.style={     matrix of nodes,     column sep=-\pgflinewidth, row sep=-\pgflinewidth,     nodes={draw,       minimum height=#1,       anchor=center,       text width=#1,       align=center,       inner sep=0pt     },   },   square matrix/.default=0.5cm }  \matrix[square matrix] { 16 & 3 & 2 & 13 \\ 5 & 10 & 11 & 8 \\ 9 & 6  & 7 & 12 \\ 4 & 15 & 14 & 1 \\ };  \end{tikzpicture} \end{document}   Thank you so much!


I get different spacing results when I define a \hspace directly or as a macro.  Directly:  \documentclass{article}  \title{Title} \author{Daniel Domingues \hspace{0.2cm}$\diamond$\hspace{0.2cm} Ricardo Cruz \hspace{0.2cm}$\diamond$\hspace{0.2cm} Rui d'Orey}  \begin{document} \maketitle \end{document}     As a macro:  \documentclass{article}  \def\whatever{\hspace{0.2cm}$\diamond$\hspace{0.2cm}}  \title{Title} \author{Daniel Domingues \whatever Ricardo Cruz \whatever Rui d'Orey}  \begin{document} \maketitle \end{document}     It looks better when I use \hspace directly without the macro. Why is that?


Why are comments hidden in a non-linear manner?

I have noticed that comments are expanded in a different way when I click "see more comments". For example, if an answer has 10 comments, on loading the page it shows only limited comments with a bottom view "View 4 more comments". But the comments are getting expanded in a non-linear manner as the hidden comments are being shown between the existing comments when I click "View 4 more comments". Is there any specific reason for that or is it designed in that manner?


I have a dependency problem on 18.04, libglib2.0-0 is a bit too old (I need 2.56.3 but only 2.56.1-2ubuntu1 is available).  When looking at the , I see that  Paquet libglib2.0-0 (...) bionic (18.04LTS) (libs): GLib library of C routines  2.56.2-0ubuntu0.18.04.2 [security]: amd64 i386  2.56.1-2ubuntu1 [ports]: arm64 armhf ppc64el s390x bionic-updates (libs): GLib library of C routines  2.56.3-0ubuntu0.18.04.1: amd64 arm64 armhf i386 ppc64el s390x (...)   bionic-updates fits the bill. How can I use it with apt?  I currently have APT sources set by default to   deb http://mirror.plusserver.com/ubuntu/ubuntu/ bionic main restricted universe multiverse deb-src http://mirror.plusserver.com/ubuntu/ubuntu/ bionic main restricted universe multiverse


What is the difference between different variants of BLOSUM matrices?  e.g What is the difference between BLOSUM 30 and BLOSUM 62?


Show that all Fermat numbers pass the base $2$ test (pseudoprime).

I realize that there is a similar post to this, but that post included a hint which we were not given. Also regarding that hint, I'm just wondering how someone could find it out for themselves. Here is the related post:  I know that $F_n = 2^{2^n} + 1$ and therefore $\,2^{2^n} \equiv -1 \pmod{F_n}$. But I don't intuitively know the next step to take to show that $\ 2^{F_n}\equiv 2\pmod{\!F_n},\,$ i.e. that  $$2^{2^{2^n} + 1} \equiv 2 \pmod{2^{2^n}+1}$$ So in essence, I would like to know how to solve it without knowing the hint. Thank you.


I have a web-server, (complete with user account and payment system), that was vulnerable to the Heartbleed attack.  What I'm wondering is:   How can I detect if my server has been compromised? How do I recover from a heartbleed attack? How do I ensure the safety of my users data?


I have a .NET dll which needs to read it's config settings from it's config file. Usually, the config file is placed in the same directory as the DLL. But how do i read the config file if the DLL is GAC'ed, because I can put only the DLLs in the GAC, and not it's config files.


Copying array through clone() in java is not working as expected

I tried to deep copy an array using arrays.clone() method. import java.util.*;  public class Main {     public static void main(String[] args) {                  int[] arr = {1,2,3,4,5};         m1(arr);         System.out.println("arr inside main: " + Arrays.toString(arr));     }          private static void m1(int[] arr) {         int[] narr = {5,6,7,8,9};         arr = narr.clone();         System.out.println("arr inside m1: " + Arrays.toString(arr));     } }  Output: arr inside m1: [5, 6, 7, 8, 9] arr inside main: [1, 2, 3, 4, 5]  As it seen the original array inside the m1() function is changed, and since arrays are passed by reference, I thought the original array in the main() function should also have changed. But it is not. I think I am lacking some java knowledge. Please put some light.


Coroutine problem, I don't know what's happening

Calling function.    private const int deathHangTime = 2;     private void Die()     {           Debug.Log("1 " + Time.time);           StartCoroutine(DelayForTime(deathHangTime));           Debug.Log("4 " + Time.time);     }      Coroutine   IEnumerator DelayForTime(float time) {      Debug.Log("2 " + Time.time);      yield return new WaitForSeconds(time);      Debug.Log("3 " + Time.time); }     Why doesn't it wait for 2 seconds? Why doesn't it print the 3rd Debug line?


What is the probability of covering all $6$ faces of a die after rolling it $14$ times or less?

In order to answer this question, I want to sum up the probabilities for $1 \leq N \leq 14$:   $P(N<6)=0$ $P(N=6)=\displaystyle\frac{6!}{6^6}$ $P(N>6)=\displaystyle\frac{?}{6^N}$   Can you please advise on how to work out the third bullet?  Any suggestion for an alternative solution will also be appreciated.  Thanks


Inheritance in Java. 2 children that can't access each other's overriden methods

Suppose I have class/interface A that is extended/implemented by class B and class C. Class/interface A contains method X. Is there a way to have method X without a body (X();) and so it must be implemented by class B and class C, but not give class B and class C (or any other class except possibly class/interface A) access to each other's method X?  ? class/interface A {   ? X(); }  ? class B extends/implements class/interface A {   @Override   ? X() {     ...code...   } }  ? class C extends/implements class/interface A {   @Override   ? X() {     ...code...   } }   I am not sure of modifiers, represented with question marks above, and I am not sure if A should be a class or interface.  EDIT: Additionally, instances of classes B and C are created in class D. The instance of class C in class D is constructed with the instance of class B in class D as a parameter, which is set as a class variable which this instance of class C is constantly getting data from. I do not want this instance of class C to be able to call its class variable object B's method X.


Bounding box is larger than expected when drawing a curved path

I have been working on logo for my department and I have the following code. The problem is that whenever I compile the diagram seems to be larger than the actual logo. I do not know what is the problem. I know the numbers I have selected are not the best but any insights into the matter will be highly appreciated.   \documentclass[letterpaper]{article}  \usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry}  %\usepackage{amsmath,amssymb,units}  %\usepackage{enumitem,multicol}  \usepackage{tikz}  %\usetikzlibrary{arrows}  \usepackage{lipsum}   \begin{document}   \lipsum[1-2]  \begin{tikzpicture}[y=0.80pt, x=0.8pt,yscale=-1]  \path[draw=black,fill=white]    (258.9527,290.5199) .. controls (173.9885,538.4766) and (568.5860,261.2969) ..    (306.5098,257.1141) .. controls (44.4337,252.9312) and (429.9845,542.5624) ..    (352.9767,292.0206) .. controls (275.9689,41.4788) and (119.6549,497.6604) ..    (334.1376,346.9999) .. controls (548.6203,196.3394) and (66.4622,188.6439) ..    (276.0276,346.0724) .. controls (485.5930,503.5010) and (343.9169,42.5633) ..    (258.9527,290.5199) -- cycle;  \end{tikzpicture}  \lipsum[1-2]  \end{document}    See image below:


Compute the rotation degrees from transformation matrix in 3D space

Assume I have 3 original points in a 3D object (in 3D space) as A1=<xa,ya,za>, A2=<xa,ya,za>, and A3=<xa,ya,za>. The 3D object is moved and rotated in the 3D space, and the destination points in that object become B1=<xb,yb,zb>, B2=<xb,yb,zb>, and B3=<xb,yb,zb>.   How can I compute the transformation matrix and following that, the degree of rotation in each axis? Basically, I need a matrix that if applied to all points, I get the displaced object.


I am trying to apply MCMC on a problem, but my priors(in my case they are $\alpha\in[0,1],\beta\in[0,1]$)) are restricted to an area? Can I use normal MCMC and ignore the samples that fall outside of the restricted zone(which in my case is [0,1]^2), i.e. reuse transition function when the new transition falls out of restricted(constrained) area?


I'm tring to write equivalent for encode("hex") in python3.  Here what i got:  s = "'" print(str(s).encode('hex')) >>27   Tring binascii in Python 2.7:  import binascii  s = "'" print(binascii.hexlify(str(s))) >>27   So in Python 2.7 both methods give same result.  Now i tring to run this code in Python 3.5:  import binascii  s = "'" print(binascii.hexlify(str(s)))  >>Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: a bytes-like object is required, not 'str'    After i tried:  import binascii  s = "'" print(binascii.hexlify(str(s).encode('utf8')))  >>b'27'   But not sure what i have to do next. How to get my 27?


Why does the caption start with number 2 and how to fix it?  \documentclass{article}  \usepackage{mwe} \usepackage{subcaption}  \begin{document}  \begin{center} \captionsetup{type=figure} \begin{subfigure}{0.4\textwidth} \includegraphics[width=\textwidth]{example-image-a.pdf} \end{subfigure} \begin{subfigure}{0.4\textwidth} \includegraphics[width=\textwidth]{example-image-b.pdf} \end{subfigure} \captionof{figure}{Description} \end{center} \end{document}   Output:   Maybe also see


I can't figure out what's wrong with this field formula.  Everything below in quotes has been copy/pasted directly so there are no typos AFAIK.  Custom object API name = CompanySetting__c Custom object field API name = Title__c Custom field formula on Lead object: Location (Text) = CompanySetting__c.Title__c     "Error: Field CompanySetting__c does not exist. Check spelling."   I have also tried unsuccessfully using "CompanySetting__r.Title__c"  On a different object the following field formula works as expected: Account.Location_Title__c   But that might be due to the fact that the object is not a custom object even though the field is a custom field.  Any suggestions?


Sed command replace the first occurrence in file

I am trying find and replace the line one of the existing file, when I am running the below sed command it is replacing all the lines which have the matched string, but instead I want to change only one place inside the file. sed -i 's/azure.com/test.com/' file_name  Actual file server_name azure.com server_name azure.com  Expected result server_name test.com server_name azure.com


When emulating a 'class', why set the methods in the .prototype property and not in the constructor itself?

I'm trying to understand 'classes' in JavaScript.  Usually emulating classes in JavaScript looks something like this:  function MyClass(someParameter) {     this.someValue = someParameter;     this.someOtherValue = "green"; }  MyClass.prototype.someMethod = function() {     console.log("Hello!"); };   While the non-function members are set inside the constructor, the method is added outside of the constructor, to the .prototype property of the constructor.  I'd like to understand why. Why not create the methods inside the constructor, just like the rest of the members? Meaning:  function MyClass(someParameter) {     this.someValue = someParameter;     this.someOtherValue = "green";      this.someMethod = function() {         console.log("Hello!");     } }


Do related linked questions really need to be linked twice?

If a related question is also linked in the OP, need it really be linked twice in the sidebar under both "Linked" and "Related"?    I would have thought just displaying under 'linked' would suffice, as the OP presumably linked it because it was relevant, and displaying here shows they considered it. Showing it in 'related' as well serves only (so far as I see) to occupy a space that could otherwise be used for another related question.  What added value does the second link provide?


Why do you write setter and getter with double t

If you care, setter (plural: setters) and getter (plural: getters) are parts of a computer programms that get (or retrieve) and set (or store) values in memory.  But why do you write that words, that are, anyway, rather artificial (do they have uses in other contexts?) with double t?  You don't do it with other words such as producer, consumer. Even words that finish in consonant (reader) or in t (eater) are just added the r or er suffix.  Please clarify this non important issue to me.


Why minus negative value with SQLite statement getting incorrect result?


Prove using the epsilon-delta definition?   $\lim \limits_{x \to 2}\frac{1}{x} = \frac{1}{2}$  $|f(x)-L|<\epsilon$  $|\frac{1}{x}-\frac{1}{2}|<\epsilon$  $-\epsilon<\frac{1}{x}-\frac{1}{2}<\epsilon$  $-\epsilon+\frac{1}{2}<\frac{1}{x}<\epsilon + \frac{1}{2}$  Any tips on how do I continue from here?


What questions should I ask as a candidate during an interview for a tenure-track assistant professor position?

I will soon be at an on-campus interview for a tenure-track assistant professor position. I expect that in the course of the day, I will be asked the question, "Do you have any questions for us?" What are good questions for me to ask to show that I am interested in the department and would very much like to join?


The Excerpt gets page excerpt instead of most recent post excerpt

See www.pinosalon.com, Recent Blog is the same as Welcome.  On the page-home.php template that is used as the home page I have the loop which simply displays the Welcome text.   A few lines down the template, outside the loop, I get recent posts and display the latest post with the_excerpt(). The title and read more link work, but the_excerpt grabs the content from the loop rather than from the most recent post.   After updating the code based on the solution suggested by another question, the excerpt is no longer displayed.   Here is the code I am using:   //Block displays the current page's content <?php while ( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
     <?php the_content(); ?> <?php endwhile; ?>  //Block that should display the latest post <?php $args = array( 'numberposts' => '1','post_type' => 'post' ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ) : setup_postdata($recent);     echo '
' .   $recent["post_title"].'
'; echo the_excerpt(); echo 'Read More'; endforeach; ?>


What is the difference between implication symbols: $\rightarrow$ and $\Rightarrow$?

I do not understand the difference between $\rightarrow$ and $\Rightarrow$. Sometimes I see implication truth tables labeled with the former, sometimes with the latter.  Aren't they synonyms of logical implication or is there any difference?


If p is a prime and a ∈Z. How do we prove that the congruence x^x ≡ a (mod p) is solvable?


I am drawing an elliptic curve on LaTeX using tikzpicture. I have got the graph on the picture, the curve is defined at -2 but I don't know why the graph is not finished.    Here there is the code:  \begin{tikzpicture} \begin{axis}[         xmin=-4,         xmax=5,         ymin=-5,         ymax=5,         xlabel={$x$},         ylabel={$y$},         scale only axis,         axis lines=middle,         domain=-1.912931:3,               samples=200,         smooth,            clip=false,         % use same unit vectors on the axis         axis equal image=true,     ] \addplot[blue] {sqrt(x^3-3*x+5)} node[right] {$E$}; \addplot[blue] {-sqrt(x^3-3*x+5)}; \coordinate[label={10:$P$}] (P) at (axis cs:-1,2.64); \end{axis} \end{tikzpicture}


Avoiding Spotlight to spin up external drive

I have Mac Mini with an external hard drive. The external drive is indexed with Spotlight. Whenever I use Spotlight to start an app on the local machine, the external drive spins up, because obviously Spotlight wants to check the spotlight files on the external drive for search hits. The drive makes an audible noise, and stays running for some five minutes until it idles to a stop.  Is there any way around this, apart from disabling Spotlight or disconnecting the drive? Obviously, I understand that Spotlight must access the spotlight files to check for search hits, and can't tell the difference if I want to launch an app or find a file, when I just type "Sa" for Safari.  The only cure I could think of was if the entire spotlight database was cached in memory, or was placed on the local hard drive, or if I used a different hotkey for finding files and launching apps.


Which application to replace Superputty / PuTTY CM in macOS

Is there any application in macOS (MacBook Pro) which can work like SuperPuTTY / PuTTY CM does in Windows? I am looking for a free one.  What I need is to organize my ssh sessions. I can ssh to my machines using terminal but they are individual windows and kind of hard to get IP addresses / names every time I need to connect to them.  It can also be an application which uses terminal application in Mac for ssh ..


What is the easiest way to draw lattice points using TikZ? What about changing the vector basis?


What's the easiest way to create passport-sized prints?

I need to print some passport-sized photos for visa applications. They each need to be 35mm x 45mm.  Is there an easy way to take a single photo of my face and create a new jpeg file from it that I can just print in 6"x4" and have several passport photos on it in the right size that I can just cut out?


Suppose $g{^n}=e$. Show the order of $g$ divides $n$

Suppose $g{^n}$=e. Show the order of $g$ divides $n$.  Would I use Eulers Theorem???;  $a{^{\phi p}}$ $\equiv1 \pmod p$  $a{^{p-1}}\equiv1 \pmod p$  $a{^p}\equiv a\pmod p$  So then I would have   $g{^n}\equiv g\pmod n$  then I think you use the $\gcd$, which states $\gcd(a,b) = 1$  or   $a=nq+r$  and $b=nq+r$  which is $a\equiv b\pmod n$??


Is there a way to use multiple instances of Chromium or Firefox?

I usually have different instances of my web browsers to attend to various types of usages, on Windows that means using portable versions of Chrome and Firefox. The  for Linux are outdated and lack immediate support, compared with the portable apps for Windows. I am wondering if there is any way to make the current versions of Firefox and Chromium provided by Ubuntu work as "portable", which by that I mean running as the equivalent of a Windows portable app, detached from the default browsers.


I can clearly see that $\dfrac{n!}{n^n}\to 0$ when $n\to\infty$. But how do I know if the sum $$\sum_{n=1}^{\infty}\frac{n!}{n^n}$$ is convergent or not? I know this might be basic, but thank you if anyone can help me.


How to extract multiple values from html to java?

I'm trying to extract some data from html source code to my java project. The html is taken from "Bing search images" and I wanna get all the images from the  tag. This is the html code:  <a href="/images/search?q=nba&amp;view=detailv2&amp;&amp;&amp; id=FE19E7BB2916CE8B6CD78148F3BC0656D151049A&amp; selectedIndex=3&amp; ccid=2%2f7OBkGc&amp; simid=608035681734625885&amp; thid=JN.tdPCsRj4HyJzbwA%2bgXsS8g"  ihk="JN.tdPCsRj4HyJzbwA+gXsS8g"  m="{ns:&quot;images&quot;,k:&quot;5070&quot;,dirovr:&quot;ltr&quot;, mid:&quot;FE19E7BB2916CE8B6CD78148F3BC0656D151049A&quot;, surl:&quot;http://www.nba.com/gallery/rookie/070727_1.html&quot;, imgurl:&quot;http://www.nba.com/media/draft_class_3_07_070727.jpg &quot;, ow:&quot;300&quot;,docid:&quot;608035681734625885&quot;,oh:&quot;192&quot;,tft:&quot;58&quot;}"  mid="FE19E7BB2916CE8B6CD78148F3BC0656D151049A"  t1="The 2007 NBA Draft Class"  t2="625 x 400 · 374 kB · jpeg"  t3="www.nba.com/gallery/rookie/070727_1.html"  h="ID=images,5070.1">    and this is how i tried to extract it but no succeeded:  public static void main(String[] args) {          String title = "dog";         String url =    "https://www.bing.com/images/search?q="+title+"&FORM=HDRSC2";         try {             Document doc = Jsoup.connect(url).get();             Elements img = doc.getElementsByTag("a");              for (Element el : img) {                 String src1 = el.absUrl("imgurl");                 String src2 = el.absUrl("surl");                 System.out.println(src1 + " " + src2);                   }         } catch (IOException e) {             e.printStackTrace();         }      }   Any idea if it's possible?


I know this question has been asked many times before but I don't seem to get my example right. How can I make the purple div fill the remaining height of the window?    <!DOCTYPE html>


Just out of curiosity, since  $$\sum_{i>0}\frac{9\times10^{i-1}}{10^i}, \quad\text{ or }\quad 0.999\ldots=1,$$ Does that mean $0.999\ldots=1$, or in other words, that $0.999\ldots$ is an integer, by applying the transitive property?  Ty.


Electromagnetic Tensor in Cylindrical Coordinates

I understand that the  is given by  $$F^{\mu\nu}\mapsto\begin{pmatrix}0 & -E_{x} & -E_{y} & -E_{z}\\ E_{x} & 0 & -B_{z} & B_{y}\\ E_{y} & B_{z} & 0 & -B_{x}\\ E_{z} & -B_{y} & B_{x} & 0 \end{pmatrix}$$  where $\mu$, $\nu$ can take the values {0,1,2,3} or {$t,x,y,z$}.  So, for example  $$F^{01}=F^{tx}=-E_x$$  My question is, what would the following expression be?  $$F^{t\rho}=?$$ or $$F^{z\rho}=?$$  where $\rho=\sqrt{x^{2}+y^{2}}$ is the radial coordinate in ?  And more generally, how can we construct the Electromagnetic Tensor in cylindrical coordinates? Where $\mu$, $\nu$ now take the values {$t,\rho,\varphi,z$}.


How to round exactly without zeroes for doubles in C

I have a program that adds doubles, but I want it to make it so that it displays the exact number without the zeroes. For example I added 13.4 and 10.05. It will show 23.450000. How do I make it so that it shows 23.45 without using %.2lf. I can't use %.2lf because if I add 12.4 and 10.1 it will show 22.50 but it needs to show 22.5 only. Sorry for the bad english.


An empty intersection of decreasing sequence of closed sets

What is an example of a family of closed subsets $F_0 \supset F_1 \supset F_2 \supset \dots $ of $\mathbb{R}$ so that $F_n \neq \emptyset$ for each $n$ and $\bigcap_{i=1}^n F_i = \emptyset$?  Thanks!


Turning Off Notifications While Presenting

On Yosemite how can I turn off notifications on Yosemite while presenting or showing the screen to someone?  I know I can set the do not disturb for a time period but I was wondering if there is just an on off switch without having to set a time.


How can I elegantly show that: $(1 + \frac{1}{k})^k \leq 3$ For instance I could use the fact that this is an increasing function and then take $\lim_{ k\to \infty}$ and say that it equals $e$ and therefore is always less than $3$   Is this sufficient? What is a better wording than "increasing function"


Algorithm for finding irrregular polygon centroid (label point)

I need to find a centroid (or label point) for irregularly shaped polygons in Google Maps. I'm showing InfoWindows for parcels and need a place to anchor the the InfoWindow that is guaranteed to be on the surface. See images below.     In reality I don't need anything Google Maps specific, just looking for an idea of how to automatically find this point.  My first idea was to find the "false" centroid by taking the average lat and lngs and the randomly placing points out from there until I find one that intersects the polygon. I already have the point-in-polygon code. This just seems awfully "hacky" to me.  I should note that I don't have access to any of the server side code outputting the geometry so I can't do anything like ST_PointOnSurface(the_geom).


How do I downgrade from Yosemite 10.10 to Mavericks 10.9?

I have the new Yosemite. How do i downgrade to the last version?  I really don't like it. Lost Yahoo messenger and a lot of extras I had on my old operating system.


I want to prove the dihedral group is generated by a rotation r and a reflection f (flip). I managed to prove this relation $fr = r^{n - 1}f$   1.0 and in addition there are the simple relations $f^2$ = 1 and $r^n$ = 1. The author says that from 1.0 I can derive the following relations rαrβ = rγ,   γ ≡ α + β  (mod n) rα(rβf) = rγf,   γ ≡ α + β   (mod n) (rαf) rβ = rδf,   δ ≡ α + (n − β)   (mod n) (rαf) (rβf) = rδ,   δ ≡ α + (n − β)   (mod n) that should prove the thesis, but I don't understand well how to derive from 1.0 and use the relations above. I realize that they should provide a way to simplify any product of r and s.


Fix formatting errors of page number > 99 in table of contents?

This is a follow up question of .  The formatting problem has nothing to do with cleanthesis.sty.  The problem is that if I use the charter font, page numbers greater than 99 are not formatted correctly in the table of content.  \documentclass[draft=on]{scrbook} \usepackage{blindtext} \usepackage{charter}  \listfiles  \begin{document} \tableofcontents \section{Section 1} \blindtext[100] \section{Section 2} \blindtext[500] \section{Section 3} \end{document}


Unable to improve answer because edit reviewers are rejecting for questionable reasons

I've always had a hard time getting reviewers to approve my edits pending peer review. It's very often either "too trivial" or "too much change", with "should be a comment" thrown about here and there. How do I hit the silver lining?  Just today, in this post, I thought I would improve the accepted answer by adding some useful information that would help the next person. In the process, I also decided to improve the formatting a little bit:    I suggested  first with the following comment:     improved formatting, add footnote about errors that can be ignored   Within seconds it was rejected 3:1, so I thought I'll , this time with this comment:     (why reject? I'm trying to add some useful information here so that the answer is more clear to someone who would encounter the same problem again. how is this edit "minor" or "trivial" or "not substantial"?) improved formatting, add footnote about errors that can be ignored   Again it was rejected 3:1, with one of the rejects explicitly saying "Should be a comment instead.". I would argue against this saying that making the extra information a comment would defeat the purpose of a website like StackOverflow, where seekers of answers should be given correct and complete answers.  In this specific case, the phrase "Make sure you don't have any errors" is misleading, because in the Eclipse IDE, even after other errors have been fixed, the error which I was talking about will still remain, which can only be fixed by doing the step that follows it ("Fix Project Properties") or the instructions in the second paragraph (modify XML file and save). This is what led me to suggest the edit to make the answer more complete and comprehensive, so the next person does not have to sift through the comments for such a valuable piece of information.  I think very often, peer reviewers at SO are rejecting suggested edits too harshly, too quickly and without fully understanding the original problem and the context in which the edits have been suggested. They seem quite often to follow a gut feeling when making decisions (how can you reject an edit so quick within mere seconds of posting it?) rather than analyzing the question/answer properly, understanding the context and thinking about whether the suggested edit is actually something worth keeping.  Suggestion:  I hope the SO/SU community can improve on the peer reviewing process so that actual useful edits are not lost in your battle against useless ones. Perhaps reviewers should be forced to spend some time reading the original question and the original answer, and deciding whether the edit adds valuable piece of information that could be helpful to the next person who has the same question. (This would mean edits can't be approved or rejected within seconds of viewing them, but the reviewer could be delayed by a minute or two* - I believe this will reduce the chance of impulse reviewing as the wait will encourage the reviewer to use the time productively.  * The time to wait could be tied to the caliber of the reviewer: a new reviewer could be given 3 minutes of wait; a learning reviewer 2.5 minutes; a graduated reviewer 2 minutes; a seasoned reviewer 1.5 minutes and a veteran reviewer 1 minute (the minimum wait for any reviewer).  Alternative Suggestion (courtesy CodyGray and Mr.Wizard):  The edit queue could be filtered based on tags of questions on which the edits were made, meshed with the top five? tags the user had been most active on (their past questions and answers combined, with answers bearing more weight and high-voted/accepted answers bearing even more weight). Those edits which had lapsed a couple of hours or a day without review could be placed in the unfiltered queue for anyone with enough reputation points to review them even if their top tags do not match the tags in the question. Both the filtered and unfiltered queues should be made available to the users with enough rep to see the review queues, without any specific restriction towards one or the other.


How can I see my previous winter-bash performances?

Is there a way to see my previous performances with respect to winter-bash? May be something like leagues for winter-bash? I understand that hats are different each year, but at least it would be nice to see the number of hats collected.


Can I use 2010 iMac as second screen with 2020 MacBook Pro as source?

Recently upgraded to 2020 MacBook Pro running Catalina. I no longer seem to be able to use 2010 iMac as second screen. (I was connecting with a Thunderbolt to thunderbolt cable. then pressing Command + F2). Is there any way that I can continue to use my 2010 iMac as second screen? It is not good for anything else! Thanks, Miles


It is said that photons have zero rest mass so how can gravitational force of a black hole affect light?  And if photons do have some effective mass while traveling at speed of light then only can a black hole's gravitational force act upon them and if force acts upon them they will surely be accelerated.  Does this mean that near a black hole light itself crosses its own speed that is 3 X 10^8 m/s ? , which is not theoretically possible.


Is there any relationship between Gravity and Electromagnetism?

We all know that the universe is governed by four Fundamental Forces which are The strong force , The weak force , The electromagnetic force and The gravitational force .  Now, is there any relationship between Electromagnetism and gravity?


Java - Ending a while loop with an empty string

Hi I want to implement a while loop where users can input some strings and finish it by entering an empty String. When I am entering for example "Hello", "World", "" the loop does continue infinitely, but it should stop after the empty string - I don`t know why. Can you help?   Maybe the check if the string is unequal an empty string does`t work?  This is my code:  public static void main(String[] args) {     write("Enter some words and end your input by an empty string.");     String input = readString("Input a word:");     while(input != "") {         input = readString("word:");     }   Thank you.


"We're looking for long answers that provide some explanation and context" was added to this question

The following automated response was given to  question:     We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.   If this response can be applied to questions as well as answers, shouldn't the text be changed from answers to posts?  I'm not marking this as a bug or feature request yet, as I'm first trying to determine the rationale behind having this apply to questions as well as answers. If it should apply to both, then I'd think the message text should be altered. (I'm not sure how often this would apply to questions; this is the first time I've seen it in such a context.)    Update: Thank you for the duplication. None of my searches before I posted this, based on the wording of the message, turned up that question.


Why drawn path has no fill but is not transparent in Adobe Illustrator?

The drawn path has no fill, but it filled by a black color.    How to remove this black and make inner region of a path transparent?


In Google Sheets, I have a column of active hyperlinks. When you hover over one of them, a tool tip appears that contains an "open link" icon that you can click on to open the URL in a new tab.  In each cell, instead of showing the entire URL, I'd like to replace that text with a "view" button that can be clicked immediately (without having to wait for that hover-delayed tool-tip, which requires a brief delay and additional mouse-movements before you can click to open the URL).  Keep in mind, that each URL is different (in this column) and I'm looking for a solution where I can highlight all of them and convert each to a button labeled "view" that opens its respective url in a new browser-tab.  Is this feature available?


Can anyone please guide me to number the reactions separately from equation numbering, while using chemformula package.


Is there any "superlogarithm" or something to solve $x^x$?

Is there any "superlogarithm" or something to solve an equation like this:  $$x^x = 10?$$


Travelling on a single entry Schengen visa

I have a Schengen visa single entry valid for 60 days.I intend on spending a month in France then taking a flight from Nice through Barcelona to Munich, Germany. Is that possible with this type of visa?


If $Ax = Bx$ for all $x \in C^{n}$, then $A = B$.

Let $A$ and $B$ are $n\times n$ matrices and $x \in C^{n}$.  If $Ax = Bx$ for all $x$ then $A = B$. To prove this I have selected  $x$ from Euclidean basis B = {$e_{1},e_{2},...,e_{n}$}. Then $Ae_{i} = Be_{i}$ implies $i^{th}$ column of A = $i^{th}$ column of B for all $1 \leq i \leq n$. Hence $A = B.$    Is this proof complete?


Why would anyone use an elliptic curve with a cofactor > 1?

In cryptography, an elliptic curve is a group based on a finite field $GF(p^k)$; this group has $n$ elements on it, and we work on a prime-sized subgroup of size $q$.  We denote the value $h = n/q$ as the cofactor of the curve.  My question is: why would we ever want to consider using a curve which has a cofactor $h>1$?  Or, in other words, why would we consider using an elliptic curve that had a composite number of points?  After all, the discrete log problem can be solved in $O(\sqrt{n / h})$ time; if we were to select a curve with $h>1$, we are deliberately making this problem easier.  Now, if $h$ is small, we're not making it much easier; if (for example) $p^k \ge 2^{256}$ and $h \le 4$, this would still appear to be an intractible problem.  On the other hand, I don't know if we want to make the attacker's job any easier than necessary, unless we gain some other benefit from it (perhaps making some other attack harder, or gaining some computational efficiency).  So, is there any benefit for using a curve with a cofactor > 1?


Show for $f$ defined on $\mathbb Q \cap [0,1]$ uniformly continuous, exists extension $g$ defined on $[0,1]$ that is continuous

Suppose that $f$ is a uniformly continuous function defined on $\mathbb Q \cap [0,1]$. Show that there is a unique continuous function $g$ defined on $[0,1]$ so that $$g(x)=f(x) \text{ for every } x \in \mathbb Q \cap [0,1].$$    Not sure what I am supposed to do here. I've seen answers where a sequence was defined to converge to a point $x \in \mathbb Q \cap [0,1]$ but I'm not understanding why we are doing this.  I know that continuity preserves converges of sequences and uniform continuity preserves Cauchy sequences.  Any help on getting started with this exercise?


c++ 11 overloading << (stream insertion) operator

I am trying to overload << operator so that I can use it cout. I do not have any class, the code is divided into test.h/test.cpp and main.cpp files --  first test.h:  #ifndef _TEST_H_ #define _TEST_H_  #include <ostream> #include <vector>  using std::ostream ; using std::vector ;  template <typename T> ostream& operator<< (ostream &os, const vector<T> &vec);  #endif   now test.cpp:  #include <vector> #include <iostream> #include "test.h"  using std::ostream ; using std::cout ; using std::endl ;  using std::vector ;  template <typename T> ostream& operator<< (ostream &os, const vector<T> &vec) {     if(vec.size() > 0) {         os << "[ " << vec[0] << ", " ;         for(int i = 1 ; i < vec.size()-1 ; i++) os << vec[i] << ", ";         os << vec[vec.size()-1] << " ]" ;        }     else         os << "" ;     return os ; }   the main.cpp looks like this --  #include <vector> #include <string> #include <iostream> #include "test.h"  using std::cout ; using std::endl ;  using std::vector ; using std::string ; using std::to_string ;  int main() {    vector<string> vec ;    for(int i = 0 ; i < 10 ; i++)        vec.push_back(to_string(i));    cout << vec << endl ; // printing the vector here    return 0; }   and I am compiling the code like --  g++ -g -Wall -std=c++11 *.cpp -I. -o test   the code is extremely straight forward, nothing complicated, but I am getting this linker error --  /tmp/ccczf9Rq.o: In function `main': /tmp/mdp/main.cpp:18: undefined reference to `std::ostream& operator<< <std::string>(std::ostream&, std::vector<std::string, std::allocator<std::string> > const&)' collect2: error: ld returned 1 exit status   what is going on?


Sorry everyone, I made a mistake in my question itself for my previous posting:   It should have been:  If A∩B∩C=∅, then A∩B=∅,A∩C=∅ or B∩C=∅. Prove or show counterexample.  So false, if I take A={1,2}, B={2,3}, and C={1,3}. then A∩B∩C=∅, but A∩B={2},A∩C={1},B∩C={3}. Thus leads to contradiction. Is this correct?  By the way, can someone explain to me the difference in the prove when the question is or and and.


Reorganizing data submission on Google Sheets

I currently work at a college and we working to make the process of asking student clubs for information easier. We have created a google form for them to submit their member information, but each group has different amounts of members. We need the final list to be one comprehensive list of the student information, but I am not sure how to program Google Sheets to do this. Here is what the results look like:  Here is how we need it to look:  I am not very proficient in programing but I am a quick Learner If someone could set me in the right direction. Here is the form: I have tried using as ArrayFormula and QueryFunction, if someone could explain the correct formula using one of those or anything else, that would be a great help


I am very new to jQuery Validation will someone please correct me in where I am going wrong with the rule I am trying to add.  <script>      $("#form").validate({          focusInvalid: false,     rules: {         ownership: {             required: true         },         vin: {             required: true,             validateVin: true         },         // Same for other fields     },     messages: {         ownership: "This field is required.",         vin: "Invalid VIN",         // Repeat for other fields     } });  // create your custom rule jQuery.validator.addMethod(validateVin(this.value, Number($("#vehicleyear").val()))) {     function validateVin(vin, date) {         var re;         if (date >= 1981) {             re = new RegExp("^[A-HJ-NPR-Z\\d]{8}[\\dX][A-HJ-NPR-Z\\d]{2}\\d{6}$");         } else if (date < 1981) {             re = new RegExp("^[A-Z\\d]{2,17}$");         } else {         }         return vin.match(re);     }, 'Please enter valid VIN.'}); </script>   This is supposed to check two fields, first it checks to see what year is picked vehicleyear then depending on the year it checks an input vin to see if the regEx matches. If it does not match correctly then it should say invalid vin.   When I run mine it does not even use the regEx but I cannot figure out why. Any help with this would be greatly appreciated!


Completely brand new to GIS - Help picking technology from the pros

I'm new to GIS and need to learn for an internship. I've been reading a lot and now need help picking technologies to use... particularly the map serving technologies.  Project requirements -    Free Web Based Service Able to display layers/features over Google Maps/Bing Maps Able to select individual features/layers (Seems like open layers does this?)   e.g. select individual/multiple points/polygons  Works on 64 bit Red Hat Compatible with PHP, PostGIS (seems like they all do)   What I've narrowed it down to so far...  GeoServer - Seems to be the easiest to learn and install. Not sure if I can use Google Maps with it though. Maybe with a WFS? Most questions tagged on this site.  MapServer - Seems tricky to install on 64 bit. (No MapTools FGS yet for 64 bit) 2nd most questions tagged on this site.  MapGuide - Looks cool and has cool features but it looks "youngest" and the documentation is behind so it might be hard to get things going fast. (by the time the internships over.) Least most tagged.


Unable to detect when a USB is plugged/unplugged with inotify

I'm trying to detect when a USB device (Android Device) is plugged into my computer. I know when I plug a device in, this file is changed /sys/kernel/debug/usb/devices and if I do a grep for the UDID of the plugged-in device it will give me the S:  SerialNumber= line.  Now, in theory, I can use inotifywait to check for modifications on the devices file and know that some device is plugged in or plugged out.  But when I do the inotifywait on it, it is not able to detect that the file is modified. And I know for sure that the file is modified, I even checked it's md5sum before and after plugging in a device, they were different. This was the command I was using inotifywait -m /sys/kernel/debug/usb/devices  Does anyone know what is going on?


Question pretty self-explanatory. Should the abbreviation of the Latin term philosophiae doctor be written as PhD (no periods) or Ph.D. (with periods)?


(a)Assume D is bounded and f is uniformly continuous on D. Prove that f(D) bounded. (b)Give an example of a bounded set D and continuous g : D → R such that g(D) is unbounded.  I don't know how to prove bounded function. Please give me some hints. Thank you so much!!!


I can not understand the usage of super term here? Is it a class or function or something else ?  From the code below:  class Child(SomeBaseClass):     def __init__(self):         super(Child, self).__init__()   Can someone please explain this line of code below ?  super(Child, self).__init__()


It looks like this website is copying Mathematica SE questions automatically

A user in the comment section of  noticed that the question also appeared on another website:    Actually, it appears that this website is actively copying posts from Mathematica SO and pasting them there. Is there something that SE can do in such a situation?


What happens to Links when a Question is Migrated?

What happens to links to a question from another post when the question linked is migrated? Will they be broken? Or will they point to the migrated question?  This  about links to deleted questions say that links to deleted question remain broken. Is it the same case for migrated questions too?  What is the Etiquette on linking to SE questions, to avoid broken links?


How can I generate random numbers between 0 and a user input number?

I'm pretty new to Java and this website, and I'm sorry if this question has already been asked  but if it isn't to hard, an answer would be extremely helpful.


babel parameters french and frenchb cause compile error

\documentclass{minimal} %\usepackage[french,english]{babel}  %ERRORs %\usepackage[frenchb,english]{babel}  %ERRORs \usepackage[english]{babel} %===================              END PREAMBLE                ============= \begin{document} Using either french or frenchb as babel parameters produce compilation errors: !Undefined control sequence - abbreviations, disallowuchyph, overfullhboxmark,  tabbingaccents, automaticlettrine.  Having worked with the parameter set [greek,russian,ngerman,frenchb,spanish,italian, portuguese,english] in babel for a number of years without any issues whatsoever,  this comes unexpected.   What brought it on? I wished to experiment with the minted package, loaded it under  my MiKTeX2.9 distribution, then abandoned again as it appeared that minted also  required python-pygments and a Linux distribution rather than my MiKTeX/Windows.  The end result is the error described above, which persists even after deleting  minted from MiKTeX.  Totally puzzled!  \end{document}


Using Inclusion-Exclusion, find the number of ways to write a word of length k over an n-letter alphabet so that the word uses every letter at least once?  how should I approach this?


Using geometry without modifying default margins

I would like to use the package geometry since it's a convenient tool to change margin locally in my book document. The problem is that the simple fact to call it in the preamble modifies the default margins everywhere.  Is it possible to load the package without modifying LaTeX default margins?  Thank you for your help.


Why was my "shopping list" question closed?

My question was closed for being a "shopping list question", even though it was very much related to the topic of the site. Why?


$T:\ell_2\to \ell_2, T(x_1,x_2,\dotsc)=(x_1,x_2/2,x_3/3,\dotsc)$ I need to know whether it is self adjoint and unitary operator given that $x_i\in\mathbb C$  I am not able to do it please tell me how to proceed.  In my earlier post one said eigenvalues of a self adjoint operator must be real, here I tried like say $\lambda$ be an eigenvalue for $T$ then $T(x)=\lambda x$ but then $(x_1,x_2/2,x_3/3,\dotsc)=\lambda(x_1,x_2,x_3,\dotsc)$, I am lost here,