Tutorial – Create a POST hook on BitBucket

A powerful tool offered by both GitHub (GH) and BitBucket (BB) are so-called “Hooks” which allow certain actions in your repository to trigger other actions. BitBucket’s definition:

Hooks allow you to extend what Bitbucket does when the repository changes (for example, new code is pushed or a pull request is merged).

There are many different kinds of Hooks and I invite you to check out GitHub and Bitbucket‘s documentations for a full list of possible options and how to implement them.

In this tutorial, I’m going to set up a BitBucket “POST” hook. My goal is to force all of my front-end machines to update their local clones of the main repository when a git push is done on the Master branch.

Continue reading Tutorial – Create a POST hook on BitBucket

Tutoriel – Connecter son iPhone/iPad/Mac au serveur VPN de la Freebox via PPTP

Je suis en vacances, c’est la Coupe du Monde, je veux suivre les matchs via une application iPhone/iPad, mais celle-ci bloque le flux vidéo car je ne suis pas en France… solution: le serveur VPN de ma Freebox! Ce tuto vous explique pas à pas comment faire fonctionner tout çà entre iPhone/iPad/Mac et Freebox… l’esprit est le même sur d’autres appareils!
Continue reading Tutoriel – Connecter son iPhone/iPad/Mac au serveur VPN de la Freebox via PPTP

View xdebug cachegrind files on Mac OS

Xdebug is key when it comes to optimizing PHP code. Today, I heard my colleague boot up a Windows machine just to run an application that could interpret a cachegrind file generated by our development server… surely there must be a Mac equivalent! The following instructions will let you interpret cachegrind files locally on your Mac. Continue reading View xdebug cachegrind files on Mac OS

[Update x5] DisplayLink OSX 10.9 Mavericks/10.10 Yosemite/10.11 El Capitan Resolution Display Fix

Update December 17th 2015 : DisplayLink 2.5 driver for Mac is now available (stable version). It makes sure everything works on OS X 10.11 El Capitan though I’m still seeing one screen that won’t reach its full resolution.

Update August 26th 2015 : DisplayLink 2.4 driver for Mac is now available (stable version). Haven’t tried it myself yet but claims that many of the issues from the beta have been resolved or have workarounds.

Update June 29th 2015 : A new DisplayLink 2.4 BETA2 driver for Mac is available (released June 3rd 2015). It claims that “includes workarounds for some of the most severe defects in OS X 10.9 and 10.10” and links this article with known issues.

Update December 12th 2014 : A new DisplayLink 2.3 BETA driver for Mac is available (released October 10th 2014). It’s only a beta but it makes a HUGE difference in terms of performance on Mac OSX 10.10 Yosemite. If switching windows has been clunky and if your system has been overall slower than on Mavericks, then I highly recommend you give this patch a try.

Update June 17th 2014 : There’s a new DisplayLink 2.2 driver for Mac available (released June 10th).

I use a DisplayLink system to hook up a 3rd monitor to my laptop via USB. When Mavericks was released, the whole system broke but a beta driver was released (version 2.0) which seems to bring back the extra display even if very quirky. Then, version 2.1 was released but introduced a screen resolution problem.

Continue reading [Update x5] DisplayLink OSX 10.9 Mavericks/10.10 Yosemite/10.11 El Capitan Resolution Display Fix

Tutorial – How to set up BitTorrent Sync on a Linux server to create a Dropbox-like syncing solution

btsync_diagram

Update (August 13th, 2017) : BT Sync has now become Resilio. I’ll be writing a new post about another way to get this to work soon.

Update (August 28th, 2013) : The iOS BT Sync app is now available for download. Try it out!

BitTorrent Sync (BTSync) is a “Private Dropbox” of sorts in that it offers the same functionality (syncing your files across devices) but without going through a third-party’s servers. Mac and Windows clients are available for download and have some nifty features such as one-time share keys and read-only syncing options. The advantage of BTSync is better handling of large files (especially if you sync across multiple devices) and you don’t have your files hosted on someone else’s server(s).

The advantage of Dropbox is that should you lose all your machines that were syncing to Dropbox, you would still have a copy in the Cloud that you would be able to download on a new machine. This is undoubtedly BTSync’s biggest disadvantage if you don’t have at least two machines on all the time. If, however, you have a server, you can set up BTSync on that server thus creating your own “always-on” sync machine that will create a copy of the files you wish to sync immediately. Let’s get started…

Continue reading Tutorial – How to set up BitTorrent Sync on a Linux server to create a Dropbox-like syncing solution

Network Link Conditioner Built right into iOS6

A few months ago, I discussed how you could use the Network Link Conditioner on your Mac to simulate different network connections. As of iOS6, Apple has added a Network Link Conditioner right into the OS meaning that you can set the quality of the network you wish to simulate right from your device allowing for even more accurate testing.

Continue reading Network Link Conditioner Built right into iOS6

Fix “/tmp/.tmp.err” error on your website

I woke up one morning to find that all the websites hosted on my server (VPS-based) were returning an error that looked something like this :

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid is 10012 is not allowed to access /tmp/.tmp.err owned by uid 0 in Unknown on line 0
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid is 10012 is not allowed to access /tmp/.tmp.err owned by uid 0 in Unknown on line 0

Fixing this turned out to be quite easy but not necessarily obvious.
Continue reading Fix “/tmp/.tmp.err” error on your website

Fixing a broken iMessages Beta that won’t start

I currently use Lion on one of my machines and still use the beta version of iMessages. As any beta, it has its bag of issues but overall, it’s very stable. That being said, I ran into a situation this morning in which one of my conversations was constantly showing an unread message. Naturally, I tried restarting the app in hopes that this would fix this issue only to discover that I could no longer see my conversations window or start a new conversation at all. It’s as if the program was stuck. Restarting multiple times and re-installing did not help.

Long story short, the simple solution was to launch Activity Monitor and kill a process called imagent. As soon as I did that, all my previous conversations re-appeared and everything was back in order.