I was having trouble with dual monitors and “Make default” button.
Thanks to http://www.thetechrepo.com/main-articles/502-how-to-change-the-primary-monitor-in-ubuntu-or-other-linux-distributions
Short code: xrandr –output HDMI2 –primary
March 17th, 2011
1 Comment »
February 22nd, 2011
No Comments »
Fix apple keyboard functional buttons.
Add this line to start up script /etc/rc.local
sudo nano /etc/rc.local
echo 2 > /sys/module/hid_apple/parameters/fnmode
October 8th, 2010
No Comments »
As a non smoker i need to rest my eyes once in an hour. So here is a method to remind me, that the time has come
You will need
Notification library for ubuntu
sudo apt-get install libnotify-bin
And a script is, to run every 10th minute of an hour:
timeout.sh
#!/bin/bash if [ $(date +%M) = '10' ]; then DISPLAY=:0.0 notify-send "It's timeout time!" fi
Crontab to run every min.
crontab -e
Add this line
* * * * * sh /home/user/timeout.sh
P.S.
Yes I know I can do that totally within crontab. Its just for purpose i would think of more logic, i decided to make it seperate sh script
September 14th, 2010
4 Comments »
Check this out.
I am releasing Zend_Auth_Adapter_Facebook on github
http://github.com/fordnox/Zend_Auth_Adapter_Facebook
March 20th, 2010
No Comments »
Simple javascript to toggle password visibility
Your HTML structure nneded for this to work is as simple as:
Add javascriptmy_secret_password
$(function() {
/**
* Hide password with bulets and make it toggle
*/
$("div.password").contents().wrap('<span class="pass" />');
$('span.pass').before('<span class="bullets">••••</span>').hide();
$("div.password").click(function(){
$('span.pass',this).toggle();
$('span.bullets',this).toggle();
});
});
And the result is:
my_secret_password
February 10th, 2010
No Comments »
PayPal:
Both for buyer and seller https://developer.paypal.comAuthorize.net
For seller: http://developer.authorize.net/testaccount/Google Checkout:
For buyer: https://sandbox.google.com/checkout For seller https://sandbox.google.com/checkout/sell2Checkout:
http://developers.2checkout.com/
January 10th, 2010
No Comments »
< ?php echo $this->doctype() ?>
<html>
<head>
< ?php echo $this->headTitle() ?>
< ?php echo $this->headLink() ?>
< ?php echo $this->headStyle() ?>
</head>
<body>
< ?php echo $this->layout()->content ?>
< ?php echo $this->headScript() ?>
</body>
</html>
December 16th, 2009
No Comments »
Little useful Ubuntu terminal command:
notify-send "Computer Says" "Hi"
December 16th, 2009
1 Comment »
Install Java
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fontsTest Java
java -versionCreate SymLink
sudo ln -s /usr/bin/java /bin/javaInstall Cruise Control
cd /optDownload Cruise Control binary files at
http://sourceforge.net/projects/cruisecontrol/files/CruiseControl/2.8.2/or directly
sudo wget http://mesh.dl.sourceforge.net/project/cruisecontrol/CruiseControl/2.8.2/cruisecontrol-bin-2.8.2.zipUnzip Cruise Control
sudo unzip cruisecontrol-bin-2.8.2.zip -d /optCreate SymLink
sudo ln -s /opt/cruisecontrol-bin-2.8.2 /opt/cruisecontrolStart CruiseControl
/opt/cruisecontrol/cruisecontrol.shThe output should something like this be like this ...
[cc]Dec-15 19:58:50 Project - Project connectfour: next build in 5 minutes [cc]Dec-15 19:58:50 Project - Project connectfour: waiting for next time to buildGet PhpUnderControl
svn co svn://svn.phpunit.de/phpunit/phpUnderControl/trunk /opt/phpUnderControlPatch Cruise Control
/opt/phpUnderControl/bin/phpuc.php install /opt/cruisecontrolRead next to start cruising your project http://phpundercontrol.org/documentation/getting-started.html
December 16th, 2009
4 Comments »
I had trouble with my Dual monitors and video. No matter what player i usede it just showed black screen. So the solution is:
Alt +F2 enter:
gstreamer-propertiesThen Video tab > Output and choose
X Windows System (No Xv)Restart and give a try to video player.