Deleting files that give an error of “The filename or extension is too long”

del 0-Namespace-https???next-services.apps.microsoft.com?browse?6.2.9200-1?670?en-US?c?AU?Namespace?pc?00000000-0000-0000-0000-000000000000?00000000-0000-0000-0000-000000000000.dat
The filename or extension is too long.

Cleaning up after a Windows 8 restore and had problems deleting some files. According to KB320081 one possible way was to “Use an auto-generated 8.3 name to access the file”. After some searching I found what this means thanks to this post (it annoys me to no end that lot’s of posts just copy and pasted the details in the KB320081 page and don’t explain how to use the 8.3 name for deleting stuff). So the 8.3 name is the first 6 letters of the file name appended with a ~1 with any similar files will have an incremented number (~2, ~3, etc) as shown below.

1. My Chicagotech A.doc => MYchic~1.DOC
2. My Chicagotech B.doc => MYchic~2.DOC

I used this to help delete some files but even that didn’t manage to delete some files. In the end a “del name*” helped

C:\Windows.old\Users\Tim\AppData\Local\Packages\WinStore_cw5n1h2txyewy\AC\Microsoft\Windows Store\Cache>dir
 Volume in drive C is Windows8

 Directory of C:\Windows.old\Users\Tim\AppData\Local\Packages\WinStore_cw5n1h2txyewy\AC\Microsoft\Windows Store\Cache

13/Apr/2014 16:09 <DIR> .
13/Apr/2014 16:09 <DIR> ..
01/Nov/2013 21:35 5,578 0-Namespace-https???next-services.apps.microsoft.com?browse?6.2.9200-1?670?en-US?c?AU?Namespace?pc?00000000-0000-0000-0000-000000000000?00000000-0000-0000-0000-000000000000.dat
28/Oct/2013 13:04 5,578 0-Namespace-https???next-services.apps.microsoft.com?browse?6.2.9200-1?670?en-US?c?GB?Namespace?pc?00000000-0000-0000-0000-000000000000?00000000-0000-0000-0000-000000000000.dat
27/Oct/2013 18:42 5,574 0-Namespace-https???services.apps.microsoft.com?browse?6.2.9200-1?615?en-GB.en-US?c?GB?Namespace?pc?00000000-0000-0000-0000-000000000000?00000000-0000-0000-0000-000000000000.dat
01/Nov/2013 21:35 474 0-ProductTileExtendedByProductGuidForOS-https???next-services.apps.microsoft.com?browse?6.2.9200-1?670?en-US_en-US.en?c?AU?OsUpgrade?0a295e4d-5f14-4b44-9c2e-c98177f9e2f4?pt?x64.dat

del 0-Prod~1.dat   # worked

del 0-Name~1.dat   # didn't work
Could Not Find C:\Windows.old\Users\Tim\AppData\Local\Packages\WinStore_cw5n1h2txyewy\AC\Microsoft\Windows Store\Cache-Name~1.dat

del 0-Name*        # worked

Canon CanoScan LiDE 20 on OS X 10.5.8

In order to get the Canon CanoScan LiDE 20 working in OS X 10.5.8 (and from the comment responses 10.6 Snow Leopard as well)

  1. Go to the Canon CanoScan LiDE 20 product page
  2. Click the “Drivers & Downloads” tab
  3. Select “Mac OS X” from the dropdown menu
  4. Download CanoScan Toolbox Ver. 4.1.3.0X (Direct Download Link)
  5. Download LiDE 20/LiDE 30 Scanner Driver Ver. 7.0.1.1aX (Direct Download Link)
  6. Install the CanoScan Toolbox first
  7. When installing the driver specify the “Plug-Ins” folder in the CanoScan Toolbox installation directory
  8. Open up the “CanoScan Toolbox, click settings and it should detect ScanGear CS 7.0X as the driver and scanning should work without a hitch
  9. The scanner is fully operational including the scanner buttons to scan, copy and email (the button actions can also be customized)

Update
Some tips that may help if you’re having installation problems

Manually editing Quicksilver Trigger Shortcuts (remap log out)

