Soundcloud 2013 Stuck on repeat (mon top 40)

Mercredi 08 janvier 2014, catégorisé sous Musique

Ce que j’ai écouté à répétition sur les serveurs de Soundcloud en 2013 :

From Snow Leopard (10.6) to Mavericks (10.9) – Clean install

Mercredi 20 novembre 2013, catégorisé sous Mac OS X
Tags: ,

Since my iMac had had a lot of OS updates, I’d decided to clean install Mavericks on my new iMac (i5). Without using Migration Assistant, the manual data migration was a bit of a pain, especially Mail and Address Book.

Here is the log :

Installing OSX 10.9 Mavericks (It’s free!)

READ http://www.coolestguidesontheplanet.com/downtown/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks

Installing OSX 10.9 Command Line Tools

https://developer.apple.com/downloads/index.action

Installing Apache2

Copy virtual hosts
Copy /etc/hosts
Apache started, no websites work

  • Change NameVirtualHost IP
  • LogLevel debug

Test the config

  • $ apachectl -S
  • $ sudo apachectl -t
  • $ sudo apachectl configtest

Everything seems OK, bug Console shows:

  • 2013-11-07 13:16:58,354 com.apple.launchd[1]: (org.apache.httpd[5829]) Exited with code: 1

Move all vhosts outside config, apache restart:

  • OK
  • Found an error (error in log path) inside a vhost.

Add « staff » group on apache user « _www »

  • $ sudo dseditgroup -o edit -a _www -t user staff

Testing a Symfony 2 project

