Kevin Whitman's Blog

Category: Uncategorized (page 1 of 2)

Steve Jobs and his son Reed Jobs in 2007

58 years ago on February 24, Steve Jobs was born in San Francisco, California.

Steve Jobs inspired a lot of us, helped show us beautiful design and typography. As he said in his Stanford Commencement Speech.

If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces or proportionally spaced fonts. And since Windows just copied the Mac, it’s likely that no personal computer would have them.

Other than the Mac and fonts, without him we would not have the iPod, the iPhone or the iPad. Products that are awesome and has over 275,000 third party developers for them. Without him, this world would have been different and less beautiful. He made the world a better place.

Happy birthday Steve. I really wish you were here to enjoy it still, and I miss your keynotes that would always light people up with excitement.

Related Content: Back in 2011 I wrote a post about some of my favorite quotes by Steve to help celebrate his life. If you have some free time and need an interesting read, check it out.

Free ChunkHost VPS

ChunkHost is giving away free VPS’es. They start at 128MB of Ram, 3GB of disk space and 35GB of bandwidth but the cool thing is, if you refer people you can get it upgraded to 2048MB of ram, 30GB disk and 600GB bandwidth which is great. I guess to them this is free marketing and if people like their free VPS, maybe they are hoping if you need a bigger one or a second one(maybe another project) that you’ll pay with one of the paid plans.

I signed up about 2 months ago and today I woke up to my email saying that it got created. The time for waiting might be different for you as I’m not sure how they allocate them.

I SSH into the server and set up a basic demo page. http://vpsdemo.keverw.com/. They offer Ubuntu 10.04LTS, Ubuntu 10.10, Ubuntu 12.04LTS, Debian 5 (lenny), Debian 6 (squeeze), CentOS 5.6 and CentOS 6.2 for the operating system choices. I’m using 12.04LTS as it’s the latest Ubuntu OS they offer. But if you really wanted the least release (Ubuntu 12.10 currently) I don’t see a reason why running the update commands from within 12.04 would stop you from updating. I think this small 128MB server would be great if you wished to host a small website to get yourself started. Great if you just want to play around with Linux, and if you screw up you can reimage it.

You can check out the part two of my guide of setting up a sandbox in a VM, scroll down to “Connect via SSH” to see how to connect and the commands to setup PHP, MySQL and PHPMyAdmin once you get your server created.

Disclosure: I linked to ChunkHost using my referral link. Hoping to get my VPS upgraded to the max, planning on hosting a future project on it that should be ready around mid 2013. If you signup you can do the same by sharing your referral link with friends and family via social networks, your own blog, etc.

MySQL without writing SQL!

I was working on a PHP application and felt like writing SQL is a bottleneck for adding new features quickly. So I decided to write a database abstraction layer library. One really simple, yet powerful to use. Something to make databases fun again. I decided to call it PastaDB. Since uncooked pasta is nice and solid looking vs. SQL which looks like spaghetti a lot of the time. So you tell this library what you want to get done, it prepare’s, cooks it and gives you a result.

I wrote version 0.1 over the weekend. Aimed at keeping it simple. For example an insert is $db->insert(‘TABLENAME’, ARRAY OF DATA TO INSERT). and it returns TRUE or FALSE. Also supports MySQL transactions with a simple API. $db->begin(), $db->commit() and $db->rollback(). I really made this library for me and my needs, but decided to open source it on GitHub because it might be helpful to others, and maybe the project can get outside improvements. Check it out at https://github.com/keverw/PastaDB, I hope others will like this as much as I do!

I’ve been playing with Node.js

For about the past month and a half I’ve been playing with Node.js. Node.js is server-side JavaScript, using Google’s V8 JavaScript engine. Node.js can run a HTTP server, or any other type of socket connection. I’ve really only experimented with it’s HTTP server using the Express framework

I’m coming from a PHP background, so writing server backend’s in JavaScript while being asynchronous requires a slightly different mindset. In PHP, a user hits your Web server and Apache fork’s a new process, the PHP interpreter runs the script from top to bottom, then it gives the output to Apache and then dies. With Node.js, you have one process for the whole Web server. Also I find myself passing around the request and response objects a lot, unlike with PHP where you have a start.php or config.php file with variables accessible by any of the code. But after a while the stuff will come naturally to you.

I’ve started experimenting with writing a cloud based video encoding related application(not giving many details on that yet, not promising anything.) within Express, I use EJS(Embedded JavaScript) for template files so I can keep my application logic away from my views. I have configured my app I’m working on to have PHP styled open and close tags, since I’m used to template files being that way in PHP.

Another thing you have to do is define all your routes, guesses very similar to the frameworks like Ruby on Rails. Also with Express, I created a static file store to store my CSS, public JavaScript files, images and anything else I would want served statically.

Another thing I really love about Node.js is NPM(Node Package Manager). NPM is a package manager similar to apt-get that comes with Node.js. In the NPM, you can install modules, and publish modules. I’ve already wrote a few modules, to help me out on my own applications.

Some modules I wrote already are:

diskspace.js

A module to check how much free space, and total space the hard drive has. Node.js didn’t really have any native functions for this. This module works on both Linux, Mac and Windows. On *nix systems it uses df -k and on Windows it calls a small little C# application I wrote called DriveSpace(My first C# app) that comes bundled with the module.

Revolver

