Internet, UNIX, Video, Leisure…
UNIX
New MacPro Nehalem and 10To Raid5 Array
29/03/09

I bought a dual 2GHz Powermac G5 when it first came out, almost 6 years ago. I never had a problem with it. It’s still working as a charme. But, when you’re working with HD footage, it gets a real pain !
One of my best friend always tell me : « buy, don’t wait ». But I chosed to wait a little bit for the new Macpro Nehalem. And it finaly happened : http://www.apple.com/macpro/
Lire la suite de l’article »
Flashing an Amino Set Top Box
24/02/09
Amino company and resellers are really quiet about all the possibilities of the product.
I made a post some time ago about configuring the Amino to boot with DHCP and get the config through this or through DHCP.
This post was really popular and people began to ask me for firmware and informations on how to upgrade. Of course, I can’t provide anything like firmware. My reseller here is France is OK to sell it for 10€ for 4 Amino stb… Or you can find it somewhere on Internet. Please, don’t ask for it, I don’t have the latest nor the Opera firmware.
Add more Os X Solid colors
24/02/09

I’m installing my « new » Imac 24″, which I got from my boss who leaved us a week ago. As you may notice, the OsX background can be any picture you want, but when looking in the solid color choice, you only get 10 of then with no dark or black color.
Adding some there is quite easy.
Colors are, in fact, PNG images, 128×128 pixels. They are located in « /Library/Desktop Pictures/Solid Colors«
Just go there, copy an existing image, change its color with any graphical editor (Gimp ?) and there you go.
OK, this is not a tutorial… but, heh, it’s so damn easy…
OK, OK, I do agree too. Apple should let us chose the color in a color wheel instead of stretching or mapping a small image to the whole screen… Maybe we’ll get that on Snow Leopard soon…
Change Mac OS X user Limits
24/02/09

I always had a process limitation problem on OSX. You may encounter this when you open too much applications. In my case, using iTerm, I easyily open far too much shells to servers I have to deal with.
You will then get a « login: fork: Resource temporarily unavailable » error message. When trying to start a new application, you will barely see the icon in the dock, then it will disapear. Now you’re in Troubble !
Mysql Reminder : csv export
28/01/09
I was asked to export some data in a csv format from a Mysql database. I’m just putting it here as a reminder… Thank you so much my blog to extend my brain capacity so much !
SELECT * INTO OUTFILE '/tmp/result.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM dc_account_key WHERE created_at > '2009-01-09' AND active = 0;
I won’t explain this, it’s really straitforward. This is just a reminder, after all.
Change your keyboard to what you need
7/01/09
![]()
If you’re intensively working with one software, you may be interrested by this.
This website is offering, for cheap, stickers to re-dress your keyboard, for under 10£ !! (13€). They also sell « skins » for your keyboard. This way, you can have a skin for every software you use. This is a little bit more expensive : around 30£ (33€).
You think that’s it ?
Nooooo ! They also make skins for Macbook, Macbook pro AND new Unibody Macbook Pro (and Air) !!!
Now you have no reason to lose a short-cut.
DAA and UIF image formats on OS X
7/10/08
Yeah… windows stuffs, as usual.
Hopefully you’ll find some tools for Os X :
- daa2iso : download, unzip, go to the src directory from the console and start « make ». You’ll end up with a daa2iso binary. Don’t care for the errors.
daa2iso in_file.daa out_file
Result is a out_file.iso, which you can open from the finder.
I just have no valid daa file for testing
- uif2iso : download, unzip, go to the src directory from the console and start « make ». You’ll end up with a uif2iso binary. Don’t care for the errors.
uif2iso in_file.uif out_file
Result is a out_file.iso, which you can open from the finder.
- Daa converter for MacOsX : it’s an app. Download, copy to apps directory and enjoy. Not tested.
New iTerm release (EDIT)
21/08/08
iTerm is the most powerfull terminal emulator I know on Mac osX. I first thought the dev of this projec was over when Apple released Leopard. Today a co-worker just get an update warning. Checking it shows there indeed was a new update, version 0820 (20th of August ?
).
The changeLog on the website reference few features and small bug enhancement PLUS a « Fixed nasty crashing bug« . I really hope this is the one I had once and a while (especialy when doing copy/past).
My friend did the update. When starting iTerm he has lost all his (51) bookmarks. Personaly I don’t use bookmarks. But he was really pissed off. After few minutes searching WHY no iTerm.plist was created when changing the config of iTerm, I finaly found that the config file name was changed.
The solution is to rename iTerm.plist to net.sourceforge.iTerm.plist in the Library/Preferences folder of your user (Bibliotheque/Preferences for French users). You can also do it from the Terminal this way (and keep your original file) :
cp ~/Library/Preferences/iTerm.plist ~/Library/Preferences/net.sourceforge.iTerm.plist
-EDIT-
It wasn’t long for iTerm to correct this « bug » :
Version 0.9.5.0821 includes the following changes:
* Fixed a bug in 0.9.5.0821 that causes loss of preferences when upgrade.
Go download the new version at http://iterm.sourceforge.net/download.shtml
Icecast monitoring from Cacti
1/07/08
I was asked for my Icecast monitoring template for Cacti today. I just realized I made a post in Cacti forums back in 2005 but never released the files.
My plugin is based on a Data Query. You add it to your device then you can discover every stream of your icecast server. Then you can choose the one you want, or chose the « all listeners ».
I also have an aggregation template, not specialy made for icecast but really usefull. You can then aggregate you streams as you like.
This is what I get for some of my streams :

