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, [...]
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.
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.
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 [...]
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 [...]
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.
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 [...]
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 [...]
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 [...]
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: [...]
Content © professional dilettante
Proudly powered by WordPress
Theme designed by Artisan Themes
21 queries.
0.378 seconds.