It's Dirty Raven

Everything Random

Celebrating 25 Years of Existence, ‘Still’

Yes, I did wasted half of my life, never enjoyed it to the fullest, and I kept memories of a dull and boring life.

But I did missed the 80’s and 90’s – in my younger years. That in time, I considered myself as batang kalye. My world only focuses outside the house, where I make friends or foes and experiencing everything that I never thought somehow I enjoyed my youth. Every physical activities that I enjoyed reminiscing; the fights, the naughtiness, the grossness. I wish I could share everything in here. I know its possible, but I’ll try. Read the rest of this entry »

Dang! I lost my count –

…of my age. On the 22th of May, another year would be added to my age. I’m somewhat lost in my count, subconsciously I caught myself doing the simple math: 2009 – 1984 … eek.

Well anyway, sadly, and unfortunately in all events – I can sum something to this coming day: I effing wasted half of my life.

I envy Benjamin Button.

Last blogging for the Year 2008

The Year of 2008 is the year of the Rat, by which, I am born under. There hasn’t been so much good experiences for the year although the stars were read lucky for me.

Now that the Year of the Ox is coming for more than 30 minutes from now, I couldn’t determine if the fate would allow me to successful, for the stars were read I am would be unlucky as opposed to what my guts say. They say Rats wouldn’t be lucky under the Year of the Ox – I say I can be as I am determined to be. Can I force my fate to change? Maybe. But I believe, like what “Final Destination” moral lesson is, no matter what you do, fate will make way to do what it is supposed to do.

Let me see how this goes after. I don’t know, but I hope if I did, fate wouldn’t force and do something worst in return.

My new year’s resolution? A new year is like a new beginning. It is like starting from scratch, or starting a new life. So a new year’s resolution is ideal to be listed on the start of the year. (Some people believed that they can list a new year’s resolution even if its not a new year – well, that is why it is called a New Year’s Resolution!)

I will list my new year’s resolution on the first day of the Year of the Ox. Happy Year of the Ox everyone! 🙂

What the…

Whoa, where am I? Am I still on earth? Am I still alive?

Just more than a month that I’ve been missing on action (on the net) and yet, here I am trying to catch on the blazing fast cyber changes. Oh crap, what am I trying to say… this might be the effect of a slight alcohol. Ooops, did I just slip my type? Heck. Its just a bottle, and yet the effect is like I drank 6 bottles – or 12 bottles, or 18 bottles, or 1 case of beer.

I’m still okay though, no puking, no dramas, no trouble. I’m only celebrating life, along with colds. Next year would be another year of challenges, and this is time that I only feel I am aging – in contrast of celebrating my birthday, that it just feels like an ordinary day.

Did I ever blog that I DO love the new WordPress Admin? Ah, yeah, I blogged just now. This kick some ass. I’m diggin’ the new rockin’ admin. Love love love love! As a web designer, I can rate the usability of the new admin as 8.5 stars out of 10 stars. Why? Its just an estimate, it is close to perfect and nearly there, but I think there are still more to work on. THOUGH, I can say it is a big leap of improvement. Sorry, I might be 100 years behind of loving the new wp admin, I just got to blog just right now (and I’m missin’ it :(– ).

And oh, for the readers, DON’T DRINK and BLOG please. Learn from me. Trust me, you’ll regret it the next day.

Happy Holidays guys! 🙂 Hmnn… is there a smiley integration here I’m feeling? Oh well, I’m blogging via QuickPress though. My love for WordPress is going strong. ♥

Friendster Blogs from Typepad to WordPress!

Quite amusing, I rant so much about the friendster blog which don’t have any improvements at all since it launched, and here they are, at last, moved a finger in blogs. They’ve migrated from Typepad to WordPress blogging platform. It was in beta earlier this September, and finally launched, which I’m not sure when it did. All I know is that I received a notification through email that I had a pingback from my friendster blog to this blog. =p Perhaps people can start going back from multiply to friendster? I don’t think so, most bloggers will do I guess (wordpress’ SEO is REALLY a big advantage + friendster domain), but some features aren’t polished yet.

I haven’t seen ads yet on my friendster blog, but sooner or later if the blogs gets populated, they’ll surely implement ads — THEIR ads. There’s no way I can customize the theme that I activated on the control panel to insert ads, though the widgets can be accessed, and ads can be inserted there. But I’m not sure if that is allowed. The control panel was kind of similar to WordPress.com ~ probably because it uses the WordPress MU CMS ~ and this migration is only one big step for Friendster.

But ho dear Friendster, you’ve still got a lot of improvements to do! XD

Receiving Spam on Imeem

I’m just so surprised that I was able to receive spam messages on Imeem. My email inbox was flooded with notifications from Imeem. I think it just started 2 days ago, I just thought someone REALLY sent me a personal message. From first 5 few messages, it eventually came flooding in with 20 more… and yesterday I noticed that I received notifications for every few minutes. And just now as I opened my email, I received 50+ new notifications. A bit alarmed, I opened my Imeem account and checked my received messages. A total of 100+ new messages. I would like to share some screenshots but I haven’t installed a photo editor yet.

Too bad. I just seen some good “aesthetic” changes with Imeem. But I guess some of the functions sucks. What I did with the 100+ spam messages? Here is some steps:

  1. I deleted it all manually from the message inbox on Imeem Messages Area. The messages are viewed 10 each on the panel, so there are 10 page nav below. I mean, are there no options for View All and Select All and Delete All?
  2. Everything that I marked as SPAM went on the Spam Folder. I deleted it manually again.
  3. Everything that I deleted on the Spam Folder went on the Trash Folder. I deleted it manually again. Jeez, isn’t there any EMPTY TRASH option?
  4. Yeah, for 30+ clicks and page refresh (I might be lucky if it was made by AJAX, but hell NO), at last it all vanished. Go mouse power.

Oh well. What I just did is I modified my privacy settings. I disabled from “everyone to send me a message and changed it to “friends“. And to make sure, I unchecked all the notifications to be sent on my email. I haven’t opened any of those spam messages, and hopefully I wouldn’t be a part of this spam.

The Evolution of a Programmer

High School/Jr.High

10 PRINT "HELLO WORLD"
20 END

First year in College

program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
(defun hello
(print
(cons 'Hello (list 'World))))

