Thursday, May 16, 2013
Running LINQPad as different user
Often you will need to impersonate LINQPad to perform some scripts in the context of other user (permissions etc).
LINQPad has no function of its own so what I do is use this simple command in a bat file:
runas /profile /user:domain\spAppPool "c:\Tools\LinqPad\2.0\LINQPad.exe"
Optionally you can right click on LINQPad exe while holding shift to "Run as different user..."
Friday, September 5, 2008
Google Chrome on Lenovo T61
3 of us here installed Google Chrome on T61 laptops and got this:
Ups. It works on my home computer.
Sunday, September 9, 2007
Zoom in / Zoom out code in Visual Studio
When I browse code looking for something or when I take a look at a new class I want to see as much code as I can. But then when I enter the “coding” mode I want to focus on code that I write and I want to have bigger font to make it easier to read.
To achieve this you could change the font size in options, well this is what you have to do. But doing it manually is not real.
The simplest solution is to just make font bigger/smaller using a shortcut key. We could write macro for that… wait, hold on… what I see, Visual Studio already has macro for making source code editor font bigger/smaller, sweet– high five!
So the only thing we have to do is just bind shortcut keys to those macros.
I use CTRL+A for making the font bigger and CTRL+Z for making it smaller (just like changing gears in Need For Speed, well just without CTRL key).
So in results we have something like this:
The first time the macro is executed it runs slowly, but next calls are fast.
Saturday, August 11, 2007
Not implemented 0x80004001 while capturing entire screen in Windows Media Encoder 9
“1 error(s) occurred during this session. Click Error Log for details.“
“Not implemented 0x80004001“


errors while Capture screen, Entire screen using Windows Media Encoder 9 that probably means that you are in multiple monitor mode.
Switch to one monitor mode and it should work.
Wednesday, February 1, 2006
Google toolbar 4 beta
http://www.google.com/tools/toolbar/T4/index.html
Just found those cool things:
- When you type text toolbar gives you suggestions and checks for typos
- When you type text which is longer that a toolbar's textbox, it expands! that what I was missing. Now you can type long sentences and see it all.
Friday, July 1, 2005
Witches watch Swatch watches - learn your english
Try to say it aloud :)
Three witches watch three Swatch watches.
Which witch watch which Swatch watch?
And super hard version:
Three switched witches watch three Swatch watch switches.
Which switched witch watch which Swatch watch switch?
And now the picture :-))
Sunday, May 15, 2005
Reflector for .NET - Recover source code from EXE, DLL file
I said - "Relax, did you compile code after that?", "no, I have a lot of errors now" – he replied.
When I heard this I thought "that's good, maybe there is no problem".
I have downloaded the Reflector for .NET
Then I opened a DLL file from his computer, turned on disassembler from Tools menu and bam - we recovered last compiled source code. That was it, the whole day's work was saved.
But this is not the only way you can use the Reflector. You can use it to see how .NET's classes work, for example DataSet or XmlReader. And with better understanding you can use them more efficiently.
Oh, and one more cool thing about Reflector. You can choose language to disassemble to. It can be C#, Visual Basic, Delphi or Intermediate Language.
Saturday, April 16, 2005
What is this red flashing dot in Service Manager tray icon?
Well, the dot flashes when SQL Server Service Manager polls the Server to find its state to display.
You can set the interval in options menu. It does not hit the server performance.
Wednesday, March 30, 2005
“Microsoft drops C#”
It’s pretty old news but it’s fun to read :-) what do you think about it?
Check it out here
