Sep 2006
Editing A Scanner Darkly
Nothing about Rotoshop. I must say I'm surprised it
was cut on Avid. But nevertheless, here's a look at how they
pulled it off.
Turn Web Performance Cache Off!
27.09.06 20:24 |
OS X Server
| Permalink
Find out Correct Base Install Permissions
World's Highest Standard of Living
"Computer Randomly Plays Classical Music"
Make sure to quit your editor!
18.09.06 09:04 |
OS X Server
| Permalink
Search & Replace with nano!
Apache VirtualHosts
17.09.06 15:27 |
OS X Server
| Permalink
Was finally able to have the same site respond to
different aadresses differently:
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Just check /etc/httpd/sites/virtual_host_global.conf and make sure it looks like what's described in the article. Rearranging them in the Sites list also seems to help.
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Just check /etc/httpd/sites/virtual_host_global.conf and make sure it looks like what's described in the article. Rearranging them in the Sites list also seems to help.
Warming
15.09.06 15:07 |
Permalink
Maybe there's something to global warming after all:
BBC NEWS | Science/Nature | Drastic
shrinkagte in Arctic ice
SQLite 3.3.7 Package
Subversion 1.4 Package
A Random Quote For Site Slogan
window.onload = function()
{
var quotes = ["I wanna be a racecar passenger.", "Alright, you're a cook - can you farm?"];
var i = Math.floor(Math.random()*quotes.length);
document.getElementsByTagName('h2')[0].innerHTML = '"' + quotes[i] + '"';
}
Don't forget to add blank lines before and after the JS!
A Teacher's Pet
Punk made it to the Staff Favorites list. It will
also be included on the cover CD of Univers Mac, a French Mac
Magazine! Thanks!
Tiger Server Administration eBook
08.09.06 08:08 |
OS X Server
| Permalink
nmap and wget packages
Programming Quotations
sortUsingSelector
After spending 4 days with the problem of sorting an
array of NSDictionaries (!!) using every kind of
method imaginable, I finally found the solution:
You can't use sortUsingSelector because that operates on the object in the array (in this case an NSDictionary). That explains the countless ("[CFDictionary compareScores] selector not recognized etc...") I was getting. Phew
So use sortUsingFunction instead. And as the guys at cocoadev so eloquently showed:
Where "context" is the NSDictionary key you want to sort by.
You can't use sortUsingSelector because that operates on the object in the array (in this case an NSDictionary). That explains the countless ("[CFDictionary compareScores] selector not recognized etc...") I was getting. Phew
So use sortUsingFunction instead. And as the guys at cocoadev so eloquently showed:
int someSort (id obj1, id obj2, void *context)
{
return [[(NSDictionary *)obj1 objectForKey:(NSString *)context] compare:[(NSDictionary *)obj2 objectForKey:(NSString *)context]];
}
Where "context" is the NSDictionary key you want to sort by.
HIFF 2006 Coming
Time to start compiling a list:
- A Scanner Darkly
- The Science of Sleep
- Art School Confidential
- Borat: Cultural Learnings of America for Make Benefit Glorious Nation of Kazakhstan
- Tonari no Totoro
- A Scanner Darkly
- The Science of Sleep
- Art School Confidential
- Borat: Cultural Learnings of America for Make Benefit Glorious Nation of Kazakhstan
- Tonari no Totoro
Empty Trash from Automator
You'll notice there's no "Empty the trash" Automator
action. There are those who will try to sell you this action. But
why?
Add Automator > Run AppleScript action and:
Can I have some money now? ;-)
Add Automator > Run AppleScript action and:
tell application "Finder"
empty trash
end tell
Can I have some money now? ;-)