Biblatex: URL-breaking not working in DVI-mode

I'm preparing my bibliography and noticed that biblatex-printbibliography produces Overfull \hbox several times.  Examples (gray lines indicates text margins, red line is the physical page margin):        Why is hyperref line-breaking not working as expected using pdflatex or even latex -> dvipdfm BUT not using latex -> dvips -> ps2pdf?  Also it would be great if someone could point out how I can raise the indentation of the second (and following) lines, as this might look better.  edit: Customized question, as the answer given by lockstep solved the third problem. The second problem seems to be identical to the first.  \documentclass[12pt]{scrbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ps2pdf]{hyperref} %\usepackage[ps2pdf,breaklinks=true]{hyperref} %This doesn't change anything. %\usepackage{breakurl} %That makes no difference either.  \usepackage[a4paper,twoside,showframe]{geometry} %show text margins  \usepackage[style=alphabetic,backend=biber,maxnames=4,minnames=3,maxbibnames=99]{biblatex} \bibliography{biblatex-issue}  \begin{document} \nocite{*}  \printbibliography[heading=subbibliography,type=article,prefixnumbers={A-}] \printbibliography[heading=subbibliography,type=book,prefixnumbers={B-}] \printbibliography[heading=subbibliography,type=online]  \end{document}   And the bib-file:  @online{GLS:datasheet,     title         = "GLS Datasheet",     organization  = "Optoelectronics Research Centre",     howpublished ="Website",     date = "2004-09",     urldate="2013-07-01",     url ="http://www.southampton.XXXX",     address       = "Southampton, United Kingdom" } @book {Lifante:Fundamentals,     title = "Integrated Photonics: Fundamentals",     author = "Lifante, Ginés",     publisher = "J.Wiley",     address = "Chichester",     year = "2003",     type = "text",     isbn = "9780470848685" } @article{Labadie:First_fringes,     author = {Labadie, L. and Mart\'{\i}n, G. and Anheier, N. C. and Arezki, B. and Qiao, H. A. and Bernacki, B. and Kern, P.},     title = {First fringes with an integrated-optics beam combiner at 10},     DOI= "10.1051/0004-6361/201116727",     journal = {A\&A},     year = 2011,     volume = 531,     pages = "A48" }     P.S.: I noticed that the visiting-date of the GLS-datasheet is wrong ;-)


Equivalent of Linux `touch` to create an empty file with PowerShell

Is there an equivalent of  in PowerShell? For instance, in Linux I can create a new empty file by invoking: touch filename  On Windows this is pretty awkward -- usually I just open a new instance of  and save an empty file. So is there a programmatic way in PowerShell to do this? I am not looking to exactly match behaviour of touch, but just to find the simplest possible equivalent for creating empty files.


Compare 2 text cells and show difference in the third cell

If cell A1 = abcd, cell B1 = abcdefg, then what formula to use in order to get the text difference efg?


Black holes are obvious answer to dark matter, why is that wrong?

Primordial Black Holes as dark matter candidate.  I think this is interesting and new, in that there is a window of  (link from Count Iblis) And the first GW event from Ligo is right in that window.    This seems to be back in the news, (Well my latest copy of )  Searching brings up previous  (all behind pay walls.)  There have been some previous question , , .  This seems like a nice solution, I'm mostly looking for other arXiv articles on the subject.  Or reasons why it can't be so.    I edited my title to be a question. Here's a  from one of my references.


How can I proportionally shrink an arrow in Blender 2.9?

I have this object:  And I want to apply an extrude so that it looks like this:  Thanks.


26 light switches flipped by multiples of 1, 2, 3, 4 .... to 26. How many light switches are flipped on?

I am stuck on this math problem.   There are 26 light switches. All the even ones are off and all the odd ones are on. Pere switches all the lights that are multiples of 1, then 2, then 3, until 26. How many light switches remain on?


Can I travel to Dublin, Republic of Ireland with UK Tier 2/Schengen visas with Indian Passport

Can anyone please guide me if I can travel to Dublin for a short trip with UK Tier 2 Visa and an Indian Passport? Additionally I have a valid Schengen Visa stamped on passport as well.


Lemme start this off by saying I haven't done anything yet or handed over any info yet, I'm just trying to see in advance whether it's time to block this lady and move on or keep riding the trail.  Met her online from Seeking Arrangements, and most silly sugar babies do, and after talking and forming a connection for a few days, she says she's ready to set me up with an allowance and make me her loyal sugar baby. Had me delete my SA account and everything to prove my loyalty. And now she's saying she also wants me to work in her "store" and also be her "account manager". Still waiting for details on what this store is and what being her "account manager" entails, but so far she's already told me she wants to keep money in my bank account.  Should I just make a brand new and unrelated bank account for my safety? Or should I decline being the Account manager and keep it at the affection level of things? I was also going to be pushing for payment through something secure like PayPal, but is that even safe? Any and all answers appreciated, thanks so much!  *** I will add: She hasn't asked for my banking info or anything yet, nor do I intend to give her any of it. Just wondering if the "Account Manager" part seems fishy, or working in a store, or if these are normal legitimate things


Get coordinates of object following curve using follow path constraint

I have an empty and a curve with locations both set at the origin (0,0,0) of my scene. The empty precisely follows the curve using a "follow path" constraint with the curve having "Path Animation" checked and key frames set on the timeline. I would like to know the coordinates (global) of the empty as its position is modified by the curve along the timeline. As I scrub the timeline and visually watch the empty follow the curve path, I can't find anything in the properties panels to indicate the transformed coordinates of the empty, its location always reads (0,0,0). How would I find this info to use say in a driver?


I am using ArcGIS Desktop 10 and we have three different servers for accessing concurrent use licenses of ArcView, ArcEditor and ArcInfo. So, whenever I need to switch to other product, I have close currently using Catalog or ArcMap and open ArcGIS Administrator and then change the software product and License manager (Server IP) manually. So, is there any way to change the software product and License manager (Server IP) using script or batch file?


my simple textarea doesn't show a horizontal bar when text overflows. It wraps text for a new line. So how do I remove wordwrap and display horizontal bar when text overflows?


I'm working on a code in C that returns the index of the left most 1. It will also need to return -1 if there are no 1 in the binary number. My code resulted in error message from the terminal:  warning: control reaches end of non-void function [-Wreturn-type]


For a ceiling and floor function, the number is taken to 0 decimal places. Does this process mean that 0.9 recurring inside a floor function would go to 0? Or would the mathematician take 0.9 recurring to be equal to 1, thus making the answer 1?  And if 0.9 recurring does equal 1, does that mean (by definition) that ⌊1⌋ = 0?


I'm writing a document that uses the degree symbol extensively. I know I can use 40$^\circ$ but it's cumbersome so I defined a command \degree for use in text mode. The problem is I can't add a space after using \degree.  How do I add a space after the degree symbol for the second line?  For example:  \newcommand{\degree}{$^\circ$}  Take bearing 40$^\circ$ North for 20 minutes  Take bearing 40\degree North for 20 minutes


Select a row from a generated html table

In this  there's a solution to select and highlight a whole  row from a table using jQuery. I have a callback (see the bottom of my script) when I click a row on the table.  The problem is that my table gets generated from data, so the callback does not work on the generated cells. The callback works on the headers, which are not generated.   How to attach the existing callback to the newly generated  elements?

       Date	       Number

 <button onclick="generateTable()">generateTable</button>


how to write a command to remove a folder, name includes spaces.?

How can I delete a folder with whitespace in its name, but without quoting the folder name? I also need to be prompted to confirm the deletion.  I know how to do it like this: rm -ri /home/user/'my folder'  But how can I do this without quotes? Is there another way?


Can I configure my shell to print STDERR and STDOUT in different colors?

I want to set my terminal up so stderr is printed in a different color than stdout; maybe red. This would make it easier to tell the two apart.  Is there a way to configure this in .bashrc? If not, is this even possible?    Note: This question was merged with  that asked for stderr, stdout and the user input echo to be output in 3 different colours. Answers may be addressing either question.


Prove that all contractible spaces are simply connected.  It's simple to prove that the space is pathwise connected. But, how can I prove that the fundamental group is trivial?


The proof said the following, let $A \in M_{n \times n}(\mathbb{C})$ such that $A^r=I_{n \times n}$ for some $r \in \mathbb{N},r>0$ then $A$ is diagonalizable. Mi attempt is the next, since $A$ is equal to the identity matrix, then we can approach the jordan normal form of the $A$, but, i can´t see, the zise of the jordan blocks. someone who give me a hint, or in her case the proof


I hope u can help me out, I want to make a Ghost with this shader. Would be nice if someone can help


Regex to replace characters between numbers in Python

add = '$4.545,45 is less than $5,454.54.'   This command :  re.sub(r'(?<=\d).(?=\d{1,})',',',add)   results in   '$4,5,5,45 is less than $5,4,4,54.'   but  re.sub(r'(?<=\d).(?=\d{2,})',',',add)   results in   '$4,545,45 is less than $5,454,54.'   Second one is correct, Both means convert the one that has digitbefore then full stop then digit , then why {1,} gives weird result.   I checked  as well but still confused.  Also, is there any other way to solve this as well.


How to increase maxium number of forks in Ubuntu 16.04

I am attempting to spin up 1000x Docker containers via:  nohup docker run --rm --name n-$1-$2 n-v2 bash -c "/root/sw/run.sh $1 $2" 2> ~/logs/log-$1-$2.log &   But after about 500x containers I start getting the following error:  fork: retry: No child processes   The server I am running this on has 48x cores and 192 GB of ram ... I should be able to spin up several thousand of these containers with no problem ... is there a way to increase this limit?  After doing some googling I found that I can check the number of max forks via ulimit -u ... is there a way to change this?  Soren A's answer seems legit, however it doesnt seem like this solved the issue.  I can get to ~12287 threads (checed via cat /sys/fs/cgroup/pids/user.slice/user-1000.slice/pids.current) before I start hitting the same issue ...  both my hard and soft limits in /etc/security/limits.conf are set to 99999999 yet I am still being capped at around 12287


What can I do to increase battery life on my Android device?

What can I do to get better battery life on my Droid? Battery life seems awful. Less than 15 hours or so on normal usage.


I recently came across this problem:  Prove that $\int_{0}^{\frac{\pi}{2}} \sin(\sin y) dy \leq 1$.  However, from my understanding, the expression $\sin(\sin y)$ does not have an indefinite integral (). So, how will we go about solving the above problem using just the Riemann sums?


We are working on a news website, we have a country category as a parent and then a city child sub category.  Which method would be best for SEO?   view/uk, view/uk/london view/country/uk, view/city/london view/uk, view/london   Most of the team went with option 3 since it's easier, but wanted to hear your feedback.


Mysql : expected error because of the coinstraint but it doesnt happen

i have a project about constructing a database of a newspaper in mysql . newspaper_leaflet entity has a column "publisher" that references in the email of the entity of the publisher  and the email of the publisher references in the email of the entity of employees.  i expect when i insert values into newspaper_leaflet in which the email(email is the primary key for the entity of publisher and for the entity of employees) doesnt exist in  publisher entity ,to throw me an error ,altough that doesnt happen , and i dont understand why. i could make a stored procedure to solve this problem ,i guess, but i dont understand how the constraint works if it doesnt protect the table from inserting different emails from that ,that exists in publisher entity.  CREATE TABLE Employee(   email VARCHAR(30),   employment_date DATE,   name VARCHAR(20),   surname VARCHAR(30),   salary FLOAT,   PRIMARY KEY(email) );  CREATE TABLE Publisher(  email VARCHAR(30),   PRIMARY KEY(email),   CONSTRAINT publishertoemployee   FOREIGN KEY (email) REFERENCES Employee (email)   ON DELETE CASCADE   ON UPDATE CASCADE );   CREATE TABLE Leaflet(       leaflet_number INT,       newspaper_name VARCHAR(20),       numberofpages INT Default 30,       newspaper_leaflets INT,       leaflets_notsold INT,       publish_date DATE,       leaflet_publisher VARCHAR(30),       PRIMARY KEY (leaflet_number,newspaper_name),       CONSTRAINT publisherofnp       FOREIGN KEY (leaflet_publisher) REFERENCES Publisher (email),       CONSTRAINT npleafetconnection       FOREIGN KEY (newspaper_name) REFERENCES Newspaper (newspaper_name)       ON DELETE CASCADE       ON UPDATE CASCADE     );   this is my git if you want to see all the db  PS: I am a newbie ,every polite advise will be appreciated.


How can I know what programs some apt-get package contains?

I would like to know what some specific package installs, for example, when installing ncurses, I have found that TAB key expands:  sudo apt-get install ncurses-   to show:  ncurses-base      ncurses-doc       ncurses-hexedit ncurses-bin       ncurses-examples  ncurses-term   How could I know what, say, ncurses-term installs? I am interested mainly in programs, but libraries and any other filetypes could be useful too.  Command-line method, if possible, would be preferred (any others accepted too).


Find the generalized sum of $1+2(2)+3(2)^2+4(2^3)+...+n(2^{n-1})$   I rewrote the above sequence into: $\sum_{k=1}^{n} k(2^{k-1})$. The sequence looks like a hybrid of the summation $\sum_{k=1}^{n} k$ and the geometric series $\sum_{k=1}^{n} 2^{k-1}$. However, I'm blocked. I don't know how to precede in finding the generalized formula, if there is a simple one.


Is it ever appropriate to question a downvote?

According to :     Downvoting should be reserved for extreme cases. It's not meant as a   substitute for communication and editing.   I happen to take this seriously, and always make sure to offer an explanation with every downvote I dish out. By the same token it bothers me quite a bit when I get an anonymous, no-explanation downvote on a question I've carefully crafted. While I think it's more than fair to ask for an explanation, I usually get heat for it- the prevailing attitude seems to be that questioning a downvote is "noise", "pointless", and generally bad form.   I would prefer the system required a comment on every downvote- it would be more constructive than the current "you know what you did" approach. But seeing as how we're relying on ettiquete, is asking for an explanation off limits?  P.S. I'm ready for the rain of ironic downvotes- I'm taking this for the team...


Is there something like that Math.Pow() method but extremely precise as in at least 50 or a hundred digits?

If i try using Math.Pow in a decimal variable i wont be allowed to do so because it needs to be a double. Is there any way i can print extremely precise powers? Extremely as in at least 50 or a hundred digits


What does the twin witch pair in 'Spirited Away' represent?

This is how I interpret the story of Spirited Away:   The bathhouse represents the society. People work with each other towards a common goal. Every night, 8 million gods come to the bathhouse and workers serve them, worship them. In a way they deal with them, do business with them. In Asian cultures, fire, air, earth, water, food, etc. are represented as gods, so bathhouse very accurately represents a working society. The 'spell' breaks if they stop working. Yubaba is the culture. She manages the bathhouse. She is a tyrant and rules over people by taking their real names and giving them new names. Chihiro was given a new name by Yubaba, 'Sen', which means 'one thousand', similar to how a person is given a roll number or employee number in an organisation. That number becomes her new identity. Haku has forgotten his real name. Similar to Islamic terrorists, he's become a slave to the tyrannical culture. He'll do anything the culture tells him to do. The baby is the belief system of the society. Yubaba is  protective of him.   One thing I can't understand is, who is Zeniba, Yubaba's twin sister.   Yubaba and Zeniba are two parts of a whole. Yubaba keeps the baby locked in a room, afraid that he might get sick because of germs. Zeniba turned the baby into a mouse so that he might have a little freedom. Zeniba lives in the swamp bottom. There used to be trains running between the bathhouse and the swamp bottom in old days, but the return trains from the swamp bottom have stopped. Now it's a one-way road towards the swamp bottom. The tickets to the swamp bottom Kamaji gave to Chihiro had been with him for 40 years. 'Zeni' has  meanings in Japanese, 'money' and 'ancient'. 'ba' means 'old lady'. The meaning of Zeniba which seems to fit the story is 'ancient old lady'. Yubaba wanted to steal a seal from Zeniba, which was supposedly very precious.   So what do Yubaba and Zeniba represent in this story? It looks like they might represent:   culture and nature tyranny and individuality life and death interdependence and self reliance   but none of these seem to elegently fit all the points I've mentioned above.


being vs. having been (vs. having been being)

Which of the following sentences is/are grammatically correct? Of the correct ones: what is the difference in meaning? Are there other (more correct or more precise) ways to express the same meaning?   Being 19 weeks outside the womb my baby has learned to grab things. Having been 19 weeks outside the womb my baby has learned to grab things. Having been being 19 weeks outside the womb my baby has learned to grab things.     The answers to  don't help me because:     The sentences in the linked question do not include a period of time and mentioning periods of time changes the tense usage. The sentences in the linked question imply causal relationship whereas my sentences imply temporal relationship.


blender animation not updating in render mode but working in texture mode

I got above blend file from tf3dm , but I find that when I try to change the animation to video I am getting a blank screen.    how to render it such that I could see the animation as a video.


Windows 10 1803 Build 17134.48 does not load NVIDIA Device Drivers

Windows 10 ver 1083 build 17134.48 does not recognize either the GTX-560 or GT-630 graphics adapters. Installation of any driver version for these cards fails. Microsoft tech support unable to fix at level 1 support. Level 2 support will contact in 2 weeks. I have no confidence. NVIDIA customer support is as useful as Microsoft's.  On startup the manufacturer's banner flashes on-screen. When attempting to load the appropriate driver, both from Device Manager and the NVIDIA installation program the loading process terminates with an uninformitave "an error has occurred". The problem is with this specific build of Windows.  These drivers have worked in previous versions of Windows 10 I have tried 2 different cards.  I have updated all my drivers (wasted $40). Rolling back to a previous version is not realistic since this build took over 12 hours to complete.


What is cool about generics, why use them?

I thought I'd offer this softball to whomever would like to hit it out of the park. What are generics, what are the advantages of generics, why, where, how should I use them? Please keep it fairly basic. Thanks.


How can a piece of A4 paper be folded in exactly three equal parts?

This is something that always annoys me when putting an A4 letter in a oblong envelope: one has to estimate where to put the creases when folding the letter. I normally start from the bottom and on eye estimate where to fold. Then I turn the letter over and fold bottom to top. Most of the time ending up with three different areas. There must be a way to do this exactly, without using any tools (ruler, etc.).


Java listener must inherit from java.util.EventListener - why?

In the javadoc it says that EventListener is      "A tagging interface that all event listener interfaces must extend."   Why is that? What's the significance of making a custom listener implement EventListner? Is there any special handling for EventListner somewhere?


How do you lengthen a redstone button signal in Minecraft?

I made a little redstone circuit to open a door (using pistons) with a button, but I was wondering how I could make the door stay open  a little longer. I don't want to use a lever as I want it to close automatically after.  I thought of running parallel redstone delayers, with gradual delays, but I wanted to know if there is something more compact?


I previously asked  regarding 50W RGB multi chips and 50W warm white drivers. Here is , a 50W RGB chip draws much lower amperage and compatible drivers usually max out at 650 milliamperes.  Most of my question was kindly answered in last post, but with the above driver, could I run my 50W RGB chip? Would devices such as "buck" and "step down" enable me to do this?


Using pre-captured handshake to decrypt 802.11 frames

networking newbie here. I am running some experiments on IoT devices for which I need to capture the handshakes of the devices on my network in order to decrypt the frames I obtain through monitor mode. So far, I have been capturing the handshakes and manually inspecting some of the packets for analysis through Wireshark / Tshark. I am trying to automate the process by doing the following:  Deauthenticate device using aireplay-ng. Capture handshake using airodump-ng. Start capturing packets using tshark.  I was wondering if it is possible to use the already captured handshake (step 2) to decrypt the frames instead of having to capture the handshake in Tshark itself. I also welcome suggestions if there's a better way of doing this. Thanks in advance.


What is the difference between the quantum states $\left|01\right> + \left|10\right>$ and $\left|01\right> - \left|10\right>$?

I am finding it difficult to understand the four states of two entangled qubits, $$\left|00\right>$$ $$\left|01\right> + \left|10\right>$$ $$\left|01\right> - \left|10\right>$$ $$\left|11\right>$$   states that two qubits have these four states, and calls the $\left|01\right> + \left|10\right>$ the $\left|T_0\right>$ state, and $\left|01\right> - \left|10\right>$ the singlet state, $\left|S\right>$. However, what does the difference between the minus and plus signify? I understand that in both states the qubits have the property of being opposite to one another, but that's it.  It would be greatly appreciated if someone could help me understand this difference!    Before I mark an answer as correct, the main understanding I now have, is that, although when squared having an identical probability, the states differ when transformations are applied to it? Is this basically like this image, taken from ?     Note; I think my question differs from . The OP of that post already understands the presence and meaning of the minus sign, but rather asks why the minus sign is associated with $S=0$, which is a different question. Yet this question has been marked as duplicate, without any argument why it is still the same. I would like to see an argument against.


T-SQL Concat 2 Rows with same Id from Join

I'm currently working on a query in T-SQL on SQL Server 2012. I gather several Titles from a table via a join from another table. My tables look like this:  Table Project:   ProjectId | -----------+ 1          |    2          |    3          |      Table ProjectResources  ResourceId |    Label      | ProjectId -----------+---------------+----------- 2          |   Resource X  |  1  3          |   Resource Y  |  1 4          |   Resource Z  |  2 5          |   Resource A  |  2 6          |   Resource X  |  3   the desired output in my temporary table should look like this:  ProjectId  |   Label                  | -----------+--------------------------+ 1          |   Resource X, Resource Y | 2          |   Resource Z, Resource A | 3          |   Resource X             |   I want to concat all Labels with the same ProjectId. My current query looks like this:  CREATE TABLE #tmpProjects (     ProjectId INT     , Label VARCHAR(1000) )  SELECT [P].ProjectId, [PR].Label      INTO #tmpProjects FROM [MySchema].[ProjectResources] [PR] INNER JOIN dbo.Project [P] ON [P].ProjectId= [PR].ProjectId   Unfortunatly my query creates a new row for each Resouce Label. Do you know how to create a new temp table with "concatinated" merged rows for each resource holding the same ProjectId?  Thanks a lot!


Is there any way to debug bash script without using echo and logging?  I'm talking about using breakpoints and stuff like that.


Switch to Target Display Mode without keyboard

Here's my setup:  MacBook --> Thunderbolt Display --> iMac 27"  The MacBook is the primary computer I want to use;  the iMac is the (external) display.  This all works just fine.  The problem is, when I disconnect and then reconnect the MacBook, I have to manually put the iMac in Target Display Mode using the keyboard.  This means I need to keep a keyboard attached to the iMac, and it clutters up my desk!  Is there any way to switch the iMac into TDM without using the keyboard?  Maybe by logging in remotely?  I found a few similar questions, but... no answers!      Anyone?


Can the target of Wrathful Smite close their eyes/find cover and make their WIS check without disadvantage?

The Paladin spell Wrathful Smite imposes the frightened condition on its target if they fail a Wisdom saving throw.  Since the frightened condition states "within line of sight," does this mean if the target of the spell is able to get the caster out of their line of sight, they make their Wisdom check without disadvantage imposed by frightened condition?  For example:   Can the target close their eyes, make their check, and then reopen them without disadvantage? Can the target run behind an object, make their check, and then reopen and continue moving without disadvantage on their check?


Can you built a settlement in the middle of someone else's road, or vice versa?

In Catan, can player one build a road around a hex, and player two build a settlement between two of player one's road sections while being connected to his own roads from the third side? If so, does this affect Longest Road?  What about the opposite case: if two players have roads coming up to a corner where one of them already has a settlement, can the other one continue building from the other side?


How exactly does one enable Family Sharing on Steam?

Steam's documentation about Family Sharing ( and ) confusing, sometimes with respect to what happens on the borrower's side and what happens on the lender's side. Besides, it has generally incomplete instructions. The Steam client's settings page for Family Sharing is similarly confusing, and does not clearly separate lender's actions and borrower's actions.  For the sake of completeness, assume there are two people, Alice and Bob, with steam usernames Alice and Bob respectively. Alice's computer is called Alpha and Bob's computer is called Beta. Alice wants to share her library with Bob. That is, Alice wants Bob to be able to play games in Alice's library, on Beta, with Bob being signed into Bob's account on Beta. I hope that is clear enough.  How exactly do Alice and Bob go about doing this? Please avoid phrases like "your account", say "Alice's account" or "Bob's account" instead.  And for each instruction, please be clear about whether it is happening on Alpha (Alice's computer) or Beta (Bob's computer).


How to return/exchange a purchase made in a Dubai airport terminal?

I had purchased a watch from SWATCH store in Dubai Terminal 2 a couple of weeks ago. I have a flight from Terminal 3 later this week. How can I get from Terminal 3 to Terminal 2 to return/exchange it at the SWATCH store, and get back to Terminal 3 for my onward flight? How long will it take me to go back and forth?


In response to the users that flagged this as a potential duplicate, it is not. I have a SSH hardening solution, which I got off Canonical's ubuntu tutorials and is commonly repeated, but it isn't working, as I outlined below.  On my Ubuntu 18.04 box I've attempted to setup two-factor authentication for SSH per , however when I attempt to login via SSH it fails. I'm prompted for my username as normal, then my password. No matter what it returns "Access denied" when I've entered my password. If I comment out   auth required pam_google_authenticator.so   from /etc/pam.d/sshd then SSH works again, but obviously without two-factor. What is stopping my password from being accepted?


Dualbooting Ubuntu on second drive (MBR)?

I have been trying to do this setup right but it just doesn't work as I would wish to. First thing, I'm legacy, bios and have MBR so number of max partitions is 4. I already have 4 so it displays the 5th one I created for ubuntu as "unusable". So my goal is to take a partition from the second drive (Disc D) and install Ubuntu there. I tried the MBR to GPT conversion, seems like my laptop doesn't support it, which is weird since it's not that old of a laptop (Dell Inspiron 5559) Any help?


How do I modify a file without updating the modification time?

Sometimes I want to make a minor edit to a text file (e.g., fix a typo), but I want to keep its modification time unchanged. (Motivation: modtime is useful for listing directories in chronological order, for telling when a file's content was last substantively updated, etc. I don't want a trivial edit to obliterate this information.)  This is certainly possible: Unix allows me to manually set the modtime to anything I want (this does set the ctime to the present, which is fine by me). E.g., with touch -t <time>, or with the utimes(2) system call. This question is about a simple way to edit a file and then set the modification time to exactly what it was before editing. I am mainly interested in solutions that are editor-agnostic, i.e., if emacs has a save-file-no-update-mtime command, that's interesting but not what I'm looking for.


Does your Alma Mater and U.S. News Rankings Really Affect Future Job Opportunities?

I'm in the process of trying to decide on which graduate program to attend.  I am pursuing a Master's level degree in Computer Science in hopes of furthering my web development career.  I would love to be able to teach web development/programming at a community college someday after getting a few more years of industry experience (teaching requires at least a Master's degree).  Previously I taught secondary science before transitioning into web development.  I've been accepted to the following programs:  Boston University - Master's in Computer Information Systems / Web Application Development  (U.S. News ranked #51 nationally)  Brandeis University - Master's of Software Engineering (U.S. News ranked #31 nationally)  University of Bridgeport - Master's of Computer Science (not ranked nationally)  I keep going back and forth in regards to which program I should choose.  University of Bridgeport seems to have a good curriculum and it looks like it will be cheaper (I may get a scholarship), but I'm concerned that it's not viewed as a "top" school.  I would be happy to pay for a more expensive school if it helped provide greater opportunities in the future.  Do you find that going to a "better" school has affected your resume to the point that you may have more teaching opportunities after school?  I realize that a certain school won't earn me the actual position, but having a highly regarded school on my resume MAY lead me to getting more interviews.  Any insights are greatly appreciated.  Thanks and have a good day.


Why is can number be divided by 3(ofc I mean we get an integer result) if its sum of digits can be divided by 3? Please post an easy proof since Im in grade 9:) I know there are already proofs but can someone show me a proof for the level of a grade 9 student?


Working with tiledata of different sizes

I recently bought an asset for my game, basically a tilesheet, with seperate pngs as well, but where as previously I've created tilemaps out of identically sized tiles these are all in varying sizes but scaled to fit in with say 128 x 128 tiles or 256 x 256 tiles.  so one of the main blocks might be 128 x 128 but some other elements of them may be slightly oddly sized such as  173 x 214, this obviously wont tile well as it is, so I was wondering how I should approach this? do i need a tile editor that can support layers with different dimensioned tiles? or do i need to find some way of chopping, padding and aligning these images into the same 128x128 tiles?  thanks


How long should I wait to reapply after refusal of Visa in UK?

My mom & I applied for visit visa to attend my sisters wedding. She got hers approved but mine was denied. She needs to be accompanied bec she is old now. The consul said that I lack some documents & my stay in UK doesn't match my mom stay there. I plan to stay in UK for a month or less but mom wants to stay in UK for 1-3 months. I am planning to re-apply, should I also put that I will stay for 1-3 months like my mom? And I have the documents that they needed. I just got my visa refusal letter & passport yesterday. How long should I wait to re-apply? Will it take 3-6 months to re-apply? Thanks


What is the point of uniq -u and what does it do?

uniq seems to do something different than uniq -u, even though the description for both is "only unique lines". What's the difference here, what do they do?


Dual boot UEFI Windows 7 and Ubuntu 12.04 (both 64 bits). W7 entry doesn't appear in GRUB

After trying to install both OS during 2 days, I'm confused and getting mad... I have SSD 128 GB and HDD 500 GB both empty. My laptop is Asus K55VM. BIOS support UEFI.  What I have done:   Install new SSD (Samsung 830 128GB) Use GParted on liveCD to create new table of partitions (GPT) and create 3 partitions (in the SSD) for different purposes:   Partition 1: 80 GB (w7);  Partition 2: 30 GB (Ubuntu 12.04 -Just / -);  Partition 3: 10 GB unused (for future extesion of the other partitions)  Install Windows 7 (with UEFI) in Partition 1. This create:   /dev/sda1 -> 100 MB for System (UEFI boot I guess) - FAT32 /dev/sda2 -> 100 MB aprox. for MSR /dev/sda3 -> 79.800 MB aprox. for Windows7 data    In this point everything works fine. I have W7. Now I install Ubuntu 12.04 amd64 (with UEFI) as follows:   Install / in Partition 2 -> /dev/sda4 30 GB ext4, and in the hdd I install /home and swap. I select bootloader in /dev/sda1 (where it's supposed to be the UEFI boot). I install updates and reboot.   Problem: Now just appears grub menu with Ubuntu entries and not Windows 7.  Alternative solution found: When I turn on laptop, before loading GRUB I press ESC key and appear BIOS boot, so I can select to boot the Windows partition, Ubuntu partition, DVD, USB, etc... but I think is not the best way to boot different OS.  I've tried: sudo update-grub2 with no success.  What can I do??


How do i programmatically change a field's 'Widget' property under 'Manage Form Display' & a fields 'Format' property under Manage Display?  Manage Form Display:  I'd want to programmatically change the Birthdate field's 'widget' property to 'Textfield' to make it visible on forms when my module is installed/enabled.    Manage Display:  I'd want to programmatically change the Birthdate field's 'format' property to 'Plain Text' to make it visible on forms when my module is installed/enabled.


Command requires file, avoid creating temporary file

<() doesn't seem to do what I expect.  This command requires a text file (it's JLinkExe, the text file contains commands for JLinkExe to run. But that shouldn't matter).  JLinkExe -CommanderScript <scriptfile>   I need to create the files dynamically, since their content depend on what I'm currently trying to achieve.  My current solution is to create a temporary file, fill it with content with printf, then call the JLinkExe command with that temporary file.  I have a feeling that this should be achievable with <(), but I don't succeed.   This doesn't work:  JLinkExe -CommanderScript <(printf "ShowEmuList\nexit\n")   I was expecting <() to create a temporary file descriptor, with the content of the file being the string. It works with cat, but JLinkExe complains the it cannot read the command file.  Am I wrong, or is it just that JLinkExe is stupid (it doesn't take stdin)?


Should I write 'organization' or 'organisation'?

I can not choose what to write for my project about being organised... Should I write: organization or organisation Is it just a spelling difference between American English and British English? (I use British English in my school.) When I search up and try to get an answer, it will say, "British English uses 's' more than 'z'. But sometimes, they use 'z'." Can you please help? Thank you.


The basis of Quantum Mechanics is contained in the postulates which tell us how to describe quantum systems (below I disconsider possibly degenerate spectra just for simplicity):   To describe a quantum system there is a Hilbert Space $\mathcal{H}$ whose elements represent the possible states of the system. For each physical quantity associated to a system there is one hermitian operator defined on $\mathcal{H}$. We call these operators observables. The only possible values to be measured of an observable are the elements of its spectrum. If $A$ is an observable with discrete spectrum $\sigma(A)=\{a_i : i \in \Bbb N\}$, then the probability of measuring $a_i$ on the state $|\psi\rangle$ is $P(a_i)=|\langle \varphi_i|\psi\rangle|^2$, where $|\varphi_i\rangle$ is the eigenstate corresponding to the eigenvalue $a_i$. Analogously, if $A$ is an observable with continuous spectrum $\sigma(A)$ then the probability density for the values of $A$ on the state $|\psi\rangle$ is $\rho(x)=|\langle x|\psi \rangle|^2$ where $x\in \sigma(A)$ and $|x\rangle$ is the generalized eigenvector corresponding to $x$. When one performs a measurement of the observable $A$ the state colapses to the eigenstate corresponding to the eigenvalue measured. The time evolution is governed by the requirement that the observable corresponding to the energy is the generator of time translations. That is, the time evolution equation is $i\hbar \frac{d|\psi\rangle}{dt}=H|\psi\rangle$.   Everything else follows from this. If we want to describe also spin we include Pauli's postulates and again, everything works just fine.  Now, apart from Quantum Mechanics there is Quantum Field Theory. I'm just starting to study it and there is something I still didn't get: Quantum Field Theory is just one application of Quantum Mechanics or it modifies Quantum Mechanics?  In other words, is QFT just one application of these postulates I've stated, or it modifies these postulates somehow? And if it does, how does QFT modifies Quantum Mechanics and its postulates?


I'm trying to solve this exercise! $i + i^2 + i^3 + \ldots + i^n \quad    (n > 4)$ I did the calculation, i^1 = i i^2 = − 1 i^3 = i^2 * i = -i i^4 = i^2 * i^2 = 1 i^5 = i, so basically, every n + 4, the answer is i But what is next? How can I write it in the form a + ib?


How do I combine these texture maps correctly in a material?

I'm working on a model for VRChat, and the uploader in Unity requests as few meshes and materials as possible. This wouldn't be a problem normally but I went with an outside tool to pull multiple models into blender and the materials for them are separated into their respective texture maps. I would appreciate assistance in combining these maps in blender for export into Unity and beyond. I have the diffuse, normal, emissive, and specular maps and I've been trying to use the node view with materials to get them to mix correctly into the final material.


I'm having problems with katoolin.  After using "view  categories" to download all tools available there,  I get this error: E: Unable to locate package webshag  I'm running 14.04


Imagine a piece of paper and you fold it in half and then fold it again. that's what I am trying to do and cant. If I use bones the influence of the bones won't allow me to because I need 2 bones to control the same area. If I try shape keys it just deforms the mesh if I try to make it in multiple steps or does the wrong animation because it draws the shortest path instead of rotating from a point like a piece of paper would.


Partitions not showing on windows neither in ubuntu

I have installed Ubuntu 14.04 along with the existing windows 8 ....  I have made three partitions of / , /boot and swap, but seems as it is not visible on windows neither on Ubuntu. What can do for visibility of these drives?


"direct" quotations and "entire paragraph" quotations

I need two types of citations which I have not figured out how to define:  (see highlighted in grey)     1) As Owens stated (2008, p.97), ‘the value of...’      2) Simone de Beauvoir (1972, p.365) examined her own past and wrote   rather gloomily:  The past is not a peaceful landscape lying there behind me, a country in which I can stroll wherever I please, and will gradually show me all its secret hills and dates. As I was moving forward, so it was crumbling.    I am confused about how to use \begin{quotation} or similar machineries (quote|quotation|verse|etc.) to define quotes/quotations, etc.  I use natbib (this might be irrelevant).  I would normally define a quote as \begin{quote}...\end{quote} but I find the lack of association between the quoted text and the actual bibliographic reference strange.  I don't know how to format a simple, in-text, quotation other than `blah' for single smart quotes and ``blah'' for double smart quotes.   Again, the fact that I am putting a "quote object" inside some flowing text and I am not associating it, even in a hidden way, with the bibliography database sounds strange to me.  I would find this more natural: \shortquote[BibTeX:Reference][singlesmart]{Aha!}, or something to that effect. Any help would be greatly appreciated.


Order of Homomorphic image of an element of a group divides the order of that element.

I am considering the one-to-one homomorphism $\phi:G \rightarrow H$. If I take some element $g$ of $G$ and take its order as $n$ then $n$ is the smallest positive integer such that $x^n=e$. Now I consider the homomorphic image $\phi(g)$ of $g$ and take its order to be $m$ then $(\phi(g))^m=e'$ where $e'$ is the identity element of $H$. Since $\phi$ is a homomorphism, it could be written as $(\phi(g^m))=e'=\phi(e)$ as $\phi$ is $1-1$ as well. Thus gives us $g^m=e$. Now this means that order of $g$ i.e. $n$ divides $m$ which is order of its homomorphic image. But in books, it is given the other way round i.e. order of homomorphic image of an element divides the order of element. So where am I going wrong here? Please suggest.


Calculating square roots using the recurrence $x_{n+1} = \frac12 \left(x_n + \frac2{x_n}\right)$

Let $x_1 = 2$, and define $$x_{n+1} = \frac{1}{2} \left(x_n + \frac{2}{x_n}\right).$$ Show that $x_n^2$ is always greater than or equal to $2$, and then use this to prove that $x_n − x_{n+1} ≥ 0$. Conclude that $\lim x_n = \sqrt2$.   My question:  So I know how to do this problem but I don't know how to prove that $x_n >0$ for all $n\in \mathbb{N}$.


I am trying to build a flow chart using TikZ. I would like the horizontal and vertical spacing to be different. Thus, I am using node distance=2.5cm and 1cm. However, the second distance (1cm) is ignored and the 2.5 cm are used for the horizontal and vertical node distances.   In addition I tried to vary the second value, but still all nodes stay 2.5cm apart.  MWE:  \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,shapes,arrows,positioning} \usetikzlibrary{calc}  \usepackage[]{xcolor} \usetikzlibrary{positioning} \begin{document}  \definecolor{tmp}{RGB}{173, 198, 16} \tikzstyle{block} = [rectangle, draw, fill=tmp!80,      text width=5em, text centered,  minimum height=4em] \begin{figure} \small \begin{tikzpicture}[node distance=2.5cm and 1cm]     \node [block] (A) {A};     \node [block,right of=A] (B) {B};     \node [block,right of=B] (C) {C};     \node [block,right of=C] (D) {D};     \node [block,right of=D] (E) {E};     \node [block,below of=E] (F) {F};     \node [block,left of=F] (G) {G};     \node [block,left of=G] (H) {H};     \node [block,below of=A] (I) {I};     \node [block,below of=I] (J) {J};     \node [block,right of=J] (K) {K};     \node [block,below of=H] (L) {L};     \node [block,below of=G] (M) {M};  \end{tikzpicture} \end{figure} \end{document}   I searched the internet and I believe that I am using the node distance=2.5cm and 1cm correctly. But why doesn't it work?


