Archive by Author

Free Cheat Sheets for Developers on DZone

free-cheat-sheets-developer

I found today a superb resource for Cheat Sheets (also known as reference cards) on DZone.

Whenever I find a cheat sheet in a book store I need to buy it.  Looking up information on the Internet is way faster but sometimes you don’t have a connection and these short e-books can be of good help.

Here is a short list of Cheat Sheets I found on DZone:

You will find on http://refcardz.dzone.com more the 50 of these sheets.


Apple unveiled new Snow Leopard at WWDC today

snow-leopard-header

Today at the WWDC Apple presented the all new Mac OS X known as Snow Leopard. A lot of improvements have been done but most of them only under the hood. Yes! More power and more speed.

The release date is planned for September (before Windows 7) and an upgrade will cost only $29. Considering Apple’s upgrade policy in the past will this be a steal.


So here is what you should know about the new Mac OS X:

most-advanced-os

1. Exposé reloaded

Exposé will be integrated in the Dock. Clicking and holding an application icon in the Dock will unshuffle all it’s windows. Stacks will be scrollable and finally navigation through folders inside a Stack will be possible (man, I was really waiting for that one).


2. Performance

Most of the code base has been rewritten to increase performance system-wide. PDFs are opened 1,5 times faster than before and JPEGs are loaded even twice as fast. Opening Mail will take only 50% of time. I can almost hear it roaring.


3. Full 64-bit and Multi-Core

The gained performance could be a direct result of the full 64-bit integration. All native Mac applications have been rewritten for 64-bit support.


4. Safari 4

The fast browser will get even faster. The Javascript engine has been improved by 50%. And  Safari 4 passes the Acid3 browser test (as the current beta does).


5. TimeMachine

Same goes for TimeMachine. There will be a performance jump up to 50%.


6. Smaller footprint

Snow Leopard will be more lean than the current version. The installation will save 6 GB of the hard disk. Nowadays disk space is really cheap (I can remember my first PC with a 170 MB hard disk) but it’s great for MacBooks where you cannot just add and add more hard drives.


7. More reliable disk eject

One of the situation I really hate about my Mac is when some application just stalls and you cannot eject the DVD or even worse if you cannot eject an USB drive. Snow Leopard will be able to show you the problematic application so you can shut it down completely.


Can’t wait to see my MacBook Pro with the new Snow Leopard in action.


Top 10 Firefox plugins for web developers & designers

firefox-plugins-header

Firefox is my favorite browser for creating and testing website design and functionality. On the one hand you have big share of visitors using Firefox (Wiki: Usage share of web browser)  and a rapidly growing user base. The reasons for the success of Firefox are speed, stability and a strong open source community behind it.

And then you have IMHO the most important part: an endless range of great plugins

Although there exist hundreds of absolutely great plugins I’d like to share with you today only these plugins that helped me best while working on web projects in the past:

1. Web Developer

web-developerA must-have plugin for any web developer. It will add a new toolbar to Firefox with a lot of great tools for displaying page information, request headers, CSS element information, disabling/enabling Javascript, Cookies, Images and CSS, validation and displaying Javascript generated content. I just named some of the features but there is a lot more inside this tool. So make sure to have it.


2. SearchStatus

seachstatusThis one is great helper for SEO work. It includes a better PageRank information (forget the original – problems with cached values), Alexa Rank and the essential NoFollow link highlighter.


3. HTML Validator

html-validatorI would say 20% of SEO work is On-Site optimization. This tool will help you in locating every validation problem of your HTML code. And I guess most of you will agree: Google loves valid content.


4. Javascript Debugger

javascript-debuggerWorking with Javascript can get very tricky, especially when you are loading dynamic content via Ajax requests. Just looking into the code won’t help you a lot. The Javascript Debugger allows you to set breakpoints in your script and inspect variables and objects.


5. Live Http Headers

live-http-headersAs the name already says this plugin will show you all Http headers while browsing a website. Sometimes a valuable source to understand the redirection mechanism of a website and how data is sent across.


6. Leet Key

leet-keyA very useful tool for quick transforming encoded data. Sometimes when I need to check if a Base64 encoded parameter was transferred correctly I can decode it with this plugin to plain text. Apart of the transforming for Base64, Bin, Hex, Morse and others, there is even a functionality for encrypted contents in AES and DES.


7. JS View

