Suramya's Blog

Visit suramya.com Who am I?

December 29, 2014

Kids these days….

Filed under: My Thoughts — Suramya @ 11:19 PM

I was surfing the web and found yet another post by some ‘genius’ who claims that people below 40 can’t fix anything and just consume. Considering I am 34 right now I must be one of those people who can’t fix anything. So I guess the tooth fairy must have come and fixed all the stuff I have repaired over the years and the same must be true for things that my friends fixed (or permanently broke in some cases), or created or improved on.

Every few years a post or an article will come out stating something to the effect of “Woe is me, the kids nowadays don’t know anything. They refuse to learn and just want to play on ‘gadget x’ and not listen to their elders (me)”. Here’s a quote that most of these folks will agree with “The children now love luxury. They have bad manners, contempt for authority; they show disrespect for elders and love chatter in place of exercise.”. Can you guess who made this quote? It was made by Socrates in Greece. Yes, that Socrates. Every generation thinks that the next generation is useless, they don’t do enough, they have it easy whereas the previous generation had so many hardships that they barely had any fun.

One of easiest ways to put down someone is to make such baseless statements that ‘kids nowadays don’t fix anything’. Guess what, plenty of them do fix stuff, or build new things. If that wasn’t the case then all new inventions will have stopped in another 30-40 years because anyone capable of making new stuff would have died by then. Just because they don’t fix stuff/or work on things the same way you did doesn’t mean that they don’t know what they are doing.


I am tired of the kids these days posts

If you still think that is the case, visit the nearest hackerspace or checkout sites like hackaday.com. There are plenty of folks out there who are pushing the limits of both hardware and software. For example this virtual machine in Excel was created by a highschool student. If folks weren’t out there pushing the limits then event’s like Hacking for Kids, rootz etc would not exist and companies selling electronics/hacking tools for kids would go out of business.

Keep in mind that not everyone has the same aptitude, take my dad and my mom for example. Dad loves to take things apart and fix them while mom prefers to write articles and read. The same is true for my nephews/nieces as well, some of them are technically inclined and others are not. It is human nature. Think of how boring it would be if everyone was interested in the same thing.

Please do me a favor, stop publishing this nonsense, all you are doing is telling people that you are an idiot (I wanted to use a much stronger word but…) who is stuck in their ways and is scared of the next generation so goes out of their way to put them down. I am going to close this post with two words for these folks “Grow up…”.

– Suramya

December 26, 2014

Writing A Virtual Machine In Excel

Filed under: Computer Software,My Thoughts,Techie Stuff — Suramya @ 6:03 PM

Microsoft Excel should soon be classified as an Operating System. In the past we have seen a 3D shoot them up Doom Clone, a Flight Simulator and other games included in it as Easter eggs. Then we saw people using it to watch movies at work, and now here’s the latest entry that forces Excel way outside its comfort zone…

A programmer named Ádám was participating in a contest where he had to solve a problem in Excel but the official rules prohibited the use of Excel macros so he went and created an assembly interpreter for Excel and used it to solve the problem instead. Talk about overkill. The idea is quite interesting. However the thought process required to imagine this as a possibility and then actually going ahead and implementing this is mind boggling.

This is a virtual Harvard architecture machine without writable RAM; the stack is only lots and lots of IFs. The instructions – mostly load, MOV, JNZ, INC, and CMP solves this problem, examining two inputs to see if they multiples of each other. If you’re wondering, an example cell from [Ádám]’s Excel sheet looks like this:

=F6
   INDEX($C$2:$C99999,$G2,1),
   IF(AND(INDEX($B$2:$B99999,$G2,1)="JZ",$I2=0),
      INDEX($C$2:$C99999,$G2,1),
         IF(AND(INDEX($B$2:$B99999,$G2,1)="JNZ",$I2<>0),
         INDEX($C$2:$C99999,$G2,1),
         G2+1
         )
      )
   )
)

You can check out Adam’s solution at Hackaday.io if you are interested. I think I am going to go find my excel for Dummies book now and get just a little bit more proficient in it.

