December 17, 2009

Bug: iPhone: when iPhone do not log incoming call in the call history

i just found a very strange bug in the apple iPhone 3.1 OS. it do not put record in the recent history of calls.

Reason: It happens when your phone get switched off due to low battery etc. then iPhone do not log it in the call history register. Hope in the 4.0 it will be fixed.

Solution: No solution.

September 02, 2009

this._form is null javascript error Scriptmanager

this._form is null javascript error with Scriptmanager, this problem occur when you are using asp.net ajax extension and another third party js together. i was using jquery when i got this issue.

Solution:
i was reffrering the js as following

<script type="text/javascript" language="javascript" src="js/jquery-1.2.6.min.js"
>
but it creates problem when using with asp.net ajax extension

Slightly change it with closing of script

<script type="text/javascript" language="javascript" src="js/jquery-1.2.6.min.js"></script >

or use the best practice syntax and add any third party script as follow.

<asp:scriptmanager id="myScripts" runat="server">
<scripts>
<asp:scriptreference path="js/jquery-1.2.6.min.js">
</asp:scriptreference>
</scripts>

</asp:scriptmanager>

August 18, 2009

World All country City,state list database,dropdown excel csv

I guess a lot of people search for this list and very less get successful finding the list. I also required world's all Country and corresponding City or states for binding the drop down from sql server one of my project. i searched a lot and finally found a very good list, with the approved codes etc. you can use Ajax or anything after importing it to your database in required format in you any of oracle, mysql, access, sql-server, postgresql.
here's Updated link.

http://www.unece.org/cefact/codesfortrade/codes_index.html

above link is for download, below link is for details of various terminologies used.

http://www.unece.org/cefact/locode/welcome.html

on the page you will get list in various acceptable formats from

  • txt
  • CSV
  • excel
  • mdb. 

as there is no just download latest file which is on the top of the list and import it to your database.
its very detailed and informative list even got longitude details, district, state, city. so you can drill down to very depth or very less according to your requirements

my best to share the information as far as possible.

Please like this article on Facebook and G+ to make people to find it easily.

August 13, 2009

Migration / Conversion from Oracle to Sql server

As .net developer sometimes we need to work on heterogenous databases. like Oracle, MS Sql 2005/2008, posgresql, mysql etc. This document is only about Migration from Oracle to Sql server and vice-versa. Both databases come with features those are vendor specific .
Oracle’s stored procedure language, PL/SQL, has many features not supported in Transact-SQL (T-SQL), the stored procedure language of SQL Server, and even where similar features exist, the languages contain many syntactic and semantic differences. To migrate a PL/SQL object that uses a feature that has no T-SQL counterpart requires that that capability be emulated in T-SQL using the available features.

Stored procedures/Functions.
Cursor
Triggers
Data types
loops
conditions
Joins.
Null Handling
Temporary Tables

all have diffrent syntax in both databases.rather than copying i am providing some good links for migration.
http://vyaskn.tripod.com/oracle_sql_server_differences_equivalents.htm

http://download.microsoft.com/download/3/d/b/3db5c89a-3765-4bae-8647-ec878989054f/SSMA_for_Oracle.doc

http://www.scribd.com/doc/18501463/SQL-2-Oracle?secret_password=kxh3g29hzidy86usbne

if still any doubt or problem just comment and tell me, i will try to resolve that.

August 11, 2009

JailBreak, Unlock iPhone 3GS and old 3G.

iPhone unlocking and jailbreaking is the lingo used in while making iPhone to use other Network and insalling iphone apps from stores other than Apple app store.
let me explain these two terms

JailBreaking : Breaking the phone software jail. so that it can install apps from diffrent stores other than app store.

Unlocking: as i phone comes with a specific provider lock. to break the lock so that i can be used on other GSM network, called unlocking..

from the very first phone called IPHone 2g, jailbreaking and unlocking are the common terms.

iPhone 2g-> 2 years back Zibri launched the ZipPhone, a very good unlocking and jailbreaking tool. very userFriendly tool, but he didn't release the software after the 2g and 1.1.4 os verson. and sold his blog to somebody (ziphone.org)

iPhone 3g -> Iphone 3g came with 2.0 software with many secruity against unlocking and jailbreaking. But iphone dev team broke the security and released the tools for both mac and windows os. tools name were
Mac: PwnageTool
Windows: QuickPwn
it requires two mandatory files..
bl39.bin 3.9 BootLoader
bl46.bin 4.6 BootLoader
they vary according to your iPhone and os.

Iphone 3GS -> With launch of 3gs apple released 3rd version of Os ie. 3.0 and third hardware device. Now when you talk about 3gs. we always talk about 3.0 version operating system.
now unlocking and jailbreaking has been categorised as following.
iPhone 2g with 3.0 or 3.0.1
iPhone 3g with 3.0 or 3.0.1
iPhone 3gs with 3.0 or 3.0.1

The first jailbreaking of iPhone 3gs having 3.0 os was released by "George Hotz"( a teenager hacker). You can download the tool from http://purplera1n.com/ which was release by above hacker.
After that Iphone dev team also released some version to break the phone.

August 08, 2009

CHM file(book) error, not displaying content

Sometime when you download a chm help file or chm book from internet, or copy it from any usb drive it does not open or when open does not show any content.
this is actually security problem. Windows does not allow chm files to open.

