Saturday, October 27, 2012

Rawan Dahan

Just for fun (working best in chrome and safari, works but is slow in IE and Firefox)

Missiles Fired: 0
Click bombs to drop
*
*
*
*
*
*
*
*
*
*
Rawan
ravan's head' ravan's head' ravan's head' ravan's head' ravan's head'

A simple game made just for fun.

How to Play:
  • Click missiles to fire them, time them such that they fall on Rawan's main head
  • You get 10 missiles by default and you have to strike rawan's head 5 times to win
  • Click "Reload drones" button to reset missiles, this will not restore number of rawan's killed
  • Click "Reset Game" button to reset game to initial values
  • Try this on Chrome or safari, as game speed is slow on Firefox and IE.
Images used here are not of mine.
Rawan's image can be found here.
Drone's image can be found here.

Saturday, October 20, 2012

windows service couldn’t be started

A few days back while working on a windows service, I used below line for debugging purpose:

System.Diagnostics.Debugger.Launch();

This line worked fine and I got my service debugged. Then I tried to deploy service on our server machine. I used below two commands for installing my service

InstallUtil.exe -i 
NET START

InstallUtil worked fine but when I fired NET START, it failed saying, service couldn’t be started. I didn’t have any proper explanation of this but by hit and trial I found that line I used for diagnosing (System.Diagnostics.Debugger.Launch()) was creating problem somehow, I just commented that line and everything just worked fine.

If you have some windows service that is having some trouble in starting, then try to check this case.

Thanks.

Disable hyperlinks/javascript when exporting SSRS report

"Disable hyperlinks/javascript when exporting SSRS report", this is a very common question and I was expecting a straight forward answer from google like enabling/disabling a property at report or server level. But I was unable to find any such thing and hence I took below turnaround to solve my problem.

Problem:
In my case I had a column where some names were coming and they were linked to some external URL, this was fine and as required when rendered through report-viewer control on my web-application's page but when I export this to report PDF/Excel I didn't want them as then these links become non-functional and show error message like invalid URL.

Solution:
I duplicated my column containing link, and removed action from newly created column. Now I set their visibility with below expressions.

Visibilty of column with action link associated:
=IIF(Globals!RenderFormat.Name = "PDF" Or Globals!RenderFormat.Name = "EXCEL", true, false) 

Visibilty of column without action link associated:
=IIF(Globals!RenderFormat.Name = "PDF" Or Globals!RenderFormat.Name = "EXCEL", false, true)

Please consider: This might not work for older versions of SSRS

Hope this will save a few minutes of someone. If you have some better approach for this issue, please add it in comments and I'll update that in this post with due credits. Thanks.

About Me

My photo
Delhi, India
Fun, music, travel and nature loving, always smiling, computer addict!!