How does long-distance space travel work in the MCU?

In Guardians of the Galaxy vol. 2, we see long-distance space travel. It involves piloting your ship into some sort of "jump point" that opens up in space, taking the shape of a honeycomb-like structure with a single hex missing.  The way it's describe, these points are fixed in space: early in the movie, the Guardians have to out-run an enemy fleet to reach the one they need; later on, we see them fly through a very long series of them in sequence. It's also made clear that doing too many of these "jumps" in a row has consequences for the passengers.  The process seems to be similar to, say, the Mass Effect relay setup, mixed with a bit of Star Wars hyperspace travel.  Is this the first time we have seen long-distance space travel in the MCU? Is there anything from the source material that explains how this works from a logistical standpoint? If there's any information on the "science" behind it, that would also be helpful.


Do I need Austrian and German transit visa if I have Bosnian tourist visa?

I'm Egyptian and I have Bosnian tourist visa, if I travel by Austrian airlines Cairo-Vienna-Sarajevo and back by Lufthansa Sarajevo-Munich-Cairo do I need transit or any kind of visa for Vienna and Munich?


I have read that Timatic is widely used by many Airlines to check what document requirements passengers have to fulfil to board international flights.  The  on Timatic web is broken but I remember having seen it working before but I was not able to understand any of the information it provided.  Can a passenger him/herself go through a Timatic request somewhere on web (for free) to see those requirements beforehand?


