Do I really need mobile internet?

Written on 2 October 2015, 02:07pm

Tagged with: , , ,

In the beginning of this week I started a little experiment. I did not reload my prepaid phone card – meaning I no longer had the usual 2Gb of mobile internet which were typically lasting for 3-4 weeks. I didn’t really know what to expect: without being a social media guy (probably one of the last on this planet not being on Facebook), I thought that FOMO will kick in. Well, it didn’t, maybe also because I was not 100% disconnected, still being able to access the internet from work.
Here are my top 10 findings, collected in a random order. Next to each item I put a score representing how much I missed the connected mode:
1 – not missed it at all
2 – not missed it, but it was nice to have
3 – missed it, but I could easily find a workaround
4 – missed it; the alternative is inconvenient or time consuming
5 – definitely missed it; impossible to do offline and no real alternatives/workarounds

My offline experiment

1. Music: I missed the fact that I could not listen to a particular song that crossed my mind and I had to rely on the offline playlists. Also, on one occasion I could not Shazam a song playing on the radio. Score: 3/5
2. Email: Not receiving emails on the fly is not a problem; I rarely receive emails I must respond urgently. In any case I could check the email several times per day from work. What was really annoying was the fact that I could not snooze emails to have a clean inbox. Score: 3/5
3. Photos: Here the only problem was not being able to post the photos on flickr or share them with family on Google Photos. Not very annoying, so score: 2/5
4. Files: Accessing files from Dropbox could eventually be replaced using the website; but extracting a file stored on my iPhone (like a photo or scanned invoice) required connecting the device to my work computer, which is not always possible and definitely inconvenient. Score: 4/5
5. News: Being informed is important to me, and I like being notified about the latest news. I use Newsify as feed reader – and during the test I had to make sure that I download the news in the morning. I was eventually catching up with the updates in the evening, along with the football and local news. Score: 3/5
6. Connected devices: Here I found that the mobile internet is essential. I was no longer receiving updates from my connected security camera or smoke detector, unable to see/set the home temperature or to find my Tile. Internet of things, so score: 5/5
7. Messages: switching from iMessages to old-school SMSs was not an issue in communicating with the persons that already knew about my experiment. But it was an issue for the ones who didn’t, so I was not receiving iMessages until the evening. Also, I was unable to send/receive other media than simple text. On the other hand, synchronous communication is not ideal, so score: 2/5.
8. Weather: In Belgium the weather can change quickly. So I got used to checking the forecast regularly and have the temperature displayed on my watch. Also, I was relying on push notifications to have weather updates twice per day. With the offline mode being active, I had to make sure that every morning I check the weather from home. Score: 2/5
9. Maps: During the experiment I did not need the maps. However, I know that it’s a feature that I use from time to time, and I would rate it as essential. The alternative would be to download maps for offline use, but it’s not always practical. Score: 4/5
10. Others: I realized that I am using the mobile bank app more often than I thought. But this was not an issue and it can always wait for the wi-fi.
Tracking car fuel consumption was still possible by taking a few pictures and filling the data at home.
Checking the mobile operator stats (credit, usage, etc) was impossible even on wi-fi (cellular data must be enabled), but I could always send a mobile request (#120# or similar).
Calendar, TV schedule or Skype could always wait for the wi-fi.
Overall, I would put score: 2/5.

Conclusions

Being disconnected is not a first world problem. We got used to do certain things from mobile internet. Meanwhile, it’s true that the current technology makes it incredibly easy to introduce yourself ‘mobile’ needs: communication, information, home automation, secure mobile banking, etc.
During the offline experiment, I also noticed some benefits. Being offline meant:
– more time to read e-books or 100-pages long PDF posts
– more time to play Peak
– more time to take/edit pictures
But being disconnected did not meant I stopped using my iPhone. Nor that it pushed me to buy newspapers/books. It just meant that it made me plan better for the day, re-organize things and make the most of the wi-fi usage.

To answer the question in the title – yes, I need mobile internet. After all, my scoring system above indicated that 3 items out of 10 scored 4 or 5, and the average was 3/5. What’s more important, mobile phone slowly becomes synonym with mobile internet device. And that’s the point to remember.

brussels

Time dilation

Written on 7 August 2015, 02:47pm

Tagged with: , ,

The passing of time can be altered by 2 factors, gravity and velocity.
Increase in both gravity or velocity will slow down time.
1. Gravity: Everything likes to live where it will age the most slowly, and gravity pulls it there (Kip Thorne – the Science of Interstellar)
2. Velocity: A space traveler approaching the speed of light will age slower than another one staying on the earth (Twin paradox).
What does this mean?

On the ISS, time runs slower because of the high speed

Altitude: about 400km
Orbital speed: 8km/s
Time dilation: 0.01 seconds slower every year
The smaller gravity pull from the Earth accelerates the time, but not enough to compensate for the velocity of 8km/s which slows down time. So in the end, an astronaut spending 6 months on the ISS will be about 0.005 seconds younger.

[On the ISS] Velocity has increased for the astronauts, slowing down their time, whereas gravity has decreased, speeding up time (the astronauts are experiencing less gravity than on Earth). Nevertheless, the ISS astronaut crew ultimately end up with “slower” time because the two opposing effects are not equally strong. The velocity time dilation is making a bigger difference, and slowing down time. The (time-speeding up) effects of low-gravity would not cancel out these (time-slowing down) effects of velocity unless the ISS orbited much farther from Earth.
–wikipedia

On the GPS satellites, time runs faster because of the decrease of gravity

Altitude: 20.000km
Orbital speed: 4km/s
Time dilation due to velocity: 7 microseconds per day
Time dilation due to less gravity: 45 microseconds per day

The combination of these two relativistic effects means that the clocks on-board each satellite should tick faster than identical clocks on the ground by about 38 microseconds per day (45-7=38)! This sounds small, but the high-precision required of the GPS system requires nanosecond accuracy, and 38 microseconds is 38,000 nanoseconds. If these effects were not properly taken into account, a navigational fix based on the GPS constellation would be false after only 2 minutes.
The engineers who designed the GPS system included these relativistic effects when they designed and deployed the system.
GPS and relativity
[Contrary to popular belief, GPS satellites are not in geosynchronous or geostationary orbits). The satellite orbits are distributed so that at least 4 satellites are always visible from any point on the Earth at any given instant (with up to 12 visible at one time)]