A simple generic round-robin. Great for database connections pools.

MailKit

A simple but powerful email wrapper around Nodemailer. Also uses Basic Template, another tiny module I wrote.

Range Check

A module to detect if a IP is valid, it’s version and check if its within a certain range. I mainly wrote this to use in node_CloudFlare.

node_CloudFlare

I use CloudFlare to supercharge my websites. I wanted this in Node.js, and I couldn’t really find any existing modules, So I wrote my own.

datamask.js

A simple module to mask emails, domains and even regular strings! Will turn [email protected] into t**t@e****le.com

HTTPRequest

A simple yet powerful HTTP request library inspired by jQuery and LSL written in JavaScript for client and server JavaScript. I wanted a nice and clean simple to use HTTP request library for both the server and client, so I wrote one.


So those are some of the modules I wrote so far. I really enjoy Node.js, but sometimes it feels overkill compared to just whipping out a .php and just writing something quickly. I guess I’ll get more used to Node.js and get better at it as time goes on. I also want to get in to mobile development, so I think Node.js would be a great tool to write backend’s in.

ÜberConference

ÜberConferenceConference calls have been around for a long time, but they aren’t that great. You have pin codes to enter, the controls are hard to use, not sure who’s all on the call. They are often confusing and most of them I played with in the past I just gave up on due to having a hard time to work them.

Well, ÜberConference aims to make us love conference calls, and so far I like it. It has a web interface where you can create conferences and invite people. As a bonus feature you can record calls to MP3 and download them. Conferences calls can be private or public, when made public a pin code is given for people who’s not invited. I can import contacts from LinkedIn, Google(I use these) and a few others.

People who’s in contacts show up with their name and some other details about them. It also seems to show social networks people have added if they have an account also.

The service was invented by the same people who invented Grand Central, which Google acquired and turned it in to Google Voice. Currently the service is free, but I think in the future they will charge for add-ons or maybe the whole service with different plans(Max people in the call, max call recording time, etc) but this is just speculation.

https://twitter.com/Keverw/status/205017720893345792
https://twitter.com/Keverw/status/205020310381146112

I never wanted to host a conference call before, but ÜberConference wonderful UX made me want to try it so I tweeted it out and a few people called in :). The call quality was excellent.

I think this service is worth checking out. Currently you have to ask for an invite, but I got it the next day, but you may not get the same results. I think this could be a real nice alternative to using Skype to conference a bunch of numbers together. So far this and Skype are the best conferencing products I’ve used, but ÜberConference is more aimed at phones so this could make a good replacement for businesses who do phone conference calls.

Disclosure: The ÜberConference link up top is my affiliate link. Each new user that signs up via this link will give me credit towards future features.

CCleaner for Mac!

I was board and was browsing the Mac App Store and stumbled apon CCleaner! I’ve previously talked about similar apps like AppCleaner, MacKeeper and MacCleaning. Coming from the Windows world I’ve used CCleaner and I love it.  Was excited to see it on the Mac!

 

The cleaner feature itself to clean up log files, cache, etc is working great! The uninstall feature kept on giving me an error. Not sure why, I’m an administrator. 

This app seems useful on Mac and I just wanted to share it. I think I would rate it a 4 out of 5 stars. If you would like to give it a spin, you can download it on the Mac App Store at http://itunes.apple.com/us/app/ccleaner/id499268461?mt=12 for free as of this writing. What are your thoughts on this application? Feel free to write your answer in the comments.

HTML5 Video and DRM

Many people call HTML5 an Adobe Flash replacement and I agree. Adobe already discontinued Flash on mobile devices. So HTML5 Video is a must for video on mobile phones and tablets. On the desktop Flash Video players are used more than HTML5 Video players but HTML5 video will work with a current web browser on a site that supports HTML5 video. Commercial video sites like YouTube will play partnered content in Flash even if you turned on HTML5 video at https://www.youtube.com/html5. I assume the reason for this is HTML5 video doesn’t really support DRM. The HTML5 video tag just tells the web browser where the video is and other info it needs to know, then the browser handles the video playback using a supported codec and other features like controls. Continue reading

My first open source project, Random Quotes

One of my friend wanted a random quotes. So I turned the idea in to a real script.

So since the idea seemed simple I wrote the script on and off about 3 days. I normally don’t work on scripts for other things because I really need to focus on Viewashi. We also decided to open source it. Great way to show my coding skills to others. On the user interface I used some tables and inline styles just as I was rushing and I hate coding user interfaces. Continue reading

Rules for iOS device upgrades

wpid-Photo-Jan-16-2012-948-AM.jpgAs most of us know Apple comes out with a new iOS device about every year. Some people feel like their current iOS device is slower or crap when a new device comes out and rushes to buy the newer one. Some of us wait.

I would buy a new one right away if I had the money. So here are some rules I set for myself.

For iPad and iPod Touch

For iPod Touch’s and iPad’s I would recommend upgrading them every 2 or 3 years or Apple no longer provides software updates.

For iPhone

Continue reading

I got an iPad!

I recently got an iPad 2 as an early graduation present from my wonderful grandparents.

My iPad 2!This is my first tablet computer. After using it for a few days. It’s amazing. I haven’t been this excited about an Apple product since I got my first Mac. Continue reading

Olderposts

Copyright © 2010 - 2024 Kevin Whitman's Blog

Back To Top ↑