Author Archives: walter

clipboard not working in windows 7 ( internal error ) service missing

Published by:

As of Windows 7 (Vista in fact), The Clipboard service is missing. Apparently nobody knows (or cares) where it went, cause you can search for answers on-line till you grow a beard…

So here is what I did.

THE PROBLEM: This time it started with notepad++ where I did “Plugins –> NppExport –> Copy all formats to clipboard” in an empty document. That threw me a “runPluginCommand Exception” and as a result broke the clipboard functions.

Copy paste stopped working. Copy in Adobe threw a “there was an error while copying to the Clibboard. An internal error occured.” and Office complained that “item was not send to clipboard” when copy.

THE SOLUTION: Now, to find out what’s going on, I found a little tool, called GetOpenClipboardWindow , which can be downloaded here: windowsxp.mvps.org/temp/GetOpenClipboardWindow.zip

When you run this program, it’ll try to open and close the clipboard. When there is an error, it’ll tell you which error.
In my case:


So it seems that process 5080 is blocking the clipboard.
To see what process has ID 5080 fire up msinfo32 ( press Windows-key + R –> then type msinfo32 ). This will launche an extended information applet.
Choose “Software enviroment” -> “Running Tasks”:

Once there , click on the column top “Process ID” to sort the list on process id’s.
In this example process 5080 is notepad++ who is the app blocking clipboard operations:

So.. this was easy, just killed (exit) notepad++ and clipboard worked again.

In your case, you’ll find other causes and issues. But because microsoft robbed us from just restarting the service, this is the only thing I could come up with. If I find a way to restart the clipboard, i’ll update this post.

If YOU happend to know how to restart the clipboard in windows 7, please put your solution in the comment section below. 🙂

Installing Android x86 4.0 in Vmware Player

Published by:

This is what I did to get Android 4.0 (x86 version) to work in my Vmware Player.

First, download and install Vmware Player.
Then, download the installation image (cd-image) of Android from Google: http://code.google.com/p/android-x86/downloads/list (I tried android-x86-4.0-RC1-eeepc.iso in this example).

Creat a new virtual machine to run the installation:



Point the “Installed disc image” to the android-x86-4.0-RC1-eeepc.iso file you downloaded:



Choose a install directory, where you’ll keep the virtual machine folder.



Make a small drive. 1 gig is enough.



Customize hardware:

and increase the memory to 512 megabyte. (or more)



Select INSTALL. You can also run the live CD. But I prefer to install the OS. If you choose live cd, you don’t need to do anything after this step, except enjoy your android.



Then: Create/Modify partitions <-- Press enter. Choose [ New ] <-- Press enter. then [ Primary ] <-- Press enter. Size (in MB): 1069.29 <-- Press enter. Then: Choose [ Bootable ] <-- Press enter. Choose [ Write ] <-- Press enter. type yes <-- Press enter.

Now the disc is being prepared:



Choose [ Quit ] <-- Press enter.

Now select sda as the install partition:



Choose a file-system. I tried ext2 and ext3. Take whatever you like.


Install the GRUB bootloader.



File-system writable? If you want a writable file-system, choose yes.


You are done. Choose Run Android-x86.






Note: This version has NO ethernet support. You can find a version that supports sound and ethernet here: http://www.buildroid.org/Download/android-x86-vm-20120307.iso.gz (thanks to source: http://www.android-dev.ro/2012/03/17/android-x86-4-0-rc1-for-virtualbox-is-released/ )


More info can be found on http://www.android-x86.org/

Windows 7 : Thumbnails folder.jpg not showing (on networked shared drive)

Published by:

I had this annoying problem where only some of the folders in windows (7) would show the thumbnail, which was present as a “folder.jpg” file inside it. Most of the folders would just show the default folder-icon. Nothing I did would change this, except when I would navigate into the folder and back, the thumbnail would suddenly appear. This would typically happen on mapped network drives or network shares.

I could narrow the problem down to the way windows uses cashing of thumbnails. As of windows vista, thumbnails are stored in cashing files that are stored in the users application data folder: C:\Users\**username**\AppData\Local\Microsoft\Windows\Explorer . These files are protected however, and can’t be deleted. Cleaning the thumbnails can be done by the “disc cleanup” tool, located in Accesoires -> System Tools. Whenever I cleaned like that, all thumbnails would disappear and leave a blank spot. Not even the default folder icon would return. I could, however, remedy this by killing and restarting explorer in the task manager. (or simply by rebooting). But the missing thumbnails would still be missing!!

