In August 2007 a hacker retrieved index.php (the homepage) and search.php (the search page) PHP source code on facebook.com.
Worth Archiving as part of Internet history.
Reference: http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
Apache Tomcat is a web server and a servlet container for Java web applications. | |
- | |
1. Download Apache Tomcat from http://tomcat.apache.org/download-70.cgi and save it to Downloads. | |
2. Extract it. | |
hduser@Hadoop:~/Downloads$ tar xvzf apache-tomcat-7.0.40.tar.gz | |
3. Move Extracted tomcat to /usr/local/tomcat directory |
1. Download java 5 from http://de.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/ and extract it to /usr/local/HaddopEclipsePlugin | |
2. Download Ant from http://ant.apache.org/bindownload.cgi and extract it to /usr/local/HadoopEclipsePlugin | |
3. Edit ~/.bashrc file and Add ANT_HOME and PATH | |
export ANT_HOME=/usr/local/HadoopEclipsePlugin/apache-ant-1.9.1 | |
export PATH=$ANT_HOME/bin:$PATH | |
4. Check Ant is installed properly by |
//Import bencoding alarmmanager module into our Titanium App | |
var alarmModule = require('bencoding.alarmmanager'); | |
var alarmManager = alarmModule.createAlarmManager(); | |
var isRunning = Ti.App.Properties.getBool("service_running", false);//get service running bool status | |
if (isRunning) { | |
Ti.API.info('service is running'); | |
} else { | |
Ti.API.info('service is not running'); | |
alarmManager.addAlarmService({ |
1. Download appropriate jre version from http://java.com/en/download/index.jsp | |
2. Extract it and mv it to /usr/local | |
3. change to firefox installation directory | |
cd /usr/lib/firefox/browser/plugin | |
4.Make a symbolic link | |
sudo ln -s /usr/local/jre1.7.0_27/lib/i386/libnpjp2.so |
In August 2007 a hacker retrieved index.php (the homepage) and search.php (the search page) PHP source code on facebook.com.
Worth Archiving as part of Internet history.
Reference: http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
/** | |
* Event handler to prevent richtext and linebreaks in contentEditable DIVs | |
*/ | |
$('body').on('keydown paste', 'div.editfield', function(e) { | |
var $field = $(e.currentTarget); | |
if (e.keyCode===13 && $field.hasClass('multiline')) { | |
return true; | |
} else if (e.keyCode===13 || e.type==='paste') { | |
setTimeout(function() { | |
$field.html($field.text()); |
Open Skype in a PC | |
/remotelogout - Type on any chatbox 2 - 3 times to logout from all other locations | |
/showplaces - check if your Skype is online in other devices | |
Set your status to Invisible/Offline | |
Sign out from Skype | |
Check if your still online | |
http://community.skype.com/t5/Mac/Can-t-sign-out-even-after-deleting-the-app-everywhere/td-p/3053956 |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by funcional category:
git status
list which (unstaged) files have changed
I hereby claim:
To claim this, I am signing this object: