The techie in me RSS 2.0
 Sunday, April 06, 2008

I saw this very useful page for comparison of major features between popular version of Windows mobile.

Its interesting to see that there are not many featues added in 6.1, rather thats why its 6.1 not 7.0 :).

One intresting and much required feature that I noticed in 6.1 is auto pairing with bluetooth headsets. Who ever have had exprience with pairing their headset each time once it goes out of range would appreciate this feature. And this page is very nice to see the quick list of features that you will be intrested in, especially if you already familier with Windows mobile ver 6.0 or 5.0

I am waiting my finger's crossed for my T mobile Vario II update, which should be available here soon

 

-Rujith

Sunday, April 06, 2008 12:33:26 PM (GMT Standard Time, UTC+00:00)  #    Comments [1] -
Windows Mobile
 Wednesday, March 12, 2008

Yes, can you imagine writing code on a white plain board ? Today it was required by me to write C# code on white board using marker :(. It was very tough for me. Lot of syntax errors, wrong methods or properties and on top of all my hand writing. I am glad that they were able to read it.

I started imagining about coding without visual studio. I remember doing HTML  & Java coding using notepad.exe, it was fun isn't it. But now the world has changed lot of new tools to reduce your repetitive task. C'mon you don't want to spend time on remembering all the methods(and their overloads) and properties for String class. Instead of that you can dedicate your thinking towards creating  better design or better code.

Initially it used to be editors, Visual studio is a very good Integrated Development Environment(IDE) , the intellisense feature is an amazing feature, in VS 2008 you have intellisence for ECMA script(Java Script) also. You can always create .NET assemblies without using Visual studio, but can you imagine how much time it is going to take. You need Rapid Development not to take 1 man day to write a code to get some data from database. 

Then you have Application blocks (Enterprise Library) for code reusability. Then you have persistence framework like NHibernate etc for object persistence - for code generation

Now you have software factories for literally creating the entire application :).

See the evolution of coding, from writing code in notepad to generating code using tools(Guidance automation and SW factories), will tools take over my job in future ????? oh my god

 

Rujith

Wednesday, March 12, 2008 5:34:57 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -

 Tuesday, March 11, 2008

I was trying to configure live writer to post to my blog which is set up using DasBlog. Well as all Microsoft products it is very easy to configure, select Blog provider as 'other', give your blog url and user name and password which you use to blog, and click next that's all. All settings will be configured automatically.

Well, you might be wondering what is there to blog about this, there is one important setting in your blog which if you don't set you will get "service disabled Error" while trying to configure the LiveWriter for DasBlog.

In your blog configuration(at you DasBlog) you have to enable the "Blogger/MovableType API", else you will get the Service disabled error in live writer.

Hope it will be useful for at least some one.:)

-Rujith

Tuesday, March 11, 2008 7:02:07 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -

 Friday, March 07, 2008

If you are working with Crystal Report and not handling the Report closing properly you must have faced this error.

"The maximum report processing jobs limit configured by your system administrator has been reached."

The error message is self describing; well now the question is how to resolve this issue. The quick answer is making sure that you end the crystal job successfully, i.e. close the report once the user has closed the report. Yes, you have to do this manually.

 

I found multiple methods of doing this from groups, putting down the best methods I found in order.

 

1. Close the report while unloading the report viewer page.

VB.NET code below

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
    If Not objRpt Is Nothing Then
        objRpt.Close()
        objRpt.Dispose()
    End If
End Sub

This is the best method as far as I can think.

2. The lazy option – change registry key to accept more or infinite numbers

regedit - > navigate to

HKEY_LOCAL_MACHINE/SOftware/Crystal Decisions/Report Application Server/InprocServer/ReportDocument

Change the value of the field MaxNumOfRecords to -1(For Unlimited No. of records)

 

Your sys admin may sue you for changing this J

 

3. I like writing more code, give me an option – ok now for you, the option is create a factory class and when creating class check if the max has reached and clear the old ones. (Not a good idea isn’t it?)

public class ReportFactory
{
    protected static Queue rptQueue = new Queue();

    protected static ReportClass CreateReport(Type reportClass)
    {
        object report = Activator.CreateInstance(reportClass);
        rptQueue.Enqueue(report);
        return (ReportClass)report;
    }

    public static ReportClass GetReport(Type reportClass)
    {
        if (rptQueue.Count > MAX_COUNT) ((ReportClass)rptQueue.Dequeue()).Dispose();
        return CreateReport(reportClass);
    }
}

Choose your own method, as I mentioned my fav is the first one...

 

Good luck

Rujith

 

Friday, March 07, 2008 11:34:17 AM (GMT Standard Time, UTC+00:00)  #    Comments [3] -
Crystal Report
 Thursday, February 28, 2008

Hope you still remember those good old days, when you can access yahoo mail, hotmail and almost all web based emails through your outlook for free, without using any bulky software add-ons. I think that day it was necessary, accessing internet was not cheap and fast those days as it is now. It’s easy to compose your email offline and send it when you connect to the internet. Yahoo now charges for the POP3 service, you need to subscribe to mail plus for that, I don’t know when hotmail stopped their http service, till few months back it was working for me. Then it suddenly stopped working. Then later they introduced outlook connector. One good thing I noticed is it doesn’t add those advertisements when sending through outlook. And as usual the bad thing is it supports only OUTLOOK L.

 

Outlook connector can be downloaded here.

-Rujith Anand

Thursday, February 28, 2008 3:42:30 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Email
 Wednesday, February 27, 2008

If you have used ASP.NET web controls and java script you must have faced the problem of getting control’s id in java script especially if you are using content place holders, repeaters etc. So when generating the html content ASP.NET generates a unique Id to uniquely identify the control on the webpage. This id is visible through the property control.ClientId. And use this clientId in your java script to reference the control. I came across this recently when I was reviewing a code, I found that the developer getting the source code (html) for the aspx from the browser and hard coding that in the java script. Good logic (it was inside a content place holder), but there is no guarantee that the id is going to be same. For example the id generated in IIS5.0 and IIS 6.0 may be different. So if you develop in IIS 5.0 and deploy in IIS 6.0 (which most of us do) you will be shown the weird javascript error ‘value is null’ J.

You will need to render the java script through code behind. See msdn documentation for how to use client scripting in ASP.NET pages.

Check here for documentation on control.ClientId

 

Rujith

 

Wednesday, February 27, 2008 1:23:33 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -

About me
Name : Rujith Anand Send mail to the author(s)
Archive
<April 2008>
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Blogs I read
Disclaimer

Disclaimer
Postings are provided as is with no warranties, and confer no rights. Opinions expressed here are my own delusions; my employers at best shake their heads and sigh, at worst repudiate the content with extreme prejudice, whenever it manages to appear on their radar.

© Copyright 2012
Rujith Anand

Statistics
Advertisement
All Content © 2012, Rujith Anand