Skip to main content

Posts

Make Atom Editor load faster

The default installation of Atom editor comes with a bunch of core packages that you may not need. I have found that you can actually speed up the load time of Atom by disabling a lot of these core packages.

The good thing about Atom is anytime I need a package I can just enable it and it's instantly active (for most packages). Please note that what you disable would depend on your own needs. For example, if you develop Java, you would want to keep 'language-java' enabled.

I proceeded to disable the following packages as I did not see the need for them at the moment.
about - if disabled, nothing will happen if you click Help > About Atom. You can still check for updates using Help > Check for Update.archive-viewautocomplete-atom-apiautoflowautosave - Atom will still save your edit buffer. This package is not necessary to save buffer.background-tips - The tips shown when you don't have any tab open.bookmarkscommand-palettedalekdeprecation-copdev-live-reloadfuzzy-fi…
Recent posts

Google Drive service unaffected, app being shut down

About a week ago, Google made a confusing announcement in their G Suite Updates Blog. It resulted in shocking many Google Drive users that their favorite service is being killed off by the search giant Google. Even tech blogs kept trumpeting the false information without taking care to verify the rumors that were spreading about.

But thankfully, there are those who saw through the folly and are trying their best to clear the confusion. Here's what's actually happening:

The name ‘Google Drive’ refers to two different things:
Google Drive online service to create Docs, Sheets, Slides and other collaborative documents, as well as backup your files.
Google Drive app (a.k.a. computer program) that runs on your Mac or PC, which gives you access to those documents and files, and also syncs the files with the service. Here’s what Google said (read it with a big bag of salt):
With this launch, Google Drive for Mac/PC is officially deprecated. It will no longer be supported starting on Dec…

How to SHRINK an Amazon AWS EBS volume safely with no data loss

Note: This guide assumes your volume is based on a Linux file system such as ext4. If you're using a different file system, you may still be able to shrink the volume but your mileage may vary.

To get to the guide, scroll down and skip the prologue.
Prologue Once my 1 year free trial with Amazaon AWS was over, I found that I'm paying for 30 GB of storage space while I'm actually using only about 5 GB. Hence I decided to shrink it down to about 7 GB or so. My plan is to just monitor the usage and see if I can reduce the usage or expand the volume later as needed.

Searching for guides on Google, the top hit was this blog post. But I found that the instructions are actually terrible. Here are the problems with it:

The guide tells you to FORMAT the volume with your existing data. YES! That's ridiculous, but it's true. It's this command: sudo mkfs -t ext4 /dev/xvdf. I did it and destroyed my data, but lucky for me, I had made a snapshot. No problem, just restore the s…

How do I rename a label for my Facebook Page's messages?

If you have a Facebook Page and you're receiving messages in it, you may have noticed that you can organize chats with labels. A conversation can even have multiple labels applied on it. This should be very useful for you and your fellow page admins to filter and track their categorization as well as their status.

While this is an excellent feature which allows you to create new labels, delete labels that you no longer need, apply colors to labels, filter by labels and even combine two labels into one, Facebook has totally missed out on a very important yet very basic functionality: renaming a label.

Until such time that Facebook realizes what they have missed out and fixes the problem by giving us a one-click rename option for the label management, here's a trick how you can rename an existing label. This trick uses the functionality of combining two labels to create an empty label and combine it with the existing label that you want to rename. Here's how it works:
Open yo…

How to change default and internal currency in self-hosted Odoo or OpenERP

If you wish to use Odoo in a single-currency environment, you will find issues changing the currency in the Odoo interface itself. If you have a self-hosted solution of Odoo or OpenERP, you already have unprecedented control over the system, unlike the cloud-based solution from Odoo. This means that you can very easily fix the issue by hacking the database that Odoo is relying on. Even in a multi-currency environment, you can use the same trick to change the global default currency - the fix is very clean for any environment - there is just an extra step to update the currency rate settings.

Even in the latest version of Odoo, we still face the ridiculous bug that Odoo internally ALWAYS uses EUR (Euro) as the internal currency. This has created many problems for many users wanting to use a different currency. Despite being set to a different currency from the Odoo interface, the eCommerce site, reports, accounting, etc are still shown using EUR and the Euro symbol, creating confusion…

Amazon EC2 instance with LAMP and Git and multiple Git collaborators

Brace yourself, this is going to be --long. I'm not going to explain a lot. I basically followed what was here, but procedures are outdated and can be confusing if you don't know what you're doing.

I'm just going to give an overview of what's different from that page now:
 When you launch a new EC2 instance, the wizard is now different. You will no longer have a choice between "Classic Wizard", "Quick Launch Wizard" etc.Select Ubuntu server 14.04 64-bit with HVM (not PV).Remember to add an EBS volume or expand the root volume. I don't recommend expanding root volume, but rather to use another volume to store your data. That way you can wipe you root volume and start over again without data loss. (I almost did, coz I stupidly sudo rm * in an important directory - but I managed to recover.)You won't be creating key pairs in the wizard itself. You will be asked to do so after you click on Launch to start up the instance. The procedure to cre…

Is the OnePlus 2 really the 2016 Flagship Killer?

Making a recording of the VR launch, watching it several times, watching many review videos and articles about the NEW OnePlus 2 has left me thinking and wanting to post my own two cents. First, watch the VR launch (non-VR version) if you haven't:

Is the OnePlus 2 really the 2016 Flagship Killer? The answer is both Yes AND No. Yes, because it has some of the top hardware you can get. No, because it doesn't live up to the hype.