whihathac's Den

code is poetry

PhotoResizer 0.5.1.0 (mini Release)

Hi All,

Going very slow on the development of PhotoResizer, here is a very small release. Actually it has no new features. But now onwards, you don’t need to install PhotoResizer. Its now freely distributable as an standalone EXE. :) – a request that has been pending since long time. The EXE is around 350 KB in size and requires .NET Framework 2.0 to run.

Hope to hear more comments/feedback/feature requests in near future.

Links:
PhotoResizer homepage

Regards,
Bhavik Vora.

IPL Season 2 is here !

Hi all,

IPL Season 2 starts on 18th April ‘09 with Mumbai Indians taking on Chennai Superstars at 4pm IST. Well Mumbai Indians definitely left a mark last season but wasn’t just enough. The winning streak started rather very late. I hope this season they get themselves going from the start. Its among the best team among the lot.

With new faces this season from the Auction saw side swapping players for Shikar Dhavan (from Delhi Daredevils, in lieu of Ashish Nehra), Zaheer Khan (from Bangalore Royal Challengers, in lieu of Robin Uthappa) and also added new players like Mohhamed Ashraful, JP Duminy and Kyle Mills. Shaun Pollok takes over an added responsibility of Mentor for the Team.

The Team :Mumbai_Indians_280x_465386a
Sachin Tendulkar
Abhishek Nayar
Ajinkya Rahane
Chetnya Nanda
Dhawal Kulkarni
Dilhara Fernando
Dwayne Bravo
Graham Napier
Harbhajan Singh
Jaydev Shah
Jean-Paul Duminy
Jude Singh
Kyle Mills
Lasith Malinga
Luke Ronchi
Mohammad Ashraful
Pinal Shah
Raheel Shaikh
Rohan Raje
Ryan McLaren
Sanath Jayasuriya
Saurabh Tiwary
Shikhar Dhawan
Yogesh Takawale
Zaheer Khan
Shaun Pollock(Mentor) (Coach)

Match Schedule for Mumbai Indians: (tentative)

Date Day Teams Venue Time (IST)
18-Apr-09 Saturday Vs Chennai Super Kings Cape Town 16:00 Hrs - 19:00 Hrs
21-Apr-09 Tuesday Vs Rajasthan Royals Durban 20:00 Hrs - 23:00 Hrs
25-Apr-09 Saturday Vs Deccan Chargers Durban 16:00 Hrs - 19:00 Hrs
27-Apr-09 Monday Vs Kolkata Knight Riders Port Elizabeth 20:00 Hrs - 23:00 Hrs
29-Apr-09 Wednesday Vs Kings Xi Punjab Durban 20:00 Hrs - 23:00 Hrs
1-May-09 Friday Vs Kolkata Knight Riders East London 16:00 Hrs - 19:00 Hrs
3-May-09 Sunday Vs Royal Challengers Johannesburg 20:00 Hrs - 23:00 Hrs
6-May-09 Wednesday Vs Deccan Chargers Pretoria 20:00 Hrs - 23:00 Hrs
8-May-09 Friday Vs Delhi Dare Devils East London 20:00 Hrs - 23:00 Hrs
10-May-09 Sunday Vs Royal Challengers Port Elizabeth 16:00 Hrs - 19:00 Hrs
12-May-09 Tuesday Vs Kings Xi Punjab Pretoria 20:00 Hrs - 23:00 Hrs
14-May-09 Thursday Vs Rajasthan Royals Durban 20:00 Hrs - 23:00 Hrs
16-May-09 Saturday Vs Chennai Super Kings Port Elizabeth 16:00 Hrs - 19:00 Hrs
21-May-09 Thursday Vs Delhi Dare Devils Pretoria 16:00 Hrs - 19:00 Hrs

My Best XI

