programming

get rows of dynamic latest date(s)

Posted on July 30, 2009. Filed under: Firebird | Tags: , , , |

…. sorry for not updating for such a long time.
just got a mail from a friend recently. probably this is some idea to share:

yo, Byeol. got a problem here. I have a table (FB) where I need to store every month’s stock of any available Product:

CREATE TABLE TSTOCK (
THEDATE DATE NOT NULL,
PRODUCTID VARCHAR(30) NOT NULL,
COST DOUBLE PRECISION [...]

Read Full Post | Make a Comment ( None so far )

SMS Gateway, oh SMS Gateway …

Posted on November 19, 2008. Filed under: Delphi programming, Java programming | Tags: , , |

* still cursing herself after posting a bubbling in her other blog with the same title. *
Guys … do you know where is the place to get a lot of AT Commands manuals or references? Especially for the modems, not just for mobile phones. Please help. Many thanks for your attention and help. ^^
…….. ah [...]

Read Full Post | Make a Comment ( None so far )

cast Double to String in java

Posted on October 26, 2007. Filed under: Java programming | Tags: , , , , , , |

Double to String casting …
if you want to display its String in number format (like this ###,###,##0.00) do not use these lines …

Double sk = 12300000000.35;
System.out.println(sk.toString());
System.out.println(String.valueOf(sk));

they would result like these ones:

1.230000000035E10
1.230000000035E10

use this one instead.

Double sk = 12300000000.35;
[...]

Read Full Post | Make a Comment ( 1 so far )

deprecated File toURL() method in Java 6

Posted on October 8, 2007. Filed under: Java programming | Tags: , , , , , , , , |

after upgrading to Java 6, I just found out that toURL() method is deprecated in Java 6.
after doing some googling, I reached to this page: http://www.jguru.com/faq/view.jsp?EID=1280051
The author (in the link above) said:

The toURL() method of File does not properly escape characters that aren’t valid in a URL. You can write better code today without waiting [...]

Read Full Post | Make a Comment ( 1 so far )

how to check if two filename paths refer to the same file?

Posted on September 28, 2007. Filed under: Java programming | Tags: , , |

I just found out the information that a filename path may include redundant names such as ‘.’ or ‘..’ or symbolic links (on UNIX platforms).
so how to know exactly if two filename paths are referring to the same file?
use File.getCanonicalFile() to convert a filename path to a unique canonical form suitable for comparisons. and then, [...]

Read Full Post | Make a Comment ( None so far )

maximize a JFrame??

Posted on September 27, 2007. Filed under: Java programming | Tags: , , |

hi, there.
is there any way to maximize a JFrame??
thanks for your responding.

sure. add this line:

this.setExtendedState(this.getExtendedState() |
this.MAXIMIZED_BOTH);

hope this helps.

Read Full Post | Make a Comment ( 1 so far )

to close singleton JInternalFrame the default way, but not using dispose()???

Posted on September 24, 2007. Filed under: Java programming | Tags: , |

hi, I read your close a singleton JInternalFrame from an outsider customized JPanel tips and I had a problem with that.
remember your line about to close the singleton JInternalFrame from its separated customizeable JPanel coding?
getRootPane().getParent().setVisible(false);
this was only to setVisible to false. now if I want to close it (but still, do it according to [...]

Read Full Post | Make a Comment ( None so far )

Hello World! collections

Posted on September 13, 2007. Filed under: Delphi programming, Java programming, hilarious |

tsk, tsk, tsk … a great dedication to “Hello World!”???
check it here. http://roesler-ac.de/wolfram/hello.htm
a really cool “Hello World!” coding collection in various programming languages. no joke, this is real.
statement from the URL:

This collection includes 338 Hello World programs in many more-or-less well known programming languages, plus 58 human languages.
The list was compiled by [...]

Read Full Post | Make a Comment ( None so far )

where to put the JTextField validation block code???

Posted on September 10, 2007. Filed under: Java programming |

hi Everyone,
I need an advice or suggestion, I have a JTextField for a primary key entry and when the focus leaves the JTextField, the program would make a searching into a database to seek if this entry has already been inside the table. (aka checking double entries).
if the entry is found inside the table, a [...]

Read Full Post | Make a Comment ( None so far )

setIcon(false); darn it …

Posted on September 5, 2007. Filed under: Java programming, programming |

a week, I’ve been coding uselessly, trying to redisplay my singleton JInternalFrame after it was minimized. I tried to add the setBounds(…) and toFront() but it didn’t appear from its minimized condition.
a week of coding and recoding and searching and searching, only to find that I only need to add this one:

try {
singletonIF.setIcon(false);
} [...]

Read Full Post | Make a Comment ( None so far )

« Previous Entries

Liked it here?
Why not try sites on the blogroll...