Jul 1 2008

My Macbook Pro Freaking the fuck out!


Feb 13 2008

CPIO? WTF? SMP?

Came across a new extension today… CPIO

First, I was like WTF?

Then i figured out that it’s a compressed image file. So, i googled and i got this:

# cpio -idmv < [filename].cpio

then I nearly SMP… it worked!

.: Adam

ps. I just learned SMP too ;)


Jan 9 2008

IIS 6 Page Compression

While looking into ASP.NET caching techniques, I ran across this little gem on IIS page compression using gzip.

IIS 6 has a built-in capability of compressing pages and / or content through gzip before sending it to the requesting client to cut down on bandwidth usage and overall network performance.

It’s also a smart process. First, there’s two types of compression that it will do. If it’s a static file (no dynamic content), it’ll zip up the file and store it in a temp space to send every time the page is requested. This way the CPU overhead is very minimal because it only has to compress the page once. The other is for dynamic pages. For these, it’ll compress the page as requested on the fly. This has a higher CPU usage, but worth it overall.

On top of that, it also checks the users browser for gzip compatibility before it even compresses the file. If it’s compatible (IE, Firefox, etc), it’ll send the compressed version. If the browser can’t handle compressed content, it’ll send the non-compressed version. Rock!

The downer is that it’s not very easy to setup (kinda). Meaning that there’s no checkbox anywhere to enable this and configure it. The guy over at AngryHacker.com (article above), wrote a great batch file that enables it and sets it up in one quick swoop. Make sure to save the BAT file in C:\Inetpub\AdminScripts

IISreset.exe /stop 

cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "ppt" "xls" "xml" "pdf" "xslt" "doc" "xsl" "htc" "js" "css"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "ppt" "xls" "xml" "pdf" "xslt" "doc" "xsl" "htc" "js" "css"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx" "ashx"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcDynamicCompressionLevel "9"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcDynamicCompressionLevel "9" 

IISreset.exe /restart

If you’re not familiar with IIS, this script will stop your web server while it implements this and then start it back up once it’s done. Also, the default compression level is 0 (0-10), and this script sets it to 9. I have mine set at 9 and didn’t really notice much difference in CPU utilization.

Good stuff eh?


Dec 18 2007

Scary Visual Studio 2008 Guy

I was installing Visual Studio 2008, when all of a sudden I saw him. Wait, let me back up. You know how when you install an app, and you are shown all those lame screens of people smiling at work and a little blurb about how awesome the app is that your installing flip by. Well, whoever this guy is takes the cake. It’s just not natural…

Picture 1.jpg

Oct 27 2007

My 20 Favorite Leopard Features

1. Data Detectors in Mail – These things are freaking amazing! It recognizes patterns in human speech (text really) that correlate to dates and when you hover over them, it asks you if you want to create the event in iCal. It also recognizes phone numbers, addresses, and more for inputs into Address Book.

Picture 1.jpg

2. Instant Preview – Not sure what it’s really called, but when you’re browsing the file system (Finder) in any view mode, you can click on a file and just hit the space bar to preview the file. It doesn’t actually open the application. It just loads it into this nice floating window and lets you browse through the pages of a doc, view a movie, listen to an mp3, etc. Awesome!

Picture 2.jpg

3. Spotlight is usable now. A.K.A., I don’t need quicksilver any more. I do miss the quicksilver plugins, but spotlight is nice. Who needs 2 indexers running anyway.

4. The Dock is pretty. And you can change it too.

5. The menu bar is subtly transparent and sleek. Nice =)

6. Mail now has RSS feeds support. This is nice in that it streamlines all my newsfeeds / mail reading into a single app. When you view a feed in Safari, there’s a link on the right side to click and save into Mail.

Picture 3.jpg

7. Finder now has support for “Search For” folders and Shared devices (networked computers with open shares). the Search For folders and items are basically Smart Folders

Picture 4.jpg

8. Finally(!) there’s a Path Bar in finder to show your full path. To turn it on go to View > Show Path Bar

Picture 5.jpg

9. Transparent menu drop-downs are a nice touch and they’ve rounded the corners as well. Overall a nice visual piece.

Picture 1.jpg

10. Time Machine rocks! Best / Easiest backup method out there for any OS! It’s been well advertised, so you know the gist of it, but here’s two things you may not have known: Time Machine will work with a partition on your current drive, and it also can go back in time to restore (certain) application states. So, if you have a laptop (like me), you can’t really rely on an external drive for your backup needs. So I partitioned off a 20gb chunk and dedicated it to Time Machine backups. Then I just excluded the backup of everything but the places that I need backed up =). The only applications that I’ve seen this work for so far are Address Book and Mail.

11. iCal has been improved, and finally displays the correct date on the dock icon even when the app is closed. WTF took so long on that one?! (The little blue dots under an app signify that it’s launched. See the mail app below)

Picture 3.jpg

12. iChat has been upgraded a lot and is a satisfactory replacement for Adium if you don’t mind no skinning. The Video Chat thing with the Chroma Key-esque background thing doesn’t really work too well (see below). But it’s fun to play around with.

Picture 4.jpg

13. Spaces. I laughed my ass off when I heard Jobs pitch Spaces as this revolutionary thing that linux has been doing for about 10+ years. But it’s implemented very well, helps out a lot, and has that nice Apple functionality that you’d expect. Definitely a plus, and helps out a lot.

14. Web Clips are neat. When you’re browsing safari, you can take little clips of a webpage that you’re looking at and turn it into a dashboard widget. The part that I like is that the selector tool is smart. It will snap to elements of the webpage. Check out the widget I made below of the newest forum topics on BodyMod.org:

Picture 6.jpg

15. The Dictionary App is pretty useful now. It has an nifty autocomplete feature, and it lets you query Apple tech terms and Wikipedia.

Picture 2.jpg

16. The Preview app is a lot cooler now too. It will let you do some basic image editing (Resize, crop, etc) and save to various formats. Great when you need to to some quick edits to an image to post to a blog =)

17. A lot of the Utilities have been updated with some new features and icons. Some that I’ve noticed are Activity Monitor, Airport Utility, Boot Camp Assistant (now not beta), Directory (new), Network Utility, ODBC Administrator Utility, Podcast Capture, and Terminal (quite a few updates in this one, including “Themes”)

18. The coverflow view in Finder is pretty cool. For things like documents, movies, and web pages, it’ll actually show the contents rendered on the icon.

Picture 1.jpg

19. The Network Preference Pane in System Configuration is a lot nicer. Makes working with your settings a lot more manageable.

Picture 4.jpg

20. The spring loaded dock icon thingies are pretty cool. The fan view is neat, but not as helpful as the grid view (shown below). You can choose which one you want it to show as. To add new ones, you just drag a folder onto the dock. I also like that it shows thumbnails of everything in the grid view. Even documents and web pages. What I don’t like about it is that the icon on top (on the dock) for each item is the last thing that was put in it. So it makes it a little difficult to distinguish which folder is for what.

Picture 1.jpg

Well, those are my 20 favorite things about OS X 10.5 Leopard. I really don’t see how anyone can use a PC anymore (this coming from a guys who’s been a pc fanatic since he was 8). This just blows all other operating systems out of the water. Vista is such a joke (a bad one at that) compared to this. If you’re a mac user, you need this update. It’s so worth it and will make you all giddy inside playing with it =)