Why am I getting these spikes after Solidifed an SVG file?

So anytime I import an SVG and then apply the solidify tool, it will give me these weird spikes. How can I fix this? Here’s footage of what I mean:


How to change how the frame title of a beamer slide presents the frame break number?

Using the allowframebreaksoption on a Beamer frame to split it up with the \framebreak command, the title gets an automatic counter.   This is a very handy feature, but I have a few concerns about the default appearance of the counter:   It gets typeset in roman numbers. With sans serif fonts usually used in presentations, this means the title on the first slide looks very odd. It gets appended to the title and typeset as part of the title, while it would often be more appropriate to typeset it as a subscript and/or aligned on right (if the title is aligned on the left) I'd prefer the number to appear only from the second frame Sometimes it is better to replace the counter with a simpler  "(continued)" mark or similar   Are there general options to control this behavior, or is it totally in the hand of how the theme typesets the frame title?  In particular, how can I switch to arabic numbers and make it a subscript? Avoiding the counter on the first slide would also be great.


I am reading "Existenstialism is a humanism", the text of the famous conference by Sartre in which he explains his own version of existentialism. I think is full of logical inconsistencies, but maybe it's just because I don't understand it or I don't know enough about existentialism. Anyway, my question is about a specific passage. After having "demonstrated" that there is no way one can derive an ethics outside of Man (God does not exist and reason is insufficient), he asks himself according to what principle a person should behave and he says:     "For I declare that freedom, in respect of concrete circumstances, can   have no other end and aim but itself; and when once a man has seen   that values depend upon himself, in that state of forsakenness he can   will only one thing, and that is freedom as the foundation of all   values. That does not mean that he wills it in the abstract: it simply   means that the actions of men of good faith have, as their ultimate   significance, the quest of freedom itself as such."   So it seems Sartre says that when deciding a course of action, people will always choose "freedom," (and also, elsewhere, that "freedom" is always a good thing). That is for him the only principle, the only moral that governs or should (because we can do wrong judgments about what is freedom) govern our action.  My questions are:  1) do I understand correctly Sartre's thinking?  2) He says: a) freedom is absolute; b) the values that man chooses are also absolute because no God or reason can tell him what to do, c) therefore man will choose freedom. Is there any logic in this statement? If I replace freedom with X where X is "pleasure" or "justice" or "pain" or "zero temperature", wouldn't I "demonstrate" by this logic that man will choose X?  3) assuming what I said makes any sense, how can existentialism ever find a rule of moral conduct? and if it does, what is it and how can be demonstrated? and if it cannot, why is or has been important at all as a philosophy?  Thanks!