New professional

#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i =
0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}

Seasoned professional

#include <iostream.h>
#include <string.h>
class string
{
private:
int size;
char *ptr
string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr,
s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}
string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr,
chrs);
}
return(*this);
}
int
main()
{
string str;
str = "Hello World";
cout << str << endl;
return(0);
}

Master Programmer

[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");
// bring in my interfaces
#include "pshlo.idl"
[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype THello
{
interface IHello;
interface IPersistFile
};
};
[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{
// some code related header files
importheader(<windows.h>);
importheader(<ole2.h>);
importheader(<except.hxx>);
importheader("pshlo.h");
importheader("shlo.hxx");
importheader("mycls.hxx");
// needed typelibs
importlib("actimp.tlb");
importlib("actexp.tlb");
importlib("thlo.tlb");
[
uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
aggregatable
]
coclass CHello
{
cotype THello;
};
};
#include "ipfix.hxx"
extern HANDLE hEvent;
class CHello : public CHelloBase
{
public:
IPFIX(CLSID_CHello);
CHello(IUnknown *pUnk);
~CHello();
HRESULT __stdcall PrintSz(LPWSTR pwszString);
private:
static int cObjRef;
};
#include <windows.h>
#include <ole2.h>
#include <stdio.h>
#include <stdlib.h>
#include "thlo.h"
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"
int CHello::cObjRef = 0;
CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
{
cObjRef++;
return;
}
HRESULT __stdcall CHello::PrintSz(LPWSTR
pwszString)
{
printf("%ws
", pwszString);
return(ResultFromScode(S_OK));
}
CHello::~CHello(void)
{
// when the object count goes to zero, stop the server
cObjRef--;
if( cObjRef == 0 )
PulseEvent(hEvent);
return;
}
#include <windows.h>
#include <ole2.h>
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"
HANDLE hEvent;
int _cdecl main(
int argc,
char * argv[]
) {
ULONG ulRef;
DWORD dwRegistration;
CHelloCF *pCF = new CHelloCF();
hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
// Initialize the OLE libraries
CoInitializeEx(NULL, COINIT_MULTITHREADED);
CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,
REGCLS_MULTIPLEUSE, &dwRegistration);
// wait on an event to stop
WaitForSingleObject(hEvent, INFINITE);
// revoke and release the class object
CoRevokeClassObject(dwRegistration);
ulRef = pCF->Release();
// Tell OLE we are going away.
CoUninitialize();
return(0); }
extern CLSID CLSID_CHello;
extern UUID LIBID_CHelloLib;
CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */
0x2573F891,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};
UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */
0x2573F890,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};
#include <windows.h>
#include <ole2.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "pshlo.h"
#include "shlo.hxx"
#include "clsid.h"
int
_cdecl main(
int argc,
char * argv[]
) {
HRESULT hRslt;
IHello *pHello;
ULONG ulCnt;
IMoniker * pmk;
WCHAR wcsT[_MAX_PATH];
WCHAR
wcsPath[2 * _MAX_PATH];
// get object path
wcsPath[0] = '';
wcsT[0] = '';
if( argc > 1) {
mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
wcsupr(wcsPath);
}
else {
fprintf(stderr, "Object path must be specified\n");
return(1);
}
// get print string
if(argc > 2)
mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
else
wcscpy(wcsT, L"Hello World");
printf("Linking to object %ws\n", wcsPath);
printf("Text String %ws\n", wcsT);
// Initialize
the OLE libraries
hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);
if(SUCCEEDED(hRslt)) {
hRslt = CreateFileMoniker(wcsPath, &pmk);
if(SUCCEEDED(hRslt))
hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello);
if(SUCCEEDED(hRslt)) {
// print a string out
pHello->PrintSz(wcsT);
Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);
//Tell OLE we are going
away.
CoUninitialize();
}
return(0);
}

Apprentice Hacker

#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV >= 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";
print (FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}
1;

Experienced Hacker

#include <stdio.h>
#define S "Hello, World\n"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}

Seasoned Hacker

% cc -o a.out ~/src/misc/hw/hw.c
% a.out

Guru Hacker

% echo "Hello, world."

New Manager

10 PRINT "HELLO WORLD"
20 END

Middle Manager

mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello, world."?
I need it by tomorrow.
^D

Senior Manager

% zmail jim
I need a "Hello, world." program by this afternoon.

Chief Executive

% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout

*from Jheng as well. (^^,)