Archive

Archive for Ιουνίου, 2009

Page Order plugin for wordpress

Ιουνίου 17th, 2009 ktolis No comments

I had already installd “My Page Order” which uses ajax to re-order the WordPress pages but once I tried “PageMash” there is no way to go back. It’s like comparing window to osx :) . You never go back :P

Who steals my interwebs ?

Ιουνίου 17th, 2009 ktolis No comments

You want to see if someone is hijacking your wireless connection? Here is how to do it.

First of all you have to figure out your ip address. There are several ways to do it. You can go get it from AppleMenu->SystemPreferences->Network->Advanced->TCP/IP or you can type at the Terminal.app:


ifconfig -a

now search for the part for en1 (Mac OS X’s wireless connection is on the interface called en1) or simply type

ifconfig -a|grep inet -B1|grep en1 -a1

you should get something like

ifconfig -a|grep inet -B1|grep en1 -a1
--
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.1.64 netmask 0xffffff00 broadcast 192.168.1.255<br

We will now do some sniffing and we will exclude our own address from the data, so at the Terminal.app type

sudo tcpflow -s -c -i en1 host not 192.168.1.64

It will ask you for your password etc etc. What it does is this

-s
Strip non-printables. Convert all non-printable characters to the “.” character before printing packets to the console or storing them to a file.
-c
Console print. Print the contents of packets to stdout as they are received, without storing any captured data to files (implies -s ).
-i
Interface name. Capture packets from the network interface named iface. If no interface is specified with -i , a reasonable default will be used by libpcap automatically.

So we are basically asking to present us on screen what happens using our wireless interface (en1) as our source. The next part (host not xxxx) is restricting the process by excluding our own address and thus we can monitor if someone else is using our wireless connection.

If you see anything beyond this point then you are not alone on your network (you can exclude more addresses you know like printers and other computers using “not host 10.10.10.10 and 10.10.10.1″. You get the picture I hope)

What you can do beyond this point is try driftnet. Driftnet is a modern EtherPEG clone. EtherPEG was a small hack to show the images (jpegs) your co-workers were viewing on your network. It was rewritten for OSX but now it’s broken for Leopard (10.5). So you need something more fresh.

Driftnet is here to help your needs. Please read the man page first. The fun part is at just peeking, so by simply invoking at the Terminal.app:

sudo driftnet -i en1  host not 192.168.1.64

you will be able to see what the highjacker sees online (!)by using X11 technology to display the images. If you want to be mean then you can try

sudo driftnet -i en1 -a -s -d . host not 192.168.1.64

which will store all the images and mpeg media (audio tracks) on the current folder (you should better create an empty one before you do this). The titles of the files stored will be written on the terminal for you to see that something is actually happening.

By this point you should be clearly very frustrated you can’t find these commands on your Terminal.app. You should use fink and install them from there (very easy).

MacBook heating problems (solved)

Ιουνίου 15th, 2009 ktolis No comments

Recently I fell into trouble with my White MacBook. It was heating beyond 80 degrees Celcious and at the same time the fan was rotating at 6200 rpm. I bought a cannister of compressed air to try and blow anything that might be stuck in the fan but instead the fan stopped working!

So I opened the MacBook myself since it was already after midnight and cleared the fan from the inside. The MacBook now runs fine and rotates at 3000 rpm with <50C (quite cool since the ambient temperature is 35C) with a movie playing and NNW & Mail running at the background.

Here is a nice pic I took for you.

macbook2

Categories: Personal, main Tags:

Now iPhone – compatible :)

Ιουνίου 15th, 2009 ktolis No comments

I just installed a new plugin to my wordpress installation. Now the whole site is accessible in an iPhone-manner for iPhone/iPod Touch users. The theme is different for them only, so you won’ see any changes unless you have one of those devices. It comes with AJAX previews/comments/login etc etc. I used the iPhone Simulator to check it out and so far it seems very primising. If you are interested for your own site then try a search for “WPTouch”.

Here is a preview for you :)

ktolisOniPhone

Retesting my WP plugins selection

Ιουνίου 15th, 2009 ktolis No comments

I noticed my wordpress installation take some time to send the whole page so I decided to look into it. I disabled all plugins and started testing using http://webpagetest.org which is a service provided by AOL (?). It supposedly downloads the page and breaks down the data to graphs etc in order to find optimization techniques missed. It’s very easy to use and provides a third party test ground. I could also use Safari’s build-in tools but I wanted to see what’s happening outside my own network.