Solution: right click the file->properties. at bottom of proper you will see a button unblock. click that button. it means windows will now not block the opening of the file. User marked it safe for opening.

Secondly: copy it to another folder/another drive or desktop and then try to open, sometimes it works.

July 30, 2009

Referenc type are pass by value or reference?

No, you are wrong, Reference types are passed by Value by default, surprised?
Explanation:
Pass-By-Value

Test(object R2)
{
R2=null;
}
//you call
object R1 = new object();
Test(R1);
WriteLine(R1==null) //result false.

Reference type R1 is created on address y100 and its value is some another address called x100; // as we know refrence type refer to an address
now in method
Reference type R2 is created on a memory address y200,
and it is copied value of R1 ie. x100;
so when you reset R2=null. only value of the r2 set to null. means now its not pointing to address x100. but R1 still pointing to address x100.
NOTE: if value at address x100 is changed, both R2 and R1 will show that, because both pointing to the same address.

Pass-By-Reference ->
Test(ref object R2)
{
R2=null;
}
object R1 = new Object();
Test(ref R1);
WriteLine(R1==null) //result true.

now we are passing variable by Reference. now here address of R1 is passed i.e y100. so R1 & R2 both are pointing to y100. so if you change R2's value, R1's will also changed

Any issue please comment.

July 21, 2009

web 2.0 and aging metrics (Page views and unique visitors)

In modern era(web 2.0). When businesses are trying to create RIA (Rich Internet application) that give them experience of desktop application, rich user experience in turns more users; when there is continuous fight b.w Adobe, Microsoft to be front runner in the RIA ( flash vs silverlight).

I am always surprised when "Page Views" is still considered as a major metric while deciding the ranking or effectiveness of sites.
According to my experience two major companies still advocate page-view matrix, so the businesses around the world follow them, and create web 1.0 (term for old app) application. In the list of companies Alexa & Google is also a name, who's wonderful adsense tech is ages old to support the web 2.0.

I think this matric should be discontinued or should be substituted with a new one that will pace the internet application development. because only then companies will think out-of-the-box. I really admire Facebook for their wonderful interface, its very very user-friendly and don't care about the page impression/view. You can check your profile and wall very quickly so its saving your time too. comparatively out of age Orkut, which still believe in the page view. you have to spend a lot of time to check your scrap,pics etc. but i guess facebook got success because of user friendliness. Facebook is ahed but orkut could have more page views.
All the sites above google, yahoo, msn adnetworks should come up with new matric to give better view of site use.

"No of Unique Vistors" -> This is also a metric but i don't see its effect in near future. As all browsers chrome, safari, Internet explorer, FireFox, are coming with stealth mode(private browsing) . When you browse in this mode no cookie or history is maintained. so to track unique visitor will be a challenge. so tracking unique visitor is going to be challenge.

As all the metrics were defined Pre-Ajax (web 2.0) era. Now i guess its time to move on from these.
All the major companies Google, Yahoo, Microsoft & various ad-networks must come up with new metric to give new spark to the web 2.0 and Internet. Because page views are also significant measure of ads performance.
One of the effective metric is time spent on site.

i just posted my personal thoughts, if am wrong somewhere please correct me thanks.


July 18, 2009

Google not supporting web 2.0 ajax

Google :( naam to suna hi hoga :). Yes it has reach to 70% of internet users. it revolutionized the internet(search). But when industry is running toward web 2.0 (wiki). Now purposed 3.0.
then why Google still not supporting Web 2.0?

what is the exact reason behind it?
Yes Money $$.

Money to Google is Ads. And AdS (AdSense) in the Google are not Ajax supported.Google discourages/ penalties on use of "ajax refresh ads". Ads comprises 94%+ revenue of Google.
As various sites on internet today built for business revenue, ADS. so when we talk about ads on internet Adsense is the name that strike most.
So people develop their sites in view of AdSense , so they have to make sites with the ages back format i.e without use of Ajax.
So at one side Google is helping internet & other site not.
so its pushing us ages back with that old aged "refresh-on-each-click" model.
  • Search page old fashioned.
  • Orkut old fashioned.
but surprisingly G has something for its own Gmail. Gmail send ajax request and refresh the ads.

I wrote this, as i was planning to work on a site, but was in dilemma.

July 17, 2009

what is new in Visual Studio 2010 and the .Net Framework 4.0

Another version, Microsoft VS 2010 and Framework 4.0. I am still working on 2.0. I need to jump 3.0 and 3.5. Companies barely working on 3.5 version, because very less application are being developed for 3.5 version. Don't know when 4.0 will get speed. My whole carrier will go into updating myself for the new versions of Microsoft .net framework, visual studio and of course new Windows. But i guess thats life of a programmers. I am still on XP (loving it).
Anyways with invent of new systems Microsoft is coming with the a lot of feature that surely need developer and System to update. But features are great.
as from 2.0 to 3.5 we got Generics, Linq, entity-framework, WCF, WPF etc. so what's in 2010. & 4.0
here is answer.

jQuery - In 2010 major changes has been done for high performance and standard javascript standards compliant JavaScript IntelliSense engine. Microsoft and Jquery group working together to make developer life easy, so Visual Studio 2010 will be the first version of Visual Studio to ship JQuery as a native part of the ASP.NET solution