So I managed to disable command + Q to close applications via Quicksilver, but next I wanted to create an easy shortcut to close the application and Command + Shift + Q came to mind. Then I found out it was mapped to logging out of my current OS X session. But as any enthusiast, who want’s to be a rebel and fight against the machine (I honestly loved that bit of Jason Calacanis’ message to Apple Fanboys and Girls), I delved deeper. Knowing that the information had to be stored somewhere on the system I looked for the configuration file and found it at

~/Library/Application Support/Quicksilver/Triggers.plist

For those unfamiliar with the “~”, it is the home directory of the user, which should be found in Finder’s “Places” section in the sidebar with the name of your user. Open that up in any text editor (TextEdit, nano in Terminal or my current text editor TextWrangler) and add the following before the line that says </array>, then restart Quicksilver


<dict>
    <key>ID</key>
    <string>58C26ADF-2CEB-4E49-A530-B386CEF537FB</string>
    <key>command</key>
    <dict>
        <key>actionID</key>
        <string>AppQuitAction</string>
        <key>directArchive</key>
        <dict>
            <key>class</key>
            <string>QSProxyObject</string>
            <key>data</key>
            <dict>
                <key>qs.proxy</key>
                <dict>
                    <key>icon</key>
                    <string>GenericApplicationIcon</string>
                    <key>name</key>
                    <string>Current Application</string>
                    <key>providerClass</key>
                    <string>QSProcessMonitor</string>
                    <key>types</key>
                    <array>
                        <string>NSFilenamesPboardType</string>
                        <string>qs.process</string>
                    </array>
                </dict>
            </dict>
            <key>properties</key>
            <dict>
                <key>QSObjectChildrenLoadDate</key>
                <real>274987421.89515197</real>
                <key>QSObjectDetails</key>
                <string>Proxy Object</string>
                <key>QSObjectIconName</key>
                <string>GenericApplicationIcon</string>
                <key>QSObjectName</key>
                <string>Current Application</string>
                <key>QSObjectObjectID</key>
                <string>QSCurrentApplicationProxy</string>
                <key>QSObjectType</key>
                <string>qs.proxy</string>
            </dict>
        </dict>
        <key>directID</key>
        <string>QSCurrentApplicationProxy</string>
    </dict>
    <key>enabled</key>
    <true/>
    <key>keyCode</key>
    <integer>12</integer>
    <key>modifiers</key>
    <integer>1179914</integer>
    <key>onPress</key>
    <true/>
    <key>type</key>
    <string>QSHotKeyTrigger</string>
</dict>

Before:
before add

After:
after add

Trigger pane showing Command Shift Q

Alternatively you can add a shortcut to Command + Shift + W, open the configuration file and search for the new command created and changed the keyCode field to 12.

Using wget to resume downloads that require cookie credentials

I’ve been having an issue recently (not sure if it’s the Mac) but it has indeed become very apparent to me, that I would download things (applications / videos / ISOs / etc) in Firefox and the download would ‘finish’. It shows it as completed in the downloads window but in fact it is a truncated download. As seen in the screenshots below the SDK finished at 1.6GB when in fact the actual full file size is 2.1GB.

Misleading completed Firefox download

I initially tried using wget to download the file but got a ERROR 403: Forbidden error probably due to some cookie credentials. So not wanting to waste my 1.6GB download that took about 12 hours I resorted to looking into getting wget to work with cookies and was happy to see that the folks who created wget indeed had an option to load the cookies file. Sweet! Very sweet indeed. So next task was to get the cookies out of Firefox which was a bit more of an issue.

Export Cookies was known to work but it was not compatible with Firefox 3.5 so I had to download the Nightly Tester Tools to allow Export Cookies to work. Export the cookies (“Tools > Export cookies”) and in Terminal/Command line and enter the wget command to resume the download as follows:
wget --server-response --continue --load-cookies cookies.txt http://location/of/download

Download wget (Windows | Mac)

Acer Aspire One eRecovery Issues: “The system is not fully installed. Please run setup again”

