Tag: Tips
TIP: How to Play a Sound Whenever You Commit to Git
Writing code alone at home can be an isolating experience. There you are, day in day out, quietly making magic with your mind (sarcasm, obv.) only to silently commit the fruits of your labor into the void of your source control repository, appreciated by no one. If only a crowd of children could be retained […]
TIP: Turn WordPress Page Titles On or Off Using Custom Fields
Most WordPress themes display page titles for every page. This is usually what one wants, but sometimes it’s useful to be able to easily turn off WordPress page titles for individual pages but still keep them on by default. This is easy to do with custom fields. For simplicity’s sake, I am going to base […]
TIP: How to get “anonymous” class functions to show up in Safari’s JavaScript Profiler
I’ve been developing a JavaScript module for some graphing work I’m doing. I’ve been using Safari’s built in profiler to figure out which functions are wasting the most CPU. It’s a great tool: For the longest time, I was running up against this one problem: some of my member functions were being listed simply as “(anonymous […]
GO PROGRAMMING TIP: Where to put the ‘go.pbfilespec’ and ‘go.xclangspec’ files.
So I was trying to get XCode syntax highlighting support for Google’s new Go language. I had located the two XCode files in the Go SRC package (these were in $GOROOT/misc/xcode), but for the longest time I couldn’t figure out where to put them. I finally stumbled on the answer (thanks to Talamathi for putting me on […]
TIP: How to find the full URL of a file within your Application’s Bundle
This is an iPhone Programming tip. Say you want to find  the full URL of a file within your Application’s Bundle (mainBundle), here’s how you would do it. Example: This would return the full URL of a file named “Sound2.caf”: CFURLRef fileURL; NSString *path; path = [[NSBundle mainBundle] pathForResource:@”Sound2″ ofType:@”caf”]; fileURL = (CFURLRef)[NSURL fileURLWithPath:path];
TIP: Need a JavaScript console for Internet Explorer?
CompanionJS is just that. Â Check it out:Â http://www.my-debugbar.com/wiki/CompanionJS/ConsoleAPI
LINK: Matrix of fonts bundled with Mac and Windows operating systems, Microsoft Office and Adobe Creative Suite
Ever wanted a full list of web-safe fonts? Check this out: http:media.24ways.org/2007/17/fontmatrix.html