≡ Menu

fgrep files

Learn how to use fgrep to compare the contents of two files with each other. The command can be used to find the contents present in one file but not in the other file. This does not require the file contents to be sorted. Find contents of file1 that are also present in file2 fgrep [...]

{ 2 comments }

This post explains how to create a user account on AWS RDS servers and assign privileges to access tables. I did this on Maria DB server and I assume this process would work for Aurora DB instances too. First you need to logon to the DB. You can use mysql utility for this. mysql -h [...]

{ 0 comments }

Website changes are very common in bloggers' world - Migrating from blogger platform to WordPress, changing permalink structure and moving content to a new domain. I did all of these which resulted in the below issues. URL links in posts that are with old permalink structure. They are like mydomain.com/2013/05/some-post.html. URL links pointing to old [...]

{ 0 comments }

My new laptop Dell Latitude E7450 has Broadcom fingerprint scanner. The OS image that I received with the laptop did not have the updated drivers installed for this device and I had trouble in configuring finger print based login. When I opened bio-metric device settings in control panel, it was showing unavailable status as below. [...]

{ 0 comments }

I had been using Wordpress Zero spam plugin for almost 6 months. I found it to be working perfectly, filtered out all spam and worked fine with thesis theme and W3 Total cache plugin. But things have changed with me recently upgrading to wordpress 4.4.2 Readers posting comments encounter the below error There was a [...]

{ 0 comments }

I got this exception when I was running an EMR application org.apache.spark.SparkException: File ./myapplication.jar exists and does not match contents of http://10.28.139.44:33084/jars/myapplication.jar If you run into this exception, the issue could be that the nodes have run out of disk space on one of the partitions as I found it out in my case. When [...]

{ 0 comments }

Hadoop file system commands

If you are working with EMR or hadoop, the following file system command would be handy. List the contents of a directory hadoop fs -ls folderPath Example: To list the contents of the folder hdfs:/input/ hadoop fs -ls /input/data To list all the files recursively in all subfolders hadoop fs -ls -R /input/data To remove [...]

{ 1 comment }

Recently I had to switch to a new laptop at my workplace.  I had to return the old one before I can get the new one. I had saved all bookmarks, passwords and other preferences information to my sync account provided by Firefox.  I saved the username and password of the account and also the [...]

{ 0 comments }

We can copy phone contacts, messages, photos from a Nokia basic model phone to Nokia Lumia Windows phone by doing the following steps. The steps are verified to be working for Windows 8.0 First thing you need to do is to enable Bluetooth on both the mobiles. Now perform  all the below steps on your [...]

{ 0 comments }

If you want to access your OneNote notes from multiple computers, you can store them on Microsoft Skydrive. The setup is very simple, it does not any additional steps compared to storing the notes on local computer. 1. First thing you need to do is create a new note book. Click on 'File' and 'New'.  [...]

{ 0 comments }