Wednesday, June 3, 2009

Java 7 Coming

I just checked some website!

It said the Java 7 coming!

Very hoping to use the new version of Java.

Tuesday, June 2, 2009

Project Done

Today, I just finished my final project and fianl report!
Here is the link if you guys want to see it:

http://www-student.it.uts.edu.au/~juelu/DMTFinal/index.html

Thanks

Monday, June 1, 2009

CSS LAYOUT

To design the layout of the website, we can use table in html. But
nowadays, using CSS+DIV seems much more popular. In my DMT subject, I would like to try use CSS+DIV instead of the normal table.

Here is some examples:





















Wednesday, May 20, 2009

JQuery Power

I found that JQuery is very powerful and useful. It can make many
wonderful function for the web site.

"jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006 at BarCamp NYC by John Resig.

Dual licensed under the MIT License and the GNU General Public License, jQuery is free, open source software.

Both Microsoft and Nokia have announced plans to bundle jQuery[1] on their platforms, Microsoft adopting it initially within Visual Studio[2] for use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform." From Wikimedia.
There is some useful link for JQuery:

http://www.jqueryajax.com/
http://www.demi.cn/archives/6519
http://www.cssrain.cn/article.asp?id=806
http://jquery.com/
http://jqueryui.com/

Thursday, May 14, 2009

Learning JQuery

There are some useful JQuery concept from the internet:

jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006 at BarCamp NYC by John Resig.

Dual licensed under the MIT License and the GNU General Public License, jQuery is free, open source software.

Both Microsoft and Nokia have announced plans to bundle jQuery[1] on their platforms, Microsoft adopting it initially within Visual Studio[2] and use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform.


jQuery contains the following features:

DOM element selections using the cross-browser open source selector engine Sizzle, a spin-off out of jQuery project[3]
DOM traversal and modification, (including support for CSS 1-3 and basic XPath)
Events
CSS manipulation
Effects and animations
Ajax
Extensibility
Utilities - such as browser version and the each function.
JavaScript Plugins

Monday, May 4, 2009

PHP check validation

For my website i need the customer to input their information. So I need some validation for their input. Like email address should be including @ and . ;

Contact number should be number.

Here I want to introduce some method to valid data:

First ,is_numeric(); this funtion in PHP is to check the input is number or not
This should be use in Phone Number or Credit Number etc.

Second, preg_match(); this is quite powerful it using regular expression to do the validation. So in fact, using regular expression you can do every validation.
For instance, preg_match($emailforamt,$email) $emailforamt = "/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/"

Saturday, April 4, 2009

Learn PHP--database connection

Today I review my PHP work which is about database connection using php.

the code is :
session_start();
function conncetdatabase(){
$user="potiro";
$pass="pcXZb(kL";
$db="poti";
$connection=mysql_connect("sally.it.uts.edu.au",$user,$pass);

if (!$connection)
die("Unable to connect to host.");

if (!mysql_select_db($db, $connection)) {
echo "Error Description: ".mysql_error()."
";
die("Database unavailable, exiting program.");
}

return $connection;
}

function disconnect($connection) {
mysql_close($connection);
}
\?>

This is code for connecting to the database.

And today I download the user manual for PHP and MySql. I think that is quite easy

and important for me to look for some information about PHP or MySql on a user book.

I use to search the info on Internet, such as google , yahoo.

Thursday, April 2, 2009

Free host dont support SMTP server

Today I want to use mail function in 000webhost.com.

But it does not works even the code works in my computer.

So when I do some research, I find that the 000webhost.com dont have free SMTP

server for free host. If you want to use it, you need to paid.

That means if you want to use mail function in php file, it will not works.

So my website can not send the email with clients information to me for this problem.

I need to figure out it. Maybe I just store client's info into the database or just

pay for the website to give me SMTP server.

Wednesday, April 1, 2009

Leanr PHP--mail()

Today I set up a PHP programming platform in my laptop.

But when I want to use mail() function to send mail using php, it does not work.

But when I upload the php file to uts server. It works. I search this on internet,

And I found the reason. Even though I already set up the apache http server. But I

still need to set up a mail server into my laptop. In this case, I install imail.

Then it works.

Monday, March 30, 2009

Finished Learning Proposal

I just finished the Learning Proposal.

I had learnt IT in UTS for one and half year. I had learnt many programming languages and scripting languagesl, such as HTML, CSS, PHP,JavaScript, Jsp, Java, C#, VB and so on. And also database, I had learnt how to use MySql.Since building a website is very popular in Australia, build a website can be a good business to start the career.

I want to build a website to run my personal business. This website introduces myself and my business. My business is to help people or some small shops to build their website.

In this assignment, I would like to develop my skills and the understand of the process to build a website. Specific, I would want to learn PHP,XHTML,JavaScript,CSS and MySql to build the website.
I would like to build a personal business website. This website is to ntroduce me and the business. My website is for some companies who want to build their websites. And they don't want to spend lots of money and do not have too much requirement. I would like to use XHTML, JavaScript, CSS, PHP and MySql to do their website. I also use these technologies to build my personal website. Because my website is the best evidence to let the client know what I can do for their website.

Tuesday, March 24, 2009

week3 practical Exercise

Exercise 1
inside the HTML text file, find
1.the navigation menu

id="main">
div id="sidebar">

Other Sections


l class="menu">
  • main

  • comments

  • <

    2.How many “divisions” does the document have?

    There are two


    Exercise 2
    1. add the ‘storm.jpg’ image


    Exercise 3
    1.which CSS rules apply to “Other Sections”?

    week4 practical

    When I just open the "week4practical.php" in firefox browser. But nothing happened.
    When I uploaded to uts "public_html", and open it.

    It showed the time "The date is: 24 03 2009 18:49:20 ".

    In my opinion, I think that is in the local machine. It have not install php, so the local web browser can not complie the php file.

    But in UTS web server, it had installed php. So the php works.

    To turn the date into this format: "Monday 15th 2005 , 03:03:11 pm "

    We need to put the date into the format below:
    $today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm

    the range of the function available is between <% %>!

    I create a account in webhost000.com they use phpMyAdmin to operate the database.

    What is XHTML

    This is the idea of XHTML:

    The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also conforms to XML syntax.

    While HTML prior to HTML5 was defined as an application of Standard Generalized Markup Language (SGML), a very flexible markup language, XHTML is an application of XML, a more restrictive subset of SGML. Because they need to be well-formed, true XHTML documents allow for automated processing to be performed using standard XML tools—unlike HTML, which requires a relatively complex, lenient, and generally custom parser. XHTML can be thought of as the intersection of HTML and XML in many respects, since it is a reformulation of HTML in XML. XHTML 1.0 became a World Wide Web Consortium (W3C) Recommendation on January 26, 2000. XHTML 1.1 became a W3C Recommendation on May 31, 2001

    We can learn more about XHTML in wikipedia
    In this link: http://en.wikipedia.org/wiki/XHTML

    Learning HTML

    A week ago, I learnt some HTML technologies.

    "
    HTML, an initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document—by denoting certain text as links, headings, paragraphs, lists, and so on—and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of tags, surrounded by angle brackets. HTML can also describe, to some degree, the appearance and semantics of a document, and can include embedded scripting language code (such as JavaScript) which can affect the behavior of Web browsers and other HTML processors.
    "
    This is from Wekipedia.

    Also , I know all the histroy, tags(most of them) in HTML.

    Monday, February 23, 2009

    Welcome to my blog

    Welcome to my blog!!!!
    This is my first post!!!!