Solution: My solution my be harsh, but effective: Disable the cash completely.
To go around disabling the cache, you need to use the “Local Group Policy Editor”. Run it by pressing the windows key + R and then typing “gpedit.msc” after the Open: field. Navigate to “User Configuration” -> “Administrative Templates” -> “Windows Components” -> “Windows Explorer”

Find “Turn off caching of thumbnail pictured” and double click it. Choose “Enabled” from the three radio buttons and confirm with OK.

Now restart explorer (by killing it in task manager. Restarting explorer using the “New Task…” button in Applications where you type “Explorer”). OR simply reboot windows.

Now all thumbnails will be loaded every time you open the folder. This may be a bit slow, but at least you’ll have the thumbnails.

Converting AVI video for Archos Vision 43 MP4 player

Published by:

Some tips on how to successfully convert any video-file to AVI compatible with the Archos Vision 43.

In short:

    The Archos Vision 43 …

  • … plays AVI MPEG-4 (divx/xvid) ONLY
  • … can’t play B-frames
  • … can’t play mp4 or mkv
  • … can’t play h.264

Tools to use converting:
EASY: PocketDivXEncoder
NOT SO EASY: Mencoder

You can go about this the easy way by using “PocketDivxEncoder”, but it’s rather limited when it comes to making custom configurations. It works however and if that makes you happy, why apply for a headache doing it the hard way. But for those who like to experiment: read on.

Mencoder is “sometimes” part of the Mplayer suite (but is hard to come-by). You’ll find it at Gianluigi Tiesi’s page. Current build is r34118, and you may choose a version for AMD (athlon), Intel Pentium3 (p3), Intel Pentium 4 or better (p4) or Generic 486 (rtm). I chose rtm. Extract the download in a folder on your computer. There is no installation, because it’s a command-line tool. To make it work, I use it in BATCH files.

The package consists of two main EXE files, mencoder and mplayer. A detailed manual with all the command-line options can be found in mplayer.html, also included in the package.

The simplest way to use mencoder is like this:

This will encode input-file into a MPEG4 file with a variable video bitrate of 750kb/s and a constant MP3 audio bitrate of 128kb/s. The container is AVI. The name is output-file.

For the Archos, we want to add some extra options:

This will encode a MPEG4 AVI, allowing 4 motion vectors per macroblock (slightly better quality), shape adaptive (fast) diamond with size 3 (fast encoding) and a variable bitrate of 750kb/s. We also scale/zoom the video so it fits the Archos 480×272 screen nicely. Aspect ratio is preserved by omitting the height.

You can find many more settings to tweak with by reading the mplayer.html. If you find any improvements, please post them in the comments. I’ll gladly test them out.

Now.. let’s automate.

I have a folder on my PC called “to convert”, and I’ve made a sub-folder called mplayer, where the above downloaded package is extracted. The structure looks as such:

Inside the “to convert” folder, I’ve some batch files: doall_mpg.bat and doone.bat.

doall_mpg.bat

doone.bat

What is does is simple. When I put some (*not more than 4) mpeg files (.mpg) in the “to convert” folder, together with the batch files AND I then run the doall_mpg.bat batch-file, the PC starts encoding ALL the mpeg files at once. (*) I use “start” to launch multiple jobs at once, because mencoder uses only ONE thread (core). To fully use the potential of a quad-core, you may launch at least 4 jobs in parallel without suffering a decrease in encoding speed. Mind that mencoder CAN use multiple threads, but the speed-increase is not that spectacular. AND I noticed that using threads=2 (or more) produced a lot of artifacts when playing the encoded file back on the Archos, thus we can’t use that option.

To convert other files, like AVI’s, MP4’s , etc.. just change the (*.mpg) to (*.avi),(*.mp4),..respectively. ( I know this isn’t ideal, but I’m to lazy to change it now). 🙂 If you know about batch processing and for, you’ll know what to do when you want to change it. 😉

A FEW NOTES:

  • Depending on how fast and how big the SD cards is you’re using, video playback from that SD card may be choppy and out of sync. I found that the 16 Gbyte Sandisk SD-HC did not work for me. For smooth video playback, copy the video’s to the internal memory.
  • You can use -vf crop=700:396,scale=480:272 to crop letterbox video’s. You may have to tweak the. All is explained in mplayer.html

Have fun.

Bad Behavior has blocked 719 access attempts in the last 7 days.