Alepsh Loriya

Web Developer and Demandware development Consultant 

view:  full / summary

30+ Enormously Useful Adobe Air Applications

Posted by alpeshloriya on March 26, 2010 at 10:28 AM Comments comments (0)

Today we presenting some most useful Adobe Air Applications, one of the most appreciated application platform, it has become a very much popular platform for internet-enabled desktop applications.

This application (Adobe Air)with rich features helping for web designers and developers too, evenweb developers are able to build application using HTML, Ajax,JavaScript, Flex and famous tool Adobe Flash.

AOL Top 100 VideosEveryone likes listening to music.  This Adobe AIR desktop widgetoffers a simple to use way to watch music videos through AOL.  Thevideos are categorized by ranking and genre.


GeeMailGeeMail is an Adobe AIR desktop widget that connects to GMail. Configuring POP or IMAP is not necessary to get online.  And if yousend an e-mail without being connected to the web, GeeMail willautomatically send it after an Internet connection is detected.


Color BrowserStore and manage sets of color palettes with colorbrowser. Open ordrag and drop ASE files from Kuler or ColourLovers into colorbrowser toadd the color palettes to your collection.


Wikipedia Desktop Widget


AlertThingyAlertThingy is an Adobe AIR widget that can send Tweets and updateFacebook statuses.  AlertThingy can also upload pictures to Flickr andupdate Tumblr blogs.  If you use business social tools such as Yammer,Basecamp, or Huddle, AlertThingy will also work for you.  AlertThingyalso works as an RSS reader.


Flickr Desktop SearchFlickr Desktop Search is an Adobe AIR based utility which helps youto search Flickr images right from your desktop. The application isvery easy and simple to use and basically has three tabs, one is forphoto search, second one for groups and the last one for people. Allyou need is to enter the keyword and select the appropriate tab andclick the search button.


DiggTopDiggTop is an application for Windows and MacOSX that lets you viewa blended list of your favourite Digg topic or keyword feeds. Inaddition to the full Digg submission information, it will also displaya slideshow of images it can scrape from the linked article.

View video submissions from your favourite Digg video categories,and preview some videos right in the application. You can also set upkeyword and Digg count filters that will notify you with a sound andicon when new stories match your criteria.


SpreadtweetSo, you work at a big corporate, huh?

And you’re not allowed to use Twitter…

Wouldn’t it be awesome if there were a Twitter tool that looked just like Excel?

Welcome to Spreadtweet.


NASDAQ Market ReplayNASDAQ Market Replay is a powerful replay and analysis tool ofconsolidated order book and trade data for NASDAQ-, NYSE- andAmex-listed securities.


