Articles contenant le tag LinkedIn

TimeMachine sur un NAS Synology: Disk Full !!!

Après quelques mois de bons et loyaux services, Time Machine décrète qu’il ne peut plus continuer à stocker de nouvelles données sur notre NAS car même après avoir retiré tous les backups précédents, il n’y a plus assez de places…

, ,

3 commentaires

Bad idea: get a read lock while holding a write lock

Under Linux, the following code hangs in the second execution of the loop at the time the write lock is acquired. pthread_rwlock_t lock; fprintf(stderr, « Init\n »); pthread_rwlock_init(&lock, NULL); for(int i = 0; i < 2; ++i) { fprintf(stderr, « Get Write lock\n »); pthread_rwlock_wrlock(&lock); fprintf(stderr, « Get Read lock\n »); pthread_rwlock_rdlock(&lock); fprintf(stderr, « Release Read lock\n »); pthread_rwlock_unlock(&lock); fprintf(stderr, « Release Write lock\n »); […]

, , , ,

4 commentaires

Namespace clash in IE

In JavaScript, in Internet Explorer, you cannot declare a global variable that has the same name as the id of any element on the same web page. If you try and then try to use any method on that object, you get a « object does not support method » error. Why? Because, in Internet Explorer, the […]

, ,

Pas de commentaire

A savoir: une classe qui étend une classe dynamique doit elle-même être dynamique

Comme indiqué dans Extending the Array class, une classe qui étend une classe dynamique doit elle-même être dynamique sous peine de ne pas fonctionner. public class MyArray extends Array { // … } public function test() : void { var myArray:MyArray = new MyArray; myArray.push({ text: « test » }); var x:Object = myArray[0]; // cause un […]

, ,

Pas de commentaire