Categories
Tech

SOGo Groupware database update after yum upgrade is not normally necessary as it merely reduces the number of tables created for a new collection.

Categories
Tech

Pros and Cons of Hosting your own Nameservers

Benefits of hosting your Nameservers Ease of changing hosting providers: Having your own nameservers make it easy when you are changing your hosting providers for two reasons: Zero downtime in switching Minimal change on Domain Register (change Nameserver and Hostname reords only) Other nameserver changes can be done easily with your own nameserver, even scripted […]

Categories
Tech

Chrome: How to view YouTube at 3x Speed

When viewing a YouTube video you may want to quickly skip through introductory section or boring/repetitive parts. The following solution will allow you to toggle between high speed and normal viewing. 3x speed-up is not offered by YouTube. With little practice you can understand even at that high speed, you need to be a bit […]

Categories
Java Tech

Grails: Validating User Domain class

Grails provides support for validating fields. Here is a typical User class with field validation. It ensure that email address & url is of proper format, login is unique and password is not openly displayed. package com.taragana class User { String login String password String email String url static constraints = { login unique: true […]

Categories
Tech

Script to kill all GradleDaemon processes – gkill

GradleDaemon sometimes redundantly runs in the background and Grails gives erroneous responses. The simplest solution is to kill all the errant GradleDaemon processes and run the app again. Below is a simple script which will run all the errant GradleDaemon processes. The same can be used for killing any processes like say Firefox. Just substitute […]

Categories
Tech

Bash: How to trim leading, following spaces from text

Many Linux/Unix commands are shown formatted like ps -ef for instance. As such it becomes difficult to process them subsequently in the pipeline, like for instance passing it to xargs kill for killing the filtered errant processes. The command below, when part of a bash / sh pipeline will remove the leading and following spaces […]

Categories
Tech

How to incrementally mirror FTP site regularly

Daily Business Data, like NAV, is often made available via FTP servers which stores and makes available the data for limited time duration (like a week). We need to not only download the data for the day but also want to ensure that the historical data remains intact. Today I will show you how you […]

Categories
Tech Tutorials

How to use dd (Linux copy tool) with progress indicator

dd, the ubiquitous copy tool of Unix/Linux, now comes in with a decent built-in progress indicator. You can run it by the command-line option: status=progress Example: dd status=progress if=/dev/sda of=/dev/sdb Notice how I didn’t add the bs option and used the default. In my experiences the default works best. Tested on: Ubuntu

Categories
Tech

Top 15 Countries by Coders

I have analyzed the data from HackerRank (December 7 2016) to find out the Top 15 countries in the world by cumulative ranking as well as by the number of Institutions in Top 50. In order to figure out which colleges have the best coders, HackerRank hosted a major University Rankings Competition. Over 5,500 students […]

Categories
Tech

Java: The Most Popular Programming Language Today

Several research independently confirms Java as the most popular programing language today and as such can be considered the safest bet for someone looking to make a career in programming or looking for a career change. Let’s look in details below. The TIOBE Index The TIOBE Index for February 2017 indicates Java is the most […]