Archive for March, 2009

Intro to ASP.NET Maker, PHPMaker, ASPMaker, JSPMaker, XML/XSLT Maker & CFMMaker.

Monday, March 9th, 2009

ASP.NET Maker : Generate the asymmetric multiprocessing system. Net 2. 0 writes the script from the database

ASP.NET Maker is a powerful yet easy-to-use ASP.NET code generator for ASP.NET 2.0. It can create a full set of ASP.NET 2.0 pages quickly from Microsoft Access, Microsoft SQL Server, MySQL, Oracle and other ODBC data sources. You can instantly create Web sites that allow users to view, edit, search, add and delete records on the Web.
ASP.NET Maker offers numerous useful features, including 3-Tier Architecture, ASP.NET AJAX, Extended Quick Search, Drill-down Master/Detail, Advanced Security, User Registration System, Custom View, Report, Export, File.

Better Quality Video Tutorial: Click Here

Read More..

PHPMaker: Generate PHP from MySQL

PHPMaker is the powerful automation equipment which can generate all matching of PHP directly from the database of MySQL, (because of Windows). Using PHPMaker, in order to compile because the user searches at once, in order to add, it makes that you see, possible, deleting the record of the net data type everything of MySQL, including BLOB, ENUM and set can draw up the web sight which it supports.

Read More..

ASPMaker: Generate the asymmetric multiprocessing system from the database.

ASPMaker the asymmetric multiprocessing system (the be active server page) is the powerful automation equipment which can generate all matching directly from the database of the Microsoft access or data source which supports the noise. Using ASPMaker, at once the user looks at the record of the net, compiles, searches, adds, can draw up the web sight which makes that it deletes possible.

Read More..

JSPMaker: JSP is generated directly from MySQL or Oracle.

JSPMaker however JSP (the page of JavaServer) being powerful draws up all matching directly from MySQL or Oracle, is the cord/code generator which it is easy to use.

Read More..

XML/XSLT Maker: The lattice of DHTML and dynamic XML/XSLT draw up the web sight which it has made be based

As for XMLMaker the lattice of DHTML for the general user and dynamic XML/XSLT for the developer of time it is the cord/code generator which cannot draw up the web sight which it has made be based. The lattice of DHTML is the WEB based lattice part which is based on conduct and XML/XSLT of DHTML, but that the lattice is used, knowledges of XML/XSLT/DHTML is not required.

Read More..

CFMMaker: Generate the template of CFM from the database.

CFMMaker however CFM (the template of ColdFusion) being powerful draws up all matching directly from your data source, is the cord/code generator which it is easy to use. The database which is supported makes a noise and or connection characteristic Microsoft of ODBC access, the Microsoft SQL server, includes Oracle or the database.

Read More..

Mobile-enabled “JavaFX SDK 1.1″

Sunday, March 8th, 2009

Read My Perv Post: The First & Basic Overview Of JavaFX

Sun Microsystems is 12 February 2009, the development environment for mobile RIA “JavaFX Mobile” released, RIA-enhanced strategies. JavaFX’s Web site, available for download.

JavaFX is a scripting language “JavaFX Script”, runtime environment. Drag the Web GUI and functionality of desktop applications and browser features, such as the ability to drop, to develop interactive Web applications. JavaFX Mobile is a mobile version.

Sun has released the “JavaFX 1.1 SDK”, the emulator “JavaFX Mobile Emulator”, including the latest version of JavaFX, JavaFX Mobile was fully supported. Developers are using it, “Java Platform Micro Edition (Java ME)” for mobile devices that operate in RIA development.

According to Sun, the world’s 26 million mobile phones which support Java, Java is a leading mobile platform. Sun’s Java RIA strategy aims to capitalize on a wide range of technology diffusion.

The Sun, JavaFX Mobile announcement and the UK Sony Ericsson, LG Electronics and Korean cell phone manufacturers and carriers such as JavaFX Moile has also said it is cooperating with the phone.

Sun Microsystems Inc.
http://www.sun.com

