Posts

ColdFusion All Scopes Local Variables using Java getPageContext() Method

Hi, You might have heard about CF's undocumented features. One of them came in really handy for me. Its the getPageContext() Method. Using this method, we can list all variable scopes. You could do something like this <cfdump var="#getPageContext().getVariableScope()#"> or <cfdump var="#getPageContext().getBuiltInScopes().Variables#"> to get local variables scope and similarly for other variable scope. I read about this method at 2 great blogs, one by Ben Nadel and other by Mark Kruger . http://www.bennadel.com/index.cfm?dax=blog:758.view http://www.coldfusionmuse.com/index.cfm/2008/7/29/get-all-scopes-for-a-request Hope this helps.

Internet Explorer Terminal Services TS Remote Desktop Add On Prompted to enable but not in the list issue Windows XP SP3

Hi, One of our colleague got a new Dell Latitude laptop and when he was trying to remote desktop i.e. remotely login to his work pc, he was getting a message in Internet Explorer saying You need to enable the add-on or Active X control needs to be installed. Step 1. If the Active X control is not installed, please go ahead and install it. Step 2. If you are still not able to access remote desktop and get message saying enable the add-on, you would have to download XP SP3, extract the files and run the following 2 files Tscdsbl.bat Tscuinst.vbs That fixed the problem for me. Hope this helps.

How to write CFID and CFTOKEN as per-session cookies

Nice Article from Adobe highlighting CFID & CFTOKEN, and How to write CFID and CFTOKEN as per-session cookies. Worth Reading. http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_17915 Thanks,

Dreamweaver CS4 - Cool Stuff - Share My Screen - Code Split - View Related files

Hi, I just ended up installing DW CS4 and I noticed some cool features. 1. Go to File Menu, and select Share My Screen. Within minutes after you install Adobe Connect Plug In and the user you invite installs the plug in as well, you will be able to share screens. It just took me and my co-worker(thanks MJ), 2 minutes to test this feature. 2. Another feature. Code Split. You can split the code into 2 parts, so you could be scrolling the code in top section and view the top part or any part at the bottom view. To do this, in your DW, on the very top next to where Menu ends, there is a layout button. If you click on that, you will see different options and one of them is split code. 3. The one I really like the most is the *View Related Files*. We have several includes in our coldfusion code and this features lets me see all the files that are related to this cfm template. I will update this post later. Till then, Bye.

Great Sitepoint Books, Now on Sale. PDF Format. The SitePoint 5-for-1 Sale (3 days only!)

Hello there, If you ever wanted to learn any technology or anything related to IT, please check out the books from Sitepoint . They are very thorough and have in depth explanation of topics with very good examples. To sweeten the deal, sitepoint is having a good sale going on now for there books in pdf format. Its called The SitePoint 5-for-1 Sale (3 days only!). Go here http://www.sitepoint.com or The SitePoint 5-for-1 Sale (3 days only!) If nothing works, just paste this url in your browser. http://5for1.aws.sitepoint.com/ I can guarantee that this would be the best purchase you would have done for yourself. HTH.

Fifa 09 PS3 Watch Rooney and Higuain play against each other.

I saw this video and it was amazing feeling. No wonder, soccer is the beautiful game we know. Watch this. I got this link from this site http://www.eagames.co.uk/productsview.aspx?id=14517&platname=ps3&section=pnl11363

ZooM In - Send Photos to India from US

Image
I recently used service from ZooM In for sending my pictures to my family in India. Everyone liked it. Check out there promotion.

Eid Ul Fitr 2008 My Pictures

Image
Here are some of my pictures taken on Eid ul Fitr on Sept 30 2008. Yeah, thats right, its a Thobe / DishDasha and I hope you love it ;-). And Finally, one from my office. Yeap, you guessed it right, I am an Arsenal Fan. Enjoy!!!!!

My pictures...From LA, NY, Home and Misc

Image

Windows XP Utilities - Dual Monitor, Dual Taskbar, ClearType font.