Thanks to hackaday.com for the original article.

-Suramya

December 12, 2014

My new toy: the Moto 360 smart watch

So I have a new toy that I am super excited about and It is a birthday gift from me to myself. :) I have been wanting to get a smartwatch since last year when the Samsung gear came out but when I saw the gear I didn’t like the way it looked so ended up not buying it. Now that I have bought the Moto 360, I am glad I didn’t buy the gear because it beats the Gear hands down, no questions asked. I have been using it for 3 days now and I love it.


The Moto 360 with the default Face

The initial setup of the watch was easy, I just had to download an app on my phone and follow the prompts, took me about 2 mins (excluding the time to download the app) to complete the pairing and setup. Once the app was installed the watch downloaded the latest firmware and upgraded automatically after I charged the battery which was surprisingly very fast. Once the upgrade completed it was connected to my S5 and has been working like a charm.

The default apps on the 360 are the Fitness apps, ability to receive any notifications on the watch and control the music app and the Google camera app from the watch. It has built in voice recognition which works fantastically great and is integrated with Google Now. Tonight we tried it out in a restaurant where we had gone out for a team outing and it had no trouble with the voice recognition even with the background noise. In addition to the default apps so far I have also installed a flashlight app, a dictation app and another camera app that lets me use the watch as a viewfinder for the camera on my phone. I keep finding cool new apps for the watch every day so will probably be installing a lot more stuff on it in the near future.

As I said earlier Voice recognition works for most of the things I would want to do on the watch, like use to to initiate a call or dictate a reply to an SMS, start an app etc. For the rest the touch screen works fine. Took me a bit of time to figure out how to run the new apps I installed because that isn’t really intuitive initially (or maybe I was just sleep deprived) but once I figured that out I was good to go. I think it would have made sense for them to put this in the help section.

The watch is not bulky at all and is lighter than my other watch. Lots of folks have complained about its size online but I didn’t find that to be an issue. However the battery life could have been better. In my daily use I am down to about 35% charge by the time I am ready to sleep after starting with a full charge in the morning. The charger looks nice and the charging is fast, however since the watch has a custom charger it means that I have to make sure that I carry it with me when I am traveling because none of my other chargers work with it. Sure, I can buy another charger for the office but it’s a pain.

The other issue that I noticed with it is that the heart rate sensor is crap. Every single time I have tried to check my heart rate (using both fit and the Moto software) it has failed with a sensor time out message, although Vinit did manage to get it to work once so I know the sensor works.

For the most part I have been using the watch to read my SMS/Whatsapp/Email messages without having to pull out my phone and monitoring my step count. Apparently I walk around a lot more than I thought which is good. :) Also the ability to decline calls with a message from the watch is very handy when your phone is at your desk and you are at another desk working on something or in a meeting.

I am planning on installing the Analog keyboard for Android that I blogged about earlier but that will be over the weekend when I have some breathing room to experiment. I will share my findings and experiences going forward so if you are interested do keep an eye on the blog for new posts.

Well, this is all for now. It’s time for me to crash for the night. Will post more later.

– Suramya

November 26, 2014

Amazing Shipping options on Ebay

Filed under: Humor,My Thoughts — Suramya @ 11:02 PM

So I was trying to buy a new Hard Disk from ebay and get it shipped to one of my co-workers place before he fly’s to India. (Yes, another one. What can I say; you can never have too much storage). Once I put it in my shopping cart I got the option to select the Shipping and there I got to see the amazing gem below:

Shipping Options on ebay
Shipping options on eBay by Newegg

So I can choose to get my shipment on the 3rd of Dec for free, or I can pay $4.99 or $17.85 and get it quicker on the 3rd of Dec… Now how do I choose which is the best option for me, I think I will go for 3rd Dec for free… Another interesting thing is that the 1 day shipping for which I would shell out $25.16 will get me my package on the 1st Dec (4 days from the day I ordered). Unbelievable.

– Suramya

November 21, 2014

Uber pricing: Be careful when requesting a car

Filed under: My Life,My Thoughts — Suramya @ 6:23 PM