js-viewWhen you want to have a quick look on a JS or CSS file from some other website you need to view the page source and copy the file path. But it can be so much simpler. JS View provides you any given JS/CSS file of a website with the easiness of a mouse click.


8. Duplicate Tab

duplicate-tabSometimes you need the currently open page in a second tab. But if it’s javascript generated content you cannot just copy and paste the URL in another tab. But Duplicate Tab can.


9. Add N Edit Cookies

add-n-edit-cookiesThis tool allows you to manipulate and add cookies and can help you to test the security of your website.


10. Clear Cache

clear-cacheVery simple and useful. While you are changing elements on your website you want to make sure to see the changes and not a cached version. Things like that can end up in frustration.


As mentioned before, these plugins helped me a lot. I know there are a lot more useful plugins out there, so feel free to share your list with us.


Update 2009-06-10:

Firebug

firebugAnother essential tool for web developers that allows you live editing of CSS, HTML and JS on any website.


Sharing iPhoto Library among several users on a Mac

sharing-iphoto-header

When I started iPhoto for the first time and imported the latest shots from my camera I was amazed how simple it was to split automatically photos into events, place them on a map and improve the quality by few simple clicks. And the best part of course: Face detection.

Immediately I knew, that’s the right software for my photos. Back then when I was using a PC, I just copied the files from my cam into folders with the event name. Edited versions I placed somewhere else. Search for specific photos became soon a nightmare. And I’m not talking about a few hundret images. By now I collected over 10.000 photos. With iPhoto it started to make fun again to organize, enhance and geo tag my photos.

As I’m not the only user of my MacBook it became soon necessary that my wife could access the iPhoto Library from her account as well. Normally the iPhoto Library is placed in your user folder:

/Users/yourname/Pictures/iPhoto Library/

Other users won’t have access to this folder unless you change the permissions (I didn’t try it).

So here is what we are going to do: We move the library to a shared space and tell iPhoto to use the new library instead of the the old one:

  1. Quit iPhoto
  2. Make a backup !! (use TimeMachine or just copy the library to an external disk)
  3. Create a new folder “Shared” in the users folder ( /Users )
  4. Move the the Pictures folder from your account to /Users/Shared (your should have a folder structure like /Users/Shared/Pictures/iPhoto Library)
  5. Open the folder info window for the folder Shared (select it and press cmd+alt+i)
  6. In the Sharing & Permissions section add all users that need to access the library and give them “Read & Write” privileges
  7. Now click on the gear icon (gear-icon) below and select “Apply to enclosed items” (this will basically apply the new privileges for all files and folders under the Shared folder)

Now that we have moved the library to Switzerland and set all permissions correctly we are ready to feed iPhoto with the new information. Follow these steps for every user which will use the library:

  1. Hold down the “alt” key (on older Macs it’s the Option key) and open iPhoto. Do not release the key before iPhoto isn’t asking you about choosing a library
  2. Click Choose Library
  3. Locate the folder where you moved the library before
  4. Optional: Start having fun ;-)

All users should now be able to see the same content (photos, events, tags, geo information, albums, …) in iPhoto. Changes by any user will be visible for the others as well. Just make sure not to run iPhoto in the same time from different accounts.

Screenshot Secrets in Mac OS X

You probably know how to make a screenshot on your Mac, but when you are writing tutorials you need often just need an image of the current dialog box or application window. You can crop a screenshot in Photoshop or any other image editing software but there is a way simpler method.

Here is a list of the most important shortcuts for making screenshots on a Mac:

Key Combo

Action

cmd + shift + 3 Capture entire screen and save as a file on the desktop
cmd + ctrl + shift + 3 Capture entire screen and copy to the clipboard
cmd + shift + 4 Capture dragged area and save as a file
cmd + ctrl + shift +4 Capture dragged area and copy to the clipboard
cmd + shift + 4 then Space bar Capture a window, menu, desktop icon, or the menu bar and save as a file
cmd + ctrl + shift + 4 then Space bar Capture a window, menu, desktop icon, or the menu bar and copy to the clipboard


If you know any other key combinations you are welcome to share them by posting a comment and I will update the list.


Fixing the HTTP error problem while using WordPress Flash Uploader

The reason for the upload error lies within the mod_security module which is basicly a web application firewall that protects your website from a range of attacks. So you shouldn’t turn off this module as it protects you but you can add a special rule for the flash uploader.

The Solution:

