|
Recent Entries...
Week 3, day 2 for push ups
I'm posting a bit more than a day or two per post, hoping I ...
Chin ups week 1 column 2, push ups week 3
August 6:
Push ups: 27 then 20 (wow these seem tougher than...
Exhausting chin ups, continuing with push ups
August 4:
I'm really glad I took the opportunity to rest ...
Logarithmic tag cloud
It's been a while since I've posted anything technical. Pos...
Weekend bike rides
August 2:
I got out on my bike today. I had to raise the s...
Still week 3 for push ups, finishing week 2 for chin ups
July 31st:
Push ups: 27 then 19 then 19 (the last 5 of whic...
Tough push ups, and easier chin ups? Oh, kettlebell, too!
July 29th: The push ups day I'm dreading. I'm feeling mostl...
Push ups exhaustion test, continuing on with the chin ups.
July 27th: Exhaustion Challenge, push ups. 31. Kind of dis...
Weekend Respite.... or is it?
So I ended up buying a kettlebell and getting back on my bik...
Gotta keep going - on with week 2
July 25:
Super tired today. Woke up very early, had a pedi...
|
|
weblog | `web·lôg -läg |
noun
Another term for BLOG
ORIGIN 1990s: from web in the sense [World Wide Web] and log in the sense [regular record of incidents.]
blog | bläg |
noun
A web site on which an individual or group of users produces an ongoing narrative.
ORIGIN a shortening of WEBLOG.
Figured it out, pictures are a-flowin'
 Posted by
on Friday, January 05 2007, 12:00pm
Sweet.
It only took re-writing the thing from the ground up, switching out completely the modules I was using - but I finally managed to get that silly picture stripper/thumbnailer working again.
Were it not for Imager by Tony Cook or Email::MIME::Attachment::Stripper by Casey West (with my friend Yaakov recommending the former and perlmonks.org for the alternative to MIME::Parser) - I'd still be spinning my wheels.
During the debugging, I'd get MIME::Parser to appear to work, but then Image::Magick would stop working. Or MIME::Parser would fail me in strange and non-reproducibly ways but Image::Magick would faithfully render an incomplete image file.
But no more.
Related Photos:
perl
imager
photos
New Years Resolution
 Posted by
on Monday, January 01 2007, 9:05am
I've resolved to figure out why my photo uploader keeps cutting off my pictures I email from my phone.
It's driving me crazy - it used to work like clockwork. Snap a little photo with the phone, punch a few buttons, click click bang, and whaddaya know, my photoblog gets automatically updated. With a thumbnail and a picture that aren't broken.
I'm working on it as I write this, waiting for slow email to arrive at my server.
We'll see...
Finally figured it out!
 Posted by
on Tuesday, December 19 2006, 12:00pm
So, I'm a moron.
Seems I'm not making proper use of the Model:: modules. I had originally found an old out of date tutorial making use of the Class::DBI helper scripts, so that's what I used in making this blog. Problem is, the tutorial was woefully incomplete, AND CDBI seems to work - at the surface - without any additional configuration.
Except when you have a stupid datamodel that requires you join a table to itself and get a count of child rows for each parent row.
These days, using Class::DBI seems frowned upon by the catalyst community, so I think instead of trying to fix what's broken, I'll just use a different model to access my data - HOPEfully one that isn't woefully broken, lets me write some of my own nasty SQL and actually reference the correct results to stuff into TemplateToolkit.
Too bad I'm busy working on my wishlist, otherwise I'd tackle this issue straight away.
Newest to do list
 Posted by
on Tuesday, May 23 2006, 11:18pm
Ok, now I really need to concentrate on the formatting.
I think for now I'll just do some simple multiline substitutions. A single linebreak gets turned into a br tag, two linebreaks next to each other get turned into para tags (which of course means that the beginning of all entries get a para by default). Update: I'm just going to use Textile.
Next, HTML entities will go away. Cross site scripting anyone?
Maybe there's already a plugin for this... (Catalyst::Plugin::Textile?)
- Add skin support
- Add parent topics to the top of the view template, add links to the recent table to read more of the recent posts.
- Maybe don't show "view" links for 0 replies?
- Add a threaded view. This will involve some more advanced SQL.
- Look into Class::DBI::Sweet - see if I can translate my single table join-to-itself query with Sweet - why junk up my code with ugly SQL?
- add next and previous navigation once I get over 10 entries.
- Move the SQL code to the Model object! :)
- Continue to tweak the look & feel. Maybe move it from index.tt to the header.tt. Maybe instead re-think the templating system?
Filed under:
Related Photos:
New To do list
 Posted by
on Wednesday, May 17 2006, 10:47pm
- Fix formatting. Implement either WikiStyle or some other psuedo-html formatting. At the very least, encode line breaks. They're killing me. While I'm at cleaning up the input, how's about cleaning up the input? :-)
- Add the no-cache header.
- Add skin support.
- Add a real threaded view?
- Low hanging fruit: incorporate some better navigation, look & feel, left hand navigation, etc.
Filed under:
Related Photos:
nasty sql
 Posted by
on Friday, May 12 2006, 6:12pm
Ok, I'm not one for figuring out nasty SQL. I was about to ask my friend Devin to lend a hand, since he's really good with SQL. However, I was able to figure out what I was looking for, and that was:
select a.blog_id,
a.blog_parent_id,
a.blog_title,
a.blog_date,
a.blog_authorname,
a.blog_authoremail,
a.blog_entry,
count(b.blog_id) as child_count
from blog a left join blog b
on a.blog_id = b.blog_parent_id
where a.blog_parent_id is null
group by a.blog_id
order by a.blog_id desc
And the result of that query counts the sub-comments for each main comment in the very blog you're looking at now ;)
Related Photos:
sql
devin
nasty
To Do list
 Posted by
on Thursday, May 11 2006, 5:45pm
These are some of the items on the current to do list. If you'd like to suggest some features, just click on the "Comment on ..." link at the bottom of this post.
- Fix formatting, maybe parse text in a wiki fashion. Don't make the users type in HTML for things like bold, italics, etc.
- Change the database schema to support child posts (for comments on posts).
- Implement comments :-)
- Add the no-cache header.
- Maybe do some quality checks on the input, to make sure no crap gets put in.
Filed under:
Related Photos:
A little more detail on using a new model
 Posted by
on Tuesday, May 09 2006, 4:34pm
The first time around, I was using a flat(ish) SQLite file, which worked just fine from my development platform, i.e. running the server as myself, connecting to it on port 3000.
All well and good, but once I moved the application over to running under mod_perl, I kept getting errors like "Can't open readonly file" "Can't open any file" etc. I was sure it was permissions, so I chown'd the database file to nobody, and iteratively worked up to chmod'ing it to 777 - even moved it to a more publicly accessible location.
I still don't know what it was. Instead, I moved my database schema over to a mysql database, regenerated my Model modules with the helper script, changed the Model module's references (before I refered to the Model module as blog::Model::CDBI::Blog, but I had to change that to blog::Model::CDBI::mysql::Blog in two places in my Controller - but other than that, *every*thing else worked flawlessly, including the ability to add new posts :-)
first post
 Posted by
on Saturday, May 06 2006, 10:34am
this is a test to see if the 'ole MVC framework really delivers on the promise - i just pulled the model rug out from under it without changing any other code... does it work? can i add entries to my new shiny database?
Related Photos:
firstpost
mvc
Journal entries started!
 Posted by
on Tuesday, September 18 2001, 11:27pm
Ok, once again I'm burning the midnight oil trying to digitize the whole of my experiences on the ride. Or at least the 11:30pm oil. Whichever.
So I've put up the beginnings of my journal, but please keep in mind that I'm typing this stuff out as fast as I can!
I've also starting putting captions on my pictures because I suppose I just felt like doing a lot of typing ;)
Enjoy for now, and I'll post more when I can :)
Related Photos:
journal
bike
ride
|
|