MVC - All features of "Preview release of ASP.NET MVC" included in Visual Studio 2010
2010 make very easy to build Model-View-Controller aka MVC sites.
n Visual Studio 2010 we deliver the next generation of ASP.NET web tools that make it easy for developers to use TDD to build Model-View-Controller (MVC) based web sites. Wizard based interface to creating views, generating test project for MVC solution. Various templates are given.

One Click Deployment - IDE provides a wizard, dialogs and design surfaces that make it simple for developers to identify the components of a website that need to be deployed and make it easy to handle the process of moving them from the development machine to the web server, One Click Deployment come as heaven for developers as often moving from development to production various changes need to be done in config file like removal of trace, debug and local database/development connection. There is feature to set custom transformation when moving from development to production. so those will be applied every time.

Silverlight,- Integrated support for silverlight, full debugging support for silverlight applications. existing content can be used on aspx pages very easily. Guess SL 3.0 will also be made native in the final release.

Windows® Azure ™ - Support of Azure tools in 2010. Windows Azure Tools provide the means to create services and applications within the framework of Visual Studio. That includes a project model specifically for Windows Azure, as well as the debugging capabilities of Visual Studio. With Visual Studio, you can build a package containing your service, and use Windows Azure Tools to deploy the package to Windows Azure through the Windows Live Developer Portal.

Parallel Development support: what does it mean.
The .NET Framework 4.0 also provides the core framework support to build parallel applications through technologies such as P-LIINQ and parallel language semantics and framework components. Visual Studio 2010 provides integrated parallel development support. In Visual Studio 2010 the debugger is aware of the parallel nature of code and can present the state of the application execution during debugging across the different parallel execution units. The debugger also has custom displays for parallel code such as task & thread windows and a “multi” or “cactus” stack view window that graphically shows the execution path of the individual tasks.
Vs 10 also got "parallel capable performance analyzer" that helps you to extensively instrument you code to visually see the concurrency issues that are in your applications (WOW).
& this is the one of few new feature of 4.0, all rest are enhancement to Wxx technologies.

Modeling with Code: Thats the feature i was searching in previous versions, its very great feature, may be its already part of rational packs, but with Vs it makes life easy of developer, PM & architect. What is it?
While working with existing code. its very tough to examine real code as model, understand the impact of the changes,
So 2010 has very good integration with code. Now real code can be examine as model & see real code assets. So it creating a full architectural picture of existing code; understanding how they fit together; understanding how they “work.” This leads to better information about using, re-using, or discarding existing code. The Architecture Explorer provides architects and developers a mechanism for visualizing code assets in a number of ways including graphs, stacked diagrams and dependency matrices.
this feature is part of VS team suite
More UML Support.

so now from model you can validate whether presentation directly talking to DB layer. It can also be enforced. (WOW). it will save a lot of man days.

“No-Rrepro” Bugs: Another great feature of team suite.
what the hack it is -> From designing an application through developing code, finding bugs that can’t be reproduced is a common problem – the “no-repro” bug.

  • Visual studio 2010 can specify the exact state of the build used by a tester and allow a comparison to the state of the build used by the developer when trying to reproduce the bug.
  • It has tool "Microsoft Test Runner" case.
  • When the test case is started the Microsoft Test Runner takes a snapshot of the system data, including OS version and Service Pack and other pertinent system data.
  • As the test is being run the tester can use the tool to capture images of the application under test, or even partial or full screen video of the test being run.
  • If an issue is discovered, the tester can create a new bug in Team Foundation Server and attach these artifacts.
  • When attached, the screen capture video is fully indexed with the test steps as bookmarks, making it easier for the developer to see what went wrong on the tester’s machine.
  • All of these artifacts help to eliminate the no-repro scenario, and help build a better bridge between development and test.
Test Impact Window : The new Test Impact View window enables a developer to view a list of tests that need to be run as the result of a code change. The developer can toggle between an Impacted Tests view and a Code Changes view.
• The Impacted Tests view provides a list of tests that need to be run and which code changes are covered by each of the tests.
• The Code Changes view provides a list of code changes and which tests must be run in order to validate each of them.These two views provide a easy way to discover what tests must be run in order to validate the changes to the code base without having to run all of the tests. This ensures that all changes are tested effectively

many more features: F# support, ajax extension,

Training Kit is here: http://blogs.msdn.com/onoj/archive/2009/05/22/visual-studio-2010-and-net-framework-4-training-kit-vs10.aspx

Follow updates : http://twitter.com/onojw

currently beta1 download available.

--Compiled from Microsoft® docs.

July 05, 2009

Nokia n97 review, not even stand near iPhone

Nokia n97 launched user review
Last week i previwed the most hyped Nokia n97 with great eagerness. But my eagerness came to halt even after using it two minutes. n97 is just new wrapper on existing 5800 eXpress music phone with a physical keyboard, processor speed increased a bit from 369 Mhz to 434 MHz. Same 128mb Ram. n97 is very sluggish like 5800.
User Interface is not smooth at all and not that much clear. It is stated as iPhone killer, but seriously it will be insult of iPhone to compare to that. I am not obsessed with the iphone, but salute the innovation. A physical keyboard inclusion is good, but not worth to buy this $700 device. if you really want to possess a Nokia smartphone of current benchmarks. wait for the company to release some worthy device.