kuler desktopNew! Import kuler themes directly into Creative Suite 3 Illustrator,InDesign, and Photoshop. Select Save Theme menu to learn more. Colorinspiration. Browse and search color themes from kuler(, an online application to create and share colorharmonies.

View RSS feeds of Highest Rated, Most Popular, Newest, and RandomlySelected themes. Drag and drop themes as transparent “tear offs,” toscale and view over any application.


Random PatterEasy app that renders paterns based on given parameters. Renderedimage can be used as a base of a mosaic. Preset parameters can be savedand loaded (in xml file format) and output image can be saved as SVGdocument.


Contrast-AContrast-A allows users to interact with a 3-dimensional RGB colorspace, experiment with color combinations, check the contrast accordingto both WCAG 2.0 and 1.0 and see the results for different types ofcolor deficiency. Custom color palettes can be created, printed andsaved as Pdf to the user’s desktop.


DeskTubeDeskTube is an Adobe AIR application that is conducive for usingYouTube, Twitter, and Facebook.  DeskTube has 4 way video chat,playlist editing, the ability to search/view/upload videos, andpost/view comments.

DeskTube also allows you to update tweets and Facebook statuses.  Video recording is compatible with DeskTube.


EarthBrowserEarthBrowser is an innovative earth simulation that combines an easyto navigate 3 dimensional globe with real-time weather conditions and 7day forecasts for thousands of locations. Live earthquakes, satellites,webcams, volcanoes and current cloud animations are also featured.Great educational tool, a must have for avid weather watchers!


TweetDeckTweetDeck is your personal browser for staying in touch with what’shappening now, connecting you with your contacts across Twitter,Facebook and more.

TweetDeck shows you everything you want to see at once, so you can stay organised and up to date.


Flickr FlipperFlickr Flipper allows you to search for Flickr photos and alsosearch for photos from specific Flickr users. It uses Papervision todisplay the photos one at a time and even allows you to download thephoto to your computer. Currently it only returns up to 100 photos ofyour search.


ChalkboardThis is an easy and fun to use sketching tool with a chalkboardinterface. Pick up chalk from the tray, press and drag on the board todraw. Line thickness and transparency are set with the controls in thelower left corner of the board.

Board can be stretched by grabbing and dragging the frame corners.It can also be “maximized” to fill your computer screen, giving youlots of room to draw.


StudioCloud 3.0 – Free Business SoftwareStudioCloud is free business management software that provides anintegrated system including Client Management, Scheduling,Point-of-Sale, Bookkeeping, Reporting, Marketing Campaigns,Project/Event Management and much more!


Font Picker

BetaDesigns CaliperThe Calilper floats above other applications on screen and can be used to measure anything on your monitor.

Possible Usages

* Web Designers : Layout Measurements.

* Graphic Designers : Photo and Illustration Measurements.

* CAD Engineers : Measuring Architectural Drawings.


ImageSizerImageSizer is an application built to resize, rotate, optimize andrename a batch of images, outputting them as a single compressed zipfile – perfect if you want to e-mail a load of images off your digitalcamera, or a folder of images – just drag, drop, fiddle with settingsand press ‘Compress your images’.

Once the files are processed, you can simply drag and drop again toexport all of your images as a compressed zip archive or a folder onyour hard drive.


JustResizeIt!JustResizeIt! introduces a brand new way of resizing images – just drag and drop them!

1. Drag and drop one or more images,

2. wait a few seconds, and

3. drag and drop resized images into an e-mail, an office document, or a folder

You can create widgets that define how the images will be resized(for sending in e-mail, using in a document, upload into a web gallery)Also, you can have a customized JustResizeIt! to your company’sCorporate Identity and redistribute it – a great advertisement!


PhotoTableWhat if there’s a nice picture on a website you passing by? Save it,go to the folder, watch it and then close and hope you’ll find itagain? There’s a better way to look at your favorite pics every time aslong as you become sick of it

Just drag the image out of every browser to the PhotoTable Icon and itshows up on your screen, always in top, on- and offline. You cancollect them on your screen, drag them, show/hide all at once and ofcourse delete them one by one or even all at once. Bring them to frontor back, change your PhotoTable Icon or copy the link of the picturewas assigned to. You also can drag files from your os to the screen bydragging them to the PhotoTable Icon without losing the original imagewhen deleting them from screen.  Available languages are english andgerman. Have fun!


Icon GeneratorIcon Generator is a little application that lets you generate a CS3or Web 2.0 style icon, only 3 step. Pick color, type characters, andsave it. Just create 4 different sizes of the icon.


Xe-IMG Image Editor V3- Import .jpg .png .gif .swf and URL-extern Photos supported – ZoomPhoto, Mask Image supported – Filters Sharpen, Enhance, Embossingsupported – RGB Color settings, Alpha transparent supported – SetBackgroundcolor, Statusbar, Info…


Splashup Light – Photo EditorSplashup Light is an image editor tailored for those that want toenhance, beautify, or merely play with their photos. Effects includeLevels, Contrast/Brightness, Hue Saturation, Text Editing and Shapesand much more. Splashup Light is ideal for those using Tablet PCs andother Portable Computers, but many find it just as suitable foreveryday use on their desktops.


Google Calendar Invoice CreatorThis application reads an RSS feed from your Google Calendar inwhich every created appointment the number of hours worked for aproject represents. Based on the title it filters the appointments,calculates the total of hours and creates your invoice in html or textversion. Obviously you need a Google account to use this application.


jigsawliteJigsawlite enables you to make your own digital photo into youroriginal jigsaw puzzle game easily-playable on your desktop, by only asingle file-drag-and-drop action.


Ora Time and ExpenseOra Time and Expense is a small easy-to-use application for trackingand generating timesheets, expense reports, and invoices. Use the tasktimer for tracking time sheet activities. Use your webcam to scanexpense receipts, which automatically attach to expense reports.Customizable report templates generate time sheets, expense reports,and invoices for you to submit in HTML, Excel, CSV, or XML. Adobe® AIR™Developer Derby Best Business HTML Application winner. Updated to AIR1.5.1


designviewProvides basic functionality of the Flex Builder Design View.


LivebrushLivebrush is a unique motion-based drawing tool. Use the power ofmotion to toss graphics around the screen or elegantly swing the brusharound your cursor.  Over 100 styles and decorations.

Export lines you draw as vector files for use in other graphics applications.

Easily modify or create your styles while learning each setting using the convenient style preview.

Developers can also use Actionscript to dynamically control or augment brush movements.



ASP / PHP Cross Reference

Posted by alpeshloriya on August 29, 2009 at 6:00 AM Comments comments (0)

ASP (VBScript)

PHP (v4.3+)

General syntax

ASP Comments, inline 'my dog has fleas PHP Comments, inline //my dog has fleas
ASP Comments, block
not available?
PHP Comments, block /*
  The quick brown fox
  jumped over the lazy dogs.
ASP, Escaping quotes ""

"var text1=""<img src=\""blank.gif\"">"";"
PHP, Escaping quotes \" or use ' like javascript

'var text1="<img src=\"blank.gif\">";';
ASP Command termination None, but : can be used to separate commands
on the same line.
PHP Command termination Each command must end with ; but
multiple commands per line are allowed.
ASP Screen output response.write "hello"
PHP Screen output echo "hello";
ASP Newline characters vbCrLf

response.write "hello" & vbCrLf
PHP Newline characters "\n" (must be inside "", not '')

echo "hello \n";
ASP Variable Names Not case sensitive,
so fName is the same as FNAME
PHP Variable Names Case sensitive AND must begin with $
so $fName is NOT the same as $FNAME

String Functions

ASP String concatenation &

fname=name1 & " " & name2
emsg=emsg & "error!"
PHP String concatenation . and .=

$fname=$name1." ".$name2;
ASP, Change case LCase(), UCase()

PHP, Change case strtolower(), strtoupper()

ASP String length Len()

PHP String length strlen()

ASP, Trim whitespace Trim()

PHP, Trim whitespace trim() and also ltrim(), rtrim()

ASP String sections
Left(), Right(), Mid()

Left("abcdef",3) result = "abc"
Right("abcdef",2) result = "ef"
Mid("abcdef",3) result = "cdef"
Mid("abcdef",2,4) result = "bcde"
PHP String sections

substr("abcdef",0,3); result = "abc"
substr("abcdef",-2); result = "ef"
substr("abcdef",2); result = "cdef"
substr("abcdef",1,4); result = "bcde"
ASP String search forward, reverse
Instr(), InstrRev()

x=Instr("abcdef","de") x=4
x=InstrRev("alabama","a") x=7
PHP String search forward, reverse
strpos(), strrpos()

$x=strpos("abcdef","de"); x=3
$x=strrpos("alabama","a"); x=6
ASP String replace Replace(string exp,search,replace)

PHP String replace str_replace(search,replace,string exp)

$temp=str_replace("orange","apple",$temp); $temp=str_replace("'","\\'",$temp);
ASP, split a string into an array

PHP, split a string into an array

ASP, convert ASCII to String x=Chr(65) x="A"
PHP, convert ASCII to String $x=chr(65); x="A"
ASP, convert String to ASCII x=Asc("A") x=65
PHP, convert String to ASCII $x=ord("A") x=65

Control Structures

ASP, if statements
if x=100 then
elseif x<200 then
end if
PHP, if statements
if ($x==100) { 
else if ($x<200) {
else {
ASP, for loops
for x=0 to 100 step 2 
if x>p then exit for
PHP, for loops
for ($x=0; $x<=100; $x+=2) { 
if ($x>$p) {break;}
ASP, while loops
do while x<100 
if x>p then exit do
PHP, while loops
while ($x<100) { 
if ($x>$p) {break;}
ASP, branching
select case chartName
case "TopSales"
theTitle="Best Sellers"
case "TopSingles"
theTitle="Singles Chart"
case "TopAlbums"
theTitle="Album Chart"
case else
theTitle="Not Found"
end select
PHP, branching
switch ($chartName) {
case "TopSales":
$theTitle="Best Sellers"; $theClass="S";
case "TopSingles":
$theTitle="Singles Chart"; $theClass="S";
case "TopAlbums":
$theTitle="Album Chart"; $theClass="A";
$theTitle="Not Found";
ASP functions
Function myFunction(x)
myFunction = x*16 'Return value
End Function
PHP functions
function myFunction($x) {
return $x*16; //Return value

HTTP Environment

ASP, Server variables
PHP, Server variables
@$_SERVER["HTTP_REFERER"]; @ = ignore errors
ASP Page redirects Response.redirect("wrong_link.htm")
PHP Page redirects header("Location: wrong_link.htm");
ASP, GET and POST variables Request.QueryString("chat")
PHP, GET and POST variables @$_GET["chat"];       @ = ignore errors
ASP, prevent page caching Response.CacheControl="no-cache"
Response.AddHeader "pragma","no-cache"
PHP, prevent page caching header("Cache-Control: no-store, no-cache");
header("Pragma: no-cache");
ASP, Limit script execution time, in seconds Server.ScriptTimeout(240)
PHP, Limit script execution time, in seconds set_time_limit(240);
ASP, Timing script execution

...ASP script to be timed...

response.write duration &" seconds"
PHP, Timing script execution

...PHP script to be timed...

echo $duration." seconds";

//required function
function microtime_diff($a,$b) {
list($a_dec,$a_sec)=explode(" ",$a);
list($b_dec,$b_sec)=explode(" ",$b);
return $b_sec-$a_sec+$b_dec-$a_dec;

File System Functions

ASP, create a file system object (second line is wrapped) 'Required for all file system functions
PHP, create a file system object Not necessary in PHP
ASP, check if a file exists pFile="data.txt"
PHP, check if a file exists $pFile="data.txt";
ASP, Read a text file
xSize=xPage.Size 'Get size of file in bytes

temp=xPage.Read(xSize) 'Read file
PHP, Read a text file
$temp=file_get_contents($pFile); //Read file

Time and Date Functions

ASP, Server Time or Date Now, Date, Time
PHP, Server Time or Date date()
ASP, Date format (default) Now = 8/29/2009 4:59:26 AM
Date = 8/29/2009
Time = 4:59:26 AM

Various ASP functions extract date parts:

Month(Date) = 8
MonthName(Month(Date)) = August
Day(Date) = 29
WeekdayName(Weekday(Date)) = Saturday
WeekdayName(Weekday(Date),False) = Sat
PHP, Date format There is no default format in PHP.
The date() function is formatted using codes:

date("n/j/Y g:i:s A") = 8/29/2009 4:59:26 AM

date("n") = 8
date("F") = August
date("j") = 29
date("l") = Saturday
date("D") = Sat

Numeric Functions

ASP, convert decimal to integer Int()

PHP, convert decimal to integer floor()

ASP, determine if a value is numeric IsNumeric()

if IsNumeric(n) then ...
PHP, determine if a value is numeric is_numeric()

if (is_numeric($num)) {...}
ASP, modulus function x mod y
PHP, modulus function $x % $y

asp dot net interview question book

Posted by alpeshloriya on June 23, 2009 at 4:56 AM Comments comments (0)

Posted by alpeshloriya on April 18, 2009 at 9:07 AM Comments comments (0)

Enabling Image Uploading in FCKEditor for PHP

FCKEditor is one of the most feature rich web based WYSWYG editors. I use it for almost all my projects. However, if you wish to enable image uploading in it, you have to jump through some hoops. This is a small tutorial on how to enable image uploading in FCKEditor. This tutorial is aimed at FCKEditor 2.3.2 - but the principle works in other versions of FCKEditor as well



Open the file FCKEditor/fckconfig.js

Make sure that the default php connector is selected.

Line : 143 - Approx.

var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py  var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php

By default, the ASP connector is enabled. If any FCKEditor developer is reading this, please make the default connector PHP as it is more commonly used than ASP.


Open FCKeditor/editor/filemanager/browser/default/connectors/php/config.php

Enable the connector

Line : 24
// SECURITY: You must explicitelly enable this "connector". (Set it to "true";).  $Config['Enabled'] = true ;

Make sure that the given 'UserFilesPath' folder exists in the server and has write permission.

$Config['UserFilesPath'] = '/UserFiles/' ;


Open file FCKeditor/editor/filemanager/upload/php/config.php

Enable the uploader

Line : 24
// SECURITY: You must explicitelly enable this "uploader".   $Config['Enabled'] = true ;

All configurations are done.

Test the Editor

Now open up the url : in the browser

Select PHP from the 'Connector:' drop down and click the 'Get Folders and Files' link.

If the files and folders of your 'UserFiles' folder is shown in the XML format, all is fine.

Form Mail via CDONTS

Posted by alpeshloriya on April 4, 2009 at 6:28 AM Comments comments (0)

If request("submit") <> "" THEN
Set objEMail = Server.CreateObject("CDONTS.NewMail")
objEMail.To = "[email protected]"
objEMail.From = Request("from")
objEMail.Subject = Request("subject")
objEMail.Body = Request("message")
Set objEMail = Nothing
Response.Write("Message Sent")


<form method="post" action="test.asp">
From Email: <INPUT type=text name="from"><br />
Subject: <INPUT type=text name="subject"><br />
Message: <TEXTAREA name="message" rows=10 cols=40>
</TEXTAREA><br />

<INPUT type="submit" value="Send" name="submit">

End If

ASP link to flash, i am facing this problem

Posted by alpeshloriya on February 16, 2009 at 6:40 AM Comments comments (1)


                      sqlprojdtl="select * from UPLOAD_PRODUCT_FILE"
                        Set rsdtl = cn.execute(sqlprojdtl)
                        if not rsdtl.eof then
                            uploadID            =    rsdtl("ID")
                            FILE_NAME    =    rsdtl("FILE_NAME")
                            UPLOADED_DATE        =    rsdtl("UPLOADED_DATE")                           
                        end if
              Response.Write "test"

In above code i want that when i click on Hyper Link it should open the FILE NAME that is COME FROM DATABASE.....

PLease help me in this....

SQL scripts that i found very helping

Posted by alpeshloriya on January 31, 2009 at 2:26 AM Comments comments (0)




@pid int,
@allocatedby VARCHAR(1000),
@allocatedto VARCHAR(1000),
@allocateddate datetime,
@approxtime VARCHAR(50)
   UPDATE PROJECT_DTL SET allocatedby = @allocatedby, allocatedto = @allocatedto, allocateddate = @allocateddate, approxtime = @approxtime WHERE pId = @pId
   INSERT INTO PROJECT_DTL (pid, allocatedby, allocatedto, allocateddate, approxtime) VALUES (@pid,@allocatedby,@allocatedto,@allocateddate,@approxtime)

@allocatedby VARCHAR(1000),
@allocatedto VARCHAR(1000),
@allocateddate datetime,
@approxtime VARCHAR(50)
        (pid, allocatedby, allocatedto, allocateddate, approxtime)     
    VALUES  (@pid,@allocatedby,@allocatedto,@allocateddate,@approxtime);

/* for Index Views apply [WITH SCHEMABINDING] */
from dbo.project_MGMT
INNER JOIN dbo.project_Desc
on =

CREATE VIEW [dbo].[v_list]
/* for Index Views apply [WITH SCHEMABINDING] */

LEFT JOIN dbo.project_desc
ON =

LEFT JOIN dbo.project_status
ON =

JOIN dbo.project_dtl
ON =

How To install SQL server

Posted by alpeshloriya on January 31, 2009 at 2:15 AM Comments comments (1)
when you are trying to install the SQL SERVER you need to add the Following code in the setup.ini


Alpesh J. Loriya. Software Developer

Posted by alpeshloriya on October 28, 2007 at 5:49 PM Comments comments (1)
Hi Friends,

This is Alpesh J. Loriya from Vadodara,India .

I have done a lot of programming in c/c++,vb my area of interest is graphics.This site is for giving you a taste of my programming in c/c++ , VB , Flash, Webdesigning. You can find all of my programs on Projects(Under construction) section. If you have something to share you are most welcome.Please send your comments for improving this site and my programs . All programs here are completely devloped by me & i am providing it to you ,you are free to use these programs (all rights are donated).
that's from my side waiting to hear from you.

This is your A place to talk about what you're doing and thinking and have your friends and visitors comment.  You can insert photos and links and  here too.