Archive for the ‘Uncategorized’ Category

sunrise.ch sms via shell

Saturday, July 18th, 2009

quick and dirty hack:

#!/bin/bash
message=$2
recipient=$1
username=
password=
curl -s  –cookie /tmp/cookies.txt –cookie-jar /tmp/cookies.txt –user-agent Mozilla/4.0 -d “username=$username@sunrise.ch&password=$password http://mip.sunrise.ch/mip/dyn/login/login?SAMLRequest=fVLLUsIwFN074z9ksu8LYdQMLYM4jsz46EB14S6klxJpb2puCvr3lqKCC13m5OQ8bu5w9F6VbAOWtMGYR37IGaAyucYi5k%2FZjXfBR8npyZBkVdZi3LgVzuCtAXKsfYkkuouYNxaFkaRJoKyAhFNiPr6%2FEz0%2FFLU1zihTcja9jjkuQNeIugD1ihKUXC9yqM2ywHVRrMqFkRIqhWvOnr9j9XaxpkQNTJGcRNdCYXjphedeNMiivugNxFn%2FhbP0y%2BlK477Bf7EWexKJ2yxLvfRxnnUCG52DfWjZMS%2BMKUrwlal29qkk0psWdrYBzsZEYF2bb2KQmgrsHOxGK3ia3cV85VxNIgi2261%2FUAlkQA1aTe1pFUhFPOkGK7pu9mii%2FyeX39Y8OYgPgyOp5OvDdj2m16kptfpg47I024kF6X5K3BhbSfe3W%2BRHHaJzb9lRRYNUg9JLDTlnQbJ3%2Fb0Z7b58Ag%3D%3D
curl -s –cookie /tmp/cookies.txt –cookie-jar /tmp/cookies.txt –user-agent Mozilla/4.0 -d “message=$message&recipient=$recipient http://mip.sunrise.ch/mip/dyn/sms/sms?.lang=de

Ur programming language

Wednesday, October 29th, 2008

Ur is a programming language designed to introduce richer type system features into functional programming in the tradition of ML and Haskell. Ur is functional, pure, statically-typed, and strict. Ur supports a powerful kind of metaprogramming based on row types.

http://www.impredicative.com/ur/

programming languages

Monday, September 29th, 2008

altough not new i just discovered hecl.

The Hecl Programming Language is a high-level, open source scripting language implemented in Java. It is intended to be small, extensible, extremely flexible, and easy to learn and use. Infact, it’s small enough that it runs on J2ME-enabled cell phones!”

sounds like fun. http://www.hecl.org/

on to something new and cutting edge, here is reia:
all the goodies from erlang, the lang of ruby and python intendation. can’t wait to try.
meanwhile check: http://wiki.reia-lang.org/wiki/Reia_Programming_Language

Installing ruby from trunk

Monday, March 24th, 2008

Today i installed Ruby 1.9 from trunk.

1) get ftp://ftp.ruby-lang.org:21//pub/ruby/1.9/ruby-1.9.0-1.zip
or ( http://mirror.judofyr.net/ruby/1.9/ruby-1.9.0-1.tar.gz )

2) tar xzvf ruby-1.9.0-1.tar.gz && cd ruby-1.9.0-1
3) ./configure –prefix=/usr/local/ruby1.9 –program-suffix=-trunk
4) make
5) sudo make install
now you have ruby 1.9 in /usr/local/ruby1.9
you can now either put /usr/local/ruby1.9/bin to path or copy or softlink the bins

rails logging tipps

Friday, January 4th, 2008

tipps on how to use the rails logger

castaways - marketocracy forum top5 stock competition

Sunday, December 30th, 2007

the annual marketocracy castaways starts on wednesday 3rd.

also there are interesting stats about the last years.