category

professional dilettante

web development

posting data with curl from the command line

Before i forget, an easy way to test if you can connect to an external api is to use CURL on the command line. This nice as a sanity check/proof of concept to ensure you have the right token, proper field mappings, submitting the right data. This saves you from setting up a test form, [...]

Continue Reading »

How to pass parameters as a query string to your PHP functions

In PHP, arrays are often used to pass parameters to functions so we don’t have to worry about the order or number of params. But there’s a simpler way to pass a series of key=>value pairs without typing out the structure of an array each time: use a query string.

Continue Reading »

Rounded corners with or without images

Often the websites I build for clients include rounded corners in the design. The border-radius property introduced by CSS3 and supported by most browsers except IE6-8, makes it easy to implement rounded corners.

Continue Reading »

WordPress Shortcodes, Actions, Events Manager, TweetBlender

I’m working on a WordPress project which uses David Benini’s “Events Manager” plugin. The events manager plugin does not use WordPress’ posts for Events. Instead it creates an page with the title “Events”, whose URL would be http://yourdomain.com/events. The content rendered on this page varies. The plugin uses the query string to fetch a single event [...]

Continue Reading »

WordPress’ Built-in Category and Single post Navigation

For navigating to older and newer posts from a single post page, WordPress gives us some useful functions like previous_post_link() and next_post_link(). Those are easily confused with the similar looking functions, previous_posts_link() and next_posts_link(), used for navigating between pages listing multiple posts, in a category for example. WordPress gives us the category structure. We can use categories and permalinks [...]

Continue Reading »

Mapstraction

Reading about Mapstraction, a wrapper for the mapping APIs of Google, Yahoo and ten other JavaScript mapping APIs. Looking forward to diving into some example code and posting more soon.

Continue Reading »

Gravity Forms

For a WordPress project I’ve been getting my time sucked up by messing with the CForms plugin. Being one of several people who have worked on the project, I did not set up CForms. The Admin UI for CForms on this particular WordPress project is pretty messy. I’ve heard great things about the Gravity Forms [...]

Continue Reading »

Adam DuVander’s “Map Scripting 101″ from No Starch Press

Very excited to have a copy of Adam DuVander’s new book on mapscripting: Map Scripting 101. The book was published by No Starch Press, which has also published some of my favorite hands-on programming books, Wicked Cool Ruby Scripts, Wicked Cool PHP, and Ruby By Example. I stumbled across Adam’s awesome post on geolocation for [...]

Continue Reading »

wordpress theme options error – You do not have sufficient permissions to access this page

If you’re developing an Admin interface for your WordPress Theme or Plugin, and you get this error: You do not have sufficient permissions to access this page It has always been my experience that this error is thrown because the paths in your theme or plugin’s URLs are off. Maybe you are hacking someone’s plugin [...]

Continue Reading »

Multiple Sinatra Apps with Nginx and Thin on Webfaction

I’ve been working on a Sinatra app to serve as a web development portfolio. I decided it is time to put it online using my shared host, Webfaction. Here in this post, I’m not going to go over all the steps to set up a Sinatra app. You can find my tutorial on that here: [...]

Continue Reading »
Older Entries →

Most Recent Post

posting data with curl from the command line

Before i forget, an easy way to test if you can connect to an external api is to use CURL on the command line. This nice as a sanity check/proof of concept to ensure you have the right token, proper field mappings, submitting the right data. This saves you from setting up a test form, [...]

Categories

Content © professional dilettante
Proudly powered by WordPress
Theme designed by Artisan Themes

Entries (RSS)
Comments (RSS)

21 queries.
0.378 seconds.