You'll find code, pictures, ideas, recipes and other stuff from a french student in computer science.

Text

New extension !

Alfred : 

As usual ;)

This extension :

Don’t let music websites slow you down. That’s what I was thinking few months ago when I had to find the right tab in the right window and click on tiny controllers to change the track.

So I made an alfred extension to play/pause the current song and play the previous or next song on websites like deezer or grooveshark. 

How it works : 

Install the extension, and type 

  • media play
  • media prev
  • media next

It’s faster than go the websites and click but still slow for a task I perform that often. So let’s make hotkeys for the extension. 

Open Alfred’s Preferences (open alfred and type +, ) and go to the hotkey menu. 

Click on the plus in the lower left corner. 

Media hotkey

Next, type your hotkey, select the media extension and give the argument. You can choose adjacents characters it’ll be easier to remember. For example I binded U, I and O to prev, play/pause and next. 

Media hotkey

Download :

Download link

Support :

Currently only Grooveshark and Deezer are supported. If you want support for another websites or new features contact me @Silouane20 on Twitter. 

In the next future I think I’ll implement jdfwarrior’s extension updater in my extensions but for now you’ll have to redownload it sorry.


Text

Je sais pas si vous connaissez Raspberry Pi mais c’est un des projets que je suis depuis quelques temps : c’est un concept incroyable qui arrive à son terme après des années de recherche.

Le concept est très simple : créer des ordinateurs très portables (de la taille d’une carte de crédit et à peine plus épais qu’un téléphone portable), abordables (deux modèles de 25$ et 35$) pour permettre à tous l’accès à l’informatique et au développement.

Vous pourrez faire tourner différentes distributions Linux (Fedora, Arch, Debian pour commencer), brancher cette carte sur une TV et diffuser des vidéos en 1080p, jouer à des jeux, faire du traitement de texte, surfer sur le net. 

Bref la production de ces machines a commencé et elles seront surement disponibles à la vente dans quelques semaines.

Raspberry pi by Paul Maunder

Photo by Paul Maunders

Raspberry Pi on Twitter

The Raspberry Pi Foundation website

Text

Hi :)

I was very busy these last days with work, school, family and exams so I didn’t post any extensions for a long time. But I have few more already made and if you have a cool idea let me know @Silouane20 !

Today’s extension is a little thing made a long time ago. It is based on @jdfwarrior’s wolfram alpha extension. 

Time in image

Alfred

Alfred is a productivity tool with a free version. But the powerpack, besides rewarding alfred team, is a great set of features. 

Time extension :

Thanks to jdfwarrior to let me reuse his script ! Mine is a lazy extension whose goal is to give you a special command to quickly know current time in any city. 

How it works

Well just type time and the name of the city. 

Download :

Download link.

Support :

Feel free to contact me @Silouane20 on Twitter.

TIme in extension

Text

Depuis le temps que j’attendais une astuce comme ça : pour sélectionner du texte depuis Coup d’oeil il suffit de modifier une plist du système. 

Ouvrez le terminal et tapez : 

defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder

Affichez un fichier pdf, rtf, pages, word, txt… Bref vous pouvez désormais sélectionner le texte directement depuis la fenêtre Coup d’oeil. 

Pour revenir au comportement classique

defaults delete com.apple.finder QLEnableTextSelection; killall Finder

Great trick for Quicklook : it allows you to quickly select text inside a Quicklook window !
Just type the first command into your terminal and that’s it, you should be able to select text from any document directly from Quicklook.
Type the second one if you want to go back. 
Soon : new alfred extension. Stay tunned.

Text

I’ve tried the Toogle Hidden Files Extension by Matt Hojo and thought it could be more efficient with a unique command to display and hide those files. 

Alfred :

Alfred is still great and downloadable here

How it works

Only type hidden to toogle hidden files. You can change this command to something shorter once you’ve installed it. 

Download :

Download link

Support :

Contact me @Silouane20 on Twitter for any questions. 

Text

I was tired opening iTunes each time I didn’t know the name of a song : so I made an extension for that. 

Alfred :

