if you like to solve crossword puzzle to kill your time but sometimes you are stuck with what word you should put in
here’s a quick example on how to do that in your terminal
example clue the entire CPU of a computer on a single integrated circuit (chip)
and we have crossword like this
_,_,_,r,_,p,_,_,_,_,_,_,_,r
now using common word [...]
for those who want to do some image processing in ubuntu but strunggling to compile and install it here’s a easiest way to do it
sudo apt-get install opencv-doc python-opencv libcv1 libcvaux1 libhighgui1 \
libcvaux-dev libcv-dev libhighgui-dev
to see all example from opencv-doc
cp -r /usr/share/doc/opencv-doc/examples cv-examples && cd cv-examples
there’s will be c and python example, to compile [...]
if you have try to compile a kernel before, you will know how boring the process is!
it get more boring and annoying when you need to disable/enable certain thing in .config or doing some patches you need to recompile the whole thing again
so here, i want to share something that i’ve learned alot during my [...]
a simple nginx + php5 web server setup
1. first we download all neccessary packages
sudo apt-get install nginx php5-cgi php5-mysql spawn-fcgi
2. add php-fastcgi init script
sudo nano /etc/init.d/php-fastcgi
cut and paste this script
#!/bin/bash
FAST_CGI="/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php-cgi"
case "$1" in
start)
$FAST_CGI
;;
stop)
killall -9 php-cgi
;;
restart)
killall -9 php-cgi
sleep 1;
$FAST_CGI
;;
*)
echo "Usage: php-fastcgi {start|stop|restart}"
exit 1
;;
esac
exit 0;
3. configuring nginx to [...]
if you accidentally deleted /dev/null file here’s a simple way how to re-create it
mknod -m 666 /dev/null c 1 3
2009 © i cant think. Powered by WordPress+DePo Skinny