Suggestion : Do not BUY......... Palm - PRE is good option.

Ratings:
User Interface : **
Innovation : *
Speed : **
N/W Strength : ****

Other Phones in this category that you can consider, top to bottom priority wise..

Iphone 3GS OR Palm-Pre (multi backgroundn apps)
Iphone 3G
Black berry Storm 2 (Yet to launch)
Samsung Omnia-2 (Yet to launch )

HTC and other windows phones still have miles to go before they come to comparison.

June 05, 2009

Search mails, attachment, contact at blazing speed in Ms Outlook using Xobni

rajmittal:xobni
In the job almost everybody is using Microsoft outlook client for the mails. But searching mails is very painful and if you want to search for a attachment you will struck you head in the wall. But don't worry Xobni(reverse of INBOX) is here.

XOBNI is an free plugin to the Microsoft Outlook. It index the mails, attachments,
address in so nicely format that you will love it. When you select an contact, it shows all conversation, files-exchanged, related contacts. You can search content of your mails at blazing speed, yes i know Outlook search and indexing sucks. But this plugin will make your life very easy.

As on top of screen shot you can put any string and xobni will search all the mails very quickly.
Even you can browse the contact information from various social networking sites and skype.

Suppose you need to search a attachement from a particular contact. In normal search it is really difficult. using Xobni you just need to select the contact all the attachment till date from that particular contact will be displayed in the lower section of the xobni window. you can watch it , save it and using that attachment directly open the original mail.

for very detailed information. see URL: http://www.xobni.com/learnmore/

June 04, 2009

.net Framework 3.5 MCTS MCPD certification details(70-502,503,504,505,561,562)

3.5 certification are latest certification of .net technologies. After 2.0 framework microsoft released 3.0 and 3.5. Framework. 3.5 got its own different certification for web,windows and enterprise. Framework also got some separate certification for the new released technologies under 3.5 umbrella(WCF,WWF and WPF)

Pre-Reqisite:

70-536 is common exam for all the following certification. So for any of the following certification you need to clear 70-536 and any of the following exam. Yes 70-536 is same as of 2.0 certification. so if you already have any MCTS 2.0 you only need to give one exam for a particular 3.5 certification.
you need to clear 70-536 once.


MCTS certifications (All require 70-536)

70-502: .NET Framework 3.5, Windows Presentation Foundation Applications

70-503: .NET Framework 3.5, Windows Communication Foundation Applications

70-504: .NET Framework 3.5, Windows Workflow Foundation Applications

70-561: .NET Framework 3.5, ADO.NET Applications

70-505: .NET Framework 3.5, Windows Forms Applications

70-562: .NET Framework 3.5, ASP.NET Applications


MCPD certifications:

It is next step(Optional) after MCTS. You must have MCTS in your kitty to get MCPD certificate. so first get MCTS of above exams then MCPD for same technology.
  1. MCPD: Windows Developer 3.5
  2. MCPD: ASP.NET Developer 3.5
  3. MCPD: Enterprise Application Developer 3.5
Details:
MCPD: Windows Developer 3.5 :

Pre-requisite: MCTS Windows Forms Applications (70-536+70-505)
+
70-563 ( PRO: Designing and Developing Windows Applications Using Microsoft .NET Framework 3.5)

so total three exam (70-536+70-505) + 70-563

MCPD: ASP.NET Developer 3.5

Pre-requisite: MCTS: .NET Framework 3.5, ASP.NET Applications (70-536+70-562)
+
70-564 (PRO: Designing and Developing ASP.NET Applications Using Microsoft .NET Framework 3.5)

MCPD: Enterprise Application Developer 3.5

this one is complex exam. 4 pre:requisite and 1 new exam

Pre-requisite:

MCTS: .NET Framework 3.5, Windows Forms Applications (70-536 and 70-505)
+
MCTS: .NET Framework 3.5, ASP.NET Applications (70-536 and 70-562)
+
MCTS: .NET Framework 3.5, ADO.NET Applications (70-536 and 70-561)
+
MCTS: .NET Framework 3.5, Windows Communication Foundation Applications ( 70-536 and 70-503)

AND

Exam 70-565: PRO: Designing and Developing Enterprise Applications Using Microsoft .NET Framework 3.5 (available soon)

Upgrading from 2.0 to 3.5 coming soon from Microsoft. i will post article when certification are available.

Previous Article

May 25, 2009

Data Privacy issues in FireFox,Chrome when using Gmail

Checking Gmail on the Firefox and Chrome browser is not safe in terms of your data privacy. Yes. To explain it Firstly let me tell you how Gmail display your message.

Gmail Working: When you open any email in the browser it display the subject as the Title of your browser. so whenever you open a new message a new title is generated same as subject of your email message.

Problem:Firefox and Chrome browser save the Title in the History of the browser. So when you check a mail its title is saved in the browser hitstory, so anybody can know about your mails.

Resolution
So to keep intruder at the bay, whenever you check any private mail in , browser center(cyber cafe) and shared computer, do not forget to clear the history and saved data.
otherBrowsers: Internet exploer, Safari and Opera just save the URL not title so they are safer then the these two. but do not take any risk clear your history/saved data whenever you leave any shared computer.
"Any suggestion or add on are welcome"