Alfred is a productivity application for Mac OS X. There is a free version, and the Powerpack enables a bunch of cool features. 

How it works :

Type s in Alfred and a Growl notification will display name and artist of the song. It works with iTunes and Ecoute. 

Download :

Download link

Support :

Contact me @Silouane20 on Twitter for any question or suggestion. If you have a cool idea for an extension let me know :). 

Text

One of the few things I liked in Windows, was the possibility to quickly create a new file from the right-click menu. So I did this extra-short extension for Alfred to fill this void. 

Only text files can be created for now but I will find ways to create .doc, .rtf, .pages… etc.

Alfred : 

You can browse and see what I’ve said about Alfred. Short version : It’s great !

How it works : 

Syntax is simple, just type txt in Alfred. It will create a new txt file in the Finder’s insertion location : it’s “the container in which a new folder would appear if “New Folder” was selected” according to the AppleScript Editor.

Download : 

Download link (quick debug in progress. Download will be available soon).

Support :

If you have questions or suggestions please contact @Silouane20 on Twitter. Thanks !

The vim learning curve is a myth

thoughtbot:

I’ve been speaking about and teaching people vim for several years now, and I’ve noticed a surprising pattern: people are literally afraid of learning the editor.

Over the years, the popular mythology around vim has become that it’s insanely difficult to learn; a task to be attempted by only…

Source: thoughtbot

Text

Hi guys. 

It’s time for a new alfred extension !

Alfred :

Alfred is a productivity application for Mac OS X. It’s insanely great and has reached 1.0 ! It comes in both free and paid versions so you should definitely check Alfred out. To enable extensions and other really cool stuff you have to get the Powerpack version? 

iCal Events :

Ever wanted to quickly know the next five events in iCal ? This script allows you to quickly know what’s next on your agendas. You can display events from all your calendar or only from one.

How it works : 

cal  will display the next five events from all calendars.

cal Work  will display the next five events from calendar “Work” only. 

You can set the number of events to be displayed by modifying query variable into the script.

Download :

Download link

Support :

For any questions or suggestions you can contact me @Silouane20 on Twitter. There may be bugs remaining so please let me know !

Text

I did this little extension for Alfred. It allows you to quickly know about your cpu usage by application. 

Alfred : 

If you don’t know what Alfred is, I invite you to visite alfred website. You should take a look at the Powerpack, an awesome set of advanced features.

ps extension :

Your fans start spinning ? Your mac takes long to respond ? Well maybe a process is taking more CPU than he should. Run this little command and you’ll know for sure. 

How it works : 

ps {number} will display the n first processes sorted by cpu consumption.

ps {string} will display all the processes containing {string} in their names. 

Download :

Download Link

Support :

For any questions or suggestions you can contact me @Silouane20 on Twitter. There may be bugs remaining so please let me know.

preppeller:

Alfred dev build 165 is now available with the following changes:
Improved iTerm2 behaviour in Lion
Allow for wildcard based filtering in the File System Navigation:
Recognise ‘localhost’ as a valid URL when typed into Alfred
Pre-compile regular expressions to improve performance
Added an alfredapp: URL scheme for faster access to activating the Powerpack
Improved Powerpack registration experience and mask code until required
Download it now and help me validate this build! :)
Pre-release is still on track for this week if all goes well.
Cheers,Andrew 

preppeller:

Alfred dev build 165 is now available with the following changes:

  • Improved iTerm2 behaviour in Lion
  • Allow for wildcard based filtering in the File System Navigation:
  • Recognise ‘localhost’ as a valid URL when typed into Alfred
  • Pre-compile regular expressions to improve performance
  • Added an alfredapp: URL scheme for faster access to activating the Powerpack
  • Improved Powerpack registration experience and mask code until required

Download it now and help me validate this build! :)

Pre-release is still on track for this week if all goes well.

Cheers,
Andrew 

Source: preppeller

Text

iChat Extension icon

Hi guys. I’ve been using iChat a lot later, so I decided to create a script in order to use iChat with Alfred. 

Alfred :

Alfred is a productivity application for Mac OS X. If you don’t know it yet you should visit the website or @preppeller the creator of alfred on twitter.