“JavaFX 1.1 SDK” download
http://www.javafx.com/

The First & Basic Overview Of JavaFX

Sunday, March 8th, 2009

December 2008, finally has been released JavaFX. Since 2007, it was announced at JavaOne a half years, Therefore, this release of JavaFX 1.0 was based on a series of intensive short-term and explains the JavaFX.

What is JavaFX

JavaFX is Sun Microsystems (Sun following the notation) is a new platform for rich client provides. Java is in the name, Java is platform independent. However, technology is a Java-based.
JavaFX development are done in open source. The java.net project in OpenJFX, OpenJFX-Compiler project & SceneGraph is being vigorously developed in the project. However, at present does not seem to have been the source of all.
JavaFX, 2007 in San Francisco was announced at JavaOne. Initially, RIA (Rich Internet Application) is used for the side, RIA can build not just a different user interface. For example, Java’s Swing GUI’s API is only part of the application that was created using JavaFX build, it is possible.
As described above for the Java JavaFX is built on technology, Java is well and good, Java API diversity can be used seamlessly.

JavaFX area covered by

JavaFX is a desktop PC application that operates not only cover various areas including mobile phones. JavaFX will run on Java VM. The Java VM as well as Java SE, Java ME in the CLDC (Connected Limited Device Configuration) and CDC (Connected Device Configuration) you can run. Therefore, mobile phones and smart phones, set-top box and can run JavaFX. In addition, Blu-ray players are employed by the CDC based on the BD-J, JavaFX will cover the area. CLDC does not adopt the Google Android, but the 2008 JavaOne JavaFX demo was run.
Which covers various areas such JavaFX is, in each region, in a different way of creating applications. The specific language of the script to build the user interface was developed in JavaFX Script. Using JavaFX Script, Java was once boasts the “Write Once, Run Anywhere” are able to achieve again.

JavaFX development history

JavaFX is original, SeeBeyond’s Christopher Oliver was started as a personal project of his. JavaFX is not at that time, Form Follows Function (F3) was named.
The Sun in September 2005, it acquired SeeBeyond, F3 is now Sun’s technology assets. Later, Oliver says, established in 2006 to 11 blogs, then F3 is released. Then F3 is the Java SE and Java 2D and Swing to depend on and could not work only on your desktop. However, in embedded applications in a mobile phone F3 to make this work is important. So the strategy was adopted, JavaSE was acquired companies. This is just before JavaOne 2007, and 2007 will be the month.
Usually, the phone will work CLDC, JavaSE phone company for the CDC had been developed. The CDC JSR 209 Advanced Graphics and User Interface Optional Package for the J2ME Platform with Swing and Java 2D can run. Therefore, CDC and JSR 209 for embedded applications based on JavaFX was established.
And, JavaOne 2007 in F3 is JavaFX is renamed and a major announcement was that.
JavaOne 2007 in F3 and was originally organized the session, but that did not receive much attention.
Immediately after the announcement at JavaOne, OpenJFX project is started in the JavaFX SDK was released.
Were published during this operation was in JavaFX interpreter. In other words, the interpretation of the script at startup, Java transformation classes, was the flow of work to compile from. This is a drawback that would start a long time there.
Therefore, prior to the compilation was done at every boot, the system was adopted by the compiler. To develop a compiler OpenJFX-Compiler project was launched in 2007, also GUI components SceneGraph is being developed in the project. The JavaFX Desktop for desktop of the year’s preview of the SDK was released in July. Of course, is to work on a compiler.
And December 4, JavaFX Desktop 1.0, including the JavaFX SDK 1.0 has been released. In addition, JavaFX SDK for applications built with JavaFX Mobile is also included in the beta.
The 2007 version of the compiler and interpreter version was published in the grammar and API has been changed, and many other areas. Also, Preview SDK and some API in the official version so you must be careful to change. For these changes is summarized in the Appendix at the end of this series, please do help.

NetBeans Installation

