hasan's blog (বল্গ)

work for fun!!!

Archive for August 2006

Country list Combo box

with 2 comments

Hi, sometimes it should be helpful. (credit goes to IBM registration page :D )

<html:option value=”Australia”>Australia</html:option>
<html:option value=”Canada”>Canada</html:option>
<html:option value=”Germany”>Germany</html:option>
<html:option value=”Japan”>Japan</html:option>
<html:option value=”United Kingdom”>United Kingdom</html:option>
<html:option value=”United States of America”>United States of America</html:option>
<html:option value=”Afghanistan”>Afghanistan</html:option>
<html:option value=”Albania”>Albania</html:option>
<html:option value=”Algeria”>Algeria</html:option>
<html:option value=”American Samoa”>American Samoa</html:option>
<html:option value=”Andorra”>Andorra</html:option>
<html:option value=”Angola”>Angola</html:option>
<html:option value=”Anguila”>Anguila</html:option>
<html:option value=”Antarctica”>Antarctica</html:option>
<html:option value=”Antigua and Barbuda”>Antigua and Barbuda</html:option>
<html:option value=”Argentina”>Argentina</html:option>
<html:option value=”Armenia”>Armenia</html:option>
<html:option value=”Aruba”>Aruba</html:option>
<html:option value=”Austria”>Austria</html:option>
<html:option value=”Azerbaijan”>Azerbaijan</html:option>
<html:option value=”Bahamas”>Bahamas</html:option> Read the rest of this entry »

Written by nhm tanveer hossain khan

August 29, 2006 at 10:32 am

Posted in HTML

Wow hasan.we4tech.com configured

without comments

just few minutes back i have configured hasan.we4tech.com my blog domain.

thank you NetNeuron for configuring DNS stuff..

following code where required on httpd.conf to map hasan.we4tech.com on somewhereindhaka.net server

ServerAdmin hasan@somewherein.net
DocumentRoot d:/apache2triad/htdocs/hasan_blog
ServerName    hasan.we4tech.com
ErrorLog    logs/hasan.we4tech.com-error_log
CustomLog    logs/hasan.we4tech.com-access_log common

ServerAdmin hasan@somewherein.net
DocumentRoot d:/apache2triad/htdocs/
ServerName    somewhereindhaka.net
ErrorLog    logs/hasan.we4tech.com-error_log
CustomLog    logs/hasan.we4tech.com-access_log common

Written by nhm tanveer hossain khan

August 28, 2006 at 8:32 pm

Posted in News, server

useful list of wordpress plugins

without comments

useful list of wordpress plugins…
http://mtdewvirus.com/code/wordpress-plugins/

Written by nhm tanveer hossain khan

August 28, 2006 at 10:48 am

Posted in Introduction

Buggy Google code

without comments

i was trying to create a project for more than 30 minutes… but could not get it done…
it was again and again returning the same error page…

Buggy google code...

** Last update: i could make it ;)

Written by nhm tanveer hossain khan

August 28, 2006 at 10:02 am

Posted in bug

Closure in java

without comments

many known java ppl
“Gilad Bracha, Neal Gafter, James Gosling and Peter von der Ahé”
have posted a proposal for adding closure to java language… this change may be added to JDK 7

http://blogs.sun.com/roller/resources/ahe/closures.pdf or
http://gafter.blogspot.com/2006/08/closures-for-java.html

Gafter: http://gafter.blogspot.com/2006/08/whats-point-of-closures.html
Bracha: http://blogs.sun.com/roller/page/gbracha?entry=achieving_closure
van der Ahé: http://blogs.sun.com/roller/page/ahe?entry=full_disclosure

http://www.javalobby.org/java/forums/t77733.html

(Thank you harald kuhr)

To whom never worked with closure:

http://martinfowler.com/bliki/Closure.html

Example in ruby:

[1,2,4,5].each { |item| puts item }

Example in java (proposed)

Before closure:

void doit(API api) {
api.doRun(new Runnable(){
public void run() {
snippetOfCode();
}
});
}

After closure:

void doit(API api) {
api.doRun(() { snippetOfCode(); });
}

Written by nhm tanveer hossain khan

August 28, 2006 at 9:12 am

Posted in Java, News

Pageflakes and YouOs – not Google – are the Ajax Kings

without comments

InformationWeek took a close look at Google and about 20 startups to find out who’s the Ajax King. In the “webtop” or “personalized startpage” category – arguably the most important of all categories – the winners are Pageflakes and YouOs, ahead of Google and Microsoft.

read more | digg story

Written by nhm tanveer hossain khan

August 26, 2006 at 6:53 am

Posted in Introduction

Customize HTML file field

without comments

Hi,

as we know html file field is unchangeable. you can change border style but you can’t use a button instead of traditional style.

recently i have introduced an article which clearly illustrated several examples.

though you can read it from here i am also giving my code snap.

here is live example: customized_file_field.html

<html>
<head>
<style type="text/css">
.file {
position: relative;
-moz-opacity:0;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
left: -160px;
}
.fake {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
</style>

</head>
<body>
<form action="null" style="position: relative;">
<input type="file" name="file" class="file" id="upload-file" />
<div class="fake">
<input type="button" value="upload" />
<input type="submit" value="submit" />
</div>
</form>
</body>
</html>

Hitman: bload and money BanG BanG… (Game over)

with one comment

Hit man (Blood and money)

hi folks,
HITMAN is my most favorite game… i have fallen in love since the first version… recently hitman 4 has been released. this time it has been titled “blood and money”… after two days hard gaming… i have successfully completed all stages.

who likes gaming should give a try…

Written by nhm tanveer hossain khan

August 3, 2006 at 11:47 pm

Posted in Introduction, News

$Id$: How to apply SVN Keywords

without comments

SVN keywords are pieces of useful information. which is populated by svn itself.
$Id$
$LastChangedDate$
$LastChangedRevision$
$LastChangedRevision$
$LastChangedRevision$
etc.. are SVN’s predefined keywords.

SVN by default does not apply this keywords on any source.
here is simple command which will enable this keywords to your source code.

$ svn propset svn:keywords "Id LastChangedDate LastChangedByastChangedRevision" *.java

Written by nhm tanveer hossain khan

August 3, 2006 at 10:54 am

Posted in Other