Endomondo/Strava +iPhone6 +altimeter Does anyone know if these work together? I see there are dedicated iPhone +altimeter apps for the iPhone, but I can't find info if there is an altimeter built into the iPhone that works with these Endomondo/Strava apps.  So my fear is that my gps is not tracking the correct altimeter information. Should I be worried?
Finding Elevation Change, any method So, I think it'd be cool - for goal setting for example - if I could keep track of my elevation change.  The problem is, the local cyclocomputers I looked at seem to use barometric pressure to determine the change.  This is fine, unless some weather is moving in, which happens not infrequently in the Midwestern United States.  Or do some of them try to use an inclinometer, your speed, and some math you learn in Calculus II to keep track of your change?  That would seem more accurate!  I could try to use a GPS meter, but those things are expensive -  and based on back when I had service to my smart phone, not guaranteed to match my car's odometer for distance even - I've read from some other riders that the distance varies at least slightly from local measurement on a bike as well.   Alternatively, let's say that I ride along a known route.  Is there any good way of plotting that route for elevation change?  Thanks!
How can I create a zip archive of a whole directory via terminal without hidden files? I have a project with lots of hidden folders / files in it. I want to create a zip-archive of it, but in the archive shouldn't be  any hidden folders / files. If files in a hidden folder are not hidden, they should also not be included.  I know that I can create a zip archive of a directory like this:  zip -r zipfile.zip directory   I also know that I can exclude files with the -x option, so I thought this might work:  zip -r zipfile.zip directory -x .*   It didn't work. All hidden directories were still in the zip-file. Simplifying and evaluating $\cot 70^\circ+4\cos 70^\circ$ I have to simplify and evaluate this :   $$\cot 70^\circ+4\cos 70^\circ$$  On evaluating it, the answer comes out to be $1.732$, or $\sqrt 3$ .  I tried to get everything in $\sin$ and $\cos$, but it doesn't go any further. Any hints? How can I compute the distance between two coordinates in TikZ? Given two points (defined, for instance using nodes), I want to compute the distance between them.   Is there some build in functionality in tikz to do this? If not, how can it be done using the mathematical engine?   The application I have in mind is to draw an circular arc centered at (a) and passing through some second point (b), where only (a) and (b) are known. After the  of registering an account to book train tickets online using my British VISA card, I finally got into a position of being able to book a ticket, but what it appears to be telling me is that I'm only being added to a wait list, which I assume means my tickets aren't confirmed.  Can someone explain how the wait list works, and what my chances are of getting on the train successfully?    It currently says the wait list is 7 The train is the Mandor Express, from Delhi to Jodhpur on the 18th of Nov   Update: So I got the train! Although it didn't get confirmed until a few hours before it was due to leave. Why can I modify a read-only file? Short Question:  Why can we manipulate a read-only file in Vim using : + w + q + ! even without being an administrator?  Long Question:  I have a text file (myFile.txt) which is read-only for everyone:  navid@navid-ThinkPad-T530:~/ubuntuTest$ ls -l myFile.txt  -r--r--r-- 1 navid navid 26 Aug 22 21:21 myFile.txt   I can open it with Vim without having admin privileges:  navid@navid-ThinkPad-T530:~/ubuntuTest$ vi myFile.txt    I modify it and press: Esc + : + w + q + Enter and I see this error message:  E45: 'readonly' option is set (add ! to override)   So far, everything makes sense.  But when I press: Esc + : + w + q + ! + Enter, Vim saves the changes.  I'm using Ubuntu 16.04 and VIM 7.4. If $f'(x)\le g'(x)$, prove $f(x)\le g(x)$ I have to do the following exercise:     Let $f$ and $g$ two differentiable functions such that $f(0)=g(0)$ and $f'(x)\leq g'(x)$ for all $x$ in $\mathbb{R}$. Prove that $f(x)\leq g(x)$ for any $x\geq0$.   Now, I know this is true because the first derivative of a function is the angular coefficient of the function in a point $x$. So, $f'(x)\leq g'(x)$ means, in other words, that the function $g(x)$ grows faster than $f(x)$. I think this is the base for a more formal proof, could someone help me to figure out a more formal proof? Probability of winning the game 1-2-3-4-5-6-7-8-9-10-J-Q-K A similar question to mine was answered here on stackexchange:    However, I am unable to follow the formulas so perhaps someone could show the calculation and the way they arrived at it to answer this question.  My card game is very similar, except the counting of cards goes all the way from 1 (Ace) through to King and then restarts.  If you can make it through an entire deck of cards without hitting the same ranked card you win.  So, for example, if you call out Ace - 2 -3 - 4 - 5 - 6, etc. and hit "7" when you've just called out "7", you lose.  What is the chance of winning this card game? Avoiding first chance exception messages when the exception is safely handled The following bit of code catches the EOS Exception  using (var reader = new BinaryReader(httpRequestBodyStream)) {      try {         while (true) {             bodyByteList.Add(reader.ReadByte());         }     } catch (EndOfStreamException) { } }   So why do I still receive first-chance exceptions in my console?      A first chance exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll   Is there a way to hide these first chance exception messages? Why prefer composition over inheritance?  What trade-offs are there for each approach?  When should you choose inheritance over composition? Is a current transformer appropriate for a voltage step up flyback converter? I am designing a flyback converter, input 170V output 1200V at 2mA.  I am having trouble finding an appropriate transformer, most do not have a high enough N. Current transformers seem to have ranges in 1:500, so I could work with that.  Is it proper to use a current transformer as a conventional step up voltage transformer? How do you check the windows version in Win32 at runtime? How do you check the windows version in Win32 at runtime? How can Finder empty Trash more quickly than "rm -rf /Volumes/Foo/.Trashes/501/*"? The "Trash" of a 16-GB usb2 flash drive had 3.4-GB of data. I emptied it as such:     $ cd /Volumes/FooDrive/.Trashes/501   $ rm -rf *   This took over 5-seconds. That seemed pretty long. So, as a test I just decided to empty the Trash of all of my drives via Finder. Other drives: 2-TB usb3 500-GB usb2 16-GB usb2 250-GB ssd  I measured the size of the Trash as such:       $ du -ch /Volumes/WhateverDrive/.Trashes   There was 15-GB in the Trash of the 500-GB drive, and 5-GB in the Trash of my other 16-GB flash drive. I didn't measure the other drives.  Finder appeared to take much less than 5-seconds to empty the Trash for all those drives.   Does Finder really empty the Trash so much more quickly than /bin/rm? How?   Does Finder just make the "clicking sound" (signaling the trash is empty) before the Trash on all the drives is really empty? Example of a function such that $\varphi\left(\frac{x+y}{2}\right)\leq \frac{\varphi(x)+\varphi(y)}{2}$ but $\varphi$ is not convex I vaguely remember a SciFi novel from my younger days, where scientists discover "alternative" forms of power beside electromagnetism.  I do not remember the specific forms, but it was something along the lines of "electrogravity", "magnetogravity" etc. -- you get the idea. If I remember correctly, the effects of these power forms were basically psionic / magic in nature.  Unfortunately I remember very little of the actual plot, and couldn't put it into words with any coherency. Some treachery from within the group of scientists, perhaps some involvement of aliens? I cannot really remember. I just remember I enjoyed the story very much, and would like to re-read it.  The title could be "The fifth column" or similar -- then again I might be confusing two seperate novels.  I know that's not much, sorry. Anyone remembers this? How can I pay tolls on Japanese expressways? I'm renting a car soon in Japan and am planning to travel on the expressways. What's the best way to pay tolls? Apt "Connection failed" Since installing Ubuntu I have been unable to install new packages, it has even failed to update. Below is a dump of connection error I see when I tried to install Wine:  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb  Connection failed [IP: 91.189.88.152 80]  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb  Connection failed [IP: 91.189.88.162 80]  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? If $f$ is entire and $|f|\geq 1$, then show $f$ is constant. I know I'm going to use Liouville's Theorem, but my main question is why is $1/|f(z)|$ entire as well if $f$ is entire? Is this just a basic property: if $f$ is entire, then $1/f$ is entire? Thanks for the help. I use this program in Windows that's one-box and searches all of my drives. By default it lists all files, everywhere, in a single list. Is there a Linux graphical utility that does this? Why is cpu_idle called as the last function of the start_kernel routine? I'm reading the  function in /init/main.c.  The last function called in start_kernel is rest_init, and at the end of rest_init, cpu_idle is called.   Why is it called as the last function of the start_kernel routine, and what does it do? I have FlexiPage Home_Page_Default.flexipage assigned as Default Home Lightning Page for all profiles in one sandbox. I need to migrate it to another sandbox and assign as Default Home Lightning Page for all profiles in the destination sandbox.   I am able to retrieve and deploy that flexipage but looks like I am not able to assign it automatically as Default Home Lightning Page for all profiles in the destination sandbox using Force.com ANT Migration Tool or changeset.  Is that possible to migrate default home flexi page assignment from one organization to another using ANT Migration Tool or changeset?  If this is possible then how?