Archives - January, 2004



30 Jan 04

Been playing iNinja again between releases.. okay, since first release and second of MTLJPost…

I’ve almost gotten to the blue belt, and got the blue sword…
Its actually kind of fun if you don’t get stuck on a level…

I’m just one level away from blue belt… I really wish there was more to this game though, it would have made a much better christmas present then…

It seems to have a bit of a Samuri Jack feel, where everything is mechanical… Except for the main enamy ninja.. but they seem to be some sort of alien anyways..

And there is the Blue belt..
Other than unlock doors, I havn’t figured lut what they do yet..


Filed under: Gaming

Trackback Uri






30 Jan 04

1.0.31.0.4 Released

Download New Version

# 1.0.3 – January 30, 2004
# – Entries will now edit after the inital post.
# – If an entry doesn’t save to livejournal, just hit save again
# – Added support for exerpts / lj-cut
# – Date of LJ post is date of Actual Entry. You’ll have to watch out for backdated entries
# If its a problem, set the date to now, post, then reset to old.
# Temp Fix

Not sure how much more needs to be done. This was very fun to work on, and it works cleanly. I’m pretty sure it would work cleanly with any other plugins, but who knows.

Any suggestions on what should be done next?

Edit: This is an edit, and it works, see, not a new post, and it shows up.

Edit: 1.0.4 was released quietly because there was a backdating issue so you couldn’t save old entries.. this should fix it..

Edit: Another release of 1.0.4.. Should fix the bug that I only seemed to get once… weird, I wish I could repeat that bug. So download the new version. or check the extended entry for more information.————–
Try Fix:
replace:
if (defined $entry->text_more && $entry->text_mode ne “”) {
with
unless ( defined($entry->text_more) && $entry->text_more =~ /^\s*$/s ) {


Filed under: Coding

Trackback Uri






30 Jan 04

1.0.2 Released

Download New Version

# 1.0.2 – January 30, 2004
# – Added config file because I got tired of always having to change the file for release
# # Format: blogid site username password
# # 3 www.livejournal.com test test
# # 4 www.deadjournal.com:90 test test
# – Added handler to check for LJ::Simple and give a message without it
#

At this rate I actually might want to find a perm link.
I actually like this new version, the config file setup makes things alot easier to setup for multiple blog situations..

I just now want to see if I can’t store extra information on a post, like what the postid and if it was posted and stuff, so any updates will be properly propegated to livejournal too.

That would actually be cool.

Edit: Newer Version————–
added some extended text.


Filed under: Coding

Trackback Uri






30 Jan 04

1.0.1 Released

Download New Version

# 1.0.1 – January 30, 2004
# – Removing needing so many variables
# – Adding selecting of which blog you want.

Edit: Newer Version


Filed under: Coding

Trackback Uri






29 Jan 04

Yes! Since I’m now using my MTLJPost plugin, I figured I’d work on LJ Tag a bit more.

So check out if you rather get my posts (why is mind boggling).

Yea, this is more of a test than information.


Filed under: Coding

Trackback Uri






29 Jan 04

I have now finished version 1.0 of MTLJPost.

Yea, this was after Kristian told me how he did it, I figured I could simplified things. And I did.

Download here

Instructions:
Install LJ::Simple library, put .pl file in your Moveable Types MT Directory.
Edit the .pl file and set:
LJ_USER – Your username on livejournal
LJ_PASS – Password, obvious
SITE_NAME – Your Sites Name
SITE_LINK – Your Sites Link

I think thats about it…


Filed under: Coding

Trackback Uri






24 Jan 04

Man, I realized how much I just suck at/hate doing GUI design. Well MFC applications in particular… As much as I love doing work like that.. I’ve finally realized just how annoying MFC actually is.

I should look back into doing apps using GTK2.0 for windows or whatever. GTK is easier (For me) than MFC in the long run. At least I belive it will be, my experience with GTK is quite limited too.

What I’ve realized is I like doing consoleish programming more. Like php/perl/asp which doesn’t involve gui directly. Or like linux applications, like Dark Wars. Even AI programming on games is good.. I just don’t like MFC, I love the message handling and all that other stuff though.

Its kinda nice to get this revelation now. I am much more prepared this way to start job hunting. Learn some ASP.NET and start applying along that route.. even Java GUI would be more fun than doing GUI appplications.

I donno how explain it. Its quite rewarding never the less to get this discovery.

It doesn’t mean I won’t do MFC applications, I just don’t really want to do it in the job world.


Filed under: Coding

Trackback Uri






22 Jan 04

if ($var ne "mode")
{
return errmsg("Mode not set");
}

return errmsg("Mode not set") if ($var ne "mode");

unless ($var eq "mode")
{
return errmsg("Mode not set");
}

return errmsg("Mode not set") unless ($var eq "mode");

Whats the difference between those lines of code? (assuming i wrote them correctly) Absolutly nothing, other than your style.
That was one of my biggest pet peeve when working on code for them. There was always at least one code reviewer who tried to tell me my code was WRONG because I didn’t pick the right style.
return errmsg(“Mode not set”) unless ($var eq “mode”); I agree with is the best one for readability (Return an error message unless $var is “mode”).. Actually I don’t think I do even agree with that anymore.. Thats like having instructions:

1) Put peices of bed together
2) Make sure to unscrew peice A first

