jump to navigation

hot glue or staple? September 27, 2008

Posted by faelix in ocity.
Tags: ,
add a comment

I used one of the hot glue guns this evening. Made me a thing-a-ma-jig that I needed for my other crafty-ness.
Then I decided to catch up on some xkcd. Good thing don’t have a staple gun – it might turn out like this.

Give a little, get shit September 24, 2008

Posted by faelix in moron-ocity.
Tags: ,
add a comment

I came across this today… lgmansw

The friend who’d mentioned it had said “it’s broken in Firefox”.
I figured straight away, before even seeing it that it was most likely because it had been designed for and in IE.
Knowing that our other friends who had seen the url would not have IE, I loaded it.
And it looks like this:

“It’s bee-yoo-ti-full in IE”, I proclaimed.

We did a view source – Front Page. ugh.

I captured screenshots of the page in IE and in FF so our friends could see it and so we could ridicule it.

And then I scrolled down.

Broken images. Every single one was broken. I thought, maybe it’s just FF. Loaded it in IE. Broken images.

Another view source and it was revealed that all of the image urls start with file:///.

You’d think that a group that has people looking at its site from all over the state that they’d make sure it was right. And that at least the pictures were there. But no, give someone Frontpage and they call themselves a web developer. They don’t even have enough brains to ask someone outside of their office to check that their site isn’t crap. Shoot them please.

Hot Glue Goodness September 22, 2008

Posted by faelix in ocity.
Tags: , , , ,
add a comment

It’s a good thing I’d never discovered hot glue guns before now. Sure, I knew they existed, but I never had a need for one…

Adaptability September 22, 2008

Posted by faelix in ocity.
Tags: ,
1 comment so far

I found this during work. I was looking for some simple way to add a prefix to every single item in a list or array. I had hoped there might be some built in function, but alas, no. However, my pathetic search string of “coldfusion modify every list item” to google gave me that article. I read it and realised it didn’t really give me what I wanted, so I proceeded to actually just put in some effort and write a one line loop.

That’s not what this post is about.

It’s about adapting to what you have, and making what you have adapt to what you need.
I’m a programmer. I work in web development, and have done so for about 95% of my work life.
I’ve worked for companies that will throw resources at you, give you whatever you need, whatever you want; and I’ve also worked for companies that give you a pen and notepad and expect you to maintain one of their main point of client contact applications.
I am now in my 6th year of developing in ColdFusion. While CF will run in linux and on macs, the companies I have worked for are typically Windows companies. My work machines have been windows machines, the system administrators have been MS administrators with a fear or aversion of linux. Couple this with a lack of desire to purchase or provide “strange” tools to developers, and one must learn adapt to maintains one’s effectiveness and efficiency. (Of course, that efficiency is not always for the benefit of the company – how else do you think I get to blog during the day?!)

The easyCF “tutorial” was written in 2003. I wonder how many people he has managed to inspire? And I also wonder how many people still would be sitting there, opening excel, waiting, rinsing and repeating?

In at least two memorable instances during my work career, I have encountered people who either do things manually when they could be (very simply and easily) automated, or refuse to share how they do something because of “job security”.

One was a requirement that I update (aka hardcode) in the file the ID of the latest promotion, so the latest one would appear each week, when the promotion was on. The ID came from a database, and I was even instructed to retrieve it from the database. So, the expectation was that I’d waste 5 minutes every Monday morning to do what I could code. I coded it. Never had to do it ever again. I could spend 5 more minutes eating my breakfast.

In my last job, I wrote a sql generator, that would general sql insert statements for me based on given criteria, or slight modifications to the generating code. Not the most brilliant coding, but it saved me hours of having to import data, or manually type data or sql. Sure, I could have made it also actually run the sql for me, however, there were many cases when I had no access to the db I needed to modify. So, I could generate the sql, save it to file and send it to others.

I also wrote a little utility that would, given an ID of a single, critical item, return me almost everything else I wanted to know about it. It would take that ID, select columns from a multitude of tables and subsequent tables and spit it all out on the screen for me. Prior to that, I would sit there and type query after query, over and over. I had way too many bugs to be investigating to be wasting my time typing queries.

I’ve got better things to do than do stuff manually, like blogging, or reading icanhascheezburger.