How to Run Batch Operation on Cluster Computer

If you are pursuing your higher studies in the field of machine learning, its very likely that you have to “deal” with big data. By “deal”, I mean you might have to extract features, or say for example, find the eigenvectors and eigenvalues of large matrices. Carrying out these types of simulations on real or synthetic data on typical desktop/laptops may take days to run. Its suggested that you run these simulations on your University’s super computer or cluster computer. I am assuming that you have access to such a cluster.

These clusters are typically multi-core computers with huge amount of RAMs and tremendous processing powers. But you cannot just run any code on these clusters. You need a batch script (SLURM) to utilize the resources. You have access to a front end node and through that node you have to submit your batch job. I will show how to run a MATLAB code on the cluster using the sbatch command. I am assuming that you are on MacOSX/Linux and can use the terminal. If you are on Windows, install PuTTY to emulate the terminal.

Continue reading

Advertisements

OnePlus One: Return to Stock

OnePlus One, the 2014 flagship killer, is truly an awesome phone. You can’t get a phone better than this in any respect at this price point. I am using this phone for a while now and I couldn’t find anything wrong with this phone that justifies the low price. CyanogenMod and OnePlus teams have put really a lot of effort to offer us an experience as close as possible to a Nexus. The phone also has a great developer community working constantly and bringing us new amazing ROMs. However, you might, sometimes, want to go back to the stock ROM CyanogenMod 11s, which itself is pretty nice. It offers a lot of customizability and very good and fluid performance. I am going to show the steps for restoring stock firmware on the 64GB OnePlus One.

Continue reading

Downgrade Motorola Moto G to Android 4.4.4 from Android 5.0

Although it might seem like an unnecessary topic, but someone might want to revert back to Android 4.4.4 KitKat from Android 5.0 Lollipop. Several reasons come to mind – you might not like the material design, you might experience performance problems with the Lollipop or you might want to go back to the stock firmware of your region instead of using the GPE firmware or the Brazil firmware. No matter what, you might want to go back to KitKat. Follow the steps below to do that. Please be cautious that this might soft-brick your phone and the way to un-brick it is to flash the lollipop firmware again.

Continue reading

Upgrade your Motorola Moto G to Android 5.0 Lollipop

If you have a Motorola Moto G (2013) and still haven’t received the Android 5.0 OTA notification, you can manually upgrade your device to Android 5.0 Lollipop. This tutorial will exactly show you how to do that. I am trying to write this tutorial in such a way that both the single SIM version and the dual SIM version of Moto G can be upgraded.

Continue reading

Unlock the Bootloader of Motorola Moto G

Moto G is one of the most widely appreciated phone of 2013. With this phone, Motorola has showed that you don’t have to spend a premium to get a very acceptable smartphone experience. What’s even more amazing is the developer support behind this device.  The XDA Forum for Moto G is very active and there are tons of custom ROMs and custom kernels available for this tiny beast. However, you would need to unlock your bootloader first to taste those different ROMs and kernels. In this tutorial, I will list the steps for unlocking the bootloader of your MOTO G.

Continue reading

2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 35,000 times in 2014. If it were a concert at Sydney Opera House, it would take about 13 sold-out performances for that many people to see it.

Click here to see the complete report.

Getting S-OFF on your HTC One (M7)

HTC devices usually come with Security-ON or S-ON, which prevents you from changing the Cellular ID (CID) or Model ID (MID) of your device, flash OTA updates manually and many other things. To put this more simply, if you are the kind of guy who likes to tinker with their phones, you will need Security-OFF or S-OFF. Going S-OFF won’t change anything from the user-perspective, you will still have the stable device you had before and you will get OTAs like before. Also, don’t confuse this with rooting or unlocking your bootloader, those are separate things. For example, my HTC One is S-OFF with locked bootloader and no root. I get official OTAs without any trouble. S-OFF is required when I convert my AT&T HTC One to Google Play Edition or Developer Edition. Follow the following steps to get your device S-OFF.

Continue reading