JavaFX is the Web site of the following three tools can be downloaded as a single package.

  • NetBeans IDE 6.5 for JavaFX 1.1 (NetBeans JavaFX to be incorporated into a plug-in development)
  • JavaFX 1.1 Production Suite (Plugin for Adobe Illustrator and Photoshop )
  • JavaFX 1.1 SDK (command line tools)

JavaFX
JavaFX download page

Here, NetBeans IDE 6.5 for JavaFX 1.0 using JavaFX about how to develop applications. NetBeans IDE 6.5 for JavaFX is JavaFX in the NetBeans Web site or the Web allows people to download the installer from the site. The already installed NetBeans can be installed via the Update Center.

Introduction to JavaFX Script

Actually using JavaFX NetBeans So let’s look at the steps of application development. First Project Creation Wizard “JavaFX Script Application”, choose to create a project.

Project Creation Wizard
Project Creation Wizard

Project was created
Project was created

Project was to create a simple JavaFX Script is Main.fx are included. It is particularly difficult at first just to see what you think.

package thecoders_javafxapp3;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
 
Stage {
title: "Application title"
width: 250
height: 80
scene: Scene {
content: Text {
font : Font {
size : 16
}
x: 10, y: 30
content: "Application content"
}
}
}

JavaFX Script is a window corresponding to the stage (Stage) have a concept. Also, in a single stage multiple scenes (Scene) can be defined. Around this concept is similar to Flex. In addition, the Java syntax is very different, it can be defined using a notation declared in the user interface.
To debug JavaFX applications will run the project, right-click “Run Project” or selected, click the button on the toolbar. NetBeans project has a main idea, you can only run from the toolbar is set to project the main project. If you want to change the main project from the project right-click menu “Set as Main Project” is set to project the main project if you choose.

JavaFX should be created immediately after the window appears as follows: When you run the project. Output in Web Click here..

JavaFX

JavaFX project was performed

JavaFX Script Editor Features

NetBeans is the JavaFX Script Editor features such as input completion and error checking script.

javafx_06

JavaFX Script code completion
The palettes that are located on the right side of the editor area drag to paste code snippets to the editor by drop. Snippets that are registered in the palette is a simple thing, JavaFX to know and control will be available in a good clue.

Palette
Palette

JavaFX event handling

As an example, with event handling and let’s create a simple JavaFX application. Creating the application of the following would change the color and the mouse to the area of the rectangle overlap. In Web Click here..

javafx_08

Mouse Over

javafx_09
Creating sample application

Source code is as follows. Rectangle is a rectangle shape to draw, onMouseEntered onMouseExited when overlapped and the shape of mouse, which describes the process to change the background color when off.

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.input.*;
/**
* @author VenuThomas
*/
 
