Archive for January, 2015

Recent Small Jobs

A few smaller jobs that I was involved in recently and now it is time to give a shout-out to people looking for work or trying to run a taxi company in SF.


http://patrickyoutz.com/

patrick-youtz

A very talented designer, looking for a gig. I worked with him at Monster and he is a great guy. He needed some help debugging the JavaScript and responsive CSS stuff.



http://airporttaxiairport.com/

ata

A dependable, quality flat-rate taxi service in San Francisco with online reservations. This is a custom WordPress implementation. Originally he had his site in the truly awful VistaPrint web world. Run away from that system like the plague!!! I set ATA all up with WordPress. I created a plugin so that the data for the various fares is managed in a Google spreadsheet. This data is then used to run the entire shopping cart. The site sends the user to an Authorize.net simple checkout. Secure, clean, dependable, flexible and really awesome.

Just a Great NODE.JS, EXPRESS, JADE, AND MONGODB Tutorial

I have been really enjoying, in between jobs, reading and studying all the new stuff. AngularJS, MongoDB. It can be frustrating at times as the writing in these tutorials is so dry and dull it makes the California drought look like a flood. The tutorial work by Christopher Buecheler is outstanding. Clear and bullet-proof explanations that keep you moving along. I had already gotten pretty far with node but what a great tutorial. There is also a part two which is also very good.

http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/

OK! So now we’ve got our router routing us to our view, which we are viewing. Let’s do some modeling. I’ll give you a moment if you need to fix your hair or makeup.
Christopher Buecheler

Hilarious!

Writing with a sense of humour is often in short supply in tech tutorials. The combination of really great steps with a little wit goes a long way.

New WordPress Theme “Music Freelancer”

Had a great time building this theme for my son Kai. It is a WordPress theme for Musicians. Basic but effective for the playing and teaching musician. Utilizes Bootstrap 3.2 & fontawesome an upgraded audio playlist feature with images. Uses “Featured Images” as the fullscreen background to pages. Ongoing project in my desire to master custom WordPress theme development.

kai-site



See: kailyons.com
GitHub: https://github.com/pelicanpaul/wp-musicfreelancer

This is a free theme.

Best Programming Jokes – Welcome 2015

Who says that programmers do not have a sense of humor? Some of the best programming books are actually concise exercises in humor. I have always advocated that good code is short. Refactoring code is always about getting rid of stuff. In the process, you have to just laugh at it all. Some of these are not even jokes, but insights into good programming really.

I first made this list in 2013 and they still make me laugh and help me in times of need.

When debugging, novices insert corrective code; experts remove defective code. ~Richard Pattis

Controlling complexity is the essence of computer programming. ~Brian Kernighan

Reusing pieces of code is like picking off sentences from other people’s stories and trying to make a magazine article. ~Bob Frankston

What I mean is that if you really want to understand something, the best way is to try and explain it to someone else. That forces you to sort it out in your own mind. And the more slow and dim-witted your pupil, the more you have to break things down into more and more simple ideas. And that’s really the essence of programming. By the time you’ve sorted out a complicated idea into little steps that even a stupid machine can deal with, you’ve certainly learned something about it yourself. ~Douglas Adams

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you are as clever as you can be when you write it, how will you ever debug it? ~Brian Kernighan

Programming is like sex. One mistake and you have to support it for the rest of your life. ~Michael Sinz

A good programmer is someone who always looks both ways before crossing a one-way street. ~Doug Linder

Beta. Software undergoes beta testing shortly before it’s released. Beta is Latin for “still doesn’t work.” ~Author Unknown

Good code is its own best documentation. As you’re about to add a comment, ask yourself, “How can I improve the code so that this comment isn’t needed?” ~Steve McConnell

One man’s crappy software is another man’s full time job. ~Jessica Gaston

How to Create Your Own File-Based Image Galleries with php, ftp, Shadowbox and a Groovy File Structure

or perhaps titled:

I don’t trust anyone with my photos, not Flickr, not Google and especially not Mark Zuckerberg!

Requirements

  • Linux Hosting Account (php enabled)
  • ftp program for uploading files

Implementation

History
I wrote this post a few years ago and recently updated it with some automated thumbnail creation. Below is that original post.

Many years ago, in the dark ages of web development, when I had a Windows hosting account, you know one of those $4.95 a month deals, and I wanted to post lovely photos of my kids and vacations, I would do it a state of the art way. I’d open Photoshop 7 and chose “Create Web Gallery.” I would then wrestle the various dialogue boxes into submission and create a Web Gallery. It worked. It looked cool. It used tables for layouts. I was a genius.

Last year I closed my Windows hosting account. Never use webhost4life. It is a terrible hosting company. As I was doing a lot of Word Press, I chose BlueHost. So far so good.

Now I could have just uploaded all my old Photoshop galleries to my new hosting account but this seemed lame. I did not want to use any Web 2.0 stuff, in other words startup companies just waiting to be bought out and make your life really complicated, but I did want to use ftp to upload files. So with a little php, notably scandir, I created a way to display all the photos in lovely paging galleries.  The first time a particular gallery is accessed, it creates a folder of thumbnails in that directory named ‘thumbs.’ This makes the pages load faster.  Larger versions of the images utilize Michael Jackson shadowbox, still one of my favorite lightboxes  There is no indexing for searching, or meta tags, but to be honest, I would never get around to entering this sort of data. Maybe in the next version, I will add this feature.

A few key elements (let us say features and recommendations) of “Paul’s Amazing php Photo Gallery” are

  • Name your folders like this 2012-08-New York. The folders will display by replacing the dashes with spaces and are ordered in descending order.
  • Process your images to 1200px wide. This way they will look great when large, but not so big it takes forever to see a gallery.
  • All gallery images have a lightbox large image version. Go shadowbox!

that’s it…
Enjoy!