Sunday, January 30, 2011

Some Googling tricks

1. Go to www.google.com
Type "intitle:indes of" abc

abc can be replaced by anthing like: hack pdf OR abobe OR akon mp3

Now, browse the links in search result page and download if you find something interesting.


2. Go to www.google.com
Type inurl:"viewerframe?mode=refresh"


3. Go to www.google.com
Type intext:"UAA(MSB)" Lexmark-ext.pdf


4. Type elgoog

5. inurl:/view/index.shtml


spy the database sp changes

SELECT name, create_date, modify_date
FROM sys.objects

WHERE type = 'P'

order by modify_date desc

Tuesday, January 18, 2011

Find out, why the net is so slow?

  • Type cmd in your Windows Run box.
  • Type "netstat -b 5 > activity.txt" and press enter.
  • After say 2 minutes, press Ctrl+C.
  • Type "activity.txt" on the command line to open the log file in notepad

Sunday, November 28, 2010

Why WCF RIA Services?

1. To provide best user experience the client application should be aware of business logic at server-side, WCF RIA service solves this problem by providing framework components, tools, and services that make the server-side application logic available to the RIA client without requiring you to manually duplicate the business layer programming logic at presentation layer.
2. RIA Client application always gets latest business rules as it get compiled.
3. RIA Services adds tools to Visual Studio that enable linking Client project(Silverlight) and Server project(Asp.net) in a single solution and generating code for the Client project from the middle-tier code.
4. The framework components support prescriptive patterns for writing application logic so that it can be reused on the presentation tier.
5. Domain Service - In RIA Services, you expose data from the Server project to Client project by adding domain services. Here, each domain service gets implemented as WCF Service.

Monday, August 30, 2010

Silverlight Animation

Silverlight uses timeline concept for animation (not frame based, used by Flash). There is a StoryBoard at the heart of every animation here. StoryBoard can contain one or more Key Frame elements.

There are 4 type of Key Frames here:
1. Linear : Moves from the starting state to the end state in a smooth, linear fashion.
2. Discrete : Jumps from starting state to end state instantaneously.
3. Spline : Moves from the starting state to the end state varying speed based on mathematically defined curve.
4. Easing : A more evolved version of Spline, moves from the starting state to the end state based on a easing funcation.

Wednesday, April 14, 2010

Outlook Addin Setup Project

Prob:  Manifest registry key in Addins changing from
[PRODUCTDIR]MyAddin.vsto|vstolocal
to
[PRODUCTDIR]MyAddin.manifest

Sol: Install Visual Studio 2008 SP1

Friday, January 8, 2010

Report Viewer not working in dev server (the + sign for grouping is not coming, rather a red X image coming)

Prob. - The report locally works fine, but when moved to the web server and try to pull it up it throws javascript errors.

Error msg : 'RSClientController' is undefined .....
'ClientControllerReportViewer1' is null or is not an object.

What's odd is - it appears the report actually runs despite the javascript errors, but the resulting report has the red "X"s on the image tags in the control itself and the report returns no data.

Soln :

1. The .axd extension in the application config in IIS should set to use framework  2.0 instead of 1.1

2. If the 1st soln is not working,
Click on the application virtual directory in IIS7 and click on the 'Handler Mappings' section. Then 'Add Managed Handler'
Request path: Reserved.ReportViewerWebControl.axd
Type: Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Name: Reserved.ReportViewerWebControl.axd

Once this was created, it worked fine in the Integraded mode AppPool.

3. Just add the following line to my web.config (it should get added automatically, but if not then ..)




 
4. If still not working !
- then, I have to see the code, post me that.