Coding & Tutorials Archive

Manually install Oracle Java 8 on Ubuntu

Downloading Oracle Java JDK Using your web browser, go to the Oracle Java SE (Standard Edition) website and decide which version you want to install: JDK: Java Development Kit. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications. JRE: Java Runtime Environment. For deploying Java applications on servers. Includes tools for JVM monitoring and tools

ubuntu 16.04 Application’s menu bar missing

I did a fresh install of Ubuntu 16.04 LTS and found that menus for many applications do not show on the menu bar except few applications like browsers. There is a bug created at launchpad when Ubuntu 16.04 was still in dev stage. I was just annoyed to use keyboard shortcut for every application I

Goto matching bracket and other keyboard shortcuts in Sublime Text

Programmers love Sublime Text editor as it is that awesome. So I will list down few keyboard shortcuts that will make life easier while writing the code. Jump to matching brackets Shortcut for Windows/Linux: CTRL + M Shortcut for MAC: CTRL + M When you’re writing code, you happen to be inside of loops, conditions,

Major Kernel Update for Ubuntu 14.04 LTS Released and Patches 13 Issues

Few days back, Canonical, the company behind Ubuntu, posted two new security notices on multiple Linux kernel vulnerabilities patched for Ubuntu 12.04 LTS (Precise Pangolin) and Ubuntu 15.10 (Wily Werewolf) operating systems. To learn more information on the subject and know what’s patched in this major kernel update for Ubuntu 14.04 LTS, we recommend reading

Merge pdf files into one ubuntu

Merge pdf files into one ubuntu If you want a tool with a simple GUI, try pdfshuffler. It allows for merging of PDFs as well as rearranging and deleting pages. For batch processing and/or more complicated tasks, pdftk is of course more powerful. I tried using it in my Ubuntu 14.04, doesn’t work for me,

Redirect one port to another port using iptables

You can easily redirect incoming traffic by inserting rules into PREROUTING chain of the nat table. You can set destination port using the REDIRECT target. Following is the procedure: Use the following for redirecting TCP traffic from one SRC_PORT to DEST_PORT: Use the following for redirecting UDP traffic from one SRC_PORT to DEST_PORT: Use the

unoconv – Convert a xlsx (MS Excel) file to csv on command line – Linux

OpenOffice comes with the unoconv program to perform format conversions on the command line. unoconv -f csv filename.xlsx Yeah converting xls(x) file is that simple. If you experience any problem while installing unoconv please follow this thread at SO If you are interested in doing more complex Excel (Which has more than one spread sheet)

MySql – Sorting a column containing string with numbers

Sorting a column containing string with numbers If you have wondered how can you sort a column which contains a combination of string and number, please have a look at the following example. name ==== string12 string124 string1 string342 string9 If you want the display output to be as follows: name ==== string1 string9 string12

Find all tables containing a specific column

If you have wondered how can you get all the table names which contains a specific column, here is a simple SQL query which does the same. select column_name, table_name from information_schema.columns where column_name like "%mycolumname%"; or select column_name, table_name from information_schema.columns where column_name = "mycolumname";

Installing JSLint On Ubuntu For Command Line Use

What is JSLint? JSLint is a JavaScript program that looks for problems in JavaScript programs. It is a code quality tool. JSLint takes a JavaScript source and scans it. If it finds a problem, it returns a message describing the problem and an approximate location within the source. The problem is not necessarily a syntax