1. Sanath Jayasuriya (f1)
2. Sachin Tendulkar (Captain)
3. Shikhar Dhawan
4. Dwayne Bravo (f2)
5. Abhishek Nayar
6. Yogesh Takawale (keeper)
7. Kyle Mills (f3)
8. Harbhajan Singh
9. Zaheer Khan
10. Dhawal Kulkarni
11. Shaun Pollock (f4)

Hope to see Mumbai Indians rock :)

Regards,
Bhavik Vora

Zune Users - Beware !

Hi,

Well its not a security flaw. But you need to know about 'Zune Transcoded Files Cache'. Today I was cleaning up my Hard Disk (M/C has Vista) and while diggin in through the folders, I found an interesting folder -> C:\Users\B\AppData\Local\Microsoft\Zune\Transcoded Files Cache. This folder had around 2GB worth of '*.tmp' files. :P

More info about the 'Feature' is explained here. Also the cleanup on the same (not sure yet), is present in Disk Cleanup (Accessories\System Tools).

All I want to say is that you can safely reclaim this wasted space and keep doing so periodically.

Thanks,

Bhavik Vora

Microsoft PDC 2008

/* Updated Content */ 

Hi all,

Firstly wishing you all Happy Diwali and a prosperous new year (a hindu festival and tradition).

So wots up within Microsoft, Well PDC is the answer. Today is the forth and last day of PDC 2008 which is happening at Los Angeles. PDC has be a ground for Microsoft where it showcases the upcoming technologies and releases to the developers/industry/press. The Professional Developers Conference (PDC) consists of several hands-on/labs and sessions for these releases.

Major attractions at PDC 2008:

1. Windows Azure:

With all the buzz around Software + Service (S+S or better known as SaaS) increasing, more no. of companies are trying to get on the Service wagon to gain the most of it. Cloud computing, cloud OS and Cloud applications are now a reality with many new companies showing the power of SaaS. Microsoft is here with an OS in the cloud. Windows Azure is the base of the Windows Azure Services platform which is basically a set of developer services that extends the windows programming model to the cloud. Windows Azure offers a platform to support scalable applications – support for languages and frameworks like ASP.NET, AJAX, LINQ, WCF and WF. Also Windows Azure provides scalable storage with support for simple blobs, tables, queues etc.

Live Meeting and Live Mesh are already using Windows Azure. While Sharepoint and Dynamics are already been offered as a service. Windows Azure assures 0% down time for the applications hosted on its platform, unless developers host a broken piece of code. It was nearly impossible since OSes need to be patched and may require a downtime for the app. But Windows Azure achieves 0% downtime by moving the app to a different server while patching a particular server and moving it back. Azure also has plans for support for Java and PHP (as in its bound by Azure services).

2. Windows 7

Its the product that most awaited by customers (who disowned Vista for their stable Xp OS). Well before I make a statement here, I’ll like to try Windows 7 all by myself. Basically Windows 7 is Vista code with lot of improvements in the areas where people have complaints about Vista. A lot of improvement to some of the age old screens (dated Win 95 times) have changed here including the Calculator, Paint and Wordpad. UAC can be now controlled. Its about – compatibility, performance and UAC. A lot of screenshots are available on ZDNet. A Windows 7 Developers Guide is available on Codeplex which explains all the new features with screenshot.

3. Visual Studio 10 and .NET Framework 4.0 with C# 4.0

The next in line is Visual Studio. Its CTP is available for download here. The Download is quite bloated since it has all the bits. Here’s a post on how to download it with ease. Havent been able to use it till now. This Version adds GUI driven programming for Silverlight. Its also gearling up for the new release of .NET - 4.0.

4. Live Application Suite and Live Mesh

Live Mesh - This has been the most written about application. Its the envision of Ray Ozzie, Microsoft's Chief Software Architect to provide cloud computing to all. Live Mesh is a framework in which you can sync content between various devices - PC, Mac and Windows Mobile Phones. It comes with 5GB storage space that can store your media - photos, movies, albums and even your personal files. There can be shared applications too. A demo of - To Do List and a TV Program Channel guide was done in PDC this year.

