i cant think A blog belong to Mohammad Azwan bin Ali. Most of his writings are about his real life story, ideas, thoughts, moderate political views, computer, programming, tips & tricks, particularly in Linux…. and of course it includes some random unspecified crappy stuffs too! Don't forget to check Movies and Junkyard pages out!
note: most of entries is not suitable for faint hearted person or anybody with iq below 100.

programming

xchat script: notify-osd nick notification system

here’s a simple nick notification system for xchat using ubuntu notification system. it will execute notify-osd comment when someone mention your nick in public channel or private message. it’s good for those who like to minimize their xchat while doing something :) on PRIVMSG mynick {   if { [string match -nocase "*[me]*" $_rest] } [...]

straddling checkerboard with ruby

this week i sharpen my ruby saw with an excessive about straddling checkerboard encryption. In cryptography, a straddling checkerboard is a device for converting an alphabetic  plaintext  into digits whilst simultaneously achieving fractionation (a simple form of information diffusion) and homophony (a simple method for suppressing peaks of the frequency distribution). It also is known [...]

calculating phase of moon in ruby

this is one of programmingpraxis exercise. written it in ruby because i need to sharpen my ruby skill the question is quite easy actually. there’s a lot more exciting and challenging excessive at programmingpraxis.com i will try during my free time. this can be some kind of new hobby i think… def julian (year, month, [...]

c/c++ programming: number spirals generator

there’s several ways we can generate a spiral number like this. 5×6 spiral 1 2 3 4 5 6 18 19 20 21 22 7 17 28 29 30 23 8 16 27 26 25 24 9 15 14 13 12 11 10 today i would like to show two ways of doing it first, [...]

numeric diamonds

today i’ve encountered a simple yet tricky programming problem which is print a numeric diamond like this. 1 7 2 13 8 3 19 14 9 4 25 20 15 10 5 31 26 21 16 11 6 32 27 22 17 12 33 28 23 18 34 29 24 35 30 36 at first [...]

← Before