I was having windows 8 and ubuntu 12.04 on dual boot. Somehow my windows 8 was crashed so i reinstalled windows but now i'm not able to access ubuntu as well the data on it.I checked disk management in windows, it shows the partition in which ubuntu was installed as primary partition but shows as 100% free and also does not show any drive name. So I have lost my all important files.Can anybody help me in recovering those files...???


Blender models adding extra faces in Element 3d

I modeled a logo in Blender and everything is clean.     When I export an OBJ and import it into Element 3d, a few extra edges have found their way into the model.    Any ideas on why this is happening? I have a feeling it's some setting within Element 3d but it could very well be a blender to OBJ issue.


How can I change all of the contents inside of directory to what the default file ownership and permissions are?

I have moved contents of another drive into my home directory, but the permissions are not what they should be. First, I changed ownership by entering:    ~$ sudo chown -R USERME /home/USERHOME/   Which I think works now.  But now, I wanted to simply change all of the files and sub-directories into the default permissions, with files being read+write, and directories being r+w+x. I have not found a recursive way of handling this. I have run:    ~$ sudo chmod 755 -R /home/USERHOME/   To make everything available to me. However, files appear as executables, and this is not what I want. There are plenty more sub-directories and files so I am looking for a simple recursive solution.  Basically, I think I am looking for a recursive way to reapply the default umask parameter to a whole folder with (I think) chmod.    Update:  I have posted a solution thanks to @SkyDan and


