Feb01
iPhone
For this work your phone must be jailbroken.
- Open itunes and go into preferences.
- Under the general tab click the import settings button and change import using to aiff encoder.
- Right click your text message sound (add the sound to your library if you haven’t already) and go to create aiff version.
- Rename the file to sms-received6.caf (if you need it).
- Using whatever method you want put the file into your iphone under /System/Library/Audio/UISounds/ (i use iphone explorer). Overwrite the old file.
- On your phone go to your text message sound settings and click the last text message sound. You should recognize it.
Dec31
CSS, Web Development
When styling a button using the sliding doors technique i found that firefox shifted the span down 1px, thus foiling the entire idea of sliding doors.
To fix it use this:
button::-moz-focus-inner { border: none;}
Dec27
Mac
- In safari (must use safari) go to pandora.com and login or signup
- Go to file->Open in dashboard
- Select the main pandora window and adjust the edges to fit the area you want
- Click Add on the top right of your screen
- On the widget click the i on the bottom right and uncheck the only play audio in dashboard option
Tip: To refresh the widget press CMD+R
Dec24
Apache, Web Development
Today while setting up an ssl certificate i obtained for my new installation of activecollab i ran into this error:
VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
To fix this add this to the beginning of your virtual host
Also change
to
Then restart apache
Dec08
Mac, Web
By default when you’re tabbing through a form a Mac won’t stop on selects or checkboxes. To fix this open system preferences, and go to the keyboard section under hardware. Click “Keyboard Shortcuts” on the top. On the bottom of that page there is an option for “Full Keyboard Access”. Set it to all controls.
Nov22
Web Development
This tutorial is aimed at developers who just want wordpress to function as a lightweight CMS, that is wordpress will only be used for editing page content.
First install wordpress in whatever directory you want the admin to live. I chose /admin.
Any page that needs to use wordpress functionality you must add this:
require('/path/to/wp-blog-header.php');
This gives you access to wordpress functions that we need:
- get_page – Get the page data from the database
- wpautop – Automatically add paragraph tags to page content
To get page content:
$page_data = get_page( 4 ); // Where 4 is the page ID in wordpress
There is a bug in certain versions of php, if you get the error:
Fatal error: Only variables can be passed by reference…
Then use this format instead:
$page_id = 4;
$page_data = get_page( $page_id );
$page_data now contains all of the info for that page, and is ready for use in your templates/views. Check the function reference to see the data you have available to you.
To display post_content use the wp function wpautop.
<?= wpautop($page_data->post_content) ?>
It’s simple!
Oct17
Mac
Finally, a way to make the home and end keys work on my mac (only cocoa apps) as they do on my pc. Put this file in /Library/KeyBindings/. Create the folder if it doesn’t exist. The keys will work the next time you open an application.
Oct16
Web
I recently had to do some work on a client’s facebook page. They wanted tabs created on their facebook fan page to hold some custom content. Here’s how to do it…
- Log in to the account that has admin rights to the fan page and do a facebook search for “fbml”
- Click “Add to page” on the top left
- In the box that pops up select the fan page you want it added to.
- On your fan page, hit “edit page”, located under your photo.
- Click the pencil next to the fbml application and choose “edit”
- Add your content (you can use normal html) and click “save changes”
- To add it as a tab, go back to the “edit page” screen and click the pencil next to your fbml application. Click “applications settings”, and finally “add” next to the tab option
Oct15
Mac, Web Development
I recently bought a Mac Mini in hopes of learning to develop for the iphone. I decided to do all my web development work on my new mac for a while, to try and get used to the new OS. On my PC i use notepad++. It has everything I need: built-in ftp, tabbed files, save all open documents, search/replace in all open documents…and it’s free!!! Fine, I can do without built-in ftp, but even after removing that from my required list I still can’t find a decent Mac text editor.
Here’s my rundown:
Coda ($99)
- No save all open documents
- No search/replace in all documents
Textmate ($60)
- no tabs?
- no tabs? really? No I’m not starting a project!
SubEthaEdit ($43)
- No search/replace in all documents
- No save all open documents
BBEdit ($125)
- Drawer is annoying, tabs are much better
- No save all open documents
- No search/replace in all documents
I miss notepad++.
Sep25
iPhone
Now that gmail offers push for the iphone via google sync I am trying out iPhone’s mail app instead of gmail’s website. An important feature I require is the mark as unread option so I can read certain emails when I get home. I couldn’t find it forever, but finally found it in the dumbest spot. Instead of a menu option you have to open the mail and click the details link on the top right, and then hit “Mark Unread”