In the past few weeks Uber has been in the news a couple of times, most recently after one of their VP’s suggested hiring a million dollar team to dig up dirt on hostile journalists and their families but that is a whole different story and not something this post is about. Today I am going to talk about how the price for Uber cabs fluctuates and why you should check the cost before clicking on the Book button. BTW, this is based on an off the fly method of data collection and for Uber in India (Bangalore to be specific). Other places might have a different experience.

First, lets start with a bit of background. I had gone out with my team for an office outing and while we were figuring out the transportation back to the office I looked at the Uber costing to see if it made sense to just get uber instead of waiting for other options. (We didn’t take uber that day but that is a different story). The next day at work I was talking to a team member and I mentioned that the cost for uber would have been Rs 200 min, and about Rs 18/km after that which is quite of for that time at night. She was skeptical so I opened the app to show her the prices and imagine my surprise that the numbers were quite different: Min Rs 250 with Rs 30/km. This started me thinking, and I was curious so I kept a log of the costing for both UberX and Uber Black for the next few days at various times in the day.Basically whenever I remembered to look, which is why this is not a scientific study.

The numbers are as follows:

Date/Time Service Minimum Cost Cost per KM
12th Nov 11:20pm Uberx 125 Min 15/km
12th Nov 11:20pm UberBlack 200 Min 18/km
13th Nov 12:32pm Uberx 250 Min 30/km
13th Nov 12:32pm UberBlack 200 Min 18/km
13th Nov 7:20pm Uberx 250 Min 30/km
13th Nov 7:20pm UberBlack 400 Min 36/km
14th Nov 5:00pm Uberx 162.5 Min 19.5/km
14th Nov 5:00pm UberBlack 240 Min 21.6/km
15th Nov 1:31am Uberx 125 Min 15/km
15th Nov 1:31am UberBlack 200 Min 18/km
19th Nov 7:20pm Uberx 250 Min 30/km
19th Nov 7:20pm UberBlack 200 Min 18/km

so as per the numbers above the best time to take uber would be around 11:30pm. Worst time is early evening around 7:30pm.

So if you take an uber cab late night one day and pay X then take it again the next day morning to go back to the same place you will actually end up paying quite a lot more than what you were expecting based on the previous fare. Which is why you should check the pricing before you click the book, else you might be in for a rude surprise.

Well this is all for now. Will post more later.

– Suramya

November 18, 2014

World’s largest chocolate producer: We are running out of Chocolate!!!

Filed under: My Thoughts — Suramya @ 1:23 AM

I hear <Silence> just before all hell breaks loose as millions of women freak out at the same time after reading this headline :) and no, this is not a joke, Mars, Inc. and Barry Callebaut who are the worlds largest producers of chocolate have the numbers to prove that we (and by we I mean you all, since I don’t really like chocolate that much) are eating more coco than is being produced. Last year farmers produced 70,000 metric tons less than the amount consumed and the trend is increasing. By 2020 this number is expected to rise to 1 million metric ton. Ouch!.

The problem is, for one, a supply issue. Dry weather in West Africa (specifically in the Ivory Coast and Ghana, where more than 70 percent of the world’s cocoa is produced) has greatly decreased production in the region. A nasty fungal disease known as frosty pod hasn’t helped either. The International Cocoa Organization estimates it has wiped out between 30 percent and 40 percent of global cocoa production. Because of all this, cocoa farming has proven a particularly tough business, and many farmers have shifted to more profitable crops, like corn, as a result.

Then there’s the world’s insatiable appetite for chocolate. China’s growing love for the stuff is of particular concern. The Chinese are buying more and more chocolate each year. Still, they only consume per capita about 5 percent of what the average Western European eats. There’s also the rising popularity of dark chocolate, which contains a good deal more cocoa by volume than traditional chocolate bars (the average chocolate bar contains about 10 percent, while dark chocolate often contains upwards of 70 percent).

Looking at this article I am tempted to start stocking up on chocolate and in a few years time I can sell them for 10 times the price… All I will have to do is figure out how to keep my sister and other friends from eating up my stash before I sell them. ;) I believe that will be an impossible task now that I think about it in more detail.