April 29, 2009

Dot Net Certification Details: Microsoft MCTS(70-528, 70-536), MCP , MCPD (70-547), MCSE, MVP AND MCSD

.net certification or Microsoft certification exams are very confusing. Every aspirant has to search a lot to demystified the best exams etc. Here in next few paragraph i am going to demystify Microsoft Certification .net 2.0
In .net Microsoft offers many categories
------------------------------------------------------------------------------------------------------------------
Microsoft .net Certification 2.0 Retiring June 2011.
Recommended Read:
----------------------------------------------------------------------------------------------------------------------

.net certificationList


* MCTS
* MCPD
* MCSD
* MCP
* MVP


MCTS - The Microsoft Certified Technology Specialist. its comes under .net 2.0 certification. This is the fresh exam and do not require any previous exams to clear it. So a new developer can start from this exam.


Following are the specialization and exams under those


.NET Framework 2.0 Web Applications

one has to pass the following examinations:


* Exam 70–536: TS: Microsoft .NET Framework 2.0 - Application Development Foundation


* Exam 70–528: TS: Microsoft .NET Framework 2.0 - Web-Based Client Development


.NET Framework 2.0 Windows Applications

one has to pass the following examinations:


* Exam 70–536: TS: Microsoft .NET Framework 2.0 - Application Development Foundation


* Exam 70-526: TS: Microsoft .NET Framework 2.0 – Windows-Based Client Development


.NET Framework 2.0 Distributed Applications
one has to pass the following examinations:


* Exam 70–536: TS: Microsoft .NET Framework 2.0 - Application Development Foundation


* Exam 70–529: TS: Microsoft .NET Framework 2.0 – Distributed Application Development
--------------------------------------------------------------------------------------------


MCPD -Microsoft Certified Professional Developer


It also comes under .net 2.0 certification
this is next step to the MCTS, so to clear it you firstly need to have MCTS in your tally
Folloings are .NET 2.0, Visual Studio 2005 and SQL Server 2005.


Professional Developer: Web Developer
* Prerequisite: MCTS: .NET Framework 2.0 Web Applications
* Exam 70-547: PRO: Designing and Developing Web Applications by Using the Microsoft .NET Framework


Professional Developer: Windows Developer
Following examinations:


* Prerequisite: MCTS: .NET Framework 2.0 Windows Applications
* Exam 70–548: PRO: Designing and Developing Windows Applications by Using the Microsoft .NET Framework


Professional Developer: Enterprise Applications Developer
Following examinations:


* Prerequisite: MCTS: .NET Framework 2.0 Web Applications
* Prerequisite: MCTS: .NET Framework 2.0 Windows Applications
* Prerequisite: MCTS: .NET Framework 2.0 Distributed Applications
* Exam 70–549: PRO: Designing and Developing Enterprise Applications by Using the
Microsoft .NET Framework



MCP Microsoft Certified Professional. Person having any ms certification is called MCP


MVP Microsoft Most Valuable Professional. This does not require any exam. It is related with how you contributed in the microsoft communties or any site that promote ms technologies. You could be MVP of any of the these c#,asp.net,web services,word,excel,


More articles.

How to pass the microsoft .net certification


Microsoft retiring Some exams be careful


I am now MCTS, MCPD


Fee structure of MCTS MCPD


Microsof exams center in your city


Questions, passing marks, Duration

New Article

April 27, 2009

Sync Google Calender with iPhone, outlook, blackberry using Itunes, Get Calender alterts through free SMS

Google calender is very effective and time saving tool. we can sync multiple devices including your smartphone using it.
you can sync outlook,iPhone,blackberry calenders very easily. Google support ics format which is an rfc standard(www.ietf.org/rfc/rfc2445.txt), it helps it to synch with various devices.

Google and Outlook Sync :- Two ways to do this.
  • Manual
  • Automatically.
Manual :- In manual way you need to export the calender in to .ics format.
google calender will automatically do that for you in zipped format, just extract that.
Now go to outlook file->import export...
now a wizard will appear , select "Import icalender or vCalender file" , select the"ics" file it will import all the scheduleds to your calender.


Automatic :- you need to download this small utility approx 300kb from the following address.
http://dl.google.com/goo
glecalendarsync/GoogleCalendarSync_Installer.exe
  1. install it according to the instruction,
  2. Give your google username, password
  3. Set the option whether you want one way or both way sync
  4. set the interval in which you want to sync the calender
the tool will stay in your taskbar and sync the calender both way.




Google Calender,Outlook and IPhone Sync :- different ways exists.





1. iPhone can be sync with the outlook using the apple iTunes. so use the above steps to sync outlook and google calender then sync iPhone with the outlook using iTunes.
2. m.google.com/sync.



Google calender and Orkut. if you are using the Google calender. Orkut will automatically shows you a Orkut friends calender on your profile page. It contains the birthday of all of friends who's birthday are visible(you can also hide your bday on orkut). just click on it it will add the calender to your google calender.
There is no way to export this calender as its view only. but you can add the event from this calender to your calender. click on the event, a new window will open select "copy to your {calender name}" option from dropdown. Its tedious process because no bulk copy option is there.


