Anti Veeranna

The pain, the pleasure ..

Archive for the ‘Pleasure’ Category

Sshuttle: Poor man’s VPN with python and ssh

leave a comment »

Sshuttle by apenwarr. It really works, I’m amazed :)

./sshuttle -r username@sshserver 192.168.0.0/16 -vv

That’s it! Now your local machine can access the remote network as if you were right there! And if your “client” machine is a router, everyone on your local network can make connections to your remote network.

Written by Anti Veeranna

2010/10/04 at 10:24

Posted in Pleasure

About thinking ..

leave a comment »

Most people prefer not to think. Thinking is hard, and they would get it wrong anyway. Instead, they cheat – they pick someone famous who agrees with their preconceptions and say “look, this guy says X, he’s more famous than you, so there”. That, for them, is enough.

source

Written by Anti Veeranna

2010/09/08 at 22:00

Posted in Pleasure

Soap, lather, rinse, repeat

leave a comment »

I have had to deal with Soap lately. Mostly it works, except when it doesn’t. In my case I found out that its not exactly straightforward to make a Nusoap client talk to a PHP5 Soap server. Of course, it also depends on the WSDL. Probably. Maybe. In any case I was in a world of pain, which I do really not want to describe in more detail.

But then I found this article, and it made my day :) S stands for Simple. I have been suspecting this, but now its proven. Sigh.

Let me sum up. The definition of SOAP is in constant flux, SOAP is anything but simple, and it is no longer meant for accessing objects-even though that’s what all the tools still do.

Written by Anti Veeranna

2009/12/21 at 22:13

Posted in Pain, Pleasure

Tagged with ,

Python API for TargetApi.com

leave a comment »

Have you ever used DailyPerfect? Try it, its quite nice. Now the guys who built it have released their API for public use, it is called Target Api and is available at www.targetapi.com, there you can read about it and sign up for API key.

Once you have the API key, one the options to actually play with it is through Python, using a little library I wrote and made available at GitHub.

http://github.com/antiveeranna/py-targetapi

Go, read the source, checkout, fork, improve, play, contribute your improvements, whatever rocks your boat :)

Written by Anti Veeranna

2009/12/13 at 17:00

Posted in Pleasure

Tagged with ,

Getting started with Unit testing your PHP Code

leave a comment »

Giorgio Sironi compiled a really nice e-book explaining practical PHP testing with PHPUnit. You can download the book from his site.

Written by Anti Veeranna

2009/12/12 at 21:49

Posted in Pleasure

Tagged with

Eating habits of developers

leave a comment »

This one started out as an internal joke, but it has become quite generic :)

* Java developers always go to eat together, in pairs, hand in hand, well organized (synchronized)
* PHP devs go at random times, some of them run, some walk, some take the elevator. (loose coding style)
* DB devs choose someone, who will then go to kitchen and fetch the food for everyone (also known as proxy)
* Delphi devs get the plate, put it in the center of kitchen, then get a fork and then walk between the food containers and plate, until plate is filled (drag ‘n drop)
* C devs kill their own animals and eat them raw (low-level)
* C++ devs prepare their food from prefabricated components in microwave oven (not that low-level)
* Frontend (HTML) devs decorate their food with cucumbers, tomatoes and generally everything else in the fridge and then play around with it until the food is cold
* Python devs always take the stairs (mandatory stepping) (from Jaagup Irve)
* Perl devs bring their own food to the work and eat it alone in the corner, while everybody else is giving them weird glances (You call THAT food? eewwwww) (syntax)

Written by Anti Veeranna

2008/06/12 at 22:05

Posted in Pleasure

Tagged with

Follow

Get every new post delivered to your Inbox.