Learn the powerful enterprise adaptable database:
Getting Started With ADABAS & Natural
Thursday, May 30, 2013
ColdFusion 10 on Windows
Adobe ColdFusion solves the day-to-day challenges of Internet application development, allowing you to be extremely productive as you create and deliver engaging online applications.
Because it fits into any IT environment, you can use ColdFusion for everything from small departmental applications to highly scalable, reliable implementations of your most important business applications.
Download ColdFusion 10 software from: http://www.adobe.com/support/coldfusion/downloads.html#cf10devtools (You have to be a registered user)
Download ColdFusion 10 Official Manual from: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/coldfusion_10_dev.pdf
ColdFusion 9 on Windows
ColdFusion is one of the easiest programming environments to use, and enables you to create powerful server-side web applications very quickly, with much less code than other technologies such as ASP, PHP etc.
ColdFusion integrates many Internet technologies such as XML, Java, web services etc, and as such, your applications can be as small or complex as required.
ColdFusion consists of two main elements:
A ColdFusion server (which runs on top of your web server),
ColdFusion templates (or files), which you write using ColdFusion Markup Language (CFML).
Read more at: http://www.quackit.com/coldfusion/tutorial/coldfusion_introduction.cfm
Download ColdFusion 9 software from: http://www.adobe.com/support/coldfusion/downloads.html#cf901proddl (You have to be a registered user)
Download Official ColdFusion 9 Manual from: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/coldfusion_9_dev.pdf
ColdFusion 8 on Windows
ColdFusion is one of the easiest programming environments to use, and enables you to create powerful server-side web applications very quickly, with much less code than other technologies such as ASP, PHP etc.
ColdFusion integrates many Internet technologies such as XML, Java, web services etc, and as such, your applications can be as small or complex as required.
ColdFusion consists of two main elements:
A ColdFusion server (which runs on top of your web server),
ColdFusion templates (or files), which you write using ColdFusion Markup Language (CFML).
Read more at: http://www.quackit.com/coldfusion/tutorial/coldfusion_introduction.cfm
Download ColdFusion 8 from: http://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion8
or, alternatively read http://www.dcepler.net/post.cfm/last-day-to-download-cf-8-and-9-from-adobe-with-verity
ColdFusion MX 7 on Windows
In this lesson of the ColdFusion tutorial, you will learn...
- How ColdFusion works.
- The basics of ColdFusion Markup Language (CFML).
- To write a simple ColdFusion page.
- To use ColdFusion operators.
- To pass values from one page to another via the URL.
- To process a form with ColdFusion.
Read more at: http://www.learn-coldfusion-tutorial.com/
Download ColdFusion MX 7 from: http://macromedia-coldfusion.en.softonic.com/
-----
Sunday, May 12, 2013
SQLite on WIndows
This guide is rather technical. If you just want to try out SQLite without having to know the technical parts of it, read this tutorial, http://setup-steps.blogspot.com/2013/05/sqlite-database-browser-portable-on.html
1) Browse http://www.sqlite.org/download.html
Look for Precompiled Binaries for Windows
2) Download the following:
a) http://www.sqlite.org/2013/sqlite-shell-win32-x86-3071602.zip
b) http://www.sqlite.org/2013/sqlite-dll-win32-x86-3071602.zip
3) Put the files in appropriate folder, example:
a) C:\sqlite
Note: Having a specific folder at root makes it easy for you to link the path to other applications. Practical for application developer. You need to register this path to Windows System Environment to allow Windows to recognize SQLite command.
b) C:\Program Files (x86)\sqlite
Note: It is common to keep all application programs in "Program Files". Practical for the application end-user. You need to register this path to Windows System Environment to allow Windows to recognize SQLite command.
c) C:\Windows\System32
Note: Keeping the files in "C:\Windows\System32" allows the Windows automatically find the sqlite3 program when you run Console Command.
4) Assuming that you have saved the files to appropriate directory and performed necessary steps to register the path to Windows Environment Variable, you will get sqlite prompt when you type sqlite3 in the Command Prompt.
This is a screen example if you follow step 3C.
SQLite Database Browser Portable on WIndows
1) Browse URL http://portableapps.com/apps/development/sqlite_database_browser_portable
Click Download Now
2) Run the paf.exe program
Click Next.
3) Specify Installation Directory.
4)Installation is done.
Optionally, tick run SQLite Database Browser
Click Finish.
5) If you choose to run SQLite Database Browser, you'll get the following:
6) Create New Database...
By default, a new database will be stored at {your SQLite Database Browser path}/Data/
Notepad++ Java SE 7u 11 NppExec AWT Swing Applet
-----
♥ Notepad++ is one of the best editors, simple yet powerful.
-----
Copied from: http://www.quarkphysics.ca/scripsi/java_notepad/
Notepad++ as a Java IDE
♥ Notepad++ is one of the best editors, simple yet powerful.
♥ It can easily be used to compile and run Java programs.
♥ You can put Notepad++ and Java on a USB drive and program in Java everywhere!
♥ Thus it is a simpler, more streamlined alternative to Eclipse.
[If you can't get this to work, use Eclipse - but it won't run off a USB drive.]
♦ Unfortunately, unlike Java, it only runs on Windows.
In this article I’ll explain how to setup Notepad++ and Java so that you can use Notepad++ to compile and run Java programs.
These instructions are to set things up so that everything run on a USB flash drive.
If you want to install the programs onto your hard drive (i) you can download Notepad++ instead of Notepad++ Portable, and (ii) you need to find and use the correctpath to javac.exe (and java.exe) — instead of “\java\jdk1.7.0_11\bin\javac”. It will probably be something like “C:\program files\java\…” .
Also, as new versions of Java come out you’ll have to modify the path to the correct version number.
These instructions are to set things up so that everything run on a USB flash drive.
If you want to install the programs onto your hard drive (i) you can download Notepad++ instead of Notepad++ Portable, and (ii) you need to find and use the correctpath to javac.exe (and java.exe) — instead of “\java\jdk1.7.0_11\bin\javac”. It will probably be something like “C:\program files\java\…” .
Also, as new versions of Java come out you’ll have to modify the path to the correct version number.
There are 4 parts to this:
- installing Java JDK
- installing Notepad++ portable
- adding scripts to Notepad++
- testing everything by compiling and running a Java program
♣ Part 1: install Java 7 JDK
(JDK means Java Development Kit — which is what you need in order to compile Java programs.)
- Go to: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlClick on the appropriate button (as seen below) to do to the download page .
- On the next screen (see below) select
Windows x86 for 32 bit windows(e.g. jdk-7u11-windows-i586.exe) or
Windows x64 or for 64 bit windows( e.g. jdk-7u11-windows-x64.exe) - Next, install the JDK file you downloaded (jdk-7u11-windows-i586.exe) by clicking on it and choosing the default options..
- Now copy the folder C:\Program Files\Java to your USB flash drive (e.g. to M:\Java)
♣ Part 2: download, install, configure Notepad++
- Go to: http://portableapps.com/apps/development/notepadpp_portable .
- Download Notepad++ and Install it to your USB drive.
- Now run Notepad++, and go to the menu option Plugins/Plugin Manager/Show Plugin Manager and install these plugins.
- “Compare” is very useful for comparing versions of documents or source code
- “NppExec” is essential for compiling Java code
- “TextFx Characters” has the ability to automatically indent your code
- “Hex-Editor” is optional. You have to click on “Settings” and then “Show Unstable Plugins” to be able to install it.
. - Notepad++ Portable is now correctly installed on your USB flash drive (presumably, that’s where you installed it). You should also probably make a folder for where you’ll be storing your programs (I called it JavaProgs).
♣ Part 3: adding scripts to Notepad++
Unfortunately, I’m getting tired of making all of these screen shots. Most of this section is written instructions.
- Enter new commands that show up in the Macros menu by doing the following:
- Plugins/NppExec/Execute… (or Press F6)
- You’ll see a box that says “Temporary Script”
Paste in this code://save current file NPP_SAVE cd "$(CURRENT_DIRECTORY)" "\java\jdk1.7.0_11\bin\javac" $(FILE_NAME)
- Click “Save…”
- Then type in “Java-Compile” (this is the name of your script) and click Save
- You then get back to the previous screen and have the choice of clicking OK or CANCEL. Click “Cancel” which exits NppExec without running the script (OK would run it)
- “Java-compile” is used to compile your programs. (If you have a different path, you will have to modify the scripts.)
- Go back to Plugins/NppExec/Execute… (or Press F6) and repeat these steps to enter the following scripts
- Note: first select “Temporary Script” to clear the box so that you can paste in the next script
- “Java-run” is the name of this second script. It will run the Java program after it has been compiled.
//save current file //NPP_SAVE cd "$(CURRENT_DIRECTORY)" "\java\jdk1.7.0_11\bin\java" -classpath "$(CURRENT_DIRECTORY)" "$(NAME_PART)"
- “Java-applet-HTML” is the name of this script. It is used to make a very simple HTML file for running Java applets. [Don't bother with C and D unless you plan to use applets.]
cd $(CURRENT_DIRECTORY) cmd /c echo "lt;html><head><title>The $(NAME_PART) applet</title></head>" > $(NAME_PART).html cmd /c echo "<body><h2>Here is the $(NAME_PART) applet</h2><hr>" >> $(NAME_PART).html cmd /c echo "<applet code="$(NAME_PART).class" width="600" height="400"></applet><hr></body></html>" >> $(NAME_PART).html
- “Java-applet-run” is the name of the fourth script. It is used to run an applet after it has been compiled and the HTML file created.
cd "$(CURRENT_DIRECTORY)" "\java\jdk1.7.0_11\bin\appletviewer" $(NAME_PART).html
- Now we add the scripts to the Macros menu.
- go to the submenu Plugins/NPPexec/Advanced Options
- select script from “Associated Script” combo box. It will automatically fill in the “Item Name”
- now click the “Add/Modify” button
- Check the box at the top that says “Place to the Macros Submenu”
- Click OK. This will exit the Advanced Options box and say that NotePad++ needs to be restarted (don’t restart it until all 4 scripts have been added).
We have to click OK because it’s the easiest way of clearing the boxes to add the next script otherwise it’s likely to overwrite the existing menu option. - Repeat these steps to add the other 4 scripts.
- Close Notepad++ and restart it.
- When you’re done, click on the Macros Menu and you should see the 4 Java scripts (not Javascript!) that we added at the bottom. (see below)
♣ Part 4: testing to make sure that everything works.
- copy and paste the following code into a Notepad++ window
import java.awt.Color; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Container; import javax.swing.JFrame; import javax.swing.JPanel; public class Draw4Ovals extends JPanel { Color color; public Draw4Ovals(Color color) { this.color = color; this.setBackground(Color.BLACK); this.setOpaque(true); //needed to ensure panel background is set } public void paintComponent(Graphics g) { super.paintComponent(g); //needed to ensure that panel background is set int width = getWidth(); int height = getHeight(); g.setColor(color); g.fillOval(0, 0, width, height); } public static void main(String args[]) { JFrame frame = new JFrame("Oval Sample"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container content = frame.getContentPane(); content.setBackground(new Color(180,230,255)); content.setLayout(new GridLayout(2, 2, 5 ,5)); Color colors[] = { Color.RED, Color.BLUE, Color.GREEN, Color.YELLOW }; for(Color c: colors) { Draw4Ovals panel = new Draw4Ovals(c); content.add(panel); } //validate must be done on the component that has the .add() and the layoutManager content.validate(); frame.setSize(300, 200); frame.setLocation(50,100); frame.setVisible(true); } }
- Save this file as “Draw4Ovals.java”. Upper-case is important. Once it is saved, you’ll see that Notepad++ does syntax highlighting.
- Select the Macros menu, then click on the Java-compile macro near the bottom. The results should look like this: .
- Now select the macro “Java-run”. You should see this:
. - If, in addition, you want to test an applet,
- paste the following code
- save it as “TestApplet.java”
- run “Java-compile”
- run “Java-applet-HTML”
- now either view the file in a browser, or else run “Java-applet-viewer”
import java.awt.*; import java.awt.event.*; // import java.applet.Applet; import javax.swing.*; public class TestApplet extends JApplet implements ActionListener { Button b; JLabel jl; public void init(){ setLayout(new FlowLayout()); b = new Button("push me"); b.addActionListener(this); add(b); jl = new JLabel("Welome to my applet"); add(jl); } public void actionPerformed(ActionEvent e){ jl.setText("You clicked?"); } }
- Note: ♦Applets are no longer used as much as other types of web-programming.
♦The Java-applet-HTML script just makes a very simple HTML page. If you want to put an applet in a webpage, you should actually make a decent webpage.
-----
Copied from: http://www.quarkphysics.ca/scripsi/java_notepad/
Subscribe to:
Posts (Atom)