I would like to know how I can change the fontsize of the captions associated with my subfigures. I want the caption of the subfigures to be smaller than that of the figure. \begin{figure}[H]  \centering  \begin{subfigure}[b]{0.3\textwidth}      \centering      \includegraphics[width=\textwidth]{Figures/B2.png}      \caption{Bandstructuur $2$ natrium atomen.}      \label{fig:B2}  \end{subfigure}  \hfill  \begin{subfigure}[b]{0.3\textwidth}      \centering      \includegraphics[width=\textwidth]{Figures/B3.png}      \caption{Bandstructuur $3$ natrium atomen.}      \label{fig:B3}  \end{subfigure}  \hfill  \begin{subfigure}[b]{0.3\textwidth}      \centering      \includegraphics[width=\textwidth]{Figures/BN.png}      \caption[10pt]{Bandstructuur $N_A$ natrium atomen in kristalstructuur.}      \label{fig:BN}  \end{subfigure}     \caption{Vorming bandstructuur van natrium (Na) atomen. Breedte van banden neemt toe naarmate de hoeveelheid atomen toeneemt zodat er uiteindelijk een bandstructuur ontstaat.}     \label{fig:B23N} \end{figure}


Here's the program.  #include <iostream> int main (int argc, char * argv[]) {     int a[4] = {10, 11, 18, 32};     int x = 2[a];     int y = a[2];     std::cout << "x = " << x << '\n';     std::cout << "y = " << y << '\n';     return 0; }   The output is as follows.  x = 18 y = 18   How is "2[a]" legal syntax? What is happening in this program to make this work? Even  says 2[a] is a syntax error.


Can someone help me giving a qualitative answer to this problem in General Relativity:  Imagine you are on earth with two perfectly synchronized clock's. If you hold one clock in your hand and throw the other one in the air and catch it back after a certain time interval, would the clock's still give the same time? Explain.  Thank you!


I found out that it wasn't such a good idea to keep tracking the binary. The size of our repository is growing at a much faster rate than I would like. Is it possible to purge this file from git?  No one even needs to know it existed.


Soql Query on custom objects using junction object

i have three custom objects.          Bank_Account__c(Parent) --->Bank_transaction__c(child)  Bank_Account__c(Parent) --->Bank_statement__c(child)  Bank_transaction__c fields are date__c, credit__c, debit__c  Bank_statement__c fields are  start_date__c, end_date__c  I just want to write a single query to get the records of Bank_transaction__c which date__c is in between start_date__c and end_date__c of bank_statement__c object. How can i achieve this


how to write web services CRUD operations for perticular Drupal content types

I have Installed following modules;          Enabled these modules and created one services view for one content type(content type name: employees).  Then opened structure->services, created an endpoint and enabled view service(employee).  Service accessing Url Ex:     Now data is accessing well.  But how can I do web services CRUD operations for this content type?


Setting up SFTP to log in to server with Filezilla

I have an ec2 instance on AWS which already installed a few Wordpress-es in it.  I want to set things up to let more people handle their own projects, with me also being able to go into the server using terminal if I still want to.  I have been following tutorials such as  and a few others.  I figured all of them just teach users how to sftp into their own home folder, also the steps keep saying addUser but some users already existed and removing them might cause some issue.  How can I give existing users the permission to use SFTP for Wordpress projects?  Let's say all my Wordpress projects are already under /var/www/ which has already been set up with www-data:www-data.  Really new with setting things like this.  Thanks in advance for any help.


New UI encourages askers to confirm or dispute duplicate votes

, the banner shown to askers whose questions have attracted at least one duplicate close vote has a couple of new options:    If the author clicks the first button, they're shown a confirmation that clarifies the results of this action somewhat:    If they click "Ok", the question is instantly closed:    If, instead, they edit, they'll be offered this guidance:    ...and once an edit is submitted the choice will go away until another duplicate close-vote is cast.   In just the past day, 80 questions  network-wide have been closed in response to confirmation from the asker; edits by askers are up significantly as well.   We'll be monitoring the results to see if further adjustments are needed. A few open questions surrounding this change include:    Perhaps if the number of votes is below some threshold?   I'm posting this separately from  to allow room for discussion and .


How to create SHA512 password hashes on command line

In Linux I can create a SHA1 password hash using sha1pass mypassword. Is there a similar command line tool which lets me create sha512 hashes? Same question for Bcrypt and PBKDF2.


Can I get a scholarship from graduate school in physics if my GPA below 3?

I'm fresh physics graduated student from University of Jordan -Middle East-, My GPA is below 3, so Can I get a scholarship from graduate school in physics at -US- if my GPA below 3, If yes what is the Admission Requirements for it ?!


How to Set Firefox 4 to only store History for a set period of time, i.e. one day?

I want to setup Firefox 4 to only store my history for 1 day (or some other set period of time), but I can't seem to find an option to do that in the options dialog, all I can see is "Remember History", "Never Remember History" and "Custom History Settings". "Custom History Settings" only lets me select what to keep, not for how long.  Is there anyway I can do this?


How to change the color of the button in the UINavigationBar? For example, I use UINavigationBar with light gray background, and I need the buttons to be dark gray (almost black). It will be cool to have one solution for all button types, i.e. back button, button with image, button with text  thanks


What happens to lighting when an object the Light cantrip is cast on is broken or destroyed?

The description of the  cantrip says:     You touch one object that is no larger than 10 feet in any dimension.   Until the spell ends, the object sheds bright light in a 20-foot   radius and dim light for an additional 20 feet. The light can be   colored as you like. Completely covering the object with something   opaque blocks the light. The spell ends if you cast it again or   dismiss it as an action.   What happens when that object is broken into two or more pieces? Do the pieces carry part (or the whole) of the intensity of the 20/20 light? And if each PC gets one piece, wouldn't that effectively create many light sources at the cost of one cantrip (1 action)?    What if the object is destroyed (e.g. piece of paper that's burned)? Would that effectively terminate the spell?


I tried looking for this but I honestly could not find anything for my particular issue.  I am designing a poster in LaTeX and I sometimes use custom list items. The thing is, as these get wider, they take up space to the left instead of the right as I would like them to.   Minimal working example:  \documentclass{article} \usepackage[utf8]{inputenc}  \begin{document}  \begin{enumerate}     \item This is a normal item     \item[Blablablabla]{This is a large item}  \end{enumerate}  \end{document}


Why is it safe to use 15 A receptacles on a 20 A circuit?

OK, the one answer I got was way off target, and another commenter couldn't figure out what I was asking, so I'm restating the question...  Are 15A 3-prong grounded outlets actually rated to 20A, allowing them to be used on 20A circuits? And if so, why, when the outlet can never be asked to supply more than 15A by anything that would be plugged into it?  More info:   had a comment that 15A outlets were actually rated to 20A. However, by design, there is nothing that will plug into a 15A outlet that will draw more than 15A. An appliance that draws more than 15 amps would have a "T-blade" plug that wouldn't go into a standard 15A outlet.   In addition, outlets are always wired in parallel, meaning that a 15A outlet would never have to transmit the amperage draw of a "downstream" outlet; you never "daisy-chain" outlets by connecting hot to neutral, for a number of reasons.  So, there is AFAIK no situation in which a 15A receptacle would ever have to handle more than 15A, even if installed on a 12AWG, 20A-breaker circuit.  If all the above is true, why would a 15A receptacle even have to be rated to 20A?


Is their any proof that space is filled with virtual particles or can they only be emitted by atomic nuclei and electrons?

Is their any evidence for non zero energy in space? The Casimir effect for two plates separated by a small distance suggests that there is little energy in space.


Is "please find enclosed the attachment" grammatical?

In my office everyone uses "Please find enclosed the attachment" in emails.   I can't digest the "the" between "enclosed" and "attachment". Is the sentence grammatical?


Is logicalising a valid word, if the meaning was to make something supposedly 'illogical', logical?


