Wednesday, July 16, 2008

Clipboard problems

Today I when I copied some text,
I couldn't paste it anywhere.

Usually I just use the shortcut keys,
but to test it now, I used the contextmenus.
Copy (or cut) appeared just fine, but when I wanted to paste,
the item was grayed out in the menu.

Looking for the clipboard viewer,
I located it in c:\windows\system32 folder, named clipbrd.exe.

As I started it, it gave me the following error :
The ClipBook service is unavailable or is not started.
Contact your system administrator to have this service started.


All fine and well, but what a weird error, looking at the clipbook service description I found :
Enables ClipBook Viewer to store information and share it with remote computers.


Not exactly what I needed, as remote computers or the clipbook viewer were not my target.

So I just clicked OK,
and tested the viewer,
and 'lo and behold my clipboard functions were working again and I could copy and paste as I wanted.

Monday, June 16, 2008

Opera 9.5 Released

Opera has released it's new desktop version.

Opera 9.5 beautifully engineered

New features contain :

- Faster speed : up to 2 times as fast as the already fast 9.2x builds
- Opera Link : Sync your bookmarks between your desktop(s), opera mini and more
- Fraud protection : According to the company, it is "the first publicly-available browser to protect you from malicious software on the Web." Opera's protection is assisted by Haute Secure, Netcraft, and PhishTank.
- A brand new skin

And of course it is still free. Just click the image above to go to the download site.

After more than a year of testing the alpha / beta / RC builds,
I like the new version, it is much faster,
my only gripes with the new version were :
- When I installed it changed something so that I could no longer just type my search query in the address bar (luckily there is a quick fix : tools, preferences, search tab, edit google properties and check the use as default search provider)
- The close buttons are small (not really a problem as I use mouse gestures)
- The add tab button is moved from the left to the right of the tab bar (but that was also a small change)

So after a small test weekend I like the new version and have not encountered any bug.

Happy surfing!

Edit : 9.51 was released and it fixes a good number of problems users were having with 9.50, just click the banner and you will get the new version.

Monday, June 2, 2008

Newest addition to the family

Yesterday we decided to add another member to the family,
abut the largest we have to day :)

Our newest member is Hector, the Shire horse.
(Yes they are large, but I like large horses and I like their character, just don't put your toes under the horse :))

Hector is one year old, but is already a decent size
(about 1m60, or in hands : 15.3 hands, or for you americans : 5.25 feet)



More pictures can be found : Here

Thursday, May 15, 2008

Visual studio 2005 toolbox icons messed up.

When I started VS 2005 today I noticed all my icons where messed up :



This makes finding the right control a little harder.

The solution is quite simple : Right click the toolbox and choose reset toolbox,
and presto , icons back.  Unfortunatly this also removes any custom items and tabs in the toolbox.

I also read that deleting all tlb files in  C:\Documents and Settings\_username_\Local Settings\Application Data\Microsoft\VisualStudio\8.0 can work, but did not try it myself.
I don't know what other things might be removed when you delete these files, so be carefull!

 

Wednesday, May 7, 2008

Problem adding files to deployment project

For some time now I have had problems adding files to the file system editor portion of a deployment project.

When I right clicked, add file, browse for a file, any file (dll / jpg / xml / txt / ...)
It would not add this file to the project,

Luckily there are workarounds for this issue (no definite fix found yet) :
- the simplest is just closing and reopening visual studio
- Rebooting your pc may also work
- Adding a shortcut to the file (which will add the file also), and deleting the shortcut (I have not tried this yet myself)
- Resetting your visual studio settings can also help (also haven't tried this myself)
- Some even say that reinstalling fixes this problem (which will ofcourse open & close visual studio and reset the settings ;-) )

Monday, May 5, 2008

Getting the temp folder in c#

Another reminder to myself :

To get the temp path in c#, the most used option I have seen is :

string tempPath = Environment.GetEnvironmentVariable("Temp");

which works ok most of the time, but personally I don't like to pass string variables around,
so I went looking for something as :
string tempPath = Environment.GetFolderPath(SpecialFolder.Temp);
which ofcourse does not exist.

But as with google as a friend, I found the best way (for me) :

String tempPath = Path.GetTempPath();

(always in the last place you look of course ;-) )

Using double quotes in c#

As a 'convert' (rather forced) from VB.NET to C# I always miss how to use the double quotes in a string, so here just as a reminder to myself :
use the @ symbol before the string or doubling the quotes won't help:

string myString = @"SomeText which needs a ""quote";

ofcourse, at the beginning of the string or the end of the string just triple the quotes :
string myString = @"SomeText which needs some ""quotes""";

But the most important is : use the @