Labels

Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Monday, August 26, 2013

Flash Builder 4.6: Create Flex Project


1) Run Adobe Flash Builder 4.6

2) Click New Flex Project...


3)  Project Name.
Click Next.



4) Server Settings.




5) Build Paths.



6) Project is created.



7) Switch to Design Tab.
Drag a label control to the main windows.



8) Double-Click the control and change the text to "Hello World".



9) Click Save button.




10) Run as Web Application.



11) You get output in Web Browser.




NOTE: Flash Version update.
a) Error for having different Flash Player version.



b) Browser will request for updated version.




c) After update completed, reopen Web Browser.

Wednesday, July 31, 2013

A simple template for publishing mobile comics quickly

Using a combination of Dreamweaver's generated mobile page and PhotoSwipe.com sample file, I have created a template file that a mobile comic artist can load his artwork and publish on mobile platform easily.

1) Download the template file here.

2) Replace the sample image files with your comic page image files.
a) Unzip the template file.
b) Delete the sample image file. Replace with your image files.
c) Zip back the file.

3) Log into build.phonegap.com (you have to sign in first).

In the past, I have already created an app called Hello World.

This time, I just want to replace it with the mobile comic project. 

4) Click the button "update code".
Select the Zip file in Step 2.
Click Upload.


5) Build.Phonegap.com may take some time to process the file.


6) Eventually, the process ended up with errors for iOS and BlackBerry. This is because these platforms require license. As for now, pay attention to the Android's apk.


7) Click the apk button to download.

8) Copy the file to your android and install. It's done.





Sunday, July 21, 2013

ASP .NET 2.0: myproject101


This tutorial uses UltiDev WebServer Pro for running ASP .NET 2.0 applications. To learn more on setup steps, follow this tutorial, http://setup-steps.blogspot.com/2013/07/aspnet-development-environment.html.



1) Create the physical directory for myproject101, C:\Z\aspnet2\sites\myproject101\


2) Using Notepad++, create aspx file C:\Z\aspnet2\sites\myproject101\index.aspx containing the following code:
<h1>Hello World</h1>



3) Create Virtual Host for myproject101
a) Run UltiDev/Web Server Pro/Interactive Dev & Test Server/UWS for .NET 1.x, 2.0, 3.x


b) The Control Panel pops up.
Enter the following details:


c) Click Exec Control button.


d) New links appear beside the button.


e) Click on the link http://localhost:80/myproject101/
A webpage appears on the screen.
Notice that the address box showing the URL similar to the link in the previous step.



4) Create a new aspx file, C:\Z\aspnet2\sites\myproject101\testvb.aspx 
a) Enter the following codes:


b) Browse URL http://localhost:80/myproject101/testvb.aspx



5) Create a new aspx file, C:\Z\aspnet2\sites\myproject101\testcs.aspx
a) Enter the following codes:


b) Browse the URL http://localhost:80/myproject101/testcs.aspx


6) Create a new aspx file, C:\Z\aspnet2\sites\myproject101\formvb.aspx
a) Enter the following codes:


b) Browse the URL http://localhost:80/myproject101/formvb.aspx


7) Create a new aspx file, C:\Z\aspnet2\sites\myproject101\formcs.aspx
a) Enter the following codes:


b) Browse the URL http://localhost:80/myproject101/formcs.aspx


Wednesday, June 26, 2013

Serious security threat for #ColdFusion servers [now covered by a hotfix]

copied from: http://www.carehart.org/blog/client/index.cfm/2013/1/2/serious_security_threat

A Quick Overview

There's quite a bit that you should (and will want to) understand about the hack, which you can learn more in a thread on the Adobe CF Admin forum, where a poster first pointed it out on Friday, and I found that I too had been hit.
See the specific thread for more details, including a fairly substantial reply I offered (which he's marked as "the answer"), where I explain more I'd found about it, including how how it got there, how to confirm how it got there for you, how to rectify things, how one might already be protected against it, etc.
The upshot is that a file is put on your server which gives a hacker pretty much unfettered access to a lot of things including reading/downloading/uploading/renaming and creating files, accessing datasource information, and more. The file to look for is called h.cfm and is placed in the CFIDE directory (at least in the current rendition of the hack, which may very likely change when the hacker learns that it's being publicized.) See the forum thread for more on what specifically to look for.
Fortunately for some, the degree to which the hacker would have access to things may be limited by how careful you've been in other protections, such as explained in the various lockdown guides for CF (here for CF10CF9, and CF8).
I also explain how, despite my own efforts to protect the AdminAPI folder through which the exploit happened, I still fell victim. Perhaps it could happen to others. And it will certainly likely happen to those who have not implemented any protection against that folder (whether blocking access to it by IP address, requiring additional authentication, or otherwise). More in the forum thread.

Monday, June 24, 2013

Add Apache Derby Embedded Database To ColdFusion 10 Server


This tutorial guides the reader how to add an Apache Derby Embedded Database to ColdFusion 10 server.

1) The database used for this exercise is based on http://www.forta.com/books/032166034X/owsdata.zip. Download the zip file, extract it to C:\ColdFusion10\cfusion\db as follows:







2) Browse Admin page at http://127.0.0.1:8500/CFIDE/administrator/
Enter your admin password.


3) In the left Panel, click Data & Services/Data Sources.




4) Type the Data Source Name=ows, select Driver=Apache Derby Embedded, click Add.



5) Browse for the location.
Click Submit.



6) You should get success message.



Saturday, June 22, 2013

Create CFML Project Folder on cfmldeveloper.com


1) Log into your account at http://store.cfmldeveloper.com/LoginUser.aspx (To create an account, click here, http://setup-steps.blogspot.com/2013/06/free-cfml-hosting-at-cfmldevelopercom.html)



2) In the Account Top Menu, Click My Subscriptions


3) In the My Subscriptions Page, click CF FREE


4) In the CF CREE Page, Click File Manager.


5) A new window pops up.
5.1)Click the website name.


5.2) Click on wwwroot folder



6) Create New Folder.
6.1) Click Create Folder.
6.2) Type a name, e.g. cfproject101


6.3) A new folder cfproject101 has been created. Click the folder's name.


7) Create 101-helloworld.cfm
7.1) Click Create File
7.2) Type:
<cfoutput>
Hello World!
</cfoutput>


7.3) Browse.


To turn off debugging mode...
Use the following in your Application.cfm/Application.cfc to effectively turn off the debug output:
<cfsetting showDebugOutput="No">