iChat Extension : 

This little applescript can do several things : log you in or out on every services, change your status to available, away or the current song in itune, and finally send messages. If you want more commands for this extension please contact me.

How it works :

ichat in : log you in for all services

ichat out : log you out for all services

ichat ava : set your status to available

ichat away : set your status to away

ichat (query) : set your status to current track in itunes with (query) is track, song, music or itunes

ichat your-message @ name_of_contact : send the specified message to the contact. Please ensure that the whole command contains ” @ ” only once (otherwise the script get confused) and that you’ve wrote correctly the contact name. 

Update : I made few modifications to the script. You can now use the following syntaxes.

ichat your-message @ full_name_of_contact 

and 

ichat your-message @ shortname_of_contact

So you can either type the full name of the contact or a special short-name of your own. To do so, just modify this part of the script :

iChat Perso

For example to add a new shortname, just duplicate from “else if receiver” to “Complete Name of Foo2” and put your own text inside. Like that it takes much less time to send a message to someone.

Please note that you’ll need the latest version of Alfred and Powerpack in order to use this extension.

To make it more efficient :

I did this extension to allow me to quickly answer on iChat while doing some stuff without switching windows all the time. I hide iChat and let it display me incoming message. To achieve that you still need a notification system : 

I found a little software named Chax which aims to make iChat more powerful and brings Growl support to iChat. 

Unfortunately if you run Mac OS X 10.7, Chax isn’t available yet. So I found a very complete Applescript I slightly modified to make him work with Growl for 10.7.

You can download the script here. I found the original one here.

Once you’ve download it, just move it to ~/Library/Script/iChat/ and do the following in iChat preferences : 

Setting iChat for Growl support

When somebody send me a message, I run the script which display the message in Growl notification. 

Download :

Download Link 

Support :

For any questions or suggestions you can contact me @Silouane20 on Twitter. There may be bugs remaining so please let me know.

Text

I’ve searched for cool extensions for Alfred and there was really cool stuff out here !

  • First you should visit this page : it’s a pick of the best extensions choosed by Alfred team. I have some favorites in those : Starfish, Wolfram Alpha, Get External IP address, Get Connexion Speed… etc.
  • I found David Ferguson (jfdwarrior) blog : All the scripts are really neat ! I love the screenshot extension and I’m excited about Twitter from Alfred without complicated installation first. Apparently he helps the Alfred team too.
  • binaryghost aka Don Southard have some really great scripts here : Dropbox, Reminders and SMS from Alfred are my first choices.
  • etc.

Text

Get Serial Icon

Here’s another simple but cool and time-saving extension for Alfred. 

If you don’t know Alfred, I invite you to read the post under this one or alfred website.

Get your serial :

So with this extension, you can easily copy your mac serial number and display it with Growl. 

How it works :

Type serial into Alfred : Your serial is displayed and copied to the clipboard.

Please note you’ll need the last version of Alfred for Growl support and the Powerpack.

Download :

Download Link

Contact :

You can reach me @Silouane20 on Twitter. If you have script ideas, don’t hesitate ! Thanks

Text

Hide/Show Desktop Icon

So I’ve built a little extension for Alfred to quickly hide all the icons that are on your desktop. If you want to do a quick screenshot or make your friend think that you have a neat and well-organize desktop, you should download it !

First let’s start with :

Alfred :

Alfred is a productivity application for Mac OS X. It’s a launcher but also a calculator, a search tool for local and web, an iTunes controller…etc . Honestly this is one of the most useful app I’ve ever download ! Plus it’s free ! If you want more awesome features you should check the Powerpack. One of the features of the Powerpack is extensions support : you create your shell scripts, applescripts, Automator workflows to improve your productivity. 

Clean your Desktop :

It’s a very simple extension : you run the command and all the icons are hidden or revealed. 

How it works :

Just download it, install it (by clicking on it) and use it with the command desk

Please note that you’ll have to get the Powerpack to enable that extension.

Download :

Download Link

Contact :

If you have any request please contact @Silouane20 on Twitter. Thanks