Coding



24 Jun 04

Starting to work on this code again. Slowly working on migrating my entire site over to the new codebase.

Part of the reason people probably havn’t been noticing any updates that have happened on this server was the rss file was always linking to the wrong one, so i’ve finally fixed it so people are getting the correct information now. WHEEE.

Yea.

We’ve moved now. We’ll I’ve moved now. Living with an awesome roommate. You can see us on cam at /cam/. Well its more the living room cam. It all started as just good fun, now its sorta stuck and we are used to it :D

Yep.


Filed under: Coding

Trackback Uri






14 Apr 04

On Tue, Apr 13, 2004 at 09:20:06PM -0700, Gavin Mogan wrote:
> any way you could add access to defaultpicurl please?

Done; in the 0.11 release – I’ve attached that version. Taken from the docs:
$lj->DefaultPicURL()
Returns the URL of the default picture used by the user.
Note that if the LiveJournal object was created with
either “pics” set to “0″ or with “fast” set to “1″ then
this function will always return an error.

Example code:
print $lj->DefaultPicURL(),”\n”;

Took a total of.. well i emailed last night, got a reply this morning.

Stuff to work on with the next version of MTLJPost.. but this makes things easier..


Filed under: Coding

Trackback Uri






10 Apr 04

From: Lisa [lisa@lisa-jill.com]
To: ‘Gavin Mogan’ [halkeye@halkeye.net]
Subject: RE: A quick surpise for you.. another plugin
Date: Sat, 10 Apr 2004 15:15:10 -0400

Gavin,I have got to hand it to you. I wasn’t quite sure how well that thelivejournal stuff would work, but my god.

http://www.lisa-jill.com/archives/2004/04/the-trip-to-dc.php

http://lisajill.livejournal.com/

Absolutely brilliant. I owe you big time. Thank you *so much*.
————–
—–Original Message—–
> From: Gavin [mailto:halkeye@halkeye.net]
> Sent: Friday, April 09, 2004 1:26 PM
> To: Lisa
> Subject: A quick surpise for you.. another plugin
>
> Got a surprise for you :)
>
>
> I’ve been meaning to finish it.
>
> http://www.halkeye.net/files/?file=MTLJTag.1.2.tgz
>
> Seemless <lj user= and <lj comm= integration
>
> Gavin
> –
> Gavin Mogan
> halkeye@halkeye.net
> (604) 505-8034


Filed under: Coding

Trackback Uri






4 Apr 04

Yea Yea, if this works, then MTLJPost 1.6 Is ready to go.
1.7 will follow quite quickly.. but I want to make a clean realease of this before i move on.

Download Version 1.6.

This comes with MANY improvements, as the other one died most of the time.

Simple Install Instructions
> .pl goes to mt/plugins/
> .pm goes to mt/extlib/MT/Plugins/
> .tmpl goes to mt/tmpl/mtljpost/
> .cgi goes to mt/ (or whever you have your other cgi files)

Its kinda exciting.

The javascript on the login information page is NIIIICE.

Update: added Instructions and submitted to mt-plugins.org

Update: Download Version 1.6.5.

Update: Download Version 1.7.1.


Filed under: Coding

Trackback Uri






28 Mar 04

Yea. Really lacking in interesting content lately, mainly due to working hard to complete projects and just.. working.

Yea, I’ve start back into trying to code alot, Its something I really like doing whenever I can. Last week I devoted myself to learning and expeanding my knowledge of php, postgresql, and OO PHP. And I can say I really enjoyed it.

This week I’m falling in love with mod_perl. I will be unveiling a project soon, its getting near completion. Its really quite simple, but It will make creating a linux jukebox alot easier.

I am quite excited about it. Its one of my old projects, back when I knew nothing about perl, so its quite enjoyable to redo it. And the performance over straight cgi perl is so… I can actually hear/feel it, much faster, computer doesn’t grind/etc.

Yea.

So stay tuned (If there are any who are paying attention to this anyways).

(watch out for a new layout soon too. ‘Cause I’ve finally started to realize how crappy this one is)


Filed under: Coding

Trackback Uri






9 Feb 04

This update is a pretty update. I love the new web interface.

# 1.0.5 – Febuary 09, 2004
# – Started some hooks for MT Plugin Manager
# – Cleaned up some error messages
# – Disabled comments
# – Deletes from livejournal when entry is deleted from MT
# – Web interface to do configuration /mt-ljpost.cgi

Installation Instructions:
1) Uncompress. tar file should have the right directories.
2) Upload files:
mt-ljpost.cgi => mt/
MTLJPost.pm => mt/extlib/MT/Plugins/ (Might need to create directory)
MTLJPost.tmpl => mt/tmpl/cms/
MTLJPost.pl => mt/plugins/
3) goto the mt-ljpost.cgi and setup your blog
4) Post
(I suck at instructions.)

Download

I eventually want to make it so you can post certan categories to certain journals.

Ps: mod_perl installation:
<Location /mt/mtljpost>
SetHandler perl-script
PerlHandler MT::Plugins::MTLJPost
PerlSetVar MTConfig /var/www/www.halkeye.net/mt/mt.perl.cfg
</Location>


Filed under: Coding

Trackback Uri






5 Feb 04

Doing a configuration interface. It looks kinda cool.

At least until the Plugin Manager’s config interface is done. Although this still might be better.

Error message now actually work. I can’t belive I never actually tested that, so the old messages would be really confusing.

I can’t say the html is currently any good. But for now, it works.

If i can figure out how to store it (still havn’t looked into it, probably use MT::PluginData again), I could even let you do multiple servers. Although I think it would probably delay posting time way to long.

I think this method might be the best.

Yea. Now to decide weither to goto sleep or finish this up sorta..


Filed under: Coding

Trackback Uri






2 Feb 04

I actually think I might be able to make MT-Blacklist mod_perl compatible.

Then again.. If I can do it, why hasn’t anyone else been able todo it?

I *KNOW* i can do it hackishly..
but i think i could also do it properly..
template file and all.

But its really weird, why hasn’t anyone else done it?
All it looks like is that the only problem is that mod_perl doesn’t use the CGI library.

I’ll have to email them or check the mailing list or whatever sometime tommorow.. I should be able to do it though. Not that I can really tell what the benifits are.

Confused Am I yes!


Filed under: Coding

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