Oct 24th, 2011 by ocvirek.com
If you need a hyperlink (e.g. bookmark) to open your IMO.IM directly in a pop-out window, create a new bookmark and instead of the URL type following javascript (tested in Google Chrome):
javascript:window.open(”https://imo.im/?thinui”, “mywindow”,”location=0,status=0,scrollbars=1, width=264,height=700″);
Posted in Tips'n'Tricks, News
No Comments »
Oct 17th, 2011 by ocvirek.com
OK, so you’re hosting your ASP.NET website on DotNetPanel and you’re getting following error: “DotNetPanel IIS Modules Error AuthName directive not found” when trying to display CKEditor instance. Resolution to this problem is fairly simple. Connect to your web site with FTP or DotNetPanel File Manager, go to CKEditor folder and delete any .htaccess files found. After that, reload your page and CKEditor should work as expected. Hope this helps!!
Posted in ASP.NET, Tips'n'Tricks
1 Comment »
Jan 29th, 2011 by ocvirek.com
I’ve just lost a more than a hour figuring out what’s wrong with my SQL Server Management Studio 2008 R2 Express on Windows 7 64-bit Ultimate. I just couldn’t start debugging process and debug my stored procedrure. Each time I started debugging I was hit by a following error message.Funny thing is that the message was self exlpanatory but I didn’t understand it correcty so I ended up messing around with the Windows Firewall even if I knew that everything should work locally without the firewall since the SQL Server and Management Studio were on the same machine. I’ve also tried with “Run as administratore” etc. Finally I figured it out. All I had to do was to connect to my local server with “COMPUTERNAME\SQLEXPRESS” instead of “.\SQLEXPRESS“ in the first place, and, voila, debbuging worked as expected.
Posted in Windows 7, SQL Server, Visual Studio, Tips'n'Tricks
2 Comments »
Jun 15th, 2010 by ocvirek.com
When trying to build your ASP.NET project targeting .NET Framework 3.5, you receive following error: The report definition is not valid. Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded. After some investigation I decided to create new empty project from the scratch and then compare two web.config files to find the differences. To make a long story short, make sure that you web.config contains following settings and you should be good to go!
…
<compilation debug=”true”>
<assemblies>
….
<add assembly=”Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A” />
<add assembly=”Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A” />
….
</assemblies>
<buildProviders>
<add extension=”.rdlc” type=”Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />
</buildProviders>
</compilation>
…
<httpHandlers>
…
<add path=”Reserved.ReportViewerWebControl.axd” verb=”*” type=”Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
validate=”false” />
…
</httpHandlers>
…
<system.webServer>
…
<handlers>
…
<add name=”ReportViewerWebControlHandler” preCondition=”integratedMode” verb=”*” path=”Reserved.ReportViewerWebControl.axd” type=”Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />
…
</handlers>
</system.webServer>
Posted in ASP.NET, Visual Studio, Tips'n'Tricks
1 Comment »
Jun 5th, 2010 by ocvirek.com
- Click the Tools menu.
- Select Options.
- Click the Under the Hood tab.
- Click Change font and language settings .
- Click the Languages tab.
- Select the “Check spelling” checkbox if you want Google Chrome to automatically check your spelling.
- Select the language you want to use in the “Spell-checker language” menu.
- Click OK to save your settings.
More info: http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=95604
Posted in Tips'n'Tricks, News
No Comments »
Apr 28th, 2010 by ocvirek.com
If you expirience that Google Chrome works very slowly on localhost while debugging in Visual Studio, all you have to do is to alter the C:\Windows\System32\drivers\etc\hosts file and add a record 127.0.0.1 localhost. That will instruct Google Chrome not to use IPV6 lookup. This is also applicable to FireFox browser as well. For more details please take a look at http://jhovgaard.net/posts/google-chrome-slow-on-localhost.
Posted in ASP.NET, Visual Studio, Tips'n'Tricks
No Comments »
Nov 28th, 2009 by ocvirek.com
I’m working on Windows Forms C# app and I come across this error when starting up application and trying to read some information from app.config file. After a lot o research I came a conclusion that this error is caused by generating a malformed config file (according to schema in c:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd) by putting configSections after appSettings. Once I put the configSections element back to the top of the config file, everything worked as expected. Thanks to Dan for pointing this out on his blog: http://www.distribucon.com/blog/ConfigurationSystemFailedToInitialize.aspx.
Posted in C#, Visual Studio, Tips'n'Tricks
No Comments »
Nov 1st, 2009 by ocvirek.com
When you open a photo in Windows Photo Gallery, it looks too yellowish (or too redish or too greenihs or too blueish), but when you open it in another picture viewer such as IrfanView or XnView, it looks quite normal and all colors are well balanced. It’s especially noticable when opening scanned documents and the paper doesn’t look white. The thing is that Windows Color Management Profile affects how photos look when viewed in Windows Photo Gallery and probably there is some specific profile associated with your current display (monitor). In order to fix this you need to do this:
1. Open Control Panel and choose Personalization
2. Choose Display Settings
3. Click the button Advanced Settings
4. Go to tab Color Management
5. Click the button Color Management
6. In Device drop down listr choose Display
7. Make sure that checkbox Use my settings for this device is checked
8. Choose and remove your currently associated profile by clicking on the Remove button
9. Click the Add button and add sRGB IEC61966-2.1 Color Space Profile
10. Apply the changes and restart your computer.
Now photos and scans should look fine.

Posted in Windows Vista, Tips'n'Tricks
No Comments »
Oct 28th, 2009 by ocvirek.com

” Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own monitor(s).
Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. Learn more about how it works. Synergy is open source and released under the GNU Public License (GPL). ”. Introduction from official SourceForge site http://synergy2.sourceforge.net .
Tutorial:
BMHO, Synergy is not new kid on the block, but it’s still a great open source tool and I’ve been using it for few months now. Since I had to upgrade my laptop to Windows 7, I’ve wrote this little tutorial to make sure that I wouldn’t forget something 
I will assume that you have a desktop on the right side (which will play a server role) and a laptop computer on the left side (which will play a client role) and that they are both connected to the same LAN.
So, let’s do it. Here’s quick tutorial with few simple steps:
1. Install Synergy on Server and Client computer (e.g. deskop and laptop).
2. Configure Client - open Synergy and choose option Use Another Computer’s Shared Keyboard and Mouse (client), and enter other computer’s Host name (Server’s Network name e.g. computer1.domain.net). Now click Advanced and give your client computer apropriate screen name (e.g. laptop)
3. Configure Server - open Synergy and choose option Share this computer’s keyboard and mouse (server). Now click Advanced and give your server a screen name (e.g. master).
4. Now comes the tricky part. Click the Screens & Links Configure button on the Server. Under Screens Add both laptop and master screens and leave all the options in their default values. Under Links add two links:
a) “master is right of laptop” - 0 to 100% of the right of laptop goes to 0 to 100% of master.
b) “laptop is left of master” - 0 to 100% of the left of master goes to 0 to 100% of laptop.
5. Configuration is finsihed. Now click the Start button on the server and then click it on the client computer. You should be able to use mouse and keyboard on both computers just like when working on extended desktop. Enjoy!
Posted in Networking, Tips'n'Tricks, Open Source, Articles, Software
1 Comment »
Oct 25th, 2009 by ocvirek.com
When trying to download Microsoft Security Essentials you got this message: Not available in your country or region ? Don’t worry, just point your browser to this address and you’ll get your download: http://www.microsoft.com/security_essentials/?mkt=en-us. I’ve been using AVG, Avast, Antivir and others for ages, but since there was lot of positive feedback on the net I’ve decided to give this all round Microsoft antivirus/antispyware/antimalware a chance. So far I like it. Small memory footprint, barely noticable. According to my expirience with this piece of software, I would recommend it as an healthy alternative to other free antivirus/antispyware combos. And yes, MSE replaces Windows Defender in Windows Vista and Windows 7.
Posted in Windows Vista, Tips'n'Tricks, Software
1 Comment »