If there was a similar article about caffeine then I would be one of the people freaking out, but since it is ‘just’ chocolate I am fine and not worried. So I will go back and finish my book then go to sleep.

You can read more details about the issue at the Washington Post and Bloomberg.org site.

Story Via: Slashdot.org

– Suramya

November 17, 2014

Microsoft launches free Visual Studio Community 2013

Microsoft is on a roll recently and is becoming more and more active in the open source community by releasing many of it’s core tools and programs as open source, making them free and cross platform. Earlier this week news came out that MS had released a significant portion of their .NET framework under a permissive opensource license on Github. Before everyone had even finished digesting this news MS posted news that it is releasing Visual Studio Community 2013 as a free download for individual and small business use (teams of up to five people).

This is a brilliant move on their part to keep their market share. One of the major issues people had when developing software for Windows using Visual studio was the cost associated with the licenses. When I was in school and wanted to get a licensed copy of Visual Studio for my use I was told to go buy a pirated copy because the original cost was way too high (Rs 60,000 if you want to know). Keep in might that this is before the Dot com and Tech boom so that amounted to a couple of months of salary for most folks. As you can imagine most people went for the pirated version instead which costed Rs 100 or so. Now fast forward a few years to when open-source started taking off, now the development environment could be downloaded off the internet legally for free. A lot of folks including me switched to open source development tools. The only people still using MS Studio were either using their work/university licenses or were on pirated copies.

Now with .NET opensourced and available for use on Linux, Mac and windows, making a free version of Visual Studio available makes it easier for people to start working on and building software in the MS ecosystem.

I know of a few people who will find this news exciting. For the rest of us, this doesn’t impact us directly but definitely shows which way the wind is blowing in the software world and highlights the fact that FOSS is here to stay. :)

Official Announcement: Microsoft Blog
Via Betanews.com

– Suramya

PS: I know that Visual Studio express has been around for a while but it was a severely limited version as opposed to the Community version just released.

November 16, 2014

Pay for clothes using your social network clout…

Filed under: My Thoughts — Suramya @ 10:38 PM

Finally the day a lot of people have been waiting for has arrived. Now you can pay for actual physical clothes using your social network clout. What does that mean? Basically if you are buying stuff at OnePiece’s pop-up store in New York City anytime before the 17th of Nov you will get $1 off for every 500 followers you have across social networks. Which would give me just about $0.50 discount if I ever shopped there :)

As nice as Klout’s perks can be, they’re infrequent and sometimes have arcane rules. Wouldn’t it be better if you could simply translate your social networking status into cash? OnePiece’s pop-up store in New York City is letting you do just that. Swing by 577 Broadway no later than November 17th and the clothing shop will give you a $1 discount for every 500 followers you have across common social networks, including Facebook, Instagram, Twitter and YouTube. While you’re capped at $500 (Hollywood A-listers need not apply), that’s more than enough to score some fresh threads for free. Yes, it’s a publicity grab — but it’s also a genuinely good deal if you’ve spent years cultivating an online following.

I get a ton of ‘friend’ requests on a fairly regular basis but usually I reject most of them outright. For me the only folks in my friend list are folks that I consider friends (apart from a few authors that I want to keep in touch with) and have an interest in keeping up with. This does not include folks I don’t know, just because you are a friend of a friend doesn’t mean we should become friends on FB if we have never met. Or if I took your interview for a job doesn’t mean that it is ok to add me as a friend on Facebook (Yes, this actually happened). For some reason, this small concept seems to be very hard for people to understand. People use the no of friends/followers as a sort of measuring stick for their popularity and if you don’t have many followers then in their mind you are not important enough.

I rarely sign on to my Facebook account and I have posted some 3-4 tweets from my twitter account since I started it a few years ago (those were to complain to Airtel). I am sure if I start becoming active on the network I can easily increase the no of friends I have many fold. But what’s the point?

Anyways, enough ranting about Social media for today. I am going to go finish my book and then crash for the night. Will post more later.

