Blog

July 8, 2011
Get Drives list using ColdFusion in window

For one of my project where we were building file manager to give selection of server file, here we need list of drive letters to allow user to switch over drive. But I realize that cfdirectory doesn't give list of drives but obvioiusly our second choise is Java File component.

Below is code will retrive list of all drives ...

Comments(5)
Tags: ColdFusion
June 24, 2011
ColdFire not working with Firefox 5.

1. Download coldfire project and unzip it.
2. Find coldfire.xpi and extract it using 7zip.
3. Open install.rdf file and replace maxVersion tag with <em:maxVersion>5.*</em:maxVersion>.
4. replace em:version with <em:version>1.7.207.240</em:version>.
5. Zip again and later change extension to 'xpi'.
6. Remove exiting firebug and coldfire from firefox extension.
7. Download Firebug 1.7.3 (Not 1.8.* beta).
8. Drag and drop new .xpi file to firefox. Once installed restart it.

Comments(0)
Tags: ColdFire, ColdFusion
June 20, 2011
Forward Engineering Visio 2007 Database model to sql server

This is first ever I was trying for Visio Database model to design database without knowing that forward engineering doesn't support on Visio 2007. I googled it lot about this but doesn't find such direct option for forward engineering of Database model. After bit on searching I found that "Orthogonal Software Corporation" provide toolbox which let you export as xml of your database diagram and using xslt file (provided by Orthogonal Software Corportation) you can generate sql script.

Comments(3)
Tags: Visio
June 18, 2011
jquery mobile error avoiding tip

Hi,

For last month I am using jquery mobile. I’ve gone through lots of issues and learned a lot.

Web is good but when it comes with browser, HTML and java-scripts it becomes more buggy!

Generally I use chrome for development, and jquery mobile works perfect as it based on web-kit.

I tested and published my code, for desktop testing I use Firefox and chrome (not testing on IE as its jquery mobile). But when I open it in Android device, I see only half of the page rendering. And this is because of I made mistake in mark up language.

I forgot to close div tag and closed with li tag. In Firefox and chrome its ignored, but in safari it rendered differently.

See this code and output in chrome and safari, you will get the idea what i’m taking about.

Conclusion: While testing you web app IE is your acid test, while targeting web-kit or jquery mobile, safari is your acid test.

By Vikas
Comments(0)
Tags: HTML, jQueryMobile
June 11, 2011
SQL Query to list out all Identity column

Hello

Once I want to get the list of all tables which contains the identity column. After some googling finally I got the sql query which return all the tables which has identity column. It will also return column name, the Seed Values, Increment Values and Current Identity Column value of the table.

 SELECT TABLE_NAME, c.name AS ColumnName, IDENT_SEED(TABLE_NAME) AS Seed, IDENT_INCR(TABLE_NAME) AS Increment, IDENT_CURRENT(TABLE_NAME) AS Current_Identity FROM INFORMATION_SCHEMA.TABLES INNER JOIN sys.tables t ON t.name = TABLE_NAME INNER JOIN sys.columns c ON t.object_id = c.object_id AND c.is_identity = 1 WHERE OBJECTPROPERTY(OBJECT_ID(TABLE_NAME), 'TableHasIdentity') = 1 AND TABLE_TYPE = 'BASE TABLE' 

Comments(0)
Tags: SqlServer
June 10, 2011
Enable/disable link button in jquery Mobile

Hi,

I am developing mobile application, where I use jquery Mobile.

Buttons can be created by input tag, button tag and even link tag. See examples:

By Vikas
Comments(0)
Tags: jQuery, jQueryMobile
June 10, 2011
Run BlackBerry PhoneGap Application on other BlackBerry Models

Hi,

 

I am currently developing BlackBerry Application using PhoneGap.

Basically PhoneGap is a BlackBerry WebWork project. Eclipse has plugins for that.

But when you use this Eclipse plugin, you can have only three simulators listed to test you Application.

By Vikas
Comments(0)
Tags: BlackBerry
June 9, 2011
Scroll to UI element in jquery mobile framework

Hi,

I am using jquery mobile framework for last couple of weeks.

Recently it was required to scroll a page to my listview item.

Jquery mobile has a method called $.mobile.silentScroll().

By Vikas
Comments(2)
Tags: jQuery, jQueryMobile
June 9, 2011
31 CSS Code scraps to make you a Better Coder

It is almost unfeasible to collect in an article all the CSS code snippets that could help you in the future but here are some of the ones that you would need more frequently than others. Don’t get afraid by the length of some of these CSS hack’s code because they’re all easy to apply and where is the case, they’re well documented. Besides the ones that resolve common and annoying problems there are also some that solve new issues brought by the new technologies.

Full record of Browser-Specific CSS Hacks

Cross browser coding can be sometimes tricky but these browser specific css hacks can help you with your problems. With them cross browser compatibility comes to you served on a plate.

Comments(0)
Tags: CSS
May 28, 2011
Enable/Disable auto back button for jQuery Mobile framework

 

Hi,

Currently JQuery Mobile is still in alpha version. As they are moving towards first beta version, they do some changes from previous alpha versions.

One of the key change is, they disable auto back button by default, As they thought that many of the mobile device will have back button. But some may not have.

To enable it, use the following option:

 

By Vikas
Comments(0)
Tags: jQueryMobile