Having a problem restoring from a recovery partition?
Getting an error saying “The system is not fully installed. Please run setup again.” after the recovery partition copies the files to a partition and reboots?
Answer:
Make sure the recovery partition is set to hidden.
Use a Gnome Partition Editor or a Linux boot CD to do so.
Continue reading Acer Aspire One eRecovery Issues: “The system is not fully installed. Please run setup again”

Using your phone as a Bluetooth modem in Linux

Software Package Requirements:

  • wvdial
  • bluez
  • bluetooth

Install packages for Ubutun/Debian systems
sudo apt-get install wvdial bluez bluetooth

Steps to get your Bluetooth modem working

  1. Turn phone’s Bluetooth connection and set to discoverable mode
  2. Scan for your device:
    sudo hcitool scan
    Result:
    Scanning ...
    00:11:22:33:44:55 MyPhone
  3. Search device to see if supports Dial-Up Networking (DUN) for use as a modem. Look out for RFCOMM channel
    sdptool search --bdaddr 00:11:22:33:44:55 DUN
    Result:
    Searching for DUN on 00:11:22:33:44:55 ...
    Service Name: Dial-Up Networking
    Service RecHandle: 0x1000f
    Service Class ID List:
    "Dialup Networking" (0x1103)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 4
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Dialup Networking" (0x1103)
    Version: 0x0100
  4. Bind the modem on the RFCOMM Channel to a device
    sudo rfcomm bind /dev/rfcomm0 00:11:22:33:44:55 4
  5. Dial and connect (ensure your wvdial configuration is correct, for sample see below)
    sudo wvdial dstbt
    Result:
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: AT+CGDCONT=,,"dst.internet"
    AT+CGDCONT=,,"dst.internet"
    OK
    --> Modem initialized.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    ATDT*99#
    CONNECT
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
    --> Carrier detected. Waiting for prompt.
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
    --> PPP negotiation detected.
    --> Starting pppd at Wed Aug 19 23:45:04 2009
    --> Pid of pppd: 17558
    --> Using interface ppp0
    --> local IP address 10.84.2.128
    --> remote IP address 10.6.6.6
    --> primary DNS address 202.152.64.27
    --> secondary DNS address 202.152.64.28
  6. You’re connected! Surf and enjoy the Internet!

Sample wvdial configuration file

  • Stored in ~/.wvdialrc
  • Change “dst.internet” to your provider’s APN

[Dialer dstbt]

Modem = /dev/rfcomm0 # modem device
Baud = 115200 # 921600 / 460800 / 115200 / 57600

Init = ATZ # far card with no PIN
# Init = ATZ+CPIN=”0000″ # for card with PIN, replace 0000 with your PIN

# If you know your ISP’s APN, specify it instead of YOUR_ISP_APN below.
# There’s also an APN table at https://wiki.ubuntu.com/NetworkManager/Hardware/3G .
# use one of the following 3 options. change to your providers APN
Init2 = AT+CGDCONT=,,”dst.internet”
#Init2 = AT+CGDCONT=1,”IP”,”YOUR_ISP_APN”
#Init2 = AT+CGDCONT=1,”IP”

# Most services/devices dial with *99# . A few seem to require *99***1#
Phone = *99#

# These often suffice, but your ISP might require different details. They’re
# often dummy details used for all users on the ISP, frequently the ISP’s
# name, but some ISP’s do require you to use a real username and password.
# any details possible
Username = internet
Password = internet

PS: bmobile customers change APN to “bmobilewap”

Deleting Windows Services

In the process of installing MySQL I ran into a few errors leaving me with an added service that didn’t work. So now had to remove it:

In a command prompt (Start > Run > type "cmd", enter), type the following:

sc delete serviceName

Notes:

  • Ensure you use the Service Name, not the Display Name, i.e. in the

    Service Name vs Display Name
  • Ensure the service is stopped
    • Go to Service listing. This can be done in the following ways:
    • Start > Run > type "services.msc", enter

      or
    • Right click "My Computer" (XP) or "Computer" (Vista onwards)

      > Manage > Services and Applications (in left pane) > Services
  • Find the service and stop it
  • This was done on Windows 7 RC, thus item names may differ in XP / Vista