this.rand()
Hello Guest   Login / Register

Posts Tagged ‘computing’

BookX 0.3 Released

Posted on Tuesday, June 9th, 2009 by ryan

It has been a little while, but I have released BookX 0.3.   It is not a huge change, mostly a couple of bug fixes, but also verified complete compatibility with the upcoming version 2.8.  So Enjoy!

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

Why Drupal Views make so little sense

Posted on Saturday, March 21st, 2009 by ryan

I recently had a very short contract gig working for a company that creates websites using Drupal.  While that doesn’t sound very interesting or even hard, to make it more so of both, these guys used Views for every

Drupal
Image via Wikipedia

thing.  Which I just don’t get.

If you are a programming, why would you use views?  It is adding a layer of abstraction between the logic and database in an interpreted language with a framework that is already bloated beyond all recognition.  I know when I write plugins for Wordpress, I want the plugin to be quick, precise, and add the least amount of overhead possible.  Views just seem to be a way to do all the opposites of those, just for the hell of it.

If you are not very technically inclined, I understand.  Using views is a lot like using MS Access.  You can create fairly complex queries yourself, without having to get someone that actually understands it involved.  And that is the trade off.  You can do it yourself, and eat the extra overhead, or pay/hire/bribe/cajole someone else into doing it for you, specialized, and thus, in theory at least, more efficiently.

These folks claimed to be programmers though, so I just don’t get it.  Why are you depending on someone else’s plugin, that extends functionality that is inefficient and clumsy, can’t do everything, and still requires custom code to be written or even more plugins to be added.  Where exactly does that circular line stop?

The Drupal “framework” and I use that term loosely since it is really a CMS that can just be extended, has enough problems and bloat in it, why exactly are views worth adding more?  Again, assuming you know SQL and PHP on even a basic level.

It just doesnt make any sense.  Query writers and views are one thing if you are working directly with the database, (e.g. phpMyAdmin or TOAD), but adding it as a layer to a “custom” application that you will be supporting when you claim to be capable of actual programming!!??  Please explain that one to me.

To be fair, I dont use Drupal much, I like WP much better.  The OO approach is much more appealing than the very Perl-esque (read: old) way of doing things Drupal does with its modules. But I still don’t get what the big deal is about Views.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

MultiX 0.1 Released

Posted on Sunday, March 15th, 2009 by ryan

MultiX is a lightweight script to allow for the seamless administration of multiple Wordpress websites that can reside on different servers and databases.  This plugin is a way for those of us that need to administer multiple Wordpress websites but don’t have the luxury of having all those sites on the same server or database.  I have a lot of Wordpress sites I admin for people and am getting more every day.  It is a complete annoyance to have to re-login to each and every one of them, so this plugin makes it to where a trust relationship is set up, and viola, now you can move back and forth at will.

Features

◊ Easy to setup and install
◊ Secure random trusted key method of authentication

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

BookX Released!

Posted on Friday, March 13th, 2009 by ryan