Inspired by: The Science of ‘Interstellar’ Explained (Infographic)
wallpaper

Computer entropy

Written on 6 May 2015, 08:55am

Tagged with: , ,

I recently had an issue with a Tomcat server taking very long to restart. It was bizarre because when the system was starting, the Tomcat server was taking about 20-30 seconds to start, but a subsequent Tomcat restart was taking 20-30 minutes.
The logs indicated that the following step was taking a lot of time:
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [135172] milliseconds.

This lead to the Tomcat page with advice on faster startup. The problem was – Tomcat was using /dev/random as source of randomness, and when the entropy pool was exhausted, this device was blocking.
This explained why the problem was not manifesting right after system restart: because of the associated ‘noise’, there was a lot of entropy. But after the system was stable, the entropy pool was depleted.

The solution to this is to tell Tomcat to use the non-blocking /dev/urandom device instead of /dev/random:

When read, the /dev/random device will only return random bytes within the estimated number of bits of noise in the entropy pool.

A counterpart is /dev/urandom (“unlimited”) which reuses the internal pool to produce more pseudo-random bits. This means that the call will not block, but the output may contain less entropy than the corresponding read from /dev/random.
wikipedia

So, to make Tomcat use /dev/urandom you have 2 options:
1. As indicated in the Tomcat slow startup troubleshooting guide: Configure JRE to use a non-blocking entropy source by setting the following system property: Djava.security.egd=file:/dev/./urandom

2. Change the $JAVA_HOME/jre/lib/security/java.security settings file:
securerandom.source=file:/dev/urandom
instead of
securerandom.source=file:/dev/random

More about entropy

(more…)