Zalman ZM-NC2000 & Ikea DAVE laptop stand review
Today I bought a Zalman ZM-NC2000 to cool my Macbook Pro 15" and a Ikea DAVE laptop stand to work on instead of having my laptop on my legs all the time.
I know people say that lap in laptop means you should be able to use it on your legs, well, true, but I just dislike the weight in combination with the heat... On the other side, the heat is really bad for your health! For the guys out there who still want kids, don't use your laptop too much on your lap
The laptop stand is quite simple, you just have a pole with a plate on it where your laptop can be placed on, keep in mind that if you have a 17" Macbook Pro you only have space for a mouse on the left or right. So if you intend to place more than that around your Macbook, don't use it ![]()
You can see two images directly from Ikea below.
The laptop cooler is another thing that is really handy to have, not only to cool down your Macbook for your own health but also for the life of your Macbook it self. This one is fully USB powered and works great. The only thing that you need to adjust is two extra rubber carriers for your macbook, since the ones underneath the Macbook are quite small it might completely shut the airflow.
For any more questions about these products, just place a comment
Creating SFTP-only User Accounts to Kill SSH Access
Problem Statement
We wanted to create SFTP-only user accounts that cannot SSH into the server to run commands. There is no built-in approach to this problem that we can find so we created a simple shell script to solve it. Here we will discuss how it works.
Step 1: Create a shell script to run as the user’s shell
Create a shell script called /sbin/sftp-only as follows:
#!/bin/sh if [ "$*" != "-c /usr/libexec/sftp-server" ] then echo “Sorry, ssh access not allowed.” exit fi exec /usr/libexec/sftp-server
Step 2: Edit user accounts to use this shell script as user’s shell
Modify user accounts using usermod to set the shell to /sbin/sftp-only so that when user tries to SSH to the server, the shell script will display the “Sorry, ssh access not allowed.” message. And when the user tries to connect to the server via a SFTP client, the shell script will get executed and it will start the SFTP server for the user.
Inconsistent line ending (EOL) style
If you work with subversion you might get this error when you got files that have been edited on different operating systems like Windows, Linux, FreeBSD or Mac OS X.
Well, the fix is quite simple. You simply replace the wrong line endings with right ones depending of which you want. In my situation I want unix style line endings.
Replace in PHP files:
find ./ -name '*.php' -type f -exec perl -i -wpe 's/\r\n/\n/g' '{}' \; find ./ -name '*.php' -type f -exec perl -i -wpe 's/\r/\n/g' '{}' \;
In case you want to replace them in multiple file types you can adjust the command. In this example we want to replace in the following file types:
- asp
- cfm
- css
- html
- js
- php
- pl
- txt
Use the following commands:
find ./ -name '*.asp' -or -name '*.cfm' -or -name '*.css' -or -name '*.html' -or -name '*.js' -or -name '*.php' -or -name '*.pl' -or -name '*.txt' -type f -exec perl -i -wpe 's/\r\n/\n/g' '{}' \; find ./ -name '*.asp' -or -name '*.cfm' -or -name '*.css' -or -name '*.html' -or -name '*.js' -or -name '*.php' -or -name '*.pl' -or -name '*.txt' -type f -exec perl -i -wpe 's/\r/\n/g' '{}' \;
Keep in mind, you may use these commands on your own risk. I'm not responsible if you lose your work
Now you should be able to commit your files again
My girlfriend changed the classification in our Carausius morosus terrarium…
Original post by Little Tree.
A couple of weeks she was thinking of how to make the terrarium look nicer. She already has these Indian stick insects (PSG 1, Carausius Morosus) for more than 10 years. And since the look became kinda boring she decided to change it.
Last month a lot of eggs came out so she decided to change it sooner ![]()
She first had only clean ground and stones lying on the bottom but this became boring after all these years. We went to a garden center Staelduinsebos and bought 3 stumps of wood (2x hard wood and 1x grape branch) and a bag of bio ground (no manure in it).
Once back home we first mixed the ground with some sand. After cleaning the terrarium we placed this on the bottom. In the mean time the stick
insects were in a open box just waiting and waiting. But keep your eyes on them! They might suddenly start walking
After that she placed the stones and the wood on the bottom as last she added a little glass bottle with water and placed some privet sticks into it (their food). Then she sprayed the leaves a bit with water and she was done... Now the stick insects can be put back into the terrarium.
According to me they are this way very satisfied with their new arranged home.
Download Xshare.com video’s with a simple Bash script (Wankers special)
Ok, lets say you are a person that REALLY likes watching offline porn and that you talk with a person like me and say to me that it is impossible to download all movies listed on the website... Well, don't say that... Everything is possible!
In about 10 minutes I wrote the following script which is able to download completely xshare.com their movies.
The script downloads the playlist from the website and then grabs the media url from it. Then, it simply downloads the media and saves it.
The only requirement is Bash and Curl and some minor adjustments to the paths of these binaries.
It should run without a change on Mac OS X.
#!/bin/bash # Save as: XShare_Downloader.sh limit='500k' START=1 END=99999 # Resume if stopped if [ -r _current ] then START=`cat _current` fi cleanup() { echo -e "\n$x incomplete, removing: $tfile" if [ -e "_files/$tfile" ] then rm "_files/$tfile" fi exit } trap cleanup SIGHUP trap cleanup SIGINT trap cleanup SIGTERM mkdir -p _files for ((x = $START; x<=$END; x++)) do echo $x > _current echo "Working on file number: $x" pls="http://xshare.com/playlist.php?vid=$x" curl -s "$pls" -o _get.xml for tag in title location do OUT=`grep $tag _get.xml | tr -d '\t' | sed 's/^<.*>\([^<].*\)<.*>$/\1/' ` eval $tag=`echo -ne \""$OUT"\"` done rm -f _get.xml if [ ! -z "${location##http*/}" ] then filename=${location##http*/} extension=${location##http*.} if [ ! -z "$title" ] then tfile="${filename%%.$extension} - $title.$extension" elif [ ! -z "$location" ] then tfile=$filename fi echo "Saving as: $tfile" curl --limit-rate $limit "$location" -o "_files/$tfile" else echo "No media file found... Next..." fi echo "" done # EOF
To all the wankers out there... Be my guest and use it...
Keep in mind that you might violate the Copyright of xshare.com
Ps. if you want to donate me for your pleasure. The button is on the right side of this website
update:
Added resume support, now it keeps track of the last ID started.
FAR, a wonderful site to get free iPhone apps / games