Its just not how people naturally read instructions, you want them in order.

Unfortuatly, I have a desire to start working on Livejournal again. I think purely for selfish reasons, because I love working on projects that people actually use..
And the Livejournal Portal is so… overlooked.

I just have no interest in the code politics..
I guess I’ll have to find new projects, or at least finish the ones I’ve started… like Dark Warriors.


Filed under: Coding

Trackback Uri






20 Jan 04

[14:13] @galimon> Jan 20 14:09:53 oinkpig postfix/smtp[24044]: D99ED2AD623: to=, relay=shawmail.cg.shawcable.net[24.71.223.43], delay=1, status=sent (250 2.5.0 Ok.)
[14:13] @galimon> SCREW YOU BLOCKLISTING ANY CABLE IPS! I GOT THROUGH YOU!
[14:14] iMag> ?
[14:14] @galimon> um, mail hosts have started to block all dynamic ips
[14:14] @galimon> which is average cable and dsl users
[14:14] @galimon> so i have started to be unable to send out email, i guess for the last week or so to any of the popular mail hosts
[14:15] @galimon> but i’ve just fixed it i think.
[14:16] iMag> for web based email sites?
[14:16] @galimon> well, i’ve had a university email host return my email
[14:17] @galimon> hotmail just says “yea, we accepted your email” then doesn’t deliver it
[14:17] @galimon> its on the open relay blacklists now
[14:18] iMag> I generally use my shaw account
[14:18] @galimon> i run my email server out of halkeye.net
[14:18] @galimon> specificly ’cause i was annoyed at being unable to send emails though shaw’s server from school
[14:18] @galimon> at least before the web interface, and even then, i wanted to use my laptop

I’m So happy to actually get this working. Now my mail server will not be blocked from other servers…
Hotmail pissed me off the most. It would say “Yes yes, code 250, we accepted and will deliver” but then it never actually delivers.. I would never have known if oregonstate wasn’t rejecting my emails…

halkeye@oinkpig halkeye $ telnet smtp3.oregonstate.edu smtp

Trying 128.193.0.12…

Connected to smtp3.oregonstate.edu.

Escape character is ‘^]’.

554 Service unavailable; [24.87.47.123] blocked using dul.dnsbl.sorbs.net, reason: Dynamic IP Address See: http://www.dnsbl.sorbs.net/cgi-bin/lookup?IP=24.87.47.123

I can’t belive the tiny little one liner fix in main.cf for postfix did all this.
relayhost = shawmail.vc.shawcable.net

Now its alll ppppeeeererrfeeect

Tee Hee Heee


Filed under: Linux

Trackback Uri






20 Jan 04

I’ve found out that hotmail and other servers (such as AOL) are now blocking any email hosts that fall into the dynamic ip / Cable / DSL Host range. Unfortuatly, for me, that means I am now unable to email hotmail :(

That explain so much problems later…

I hate those who love me, and they hate me – Bender


Filed under: Linux

Trackback Uri