Aug 1 2003

FRQ – Console Jabber, Python Update, CSS Slant Hack

Busy busy this week. Little time to surf. So I’ll start with this week’s Friday Five.

  • What time do you wake up on weekday mornings? Between 6 and 7, whenever the alarm defeats me.
  • Do you sleep in on the weekends? How late? No. Not applicable. Usually we have things on Saturday morning (Yum Cha, tennis or something else) and church on Sunday.
  • Aside from waking up, what is the first thing you do in the morning? Wash my face, make coffee, check email! Then take shower.
  • How long does it take to get ready for your day? Isn’t my day starts at the point when I wake up? Oh. I get out of home at 8:30. Go figure.
  • When possible, what is your favorite place to go for breakfast? Home. Otherwise Maccas.

Christianity

Interesting reads:

  • Two kinds of Christianity: Attack on anthropocentric Christianity that dominates the North America and Western Europe now. They are now “hollow and putrid remnants of the Church of Christ in the West remnants with fine ceremonies, lots of good taste but no power of faith.” Time to get back to the word of God.
  • Getting paid to go to church: a baptist church pastor is offering real cash for the white caucasians to attend his sermons, as his church is dominated by the black, and he believed that gospel is for all nations. Interesting…

Jabber

I have been playing with this console based Jabber client, IMCom, which is very cool. It is written in Python, so it is completely extensible. It has quite a comprehensive module architecture, that it lets the programmers to plug in his/her own modules, and hook onto the callback routines. I am going to use it to write a Jabber bot. I’ll blog about it a bit later…

Programming

Here’s news for you. Python 2.3 has been released. Yes – the long awaited Python 2.3 has finally gained approval from Guido and his gangs, and it marked a major update since Python 2.2 which was released back in December 2001. Some of the highlights:

  • Faster VM – up to 30% faster than 2.2.
  • New functions like sum(), enumerate(), etc.
  • New basestring class, that is now parent class of both str and unicode.
  • Boolean types.
  • PyThreadState_SetAsyncEnc() – new C API to interrupt a thread by sending it an exception.
  • And a lot other improvements.

Also check out Andrew Kuchling’s what’s new in Python 2.3, which is a more readable run down on all the new features.

Coding in Python is good…

Webmastery

Got this from email through catalyst:

Apparently, with CSS’s border style and some hacking style, it is possible to draw those slant-shape without using an image. With some combination of slant, it adds a bit of colour into your plain website. Now with Javascript directly accessing the style of DOM elements, you can even do fancy things like this rotating box. You can even draw lines with it. Impressive.

However, CSS was designed so that people can stop hacking HTML by separating the contents and styles. But now people just start hacking both the CSS and HTML.

4 Comments

  1. kiran on 29 Sep 2003 at 7:22 pm #

    Hi Scott,
    I was trying to make a simple jabber bot too with jabber.py but some how am stuck right at the beginning if you have some tutorials or links for “jabber.py”, i would be really grateful…

    thanx

    kiran

  2. scotty on 29 Sep 2003 at 10:43 pm #

    Well. With jabber.py there is quite a lot of work to do – I hope someone has written a frame work to build bots upon, as I don’t really have time to do it.

    However, I found writting a Jabber bot as a plugin module of IMCom much easier task to do – just write a module, hook onto the events, and then load it in the console. It even has some demo plugin modules to help you getting started. You might want to give that a try.

  3. johii! on 6 Dec 2003 at 12:25 am #

    http://www.jezuk.co.uk/cgi-bin/view/whereskal
    is also based on jabber.py
    give it a try too. ;)

  4. The Apocalypz on 12 Feb 2005 at 12:46 am #

    Does anyone know where I can get a copy of IMcom? Their server is down!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>