Tuesday, 20 August 2013

Duplicate MP's on Linux

DupeGuru Me

 
I know there are thousands of ways to sort out a mp3 collection, numerous bash scripts and mp3id readers and taggers however I never found a solution that work for me.

After some searching I found the following cross platform application called "dupeGuru me" by Hardcoded software, this is a great and simplistic tool and very good fuzzy search.

They have an PPA available at  https://launchpad.net/~hsoft/+archive/ppa

This can be added to your Ubuntu distribution via
sudo apt-add-repository ppa:hsoft/ppa

Raspberry Pi - Python



There are two ways to install the Python GPIO 

Method 1: Download and install / build it yourself:

The source can be found at:  https://pypi.python.org/pypi/RPi.GPIO
To copy it to your Raspberry Pi:
scp -rp RPi.GPIO-0.5.3a pi@[ip address of pi]:/home/pi/Documents/RPi.GPIO/
If you want to build your own version from this downloaded copy, make
sure that you have the Python development source installed first!
On Raspbian:
$ sudo apt-get install python-dev
$ sudo python setup.py install

Method 2: Raspbian repository

If you are using Raspbian, all you need to do to install the latest release is:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get install python-rpi.gpio python3-rpi.gpio

Wednesday, 10 July 2013

Java Decompiler

Had some class files that I needed to decompile and found JD-GUI to be a great program for this.
Only one snag, it requires 32bit gtk libraries.

How to install JD-GUI on Ubuntu 64-bit:

sudo apt-get install ia32-libs-gtk

after that just run the application jd-gui

and the source coe can e saved with "Save All Sources"




Wednesday, 19 June 2013

Oracle SQL Developer - SID

I had a scenario where they could not provide me with the SID for the connection.

If you have access to the Oracle database via a SQL interface (Like Oracle SQL developer or sqlplus) the below query can be used to determine the SID

select sys_context('userenv','db_name') from dual;
Or if you have access to the server terminal the below command can be used
lsnrctl status


Thursday, 7 February 2013

Converting multiple images into one PDF on Linux

The most simple way to do this is to use the command line
convert *.png result.pdf
This will create a single pdf and append all the png imges in the directory to the file.

Sunday, 3 February 2013

Add ‘Open in Terminal’ in Nautilus

This simple and brief tutorial is going to show you how to add “Open in Terminal” option on Ubuntu Nautilus’ context menu so that you can quickly open up a terminal window and automatically navigate to the selected directory.
Hit Ctrl+Alt+T to open up a terminal window, copy and paste this command and hit enter to install nautilus-open-terminal package:
sudo apt-get install nautilus-open-terminal
or click on this link


then restart or run this command
nautilus -q

Thursday, 31 January 2013

Using 635M Nvidia via Bumblebee on Ubuntu 12.10 64bit

After installing and re-installing the drivers multiple times the following order and packages worked for me. (Basically donig the same as most blogs advise but loaded the Nvidia current updates and configured Bumblebee to use it)

sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic

sudo apt-get install nvidia-current-updates

then edit /etc/bumblebee/bumblebee.conf

gedit /etc/bumblebee/bumblebee.conf
Driver=nvidia
KernelDriver=nvidia-current-updates
LibraryPath=/usr/lib/nvidia-current-updates:/usr/lib32/nvidia-current-updates
XorgModulePath=/usr/lib/nvidia-current-updates/xorg,/usr/lib/xorg/modules
reboot and test

user@machine:~$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0xb5
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile
59.965973 frames/sec - 66.922026 Mpixels/sec
59.915626 frames/sec - 66.865838 Mpixels/sec
59.936809 frames/sec - 66.889479 Mpixels/sec
59.938094 frames/sec - 66.890913 Mpixels/sec
59.933819 frames/sec - 66.886142 Mpixels/sec
59.936031 frames/sec - 66.888611 Mpixels/sec
59.938894 frames/sec - 66.891805 Mpixels/sec
user@machine:~$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 635M/PCIe/SSE2
132.639584 frames/sec - 148.025776 Mpixels/sec
144.849601 frames/sec - 161.652154 Mpixels/sec
143.661287 frames/sec - 160.325996 Mpixels/sec
143.061059 frames/sec - 159.656142 Mpixels/sec
142.425431 frames/sec - 158.946781 Mpixels/sec
152.831347 frames/sec - 170.559784 Mpixels/sec
user@machine:~$


Steam commands for different games:
Left 4 Dead 2 Beta - LD_PRELOAD=./left4dead2/bin/matchmaking.so vblank_mode=0 PRIMUS_SYNC=1 STEAM_RUNTIME=1 primusrun %command%
Dota 2 - optirun --bridge primus %command%
Counter Strike - vblank_mode=0 primusrun %command%

Friday, 18 January 2013

Ubuntu create launcher in unity

I wanted to create some custom launchers on Ubuntu in order to cleanup my desktop and add them to the Unity dash and found

Create-launcher a brilliant app in the Ubuntu Software Centre at https://apps.ubuntu.com/cat/applications/quantal/create-launcher/

To install it just click the below:

Get it from the Ubuntu Software Centre!

Thursday, 27 December 2012

Apache Server - new virtual host or site

In order to ease development of many PHP projects simultanious and let the PHP IDE's I am testing update the source automatically I use the following to create new virtual hosts:


sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mynewsite

Edit the new file  to configure the new site, I am using ~/Development/project as the web folder.

sudo a2dissite default
sudo a2ensite mynewsite
sudo service apache2 reload

to activate the new site and reload apache2

Monday, 10 December 2012

iPad Aplications that makes my tablet a productivity tool

After some time I decided to post the applications I use to make my tablet a productivity tool. After all it is the apps that make the tablet and not the other way around.

I divided my apps into 4 catagories

  • Productivity
  • Utilities
  • Social
  • Entertainment

And yes productivity in my case can be enhanced by entertainment (imagine a noisy open plan office whilst trying to do some decent low level architecture analysis) Nothing better than in-ear headphones and my favourite radio station or music collection ...

Productivity:


  • iThoughtsHD - it will import and export mindmaps to and from many of the most popular desktop mindmap applications and used daily by myself.
  • TouchDraw - Vector drawing and diagramming with useful Libraries and great support (had some queries around connector types)
  • SharePlus - Used to access content on SharePoint sites
  • Quickoffice HD - office editing suite for iPad (including Office 2010)
  • GoodReader - A auper-robust reader for iPad (great at PDF & Office docs with great file management & multitude of connections e.g. Dropbox, Skydrive, Google Drive, SMB servers, etc.)

Other used as well

 

  • UPAD Lite - great for quick freehand notes or freehand schetching
  • Evernote - The best note taking application and cross OS (from my PC to my Android phone and my iPad)
  • DropBox - cloud sync for non sensitive data (I use a private cloud for sensitive data)
  • OneNote - used to sync notes from Microsoft Notes (for a spesific customer in a pure Microsoft environment)
  • AceProject - Keeping track of project tasks & collaborate with other teams

Most of these are used on a daily basis by myself with iThoughtsHD used for mind mapping as well as note keeping per project and assigning tasks to myself and others. GoodReader is in my mind the swiss army knive of IOS and enabled me to read most things on the iPad from local, private- or public cloud. All of them was carefully picked to enhance my productivity and still keep the data-overload era we live in catagorized and not to duplicate wherever possible.

Following posts will look into the other catagories of applications I use.