SMS your event to Cellphone :- Yes you can. suppose your phone is not smart

enough to sync with the calender form google or outlook. But still you could be up to date using the sms notification option from The Google calender.
first you need to setup your mobile device click on setting just blow the name of your calender. you will see a option mobile setup. just follow the steps.
now click on dropdown as shown by A arrow in the snapshot and select calender settings and select notification tab as show in the Snapshot(ss). now configure it. Yes its free in my country(India). check your operator http://www.google.com/support/calendar/bin/answer.py?answer=37226&ctx=tltp and confirm whether receiving sms are charged or not.


Sharing & embedding. You can share and import other's shared calender in your google calender. just click on the A dropdown as the pic and select share the calender. you can make it public or protected via sharing it to some of your friends. same way you can import calender of your friends for any public calender.


if any help required just comment

April 23, 2009

BookMyShow(online movie ticket booking site) issues.

BookMyShow (A network 18 Venture) is a popular and user Friendly site & i guess one of mostly used after PVR or equivalent. In past i booked many tickets when there was offer of free tickets :)
But technically its weak site. I found many glitches on the site.
Bug 1:
Tickets are available there But user see no ticket available.
With bug1 company can loose potential customer to other sites.

you can create situation where sites will have tickets, but users will see no tickets.

e.g Suppose Gold category has A-1 to A10, B1-B10,

1.Customer A comes to site at 1:00 he want to books 10 tickets and he select the tickets, the website now will not allow others to book those 10 tickets up to 12-15 min irrespectively whether he make the transaction or not.
he marks b1-b10 for booking.

2. Another customer B comes to site @ 1:05 and try to book the tickets for the same movie, same hall. he also want to book 10 tickets. He check that b1-b10 are not available but a1-a10 are available.

3. customer C come to the site @ 1:07 and try to book 5 tickets. he gets the msg that tickets are not available.

now customer though the tickets are not available. now he got two choices.
Either go to another booking site
Check another hall.
The same situation may be with other halls.

so he could spoil his plan to see the movie. so its loss for three entities.

Customer
BookMyshow.
Hall owner.

by chance if customer see tickets are available on other sites. What will be reputation of the site.

So with a little script anybody can show every user that tickets are not available for whole day. A small script or macro will do that.

Bug 2:
Even though bookmyshow allows you to book non-consecutive tickets when consecutive are available.
But when site does not have consecutive, it will not allow to book,Even the no of tickets are available. But site show a message that "tickets are not available please call the particular no. Customer may or may not call. So again tickets are available but customer is unable to book.

Other online movie ticket booking web sites:

Kyazoonga.com (Movies, Cricket, Events)
pvrcinemas.com(Delhi NCR,
Bengalooru,Hyderabad)



download video you just watched without requesting server

Video/Audio/Sound/MP3 download/watching is very resource consuming. You Bandwidth, memory and time.
but some times when you watch a video on the internet and after that you think you want to download the that video but issue is you again need bandwidth and time to download that video.
But you can download the video you just watched/streamed on your computer without requesting the server again. so it will save your time and bandwidth.
e.g you watched a video IPL 2 cricket match. its size is 30 mb. after watching it you want to store it in your mobile or computer.
you just have to use flashGot plugin in your mozilla firefox browser. it store your stream data. you need to just click on the icon. it will download the data to a file. it its already streamed but its half the way, it will request only rest of the video rather then full video.

Articles
http://rajmittal.blogspot.com/2009/04/firefox-best-extensions-my-experience.html

April 22, 2009

How consolidate different Rss Feeds Yahoo Pipes

Yahoo Pipes - a good hosted service. Its not very popular. But its very useful. 
it was started in 7/feb/2007. Its graphical user interface to
 aggregate rss feeds,atoms, cvs, xml,  web pages, and others. it allows you to  creating web apps from various sources

A lot of filters and option exist there to filter the feeds for particular keyword, author. you can sort, remove, filter and add.

e.g you want feeds from various feeders or site. but want to remove duplicate or article having particular description
Yes, you can do with the pipes

2. you want to add some your information to a particular story. Pipes can do it.

3. you want to add photo from the flickr to a particular story. Yes you can do it.

4. you can filter articles using regular expressions.

5. you can limit the no of output articles.

6. you can filter articles of particular date.

7. you can get input from the user for dates or any keyword

you can create small sites using pipes or could add various good articles and sources to you website , increase in traffic.

Help: 
http://pipes.yahoo.com/pipes/docs?doc=operators

A awesome practical example : using google and yahoo pipes.

