Wednesday, June 22, 2011

Change to a british keyboard

> setxkbmap -layout gb

Wednesday, June 8, 2011

Disable / Enable Spotlight

Completely disable Spotlight indexing:
sudo mdutil -a -i off

To enable Spotlight again:
sudo mdutil -a -i on

Tuesday, June 7, 2011

My white titles are printed black

Goto View menu.
Click Grayscale in Color/Grayscale ribbon.
Select one slide that has the problem on the left in order to have it displayed on the main window.
Click in the black title.
Click in the White icon in Change Selected Object ribbon.

This will make the title appear (and print) white.

Sunday, May 15, 2011

Firefox 4 does not install

When dragging the Firefox icon to the Applications folder, I get:

"The operation can’t be completed because you don’t have permission to access some of the items."

Solution:
- Open a terminal
sudo -s
hdiutil mount /Users/jerome/Downloads/Firefox 4.0.1.dmg
cp -r /Volumes/Firefox /tmp
mv /tmp/Firefox.app /Applications


et voila

Install LeoHazard 10.6.2 on AMD Athlon64 3500+

Conf. recap:
Gigabyte K8NF9 ultra
AMD athlon64 3500+
GeForce 240 GT 512Mb GDDR5

Boot on LeoHazard DVD
Partition the disk w/ Disk Utility
Options:
    Mac OSX 10.6.2
    Kernels:
        Legacy_kernel_10.2.0
    Graphics_Drivers:
        NVEnabler
    System_Support:
        SATA_ATA_Fix
        JMicron_ATA_Injector
        UUID
        Fakesmc_V1.0
    AMD
    Additional Fonts
    X11
Eject DVD and reboot
On Chameleon menu, <Enter>, then -v -s <Enter>
On prompt: 
/sbin/fsck -fy
mount -uw /
cd /Volumes/snowleopard
rm Extra/Extensions.mkext
rm S/L/Extensions.mkext
rm -R S/L/E/SleepEnabler.kext
rm -R S/L/E/ApplePS2Controller.kext
rm -R S/L/E/AppleIntelCPUPowerManagement*.kext
rm -R S/L/E/Disabler.kext
rm -R S/L/E/AppleHPET.kext
rm -R S/L/E/AppleSMBios.kext

Reboot (long)
Run Marvin's utility (last option) on /System; When all files patched, appl. stops responding => kill it
Reboot: * Important! * Do not try installing anything before reboot complete or you would face privileges problems
Install Dropbox 
Install kexts from Dropbox: everything into S/L/E except ElliotForceLegacyRTC into E/E
Run Kext Utility 
Update NVEnabler.kext:
    Show Content
    Edit info.plist: Root | IOKitPersonalities | NVEnabler | IOPCIMatch => 0x0ca310de
Change the default partition to boot on Windows by default:
    Edit /E/E/com.apple.Boot.plist
    Add new child: Default Partition => hd(1,1) (NB: this matches the partition for System Reserved, Windows)
Activate sound:
    Goto System Preferences
    Select "Line out" for Sound effects and for Output 
Install iMovie 11 (only iMovie, not the whole iLife suite, which causes a KP on AMD)

Monday, May 2, 2011

See which are the packages you have installed

dpkg -l |grep -e "^ii.*"

Friday, April 22, 2011

Select a stock quantity for 2 distinct shops

SELECT product.id AS product_id,
stock1.quantity AS quantity1,
stock2.quantity AS quantity2
FROM product
LEFT JOIN stock stock1 ON stock1.product_id = product.id AND stock1.shop_id = 1
LEFT JOIN stock stock2 ON stock2.product_id = product.id AND stock2.shop_id = 2

Tuesday, April 12, 2011

Find files newer than

First create a dummy file for 2011 April 11, 18:00
touch -t 201104111800 /tmp/lundi
Then find files newer than this file
find . -newer /tmp/lundi -print

Wednesday, April 6, 2011

virtualbox downloads

http://download.virtualbox.org/virtualbox/

Install .deb on ubuntu

sudo dpkg -i package.deb

lave vaisselle Bosch: l'eau ne s'evacue pas completement

Cette page donne la solution:

J'ai eu le même problème . J'ai réussi à remettre à neuf le répartiteur en utilisant un déboucheur liquide style" D----P" .
Effectuer le démontage du coté gauche (2 vis sous le joint de porte) enlever les 2 brides métalliques (2 vis et coulisser vers la gauche) Enlever les 2 angles plastique dont celui arriere est fixé par une vis .
Débrancher les tuyaux de la vidange ( tirer pour déboiter, joint torique) et celui de remplissage (pincer le collier pour le faire coulisser et débrancher le tube)
Sortir le répartiteur en le soulevant délicatement pour débrancher les 4 autres tubes .
Vous avez le répartiteur en main . L'angle supérieur gauche comporte un flotteur qui est bloqué dans les résidus de tartre et graisse .
Faire pivoter cet angle vers le bas, après vous être équipé de gants et lunettes faire couler le déboucheur par le tube de vidange afin de le produit pénètre par un petit conduit débouchant dans la vidange . Laisser une journée (trouver un moyer stable de le maintenir dans cette position et ATTENTION à ce que personne n'y touche DANGER), vider rincez abondamment en remuant pour créer un mouvement même léger au niveau du flotteur .Renouveler l'opération tant que nécessaire ( Je l'ai fait 3 fois pour en venir à bout )
Le remontage effectue en sens inverse.

Clearcase merge (alternative)

ct findmerge SCCP-MIR.xml -fversion /main/sw8/cr16532/LATEST -merge -gmerge
     |
     1
     |   \
  LATEST   1'
C’est 1’ qui est merge.
Puis faire ci.

crtool master BOD, where?

cd /ccase/cm/crtool-1.3/var/mbods

Compile without winking

clearmake -u
or
clearmake -V
Do not use swmake!

Who is owning the branch?

ct des bin/version.pl@@/main/sw9/eecn_902_sp4_patches

Get synchronization status

multitool lsepoch

Date of a label type

ct des lbltype:SW-9.02-SP4-DROP3

Changes from date

cd /vob/signalware/Master/
ct find -all -version '{brtype(cr25396a) && created_since(19-aug)}' -print -nxname

Merge files from cr19287a to current branch

ct findmerge -all -c "Merge back from tip" -fversion /main/sw9/cr19287a/LATEST -merge -gmerge

Show files to merge from cr19287a to current branch

ct findmerge -all -c "Merge back from tip" -fversion /main/sw9/cr19287a/LATEST -print