Little terminal trick

Date Arrow  November 14, 2007

If you have to delete a folder which contains locked files, the Mac OS X Finder won’t let you (because the “locked” flag is used precisely for that!). If you want to remove such folder (typically folders coming from a Subversion checkout have this problem) run these commands: sudo chflags -R nouchg to_destroy/ sudo rm [...]

Tagged   How to?Comments  Add Your Comment 

How to make in X11 so that the focused window follows the mouse?

Date Arrow  September 28, 2007

Another long title. Just a quick one, not to forget: in Apple’s X11, if you want to have the focus follow the current window, just type the following at the terminal window: defaults write com.apple.x11 wm_ffm -bool true Restart X11 and that’s it! This is particularly useful in apps like Gimpshop that have several open [...]

Tagged   Apple · How to?Comments  Add Your Comment 

How to quickly know the version of Apache of a remote server?

Date Arrow  September 2, 2007

I’ve found this nice article describing how to do that.

Tagged   How to? · SoftwareComments  Comments Off 

How to send an e-mail?

Date Arrow  August 29, 2007

Ever wondered how POP, IMAP, SMTP and other cryptic protocols work? Well, Google has created a video that explains everything :)

Tagged   Google · How to? · HumourComments  Comments Off 

How to test software security?

Date Arrow  August 27, 2007

Howard and LeBlanc give a very complete answer to this question in their classic “Writing Secure Code” book: Most testing is about proving that some feature works as specified in the functional specifications. If the feature deviates from its specification, a bug is filed, the bug is usually fixed, and the updated feature is retested. [...]

Tagged   How to? · Papers · Quality · SoftwareComments  Add Your Comment (2)

JavaScript tips and tricks (4)

Date Arrow  August 6, 2007

For the last article of this series, I’ll let Douglas Crockford do the talk :) This is an amazing video about the good and the bad parts of JavaScript, as seen by a guy that seriously, seriously knows his stuff: Douglas works in the YUI team at Yahoo!, and has written a lot about JavaScript: [...]

Tagged   Code · How to?Comments  Comments Off 

JavaScript tips and tricks (3)

Date Arrow  August 5, 2007

How to organize code in “namespaces” When you use lots of libraries in your code, you can easily pick up a function name that corresponds to a pre-existing name in some library that you might have included. To avoid that, you should create namespaces that encapsulate the code of your application: var net = { [...]

Tagged   Code · How to?Comments  Comments Off 

JavaScript tips and tricks (2)

Date Arrow  August 4, 2007

Object-Oriented Programming in JavaScript Functions are also used to represent classes when doing object-oriented JavaScript. There are several possible ways to write object-oriented JavaScript code, but they all turn around the concept of the “Function” class: function Thing() { var privateField = “PRIVATE”; var self = this; // See below for more explanations about “this” [...]

Tagged   Code · How to?Comments  Comments Off 

JavaScript tips and tricks (1)

Date Arrow  August 3, 2007

As I said yesterday, JavaScript is the world’s most misunderstood language, which means that you must unlearn what you have learned. However complicated it might seem at first, it is quite easy to write and understand the most complex of JavaScript codes with just some examples. Just a few observations before starting: Semicolons (;) are [...]

Tagged   Code · How to?Comments  Comments Off 

How to export “shared” Google Reader items?

Date Arrow  July 8, 2007

If you are an avid Google Reader user (like me) you must be surely be “sharing” items that you read, for you or for your audience; in my case, you can see my recent “shared items” in the sidebar at the right side of this screen. But can you export these shared items to a [...]

Tagged   Google · How to?Comments  Add Your Comment (4)