If you like to be power user, then you will love these free utilities for Windows XP. The cleartype font utility makes the appearance of text crisp on your monitor. It can be downloaded for free from microsoft here http://www.mediachance.com/free/multimon.htm There is a another free utility which allows you to have 2 taskbar in Windows XP. The link for download is here http://www.mediachance.com/free/multimon.htm I am very happy with the use cleartype font utility. It changes the appearance of text 200%. No kidding about that. You could also have 2 different wallpapers on the monitors with this utility http://www.binaryfortress.com/displayfusion/ . I have not tried this one, just to let you know ;-). Good Luck.

Moving Bookmarks only --- backup of bookmarks in Firefox

In Windows XP, Firefox profile folder is located at "%APPDATA%\Mozilla\". Firefox saves backup copy of your bookmarks in the "%APPDATA%\Mozilla\Firefox\Profiles\sometext.default\bookmarkbackups" folder. So all you have to do is in your new FF instance, go to the profiles\sometext.default folder, and replace the old bookmarks.html file with the one you are copying over. Thats all to it. Within a minute you can have your bookmarks in the new FF instance. This is the manual way of doing it. FF has import wizard which will do the same for you. I found this method since I was working on 2 machines and I just wanted to take bookmarks on new machine without any extensions. HTH.

Making text bold in Adobe Acrobat

If you want to make a text bold in Adobe Acrobat, you will have to 1. first select Advanced Editing Toolbar. 2. In advanced edit toolbar, select TouchUp Text tool. 3. Then select the text you want to make bold, right click, and select properties. 4. Under Text tab, you will find Font option. 5. Select Font option and you will see Bold option for the font that is being used. For example, if selected text is font type Verdana , then under Fonts option, you should see a Verdana Bold option. If you do not see respective Bold Font, then you would have to pick a font that supports Bold Option. I know, its unlike Word but atleast we know the way now how to do make text bold in Adobe Acrobat.

Dreamweaver 8 Export Import Multiple Site Definitions in less than 5 minutes.

Exporting or Importing Site Definitions in Dreamweaver is important if you have a lot of sites and if you want to setup new environment. This tutorial will help you get it done in less than 5 minutes. Open Dreamweaver, Go to Site Menu, Select Manage Sites option. You will see the list of sites you have configured in your DreamWeaver editor. Select the site which you want to export the site definition of, and select the button Export from list of options. It will ask you to save the site definition as a nameoffile.ste file. Save it at a convenient location. For importing , do the same steps as above, except that you will select IMPORT button instead of export button. Select the location of *.ste file and you will have site definition setup in your new environment. Tips & Tricks : Lot of people want multiple sites to be imported and the trick for this is that when you are exporting, hold the CNTL key and select all the sites you want or need in new environment. Hit export button and...

My first video on youtube about fifa 07 ps2 soccer goals online

Here is a link to my video, fifa 07 ps2 soccer goals online on http://www.youtube.com/watch?v=LagMQOf6lzk If you are in some restricted region like dubai UAE, the link will say, video no longer exists. In that case, please try any of these 3 links below. The fix to this issue is to append &fmt=6 or &fmt=16 or &fmt=18 to the youtube url 1. http://www.youtube.com/watch?v=LagMQOf6lzk&fmt=6 2. http://www.youtube.com/watch?v=LagMQOf6lzk&fmt=18 3. http://www.youtube.com/watch?v=LagMQOf6lzk&fmt=16 USA Region below Enjoy!!!!

Decimal datatype in sql server 2000

The decimal data type in sql server 2000 has precision and scale. The precision defines how many length of chars that can exist from left to right including the the numbers after the decimal point. For example col1 decimal(3,2) can contain total of 3 numbers. 9.20 is valid whereas 99.2 is invalid because sql server will add a zero at end to make it 99.20 and that invalidates the rule of precision 3. try this drop table testDec2 create table testDec2(col1 decimal(8,2)) insert into testDec2 values (999996.9999999) --number on left is of len 6 and even thogh we have 7 digits after decimal point, sql -- will truncate the number to insert 999997.00 . Notice the rounding. -- if you try to insert 999999.99 it wont work because of rounding. The number will -- be 1000000.00 i.e. total of 9 chars. select * from testDec2 give it a try. ;-)

