Mittwoch, 27. Juni 2012

Mac "The operation can't be completed because the item xxx is in use"

This error is in all Mac OS X Versions up to 10.7

Delete something in a Network Drive

It happens then I want to delete something from the network drive.
It turned out that the program Quicklook use the file.
This is the case then you use the finder in the cover view mode.
The file, in my case a picture,  is viewed with Quicklook.
Use the normal list mode and you can delete normally.

How to find out which program is using your file

Open the Terminal
lsof -l +L -R -V | grep "Name-of-the-file"
alternativelly you can use
lsof -l +L -R -V | grep /Volumes
in the case your file is on the network drive

Stopp using
Killall Finder
to stopp  Finder  to use the file

Remove with Terminal
sudo rm -rf "path-and-name-of-the-file"
drag and drop the file to the Terminal windows you get the correct path and name!

If you get this error deleting the trash

Simple solution

Right click the trash and use "Secure Empty Trash"
You find this also in the Finder, menue Finder, Secure Empty Trash





Montag, 11. Juni 2012

Mac Hardisk not Booting - partition map

Apple iMac (Mac OS X 10.4) is not booting.

1. Start iMac and press "T"
Connect by firewire cable to another Mac Computer (Mac OS 10.7).
Start "Disk utility" program.

"First Aid"
"Verify Disk"
"Repair Disk"

Error was found
"Problems were found with the partition map witch might prevent booting."

In my case the "First Aid" could not help.

2. I tried to boot the iMac with Disk Warrior (v.4).
But the repair program could not repair the hard disk.

3. I installed the Windows program "MacDrive" on PC Windows XP.
(5 day free test program)
Connect my Mac Harddisk to windows, with USB external hard disk device.
But MacDrive found error on harddisk and could not repair.

4. Found blog from "Broes"
http://www.broes.nl/2008/01/restore-an-apple-partition-map/
I installed "TestDisk" on Mac (10.7).
Connect the hard disk with USB external hard disk device.
Tried to understand the program.
The program could not see the rotten hard disk.

5. Idea to use TestDrive on Windows Computer.
Connect the rotten hard disk by USB external device to Windows PC.
Suddenly the rotten Mac Hard disk is mapped.
I could copy all the data to another external hard disk.

Summary: I could not really understand the "repair" of the hard disk.


Dienstag, 27. März 2012

Windows 7 Volume Licence - Phone Activation

Windows 7 (32 bit und 64 bit, englisch) no online activation possible.
Error: 0xC004C020 "The activation server reported theta the Multiple Activation key has exceeded ist limit"

The phone activation was not shown in the tool.

Therefore start the activation tool by the "slui.exe 4" command.

Start
Run
slui.exe 4

Start the phone activation.

At phone
2,1,1
Type in a lot of numbers

Freitag, 23. März 2012

WebDav Ubuntu 11.10
Create Folder for WebDav

http://www.SemperVideo.de

http://www.youtube.com/watch?v=wGgFY80YigA

http://www.youtube.com/watch?v=Da7pnDu0I6E

Install Apache Webserver:
sudo apt-get apache2

Module for WebDav:
sudo a2enmod dav
sudo a2enmod dav_fs

Create Folder in Web Home for WebDav:
mkdir /var/www/davhome

sudo chgrp www-data /var/www/davhome/
sudo chmod 775 /var/www/davhome/

Create user davuser1 and password file
sudo htpasswd -c /var/www/davhome/.DAVlogin davuser1
New password:***
Re-type new password:***

Configure dav_fs.conf
sudo nano /etc/apache2/mods-enabled/dav_fs.conf

---Nano dav_fs.conf---
(...)
#DavMinTimeout 600
§Location /davhome/§
Dav on
AuthType Basic
AuthName davuser1
AuthUserFile /var/www/davhome/.DAVlogin
§LimitExcept OPTIONS§
Require user davuser1
§/LimitExcept§
§/Location§

----Nano---

Notes:
§ = angle brackets, in this blog I can not write xml brackets
§LimitExcept OPTIONS§--- Required Password for Reading and Writing
§LimitExcept GET OPTIONS§--- Required Password for Writing
§LimitExcept GET PUT OPTIONS§--- No Password requried

Restart Apache:
sudo /etc/init.d/apache2 restart



Dienstag, 12. April 2011

Dreieckdiagramm mit Excel

In der Geologie, aber auch in anderen Bereichen werden Dreiecksdiagramme eingesetzt.
3 Achsen ergeben ein gleichseitiges Dreieck. Es werden Werte eingetragen, die in der Summe immer 100% ergeben.

Beispiel ist die Bodenzusammensetzung aus Sand, Schluff und Ton.

Excel bietet kein Dreiecksdiagramm in der Auswahl.

Es ist aber trotzdem möglich ein Dreiecksdiagramm mit Excel zu machen. Dazu werden die Werte mit Hilfe einer Funktion und sin(60°) bzw cos(60°) in einen x-y-Plot übertragen. Die Achsen werden als Striche in einem Diagramm ("Punkte mit geraden Strichen") eingezeichnet. Außerdem sind waagrechte und schräge Hilfslinien möglich.

Dankenswerterweise haben Graham & Midgley dies in Excel bereits entwickelt.
http://www.lboro.ac.uk/research/phys-geog/tri-plot/
Graham DJ and Midgley NG. 2000. Graphical representation of particle shape using triangular diagrams: an Excel spreadsheet method. Earth Surface Processes and Landforms 25(13): 1473-1477.

Beispiel von mir
http://www.ipb.uni-tuebingen.de/kurs/comp/1_excel2007/uebung/tri-plot_v1-4.xls

Excel Skript
http://www.ipb.uni-tuebingen.de/kurs/comp/1_excel2007/kurs01_04.html#dreieckdiagramm



Hinweis:
In dem Programm SigmaPlot sind Dreiecksdiagramme eingebaut.

Mittwoch, 26. Januar 2011

Shared Folders in VirtualBox 4.0 WindowXP(Host) Ubuntu 10.10(Guest)

Host: Windows XP
Guest Ubuntu 10.10
VirtualBox 4.0

My message:

Do not use long name, name with spaces or strange names for the share name!
"vboxshare" produced a
"mount.vboxsf: mounting failed with the error: Invalid argument"
"share" works!

Manual
  1. Install Guest Additions

  2. Settings VirtualBox:
    create sharing folder on Windows XP (host)
    give a short an simple name "share"!!!

  3. Go to Ubuntu (Guest)
    mkdir a folder for sharing
    - Do not use the Home-Folder -
    this is importent if you want to create a permanent mount
    root is used in rc.local and root has respect of home directories.
    use for example
    /mnt or /tmp
    I use
    /media/vboxgemein

  4. Mount manually

    sudo mount.vboxsf share /media/vboxgemein/

    If this work you can create a permanent mount folder in rc.local

  5. Mount permanemtly
    open rc.local with editor

    sudo nano /etc/rc.local

    before the "exit 0" command type

    mount.vboxsf share /media/vboxgemein/






Donnerstag, 30. Dezember 2010

Sharkoon USB3.0 Host Controller Card Problems

Sharkoon USB3.0 Host Controller Card

Board ASUS P5AB

Windows 2003 Server 64 bit

The external USB 3.0 Harddrive will not be recognized.

Solution:
Instead of the newer driver 2040 (Mini-CD from Sharkoon or Website)
use the NEC 1019 Driver (Link)