csharp(c#) customizing Date time format using toString, for display gridview and database storage

Problem 1: how to display date time in 24 hour format
solution : DateTime.Now.ToString("dd/MM/yyyy HH-mm-ss");
Note:Captial HH is used for 24 hour format.
small for 12 hour format


Problem 2: how to display am/pm in date time or 12 hour format time.

Solution : DateTime.Now.ToString
("hh-mm-ss tt");
Key: "tt" for AM or PM

Problem 3: how to display time zone in date time.
Solution : DateTime.Now.ToString("hh-mm-ss tt zzz");
Note: zzz is used to display time zone.

Problem 4: how to show full month name in date.
Solution: DateTime.Now.ToString
("dd-MMMM-yy");

Problem 5: how to format full day name in date.

Solution : DateTime.Now.ToString
("dddd-MMMM-yy");
note: MMMM

Problem 6: how to format full year name in date.
Solution: DateTime.Now.ToString
("dddd-MMMM-yyyy");
note: yyyy

Problem 7: how to reduce/subtract date or days

solution : DateTime.Now.AddDays(-10)

for converting date retrieved from database, firstly convert the column to dateTime and use above techniques.

for details of the above solution, you can read followings.....

In C# DateTime class is used to represent the date & time. But for the display purpose on the front end either on

1 data Grid View (GridView / DataGrid) (as by default time field is shown or you want to show in particular format)
2. labels,
3 storing in the database

in to a particular format
for all the above scenario we need to change the date & time format.
as some need only examples and others full details, i will firstly give examples.

GridView

In Grid view we have two ways to show colums

1. Bound Column
2. Template fields
in both we show date format differently.
Bound Field:

<:BoundField DataField="BirthDate" DataFormatString="{0:d}" HeaderText="BirthDate" SortExpression="BirthDate" >
<HeaderStyle BackColor="Green" Font-Names="Verdana" />
</asp:BoundField>>
here DataFormatString="{0:d}" is used to format the date.
"d:" is standard format already defined in c# library,( For details standard format read full article)
or
DataFormatString="{0:dd/MM/yyyy}"

here all specifier are case sensitive.
Template fields:
as we know template fields can be bind using
Eval and Bind functions.
Difference: The Eval function is used to define one-way (read-only) binding. The Bind function is used for two-way (updatable) binding.

to format a date with any of the above method following syntax is used.
'<asp :Label ID="lblDate" runat="server"
Text=
'<%# Eval("CreationDate", "{0:dd-MM-yyyy}") %>'>
</asp>

<asp :Label ID="lblDate1" runat="server"
Text='<%# Bind("CreationDate", "{0:dd-MM-yyyy}") %>'>
'</asp>
-----------------------------------------------------------------------------------------------------------------------
How it works....
DateField..ToString() is used to convert a datetime object to specific format. Internally gridview call this method.

C-sharp comes with two type of format specifier.
  1. Standard
  2. Custom
1. Standard date Format Specifier.
format of these are already defined in the libary.

dt.ToString("y") will show "January, 2009"
Caution now if you want only "9" you will have to prefix a % to interpret it as custom specifier e.g dt.ToString("%d");

other specifiers are.
  • d 1/1/2009
  • D Thursday, January 01,2009
  • t 8:59 PM
  • T 8:59:59 PM
  • f Thursday, January 01,2009 8:59 PM
  • F Thursday, January 01,2009 8:59:59 PM
  • g 1/1/2009 8:59 PM
  • 1/1/2009 8:59:59 PM
Custom format specifiers
if standard specifier are not working for your requirement. use custom format specifier.

when you are using single custom format specifier you need to append either '%' or surround the specifier with spaces e.g ' d ' . else it will collide with the Standard date Format Specifier and you will get wrong/different format.
-----------------------------------------------------------------------
for Day %d dd ddd dddd 01 thu thurday
------------------------------------------------------------------------
for Year %y yy yyyy
Result 9 09 2009
------------------------------------------------------------------------
for Month %M MM MMM MMMM
Result: 1 01 Jan January
------------------------------------------------------------------------
for Hour %h hh H HH
result: 8 08 20 20
------------------------------------------------------------------------
for minute %m mm
Result: 59 59
------------------------------------------------------------------------
for Sec %s ss
result: 59 59
------------------------------------------------------------------------
AM PM : tt
Result: PM
--------------------------------------------------------------------------
Time zone: zzz
Result +05:30
--------------------------------------------------------------------------

for e.g changing form 12 hrs format to 24 hours format or some time you want to show full year name, full month name.

DataBase

Different databases have different format for storing the date. so it needs to be change.
e.g: like sqlserver, oracle, mysql and postgresql store the date in following format yyyy-mm-dd.
oracle- mm/dd/yyyy etc.

for these purposes C# has provided many format strings.
----------------------------------------------------------------------------------------------
Example: 1-jan-2009 08-59-59 PM
how to create a DateTime Object. This date object will be used for all the example below.

DateTime dt = new DateTime(2009,01,01,20,59,59);
//Parameters order wise

year
The year (1 through 9999).
month
The month (1 through 12).
day
The day (1 through the number of days in month).

hour
The hours (0 through 23).
minute
The minutes (0 through 59).
second
The seconds (0 through 59).
  1. Now to format string date as 20-January-2009
    dt.ToString("dd-MMMM-yyyy");
    Caution: for Month capital M is used.
  2. Now to get the short day name of date and short month name
    dt.ToString("ddd-MMM-yyyy"); //Thu-Jan-2009
  3. To display data in AM PM format. //08-59-59 PM
    dt.ToString("hh-mm-ss tt"); . //08-59-59 PM
    Caution: small "m", small h and "tt" for AM or PM
    HH capital H is used to display time in 24 hour format.
------------------------------------------------------------------------------------------------
Culture also play role while formatting the dates.
by default CLR picks running thread's culture. you can also specify the differnt culture while formatting the string. My system has default culture en-US.

April 20, 2009

Use iphonse as USB external storage for copying/storing files

iPhone got very big storage space like 8gb/16gb/24gb. 24 gb ipod or upcoming Iphone :) as rumour says.