Open the .htaccess file in your website document root and add the following lines:



  
    SecFilterEngine Off
    SecFilterScanPOST Off
  


  
    SecFilterEngine Off
    SecFilterScanPOST Off
  


  
    SecFilterEngine Off
    SecFilterScanPOST Off
  

This should do it.

Swipe to navigate in Firefox on a MacBook

swipte-firefox-header




Being used to the 3-finger-swipe functionality to navigate within Safari and other Apple applications I wanted Firefox to behave the same way. Safari is really a great browser but not used by many users. To test my websites in terms of design and functionality I use Firefox and IE as well.

Unfortunately the Trackpad gestures are not working with these browsers. After some research in Google I finally came across a great piece of software:

MultiClutch

MultiClutch brings you the MultiTouch gestures to any application and lets you control the action behind every gesture. It embeds within the System Preferences Panel and is really simple to use.

Here is an example configuration for Firefox to use Swipe for back and forward history navigation:

multicluth-window


7 essential must have applications for Mac OS X

essential-apps-header




This is my list of essential little helpers every Mac should have installed. These tools are not very expensive and can improve productivity on a Mac a lot.

1. Little Snitch

little-snitchThe Firewall that comes with Mac OS X is a very simple one. That’s because Apple tries to keep the user’s life simple. That firewall doesn’t allow much of settings and handles only incoming traffic. As long as you are a “normal” user it’s great, but if you would like to control outgoing traffic too you need to find another solution. Looking for a better firewall I came across a lot of apps and Little Snitch turned out to be the only one that would handle outgoing traffic as well. Furthermore it integrates perfectly with your Mac as a small tray icon. After having installed Little Snitch I was shocked about all the applications that where trying to connect to some strange servers. It’s really a must-have security tool for every Mac.

 

2. iFreeMem

ifreememiFreeMem can help you in optimizing your Mac’s memory after having a long session. It will clean up all memory blocks that are not in use anymore (typically after quitting memory intensive applications) and rearrange others that are in use. After installation you will find a new tray icon in your toolbar which will show you the currently consumed memory. A click will open a small box with a more detailed memory allocation and an “Optimize Memory” button. So from time to time when you need a little bit more memory just run this tool and you won’t need to reboot at all.

 

3. 1Password

1password1Password can store all your passwords used on websites. Moreover it can handle full forms as well. This is very useful during web development when you need to test extensive web applications. All your passwords and forms can be protected with one master password so you want need to remember all the others anymore. 1Password integrates directly as a toolbar in your browser and will give you the easyness of “one-click-login”.

 

4. AppDelete

app-deleteWhen I was new to Macs I fell immediately for the simple install/unistall process. But sometimes applications leave a lot of useless trash on your system. AppDelete will help you to clean up your Mac from all associated files of any software. It’s a great tool to keep your Mac healthy.

 

 

5. iArchiver

iarchiverBeing used to Zip and Rar files iArchiver became a very good friend of mine. Of course there are more professional solutions out there like StuffIt, but this one is really cheap.

 

 

 

6. KeyCue

keycueEspecially for Mac-beginners this tool can be a lot of help. By simply holding down the command key it will show you a window with the most important hotkey combinations. After a while using it I remembered more and more hotkeys. Great for productivity.

 

 

 

7. AirGrab WiFi Radar

airgrabApple’s AirPort can give you only limited information about the quality of your wireless connection. With AirGrab you can find out exactly how good or bad the connection in reality is and what other networks surround you.

 

Setting up a dynamic copyright in WordPress

When you have a website running for several years it’s getting pretty annoying to update the copyright years in the footer year by year.

Paste this simple code into your footer template to generate copyright years fully automated (change “2009″ to the year when you started):


My First MacBook Pro

article-macbook1

A few weeks ago I bought my very first Apple MacBook Pro. I wonder why I didn’t switch already years ago. I’m using PCs since almost 15 years so far, so it was a hard decision for me to switch to a completely different system. After all it wasn’t that bad. I have to admit that I always thought on a Mac I couldn’t use a lot of my favorite software I was used to. I was amazed finding out that most of the software was available on Mac too. And if it wasn’t there was always another program that was doing exactly the same. In most cases even better.

Back then when I was using Windows laptops I couldn’t get used to the trackpads. I always connected a mouse. One of my first concerns about the new MacBook was that I would need to use a mouse too. But the difference between normal laptops and the MacBook is huge. I am falling for the nice Multi-Touch Trackpad. Everything is so simple and you don’t need a mouse at all.

Another great things about Mac OS X are the stability, speed, fun factor, …