Stage {
title: "Sample Program"
scene: Scene {
width: 350
height: 175
content:[
Rectangle {
x: 50
y: 50
width: 250
height: 55
fill: Color.BLACK
onMouseEntered: function( e: MouseEvent ):Void { var rect: Rectangle = e.node as Rectangle;
rect.fill = Color.BLUE
}
onMouseExited: function( e: MouseEvent ):Void { var rect: Rectangle = e.node as Rectangle ;
rect.fill = Color.BLACK
}
 
}
Text {
font: Font {
size: 20
name: "Monospaced"
}
x: 60,
y: 85
fill: Color.WHITE
content: bind "code.venuthomas.net"
}
]
}

There are many benefits and challenges of new technology

RIA platform and Microsoft’s Silverlight and Adobe’s AIR, which is crammed with powerful competitive platform, JavaFX and whether it is the mainstream is unclear. JavaFX is based on Java platform, but have to learn the new JavaFX Script must have the tools and the development is still far and have the disadvantage in comparison to other competing technologies.
But JavaFX rich in Java can take advantage of existing assets, JavaVM and reliability by running on a Java platform many unique advantages. Also, NetBeans plugin for JavaFX, but there is room for much improvement in terms of function, which is open-source development tools, that can get a free development environment for developers and benefits might be true.
JavaFX is still 1.1 has just been released. I look to the future trends.

Sun Microsystems Inc.
http://www.sun.com

“JavaFX 1.1 SDK” download
http://www.javafx.com/

C# From VB.NET

Saturday, March 7th, 2009

What is dfferent between C#.NET & VB.NET

Basic differences

  • C # will be marked in the case identifiers and method names and class names, VB does not distinguish.
  • VB is switched to late binding and early binding (Option Strict On / Off).
  • VB is whether to switch to force a variable’s type (Option Explicit On / Off).

Literals

Not easily accomplished

?View Code CSHARP
 
string s = "Welcome";
char ch = 'abc';
int i = 123;
long l = 123L;
double d = 123.0;
float f = 123.0F;
bool bl = true;
object o = null;
Dim s As String = "Welcome"
Dim ch As Char = "abc" c
Dim i As Integer = 123
Dim l As Long = 123L
Dim d As Double = 123.0
Dim f As Single = 123.0 F
Dim bl As Boolean = True
Dim o As Object = Nothing

Date Literals

Dim d1 = # 05 / 01 / 2008 #
Dim d2 = # 05 / 01 / 2008 12: 00: 00 AM #

I have another spare.

Array

Creation and access of the array

?View Code CSHARP
int [] array = new int [] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
/ / Skip
int [] array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
/ / Type inference
var array = new int [] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
 
Console.WriteLine (array [0]);
Console.WriteLine (array [1]);
Console.WriteLine (array [2]);
Dim array () As Integer = new Integer () {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
'Omitted
Dim array () As Integer () = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
'Type inference
Dim array () = New Integer () {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
 
Console. WriteLine (array (0));
Console. WriteLine (array (1));
Console. WriteLine (array (2));

Operator

The difference is in this together as
Equal Sign:
C# : ==
VB.NET =
Inequality:
C# : !=
VB.NET: <>

Statement

Conditional or repetitive statement

?View Code CSHARP
int int_val = Get_Value ();
/ / Conditional branch
if (int_val == 0) {
/ / True
} Else {
/ / False
}
 
/ / For statement
for (int i = 0; i <10; i + +) {
/ / Processing
}
 
int [] int_Array = Get_Array ();
/ / Statement (Collection)
foreach (int i in int_Array) {
/ / Processing
}
Dim int_val As Integer = Get_Value ()
'Branches
If int_val = 0 Then
'True
Else
'False
End If
 
'Statement
For i As Integer = 0 to 10
'Treatment
End For
 
Dim int_Array As Integer (,) = Get_Array ()
'Statement (Collection)
For Each i As Integer in int_Array
'Treatment
Next

Namespace

Namespace

?View Code CSHARP
namespace TheCodersSpace {
/ / Define
}
 
/ / Import
using TheCodersSpace;
/ / Alias
using TC = TheCodersSpace;
Namespace TheCodersSpace
'Definition
End Namespace
 
'Import
Imports TheCodersSpace
'Alias
Imports TC = TheCodersSpace

Import XML namespace

Imports <xmlns:TheCoders="http://code.venuthomas.net">

Class

Class (VB, the class also included in the module)

?View Code CSHARP
class TheCoders {
}
 
/ / Static class
static class StaticTheCoders {
}
 
/ / Abstract base class
abstract class AbstractTheCoders {
}
 
/ / Inheritance
class ExtendTheCoders: TheCoders {
}
 
/ / No inheritance
sealed class SealedTheCoders {
}
Class TheCoders
End Class
 
'Static class (Module)
Module StaticTheCoders
End Module
 
'Base class
MustInherit Class AbstractTheCoders
End Class
 
'Inherited
Class ExtendTheCoders
Inherits TheCoders
End Class
 
'Not Inherited
NotInheritable Class SealedTheCoders
End Class

Interface

Interface

?View Code CSHARP
interface ITheCoders {
}
 
/ / Implementation
class TheCoders: ITheCoders {
}
Interface ITheCoders
End Interface
 
'Implementation
Class TheCoders
Implements ITheCoders
End Class

Structure

Structure

?View Code CSHARP
struct TheCoders {
public string Name;
}
Structure TheCoders
Public Name As String
End Structure

Methods

Method (professional function)

?View Code CSHARP
public void TheCodersDoSomething () {
}
 
/ / In argument
public void TheCodersPrintMessage (string message) {
}
/ / Two arguments, the overload
public void TheCodersPrintMessage (string message, int count) {
}
 
/ / Return value with
public string TheCodersGetMessage () {
}
 
/ / Overrides
public virtual void TheCodersOverridableMethod () {
}
 
/ / Overrides
public override void TheCodersOverridableMethod () {
}
 
/ / Redefinition
public new public void TheCodersReDeclareMethod () {
}
Public Sub TheCodersDoSomething ()
End Sub
 
'In argument
Public Sub TheCodersPrintMessage (ByVal message As String)
End Sub
'Two Arguments, Overloading
Public Sub TheCodersPrintMessage (ByVal message As String, ByVal count As Integer)
End Sub
 
'In Returns
Public Function TheCodersGetMessage () As String
End Function
 
'Can override
Public Overridable Sub TheCodersOverridableMethod ()
End Sub
 
'Override
Public Overrides Sub TheCodersOverridableMethod ()
End Sub
 
'Redefining
Public Shadows Sub TheCodersReDeclareMethod () {
}

Properties

Properties

?View Code CSHARP
private string name;
/ / Properties
public string Name {
get {return name;}
set {name = value;}
}
 
/ / Read-only property
public string TheCodersReadOnlyName {
get {return name;}
}
Private _name As String
'Properties
Public Property Name () As String
Get
Return _name
End Get
Set (ByVal value As String)
_name = value
End Set
End Property
 
'Read-only property
Public ReadOnly Property TheCodersReadOnlyName () As String
Get
Return _name
End Get
End Property

Generic

Generic

?View Code CSHARP
List<string> strList = new List<string>();
strList.Add ( "Venu");
strList.Add ( "Thomas");
 
/ / Class definition
class GenericTheCoders <t>  {
public T heCodersGetValue () {
}
}
Dim strList As List (Of String) = New List (Of String)
strList. Add ( "Venu")
strList. Add ( "Thomas")
 
/ / Class definition Class GenericTheCoders (Of T)
Public Function heCodersGetValue () As T
End Function
End Class

Nullable Types

Nullable there.

?View Code CSHARP
int i = null;
Dim i As Integer = Nothing

Type inference

Type inference, it is. NET 3.5 (C # 3.0, VB9) function from

?View Code CSHARP
var strVal = "Welcome";
var intVal = 1;
Dim strVal = "Welcome"
Dim intVal = 1

Lambda expression

Lambda expression

?View Code CSHARP
Func <int, int, int> func = (a, b) => a * b;
func (2, 3);
Dim func As Func (Of Integer, Integer, Integer) = Function (a, b) a * b
func (2, 3)

Also write this

Dim func = Function (a As Integer, b As Integer) a * b

VB.NET smarter than the type inference

Directives preprocessor

VB I was able to

?View Code CSHARP
# define TheCoders
 
# if TheCoders
/ / TheCoders
# else
/ / Not TheCoders
# endif
# Const TheCoders = True
 
# If TheCoders
'TheCoders
# Else
'Not TheCoders
# End If

Create PHP Desktop Applications – Calculator

Thursday, March 5th, 2009

Introduction

As for PHP, Web is already known as a server-side language for creating applications, PHP-GTK2 and make use of the extension, PHP allows you to create applications that run on the desktop. In this paper, the PHP-GTK2 try to create a simple calculator for desktop use.

Audience

If you want to create PHP applications on the desktop

Environmental Building

Target OS is, Linux and Windows.

PHP-GTK2 is, PHP-GTK can be downloaded for free from our site.

For Windows, “php-gtk-2.**.**-win32-nts.zip” to download and unzip the file.

Basic configuration is at least close.

Sample program “Simple Calculator”

Then use the PHP-GTK2, let’s create a simple calculator. The following shows the source.

File name: calculator.php

<? php
class Calc (
private $ txt_1;
private $ txt_2;
private $ txt_3;
private $ tblTable;
private $ hbox_1;
private $ wnd1;
private $ cboCBox;
private $ calc_btn;
 
public function __construct () (
/ / Initialize the text box for numeric input
$ this-> txt_1 = new GtkEntry ();
$ this-> txt_2 = new GtkEntry ();
/ / Initialize display box solution for
$ this-> txt_3 = new GtkEntry ();
/ / Adjust the width of each text box,
$ this-> txt_1-> set_width_chars (6);
$ this-> txt_2-> set_width_chars (6);
$ this-> txt_3-> set_width_chars (6);
 
/ / Initialize the cboCBox box selection operator
$ this-> cboCBox = GtkcboCBoxBox:: new_text ();
$ this-> cboCBox-> insert_text (0 ,"+");
$ this-> cboCBox-> insert_text (1 ,"-");
$ this-> cboCBox-> insert_text (2 ,"×");
$ this-> cboCBox-> insert_text (3 ,"÷");
Appear to //"+" initial
$ this-> cboCBox-> set_active (0);
 
/ / Initialize the calculation button
$ this-> calc_btn = new GtkButton ("=");
 
/ / Assign the event listener
$ this-> calc_btn-> connect_simple ( "clicked", array ($ this, "calcHandler"));
 
/ / Initialize the table
$ this-> tblTable = new GtkTable (1, 5);
/ / Place the components on the table
$ this-> tblTable-> attach ($ this-> txt_1, 0,1,0,1);
$ this-> tblTable-> attach ($ this-> cboCBox, 1,2,0,1);
$ this-> tblTable-> attach ($ this-> txt_2, 2,3,0,1);
$ this-> tblTable-> attach ($ this-> calc_btn, 3,4,0,1);
$ this-> tblTable-> attach ($ this-> txt_3, 4,5,0,1);
 
$ this-> hbox_1 = new Gtkhbox_1 ();
$ this-> hbox_1-> pack_start ($ this-> tblTable);
$ this-> wnd1 = new GtkWindow ();
$ this-> wnd1-> add ($ this-> hbox_1);
$ this-> wnd1-> set_title ( "PHP Calculator");
$ this-> wnd1-> show_all ();
Gtk:: main ();
)
public function calcHandler () (
$ num1 = doubleval ($ this-> txt_1-> get_text ());
$ num2 = doubleval ($ this-> txt_2-> get_text ());
switch ($ this-> cboCBox-> get_active ()) (
/ / Add
case 0:
$ this-> txt_3-> set_text ($ num1 + $ num2);
break;
/ / Subtraction
case 1:
$ this-> txt_3-> set_text ($ num1 - $ num2);
break;
/ / Multiplication
case 2:
$ this-> txt_3-> set_text ($ num1 * $ num2);
break;
/ / Division default:
$ this-> txt_3-> set_text ($ num1 / $ num2);
)
)
)
/ / Calc, create an instance of the class
 
$ calc = new Calc ();
 
?>

Run the application

Let’s run this application. Open a command prompt, when you could just download the folder php-gtk2. Then, please run the following command:

C:\php-gtk2> php.exe calculator.php

Result

PHP App

If you want to quit the application, or applications [×] button on the command line [Ctr] + [C] Please run the shortcut key.

Commentary

Calc components are defined in the class.

Components used in this
GtkEntry Text box.
GtkComboBox Combo box.
GtkButton Button.
GtkTable Table. Placing a child in a grid component.
GtkHBox Horizontal box to hold the table.
GtkWindow Window to store the horizontal box.

GtkEntry and GtkComboBox, GtkButton and small components, GtkTable and place it in a container. To create a GtkTable this, new GtkTable(1,5) and a vertical length, the length of the next five and a specified grid. GtkTable to the placement of components, as follows: attach use the function.

$ this-> tblTable-> attach ($ this-> txt_1, 0,1,0,1);

Then put the components placed GtkHBox GtkTable objects. GtkHBox is the horizontal component of the box. The horizontal box is placed in the following pack_start use the function.

$ this-> hbox_1-> pack_start ($ this-> tblTable);

In addition, the box GtkHBox add this add to place a GtkWindow object.

$ this-> wnd1-> add ($ this-> hbox_1);

To set the title of the GtkWindow, set_title function.

$ this-> wnd1-> set_title ( "PHP Calculator");

Also, [=] to make the calculation for the function is called when pressing the button below.

$ this-> calc_btn-> connect_simple ( “clicked”, array ($ this, “calcHandler”));
Signal “clicked”, ie when I click “calcHandler” means that the function is called.

calcHandler Let’s look at the contents of the function.

$ num1 = doubleval ($ this-> txt_1-> get_text ());
$ num2 = doubleval ($ this-> txt_2-> get_text ());

txt_1, txt_2 the figures obtained in doubleval to quantify explicitly the function, each variable $ $num1 $ $num2 assigns.

Then, the index of the operator is selected in the combo box of the operator get_active Get function.

$ this-> cboCBox-> get_active ()

And in this case, the index

0 addition, if
If a subtraction
If you multiply two
If the three division
Has been set.

Calc Thus we complete the application to generate the last instance of the class.

$ calc = new Calc ();

Conclusion

This time I made a PHP-GTK2 applications running on their desktop calculator use. PHP-GTK in the rich component than what’s used.

PHP is a desktop application that is not made aware of the opportunity that this PHP-GTK2 to even try to challenge?

It may spread to new worlds.

References

PHP-GTK user guide

Retire Your Data Center – A MS Solution to get rid of ur DC — Azure Services!!!

Thursday, March 5th, 2009

azureservicesplatform_02

Microsoft on OCT-08, a comprehensive platform for Cloud “Azure Services Platform” with the foundation of the service “Windows Azure” was announced.

Azure Services Platform,  Storage, computing, and combine the function of the cloud-based developer of network services and infrastructure. Main components is as follows.

  • Windows Azure

Hosting and management services for low-level scalable storage, computing, networking and

  • SQL Services

Provide a wide range of databases and reporting

  • . NET Services

Such as workflow and access control. NET Framework-based implementation of a well-known concept in service

  • Live Services

Documents, photos, files, information storage, sharing, sync to PC, phone, PC applications, providing a consistent means stay out of site

  • SharePoint, Dynamics CRM Services

Content management in the cloud, collaboration, and provide a rapid solution deployment

Conceptual diagram of the Azure Services Platform (※ Azure Web site reproduction)

azureservicesplatform_01

Azure Services Platform provides. NET Framework and Visual Studio to develop applications. SOAP, REST, XML support, the future of PHP and Ruby, Python and other languages, such as, Eclipse will be available, such as development tools.

Release date is TBA, Microsoft PDC 2008 for those who attend (CTP) version of the limited distribution. The SDK and tools and the Web can be downloaded (click here).

[Links]
Azure Services Platform
Microsoft, Professional Developers Conference in Windows (R) Azure announced (press release)

Online HTML to PDF Converter

Wednesday, March 4th, 2009

It’s a simple service to convert the web pages to PDF files. No need to install applications on your computer.
It’s free and without registration!

Enter your URL &  Click button  to create a PDF file.

I converted one of my site. Completed in about 30 seconds.

We saved successfully downloaded to your desktop. PDF is quite accomplished in the sort of outcome, as the screenshots. 

HTML-PDF-converter.com

html2pdf

Nice Links on JAVA from IBM

Tuesday, March 3rd, 2009

javaDependency injection with Guice
ibm.com/developerworks/library/j-guice.html


Build faster Web applications with caching
ibm.com/developerworks/library/j-jcs.html


New to Java technology
ibm.com/developerworks/java/newto/