– Suramya

Source: Engadget.com

November 13, 2014

Stupid people might be stupid because of a virus infection

Filed under: Interesting Sites,My Thoughts — Suramya @ 11:37 PM

All of us know stupid people and at times have thought about how could a human be so dumb and still survive. Now after years of research Scientists at the Johns Hopkins Medical School and the University of Nebraska have found a possible reason for some of the folks being so dumb. There is a virus that exists in the green algae found in ponds and lakes that affects cognitive functions in the brain. In their tests 44% of the test subjects had the virus infection and those who tested positive for the virus scored 7-9 points lower on tests designed to measure the brain’s accuracy and speed.

They then ran some tests on mice after infecting them with the virus and found that the infected mice had a harder time exiting from the test maze than uninfected mice.

The researchers were conducting a completely unrelated study into throat microbes when they realised that DNA in the throats of healthy people matched the DNA of a chlorovirus virus known as ATCV-1.

ATCV-1 is a virus that infects the green algae found in freshwater lakes and ponds. It had previously been thought to be non-infectious to humans, but the scientists found that it actually affects cognitive functions in the brain by shortening attention span and causing a decrease in spatial awareness.

The researchers then studied how ATCV-1 affected mice by injecting the virus into their digestive tracts.

They then put the mice into a maze, where the animals infected by the virus had a more difficult time finding their way round and were less likely to pay attention to a new object or notice a new entry that had been previously inaccessible.

ATCV-1 was able to get into the hippocampus pathways of the mice and alter the expression of genes relating to memory formation, learning and synaptic plasticity (an important foundation of learning and memory), as well as how the immune systems of the mice responded to being exposed to the virus.

The full study is is published in the Proceedings of the National Academy of Sciences (PNAS) journal.

Thanks to Slashdot.org for the link to the original story.

– Suramya

November 8, 2014

Be careful of software claiming to hide your data on your Phone

Filed under: Computer Security,My Thoughts — Suramya @ 11:59 PM

Yesterday (well, technically today) I was trying to find some data on my old phone to copy to my new phone so I decided to copy over all the folders from the phone to my desktop to make it easier to look through it. While I was going through the data I found a folder called .keepsafe under the Android/data folder so I looked in it cause I got curious and found some interesting data. Actually before I tell you what I found lets take a step back and go over what Keepsafe is: It is an app for both iOS and android that allows you to hide photos/files on your phone and then only people with the correct PIN can view them. From their site: “You lock your rings in a jewelry box. You lock your certificates in a cabinet. Now KeepSafe makes sure your personal files are locked down and hidden, using privacy features such as PIN Pad and Fake PIN.” I had installed this version of Keepsafe a few years ago to try it out but had since uninstalled it as I didn’t find it useful.

Coming back to the folder and what I found. It had two files under it: .local and .email. The .email file had my email address in it but the contents of the .local file were shocking. It had my ‘secret pin’ in clear-text in the file. So anyone with some idea of how apps store data and access to a file browser would have been able to get my pin and view images/data that was supposed to have been protected.

Since this was an older version of the software I downloaded and installed the latest version on my S5 to see if the issue was still there. Thankfully someone at the company figured out that storing the data in clear-text was extremely stupid and in the latest version of the software the same two files are still there but the data is encrypted. Not sure how strong the encryption is because I don’t have the knowledge/skill set to try to figure that out. I did however identify where the files are being stored (they are all encrypted as well) so someone with the original image and an encrypted copy could potentially reverse engineer the encryption and assuming they are using a static encryption key decrypt the remaining files as well.

Moral of the story is that if you want to ‘hide’ data on your phone be very careful of the software you use to do it. Ideally you should avoid storing any data that is sensitive on the phone. There are plenty of ways to get access to the data if someone is interested and has time. This is not an isolated case of a badly written software, There are other cases as well where other software was found to have similar amazing security. So be careful out there.

I did find some more interesting data on the phone that I will take a stab at when I get some time.

Well this is all for now. Will write more later.

– Suramya

Older Posts »

Powered by WordPress