February 2012
3 posts
Creating custom filters with drupal and views |...
Ah views. Yes, the views module for Drupal is incredibly powerful and combined with CCK has essentially eliminated the need to ever create custom modules for content. While this is a happy thing, sometimes views just doesn’t quite do what you want. And, rather sadly, there is almost no documentation on how to create custom views plugins/styles/filters/etc. Boo. For a recent project, I...
Creating custom filters with drupal and views
<?php class custom_filters_filter_multiple extends views_handler_filter { /* this method is used to create the options form for the Views UI when creating a view * we use the standard drupal form api to return a form array, with the settings * we want to capture. */ function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); // Step...
Drupal Entities - Part 3 - Programming Hello...
After way too long a time I finally get back to the series of posts (check out Part I and Part II) on Entities to present the third in the series - how to actually create an entity. Part of the challenge of writing a post like this is that there are so many different aspects to entities that it is really hard to distill things into a single post that gives you something useful at the end. What...
December 2011
1 post
The American Scholar: Solitude and Leadership -...
Essays - Spring 2010 Solitude and Leadership If you want others to follow, learn to be alone with your thoughts By William Deresiewicz The lecture below was delivered to the plebe class at the United States Military Academy at West Point in October 2009. My title must seem like a contradiction. What can solitude have to do with leadership? Solitude means being...
October 2011
2 posts
How to change the default MAMP MySQL Password http://t.co/LbZr5w10
How to change the default MAMP MySQL Password
When you are changing the default user/password from root/root, you need to do two things. Only the first is documented in the MAMP start page FAQ, but if you don’t do the second then you get an error message when you try to access anything from the MAMP start page. Use command line to change the password (as documented in the MAMP start page FAQ) Open the terminal and type the...
May 2011
3 posts
4 tags
SASS adaptation of 960gs
So this past weekend I started working on a bare wordpress theme called NakedCompass. And as part of that project I decided that I also wanted to tie it together with the CSS Framework Compass (and SASS). Now Compass comes bundled with a SASS adaptation of the excellent Blueprint framework. But I personally prefer the 960gs framework, which unfortunately does not come with Compass. And try as I...
6 tags
Weekend Project - NakedCompass - An HTML5...
So this weekend I decided to bring together Paul Irish’s HTML5 Boilerplate and Wordpress. I found a few projects on the web already trying to do this… but none that really met my own requirements. That is they didn’t work with the HTML5 Boilerplate build script, and they didn’t make use of wordpress conventions (such as using wp_enqueue_script). The one that came the...
4 tags
Sublime Text - An Awesome Text Editor
I just discoverd Sublime Text and in my opinion it is the best text editor that I have used yet. Lacks some of the code intelligence that Coda offers, and the plugins that are available for TextMate. But makes up for it by letting you split your screen into columns, the 10000 mile view, and many other goodies. It’s free to trial so just go and check it out yourself. Posted via email ...
April 2011
6 posts
SEO Friendly Select Menu Using CSS and jQuery
The scenario: For a project I am working on I wanted an ajax powered navigation menu that worked exactly like a dropdown select box nav menu… i.e. first click opens the dropdown, next click selects the item (link) you want to go to, the dropdown closes, and the link you just selected is now displayed in the ‘select’ box. Doing this using a select box is pretty easy. So why not just use the...
Programming Praxis http://post.ly/1tPA1
3 tags
Programming Praxis
Today’s problem appears with some regularity at places like Proggit and Stack Overflow and in lists of programming interview questions: Given a binary tree t and two elements of the tree, m and n, with m<n, find the lowest element of the tree (farthest from the root) that is an ancestor of both m and n. For example, in the tree shown at right, the lowest common ancestor of 4 and 7 is...
Good read on the decline of Myspace. http://j.mp/glFJeK
Legos at work http://post.ly/1qtZd
Legos at work
See the full gallery on Posterous Proudly introducing the first ever Lego sculpture built at Enswers. Architecture and design by Andrii, Johnny, and myself. We call it… The Deceptive Cabin… complete with swinging doors, draw bridge, death ray, dune buggy, and dismembered individual. This is one cabin you don’t want to mess with. Posted via email from...
March 2011
2 posts
Great Advertising
Maybe it was the sex that sold this… or maybe it was the lack of text… whatever it was I found it intriguing and in a world inundated with ads… one that makes you pause, take out your phone, and follow the QR code to its final destination is something Posted via email from adlatitude | Comment »
5 tags
Wordpress Example Code - how to include a...
If you are trying to add a stylesheet or javascript file from a wordpress plugin, to the best of my knowledge this is how you do it the right way, although perhaps not the best way… see How a Jedi Master Loads Scripts To add a stylesheet: function soompi_itunes_load_stylesheet() { $url = plugins_url('/path/to/file.css', __FILE__); wp_register_style('pick_a_unique_name', $url);...
February 2011
4 posts
How to connect to MAMP MySQL Database using...
Sourced from Using MySQL Command Line with MAMP 1. Start your MAMP server 2. Open terminal and enter this:
/Applications/MAMP/Library/bin/mysql —host=localhost -uroot -proot Posted via email from adlatitude | Comment »
2 tags
Moving Wordpress to a new url
Note to self as a reminder on how to move a Wordpress installation to another url… in this case to a localhost site so that I can develop locally. First backup your current wordpress database. Follow instructions here to do that: How to Backup your Wordpress Database Here you have a choice: You can save all your Wordpress files (including the core files) or just save the stuff you changed....
Setting up a MAMP VirtualHost
Note to self so I don’t forget how to add a VirtualHost to MAMP Test Posted via email from adlatitude | Comment »
How to Include reCaptcha into Buddypress
As a disclaimer, I am a beginner PHP and Wordpress developer… but this is a lesson I learned today and something that I would like to share. These past week I began working on a website / community for my friend. Long story short, I decided to go with Buddypress. Despite Buddypress’s many features one feature that was sorely lacking is the inclusion of a Captcha or similar mechanism...
October 2010
2 posts
When a tweet is more than a tweet
So Twitter. You know what it is… right? Of course you do it is that web thing that everyone is talking about. The thing that Zuckerburg was pining after, before he realized Twitter and Facebook solve different needs. The thing that John Mayer was all about before he switched to Tumblr. It’s a public bulletin board / web messaging system / chat room for people to tell the world about...
Long but fascinating - John Sculley On Steve Jobs, The Full Interview http://bit.ly/aM7rHI
July 2010
2 posts
Awww… hellz yeah! Don’t know how this happened but ZImly got featured in #KillerStartups http://bit.ly/9bdrGj (via @planetzimly)
Got my official OTA Froyo update (FRF91) on my N1 (been running FRF50). Haven’t found any changes, but I’m excited.
June 2010
8 posts
Just installed Amzn #Kindle on my Android N1… instant access to all my purchased books, on all my devices. Can iBooks do that? NO!
ourfarm brings local farms and ppl together using a Farmville like experience… i hate Farmville but this looks great #sicamp36
just finished our 36 hour #sicamp36 marathon. time to find out what the other 8 teams here accomplished. i’m excited
passed the half way mark at #sicamp36. no sleep and still going strrroo…. gzzzzz…Zzz… :)
just arrived at #sicamp. super stoked. 36 hours to code up something useful… start in 3… 2… 1…
If u have an Android and u don’t have #Swype u are missing out. Sign up for the beta and get it: http://beta.swype.com/
RT @planetzimly: love from @techcrunch: GOAP Seoul - #zimly is an #android app pitched as the “social media player” of the future http:/ …
April 2010
5 posts
listening to Superstar (feat. Matthew Santos) by Lupe Fiasco on @Grooveshark: http://tinysong.com/7452 #nowplaying
Google to Open-source VP8 for HTML5 Video http://bit.ly/aMQxFV
My first interview ever… thanks to @newspaperman of @CodeInKorea for this opportunity http://bit.ly/dganaF
ipad was not love at first sight http://post.ly/ZTXF
ipad was not love at first sight
Thanks to 조산구 (@josanku) of KT, I had the opportunity to play with an iPad today (pictures below). I didn’t have a chance to play with it for long, but my first impression is that it’s a nice device… but not all that. It won’t replace your laptop, and it won’t replace your smartphone, but if you have money to spare, I can see how it could be a fun toy. Personally,...
March 2010
1 post
Coworking Seoul Style at CO-UP
This past Saturday, I had the great pleasure of visiting my friend Ejang’s newest venture CO-UP, a first-of-its-kind coworking space here in Seoul, South Korea. And, in my opinion, CO-UP is a much needed addition to the Korean startup community. Perhaps now that we have a formal place to hang out, network, and bounce crazy ideas off each other, we will begin to see a much more vibrant...
January 2010
5 posts
WOOT! Zimly adopts a US born Nexus One and Motorola Droid http://post.ly/LZgQ
WOOT! Zimly adopts a US born Nexus One and Motorola Droid http://post.ly/LZfY
WOOT! Zimly adopts a US born Nexus One and...
Today Zimly became the proud parent of a Nexus One and Motorola Droid (will put up the pictures tomorrow).Both of our babies look beautiful! We love ‘em both equally, but if I had to pick a favorite I would say that the Nexus One is by far a much sexier device than the Droid (imho). The Nexus One was ready to go as soon as we powered it up. The Droid gave us a little bit of a scare though...
WOOT! Zimly adopts a US born Nexus One and...
Today Zimly became the proud parent of a Nexus One and Motorola Droid (will put up the pictures tomorrow).Both of our babies look beautiful! We love ‘em both equally, but if I had to pick a favorite I would say that the Nexus One is by far a much sexier device than the Droid (imho). The Nexus One was ready to go as soon as we powered it up. The Droid gave us a little bit of a scare though...
Follow @TheNextWeb on http://fb.me/thenextweb to win a free Apple Tablet! Details: http://bit.ly/cHYB9K
#TEXAS D BABY!!!!
Our goal is to change the world. Making money is a technology to pay for it.
– Eric Schmidt, CEO of Google (via soupsoup) (via suzannexie) (via hiten)
November 2009
1 post
Playing with Threadsy, aggregating FB, Twitter, and Email. Seems pretty damn solid. Here’s 10 invitations - http://bit.ly/2AV87p
October 2009
4 posts
Social OS http://pip.io is Facebook on roids. Check out their interview with Scoble http://bit.ly/4bLErK. Want an invite? DM me