i used to carry my kingstone 4 gb pendrive. and also used to though how to utilise iPhone storage space. i search a lot and got some solution like wifi file transfer using some ftp. but did not like it. as you do not get it everywhere the configuration problems

then i come across diskAid. with it you can copy file to iphone/Ipod and from it to the computer disk. it comes for both windows and mac.
DiskAid is a freeware for PC / Mac which enables to use your iPhone/iPod Touch as external Disk. With DiskAid you can transfer files and folders via USB between your device and your pc
it can be downloaded from "www.digidna.net/diskaid/"

if your phone is jail-broken then only above utility is enough.

if you do not want to jailbreak your contractual phone. just spend $5 and purchase fileaid (www.digidna.net/fileaid/) its from same vendor.

with above tools you have 24gb space in your pocket. use it. Another reason to buy Iphone



Attempting to copy the disk "iphone" failed. an unknown error ocurred (-53)

Attempting to copy the disk iphone failed. an unknown error occurred (-53) (-69) (-36) (-54) (-51) (-48).

This is rare problem that occurs in Iphone. but very difficult to resolve if you don't know the reason. with this problem copy songs to iphone or ipod problem occurs. ie. you will be unable to copy songs or video to this amazing gadget. but itunes will sync calender, outlook and contacts but songs.


Resolution/Solution


According to my experience. it occurs when itunes_control directory got corrupted due to some reason. This is the directory where iTunes store the songs & metadata about the songs. so if its corrupted iTunes will either copy 1-5 songs or none.

I made my phones itunes directory corrupted via deleting and recreating its some interal directory/folders. I searched the web almost a weak to get the solution but in vain. i upated my iphone os from 2.2 to 2.2.1 in try to remove the error. i though new os will again create the directory structure. But after completing the installation Itunes backup the songs with the same itunes_control structure. so all was like hell. i tought i lost my phone's song feature & should go to some expert or get my previous os back but after 15 days i got the solution and that was so easy that i laughed on me even you will.. just get a software like diskaid (www.digidna.net/diskaid/) got o itunes_control folder and rename it to some itunes_control_old.


First Screen:



 


 


 


 


 


Second Screen:



 

 

 

 

 

 


plug out and plug in, then start the Itunes.after connecting to the itunes, you will get the following screen



Select first option "set up as new iPhone" -> continue

Itunes will recognize it as new phone. it will recreate all the directory structure and will ignore the old itunes folder.

Now try to sync it. you will automatically get smile on you face when ituens starts copying the songs.
this article is also applicable to ipod touch, or iPods


Note: Itunes will create a new folder that will not have any of the your previous songs you need to sync it to copy all the songs again to the deviceRenamed folder still on device contains the songs & it occupies space,


You have two choice,

1. Cut paste that folder to the machine/computer (Choose if any of the song is not in your itunes, but only on the device(iphone/ipod), so that later on you can search it, but thats tedious process, because itunes renames the songs while copying to the device, so you have to play songs one by one to get to the desired songs.)


2. Delete the renamed folder, if you have all songs on you machine you can delete this folder. you have to remove that folder from the device using either of above two option, to clear the space from the device.


I wrote this article to save others' 15 day. if you like share it on (digg,fb,delicious,twitter)


Thx , comments are welcome.

April 12, 2009

firefox best extensions my experience

firefox is very innovative and free browser. Every body should try to use it atleast once. tab browsing, extension and speed are some of the factors.

out of these extension are very powerful feature. i m a developer so use many kinda of extension related to programming and normal browsing.

here some of my favorite extension reviews.

Gladder -> Gladder is very useful. it gives you option of 100s of proxies available in the world.
you just have to add the site you want to proxy in the list of sites.

suppose in office :) you want to access
simply add these sites in to the setting .

gmail.com,
orkut.com,
hotmail
facebook

just click on the gladder icon , a ladder will be appear on the same icon. it means now you are using the gladder. so every site added under the gladder will be open using a proxy.
some proxy might not work. no issue. you can right click the gladder and choose change proxy. a new proxy will be used to display the same page. even you can un-proxy the current page.

screenshots

here last icon is gladder.


here you will enter the sites you want to proxy.

FlashGot. You were just watching a video on youtube or dailymotion or any video on anysite. it took around 25 min to stream the video on your computer. now you liked the video and want it in you disk collection. but it will again take 25 min to download on your computer.

don't worry flashgot is here. when any video stream on the FireFox a streaming icon is displayed on your FireFox status just before the list of extension. after the completion of video just click on that. it will automatically download the streamed video to your disk without again going to the server.

above is also same for any mp3 files.

you can download all images including hidden one with just one click using flashgot.
and lot more. for more see the site.

Gmarks: for sync with the google bookmarks across browser. xmarks or foxmarks also good but with this you need another accound. to see existing bookmarks you need to go on to the website. so very time consuming process. that's why gmarks is good.

for web developers.

1. web developer toolbar. Its very useful having very excellent feature required by a web developer. a must one for any web D.

2. firebug. combination of this and web developer can save hours of your time in debugging and coding.

just have these wonderful addons and improved your productivity. eventually appraisals.