5. Office Web Application

The online version for Office is out ! Its a free product by Microsoft that enters the league of other Online Office products. Not much info known by me as yet.

 

Disclaimer: All the information here is based on the info found on different blogs/sources and not necessarily the internal sources. This does not represent any confidential information for my company. Also the views shown here are solely mine and in now way represent my employers views. Also I cannot vouch for the features mentioned here, since I haven’t tested them and also that it may change in the release versions.

New Version of PhotoResizer Coming soon :)

Hi,

For the last week, I have been tweaking the (old) release of PhotoResizer to include more features and remove bugs. I have released the version to few of my close friends, and based on their feedback, will release it here on the website. (Well if you are genuinely interested in beta testing the app before I release here, please send me an email :)).

Some of the features in the yet-to-be-released version are:

- Drag and Drop image fieles for selection
- Improved performance (multithreaded to give you better response)
- Bug Fixed: File resizing by pixels
- Setup for PhotoResizer

Haven't included many features, but the features included here were essential.

Hope this version is much stable and proves useful. Keep watching this space for more info.

PS. Previous release are here: http://blog.bhavikvora.com/page/PhotoResizer-Release.aspx
Its pretty old release and I'll recommend you wait till this weekend for the upcoming release.

Thanks,

Bhavik Vora

Tips n Tricks - Javascript and ASP.NET 2.0 - Part 1

Well I have learnt few things working with Javascript(JS) and AJAX in ASP.NET. I thought I'll put it here which can be used by others. The post concentrates majorly on Javascript.

1. Using ASP.NET Variables in Javascript

You can use ASP.NET variables which are global (public of course) as follows:

Suppose in C# file you have:

public string random= "0";

You can use the variable in JS (actually the ASP.NET page replaces the variable name on runtime) as follows:

<script type="text/javascript">
   function Foo()
   {
      var var1 = '<%= random %>';
      alert(var1);
   }
</script>

2. Simulating ASP.NET AJAX Applications

While simulating ASP.NET AJAX applications, we cannot really differentiate between the request being Async and if the page has posted back. Here’s a simple way to find it out – Just add a delay in the function which is run as an AJAX request. For Eg.

System.Threading.Thread.Sleep(10000);

This will provide a delay of 10 seconds. So when the function freezes at this point for 10 secs, you can check whether other parts of the site are responsive. If they ain’t you know that its not an AJAX request.

3. Referring to ASP.NET controls in JavaScript

You can refer to the ASP.NET controls in Javascript code as follows:

var var2 = document.getElementById('<%= Label1.ClientID %>').getAttribute("InnerHtml");

In the above piece of code, Label1 is a Label and we use the InnerHtml attribute for extracting the Text Label.

4. Triming Strings in JS

Trimming in Javascript is kinda trivial in case you use RegEx. Here’s an example to do so -

strvar = strvar.replace(/^\s+|\s+$/g, '');

 

I’ll continue with few more tricks I have learnt in the next post. Thanks for the patience of reading the post :)

Regards,

Bhavik Vora

Microsoft Store Online !

FYI.

clip_image002

Announcing the Microsoft Store – the first online store where you can purchase the full selection of Microsoft products directly from the source.  

Go to www.MicrosoftStore.com and find the largest selection of Microsoft software, devices and hardware.  There are lots of reasons to visit the store:

· Immediate software download option with the largest download catalog of Microsoft titles

· Simple and secure purchase – all at your fingertips

· Most up-to-date selection of and information on your favorite Microsoft products including Xbox, Zune, Office, Windows and much more

www.MicrosoftStore.com 

 

Ps. Shipping Restrictions

The United States Microsoft Store cannot ship to international addresses. Microsoft Store cannot yet ship to P.O. Boxes, U.S. Territories, or APO addresses at this time. We plan to add support for APO addresses in early 2009.

Regards,

Bhavik Vora