I (and my interlocutors) have often experienced confusion when communicating with others regarding "last [day-of-week]", "this [day-of-week]" and "next [day-of-week]"  In my mind, what is logical is that "last" means the last one (the one in the most recent past); "this" means the next one coming up; and "next" is the second one from now.  "This" to me denotes the future - it points forward in time.  For example, today is Tuesday, April 14th. If I say, "last Saturday" I mean April 11th; if I say, "this Saturday" I mean April 18th; and if I say "next Saturday" I mean April 25th - although I admit it gets a little ambiguous when "this" saturday is several days away. But I would definitely be speaking of the 22nd if I were to say, "next Wednesday" (not the 15th, for that is tomorrow, and to say "next" would sound/seem bizarre to me.  Note/Addendum: I would not say "last Monday" for yesterday, because in that case I simply say that ("yesterday"); similary, I would not call tomorrow "this Wednesday" for a similar reason - I refer to that simply as "tomorrow".  I find, though, that many people consider "this Monday" to have been yesterday (the 13th), not "this coming" Monday (which is how I see it).  I do recognize some logic in this alternate viewpoint provided everybody were to agree that the "this" refers to a current week, beginning on Sunday, or Monday, depending on which day is considered a week's beginning point (and so, the differing standard in regards to that question is a matter of contention/confusion in and of itself).  Another way of expressing it, I guess, would be to say that I always consider myself as being in a sliding scale of time, rather than in a particular calendar week, one which stays fixed for an entire week. In other words, today I am in a week that runs from Tuesday the 14th through Monday the 20th. Tomorrow I will be in a week that runs from Wednesday the 15th  through Tuesday 21st, etc. Others apparently always view themselves as being somewhere in a week that runs either from Sunday-Saturday, or Monday-Sunday.  Am I definitely wrong in my take on "last, this, and next" or is it just "different strokes for different folks"? I'm curious how many others (if any?) view time from "my" perspective?  The bottom line is, I always find it beneficial to mention specific dates. So, instead of saying just "this Monday" I say, "this Monday, the 20th"


How to log error details when using using try/catch for dynamic SQL backup commands

When issuing a backup command within a stored procedure that uses a try catch and dynamic sql, the error messages are very general when compared to running the backup command directly.  Try/Catch within SP:         begin try         execute sp_executesql @sql;  -- a backup command     end try     begin catch           print ERROR_MESSAGE();  -- save to log, etc.     end catch   Results in      50000:usp_Backup:117:  BACKUP DATABASE is terminating abnormally.   wheareas issuing the raw command:      backup DATABASE someDb to disk...   Results in better details:         Lookup Error - SQL Server Database Error: A nonrecoverable I/O error     occurred on file "H:\FolderName\Filename.bak:" 112(There is not enough     space on the disk.).   Is there a way to catch these details into variables within the stored procedure (to log, pass back to caller, for retry logic)?  It seems the details are coming through on the message channel but I would like them available within the SP.


Let be $f:[0,\infty[ \rightarrow \mathbb{R}$ a decreasing and continuos, $f(x)>0 , \forall x$. If $\displaystyle \int_0^{\infty}f(x)dx$ converges then $\displaystyle \lim_{x \rightarrow \infty} xf(x) = 0.$  How to prove that?  Ok, I know that if $G(x) = \displaystyle \int_0^{x}f(t)dt $ then $ \displaystyle \lim_{x \rightarrow \infty} G(x) = L$, How can I use that for arrive in $xf(x)$??


I own a Google Group and I want to auto-forward some of my e-mails to it.  However, when I try to add the Group's e-mail address to my auto-forward list, it says that the confirmation mail has been sent to my Group address. Despite that, nothing arrives and I can not confirm the Group address. The address stays unconfirmed.  Is there a work-around for this? I mean, both are Google products, maybe there's a way I've missed.


All fonts look weird in emails and on websites, how can I fix this?

I've just installed Ubuntu and my fonts look weird on website and in emails.  Below are some screenshots of thunderbird and chromium.   The problem occurs in the following programs:   Chromium Firefox Thunderbird   how can I fix it?  In Thunderbird:   In Chromium:


An entire function whose integral is bounded is identically zero

Suppose $f$ has a power series at $0$ that converges in all of $\mathbb{C}$ and $$\int_{\mathbb{C}} |f(x+iy)|dxdy$$  Converges. Prove $f$ is identically zero. I don’t know Liouville’s theorem or any integral formulas yet, so I’m a bit stuck on this one.   A hint is given: “Use polar coordinates to show $f(0)=0$”  Edit: I am open to any suggestions, even those which use Liouville or Cauchy etc


How can I have more than one GUI X Terminal running in Linux Mint?

In Linux you can access up to 6 different terminals plus the X display.  In Mint, the shortcut for the X display is ctrl + alt + f8 instead of f7. Since f7 shows me log messages of VirtualBox and Timidity++, I'm assuming its the text version of the X display.  I'm using Cinnamon as a WM and would like to use Unity in a different terminal.  Is that even possible?


Is there any code to reverse the order of the column of a table?

I have write the code of a table with more than hundred rows,  (in fact set of tables, with more than hundres rows at all !) and five columns.    Let's call the columns from left to right by A, B, C, D, E; I want to reverse the order of the columns, i.e. to get a table with columns E, D, C, B, A, respectively from left to right.       Is there any code or package to do this for me?   My code is something like the following:   \begin{table} \caption {computations of the first class} \begin{center} \scalebox{1} {  \begin{tabular}{| c || c | c | c | c |}  \hline A0 & C0 & B0 & D0 & E0 \\  \hline \hline  A1 & C1 & B1 & D1 & E1 \\  \hline A2 & C2 & B2 & D2 & E2 \\  \hline A3 & C3 & B3 & D3 & E3 \\  \hline A4 & C4 & B4 & D4 & E4 \\  \hline A5 & C5 & B5 & D5 & E5 \\  \hline A6 & C6 & B6 & D6 & E6 \\  \hline A7 & C7 & B7 & D7 & E7 \\  \hline A8 & C8 & B8 & D8 & E8 \\  \hline A9 & C9 & B9 & D9 & E9 \\  \hline \end{tabular} } \end{center} \end{table}       As @Alan Munn has been guided me to this , I have added one line to my code(befor \begin{tabular}):   \def\1#1&#2&#3&#4&#5\\{#5 &#4 &#3 &#2 &#1 \\}    But this does not changes any thing. Where is the problem?


I want to subtract days from date in java. But I dont want to use external libraries. I have referred some of questions from stackoverflow but they are suggesting to use external libraries. So I have applied following logic  noOfDays = 24; Date compareDate = new Date(currentDate - noOfDays * 24 * 60 * 60 * 1000); System.out.println("compare date " + compareDate);   It is working fine till 24 days.But after 24 days it is giving unexpected result. Is there any solution to this ?


world_to_camera_view - returns same result if cube is rotated, not if camera is rotated

I'm expermenting with world_to_camera_view  bpy_extras.object_utils.world_to_camera_view(scene, camera, co)  Lets say I create a new blender file. I enter every point of a cube into this function and then paint the results.  Now I do the same thing again, but this time I rotate the cube.   I expect to get different sets of points, but I get the same points.   Now lets say I add a second cube at a different position. I expect again to get a different set of points. But again I get the same points (two sets of cubes on top of each other).   If I move the camera.. then I do get different points.  So my questions are: how can I use this to see two meshes? and why do I not see changes after a cube is moved, can I turn that on somehow?


Why do we say "study window" not "study's window"?

Do you know why we say study window not study's window although we mean the window which belongs to a study(room)? I want to know the reason.


Prove the following sequence is a Cauchy Sequence

Let $\{X_n\}$ be the sequence defined recursively by $x_1=2$ and $x_{(n+1)}=(x_n/2)+(5/x_n)$. Prove that $\{x_n\}$ converges and find the limit of the sequence.   I understand the definition of a Cauchy Sequence, but I am having trouble getting my foot in the door with this one. I have been working on this problem for several hours without any luck, so I was just wondering if someone could help me determine a way to start this problem?


What is the data structure used by Recycle bin & hows it implemented

In a Windows file system, we cannot created a folder or file with the same name. For example, New Folder. If there is a existing folder already named as "New Folder" and if we create another folder with the same name, it prompts or creates "New Folder 2". I recently deleted various folders named New Folder.  Recycle bin does not complaint if both folders have same names. I wanted to know how "Recycle bin" is functioning. It is a file system as well. How is it implemented, what is the data structure used. I want to implement a similar file system at work.  I can think that even though it shows the users that files are deleted but the reference is to the same place from where it got deleted and allowing same file names.


Intel Centrino Wireless N 2230 driver problem

I have Intel Centrino N 2230 WiFi card and I tried to download iwlwifi tar from Ubuntu wireless drivers and then I copied its .ucode to firmware folder and then I ran modprobe -r lawgn and modprobe lawgn. It didn't run, even after restart. Then I updated the compat-drivers but still didn't work.  I tried rfkill unblock all, checked the button, etc. but it didn't show up in airmon-ng and iwconfig.  Can anyone kindly help?  This is the output of mine:  lshw -C network   *-network                   description: Ethernet interface    product: RTL8111/8168B PCI Express Gigabit Ethernet controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0.2    bus info: pci@0000:07:00.2    logical name: eth0    version: 0a    serial: 28:92:4a:1d:af:a1    size: 100MB/s    capacity: 1GB/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.1.3 latency=0 link=yes multicast=yes port=MII speed=100MB/s    resources: irq:41 ioport:2000(size=256) memory:61404000-61404fff memory:61400000-61403fff *-network UNCLAIMED    description: Network controller    product: Intel Corporation    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:08:00.0    version: c4    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list    configuration: latency=0    resources: memory:61500000-61501fff  iwconfig   lo        no wireless extensions. eth0      no wireless extensions.  airmon-ng    Interface   Chipset     Driver  lsb_release -a; uname -a   No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 10.04.2 LTS Release:    10.04 Codename:   lucid Linux bt 2.6.38 #1 SMP Thu Mar 17 20:52:18 EDT 2011 i686 GNU/Linux


Find the sum of first $n$ terms of the series: $\frac{1}{1\times2}+\frac{1}{2\times3}+\frac{1}{3\times4}+\cdots +\frac{1}{n\times(n+1)}$


How can I type this in latex ? I can only do 1 column  \begin{itemize} \item Module \item Loss \end{itemize}


Transaction Log file size is increasing in my Azure (IAAS) SQL Server 2014 database

Recently we have migrated our application (both web app and database) to Azure (IASS). There we have a VM with SQL Server 2014 installed. Also I have restored all the necessary databases and SQL Server jobs on the server (from the existing On-Premise DB server). All the settings are verified and the application was working fine for a week.   Then we noticed a problem with the log file size (size is increasing  and reached around 42 GB and not able to execute any of the basic query and everything breaks :( ). The same DB and Job ran in on-premise server for a year and  this issue didn't happen.   Some information about the application and DB   The application contains a couple of SQL scheduling jobs which run each 2 hours of a day and the job take maximum of 5-8 minutes to complete. Application contains less than 200 users and concurrent users are around 20-30.   So please let me know any one of your comments/input on this (Transaction log file size increment) issue. Also please let me know if you need any other information


What is the minimum space needed for Ubuntu 16.04LTS 32bit? Do I need a linux swap also?

I am severely limited on my main hdd, as /dev/sda1 (windows 7) is 59.51gib with a 2gib linux swap, and a 13gib /dev/sda2 ext4 where I had an installation of Arch 32. Is it possible install Ubuntu 16.04lts 32 in same partition? Do I still need the 2g swap to run Ubuntu? Thanks David


I have a TikZ node positioned between two other nodes using fit:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit}  \pagestyle{empty} \usepackage{parskip}  \newcommand{\mybox}[1]{     \begin{tikzpicture}         \node (t) [minimum width=.4\linewidth,anchor=north west,draw] at (0,5){box above};         \node (b) [minimum width=.4\linewidth,anchor=south west,draw] at (0,0){box below};         \node [fit=(t.south west) (b.north east), inner sep = 0, draw, align=flush left]{#1};     \end{tikzpicture} }  \begin{document} \mybox{     {\large Here we} have\newline some...      ...somewhat {\bfseries longer arbitrary text} content. } \end{document}     Now I would like to vertically align the contents of the node at the top and also add some padding around the node contents. How can I do this?


Triple booting Ubuntu mate, Windows 10, and CloudReady (chromium os)

Is it possible to do this? I don’t care about reformatting, as this laptop has nothing important on it.


I am trying to install  for Windows 7. But when I run it, I get the following error:     The program can't start because MSVCP120.dll is missing from your computer. Try reinstalling the program to fix this problem.   How do I fix this?


Where to ask licensing-related questions?

I've just asked a  and got downvoted unlike the plethora of other . Where do I ask such questions?


Comparing two lists (check how many times short list occurs in long list)

I am doing homework and I got stuck with my code.  The question is about two lists containing string letters in it as elements and  we want to know how many times the small text occurs in the long one.(with order)  Example:  long=['a','k','g','j','a','k','k','a','k','g']  small=['a','k','g']  then the answer should be 2 as it occurs twice(first and in the last part) As I tried:  def search(long,small):     words=[]     for k in range(len(long)):          for l in range(len(small)):                if long[k]==small[l]:                    words.append()                return(words)   First tried to write down the matches in the list and then divide the len of list to get the number. But unfortunatly this gives me the first match and i am not sure how to get all the matches. Hope you guys can help me.


What is the unary-& doing here?   int * a = 1990;  int result = &5[a];    If you were to print result you would get the value 2010.  You have to compile it with -fpermissive or it will stop due to errors.


Discrete Mathematics - Pigeonhole Principle

A student has 5 weeks to prepare for their midterm test. The student's friend has volunteered to tutor them for either 15min or 30min every day until the test but not for more than 15 hours total. Show that during some period of consecutive days, the student and their tutor will study for exactly $8 \frac{3}{4}$ hours.  I believe that questions of this sort have been asked before on this forum but, I still do not seem to understand how the answers were derived and how they were able to come up with the functions they used.   I understand what the question is asking for but am really struggling to come up with what the pigeons are and what the pigeonholes are in this scenario. If anyone could please give a simple explanation as to what they are it would be much appreciated. I feel like if I understand where they come from then I will be able to complete this question.  Thank you for any help in advance!  Yours Truly,  A struggling student in need of help


"You should have also named" vs. "you should also have named"

Out of the two sentences, which one is correct?          You should have also named it the Daily prophet.      You should also have named it the Daily prophet.       My guess is it's the first one.


Run a script.sh with www-data like it was root user

I need to get all mac Addresses from my network-card.  So i use nmap from Debian, combined with PHP.  But, without root privilege, this only gives me the IP address and status from a target. With root privilege, i get IP, status, and adresse MAC.  How i can execute this command (or a script.sh with nmap inside), with root privilege and without do a "cracked server" (like ALL=NOPASSWD)


Dividing a string into a list of smaller strings of certain length

If  i have this string:  "0110100001100101011011000110110001101111"   How can I divide it at every eighth character into smaller strings, and put it into a list, so that it looks like this?:  ['01101000','01100101','01101100','01101100','01101111']   So far, I can't figure out how this would be possible.  I should mention, since my strings are in binary so the length is always a multiple of 8.


Why do some services list an IPO date that is well after historical price data you can find elsewhere?

The IPO date I find for the MMM Corporation is 1/13/1978 ().   Google Finance has price data going back to that date ().   However, Yahoo Finance goes back to 1970 (), as well as other ticker sources.  The main concern, of course, being: How can there be published price information from before an IPO?


I use -x for debug info while executing the shell script.  How can I redirect debug info only to a file?  Example script:  #!/bin/bash echo OK echo NO   i will get the below result when i run in debug mode  + echo OK OK + echo NO NO   I would like to redirect only the debug info to a file.  + echo OK + echo NO   And runtime output should print on the screen.  OK NO


Extracting coordinates of pixels inside polygon in Google Earth Engine as single feature


Is there any indicator as to how many planets have Stargates?

I'm trying to figure out how many planets have stargates in the Stargate universe, preferably separated by galaxy. I've recently thought about just how many stars there are in the galaxy, and roughly what fraction of them would have a stargate, just to run through some numbers.  Bonus points if you compare the number of stargates to the number of stars in the galaxy, distance between stargates, etc.


what is a better approach to display stack created with C++ STL without popping every element

I am trying to workaround with STL stack where in I wish to display stack elements. But I don't find any efficient approach to display without popping each element.


How can I make a sign with a rightclick action displaying a tellraw?

I managed to this before, but now I'm getting errors with the same format of a command. The idea is I'm attempting to make a blockdata command that will set a sign to say something (which works before adding the tellraw) that has a ClickEvent running a tellraw command that will display the info of the map. The problem is, the command gives me this error:     [00:44:34] Data tag parsing failed: Expected '}' but got 't' at: ...d\",\"value\":\"tellraw @p [\{\"t<--[HERE]   I can't figure out what is wrong with that point, though. Like I said in the beginning, I've done this before in a previous map, using what I think was the same command aside from the actual data of what the sign and tellraw said.   What is the problem with this command?  /blockdata ~ ~1 ~ {Text1:"{\"text\":\"Right Click\",\"color\":\"blue\",\"bold\":true,\"underlined\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tellraw @p [\\{\\"text\\":\\"Welcome to \\",\\"color\\":\\"gold\\"},{\\"text\\":\\"World of Lights\\",\\"bold\\":true,\\"italic\\":true,\\"color\\":\\"green\\"},{\\"text\\":\\" \\",\\"bold\\":true,\\"color\\":\\"gold\\"},{\\"text\\":\\"by \\",\\"color\\":\\"gold\\"},{\\"text\\":\\"jackmaster110\\",\\"underlined\\":true,\\"color\\":\\"yellow\\"},{\\"text\\":\\"!\\",\\"underlined\\":true,\\"color\\":\\"gold\\"},{\\"text\\":\\"\\n\\"},{\\"text\\":\\"Info:\\nTo play you must click the \\\\"play\\\\" sign behind you. Then you will be dropped into the map.\\nThis is a map where you must get through the \\\\"World of Lights.\\\\" There will be challenges such as parkour,puzzles,and some other kinds of awesomeness.\\nIf you enjoy the map please check out the other maps and minigames available on the server.\\",\\"color\\":\\"gold\\"},{\\"text\\":\\"\\n\\"},{\\"text\\":\\"Have fun!!!!\\",\\"color\\":\\"gold\\"}]\"}}",Text2:"{\"text\":\"asdasdfasdgdasfeasdf\",\"color\":\"green\",\"underlined\":true,\"strikethrough\":true,\"obfuscated\":true}",Text3:"{\"text\":\"asdasdfasdgdasfeasdf\",\"color\":\"green\",\"underlined\":true,\"strikethrough\":true,\"obfuscated\":true}",Text4:"{\"text\":\"For Info\",\"color\":\"blue\",\"bold\":true,\"underlined\":true}"}


Difference estimate & confidence intervals for $\chi^2$ test between 2 proportions

I am using a chi-sq test between two proportions (). I am using this over the z-test for proportions because I do not think my data is normal.   My question is how do I get the difference (shift) estimate & confidence intervals for this test.   For example,     Data1: 193/252=.77   Data2: 154/227=.68   P-value=.032 (I used the formula in the link above. I will also add my exact code below)  Shift Estimate: I assume its the difference between proportions, ie .77-.68=.09. Is this correct?   Confidence Interval: ??????????????????  Code for generating P-value (matlab):   % Pooled estimate of proportion  p0 = (n1+n2) / (N1+N2); % Expected counts under H0 (null hypothesis)  n10 = N1 * p0;  n20 = N2 * p0; % Chi-square test, by hand  observed = [n1 N1-n1 n2 N2-n2];  expected = [n10 N1-n10 n20 N2-n20];  chi2stat = sum((observed-expected).^2 ./ expected);  p = 1 - chi2cdf(chi2stat,1);  H=0; if(p<.05), H=1; end


How can I install MonoDevelop v4 on 12.04?

I am using Ubuntu 12.04. I can install v2.8.6.3 of Monodevelop from software center but I need at least v3 to use Monogame v3 or higher. Can anyone point me in the right direction please?   Thanks


What are the proper ideals, prime ideals, maximal ideals of $\mathbb{Z}[i]$, the ring of Gaussian integers.    Check whether $(1+i)$ is prime or maximal ideal.     Can someone help me please. I have no idea how to crack this problem. Thanks for your time.


It says NullPointerException even though my String s has a stored text

If I use l.search("Hi"); the code will run fine but if I pass String s to search method, it will prompt an error NullPointerException System.out.print("Search: ");          String s = scan.next();          l.search(s);   public void search(String name){       Node current = tail;          while(current != null && current.name != name){             current = current.previous;          }                    if(current.name == name){             System.out.println("Item found.");          }       }


I'm trying to send a email to a gmail account from a non-gmail email address, but I get the following error: Mail delivery failed: returning message to sender  Our system has detected that this message is     550-5.7.1 not RFC 5322 compliant:     550-5.7.1 'From' header is missing.  Here is my code: import smtplib import ssl import getpass  port = 465  # For SSL smtp_server = "website.net" sender_email = "foo@website.net" receiver_email = "foo@gmail.com" password = getpass.getpass(prompt='Type your password and press enter: ') message = "This message is sent from Python."  context = ssl.create_default_context() with smtplib.SMTP_SSL(smtp_server, port, context=context) as server:     server.login(sender_email, password)     server.sendmail(sender_email, receiver_email, message)  I'm able to send emails to myself, but sending them to a gmail address gives me that 'From' header is missing error. How and were do I add that?


When will 16.04 AMIs be available on the AWS MarketPlace?

Any idea when would 16.04 images be released to AWS MarketPlace?  Thanks!


Does changing default port number actually increase security?

I have seen advice saying you should use different port numbers for private applications (e.g. intranet, private database, anything that no outsider will use).  I am not entirely convinced that can improve security because   Port scanners exist If an application is vulnerable, it remains so regardless of its port number.   Did I miss something or have I answered my own question?


Decrypt AES-128 with key file but missing IV?

I want to decrypt a file that has been encrypted using AES-128 in CBC mode using OpenSSL. I got the “.key” file – which is 32 digits – but when I try to decrypt with OpenSSL, the program asks me for “-iv” and I don't know the IV of that file so it won't decrypt. Is there is any other way to decrypt the file without knowing the IV?   I tried with another file of which I have the correspondent IV and it works, and when I don't supply that IV, the decryption fails too.  By the way: is there anyway to know what type of encryption was used to encrypt a file?


Extract the link text and URL from a hyperlinked cell

Suppose I have a hyperlink in cell A1: =hyperlink("stackexchange.com", "Stack Exchange")  Elsewhere in the sheet, I'd like to have formulas that get the link text and URL from A1, separately. I found a way to get just the link text:   =""&A1    (concatenation with empty string). This returns "Stack Exchange", unlinked.   How to get the URL (stackexchange.com)?


How to run adb and fastboot commands from Termux?

Is it possible to run adb and fastboot commands using Termux terminal emulator? I am wanting to run commands from one Huawei T3 7 to another using USB/OTG cable. Need to unlock bootloader but have no access to a PC or laptop.


I am a PhD student, working on Applied Math while my wife is a software engineer. I plan on going to academia after PhD and will start to job hunt soon.  A few weeks ago, I thought of an idea that hadn't been done before. I wrote a crude C++ code to implement the idea and it worked well. I believed that with my theoretical understanding of the problem and an expert coder, we could make something really impactful and incidentally, my wife knew how to. So, we spent some evenings together writing the code (she didn't know math, but I abstracted each step so she could help implement). The resulting code is fairly sophisticated and does an excellent job. I was wondering, now that I write a paper about it, would it look weird if my wife was listed as a co-author? Her contributions were definitely sufficient to warrant co-authorship by any definition.  Let's step aside the legalese of it (my advisor doesn't care and her company might but let's leave that aside). I am asking more from the standpoint of how it looks on one's CV, job application and possibly, tenure.


Application which will display the current coordinates of the mouse cursor?

I'd like to be able to display the current location of the pointer on the X display. Is there any application which does this?


Use same arguments with different command

Here's something I find myself doing often:  less super/long/file/name   Followed by:  vim super/long/file/name   Is there an easy way to pass the args of the previous command over to the next? SO I'd like to do something like  vim !!!   And have it automatically open super/long/file/name in vim.


run function on jquery.html added element (with fiddle)

I have added an element using jquery.html but I can't seem to run another function on that element?? Any ideas     Cick here A

  $(".trigger").click(function() {     alert( "click" );  });  $('#test').html('Click here B');


Why does a hot bulb filament emit photons?

Heating up a bulb filament provides energy to the filament material thus exciting the electrons. So how does excitation of electrons release photons generating   light since excitation of an electron leads to absorption of a photon?


Better way to divide voltage for input to an ADC DAQ?

I would like to monitor relatively higher voltages (up to 160V) using an ADC type DAQ.  Most DAQs that I come across can handle around 5-10V of analog input, requiring the voltage to be divided.  Here is one I like  .  I was planning on running a simple voltage divider to an op-amp buffer (voltage follower) and finally into the input of the DAQ.  My thought is to use something like 3.3 MOhm (R1) and 105 kOhm  (R2) to divide the 160V by ~32 (~5V).  Then run that output to an op-amp voltage follower and finally into the input of the DAQ.  I'm not sure how to size the resistors since the op-amp buffer should be high impedance and limit the current draw.  I sized them so big to ensure I'm not drawing much current.  Since I am monitoring the voltage, I do not want to load down the source.  I want to know if this is a good way to do it, and if there are any better ways.


Blocking Windows install on Public Computers

We have public computers in our library, where we have installed Linux exclusively. It has come to our notice that some geeks are installing Windows on our machines. Those Windows are pirated versions. In due time they crash and repairing a PC becomes headache for us. If there can be a way - so we can set these computers in such a way that they do not accept any new OS installation except for what we have installed (only we, the admins should have the control on what we choose to install) - this shall remain a great help.  Thanks & Regards.


Unable to boot into ubuntu 15.04 after a clean install

I have an older samsung laptop running dual core amd with 4 gigs ram,  And I was previously running windows , due to severe lagging I installed ubuntu and now I am unable to boot up   It keeps showing   ACPI PCC probe failed Starting version 219 Ata2:soft reset failed (1st FIS failed)  Alert /dev/disk/by-uuid/612a3bcc-0033-47bf-bcca-b6ad3a4224c8 does not exist..dropping to shell   And then it's says the the devices taking too long


Using formula for work with distance of 0m

Consider this:  Wind is pushing a huge rock towards me at with massive force at 2m/s. I push against the rock at equal force so the rock stays still. I am clearly "working" very hard, using a lot of energy. However the distance the rock moves is 0m. Hence, work = distance * force. Therefore work = 0?  Why is this the case?


Asking and answering questions in Spanish

I am from Venezuela and I do not speak English. I would like to help out here however, to answer questions I need to use Google Translate.  May I ask (and answer) questions in Spanish?


At the very final scene of the second season of Game of Thrones, something weird happens.      Sam notices a White Walker along with an army of wights, all heading his way. Since he can't run, he hides. But when we see the White Walker, it seems that he and Sam look at each other.    And for some reason, the White Walker doesn't kill Sam. And even if he didn't really see him. It was my impression that they could sense humans in their vicinity. Surely Sam would have set these internal alarms of the icy CGI warrior.   So how is Sam alive at all??


$i^{-1} F$ a sheaf if and only if $\varinjlim_{ U \subseteq X \text{ open}, ~ x,y \in U } F(U) \to F_x \times F_y$ is an isomorphism.

Let $X$ be a topological space containing two closed points $x,y$ and let $i : \{x,y\} \to X$ denote the inclusion map. Notice that $\{x,y\}$ carries the discrete topology. Let $F$ be a sheaf on $X$. Then $i^{-1} F$ is a presheaf on $\{x,y\}$ which is given by $(i^{-1} F)(\emptyset)=1$ (the terminal set), $(i^{-1} F)(\{x\}) = F_x$ (the stalk at $x$), $(i^{-1} F)(\{y\})=F_y$ (the stalk at $y$) and $$(i^{-1} F)(\{x,y\}) = \varinjlim_{ U \subseteq X \text{ open}, ~ x,y \in U } F(U).$$ Why is, $i^{-1} F$ a sheaf if and only if the canonical map $$\varinjlim_{ U \subseteq X \text{ open}, ~ x,y \in U } F(U) \to F_x \times F_y.$$ is an isomorphism ?.   Thanks a lot to all of you.


What is a single word that means both 'Import' and 'Export'?

In my web application, I am importing and exporting users to/from the application. So, for that I would like to have a single word to generally represent 'Import/Export process'.   I've gone through . But it is talking about business trading and all. I'm not expecting that meaning for it.  So, please suggest one. Thanks :)


What's the meaning of [0] in this line of code?

I'm learning Python, and I wanted to do a simple yes/no question.  I stumbled with this code on the internet:  qr = input('Do you love cute owls?') while True:     if qr == '' or not qr[0].lower() in ['y','n']: # This line in question         print('Please answer with yes or no!')     else:         break  if qr[0].lower() == 'y': #Do something if qr[0].lower() == 'n': #Do something else   and this allows the code to detect any word starting with y or n, so it looks more "smart".  I really want to know whats the difference between that code and just writing:   qr = input('Do you love cute owls?') while True:     if qr == '' or not qr.lower() in ['y','n']: # Difference         print('Please answer with yes or no!')     else:         break  if qr.lower() == 'y': #Do something if qr.lower() == 'n': #Do something else   Why the second code doesn't work? What's the purpose of that [0] and why without it the code doesn't detect the words starting with y or n? I really want to know! :)


How to correct a mistake made when writing a check?

I think I know the answer to this, but I'm not sure, and it's a good question, so I'll ask:  What is the accepted/proper way to correct a mistake made on a check?  For instance, I imagine that in any given January, some people accidentally date a check in the previous year.  Is there a way to correct such a mistake, or must a check be voided (and wasted)?  Pointers to definitive information (U.S., Canada, and elsewhere) are helpful.


I have a web service that returns an array of bytes and my intention is to convert said array to a .wav in the client (a handheld such as Blackberry). However I really have no idea of how to do that, I tried just making an FileOutputStream but of course that wouldn't play. So I am once again without knowing what to do. Any ideas?


How to manually trigger "turn off display"?

How do I manually trigger the "turn off display" function in Windows 7? This normally happens automatically when the user doesn't move mouse or presses any keys for a certain amount of time (power management section of control panel).  Third party software or a full blown application is nice, but I'd prefer an approach native to Windows 7. Like a command line or something.


Identify a movie from the 80s: desert, water sirens

I'm looking for a movie that I saw as a child in the 80s. It was a post-apocalyptic world with a group of survivors. They were in a deserted area. Once they entered a tunnel where the floor was covered in water. And here water amazons / sirens appeared that tried to drag them down. Could you help me identify this movie?  Edit: I think it was an American movie. The group entered the tunnel in a Mad Max-like car. If I remember correctly, there was an African-American guy also in the group. The set was deserted / rocky.


Supposing we have a table with four columns (a,b,c,d) of the same data type.  Is it possible to select all distinct values within the data in the columns and return them as a single column or do I have to create a function to achieve this?


Feynman's infinite amount of logic for one tiny bit of space

Watching one of Feynman's lectures, I came across something that puzzled me. What was Feynman referring to when he said the following?     What goes on in no matter how tiny a region of space and no matter how tiny a region of time, according to the laws as we understand them today, takes a computing machine an infinite number of logical operations to figure out. Now, how could all that be going on in that tiny space? Why should it take an infinite amount of logic to figure out what one stinky little bit of space-time is going to do?   —    To be clear, my question is: Why would Feynman say it would take an infinite amount of logic to simulate even a small region of space-time?


/etc/shadow : how to generate $6$ 's encrypted password?

In /etc/shadow file there are encrypted password.  Encrypted password is no longer crypt(3) or md5 "type 1" format. () Now I have a   $6$somesalt$someveryverylongencryptedpasswd   as entry.  I can no longer use    openssl passwd -1 -salt salt hello-world  $1$salt$pJUW3ztI6C1N/anHwD6MB0   to generate encrypted passwd.  Any equivalent like (non existing) .. ?   openssl passwd -6 -salt salt hello-world


Why is the photon emitted in the same direction as incoming radiation in Laser?

When an atom “lases” it always gives up its energy in the same direction and phase as the incoming light. Why does this happen? How can this be explained? How does the photon generated because of stimulated emission, know which direction to take? What are the factors leading to this?


How to make your iPhone beep every hour?

Is it possible to have my iPhone making a sound every hour ? And preferably during day time, like 12 hours a day, and moreover only during weekdays only ?


Proving $2^{2^n}+3^{2^n}+5^{2^n}$ is divisible by $19$ for all $n\geq 1$ by induction

I came across the following in the book Handbook of Mathematical Induction: $$ 19\mid (2^{2^n}+3^{2^n}+5^{2^n}),\quad n\in\mathbb{Z^+}\tag{1} $$ Apparently, this problem is not so bad if you think about it in a somewhat "outside of the box" sort of way, but it is supposed to be quite challenging otherwise.   Question: How might one prove $(1)$ using induction or otherwise? The "outside of the box" answer has been provided but with details oranged out so as not to spoil it for anyone who may come up with that solution individually.


How can I find a guide who will take me safely through the Amazon jungle?

This was one of our definition questions, but also one that interests me personally: How can I find a guide that will take me safely through the Amazon jungle? I'd love to explore the Amazon but would not attempt it without a guide, at least not the first time. I'd prefer a guide who wasn't going to ambush me or anything. I don't want to go anywhere "touristy".  Start and end points are open, but the trip should take me places where I am not likely to see other travelers/tourists and where I will definitely require a good guide in order to be safe.


How to implement a general func for copying n-depth jagged array by value (without reference)?

I can't find a way of copying n-depth jagged array by value (not by reference).  Here's the code i wrote for copying jagged array of depth 3:      public static T[][][] Clone_Arr<T>(T[][][] arr)     {         int length1 = arr.Length;         T[][][] arr2 = new T[length1][][];          for (int i = 0; i < length1; i++)         {             int length2 = arr[i].Length;             arr2[i] = new T[length2][];              for (int j = 0; j < length2; j++)             {                 int length3 = arr[i][j].Length;                 arr2[i][j] = new T[length3];                  for (int k = 0; k < length3; k++)                 {                     arr2[i][j][k] = arr[i][j][k];                 }             }         }          return arr2;     }   But I just can't figure out how to write a general func that will make a copy of a jagged array of n-depth.  Any help will be appriciated  I tried doing the following:      public static T[] Clone_Arr<T>(T[] arr)     {         int length = arr.Length;         T[] arr2 = new T[length];          if (arr.GetType().GetElementType().IsArray)         {             for (int i = 0; i < length; i++)             {                 arr2[i] = Clone_Arr<T>(arr[i]);                 // here i encounter a compilation error: cannot convert from T to T[]             }         }         else         {             for (int i = 0; i < length; i++)             {                 arr2[i] = arr[i];             }         }                    return arr2;     }


When is an orthogonal projection a unitary operator?

Question: When is an orthogonal projection $P: \Bbb C_n \to \Bbb C_n$ a unitary operator?  Thoughts: I thought about using the fact that the only eigenvalues for projections are 1 and 0. Don't really know how to use it though..


Is there a function whose inverse is exactly the reciprocal of the function, that is $f^{-1} = \frac{1}{f}$?

Is there a function whose inverse is exactly the reciprocal of the function? That is $f^{-1} = \frac{1}{f}$.  We know that the inverse of a function is not necessarily equal to its reciprocal in general.


When attempting to upgrade to 17.10 from 17.04 I recieve the following error:  W:GPG error: http://archive.canonical.com/ubuntu oneiric InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 E:The repository 'http://archive.canonical.com/ubuntu oneiric InRelease' is not signed.   How do I fix this?


Why doesn't a lighter flame cast a shadow?

Light has always been a mystery for me. When we do a simple experiment of holding a lighter in one hand and a light source behind it, it shows no shadow on the wall at all. Why is this happening? Is it because the flame is pure energy and doesn't have matter in it, or is it due to light passing through the flame and not getting reflected? If it is, why isn't the light getting reflected or retracted?


I have (probably) a large number of posts on SO with links to my specific domain (to provide expanded information beyond what's put in the answers).  If I were to switch to a different domain (say, moving from pax.com to pax.org), it would be useful to get a list of those posts so as to go and modify them, so as to avoid broken links.  Yet, when I search for the domain name on SO, no hits are returned. What's the best way to get a list of posts containing links to (for example) pax.com?


Show that $\sum_{n=0}^\infty r^n e^{i n \theta} = \frac{1- r\cos(\theta)+i r \sin(\theta)}{1+r^2-2r\cos(\theta)}$

Show that $$\sum_{n=0}^\infty r^n e^{i n \theta} = \frac{1- r\cos(\theta)+i r \sin(\theta)}{1+r^2-2r\cos(\theta)},$$ where $0\leq r <1$.  Using this, prove that $\sum_{n=0}^\infty r^n \cos(n\theta)$ and $\sum_{n=0}^\infty r^n \sin(n\theta)$ are convergent.


Evaluating $\int_0^2(\tan^{-1}(\pi x)-\tan^{-1} x)\,\mathrm{d}x$

Hint given: Write the integrand as an integral.  I'm supposed to do this as double integration.  My attempt:   $$\int_0^2 [\tan^{-1}y]^{\pi x}_{x}$$  $$= \int_0^2 \int_x^{\pi x} \frac { \mathrm{d}y  \mathrm{d}x} {y^2+1}$$  $$= \int_2^{2\pi} \int_{\frac{y}{\pi}}^2 \frac { \mathrm{d}x  \mathrm{d}y} {y^2+1}$$  $$= \int_2^{2\pi} \frac { [x]^2_{\frac{y}{\pi}}  \mathrm{d}y } { y^2+1}$$  $$= \int_2^{2\pi} \frac { 2- {\frac{y}{\pi}}  \mathrm{d}y } { y^2+1}$$  Carrying out this integration, I got, $$2[\tan^{-1} 2 \pi - \tan^{-1} 2] - \frac {1}{2 \pi} [\ln \frac {1+4 {\pi}^2} {5}]$$  But I'm supposed to get $$2[\tan^{-1} 2 \pi - \tan^{-1} 2] - \frac {1}{2 \pi} [\ln \frac {1+4 {\pi}^2} {5}]+ [\frac {\pi-1}{2 \pi}] \ln 5$$  Can someone please explain where I'm wrong? I've failed to pinpoint my mistake. Thank you.


Need to display the supported locale date format

Im trying to get a list of all the date formats salesforce expects for all the supported locales in my org.  I already have the list of locales codes displayed on a visualforce page. I just need the date formats. Is there a way to get this? The formats I have are incorrect.   Update:  Im asking  where can I get the dateformats I want to add a new locale to my map or is there a way I can write  apex to just spit out all the date formats for me so I can update this map with the correct format versus referring to  this .   I want to do something like this solution  but with the date formats also.  Example below:  en_US(locale) = mm/dd/yyyy(date format)


I need AltGr a lot for the purpose of {,[,],},... and it is uncomfortable to only have it available for my right hand. So, I'd like to change Caps Lock into AltGr.


I'm using the built-in equation tool in Keynote. Is there a way to change the font used by default in Keynote?  Also, I see that when I try to use text in the equation via \text{} the font is in bold mode. How can I change that?  Note that a relevant Keynote question has been asked .  As an example for the font change see this picture   As an example for the bold text see the picture which was generated by \Gamma \text{ is fixed}     Note that this question is not a duplicate of . All of the options mentioned in the linked question are such that simply add a characteristic to the font (italics, bold, roman etc.) but they do not change the font.


How to programmatically display the fields available to a content type

I'm attempting to display a dropdown box of available fields based on a supplied content type. I'd like to retrieve these fields programmatically.  I'm able to get a list of available fields based on a node like so  $fields = array_keys($thisnode->getFields());   But I want to be able to get the fields based on a content type not based on a specific node.   I did see that it could be accomplished in Drupal 7 like so   $fields = field_info_instances('node', 'content-type');   based on an answer here   However it seems like field_info_instances is not available in Drupal 8. I attempted using it and it said that the method is unavailable. Is there a method similar to field_info_instances in Drupal 8 that I can use to retrieve the fields of a specified content type?


Does the barking of a dog diminish the value of a priest?

Does  a  barking  of  a dog  diminish the   value  of  a  priest?   The  above  is  an  Idiom  from Indian languages.A  dog  stands metophorically  for  the inferior  people.The  priest  stands for  the  people  who  are intellectually  and  spiritually great.The  meaning of  the  idiom  is that  the  profane people  never  diminish the  greatness  and  holiness  of  great  people simply  by  mocking at them  What  is  the  equal  idiom in  English  apart  from the  saying  of  the  Egyptians.     "A profane person might be tempted to  violate the  tomb"   Edit  :    My  question  is  not  a  duplicate  because the  idiom  is  different  from  other  idioms : it  is  the  tendency  of  a dog  to  bark  at  a thief  or  at  a priest . It  can not  distinguish  between  good  and  bad.Every  new  person  seems  to  be  a thief  to a dog.So  great  people  are  great  people  even if  the  inferior  people  do  not  recognise  them or  mock at them.The  distance between  the  great  and  the  profane  is  always too long


Why do Resource Monitor and Task Manager's total RAM usage not even remotely add up to the total Physical Memory usage?

I have noticed this on many different Windows machine, on many different occasions: the RAM usage reported by Task Manager or Resource Monitor often seems to add up to an amount which is significantly lower than the actual amount in use.  For example, many times on my laptop or my desktop, I have seen something like 7GB in use, and yet the total of the Working RAM Set is more like 3GB. I just can't figure out where it's being used!  Here's an extreme example I noticed today in Resource Monitor on a server:    If you right-click the image and open in a new tab, and view the numbers, you'll notice that the Working Set (which doesn't include nonphysical virtual memory) add up to about 1.7GB. I get similar numbers by adding up RAM usage in Task Manager when "Show processes from all users" is enabled.  Now here's a screenshot of task manager's Performance tab:    This says 7.6GB of physical memory is in use.  I see this all the time, on personal computers, laptops, and now servers: the total RAM usage reported by system tools only accounts for about 1/4 of the RAM usage I observe. WTF is going on???  Is there any satisfying explanation of where all my RAM is? What is gobbling it up, and why is it leaving no trace?  EDIT: Here's a picture of the graphical RAM use, as user whs asked for:    EDIT 2: In response to James' response, here's a picture of the nonpaged processes in poolmon.exe, sorted by size:    These results confuse me. poolmon correctly states that I have 6GB of nonpaged pool in use, but all the nonpaged pool processes are less than 8MB in size.  What could this mean? Is poolmon failing to detect some of the processes using the nonpaged pool?


Determinant and inverse matrix calculation of a special matrix

Is there any smart way of calculating the determinant of this kind matrix? \begin{pmatrix} 1 & 2 & 3 & \cdots &  n \\ 2 & 1 & 2 & \cdots & n-1 \\  3 & 2 & 1 & \cdots & n-2 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ n & n-1 & n-2 & \cdots & 1 \end{pmatrix} I encountered this in a problem for the case $n=4$. I need to find the inverse matrix. I doubt the idea of this problem is to calculate all the cofactors and then the inverse matrix in the usual way. I see the pattern here and some recursive relations... but I am not sure if this helps for calculating the determinant of the existing matrix.


I am working on a project to calculate my overtime at work with a shell script.  I have two inputs and want to find if my number is over 800 = 8 hours; if it is bigger, then it has to print out the result to my text file.  It has to print out my difference.  if [ $var1 -gt 800 ]; then `expr $var1-800` echo Overtime: "" >> $path    and then I'm lost because I don't how to print out the result of my calculation.


How long does an object experience motionlessness at the beginning of its descent?

When a rubber ball bounces, it first accelerates in the positive direction (downward) then it bounces (hits the floor) .The velocity then becomes negative as the ball declerates while travelling upward - accelerates in the negative direction. After some time, the velocity is finally cancelled out by the downward force of gravity on the ball.  At this point the same amount of force pushing the ball upward is the same pushing it downward - it is at zero velocity.  My question is, how long does this period of zero velocity (motionlessness) last.


I am relatively new to CSS. I am trying to create a normal page layout using HTML & CSS, but I am facing an issue. Here is my HTML.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">        <title>Jquery</title>     <link rel="stylesheet" type="text/css" href="../css/StyleSheet1.css">

     Here is my CSS script  html,body {     padding: 0px;     margin: 0px;     color: #555;     font-size: 20px;     font-family:  "Open Sans","lucida grande","Segoe UI",arial,verdana,"lucida sans unicode",tahoma,sans-serif;     height: 100%; }  .container {     height: 100%;     background-color: Green;     position: relative; }  .header  {     height: 300px;     width: 100%;     background-color: Red; }  .content {     width: 100%;     background-color: Black; }  .footer {        height: 500px;     width: 100%;     background-color: Violet;     position: absolute;     bottom: 0px; }   I am trying to create a header, footer and a content div. But my content div should automatically change it's height. If there is nothing inside content div then my page should at least have content height equal to (page height - (header height + footer height)).


Weren't there originally going to be nine Star Wars films?

I seem to remember reading that there were going to be three trilogies originally in Star Wars, i.e. they would add episodes 7 - 9.  Was that ever the case? What happened to that plan?  Update: looks like that original plan !


Proof of Strong Induction Using Well-Ordering Principle

Context: I keep running into circular reasoning in attempting to derive strong induction (more generally "induction" whether it be weak or strong) from the well-ordering principle. Assume:     Peano Axioms w/ Well-Order: (I realize these are presented semi-informally)         (P1) $\ \exists x[x\!=\!1]$;   (P2) $\ $there exists an unary ("successor") function $S$ on $\mathbb{N}$ (i.e., $x\!\in\!\mathbb{N}\rightarrow S(x)\!\in\!\mathbb{N}$);   (P3) $\ \forall x[S(x)\!\neq\!1]$;   (P4) $\ \forall x\forall y[x\!\neq\!y\rightarrow S(x)\!\neq\!S(y)]$   (P5') $\ $Well-Ordering Principle: Every non-empty set includes a least-element: $$ \forall B\Big[\emptyset\!\subset\!B\!\subseteq\!\mathbb{N}\longrightarrow\exists m\big[m\!\in\!B\wedge\forall p[p\!\in\!B\rightarrow m\!\leq\!p]\big]\Big] $$   Note: Since I am trying to show the logical equivalency between Induction and the Well-Ordering Principle, I am assuming the latter as an axiom and treating the former as a theorem (below). The relation $\leq$ used above is defined next.         Order Relation         (O1) $\ x\!<\!y\leftrightarrow\exists z[x\!+\!z\!=\!y]$   (O2) $\ x\!\leq\!y\leftrightarrow[x\!=\!y\vee x\!<\!y]$         Addition (since order above is defined with "$+$")         (A1) $\forall x[S(x)=x+1]$   (A2) $\forall x\forall y[x+S(y)=S(x\!+\!y)]$      With this as background, below is the theorem and proof I see most often (or some variation thereof) in textbooks and online forums.     Theorem: The Well-Ordering Principle (P5') implies the Strong Induction Principle.      Proof: Suppose $X\!\subset\!\mathbb{N}$ with: (1) $1\!\in\!X$, and (2) $\forall x[x\!<\!k\rightarrow x\!\in\!X]\rightarrow k\!\in\!X$. Assume $X'\!\equiv\!\mathbb{N}\setminus X$ is non-empty. From Well-Ordering Principle (P5'), $X'$ includes a least element $m$. From (1), $m\!\neq\!1$. Since $m$ is the least element of $X'$, then all $x\!<\!m$ must belong to $X$. However, property (2) implies that $m\!\in\!X$, a contradiction. Thus, $X'$ must be empty and $X\!=\!\mathbb{N}$.   My problem is with the highlighted sentence above, which appears to me to require the result that $\neg(m\!\leq\!x)\leftrightarrow x\!<\!m$, which I believe is based on the Trichotomy Property (exactly one of $x\!<\!y$, $x\!=\!y$, $x\!>\!y$ holds). However, the only proof of the Trichotomy Property (that I am aware of) based on the above axioms/definitions alone uses Induction (see ). Thus, it appears the reasoning is circular (induction is used to prove an intermediate result that is then used to prove induction).  Question: Assuming my understanding above is correct, my question simply put is this: does a proof exist of the Trichotomy Property for $<$ as defined above that does not require a proof based on induction?


Numerical tests of Titius–Bode formula for artificial planetary orbits

is an empirical formula stating that positions of planets in Solar system is described by:  $$a=0.4+0.3 \times 2^m [AU],$$ where $m$ are natural numbers.  All planets, with exception of Neptune, fall within a few percent of it. Moreover, it predicted the existence of Uranus (so, at least to me, it does not sound like a coincidence).  There are simulators of solar system formation ().  Are there numerical simulations generating such orbits (as expected from Titius–Bode law). Or are they showing that there is no preference for such orbits?  See also:


Redirecting of hostname to full qualified domain name with HTTPS fails

First off, I don't want to use rewrites.  I'm trying to redirect any call (HTTP or HTTPS) to myserver to the secured fully qualified domain using https at https://myserver.fullyqualified.com.  Here is my config  # Redirect all http traffic to https <VirtualHost *:80> # line 545   Redirect / https://myserver.fullyqualified.com/ </VirtualHost>  <VirtualHost *:443> # line 549   ServerName myserver.fullyqualified.com   SSLEngine on   SSLCertificateFile "conf/mycert.crt"   SSLCertificateKeyFile "conf/mykey.key" </VirtualHost> <VirtualHost *:443> # line 555   ServerName myserver   Redirect / https://myserver.fullyqualified.com/ </VirtualHost>   This works fine for HTTP, I can call http://myserver and it redirects to https://myserver.fullyqualified.com just fine.  However when I call https://myserver I get an error about the site not being secure, and it doesn't redirect to https://myserver.fullyqualified.com like I expect it to.  In Chrome, the error says     This server could not prove that it is myserver; its security certificate is from myserver.fullyqualified.com. This may be caused by a misconfiguration or an attacker intercepting your connection.   This is the output of httpd -S  *:80                   MYSERVER.fullyqualified.com (C:/Apache24/conf/httpd.conf:545) *:443                  is a NameVirtualHost          default server myserver.fullyqualified.com (C:/Apache24/conf/httpd.conf:549)          port 443 namevhost myserver.fullyqualified.com (C:/Apache24/conf/httpd.conf:549)          port 443 namevhost myserver (C:/Apache24/conf/httpd.conf:555) ServerRoot: "C:/Apache24" Main DocumentRoot: "C:/Apache24/htdocs" Main ErrorLog: "C:/Apache24/logs/error.log" Mutex default: dir="C:/Apache24/logs/" mechanism=default Mutex rewrite-map: using_defaults Mutex ssl-stapling-refresh: using_defaults Mutex ssl-stapling: using_defaults Mutex proxy: using_defaults Mutex ssl-cache: using_defaults PidFile: "C:/Apache24/logs/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG Define: SRVROOT=c:/Apache24   How can I redirect HTTPS traffic to the full qualified domain name?


I create a tree using node/child in tikz as follows.  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzstyle{nodestyle} = [circle,draw,minimum size=5pt]  \node [nodestyle, inner sep=0pt] {$A|_{\aleph_0}$} child {node {$\vdots$}     child {node [nodestyle, inner sep=4pt] (b1) {$S$}         child {node [nodestyle,inner sep=0pt] {$\{X_1\}$}             child {node [nodestyle, inner sep=1pt] {$X_1$}}}         child {node [nodestyle,inner sep=1pt] (e) {$X_2$}}} } child {node {$\vdots$} child {node [nodestyle, inner sep=2pt] (b3) {$X_1$}}} child {node {$\cdots\cdots$}} child {node {$\vdots$} child {node [nodestyle, inner sep=2pt] (an) {$X_n$}} };  \end{tikzpicture} \end{document}   Now I want to remove the branch above \cdots in child. How do I do it? Thanks.


How can I linearize the IFF-THEN constraint with binary and continuous variable?

I have an optimization problem where  $a_{m,n}\in\{0,1\}$ is a binary variable and $0\le f_{m,n}\le 1$ is a continuous vaiable  I have an Iff-THEN constraint like this  IFF $a_{m,n}=1$, THEN $f_{m,n}>0$  and   IFF $a_{m,n}=0$, THEN $f_{m,n}=0$  How can I linearize them?  I tried as below:  $f>a-1$  $f\le a$  but it is not working


It has been said that an adverb cannot modify a noun.  But 's title is:     Google, Amazon or Even Apple Could Buy Tivo   Here, 'even' I think is an adverb but it does seem to modify the following noun 'Apple'.  How is this possible? Is this an exception to the rule that an adverb cannot modify a noun?


Jquery Right Selector to use with element/button Loaded Dynamically using .html()?

What is the right 'selector' to use to make 'My Button' work? I've searched this site, none seems to work for me?  <!DOCTYPE HTML>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="index, all" /> <title>Example</title>


How do I use shell commands with a directory that contains '-' like '-78059735'?

I have an external program that generates directories with strings that are negative integers. I am trying to use basic shell commands including cd and ls with this directory, for example:  cd -78059735  Understandably, this fails because this looks like command line options starting with -7.      -bash: cd: -7: invalid option   Similarly, these variations also fail:  cd "-78059735" cd "\-78059735" cd '-78059735' cd '\-78059735' cd \-78059735   How do I interact with this troublesome directory through the shell?


Animation nodes prevent objects intersecting

With animation nodes, is it possible to randomly arrange a list of objects in a way that prevents any of the from intersecting, within a certain area?


What ticket reservation do I need for a Schengen visa?

I have a visa appointment this Friday 19 at the Italian Consulate in Philadelphia and I have a question about the flight reservation requirement: According to the Visa requirements "Confirmed flight reservation for a round trip showing complete itinerary."  Does this mean I have to reserve the tickets, pay and print the itinerary?  In this case if my visa gets denied then I will lose the money I paid or can I just show the planned itinerary (written not booked)? in this case the travel agency would not give me the Travel Insurance coverage until I book and pay for the reservation.   I am a US green card holder and applying from North Carolina.


Why don't wizards use more than one wand like when Harry uses three?

In the seventh book, when Harry is escaping from Malfoy Mansion he grabs three wands from Draco Malfoy and uses a spell against the snatcher Scabior. The effects are described as more powerful than a single wand spell.  What is the downside to this "strategy", for it to not be commonly used among wizards as one can seemingly create more powerful spells?


The Android App regularly forgets my votes after I cast them, especially after commenting

There's a curious bug that keeps tripping me up on the Android app: votes sometimes appear to revert in the client, though they stick successfully server side. I'm using app version 1.0.54 on Android 4.4.3.   I've found a couple of ways this happens:   I'll give a post an up/downvote, the vote arrow will light up and the score will adjust. About a second later, enough time for a server ping and reply, the score will revert and the vote arrow will become unlit. This one happens sometimes. It's been happening for a while, but I'm not sure what version it started. I'll vote, and then leave a comment. When I leave the comment, my vote will revert: arrow becomes unlit, score reverts. This one happens every time. I am pretty sure it emerged just now in this version, 1.0.54.   In either case, if I attempt to re-cast my vote, the app will give me an error saying I've already voted on this answer and can't vote again. If I refresh, I see my vote has stuck, with the arrow lit and score adjusted accordingly. So the votes definitely get cast and stick server side, but the client side goes back to a state before they happened.  This one trips me up all the time: I'll vote, take some action (comment or read or scroll), then think "I thought I voted for that", try again, and get the error.  I suspect it might have something to do with reloading the posts in question from some kind of internal cache after a server reply, and the cached version doesn't have my vote recorded.


Adding space between two table of content entries

I would like to add additional space between some selected ToC entries.  I can achieve this by adding \bigskip in the title. While this produces the required output it also produces an error (associated with the hyperref package - see below).  So it seems there must be a more correct way of doing this.   What I want to achieve:   MWE:  \documentclass{book}  \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc}  \usepackage{hyperref} \begin{document} \addcontentsline{toc}{chapter}{Summary\bigskip}  \addcontentsline{toc}{chapter}{Table of contents} \tableofcontents   \addcontentsline{toc}{chapter}{List of figures} \listoffigures   \addcontentsline{toc}{chapter}{List of tables\bigskip} \listoftables   \mainmatter \chapter{Chapter 1} \section{Section} \end{document}     This produces the following error:     Token not allowed in a PDF string (PDFDocEncoding):(hyperref) removing `\@ifnextchar'      Token not allowed in a PDF string (PDFDocEncoding):(hyperref) removing `\bigskipamount'


Can I obtain trusted SSL certificates without giving out personal information?

I am launching a site that will require secure (ssl) account login, no payments or credit cards involved. Self signed certificates gives annoying warnings in browsers, so I want to get a trusted SSL certificate from an authority. But I want to keep my personal information anonymous. Is there a major authority out there who doesn't ask for personal information, only requires some sort of proof of domain control?


I would like to set things up that there are never more then three hyphenated lines in a row. Is there a command or parameter for this?


How can I get a date popup on the exposed filters of a view on D8 ?  I do not see the option, is it on D8 yet?


Insufficent rights for npm install in Termux on Android

I'm trying to install a Node.js module in a folder, for example, /data/data/com.termux/files/home/storage/shared/documents/projects/code/js/test-npm, from Termux on rooted Android 6 running npm install. Installation starts, but never succeeds, throwing errors and warnings like npm ERR! cb() never called! and WARN tar EPERM: operation not permitted, futime.  Which permissions should I grant to npm and how?  Update 1: tried running npm install in /storage/emulated/0/Documents/projects/code/js/test-npm, got the same errors. Termux has Storage access permission in Android installed apps manager.


Ubuntu version: Ubuntu-12.04.2-desktop-amd64.iso Computer Configuration: X86-compatible desktop computer model Operating system: Windows XP Professional 32-bit SP3 (DirectX 9.0c)    Hardware Processor: Intel Pentium (Pentium) Dual-Core E5300@2.60GHz Motherboard: ASUS P5G41T-M LX V2 (Intel 4 Series Chipset - ICH7) Memory: 4GB (Shitai DDR3 1333MHz) Hard Drive: Seagate ST500DM002-1BD142 (500GB / 7200 rpm / min) Graphics: Intel G41 Express Chipset (256MB / ASUS) Monitor: MON2150 ANALOG (21.5 inches) Optical Drive: Toshiba - Samsung CD/DVDW TS-H652H DVD burner Sound Card: Realtek ALC887 @ Intel 82801G (ICH7) High Definition Audio NIC: Realtek RTL8168E PCI-E Gigabit Ethernet NIC / ASUS    Using Universal-USB-Installer-1.9.3.6.exe I made a boot disk. I restarted my computer, pressed F8, selected USB boot, then got no response from the computer, only a black screen. I removed the USB drive on the restoration of normal Windows start.


Prove the summation:  $$\sum_{i=1}^n i! \cdot i = (n+1)! - 1$$ using induction.   base case:  $n=1$: \begin{align*} \sum_{i=1}^1 i! \cdot i &= (1+1)! - 1 \\ 1 &= 2 - 1 \\ 1 &= 1 \end{align*}   This is a question from my test review packet, currently have the base case completed and I am a bit lost on where to go from there. Any help/hints are appreciated.


I want to show that the property $e^{tA}e^{tB}=e^{t(A+B)}$ implies that $AB=BA$. Here $A,B$ denotes matrices and $t\in \mathbb{R}$.  Im stuck, have tried to expand both sides with their taylor series but not sure if this is the way to go.  Could anyone give me a hint?


Best Fake Proofs? (A M.SE April Fools Day collection)

In honor of April Fools Day $2013$, I'd like this question to collect the best, most convincing fake proofs of impossibilities you have seen.   I've posted one as an answer below. I'm also thinking of a geometric one where the "trick" is that it's very easy to draw the diagram wrong and have two lines intersect in the wrong place (or intersect when they shouldn't). If someone could find and link this, I would appreciate it very much.


How to calculate age in years from dob in c#

private void button1_Click(object sender, EventArgs e)     {         DateTime dob = new DateTime();         textBox1.Text = dob.ToString();         int age;         age = Convert.ToInt32(textbox2.Text);         age = DateTime.Now.Year - dob.Year;         if (DateTime.Now.DayOfYear < dob.DayOfYear)             age = age - 1;      }   How to claculate the age from dob.This is my form1.cs.any ideas please


It is not a good idea to break mathematical insertions in text.  It happens in this example:  \documentclass{report} \begin{document} dfasfsd asdfsdafds asdfsdfds gdsds sfsdd ssfsd  wwer sfdsf ggfh dh dgfdd $r=0.1$ sdfsd sdfdsf asgg sdfsdf a a sfsdf. \end{document}     How to do our best to preserve mathematical insertions on one line? Is there anything more handy than manually wrapping the troubled place in mbox?


Photoshop equivalent to Illustrator offset command

I have the following image...    ...that I'm trying to get a vector outline for in a similar way to the Illustrator Offset command.  I'm looking to have a finished vector look similar to this...    (Note: This is simply a stroke layer style that has been added to the original)  The two outlines must be vector shapes.  Is there anything in PhotoShop that will allow me to do this?


why map's key can't be inserted into a vector by iterator?

I want to get map's keys, save in a vector, so i write the following code: #include <vector> #include <iostream> #include <map>  using namespace std;  int main() {   map<int, int> m = {{1,2}, {4,5}, {6,7}};   vector<int> a(m.begin()->first, m.end()->first);   for (auto i : a) {     cout << i << endl;   // output 3 here   } }  this code print 3 only, which confuse me. I never input 3 into map, where is 3 comes out?


Best starting options to invest for retirement without a 401k

I'm trying to avoid asking a duplicate question, but I feel my situation is more specific than general beginner's saving or investing.  I am a university student with a part time job that does not offer 401k options.  However, I would still like to start saving (and investing) for (possibly early) retirement.  I am already saving 15% of my income to this end and putting it in a regular savings account.  I would like to know what other places I could put this money at my age so I can earn a higher return on my investment.  I am considering, for example, the following options:   High yield savings account IRA Lower risk investing (mutual funds or something like that; I'm not an expert)   What are the advantages and disadvantages of each considering my situation?  Are there any other options I should consider?


I have been trying to solve the following integral $$\int_{0}^{\frac {\pi}{2}} \ln\left (\frac {\ln^2 (\sin x)}{\pi^2+\ln^2 (\sin x)}\right) \frac {\ln \cos x}{\tan x} dx$$ I tried substituting for $\frac {\ln^2 (\sin x)}{\pi^2+\ln^2 (\sin x)}$ and using the properties of definite integrals, but I am not able to proceed with the integral as the $\ln \cos x$ term doesn't get substituted. Is there any other trick that I can employ?


How Can I Expand A Tilde ~ As Part Of A Variable?

When I open up a bash prompt and type:  $ set -o xtrace $ x='~/someDirectory' + x='~/someDirectory' $ echo $x + echo '~/someDirectory' ~/someDirectory   I was hoping that the 5th line above would have went + echo /home/myUsername/someDirectory.  Is there a way to do this?  In my original Bash script, the variable x is actually being populated from data from an input file, via a loop like this:  while IFS= read line do     params=($line)     echo ${params[0]} done <"./someInputFile.txt"   Still, I'm getting a similar result, with the echo '~/someDirectory' instead of echo /home/myUsername/someDirectory.


Showing a set is nowhere dense in $C([0,1])$

Let $E_n$ be the set of all $f \in C\big([0,1]\big)$ for which there exists $x_0 \in [0,1]$ (depending on $f$) such that \begin{align*} \lvert\, f(x)-f(x_0)\rvert \leq n\lvert x-x_0\rvert, \end{align*} for all $x \in [0,1]$. Why is $E_n$ nowhere dense in $C\big([0,1]\big)$.  I have been able to show that $E_n$ is closed in $C\big([0,1]\big)$, but haven't been able to show why the interior is empty. Any advice?...


Should I use \\ to end a line or a paragraph?

I am somewhat confused as to how to approach  the following issue.  In my thesis is have a lot of text and want to group this is using line breaks and paragraphs.  Up to now I have been using \\ to end a line and forcibly start a new line as such:  some text that is the end of the line want.\\ End than the next line starts at the line below. etc   Nothing to worry about.  However if i would like to have some white space ending a paragraph is use the \\ followed by a white line in my 'code'.  This produces the desired result, however i have lot of underfull vboxes when compiling. A. is this related to my use of the \\? B. What is the proper way to end/start a paragraph?  I have read about the \par command but i am not certain how to apply this...  I use the report documentclass and are going towards a 200 page document so i would like to get this right.  I tried to find the answer in existing posts but was not successful.


How to copy all conversation from iMessages to Mac without using Apple ID? Any app to do that?

So I have a long conversation on my iPhone in the iMessages app. It is a long text message conversation with a friend. Now I want a copy of the whole conversation so I can send to another friend.  Right now I do: take a screen shot of every block of the conversation and send to my friend ⇒ 20 screenshots. Not practical for me and my recipient.  I know you can have iMessages in your MAC by using your Apple ID but I don't want to use my Apple ID with iMessages. I want to continue to use my phone number. If I change to Apple ID people will see my Apple ID when I send a message to them using my phone. And I don't want to share this private information.  So is there some app that will allow me to just copy the whole conversation of my iMessage app to someplace else?  Thanks!


Cannot edit my views.. I get a JSON string?

I'm using Drupal v7.22 and whenever I try to Modify the Display on views, and press the 'Add and configure' button on adding a field, or any button that sends data to the server, the page reloads and I just get a long JSON String returned in Chrome, or IE will try to download the return...  Sometimes it'll accept my change, but more often than not, it won't.  It was doing this on 7.21 and then I updated to 7.22 and it stopped for a day or two, now it's doing it again.  I am extremely new to Drupal, but I am a quick learner and most things are going smoothly.  What did I break and how can I fix it?


How can I find out what clients aredoing with my samba server

I have a samba server in my Ubuntu system and I want to know what clients are doing. I want to see:   folders visited by clients even if they are disconnected. files downloaded by clients. IP addresses of clients.


What is the parametrization used in the $\pi = 4$ proof?

You've probably seen this fallacious proof that $\pi = 4$:    The answers to  provide a variety of explanations for why it's fallacious.  But I'd like to try a different approach.  Let the circle be the unit circle (so bigger than the circle shown in the picture) and $\gamma_1(t)$ be a parametrization of the initial square, let $\gamma_2(t)$ be a parametrization of the square with the corners removed, etc.  My question is, what is the limit of $\gamma_n(t)$ as $n$ goes to infinity? Is it a standard parametrization of the circle like $(cos(t),(sin(t))$, or is it a weirder parametrization?  I'm wondering whether it's a weirder parametrization of the circle, because there's a lot of weird parametrizations, like ones that run around the circle twice, ones that's go back and forth, etc. So it's possible that in this case the circle just happens to be parametrized in some weird way that really does generate an arc length of $4$.


How to install Google drive in Ubuntu 13.04?  I am trying to find out an installation file from Internet (by using Google search). But, am not able to find out such installer.


What does this C++ bool expression mean?

So i've tried so find something about this but without any success. Does anyone know what this essentially does (e.g. inside a loop)?  static bool thing = (someFunction(), true);


How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?


Prove the following sequence always results in a perfect square.

There's a problem statement:     For each $m \in \mathbb{N}$, we construct a sequence $m_0$, $m_1$, $m_2,\dots$ denoted $S_m$, recursively via $m_0=m$ and      $$m_{i+1} = m_i + \left\lfloor \sqrt{m_i} \right\rfloor$$      for all $i \ge 0$.   Here, $\lfloor x \rfloor$ is the floor of $x$, the greatest integer less than or equal to $x$.   Hence, we have $\left\lfloor \sqrt{10} \right\rfloor=3$ and $\left\lfloor \sqrt{29} \right\rfloor=5$.      Show that for each positive integer $m$, the sequence $S_m$ contains the square of some integer.   I'm pretty certain that this can be proved with induction. I am just not quite sure what to induct on. Examining examples shows that $S_m$ always results in a perfect square eventually, though I'm not sure how to prove it.


How to put a \dot accent above a \hat accent in math mode?

I use ${\dot \hat E}$ to put a hat and dot on top of an E simultaneously. However, an error occurs.


This is what I am ultimately trying to achieve:  //When the user clicks the liveshow button this happens     $(".liveshow-button").live('click', function() {         if ($(".liveshowDiv2").css('display') == 'none') {             $(".liveshowDiv2").fadeOut(ifadeOutSpeed, function() {                 $('#wrapper-div').animate({ height: $('.liveshowDiv1').height() + "px" }, iresizeSpeed, function() {                     $('.liveshowDiv1').fadeIn(ifadeInSpeed, function() {                     });                 });             });         }         else {             alert('This never gets displayed');             $(".liveshowDiv1").slideUp('fast');         }     });   Basically I want to toggle between liveShowDiv1 being displayed and hidden when you click this button.  But since other things on the page can make liveShowDiv1 hidden, I can't just make a toggle function to do this.  I have to check somehow to see if liveShowDiv1 is being displayed or not.  When it not displayed: display = none  When it is showing display is not in the style tag at all  How can I tell in JQuery when this div is displayed?


Bash script - trying to get path of script

I need to get the path of script.   I can do this manually with pwd but after searching online and I found this script:   DIR=$( cd $(dirname $0) ; pwd)   I don't know what it means. Can someone please explain?  edit:this script is different from that script


Are horn and Spindle torus regular surfaces?

A torus is given by $\{(x,y,z) \; |\; (\sqrt{x^2+y^2} - R)^2 +z^2 = r^2 \}$ This will be a horn torus when $R=r$ and Spindle when $R<r$ I am new to differential geometry of surfaces and I am studying regular surfaces. I only know how to rigorously show a surface is regular. However, in order to show a surface is not regular, I can only do so using the geometry of the surface and look for sharp corners, edges or self intersection. So, my questions is:  In Horn torus, there is no self intersection however, the torus does touches itself. So does touching itself will imply this Horn torus is not regular surface?  In Spindle, the torus is self intersecting, so is this argument sufficient to say that Spindle torus is not regular? can we prove it more rigorously without using geometry?


I have a desktop running ubuntu 10.04  I want numlock to be turned on initially.  What do I have to change to accomplish this?  ~~edit~~  I checked in my BIOS.  It was already set up to have the numlock turned on initially.  Yet it isn't being turned on initially.  I have a USB keyboard: would that break this functionality?   Or, should I ask elsewhere (superuser, perhaps) about how to get that BOIS setting working properly?


Is there any grammar reason why Cookie Monster is not Cookies Monster, in plural. In other languages, its name is translated into plural, otherwise it could be interpreted as it was made of cookie.  Thx


Any alternative for Microsoft OneNote in Ubuntu?

After a major migration from Windows to Ubuntu 12.0.4 Lts, I have found that I can find a substitute for pretty much everything I worked with on Windows 7. the LibreOffice package is an all-out package that can easily meet every requirements and satisfy needs, but there is one thing missing from the equation and that is an application that can open OneNote files with .one extension in  Ubuntu and Kubuntu (Debian). It is a huge hole in there for me to lament about everyday since my students do their homework in OneNote Notebooks, I have to switch to Windows every time, which is like going back to drive a rundown junk car after buying a Mercedes S500 and driving it for a while. it is so dramatically sad. what should I do?


Why didn't Tessio reveal Mike's plot to kill Sollozzo and the police officer?

If Tessio was a traitor to the family, why he didn't reveal Michael's plan to kill Sollozzo?


I have a single name written as my surname in passport, while my given name is blank, will the German Embassy accept this?

I live in Pakistan and I have the single name "sumayya". In my passport it is written in the surname column and my given name column is blank. I'm hoping to go to Germany in April for trade and exhibition. So will the German embassy accept my passport or not? I don't have many days to work this out as I have to submit my passport latest by 20th march.


How to prove that if the determinant of the matrix is zero then at least one eigenvalue must be zero?

For a matrix $A$, if $\det(A)=0,$ prove and provide an example that at least one eigenvalue must be zero.   At first, I tried using the identity that the product of eigenvalues is the determinant of the matrix, so it follows that at least one must be zero for the determinant to be zero. Is this correct? Could I also prove it by using $(A-\lambda I)X=0$, for some $X\neq 0?$  If $\lambda=0,$ then we have $AX=0$, but I can't say $\det(A)\cdot \det(X)=0$ because $X$ is not a square matrix and doesn't have a determinant. How would I continue?


How to convert milliseconds to "mm:ss:ms" format?

I'm working on a program where I search through two text files and compare them (It's a task from JetBrains Academy). At the end I'm tasked to output the time it took to execute this, in the format of "mm:ss:ms". Picture as reference:  This is the code I've written to try to achieve this. I imagine it's pretty far from correct, so I apologize for this, I have been learning Kotlin and programming for not long. val millis = System.currentTimeMillis() val time = String.format("%1\$tM min. %1\$tS sec. %1\$tL ms.", millis);  println("Start searching...") println("Found $number. Time taken: $time ")  The output I get is this: > Start searching... Found 864 / 864. Time taken: 19 min. 53 sec. 611 ms.   The minutes and seconds are wrong, as it took less than a second. I have doubts about the ms, as they would fit on how much time it took. Can someone help me with what I'm doing wrong? Thanks!


Can I transfer trophies and data to a new account?

Okay I have created a sub account on my ps3 as a new user. I wanted to change my psn online id. So I have copied all game data from the old account to my new account, but when I go to play the game it still says the trophies and data belong to the old account. I don't want to delete the old one and lose all my saved games and trophies, is there a way to either unlock and allow my new user to own the data and trophies or transfer the trophies and data so that my new account may own it?


Why is there a definite article before "Hague"?

Teaching definite and indefinite articles to Slavic students is very challenging because they don't have articles in their native languages. For instance, I have quite a few students who use "the" liberally, i.e., before names of cities ("I live in the Prague.").  I often tell my students that names of cities usually aren't preceded by the definite article. In fact, I can only think of two exceptions: The Hague and the Vatican (though the latter is probably short for the Vatican State).  Which leads me to my question: Why do we say "THE Hague"? Thanks a lot!


Since light particles travel at the speed of light, we know it's possible for something to travel at that speed. However, since all things are relative, and if time does stop at the speed of light, then we can not measure the velocity in conventional terms. Consider from the perspective of the light particle, how long does it take to travel a "light year"? If time stops at the speed of light, then how can we rationalize the definition of a "light year"? There is no time from the perspective of the light particle. So, why would not it be transported instantaneously?


Sum of reciprocal of primes to the primes.

Consider the series:  $$\sum_{i = 1}^{\infty}\frac{1}{\mathrm{Prime}(i)^{\mathrm{Prime}(i)}}$$ where Prime(i) denotes the i-th prime.  Proving the convergence of this series is trivial but finding the value to which converges has defied me so far. Mathematica says this series converges to ≈0.287358.  I tried Googling about this series and found very little information about this series.  My questions are:  What does this series converge to? Does this series arise in any context and are there interesting trivia to be known about this series? Is it irrational, transcendental? Does it have a name?


I am used to using \newenvironment to wrap an environment:  \newenvironment{wrappedequation}     {Look out for the equation!     \begin{equation}}     {\end{equation}     Phew, it's over.}   This works fine.  However, it doesn't seem to work with align or align*:  \documentclass{amsart} \newenvironment{wrappedalign}     {Look out for the aligned equation!     \begin{align}}     {\undefinedcommand     \end{align}     Phew, it's over.} \begin{document} \begin{wrappedalign}\end{wrappedalign} \end{document}   produces  ! LaTeX Error: \begin{align} on input line 9 ended by \end{wrappedalign}.   This error must be produced somehow very early in the expansion process (maybe in the argument-grabbing process?), because it doesn't mention the \undefinedcommand that I snuck in there.  EDIT:  Darn it, I knew that this looked familiar.  Is it the same as  ?  Is there any (good) way to wrap align environments?


Sync calendar and contacts with Android smartphone

I use Thunderbird with Lighting calendar addon, which stores calendar data in iCalendar format.   How can I synchronize this calendar and Thunderbird contacts with Android based smartphone (HTC Wildfire).  I know I can use Google Account, but I'd prefer to use bluetooth or even better, local access via wi-fi (no internet connection available).  Is there any complete Ubuntu smartphone synchronization guide somewhere?


texlive now has about 150,000 files, and thousands of packages.  I obviously don't know the vast majority.  I only know what I regularly use.  A long time ago, the LaTeX Companion was my bible, but the most recent edition was so long and is so old by now that I had to give up on this one, too.  is there a list of "most important" and "most popular" packages that I should be aware of but am not yet aware of?  unfortunately, there is no "public use" counter for latex packages :-( .   I did a quick scan through my hundreds of latex files over the years to identify my own list of most used packages, which contain   amsmath array babel booktabs caption color float graphicx hyperref microtype needspace rotating setspace ulem url xcolor   I would consider latex almost useless without about half of these packages.  I also use beamer and tikz, too---not as often, but important.  (I am still keeping an eye on lualatex and context; and every two decades, I am checking back on latex3.)  I think novices and experts would both benefit from a list of "need-to-know" great packages for latex users.  what other essential common packages that every latex user should know did I not list?


Get current editor toolbar tab via Python?

How can I detect and/or change the active tab in the current editor via Python?   Is this doable? I have been digging through bpy.context.region/screen and not yet found a way to list the active tab.


Calculating distance between coordinates

I would like to calculate the distances between a list of coordinates (classic GPS coord.). From coordinate A to B from B to C from C to D and so on, and so forth. Is there any  program, or website, or any QGIS plugin i could use? Sadly im not familiar with R. Any suggestions? Thanks!


Prove there exist $0\le c_1<c_2<\dots<c_n\le1$ where $\sum_{k=1}^n\frac1{f'(c_k)}=n$

A real valued function $f(x)$is differentiable on $[0,1]$, where $f(0)=0$ and $f(1)=1$. Prove that for any integer $n$ there exist $0\le c_1<c_2<\dots<c_n\le1$ where $$\sum_{k=1}^n\frac1{f'(c_k)}=n$$  This is a question a student asked me (I'm a teacher). I have no clue on how to prove it except that I guess it may use the mean-value theorem and the intermediate value theorem. Thanks in advance.


If $|f'_n(x)|\leq \frac{1}{\sqrt x}$ and $\int_0^1f_n(x)dx =0$, then exists a subsequence which converges uniformly

Let $f_n:[0,1]\rightarrow \mathbb{R}$ be continuous functions such that:   $|f'_n(x)|\leq \frac{1}{\sqrt x}$ and $\int_0^1f_n(x)dx =0$ for every $n\in N$. Prove that exists a subsequence of $(f_n)$ which converges uniformly.   I know that I must apply Arzelá-Ascoli theorem. The problem then comes to show that the sequence $(f_n)$ is uniformly bounded and that it is equicontinuous.   What I have noted/done so far:  Since $|f'_n(x)|\leq \frac{1}{\sqrt x}$, if $x,y\in [0,1],x\neq y$, then  $$|f_n(y)-f_n(x)|=|\int_x^yf'_n(t)dt |\leq\int_x^y|f'_n(t)|dt\leq\int_x^y\frac{1}{\sqrt t}dt\leq\int_0^1\frac{1}{\sqrt t}dt = K$$  but I can't use this to solve the problem. Any help? Thanks in advance


Not actually too sure what to title this question. I'm attempting to match only whats between $[( and )] each time. However the regex I'm using is matching the first $[( and last )] in the entire string instead of each individual occurrence within a string. Each occurrence could have literally anything around it. The contents could be even as complex as $[(("$[username]").substr(1))] So the contents should be possible to be anything too. You can see a demo of this regex here:  and the attached screenshot.


Given an undirected graph $G = (V,E)$ Prove the following a) Let $|V| = v$ and $|E|= e$. It holds that $2e <= v^{2}-v$ b) If $|V| > 3$ and $\exists! v_{0} \in V: d(v_{0})=1$, then there is a circuit in $G$.


Algebraic proof that a set generated by irrational rotations is dense in $S^1$.

This is exercise 1.9 in Lie Groups, Lie Algebras and Representations - Hall.     Suppose $a$ is an irrational real number.  Show that the set $E_a$ of the numbers of the form $e^{2\pi i n a}$, $n \in \mathbb{Z}$, is dense in the unit circle $S_1$.  Hint: Show that if we divided $S^1$ into $N$ equally sized "bins" of length $2\pi/N$, there is at least one bin that contains infinitely many elements of $E_a$.  Then use the fact that $E_a$ is a subgroup of $S^1$.   My proof of this proposition is as follows.  Since $a$ is irrational, you can determine that the set of rotations $E_a$ is infinite.  Since $S^1$ is compact we can find two $r_1, r_2$ that are within $\epsilon$ of each other.  Then $r_1^{-1}r_2$ is a small rotation of size $\epsilon$.  Now, $r_1^{-1}r_2$ generates rotations that are within $\epsilon$ distance of any point of $S^1$.    That said, I don't believe that the hint suggested in the problem uses that technique.  My knowledge of algebra is not all that strong so I was hoping someone could shed some light on what is being suggested there.


I have an equation      y = ab + cb'   How would I implement this with only NOR Gates?  Thanks


While rereading the entire Harry Potter series I noticed that the number 7 occurs quite often, for instance:    Seven books Seven Horcruxes planned by Tom Riddle Seven Weasley kids Seven years at Hogwarts Seven Harry Potters Seven people in a Quidditch team   Did J.K. Rowling ever mention why 7 was so important in Harry Potter?


Why does the_date work in the first custom column, but not in the second, in a series of customized Posts columns?

Interesting challenge. I was given a piece of code earlier, which I have modified as follows for the Posts page.  /* add time stamp */ add_filter('manage_posts_columns', 'posts_columns', 5); function posts_columns($defaults){     $defaults['your_date_col'] = __('Date');     $defaults['week_number'] = __('Wk#');     $defaults['week_in_quarter'] = __('Wk/Qtr');     return $defaults; } add_action('manage_posts_custom_column', 'posts_custom_columns', 5, 2); function posts_custom_columns($column_name, $id){     if($column_name === 'your_date_col'){     echo the_date('d M'),' ',the_time('Ha');     }     if($column_name === 'week_number'){     echo 'Here: ',the_date();     } }   Strangely, although the date format that I have given shows up in the first column ("your_date_col"), only "Here: " shows up in the second column ("week_number"). Any suggestions as to why the_date function doesn't work in the second column?


I know there are a plethora of people asking this question because I've read a number of them and am still confused. I have an i3-2100 with 16gb of memory, and an i5-560m with 4gb in a different computer. If I want full 64 bit processor support, and full memory support, should I be using the AMD64 or the Intel x86? I've been using the AMD64 because I saw 64 and assumed that's the one I want for my 64 bit processor. However, reading the descriptions, it sounds like I may have wanted to use the other one. I figured if I used the wrong one it just wouldn't install.  Which one is the correct version for my uses?


For $a, b\in\mathbb{Q}$ I have to show that $\mathbb{Q}(\sqrt{a},\sqrt{b})= \mathbb{Q}(\sqrt{a}+\sqrt{b})$.  Unfortunately I dont even know where to start. We never used these brackets $(-)$ before, so I dont know how these sets are actually defined.  I would be grateful for the definitions (:D) and any kind of help or advice! Thank you!


It has always fascinated me that time is symmetrical in classical physics while, in life, we all experience the flow of time in only one direction.  There is no preference as to the direction of time in classical physics, the only exception being in thermodynamics where, with the introduction of entropy, there is a preferred direction for time's axis. Physical systems evolve in the direction in which their entropy increases (sorry for not being precise...)  Personally, I have never truly accepted thermodynamics as a full theory as it never truly 'explains' why entropy must increase.   But, in quantum theory, there seems to be a preferred direction for time, too. And this has nothing to do with entropy?  The collapse of a wave function in a measurement seems to dictate a direction of time.  Could this be a better explanation for the direction of time or maybe even for thermodynamics?  (Ok, maybe not thermodynamics...)


How can I get out of this teleporting loop in Minecraft?

I was trying to prank a friend, and accidentally created the loop on myself, and now I'm stuck. I don't know where the command block is, and it's on MC Realms. I used the command /tp @a -0 -0 -0. The Realm World is a flatworld, so I'm suspended over the void. Please help!!! I'm stuck, and I have an infinite timer going on somewhere.


Possible Duplicate:             Let $(G,\star)$ be a group with identity element $e$ such that $a \star a = e$ for all $a \in G$. Prove that $G$ is abelian.   Ok, what i got is this: we want to prove that ab=ba, i.e. if aa=e , a=a' where a' is the inverse and bb=e, b=b' where b' is the inverse so ab=(ab)'=b'a'=ba....


Escaping square brackets when using LIKE operator in sql

I am trying to search for this string [Name].[Names - Software].[Names Delivery]  II have the following but its not finding anything:  DECLARE @string AS VARCHAR(50) = '%\[Name].[Names - Software].[Names Delivery]%'  SELECT  Name FROM    sys.procedures WHERE   OBJECT_DEFINITION(OBJECT_ID) LIKE @string ESCAPE '\'   How do I change @string so it will find all instances of the string?


What does if-if-else one-line do in Python?

I ran into this expression in a question here about :  def f(v, i, S):   if i >= len(v): return 1 if S == 0 else 0   count = f(v, i + 1, S)   count += f(v, i + 1, S - v[i])   return count   When I try to write out line two if i >= len(v): return 1 if S == 0 else 0 in a more general form I get an error:  In [3]: if test1 : print x if test2 else print y    File "<ipython-input-3-9d4131fa0c48>", line 1     if test1 : print x if test2 else print y                      ^ SyntaxError: Missing parentheses in call to 'print'    Here is a generalized form:  In [16]: if True : print("first") if True else print("second")  first  In [17]: if True : print("first") if False else print("second") second  In [18]: if False : print("first") if True else print("second") [nothing]  In [19]: if False : print("first") if False else print("second") [nothing]   What do you call this?  I'm surprised you can just take out the second positive case for if...then...else and turn it into if...else.    UPDATE: Sorry bout the python3 noob mistake, I just wasn't paying attention. As noted, the answers don't make sense without the mistake, so I've striked out the erroneous code.


How many different ways can you make $2.00 using only 1 cent, 5 cent, 10 cent, and 25 cent pieces, and 1 and 2 dollar bills (there are 100 cents in a dollar)? I have worked out an equation:  $$p + 5n + 10d + 25q + 100l + 200t = 200$$  Where all variables are non-negative integers. But I don't know what to do from here to figure out how many different sets of non-negative integers there are that satisfy this equation. What do I do next?


Descriptive text for figure depending on location

I often find myself writing see Figure~\ref{fig:figname}, below or see Figure~\ref{fig:figname}, above, or similar phrases.  Is there a way to make LaTeX automatically decide between "above" and "below" depending on the location where the figure is rendered?