Getting Eclipse to work with Oracle Java 1.7

Refer: http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libraries

On my Ubuntu 12.04 32 bit. I edit the command to:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/

And on Ubuntu 12.04 64 bit try:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

Not really what I wanted as a solution but important to note:

Because I had installed the Oracle Java 7 it had changed the default Java to Oracle Java 7, however it needed to be the Open JDK.

To fix, open up terminal and type

sudo update-alternatives --config java
This brings up a list of the different types of Java. Simply select the Open JDK.

 

Ubuntu Cleanup Steps

First thing first there is a few commands that can clean up your disc. I will explain them as we go. First command is the package autoclean. What autoclean does is remove partial packages from the system. To use autoclean type the following command in a terminal:

$ sudo apt-get autoclean

Then enact the package clean command. What this commnad does is to clean remove .deb packages that apt caches when you install/update programs. To use the clean command type the following in a terminal window:

$ sudo apt-get clean

You can then use the autoremove command. What the autoremove command does is to remove packages installed as dependencies after the original package is removed from the system. To use autoremove tye the following in a terminal window:

$ sudo apt-get autoremove

 

“Engine X” nginx

Nginx (pronounced "engine x") is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). The nginx project started with a strong focus on high concurrency, high performance and low memory usage. It is licensed under the 2-clause BSD-like license and it runs on Linux, BSD variants, Mac OS X, Solaris, AIX, HP-UX, as well as on other *nix flavors. It also has a proof of concept port for Microsoft Windows.[6]

Recording Flash Audio in Windows 7

Requirements: Change the audio device in Windows 7 and Use Audacity

Refer: http://www.youtube.com/watch?v=Kv2kbwoLjqs

Follow These Steps for Windows 7 Configuration

  • Windows, Control Panel, "Manage Audio Devices"
  • Click Recording Tab
  • Right-click if "Stereo Mix" is not showing by choosing "Show Disabled Devices"
  • Choose "Stereo Mix" which is the Windows audio card, and make it your default

Within Audacity, choose the Input Device that works for you "Conexant HD Audio" worked well for me on Dell Inspiron.

Installing RockMongo on Ubuntu

Setting up the RockMongo GUI on Ubuntu.  The easiest way to get started is to install Apache and PHP:
Refer: http://offlinedeveloper.blogspot.com/2013/05/steeps-to-configure-rockmongo.html

Step1 Install Apache and Required Components
$ sudo apt-get install apache2 php5 php-pear

Step2 Install Mongo Plug-in
$ sudo pecl install mongo

Step3 Update Apache configuration
$sudo nano /etc/php5/apache2/php.ini

In "Dynamic Extensions" section, add:
extension=mongo.so

Restart Apache
$ sudo service apache2 restart

Step 4 Get Current Version of MongoDB
Refer: http://rockmongo.com/downloads
Extract and copy as root
$ sudo mv rockmongo/ /var/www/rockmongo/

Step 5 Launch
Credentials are admin/admin by default
http://localhost/rockmongo

 

Using JSLint/JSHint in Ubuntu

Let's use JSHint instead:

Try this for configuration file:
http://blog.eye48.com/post/22780542166/javascript-quality-control-install-and-use-jshint-on

Refer: http://stackoverflow.com/questions/8863888/how-do-i-install-jslint-on-ubuntu
Refer: http://stackoverflow.com/questions/12913141/installing-from-npm-fails

$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ npm config set registry http://registry.npmjs.org/
$ sudo npm install -g jslint

---

http://blog.perthulin.com/2011/01/how-to-use-jslint-javascript-code.html

sudo apt-get install rhino

-- Original Article --
Refer: http://blog.perthulin.com/2011/01/how-to-use-jslint-javascript-code.html

Download Js-Lint:
http://jslint.com/jslint.js

In case you have missed it, I can recommend a tool called JSLint. It goes through your JavaScript for common pitfalls, performance issues and makes sure it's standards compatible.

The first step is to download the jslint.js file. Since it's a JavaScript program, you need a JavaScript interpreter to run it, e.g. Rhino or node.js. This is how you install and run it on an Ubuntu system:

$ apt-get install rhino
$ rhino /path/to/jslint.js /path/to/your/script.js

The output might hurt your feelings, but is a real time saver when hunting down cross-browser issues etc. If you need to tell JSLint about global variables, e.g. the jQuery $ sign, you do so with a special comment at the top of your JavaScript source file:

/*global alert: true, window: true, $: true */

Read more about other options here: www.jslint.com/lint.html

Also, you can use JSLint in the browser just by pasting your code in the text box over at www.jslint.com