November 20th, 2008 by admin
It’s a simple java programming techniques… if you want to cast double to stirng, use this one, it’ll preserve the thousands separator:
- Double sk = 1300000000.35;
- NumberFormat nm = NumberFormat.getNumberInstance();
- System.out.println(nm.format(sk));
Double sk = 1300000000.35;
NumberFormat nm = NumberFormat.getNumberInstance();
System.out.println(nm.format(sk));
the latter result would be this:
1.300.000.000,35
August 8th, 2008 by admin
To escape php from html, a PHP code block starts with “<?php” and ends with “?>”. A PHP code block can be placed anywhere in the HTML document. You may also use <? ?> but it’s not available on every servers.
To separate instructions, each instruction must end with a semicolon. The PHP closing tag also implies the end of the instruction.
This is an example on how to write PHP between html tags:
<html>
<head>
<title>PHP is fun</title>
</head>
<body>
<?php echo “This text is generated using PHP”; ?>
</body>
</html>
Tags: PHP, programming
August 5th, 2008 by admin
I have just read this, it’s a programming ratings table for 2008. At least this will helps the programming stakeholder to choose which programming language should he use while building a project.
From the table, it can be concluded that open source programming language is more preferable than closed source and commercial programming language.
It proves that programming language for the futures is the free and open source programming languages.
Position
Jul 2008 |
Position
Jul 2007 |
Delta in Position |
Programming Language |
Ratings
Jul 2008 |
Delta
Jul 2007 |
Status |
| 1 |
1 |
|
Java |
21.345% |
+0.33% |
A |
| 2 |
2 |
|
C |
15.945% |
-0.42% |
A |
| 3 |
3 |
|
C++ |
10.693% |
+0.19% |
A |
| 4 |
4 |
|
(Visual) Basic |
10.447% |
+0.72% |
A |
| 5 |
5 |
|
PHP |
9.525% |
+0.87% |
A |
| 6 |
6 |
|
Perl |
5.131% |
-0.20% |
A |
| 7 |
8 |
|
Python |
4.973% |
+1.95% |
A |
| 8 |
7 |
|
C# |
4.000% |
+0.29% |
A |
| 9 |
9 |
|
JavaScript |
2.757% |
+0.24% |
A |
| 10 |
10 |
|
Ruby |
2.735% |
+0.64% |
A |
| 11 |
13 |
|
Delphi |
2.011% |
+0.51% |
A |
| 12 |
14 |
|
D |
1.224% |
-0.14% |
A |
| 13 |
11 |
|
PL/SQL |
0.736% |
-1.23% |
A |
| 14 |
12 |
|
SAS |
0.629% |
-1.23% |
B |
| 15 |
- |
|
PowerShell |
0.436% |
+0.44% |
B |
| 16 |
23 |
|
Pascal |
0.432% |
-0.05% |
B |
| 17 |
17 |
|
COBOL |
0.413% |
-0.17% |
B |
| 18 |
18 |
|
Lua |
0.408% |
-0.17% |
B |
| 19 |
16 |
|
Ada |
0.407% |
-0.20% |
B |
| 20 |
15 |
|
Lisp/Scheme |
0.384% |
-0.30% |
B |
Tags: programming, language
Another innovation from netbeans community. I know it’s already an old things, but i just have known it yesterday.
It’s php early access for php. An IDE that will helps you program using php easily. This IDE has intellisense feature and syntax highlight.
What this software lack of, is an WYSIWYG editor. But i bet this software will be better than dreamweaver in a next few years.
The minus of this software is it’s quite heavy since this software was made using java. But it also bring positive consequences, that is it’s multiplatform.
Want to try, just download it from http://netbeans.org
Tags: netbeans for php, php programming, php, IDE
Programmer is like a doctor. Although we can’t make a 100% bug-free program, but we should minimize the bugs on the project. Not only tobacco can kills, but a buggy program can make a victims too. One of the story is about chinook crash that i found the link from wikipedia.
I was doing some programming on PHP, then i found a problem. It’s a text that shows Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at…. After browsing for a while, i found this. It’s because a whitespace before the opening tag of PHP.
It’s clear right now….
Tags: php programming