Easy Quote Of The Day

Easy QOD script. Gets unique day then uses modulo division % to rotate through the quotes. :-) window.onload = function () { // Update Quote var quote = document.getElementById('quote'); quote.innerHTML = getQuoteOfTheDay(); function getQuoteOfTheDay(selectionMethod) { var quotesArray = getQuotes(); // Default Behavior: Rotate through the quote set var quoteIndex = getUnixDayNumber() % quotesArray.length; // Option for random…

CouchCMS

This is a nice open source CMS platform that smaller web site developers might like to use for their clients: http://www.couchcms.com/docs/tutorials/portfolio-site/about-us.html…

Restoring a WP site

So my Dad's WordPress site went haywire today. Password was not working, and it wasn't sending a reset script via email. Then it just blanked out completely and wouldn't load. Luckily I was able to use a few simple command line moves, Sequel Pro and DuckDuckGo's search box MD5 hash…

WordPress time saver

As much as I like Ghost for blogging, WP is still necessary to know for websites. Here's a useful install script: https://www.rosehosting.com/blog/script-install-wordpress-on-a-debianubuntu-vps/ I modified it to work with nginx: #!/bin/bash # # Install WordPress on a Debian/Ubuntu VPS - NGINX # Allows for multiple installs -…

New Art Project

I am doing a "paint by numbers" audience participation art project with my friend Ree Ree. Put up a quick site "poster" annoucing the event (code is below): http://deadofwinter.org/ NB: I added a few creepy electronic mixes to the mp3 file using Audacity. You can hear these if…

Simple JavaScript countdown

Needed this for a project: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Countdown</title> </head> <body> <div> <p>Countdown</p> <p id='countdown'>&nbsp…

Keeping the site up

This bash script will restart your ghost blog if node crashes; it also sends an email to let you know your blog has restarted. Save and run this script as ./starter.sh. #!/bin/sh # This script restarts your blog up to 99 times before # quitting and sends you email when…

Hosting with nginx

Saved me a little time... http://dvsuresh.me/blog/2014/01/29/configure-nginx-for-multiple-websites-on-a-vps/…

bashSMS

This is a simple bash script for sending SMS texts. You'll need sendmail: sudo apt-get install sendmail Use it like this: ./sendSMS.sh 5555555555 < message.txt 5555555555 is the phone number to which you're texting. message.txt contains your message. See the file for formatting. Script is below. The…

Terminal Trickery

Use the mouse cursor to move around the OSX shell and other goodies... http://www.mackungfu.org/3-lesser-known-terminal-tricks…

Custom Fonts in iOS

The love/ hate relationship with iOS programming continues. So for a game app I'm making I followed the instructions here to put a custom font in a view, by adding Fonts provided by application as a plist key. It didn't work. So a little more googling came up the a…

Quick Update to Subway App

Updated the bus menu in the SimpleSubway App today. The menu animates on screen from the top left (A good resource for learning UIView animations is here.): Also updated the icon graphics to look a little spiffier: …

GitHub

Git is a version control system for programming projects. The code for creating a git repository and adding a project is simple. Just go to your project folder and type: git init git add . git commit -m "first commit" GitHub is a company that allows you to use its servers…

A Handy Reference

Here's a handy design reference that summarizes iOS7 changes for iOS designers and developers. My general feeling about iOS7 is that it was an unfinished product rushed out that will hopefully get fixed over time. Flat user-interfaces are fine but 3D effects work better on the smaller phone screens. Buttons…

Xamarin?

Hmmm... I am not sure about the Xamarin development platform, but it looks promising. Xamarin says it allows cross-platform mobile development, native code compiling. You write one code base in C# and develop in Visual Studio and publish to Android, Windows, and iOS. Sounds great if it works! Technologies like…

Running a GUI on your Ubuntu VPS

Not that any self-respecting Command Line Ninja would ever want to run a GUI on a server, but should you desire a GUI just to play around a little, here's an install guide from Linode: https://library.linode.com/remote-desktops/vnc-desktop-ubuntu-12.04…

Subtle Patterns for Design

If you want to find some nice background patterns for your site, head over to Subtle Patterns Free Textures. Subtle backgrounds are trending and especially useful as backgrounds for parallax scrolling effects on your sites.…

Useful: Prevent your Mac from going to sleep

If you want to prevent your mac from going to sleep just type pmset noidle into the terminal command line. I sometimes use this trick while turning the screen brightness down to zero when downloading a large file or syncing my DropBox.…

Useful: A list of Web Development links

Learning to program for the web can be daunting at first. Before you throw your hands up in frustration, here are some sites I've stumbled upon over the past couple of years that have helped me speed up the process greatly: I. Hosting I use the Linode VPS hosting platform…

Router Flicker

Ever wonder why your router light flickers incessantly even when you aren’t online? Is it the NSA? ;-) No. It’s signal noise. Other people’s signal noise. Unlike water pipes, information flows along your LAN not in a preferred direction, but nearly simultaneously (close to the speed of…

Minecraft on VPS (Linode)

For my son and nephew I recently set up a Minecraft server on an Ubuntu VPS. This page from Linode explains the necessary steps: https://library.linode.com/web-applications/game-servers/minecraft-ubuntu12.04 Warning #1: Make sure the SERVER Minecraft version matches the CLIENT (the one at your home) version. Otherwise…

Linux File System

Good overview of the Linux file system (useful if you're new to Linux or OSX and want to know where everything goes and why it ended up there...) http://www.tldp.org/LDP/intro-linux/html/sect0301.html…

Using Prettify in Ghost

When writing posts in Markdown in Ghost and using Prettify I find the easiest method to highlight syntax within code is to prepend a <pre> tag with <?prettify?>, then use the new <mark> tag to highlight sections: <?prettify?> <pre> your…

Ghost site up and running :-)!

Updated my site to Ghost. Initially reworked with Jekyll; however, since I will be learning node.js soon, figured it'd be smarter to use Ghost. Ghost's simplicity and Markdown preview panel are quite nice. You will likely need to set up your server config files (Apache or Nginx) to proxy…

Simple Subway - Objective C

Been working teaching kids science lately and trying to figure out what the next great idea/ way forward will be. In the meantime, I made a Simple Subway app to teach myself how to program in Objective C. Now, why? Good question. Why would I do that? Well, here's the…

TeamSync

TeamSync's vision is "synchronized media as a social experience": Sync up a training event with participants dispersed across the world--continents away or just across the street. Watch a synchronized movie online with a loved one who is overseas. Or share a favorite book with your child while away on a…

Hagopian Ink

My friend Christina at Hagopian Ink needed a mobile version of her web site. I was happy to oblige! The best print, web, mobile design in New York: www.hagopianink.com/mobile. Site required a custom image slide show viewer using JQuery, reworking flash video to animated gifs, and layering…

Buggie

Cartoon game project called "Get Buggie". Built a prototype and approved on Kickstarter. Need more money to finish. There's always hope (see below)!! Have you got a spare 10 grand? We will finish it!…