I know that in $ZFC$ the continuum hypothesis (CH) is equivalent to the statement: "a subset $A\subset\mathbb R$ is either finite, infinite countable or $A$ has the same cardinality of $\mathbb R$, i.e. $|A|=|\mathbb R|$". We can call this statement $CH(\mathbb R)$, but what's going on if we work in $ZF$? Clearly $CH\Rightarrow CH(\mathbb R)$, but does the other implication hold? What I want to know is if there is a model of $ZF$ in which $CH(\mathbb R)$ is true but $CH$ not.


When light is emitted (or received) one photon at a time, what is the duration of each pulse? Is it related to the wavelength? Is it possible to create a laser pulse (or a radio wave) shorter than the wavelength (period of oscillations)?


Question: For the layman, what does it mean for data (say $n$ samples covering $m$ variables) to be identically distributed, and how is it practically achieved when conducting machine learning?  So let's say each sample measures X and Y predictors, and I want to predict outcome Z.   To satisfy IID, should I be aiming for $X$ and $Y$ to look the same when I plot their estimated density functions? Or does it mean something else entirely?  I have read about "normalizing" your sample data by subtracting the mean and dividing by the standard deviation. Is the purpose of this to fulfill IID?   The context of my question is machine learning, specifically XGBoost for a regression problem. It is performing in a mediocre to poor fashion and I want to understand why. Perhaps my data is not IID. I thought it didn't matter for tree-based models, but I am obviously missing something.


I am very new to ubuntu. I have Installed today only. I tried to update software by typing comnmand in Terminal as  pranay@Hom-lnx:~$ sudo apt-get update && sudo apt-get upgrade  [sudo] password for pranay:    after giving password I am getting this Error  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   I tried to search on forum but could not find helpful link..Please provide some suggestion


I have the following string: "aaaabbbb"  How can I get the last four characters and store them in a string using Python?


I am superadmin of a server and like to change password of an existing user . How can I do that ?  I tried   usermod -p 'new-password' john   but it didn't worked ?


After downloading, do I have to install it? If so, how?

My wife had Ubuntu 10.10 on her lap top and I have downloaded 12.04.2 to the desktop.  Do I have to do anything else or does it automatically install itself ?


Given that $f:\mathbb{R}\rightarrow\mathbb{R}$ is a differentiable function such $\lim_{x\rightarrow \infty}f'(x) =1$ , Prove that f is unbounded

Given that $f: \mathbb{R}\rightarrow\mathbb{R}$ is a differentiable function such that$\lim_{x\rightarrow \infty} f'(x) =1$, Prove that f is unbounded.  Here is the proof I am thinking of. Please see if there is some mistake, If there is please help me with a better proof


I am trying to download Ubuntu to put it on my daughter's MacBook (just installed new HDD, so no operating system on it)  But from my Windows PC all I can see is the Windows Ubuntu. Can I use that, or is there a specific place I can go to get the Ubuntu download for a Mac please?


chevalleys theorem reduces to showing image of whole scheme is constructible

it turns out i can't do any of the exercises in section 7.4 of ravi vakil :(  exercise 7.4.M. is:  Show that to prove Chevalley’s Theorem (that the image of constructibl sets under finite type morphism of Noetherian schemes is constructible) , it suffices to prove that if $\pi: X \to Y$ is a finite type morphism of Noetherian schemes, the image of π is constructible.  my meager observations:  if the image of any such morphism is constructible, then the image of any open set is constructible.  if we knew the complement of a set with constructible image  has constructible image we would be done. (but this may be stronger than chevalleys theorem and so is possibly untrue.)  any help is appreciated.   Edit: Thanks to those below.  At this point in the text there are many concepts (closed subschemes etc) invoked in the proofs (here and in the duplicate post) that have not been developed by Vakil. in general this section seems a bit sketchier than the neighboring ones, so this may be unavoidable.