Outlook appearance like Gmail Conversation style

Found this great tutorial to mimic the gmail conversation style threading of conversation / emails in one single thread. http://www.petroleumjelliffe.com/2006/02/make-outlook-work-like-gmail/ Right click on From, or Subject and select Field Chooser. Select Conversation and drag it to any place where From, Subject etc appear. Conversation will appear along From, Subject wherever you have placed it. Right Click Conversation and select Group by this field. Thats it. You are done. I got a message saying cant group by Date and conversation. so I sorted my mail by sender and then clicked on conversation. It worked for me. Make sure you arrange mail in such a way that the new email is listed on top. HTH.

Translators not loaded --- Translators error in Dreamweaver for coldfusion.htm

I use Dreamweaver 8 on Windows XP and recently started to get this error message for no reason. It just started one day. the following translators were not loaded due to errors coldfusion.htm has configuration information that is invalid. This could also happen for XSLT.htm has configuration information that is invalid, ASP.htm: has configuration information that is invalid. ASP.NET.htm: has configuration information that is invalid. and so on. The solution to this problem is to delete FileCache_X.dat files from the Dreamweaver user configuration folder, where X is a random number and it could be different for your system. See below Dreamweaver 8 on Windows XP: C:\Documents and Settings\[username]\Application Data\Macromedia\Dreamweaver 8\Configuration All the best. I was able to successfully solve this problem

CFSchedule task - how to schedule a job in ColdFusion 7

This article will show how to schedule an automated job in ColdFusion 7 using CF administrator. Login to CF 7 Administrator and from left hand side, under Debugging & Logging, select Scheduled Tasks Option. Select create new. Under task name enter a task name, start date enter the date from which you want to start scheduled task, you could set daily or monthly depending on your preference and make sure specify time, in my case i entered 9:00 AM, under URL I entered my url like this, http://myipaddress/MonthlyReport - DontDelete/R_monthlyreport.cfm where MonthlyReport - DontDelete is a folder to make sure our report runs without any authentication that is usually specified in Root/Application.cfm. Instead of IPAddress, you could enter a url to a site as well but make sure you have right permissions. Finally, you could do save output to file and make sure specify the path to output file like this C:\Inetpub\wwwroot\clientname\MonthlyReport - Dont Delete\RepOut.htm Thats all, and y...

Coldfusion 7 - Accessing images from a network share

So this morning I had an issue where in images were not being displayed. The images are stored on network share on a different machine. I used this code to make it work, thanks to the help provided by http://www.acfug.org/ members. welcome to the test page..... <cfset theFile = "\\servername\sharename\CF_Chart_Share\test.jpg"> <cfif fileExists(theFile)> File exists <cfelse> does not exist </cfif> <br><cfoutput>#theFile#</cfoutput> <br> <!--- we have code in img2.cfm that will get us the image --> <br><img src=" img2.cfm "> The file img2.cfm has the code below <cfcontent type="image/GIF" file="\\servername\sharename\CF_Chart_Share\test.jpg"> I tried adding the code cfcontent in the same page but that was causing only the image to be displayed i.e. no text was being displayed. Hope it helps someone. Ajas.

Webex file extension .wrf will not open or rendered by IIS web server

We recently moved our web application to new server and we noticed that the webex files with extension .wrf was not being shown to user or was not being rendered by IIS. So on doing further research, I came to know that we needed to set a MIME type for the wrf extension. The .wrf extension needs to be set to application/octet-stream. Go to IIS settings, select the website or the web root folder and right click and select properties. Click on HTTP Headers tab and the bottom click on MIME Types button. Click new button and add .wrf in extension and application/octet-stream in MIME Type text box. Click OK and Apply at next screen and you should be done. After I clicked OK and Apply, the screen Inheritance override was shown. I said cancel to all. Here is some info from IIS help. If you set or change a MIME type that conflicts with a setting at another node in the hierarchy, you are prompted with an Inheritance Override dialog box where you can specify the nodes to which the new setting a...