Lately I have been downloading a LOT of apps for the iPhone via a website a friend of mine told me about.
The idea of this website is quite simple, daily there is a new blogpost with new apps that you can download for free in the iTunes AppStore.
The most downloads I had so far were games but they are mostly quite fun to play, plus the applications that were on the list were really useful. Not like a lot of websites that have links to free applications but 90% is not useful.
I hope you find this website useful too. You can visit FAR at FreeAppReport
Thank you for all the hard work on the website, keep it up!
Castlefest 2010 by Vana Events
We have visited Castlefest organized by Vana Events last sunday. It was a wonderful day, nice weather, nice people and not to forget... Great music!
First we walked around some to check out the terrain, the first stand where we stopped is by a good friend of ours. Her shop is called Ancient Gaya. She sells Temporary Tattoos, Piercings, Fantasy & Gothic jewelry, Fantasy & Movie Swords and knives (including Kit Rae), Buddha statues, Headdresses and much more... So be sure to check out their webshop too
After a while walking we reminded our selves that OMNIA was playing at the Forest Podium so we went back there and sit down on the grass to watch their show, it was really nice sitting in the sun on the grass listening to their music. After their show we walked around some more to visit some shops and watch an mediaeval setup of real blacksmith and a leather worker. And a special thing that Marijke liked was card weaving. You can see it in the movie below.
After seeing every tiny bit of the terrain of Castlefest we went to the Village Stage to watch the show of Kelten Zonder Grenzen. When their show was finished we went to home...
You can view a compilation of some recordings in the video's below:
And not to forget, photo's (the last 2 are crew pictures, nice background
):
In case you want to use one of the images and you need the high resolution version, don't hesitate to mail me!
Others who I know that were at Castlefest: LEAF, Hats 'n Dreads, Senjo Clothing
View the Sex Tape of Eva Mendes. The real tape!
I saw a lot on the web already but this is the real deal... The real Sex Tape by Eva Mendes.
Source: http://www.funnyordie.com/videos/0a4d42beff/eva-mendes-sex-tape
The real tape... Sticks to everything!
How to: gain some more performance for MySQL without compiled Linux threads on FreeBSD
I notice a lot of people I talk to are compiling MySQL with Linux Threads to gain performance with MySQL, there is another way!
You can use the thread libraries of FreeBSD to gain some more performance by altering the libmap.conf file to use libthr instead of libpthread.
Add the following to /etc/libmap.conf
[mysqld] libpthread.so libthr.so libpthread.so.2 libthr.so.2 libpthread.so.3 libthr.so.3 libpthread.so.4 libthr.so.4 libpthread.so.5 libthr.so.5 [/usr/local/libexec/mysqld] libpthread.so libthr.so libpthread.so.2 libthr.so.2 libpthread.so.3 libthr.so.3 libpthread.so.4 libthr.so.4 libpthread.so.5 libthr.so.5
Restart mysql
/usr/local/etc/rc.d/mysql-server restart
Now you can benchmark your installation and check the performance gain.
How to: install mysql-server 5.1 on FreeBSD
When I install MySQL on FreeBSD I usually choose to set it up with UTF8 support by default.
This is what I'm also going to do in this howto.
Install MySQL with utf-8 support
cd /usr/ports/databases/mysql51-server make BUILD_OPTIMIZED=1 BUILD_STATIC=1 WITH_CHARSET=utf8 WITH_COLLATION=utf8_unicode_ci install clean
Configure MySQL with my.cnf
Copy default huge config.
cp /usr/local/share/mysql/my-huge.cnf /etc/my.cnf
You now need to edit /etc/my.cnf to your needs, I would add the following lines.
If you want MySQLd to listen on one IP instead of ALL, I choose localhost
:
bind-address = 127.0.0.1
Higher the max_connections number (default: 100):
set-variable = max_connections=250
Set MySQL to use utf-8 as default (you NEED these for utf-8 in default):
default-character-set=utf8 character_set_server=utf8 collation_server=utf8_unicode_ci
To prevent MySQLd to be reachable via tcp/ip, uncomment:
# Don't listen on a TCP/IP port at all. #skip-networking
If you don't want to use replication, comment the below line:
# Replication Master Server (default) # binary logging is required for replication #log-bin=mysql-bin
For some more performance change this line (CPU's * 2, I use a quadcore so I set it to 8):
thread_concurrency = 8
In case you have big queries you might want to increase max_allowed_packet. Default is 1MB... I would start with setting it to 8MB.
Fire up MySQL
Edit /etc/rc.conf and add the following two lines:
# MySQL mysql_enable="YES" mysql_limits="YES"
Start MySQL
/usr/local/etc/rc.d/mysql-server start
Set a password for the root user
mysql -u root
Run the folowing mysql queries:
SET PASSWORD FOR root@"localhost" = PASSWORD('YourPasswordHere'); quit;
In case you use the local FTP daemon of FreeBSD you might want to add the mysql user to the ftpusers file to prevent any FTP login from this user.
echo "mysql" >> /etc/ftpusers
Portupgrade
When you are a user of portupgrade you might want to add the following to /usr/local/etc/pkgtools.conf
MAKE_ARGS = {
'databases/mysql51-*' => [
'BUILD_OPTIMIZED=1',
'BUILD_STATIC=1',
'WITH_CHARSET=utf8',
'WITH_COLLATION=utf8_bin',
],
}Default database
Sometimes the installation fails to install the default database, if this happens run the following command and reset your root password
mysql_install_db --user=mysql