$ cd site/
$ rm -rf app/cache/*
$ rm -rf app/logs/*
$ sudo chmod +a « _www allow delete,write,append,file_inherit,directory_inherit » app/cache app/logs
$ sudo chmod +a « `whoami` allow delete,write,append,file_inherit,directory_inherit » app/cache app/logs

Fatal error: Maximum function nesting level of ’100′ reached, aborting! in /Library/WebServer/SGL/Temps/site/vendor/twig/twig/lib/Twig/Node/Expression/Array.php on line 31

  • $ sudo nano /usr/local/php5/php.d/50-extension-xdebug.ini
    xdebug.max_nesting_level = 1000

Testing a Symfony 1.4 project

Using LIIP PHP 5.5.5, I first got apache segfaults, error_log : [notice] child pid 1432 exit signal Segmentation fault (11).
Looking at the Console, the crash reports showed apcu extension (APC) was crashing.
I had to disable it in /usr/local/php5/php.d/50-extension-apcu.ini
Follow the issue on Github

Sendmail

Could not send email through PHP. Let’s use my ISP SMTP :
$ sudo nano /etc/postfix/main.cf

  • relayhost = smtp.myisp.com

Creating/coping original bash profile

$ touch ~/.bash_profile
$ nano ~/.bash_profile

Installing PHP : LIIP OSX PHP

5.5.5
/usr/local/php5-5.5.5-20131020-222726

$ nano ~/.bash_profile

  • PATH=/usr/local/php5/bin:$PATH
    export PATH

Library directory hidden

$ chflags nohidden ~/Library/

Installing MySQL 5.6.14

Download from mysql.com DMG x86, 64-bit
Server version: 5.6.14

$ nano ~/.bash_profile

  • alias mysql /usr/local/mysql/bin/mysql
  • alias mysqladmin /usr/local/mysql/bin/mysqladmin

$ mysqladmin -u root password ‘my-password’

READ http://www.abbeyworkshop.com/howto/osx/osxMysqlInstall/

Delete blank user
$ mysql -u root -p

  • use mysql;
  • delete from user where User= »;

$ mysqladmin -u root -p reload

Databases migration

Export
$ sudo /usr/local/mysql/bin/mysqldump –user=root -p –all-database –add-drop-database –skip-comments > all_db.sql

Import
$ ./mysql < all_db.sql

Tests
ERROR 2013 (HY000): Lost connection to MySQL server at ‘sending authentication information’, system error: 32

$ /usr/local/mysql/support-files mysql.server stop

$ sudo cp my-default.cnf /etc/my.cnf

  • bind-address = 127.0.0.1

$ sudo nano /usr/local/mysql/data/i5Mac.local.err

  • but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure
  • InnoDB: Error: Table « mysql ». »innodb_table_stats » not found

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).
[ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.

Let’s start again…
$ sudo rm -rf mysql data/*
$ sudo ./scripts/mysql_install_db
$ sudo chown -R _mysql:wheel data
$ ./bin/mysqladmin -u root password ‘new password’
$ cd mysql-test
$ perl mysql-test-run.pl

IMPORTANT
Remove ‘mysql’ database from sql-dump to not overwrite Mysql 5.6 « mysql » database.
All databases/tables privileges will have to be granted again.

  • $ sudo /usr/local/mysql/bin/mysql -p < ~/Documents/all_db.sql ### dump without ‘mysql’ table
  • $ sudo /usr/local/mysql/bin/mysql_upgrade -u root -p

READ http://www.coolestguidesontheplanet.com/downtown/upgrade-mysql-database-55-56-osx-108-mountan-lion

$ sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql

Copy /Library/WebServer (my http server root)

Connect to old iMac wirelessly

$ cd /Volumes/Macintosh\ HD-1/Library/WebServer
$ sudo cp -p -R some-project /Library/WebServer/some-project

Copy all shell scripts ~/Scripts

Copy iPhoto Library

READ https://discussions.apple.com/thread/4063828
Copy only ~/Images/iPhoto Library
open iPhoto while holding  <option> key : Choose new library > Convert library

Copy iTunes Library

READ https://discussions.apple.com/thread/4747132

Copy ~/Music/iTunes
Copy /Users/Shared/Music/iTunes

Copy Documents/

Copy Desktop/

Copy Videos/

Copy Downloads/

Mail.app

Copy Library/Mail

  • $ sudo cp -R * ~/Library/Mail/

Copy Library/Preferences/com.apple.mail.plist

Open Mail.app

  • Mise à niveau des mailbox…
  • Mailbox empty, nothing imported

Close Mail
Move ~/Library/Mail/* > ~/Desktop
Open Mail again
Create new email account
Import all copied mailbox on the Desktop

  • File > Import mailbox

Will have to re-create all email accounts :(

Signatures : now it uses .mailsignature, was .webarchive

  • Open original webarchives files in Safari, copy paste content in a newly created signature

Address book

Had an original bug since I synced my contacts iMac > iPhone, hadn’t had time to fix it: lots of duplicate contacts.

Start again:
Get my original Address Book cleaned
Delete all contacts from icloud.com (https://www.icloud.com/#contacts)
In Address Book: selected all contacts > Export >  vcards
Browse icloud.com / import vcards export file
Will have to re-create groups again :(

Import Fonts

Softwares

Install Evernote

Install BBEdit

Install phpStorm

  • Install Java SE 6 Engine
  • Copy ~/Library/Preferences/WebIde70/*

Install Adium

Install Sequel Pro

  • Import preferences :
    READ https://code.google.com/p/sequel-pro/issues/detail?id=1588
    Create one favorite (to activate Import… menu)
    Import favorites (using the « Gear » menu just below the favorites list), you can now select your old .plist file, and it’ll import your favorites from there, adding them to your current list.

Keychains

Install Git 1.8.4.2

Install wkhtmltopdf

  • https://code.google.com/p/wkhtmltopdf/downloads/list
    Download wkhtmltopdf-0.9.9-OS-X.i368 (latest are buggy)
    $ sudo ln -s /Applications/Utilities/wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf /usr/local/bin/wkhtmltopdf

Install subversion (well no.)

  • OSX 10.9 native
    See Command Line Tools

Transmission

  • copy ~/Download/bt
  • Application Support
  • Preferences

Transmit

  • Application Support
  • Preferences

Photobooth photos

  • Copy original photos to Photo Booth Library > show package contents > Pictures
  • Copy original Recents.plist from ~/Library/Application Support/Photo Booth/Recents.plist to ~/Pictures/Photo Booth Library (show package contents)

Apple Ipod classic (2006) appears in finder but not in iTunes.

Vendredi 12 avril 2013, catégorisé sous Apple

I hadn’t connected my ipod classic on my computer for 6 months. Recently I wanted to sync it. It appeared in finder but not in itunes.
I tried on others computers and usb ports : no success.

I checked iPod with Diagnostics Mode (see turingtest2 answer on Apple Support Communities )

  1. Hold Center button + Menu button for 6 seconds.
  2. As Apple logo appears, immediately hold Center button + Left button 6 seconds
  3. Release all buttons as Diagnostic Mode Boots
  4. Go to : Manual Test > IO > HardDrive > HDSMARTData

Everything seems OK.

Since I didn’t care to lose ipod data as everything is on my mac, the solution was simply to erase the ipod with Disk Utility.
When erase was done, iTunes showed my brand new iPod :

itunes-ipod-classic

Cup cakes à Montréal

Mercredi 21 novembre 2012, catégorisé sous À manger

Pour faire suite à une discussion, j’ai créé la liste des boutiques qui y sont référées puisque j’en suis aussi un inconditionnel.

  1. Petits Gâteaux783, avenue Mont-Royal Est
  2. Les Glaceurs – 453, rue Saint-Sulpice | 1245, rue University | 4864, rue Sherbrooke Ouest
  3. Itsi Bitsi2507 Notre-Dame Ouest
  4. Cho’cola – 5601, Avenue Monkland
  5. Shi Shi – 7700 Rue St-Hubert
  6. Rockabilly Cupcakes – (450) 944-3763 (Commande seulement)
  7. Gâteaux Maliniak – 514-889-3950 (Commande seulement)
  8. Cupcakes et Cie – 514.567.5466 (Commande seulement)

North, Middle & South Tripyramid, New Hampshire, États-Unis

Vendredi 03 août 2012, catégorisé sous Hiking
Tags:

Distance : 17 km

Après 3 ans d’absence dans les montagnes blanches, je suis parti seul faire les monts Tripyramid. Peu fréquentés, ils sont pourtant un bon défi avec les North et South slides. Arrêts à St Johnsbury pour l’épicerie au Price Chopper (sortie 22 de la 91) et au White Mountain Visitor Center de Lincoln (sortie 32 de la 93) pour la Parking Pass (5 $ pour une semaine.) J’avais prévu dormir en camping au Osceola Vista Campground (16 $ argent comptant.) Étant en milieu de semaine, il était pratiquement vide : un seul autre emplacement de tente était occupé. Par contre, les réservations étant permises, la fin de semaine semblait très occupée.

Souper à 18 h. Dodo à 20 h. Levé à 5 h. Je suis à la Livermore Road trailhead à 6 h 15 et je suis le premier. Je n’ai croisé personne sur les 14 premiers km, seulement des cyclistes à mon retour dans la Livermore Road. En tout c’est un sentier de 17 km, dont près de 10 km pour la tripyramid loop qui passe par les sommets North Tripyramid* (4180′), Middle Tripyramid* (4140′) et South Peak (4100′). Estimé à 7 h, j’ai pris 6 h en comptant mes arrêts.

Un café à Campton à la Mad River Coffee House (meilleur café des White Mountains!) m’a permis de compléter 6 h d’auto restantes.

* Sommets font partie de la liste des NH 4000 Footers