BookX 0.1 is finally released.  BookX creates an easy way to give your site visitors a peek at your recommended books.  Using only ISBN numbers, it gets the information from Barnes and Noble (http://www.bn.com) and stores the information locally to both speed up the response time, but also to not bog down their servers with repetetive requests.  BookX creates a widget for your sidebar, a list view, and detail view, all customizable from the easy to use admin interface.

Features

◊ Uses only ISBN to fill in all the important information about your books
◊ Creates a Detail Page View, List View, and a Widget all from the same plugin
◊ Each view is totally customizable from an easy to use admin interface
◊ Lots of controls over the look and feel of the generated code through the admin interface
◊ Stores most (just not the image) of the data on your server for fast results and better control

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

ThemeX 0.5 Released

Posted on Tuesday, March 10th, 2009 by ryan

ThemeX 0.5 is now ready for download and installation.  Here is the change log:

Just a bug fix, squashing the last known one.  It was a tough one to track down but thanks for bearing with me.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

Programming Standards are NOT pointless

Posted on Thursday, January 29th, 2009 by ryan

It seems some people took my other article a bit too seriously.  While I was very serious and feel strongly about my convictions when it comes to HTML “validation”, the same cannot be said of programming standards.

For those of you that have never programming professionally, this stuff may be very new to you.  However, trust me, it is extremely important.  Programming standards are not stupid, are not corners to be cut, and must be strict, otherwise they ARE pointless.

There are standards when it comes to documenting your code, and I wont get into them.  But if you are interested there are programs out there which more or less set the standard if you want to use them.  JavaDoc, PHPDoc, and for those MS folks….. .  Go check out their websites for good advice on how to format your comments in your code.

Now, for actually coding, I have my own set of standards, developed over the years, to make the code both readable, but also hopefully logical.  Most people I run into think my code is pretty readable, some languages more than others.  Let’s face it, Perl code will never, ever, be as readable or “pretty” as Python.  It just isn’t going to happen.  Sorry you old UNIX guys, but Perl just isn’t very pretty.  The OO languages are much easier on the eyes.

So, other than for documentation reasons, readability (which leads to maintainability), are there actually other reasons to program to a standard?  Only if you want to use your code in some sort of portfolio.  But those first two reasons are EXTREMELY important.  Everyone out there that has programmed professionally will know exactly what I mean.

Tabs or spaces?  Braces at the end of a line or on their own line?  Spaces between concatenation or operators?  Double quotes or single quotes?  Print to buffer or hold in variables?  Globals or object variables?  Arguments or variables?

There are a ton of questions, and I cant answer them all.  But think about why you do something, and if you cant come up with a good reason, probably time to stop doing it.

Reblog this post [with Zemanta]
 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

Programmers, do you have Insurance?

Posted on Saturday, January 24th, 2009 by ryan

Calling all programmers, those of you that do it professionally at least.  Do you have your own personal errors and omissions insurance?  Should you?  Probably.

I have been in development for a long time time, about 12 years, and for the web development world I live in, that makes me ancient.  I carry my own errors and omission insurance for personal projects, just in case the GPL can’t protect me well enough.  What is this insurance you ask?

There is a good article over at Insurance Journal that goes over exactly what it is and why you might need it.  My question is a bit more complex though.  If you are a professional programming, working on someone else’s payroll, do you need this insurance?  If you are fired for incompetence, or laid off, and the company you used to work for finds a bug that has cost them $1M a week since it was implemented 2 quarters ago, do they have the right, or abililtty, to sue you for that loss?  Perhaps.  It all depends on where you live, what company, and the situation.

Being sued for something you did on the job, in the best interest of the company, under the leadership of someone else, is extremely rare.  Most likely because it requires the company to admit they were less than diligent, didn’t do a very good job managing, and then makes them liable to their stakeholders since they are basically admitting an agent of their company screwed up.  Companies don’t like to do that.

However, if you are working on a 1099 or a third party W2, you need to make sure you are covered.  If you are on 1099 or doing corp-to-corp, you had better have insurance.  You are liable in that case, in the absence of another contract, for everything you do and write.  While you probably wouldn’t be found guilty of anything (I hope), it would be expensive to fight it, and better let the insurance company do it.

If you are on a third party W2, make sure the folks you are actually workign for have E&O insurance as an add on or rider to their general liablity.  You could need them to protect you for something you did in their employ on behalf of one of their clients.

So, do you have insurance?  Do you need it?  I am not a lawyer, so none of this should be taken and blindly run with, but, ask yourself if you are covered, and if you have questions or doubts, find someone that knows and ask.  It never hurts and could save you a lot of trouble later.

Reblog this post [with Zemanta]
 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

For the Love of God, Optimize those Images!

Posted on Monday, January 12th, 2009 by ryan

Time for another lesson in web design: Image Optimization!  Yes, as we all know it is really pretty to have a huge header on your website.  Hey, look at this website, I have large images on my front page.  But, you don’t have to make that experience painful for your users, especially those on *gasp* dial-up!

The solution is simple: optimize your images.  I use Fireworks, but Photoshop has it built in these days as well.  It is basically a way of taking the image you want to use, and removes unwanted data, making the image size smaller, and hence, faster to load.  The web is a horrible medium for images, the 72dpi resolution of most monitors is just not that great.  But, it is all we have right now, and that is probably a good thing since anything more and the image just gets bigger and bigger.

By optimizing, your look stays intact, and everyone can enjoy it faster.  And it is cheaper on your wallet since it requires less bandwidth and less CPU to serve a smaller file.  Speaking of cheap, for those of you that do not have the Adobe suite, there is a pretty spiffy free online optimizer here.  Enjoy, and for the love of all things holy, optimize!

If you want to read more on the topic: HTMLSource.

Reblog this post [with Zemanta]
 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

Stop invading my ears!

Posted on Wednesday, January 7th, 2009 by ryan

To everyone out there that thinks it is “cool” or “neat” to put music on your website, do the rest of us a favor, and don’t.  While I understand the aesthetic nature of some sound,  for the most part it is just annoying.  When online, I usually listen to iTunes, and the last thing I want is some hideously encoded streaming .wav file repeating the same 6 seconds of music over and over again.  Unless I really need to be on your website, I hit back on my mouse and try to immediately start repressing the memory that is your website.

At the end of the day, music requires a lot of bandwidth for those of you hosting the music files, a lot more than even a complex page (assuming your images are optimized, but don’t get me started on that today).  And for every Pro:fx out there, there are a 100 Hampsterdance websites.

If you aren’t an amazing DJ, or awesome Flash/Shockwave/Silverlight developer, do us all a favor, and leave the music off your website.  I like my thousands of MP3’s, and I don’t force you to listen to them.

Reblog this post [with Zemanta]
 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 

ThemeX 0.2 Released

Posted on Tuesday, January 6th, 2009 by ryan

ThemeX 0.2 is now ready for download and installation.  It adds several new features including:

  • Cleaned up admin page for the new 2.7 look
  • Date based rotation
  • Fixed bug #6
  • Fixed bug #10

That is about it.  Right now there are no known bugs, and a few new features.  So enjoy!  And as always let me know if you have any issues or thoughts.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us