Tuesday, December 7, 2010
A lot of people get tend to the way they prefer to have their IDE. I prefer to keep my aspx page in split view in Visual Studio(2008 and 2010).
I tend to write less aspx code and try to accomplish my task using the Design window. So having them both open simultaneously helps me a lot.
Earlier I was fumbling to set this but later I did the settings change in the IDE and this solved my problem once for all.
In Visual Studio
Open Tools->Options->
navigate to HTML Designer in the Tree View.
Select General in the displayed node and select the SPlit View radio Button in the Start Pages Group Box
Now whenever you open an aspx page you will have the source and the design window in the same page.
The downside of the above tweak is for every change you make in the aspx code you have to save the page to see the change(ctrl+s) getting reflected in the Design window. Sometime this might seem to take a lot of time. Instead of saving the file every time do all your changes in the aspx code window and save the file once. This way you can save a lot of time which might have been lost in refreshing the design window.
Tuesday, December 7, 2010 by Anandarajeshwaran.J · 0
Recently I found this tip which helps in declaring multiple variables of the same datatype in C# using minimal code.
First I was using this code to declare the variables of type Double
double dblOpenTrades=0;
double dblDebtor=5;
double dbltotal=1789563;
double dblexcesslmt=17;
Then I found this faster way of writing the same code as below 1: double dblOpenTrades = 0, dblDebtor, dbltotal = 1789563, dblexcesslmt = 17;//
The above is applicable for all datatypes.
If you don't want to assign a value to the variable at the time of declaring use as follows 1: double dblOpenTrades = 0, dblDebtor, dbltotal = 1789563, dblexcesslmt = 17;//
Look at the variable dblDebtor in the above code there is no value assigned to it but still the code works fine.
One of the main aspects of effective programming is to make the final exe or dll as small as possible and putting less strain on the run time at the time of execution.
If you are going to start using the variables as soon as the declaration is done then this is an efficient method of declaration. But if you plan to use the variable later somewhere and in private this method of declaration is not advised.
by Anandarajeshwaran.J · 0
Recently I had designed a table in an aspx page in Visual studio 2008. The table contains two rows of data. But under certain conditions only one row of data will be available for showing. In this scenario the other row and the empty cells where not showing up while the page was rendered and it looked odd to look at
The business requirement was to show all the cells even if no data is available.
The above HTML table was rendered with the following code
<table width="100%" border="1" cellpadding="2" cellspacing="0">
I tried GOOGLING for the solution and found that there is a style property called empty-cells:show
but the style was not working in IE.
Then my search ended in the following page.
http://www.tgrayimages.com/show-empty-table-cells-with-css-in-internet-explorer/
I made a mix and match of the tip provided there and ended up with the following code.
<table width="100%" border="1" cellpadding="2" cellspacing="0" style="border-collapse:collapse;empty-cells:show;">
and the table started to behave as required. For easy understanding of the tip I have used inline CSS but it is always good to use a separate style sheet to apply style to your pages
And this is how the table got rendered after I applied the style property
It indeed gives a better look and as per usability is considered this look is easy on the eyes of the viewer
by Anandarajeshwaran.J · 0
Friday, May 21, 2010
Google yesterday announced the release of the version 2.2 of its popular mobile operating system Android. Though released by Google it will take weeks to months for the device manufacturers to come up with devices featuring the latest OS. Developers can download the Android SDK and NDK (native development kit) from the Android developer site.
Samsung recently released a firmware upgrade to 2.1 version of the Android OS for its fastest Android powered mobile SPICA. SPICA originally featured 1.5 version of Android. New SPICA devices come with 2.1 version of the OS. Users with older version can flash their mobiles to 2.1 using the utility provided by Samsung. I am going off topic here (due to my love for SPICA).
Android 2.2 was codenamed FROYO (Frozen Yogurt--a funny name for an OS but Google always does something different) during the development stage.
This release of the OS has 20 new features to encompass the needs of the enterprise users.
Integration with the Microsoft Exchange messaging system, account auto-discovery and linkage with the Exchange global address book, Calendar synchronization these are the highlighted features for the enterprise user.(It seems more people are taking their Android phones to work--Blackberry beware).
According to Google these new APIs are featured for device policy management, enabling developers to write applications that control security features like remote wipe, minimum password, and lock screen timeout, Froyo also offers an application data backup API and a cloud-to-device messaging API.
What is there in this release for a regular Geek like me?
Android has received the much anticipated Flash support and speed boost.
A two-to-five-times speed improvement for applications has been achieved via use of a just-in-time compiler functioning with the Dalvik virtual machine (a VM built specifically for Android by GOOGLE).
A old saying goes like this “Your enemies enemy is your friend". Google must be aware of this I suppose. When Apple is up against Adobe by banning Flash from its devices Google is welcoming Flash with open arms.(Google what about your touts for Open standards and HTML5 usage).
Android 2.2 supports the Flash 10.1 browser and Adobe AIR (Adobe Integrated Runtime). Adobe, meanwhile, released the public beta version of Flash Player 10.1 for Android.
This will turn the table for Apple. From now on we can see who (Google vs. Apple) has the muscle to decide what stays and what should go away?
By including the V8 JavaScript engine the browser capabilities in Android 2.2 has been enhanced. It is the same engine featured in the Google Chrome browser.
Users will be able to access Android camera capabilities via the browser. Voice input is featured as well, for informational queries.
Devices running Android 2.2 also can serve as a portable hotspot for network access.
Novell, has announced MonoDroid which will enable C#(from Microsoft) developers to write Android apps using a cross compiler.
Friday, May 21, 2010 by Anandarajeshwaran.J · 0
Tuesday, September 29, 2009
We cant imagine a life without SMS(some of my friends can survive without air or food but not without SMs). The cute little thing which we take for granted does a lot of work for us. In a voice call We dont finish the call after we communicate what we wanted to. One leads to another and the call ends after 15mins. There are cases where we forget why we called for .But an SMS is a time saver(at times a big time waster too). Let us read the other stuffs we dont know about our friendly cellphone SMS.
SOme operators charge for an sms(shame on them) and some give it for free(hurray).
FUN FACTS
=========
The costs incurred by the operator to transmit one SMS is 1/80th of a one minute voice call.
A one minute voice call transmits about 720kilobytes(kb) of data.
An SMS transmits 1/10th of a kilobyte (0.136Kb to be exact)
TRAI has announced that 82 Billion messages were sent in India in 2008.
The operators dont require a special space to transmit SMS. SMS is a free rider sandwiched into a space which is otherwise unutilised by the Operator themselves.
source THe Hindu Bangalore Edition----september 20 2009.
Tuesday, September 29, 2009 by Anandarajeshwaran.J · 2
Sunday, May 24, 2009
Hi all I recently presented this session at the Bagalore Dot net user group.
I promised the attendees that I will upload the source code and presentation ppt in my blog but I have to go to office today so will not be doing today(24 May 2009).will try to do it by EOD. so if you would like tobe informed of the upload leave a comment here or just subscribe to my email subscriptions.
(expect a update very soon)
Thanks
Sunday, May 24, 2009 by Anandarajeshwaran.J · 1
Thursday, February 19, 2009
I was hunting for an apt name for my blog. I dished out a lot of them but could not settle at anyone of them. Then while going through the complete works of swami Vivekananda I came across one of his works called HINTS ON PRACTICAL SPIRITUALITY( Delivered at the Home of Truth, Los Angeles, California )
The session was interesting and I found that even after 100 years whatever he has said holds true and stood the test of time. I started thinking around the ideals he had given and came up with this name. Indeed this is not just a name it is the principle which is going to save India.
For practical purposes, let us talk in the language of modern science. But I must ask you to bear in mind that, as there is religious superstition, so also there is a superstition in the matter of science. There are priests who take up religious work as their speciality; so also there are priests of physical law, scientists. As soon as a great scientist's name, like Darwin or Huxley, is cited, we follow blindly. It is the fashion of the day. Ninety-nine per cent of what we call scientific knowledge is mere theories. And many of them are no better than the old superstitions of ghosts with many heads and hands, but with this difference that the latter differentiated man a little from stocks and stones. True science asks us to be cautious. Just as we should be careful with the priests, so we should be with the scientists. Begin with disbelief. Analyse, test, prove everything, and then take it. Some of the most current beliefs of modern science have not been proved. Even in such a science as mathematics, the vast majority of its theories are only working hypotheses. With the advent of greater knowledge they will be thrown away.
Due to time constraints I am posting only this much but will update this in the future and will be speaking more elaborately.
Thursday, February 19, 2009 by Anandarajeshwaran.J · 2