“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

Revert a git commit

Refer: http://christoph.ruegg.name/blog/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit.html

NOTE: This is currently untested, but revert was tested

Case 1: Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote mystuff with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the mystuff remote repository to the parent of dd61ab32:

$ git push mystuff +dd61ab32^:master

Where git interprets x^ as the parent of x and + as a forced non-fastforward push. If you have the master branch checked out locally, you can also do it in two simpler steps: First reset the branch to the parent of the current commit, then force-push it to the remote.

$ git reset HEAD^ --hard
$ git push mystuff -f

Case 2: Delete the second last commit

Let's say the bad commit dd61ab32 is not the top commit, but a slightly older one, e.g. the second last one. We want to remove it, but keep all commits that followed it. In other words, we want to rewrite the history and force the result back to mystuff/master. The easiest way to rewrite history is to do an interactive rebase down to the parent of the offending commit:

$ git rebase -i dd61ab32^

This will open an editor and show a list of all commits since the commit we want to get rid of:

pick dd61ab32
pick dsadhj278
...

Simply remove the line with the offending commit, likely that will be the first line (vi: delete current line = dd). Save and close the editor (vi: press :wq and return). Resolve any conflicts if there are any, and your local branch should be fixed. Force it to the remote and you're done:

$ git push mystuff -f

Good Old Revert Instead, Create a feature branch to rollback changes, then in LIFO order

$ git revert --no-commit SHA-1(D)
$ git revert --no-commit SHA-1(C)
$ git revert --no-commit SHA-1(B)
$ git revert --no-commit SHA-1(A)
$ git commit -m "rolling back changes"

Live CD Skipping Installation Splash

Refer: http://askubuntu.com/questions/47522/how-to-bypass-try-it-install-screen-when-booting-from-usb-live-session-wit
Release with updates installed:
http://old-releases.ubuntu.com/releases/


$sudo nano /cdrom/syslinux/syslinux.cfg

Replace:

# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
ui gfxboot bootlogo

with this for 32-bit:

default live
label live
say Booting an Ubuntu Live session...
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash noprompt --

with this for 64-bit:

default live
label live
say Booting an Ubuntu Live session...
kernel /casper/vmlinuz.efi
append file=/cdrom/preseed/ubuntu.seed boot=casper persistent initrd=/casper/initrd.lz quiet splash noprompt --

Fix right-handle problem with Ubuntu

https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/878198

Another workaround is to hack the theme itself. For the Ambiance theme edit

$sudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml

and in the section starting
<frame_geometry name="frame_geometry_normal"
change left_width, right_width and bottom_height from 1 to 3.

I have not tried it on the Radiance theme but I expect the same change would work there. Keep a note of what you have done as if the theme is updated you might have to do it again.