Darwin Streaming Server (DSS) 6.0.3, on Solaris 10
27/05/08

DSS 6.0.3 is out ! Check this out at http://dss.macosforge.org/
I’m not sure what this new version brings, few things seems to have changed. I hope for the best..
They claim to be 64 bits compatible on OsX, with some speed up changes. Don’t know what this will bring on Solaris or Linux.
Whatever, this version will not compile out of the tar.
Sverker Abrahamsson have made a patch for Linux here.
He also provide a pre-patched source code there.
This will not compile on Solaris 10
So here are 2 patches for Solaris 10. I compiled using the coolthread Sun GCC, but it should be OK with whatever GCC you use.
Note that I had to so something dirty with the Timezone detection, and I still don’t know what the impact can be on a production server. I’ll come back here if I see any trouble one on production.
I also have few errors (warnings, in fact), that should be OK when running but detected by the pre-processor :
RTCPUtilitiesLib/RTCPAPPNADUPacket.h: In destructor `NaduList::~NaduList()':
RTCPUtilitiesLib/RTCPAPPNADUPacket.h:205: warning: comparison between signed and unsigned integer expressions
FYI, I’m not using DSS on production right now, and DSS 6 will have to be heavily tested before it is validated.
So…
[EDIT]
Thanks to Stefan Parvu, I added in the patch the Solaris x86 things. So DSS now also compile on it (tested on Sun Fire X4100 Server with AMD Opteron(tm) Processor – gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath))
[EDIT]
- dss-603-orig-to-solaris10-v3patch.gz
Use this patch if you just download the plain source.
gunzip the patch.
untar the DSS source code and rename the directory « DarwinStreamingSrvr6.0.3-Source-Solaris10″.
At the same level as the source directory, use « patch < dss-603-orig-to-solaris10-v3patch".
go inside the DSS directory, then use « ./buildtarball 6.0.3 » to compile it.
Your install package will be in something like DarwinStreamingSrvr6.0.3-SunOS.tar.gz - dss-603-linux-to-solaris-v2.patch
Use this if you start from the modified source code for Linux, provided by Sverker. Compile it the same way as above.
Then, Copy the tar file on your production server, untar it, and use the « ./Install » script for install in /usr/local.
I’m working on a modified installer script where you can change the root installation dir. Soon to come…