I want to show all the empty directories under my home directory, using shell script, can you help me find the code? (without using find's -empty)


Does the final scene of A New Hope take place on Yavin IV?

Does the medal ceremony scene at the end of A New Hope take place on Yavin IV?  Shouldn't the Rebels be evacuating instead of handing out medals? Even though they destroyed the death star the rest of the empire surely knows they are there.


Pygame not exiting even after receiving keypress

So I'm trying to exit the pygame using a function but its not working. It's definitely entering the function block but for some reason is not quitting after the keypress. Pls help. import pygame from pygame import mixer from random import * from math import *  pygame.init()  screen = pygame.display.set_mode((1280, 720)) pygame.display.set_caption("The Rake Game") font = pygame.font.Font('freesansbold.ttf',32)  running = True  class Paths:     def __init__(self):         self.game_state = 'intro'      def intro(self):         screen.fill((120,120,120))          for event in pygame.event.get():             if event.type == pygame.QUIT:                 running = False          pygame.display.update()      def state_manager(self):         if self.game_state == 'intro':             self.intro()  a = Paths()  while running:     a.state_manager()


Install any application as administrator

I want to run IBALauncher app as administrator. After downloading the tar.gz file what should I do?... I am using ubuntu 16.04 Thanku


I was making a map that will also go to the nether but it was in the lava so I dug up and I lost my portal, i'm near it but don't know where it is and also I didn't do spawn point.


Can we use a regex with a common jquery query?

I would like to affect all my elements containing a class almost similar, i could iterate and use the iterator to do the job, but i am wondering if we could use a regex in this case:  $('.player').removeClass('player-1 player-2 player-3'); //player-n   Can the jQuery removeClass (and globaly the jquery methods which affects the DOM) treat a regex here ?  I am trying this:  $('.player').removeClass('/player-[0-9]+/');   The regex match i have tested it , but it doesn't work on my DOM, does jQuery support the regex in this case?


How to publish a table in Geoserver 2.4.x, so that only specific users can access it

I want to publish some tables in the geoserver 2.4.x so that it is restricted to some particular users.Right now, I have tables that is public to all users. I have a web app, through which I am accessing the geoserver and downloading the table data.But it will be user specific.Eg: If I login to the web app, the app will only display the tables that is accessible to me. The user authentication is done too. Only, how to make the tables user specific, so that the getcapabilities query return the tables specific to that user.Right now, this query:   returns the xml file containing all the tables. Kindly help me out ?  Thanks, Sayan


What is the proper method to give credits in lecture material

To prepare the lecture material. I use the book, my own slides, but I also take a few slides from MIT or other top universities open courses.  What is the best way to give credit?  I must provide source information on each slide?  Or Is it better to enlist all the resources/citations in the first/final slide?


Does the Axiom schema of Replacement imply the Axiom of Infinity?

The axiom of infinity says that the set of natural numbers exists, while the axiom of replacement says that if an object (a member of a set) exists, then all definable mappings of that object yield objects (e.g if 0 is an object, then 0+1 is also an object).Doesn't this mean that the axiom of infinity is redundant since one can recursively prove the existence of the set of natural numbers using the successor function of the Peano axioms?


Terminal only shows up as a black window

I'm running Ubuntu 15.10 on a Lenovo Ideapad, and whenever I try to open a terminal window, only a black box appears, and the menus have thick black borders and the nofification box is also black.


Is it correct to place import not on top of file?

I found in Flask  next code:  from flask import Flask app = Flask(__name__)  import yourapplication.views   Is it's correct to place import not on file header?


I don't know about anyone else, but I have a reasonable list of favourites now, and it can be rather difficult to find the relevant ones at any given time. Sometimes, I have a specific one in mind, others I just want to see all favourites relating to a specific topic. It would be nice if there were a way to organise my favourites by tag, or OP, or possibly just search them.  How can we improve the favourites feature?  Please post your ideas on how we might improve the favourites feature of the Stack Exchange sites. Try to keep each answer to one idea so that the votes reflect the popularity of a single idea.


NullPointerException when calling method from class that creates object from another class

I'm working on a Java based project that incorporates 3 different classes, each calling items out of the previous.  Everything in this appears to be working except line 22 from Wedding.java. Person.class - builds a person object with a few attributes import java.util.Scanner; import java.time.LocalDate;  public class Person {     public String firstName = "";     protected String lastName = "";     protected LocalDate birthDate = LocalDate.now();          Scanner sc = new Scanner(System.in);          protected void setFirstName(String PersonInstance) {         System.out.println("Enter Person" + PersonInstance + " First Name >>> ");         this.firstName = sc.nextLine();     }     protected void setLastName(String PersonInstance) {         System.out.println("Enter Person" + PersonInstance + " Last Name >>> ");         this.lastName = sc.nextLine();     }     protected void setBirthDate(String PersonInstance) {         System.out.println("Enter Person" + PersonInstance + " Date of Birth (yyyy-mm-dd) >>> ");         this.birthDate = LocalDate.parse(sc.nextLine());              }          public String getFirstName() {         return this.getFirstName();     }          public String getLastName() {         return this.getLastName();     }          public LocalDate getBirthDate() {         return this.birthDate;     }          public Person(String PersonInstance) {         this.setFirstName(PersonInstance);         this.setLastName(PersonInstance);         this.setBirthDate(PersonInstance);     }      public static void main(String[] args) {         // TODO Auto-generated method stub              }  }//end  Couple.java - creates two Person objects import blah.Person;  public class Couple { public Person person1; public Person person2;          public Couple() {         Person person1 = new Person("1");         Person person2 = new Person("2");          }     public static void main(String[] args) {         // TODO Auto-generated method stub     }  }//end  And finally Wedding.java -- Sets a couple of class attributes/variables and creates a single Couple object. import java.time.LocalDate; import java.util.Scanner; import blah.Couple; public class Wedding {     protected String Location;     protected LocalDate weddingDate = LocalDate.now();     protected Couple newCouple ;          public Wedding() {         Scanner sc = new Scanner(System.in);         System.out.println("Enter Wedding Date (yyyy-mm-dd) >>> ");         this.weddingDate = LocalDate.parse(sc.nextLine());         System.out.println("Enter Location for Wedding >>> ");         this.Location = sc.nextLine();     }          public void getWeddingDetails() {         System.out.println("Location is : " + this.Location);         System.out.println("Wedding date is : " + this.weddingDate);         System.out.println(this.newCouple.person1.getFirstName());     }      public static void main(String[] args) {         // TODO Auto-generated method stub     }  } //end  A NPE is returned when running this.newCouple.person1.getFirstName() (line 22 of Wedding.java).  All other portions of this are working, so far.  The Wedding object is created, and class variables set.  The prompts from the Person objects are presented, and information stored.  Just trying to retrieve information from the Person object from the Wedding class seems to cause an issue.


iam trying to make a currency converter app

I am trying to make a simple currency converter and and everything is OK... except when I leave the amount null (the app crashes). What should I do in this situation? Double tot; double amount = Double.parseDouble(ed1.getText().toString()); if (sp1.getSelectedItem() != null && sp1.getSelectedItem().toString() == "USD" && sp2.getSelectedItem().toString() == "TRY") {     tot = amount * 7.66429;     Toast.makeText(getApplicationContext(), tot.toString(), Toast.LENGTH_LONG).show(); } else if (sp1.getSelectedItem().toString() == "USD" && sp2.getSelectedItem().toString() == "EURO") {     tot = amount * 0.859542;     Toast.makeText(getApplicationContext(), tot.toString(), Toast.LENGTH_LONG).show(); } else if (sp1.getSelectedItem().toString() == "USD" && sp2.getSelectedItem().toString() == "GBP") {     tot = amount * 0.784503;     Toast.makeText(getApplicationContext(), tot.toString(), Toast.LENGTH_LONG).show(); } else if (sp1.getSelectedItem().toString() == "USD" && sp2.getSelectedItem().toString() == "CAD") {     tot = amount * 1.33866;     Toast.makeText(getApplicationContext(), tot.toString(), Toast.LENGTH_LONG).show(); } else if (sp1.getSelectedItem().toString() == "USD" && sp2.getSelectedItem().toString() == "AED") {     tot = amount * 3.67250;     Toast.makeText(getApplicationContext(), tot.toString(), Toast.LENGTH_LONG).show(); } else if (sp1.getSelectedItem().toString() == "USD" && sp2.getSelectedItem().toString() == "JOD") {     tot = amount * 0.709000;     Toast.makeText(getApplicationContext(), tot.toString(), Toast.LENGTH_LONG).show(); }


What are the GCC and clang versions available in Ubuntu 18.04?

In the new Ubuntu 18.04:   What's the default GCC version (with which the binaries were built)? What GCC versions are available as separate packages (and what minor version is installed if I install GCC 4, 5, 6, 7 or 8 respectively)? What Clang versions are available as separate packages (and what minor version is installed if I install clang 4 or 5?)   I can't find this in any release notes (and I don't want to have to install just to check.)


Circular reference in bash profile. How to sign in?

I was editing my .bash_profile and .bash_login, and I accidentally added a circular reference so that two files were including each other. After closing the session and trying to sign in again, the circular reference hangs the process. Fortunately, this was on WSL so I can edit the file using Windows, and I also had a separate session still open so I didn't even need to. However, hypothetically if this was not the case, how would one sign in to Linux without loading the profile files, or how could one sign in and remove the circular reference?


Suddenlly 64-bit option disapeared from virtualbox and vmware. How to fix it?

I have a 64-bit OS, windows 10. The hardware is a ThinkCentre 64-bits. Until yesterday everything was ok. I was working in some vm-64bits (some in vmWare, some in VirtualBox).  The windows did an update during this night and after that I can not open the 64-bits vms. I dont have 32-bits vms, but I think 32-bits process was not affected. I still can create it.  Virtualization and Vt-d are enabled in the bios and Hyper-V are unchecked.  For sure something happened after that update. How to bring back the 64-bits feature to vbox and vmware?


why \subparagraph in text does not appear in Table of Content and no numbering?

\section{section} \subsection{subsection} \subsubsection{subsubsection} \paragraph{paragraph} \subparagraph{subparagraph}   Outcome:     Why in table of content or text as  1.1.1.1.1 subparagraph   I am using document class:  \documentclass[12pt,oneside]{book}


How can I scale my desktop icons in Ubuntu 18.04? With Ubuntu 16.04 I could scale my icons under the screen size tab in Settings. With Ubuntu 18.04 I cannot do that.


When something gets wet, it usually appears darker. This can be observed with soil, sand, cloth, paper, concrete, bricks...  What is the reason for this? How does water soaking into the material change its optical properties?


Nautilus sorts the Name-column "mysteriously". How can I change the collating sequence?

What I describe here is not about a problem with my Nautilus. (it is the default behavour)  I understand why Nautilus sorts the Name-column (ascending) so that "6 cats" occuring before "10 dogs"... Its collation sequence is treating a group of numeric-digits as a single number-value and not as individual characters.    That's fine... I can see some value in it, but personally I find it to be confusing,    And I have no idea why Nautilus completely ignores many leading non-alpha-numeric characters.. ie.!@$%^_:"- etc. as typed via as standard US keyboard.. By "ignore", I mean "---two camels" sorts to be immediately above "two camels", as if the "---" didn't exist... (strange !?).    How can I change the default collating sequence?...     gconf-editor /apps/nautilus/list_view shows some sort options, but does not offer a choice of collation option.... I hope there is an way to do this (otherwise Windows Explorer is one-up on this issue :( Windows allows you to choose the conventional collation sequence (via the registry)


Can ambient humidity significantly affect the texture of pastry doughs?

There was some discussion on  about whether ambient humidity could cause a normally good shortcrust recipe to come out dry and crumbly.  Is this possible? How strong of an effect might be expected from going from "average" humidity to extremely dry? Would it affect all types of pastry dough similarly?


Let $A$ be an infinite set and $$A^A=\{f | f:A\to A\,\,\, \text{is a function}\}.$$ Is there any natural bijection between $A^A$ and $P(A)$?


Does anybody know if there is a way to evaluate a string containing boolean-logic at runtime? My logic, can only contain three operators and parenthesis (AND, OR, NOT). I can even make the string look like this: true && false && (true || !true)  I don't have the bandwidth to build a full-on parser... Any ideas?  PS: I saw some answers that pointed to the use of an API but I don't have access to use the Toolkit API in the environment this will get deployed.


Freeing up memory (RAM) on Ubuntu 8.04 Server

I run an Ubuntu 8.04 on a Slicehost virtual server with some lightweight server apps - apache22, svnserve, mysql, and proftpd. The only serious service limitation is RAM - 256MB is what I'm paying for.  I noticed that if I let the system run for a few days/weeks, the amount of free RAM slowly declines, and paging file is being used soon after. For example, upon rebooting I may have 60% of RAM free, next day it may be at 55%, etc.               total       used       free     shared    buffers     cached Mem:           256        114        141          0          3         50 -/+ buffers/cache:         61        194 Swap:          511          0        511   How would I prevent the amount of available memory to decline?  Edit: Here's my ps -aux listing the top memory consumers. I left out all the system processes. I can see that apache and mysql top the memory usage.       USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND     root      1369  0.0  0.3  16844   952 ?        S<s  00:10   0:00 /sbin/udevd --daemon     syslog    2110  0.0  0.2  12288   748 ?        Ss   00:10   0:00 /sbin/syslogd -u syslog     root      2131  0.0  0.2   8128   588 ?        S    00:10   0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg     klog      2133  0.0  0.4   4516  1304 ?        Ss   00:10   0:00 /sbin/klogd -P /var/run/klogd/kmsg     root      2154  0.0  0.4  50904  1152 ?        Ss   00:10   0:00 /usr/sbin/sshd     root      2211  0.0  0.2   3932   592 ?        S    00:10   0:00 /bin/sh /usr/bin/mysqld_safe     mysql     2253  0.0  8.8 161940 23252 ?        Sl   00:10   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mys     root      2254  0.0  0.2   3836   604 ?        S    00:10   0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld     proftpd   2340  0.0  0.5  63000  1504 ?        Ss   00:10   0:00 proftpd: (accepting connections)     root      2356  0.0  0.3  18608   964 ?        Ss   00:10   0:00 /usr/sbin/cron     root      2384  0.0  0.3  83360   892 ?        Ss   00:10   0:00 svnserve -d -r /etc/svn/svn-rep-01     root      2387  0.0  3.5 194628  9220 ?        Ss   00:10   0:00 /usr/sbin/apache2 -k start     root      2409  0.0  0.2   3852   576 tty1     Ss+  00:10   0:00 /sbin/getty 38400 tty1     root      2410  0.0  0.5  15252  1444 ?        Sl   00:10   0:00 /usr/lib/ruby/gems/1.8/gems/passenger-2.0.2/ext/apache2/ApplicationPoolServerExecutable 0 /us     www-data  2411  0.0  3.4 195880  9100 ?        S    00:10   0:00 /usr/sbin/apache2 -k start     www-data  2412  0.0  7.3 205532 19400 ?        S    00:10   0:00 /usr/sbin/apache2 -k start     www-data  2413  0.0  3.3 195620  8824 ?        S    00:10   0:00 /usr/sbin/apache2 -k start     www-data  2414  0.0  3.4 195880  9080 ?        S    00:10   0:00 /usr/sbin/apache2 -k start     www-data  2415  0.0  3.4 195888  9056 ?        S    00:10   0:00 /usr/sbin/apache2 -k start     root      2416  0.0  2.4  43448  6512 ?        Sl   00:10   0:00 Passenger spawn server     www-data  2437  0.0  7.7 208116 20248 ?        S    00:48   0:00 /usr/sbin/apache2 -k start     www-data  2519  0.0  3.3 195644  8820 ?        S    02:12   0:00 /usr/sbin/apache2 -k start     root      3026  0.0  1.1  67960  2892 ?        Ss   20:53   0:00 sshd: dv [priv]     dv        3028  0.0  0.6  67960  1700 ?        S    20:53   0:00 sshd: dv@pts/0     dv        3029  0.1  0.8  19392  2304 pts/0    Ss   20:53   0:00 -bash     dv        3041  0.0  0.4  15056  1092 pts/0    R+   20:54   0:00 ps -aux   Overall, I'd like to thank everyone for their thoughtful answers and it was really hard to choose the best because each has some useful information in it.  I'll look into moving to lighthttpd or nginx, or at least reduce apache's MaxClients parameter.


Dump all DB with Bash Script in separate files

I would like to easily dump all my DB without typing same stuff many times ... (I'm a dev and I have a lot of DB on my local machine )  Any Simple scripts that comes to your mind ?


How can I show that $n! \leqslant \left(\frac{n+1}{2}\right)^n$?

Show that $$n! \leqslant \left(\frac{n+1}{2}\right)^n \quad \hbox{for all } n \in \mathbb{N}$$  I know that it can be done by induction but I always find line where I do not know what to do next.


Sorry for possibly duplicate post, I am interested in self-studying functional analysis. To give you a hint of my background; I've taken a class on real analysis (where we covered first half of Baby Rudin) and also a class on Fourier analysis (where we used Stein's Fourier analysis together with parts of his real analysis book for measure theory and to prove a.e. type of results).  Given this background, which book would you recommend me to attack? Thanks!


Which one is grammatically correct sentence?   According to the Bible it is meek and humble who shall inherit the earth. According to the Bible it is the meek and humble who shall inherit the earth.


How can Google Chrome be installed on Ubuntu Touch?

I want to experiment with the  (ARC) in Google Chrome in order to see if Android applications can run easily in Ubuntu Touch. In order to do this, I first need to install Google Chrome. Given that this is merely an experiment and that I am not concerned with having to reflash my device (Aquaris E4.5), how can this be done?  At a quick guess, could Chrome be installed on Ubuntu Touch in the following way?  wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo su -c 'DEBIAN_FRONTEND=noninteractive dpkg -i google-chrome-stable_current_amd64.deb' rm google-chrome-stable_current_amd64.deb   Following this, an XMir launcher would likely be needed to run Chrome. How could this be written?    EDIT: Please note that I'm talking about desktop Chrome running on Ubuntu Touch, not mobile Chrome.


Why is $e^{\pi \sqrt{163}}$ almost an integer?

The fact that Ramanujan's Constant $e^{\pi \sqrt{163}}$ is almost an integer ($262 537 412 640 768 743.99999999999925...$) doesn't seem to be a coincidence, but has to do with the $163$ appearing in it. Can you explain why it's almost-but-not-quite an integer in layman's terms (I'm not a mathematician)?


I used to use personal WIKIs to organize personal info, but due to increasingly strong browser security control and poor mobile support, I switched to Mac/iOS Notes and find it very comfortable to work with, except for one quirk:  I can't find a way to cross-reference info like WIKI does.  Is there a workaround?


How to get ID of current element selected by javascript

How to get current element of list by javascript. The element clicked by three dots. Please help. From the Sharepoint list called "Stuff".  And after click on three dots i want to get a ID of element. Please help.


Architectural history of NYC for a five-year-old

We're heading to NYC next weekend, for my five-year-old's birthday present (his request).  He's a very technically-minded child, and recently has loved asking questions about the history of buildings ("What is the tallest building", "What is the oldest building", "What was the tallest building before the Empire State Building", etc.).  He also likes to learn about materials and methods used to build things.    In Chicago, where we're from, there are excellent architectural tours that are led by boat down the river (which bisects the main part of the city).  Is a boat tour also the most effective way to see the NYC skyline and learn in detail about the history behind it?  I'd also welcome specific recommendations, to the extent that's on topic around here, for short to moderate length tours (probably not more than 1.5-2 hours).  For comparison, we did the Big Bus tour in London, and he tolerated that well enough, but by the end of it (90 minutes I think) was getting a bit bored.  For comparison, in Chicago the  is excellent, and the tour guide gives a lot of specific information that was news to me even after ten years' residence in the city and nearby suburbs, such as insights into the construction of specific buildings, the spats between different architects, and why certain buildings are constructed how they are.  Several competing companies offer similar tours.  While there are other methods to learn about the history of Chicago architecture, boat tours are the most efficient and primary method.  What I'm asking is whether this is also true in NYC or if walking/bus tours are better (or something else).


I have this code :  \documentclass[french]{article} \usepackage{pgfgantt} \usepackage{babel}  \begin{document}  \begin{figure}[htbp] \begin{ganttchart}[y unit title=0.4cm, y unit chart=0.5cm, vgrid,hgrid,  title label anchor/.style={below=-1.6ex}, title left shift=.05, title right shift=-.05, title height=1, bar/.style={fill=blue!50}, incomplete/.style={fill=white}, progress label text={}, bar height=0.7, group right shift=0, group top shift=.6, group height=.3]{1}{21} \gantttitle{2011}{21} \\ \gantttitlelist{1,...,21}{1} \\ \ganttbar{TA1}{1}{3} \\ \ganttbar{TA2}{1}{2} \\ \ganttbar{TA3}{4}{7} \\ \ganttbar{TA4}{8}{8} \\ \ganttbar{TA5}{8}{13} \\ \ganttbar{TA6}{14}{16} \\ \ganttbar{TA7}{14}{21} \\ \ganttbar{TA8}{17}{18}   \ganttlink{elem1}{elem2} % <- Line that doesn't work  \end{ganttchart} \end{figure}  \end{document}   It work fine except when i want to add liaison between task, with the line \ganttlink{elem1}{elem2} that produce this error:  E: /Users/samuelriedo/Desktop/untitled.tex:21 Package tikz Error: + or - expected \ganttlink{elem1}{elem2} E: /Users/samuelriedo/Desktop/untitled.tex:21 Package tikz Error: Giving up on this path. Did you forget a semicolon? \ganttlink{elem1}{elem2}   Does anyone have an idea why it doesn't work to draw arrows between nodes ?


how to deal with multiple titles and multiple documents?

I am compiling my dissertation which is composed with several separate papers (with independent LaTeX code).  I have a title for my dissertation and want to insert my individual papers with their own titles (different authors, etc., for each paper).  Someone suggested use  \begin{document} \include{paper1} \include{paper2} \end{document}   where paper1 has the codes as   \begin{document}  \end{document}   But it doesn't solve my problem.  For each individual latex code for the individual paper, I have title code outside of the \begin{document}.  Any suggestion about how to insert the entire LaTeX code of a academic paper, A, into another academic paper, B, while remain everything not changed for A.


Archimedes' principle: innacurate terminology?

All around I read that buoyancy is numerically equal to the weight of fluid displaced by a submerged object, the volume of displaced fluid being equal to that of the submerged portion . However, thinking about it brought me to believe that such wording is not very good.  Consider the 2D example below of a box being sunk into water.    In this example, it is clear that the buoyancy is equal to the weight of 4 cm² of water, which is the volume of the submerged box. However, closer inspection reveals that this does not match the displaced volume.    I concluded that the common definition works well when the body of fluid is large compared to the object, such that its surface level does not change significantly upon submersion. In this case, displaced volume matches volume of submerged portion. However, for the more general case (including example above), it would be more accurate to forgo displaced volume and hang on to volume of submerged portion only.  Am I missing something here? Is the original, ubiquitous wording indeed accurate?


Imagine situation  int? customerId = null; // works fine int? customerId = 5; // also fine int? customerId = someCondition ? 5 : null; // There is no implicit conversion between int and null int? customerId = someCondition ? 5 : (int?)null; // now is ok   How is this possible? Is it the language specification? For me the obvious would be implicit conversion. What do you think?


I can't install Wine 1.6 on my 14.04 Ubuntu install. I get the following error:  The following packages have unmet dependencies:  wine1.6 : Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu4) but it is not installable E: Unable to correct problems, you have held broken packages.


I'm practicing proving that various sets are (or aren't) Dedekind cuts.  I am struggling with showing the property that there is no largest element.  For example, for a simple Dedekind cut:  $A=\{{a\in\mathbb{Q}:a^2<2}$ or ${a<0}\}$  what is a good general method for showing that: if ${a\in A}$, there is a ${b}$ in ${A}$ with ${a<b}$


How can I configure my server so that my domain points to it?

I have bought a domain name (without hosting), and at home I have a static ip address on Ubuntu server 11.04. How can I redirect users to my web server at home? What configuration needs to be done?


Show the integral : $\int_{0}^{\infty}\ln^2\Big(e^{-x}+1\Big)dx=\frac{\zeta(3)}{4}$

I want to show that : $$\int_{0}^{\infty}\ln^2\Big(e^{-x}+1\Big)dx=\frac{\zeta(3)}{4}$$ I have tried substitution like $y=e^{-x}$ it gives : $$\int_{0}^{1}\frac{\ln^2(y+1)}{y}dy=\frac{\zeta(3)}{4}$$ Next I was working on the power series : $$\ln^2(1 + x) = \Big(\sum_{k=1}^{\infty}\frac{(-1)^kx^k}{k}\Big)^2 ,\quad|x|<1$$ And now I'm stuck because I don't know how to make zeta appear. Thanks in advance .


PHP/CSS Footer Won't stay at the bottom of page if there is no text on page

So, I have a little problem with my website. I have a footer which won't stay at the bottom of the page if I happen to have little or no text on the page, but If i have enough info/text to cover a page or more, then it stays at the bottom nicely!  I've tried many things but can't find the right parameters. Can anyone help please?  Here is the code to it, I've stripped the unnecessary code of my page and left with the main bits that has to do with the footer etc..    Just to let you guys know, I've tried this:  { position: relative; bottom: 0; }   Although that fixes the problem for the footer when there is no text but if there is more text then it sort of stays in the middle (fixed)?  Thanks again.


Upon opening TeXstudio for Mac I get en error. It seems that the system cannot find my TeX of LaTeX distribution.    Do notice i have MacTex installed and have it working with LyX.  I am a newbie and I have no clue how I resolve this issue. I hope some blessed soul can help me out!


How can I install OpenJDK on Ubuntu 16.04?

Since I upgraded to the latest version of Ubuntu, I cannot install the Java OpenJDK package needed to compile Android custom ROMs. When I run sudo apt-get install openjdk-7-jdk, the following error appears:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  openjdk-7-jdk :  Depends: openjdk-7-jre (= 7u51-2.4.6-1ubuntu4) E: Unable to correct  problems, you have held broken packages.   How do I fix this problem?


Reason for not shrinking the bias (intercept) term in regression

For a linear model $y=\beta_0+x\beta+\varepsilon$, the shrinkage term is always $P(\beta) $.   What is the reason that we do not shrink the bias (intercept) term $\beta_0$? Should we shrink the bias term in the neural network models?


When I attempt to perform certain actions within ubuntu I am asked to authenticate with a root user, but ubuntu doesn't give me options for which root user, it just specifies it as the user that set up my machine. I was wondering how to go about changing which user it selects to run the authentication?  For instance, if I want to install software from the Ubuntu Software Center I am asked to authenticate with user X and I would like to change that to be user Y globally.  I am also aware that I can just run things with sudo from the command line, but I don't want to have to do that.  I'm using ubuntu 14.04. And user Y is in the sudoers file and as of now user X is not.


"I hope there is no error in my essay" vs "I hope there are no errors in my essay?"

Are both Okay? I guess the problem is I could have made more than one error, but I could have made only one error


How to properly compare a string to another string

I have a problem with below if condition.  if(!(type=="image/jpeg" || type=="image/png" || type=="image/gif")){     throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Only jpeg, png or gif", "")); }   When type is image/jpeg, it still throws ValidatorException. When I hardcode type directly to image/jpeg, it works. So I hope that you help me, because I really don't know where is problem.


Pinning the Dock to a Corner in Yosemite/El Capitan

In Mavericks and prior, one could use the following commands to pin the dock to either the top or bottom corner of the screen, if the dock was placed left/right, or to the left/right corners if the dock was placed at the bottom, by using the following commands:  defaults write com.apple.dock pinning -string start   or  defaults write com.apple.dock pinning -string end   This is followed by killall Dock to restart the Dock. Now, in Yosemite, it appears that this option has been removed. Is there no way to get back this functionality in Yosemite?  Update: This is still not possible in El Capitan. Very disappointed in Apple.