Entries Written By Michael
Unix/Linux Sort Multiple Columns, Tab Delimited and Reverse Sort Order
Sorting a tab delimited file using the Unix sort command is easy once you know which parameters to use. An advanced file sort can get difficult to define if it has multiple columns, uses tab characters as column separators, uses reverse sort order on some columns, and where you want the columns sorted in non-sequential …
ls full path
How do you get the Unix command ls to show you the full path? Unfortunately there’s no argument for ls that will do this directly. However this will work fine and give you what you want. ls -d $PWD/* or ls -ld $PWD/*
Window Stuck Under Toolbar in OS X
Sometimes a window can get stuck under the top toolbar in OS X. This often happens when I use Citrix in OS X to run Windows applications. When this happens it’s not possible to grab the window norĀ to close it. A simple solution for this is to press [fn] [shift] [F2] which will move …
fatal: git checkout: updating paths is incompatible with switching branches.
Using GIT I tried to pull down a new remote branch using: git checkout –track -b my-branch-name origin/my-branch-name When I did this I got this error message: fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout ‘origin/my-branch-name’ which can not be resolved as commit? This error message was a …
DbVisualizer auto commit problem
I had some issues with DbVisualizer and auto commit. I wanted to be able to turn it off from the SQL commander. The official documentation states that you can do this using: The Auto Commit setting is enabled by default and can be adjusted in the Connection Properties. You may also adjust theĀ auto commit …
GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists
fatal: You have not concluded your merge. (MERGE_HEAD exists) I got this message because when I performed a “git pull”. I searched for a solution for this problem on the Internet and it wasn’t until I found this post that I was able to resolve this issue. The problem was that I: Performed a “git …
SQL*Loader-522: lfiopn failed for file (loader.log)
I used the Oracle SQL Loader to push some data into a table and got the following error: SQL*Loader-522: lfiopn failed for file (loader.log) This somewhat cryptic error message turned out to be that Oracle SQL Loader didn’t have write permissions in the work directory i.e. in the directory where I executed the sqlldr command. …
Java primitive data type sizes for byte, short, int, long, float, double and char
A handy list for Java data types and sizes Integer Data Types Data Type Size Digits Min Max byte 8-bit signed 3 -128 127 short 16-bit signed 5 -32,768 32,767 int 32-bit signed 10 -2,147,483,648 2,147,483,647 long 64-bit signed 19 -9,223,372,036,854,775,808 9,223,372,036,854,775,807 Floating Point Data Types Data Type Size float single-precision 32-bit IEEE 754 floating …
How to find project dependencies in a Maven project
It’s very useful to be able to see what is included in your class path especially when you’re trying to track down a troublesome dependency. Recently I had an issue with a JDOM dependency; however I had not defined a JDOM dependency in my pom.xml file and I couldn’t quite figure out why this dependency …
How to control or throttle SCP file transfer speed
I wanted to control how fast SCP copy data between two Linux servers. On a Linux system this can easily be achieved using the “SCP -l” switch. In my case I had to make sure to not exceed 0.5 Mbit/s Since the “-l” parameter uses Kbit/s the correct value in my case is 500 scp …
Recent Comments