 |
 |
Index ‹ java-programmer
|
- Previous
- 5
- LISTEN UP EVERYBODY. put your programming skills to use in this new MMORPG game. details listedRun Online is a new MMORPG( massive multiplayer online role playing
game) in progress. I wish for it to be devoloped completley in java,
making it platform independent( able to run on any platform). The game
is set in medivial time(not finalized yet). When i firsted dreamed up
this project i had a huge case of amatures syndrome, as in the game was
so magnificently filled with a 1000nd classes, over a million monsters,
billions of monsters, and large world(I even had planned on putting in
25 other outer space planets)!!!!!! and all of these looked realistic.
Yep, thats the amatures syndrome. I got over it slowly as i realized
the difficulty in creating even the smallest of worlds. I couldnt
possibly even do that on my own, so i desided to put togheter this
dream team of specilists.
1 Project Manager: The project managers job is to over look the project
and organize the events and keep the project rolling.
.
Meeee!!!!
5 java programmers: the game is created completley in java. Im not sure
that 5 people is even enough, but that should do for now. Their job is
to program different segments of the game( each can focus on a
different aspect of the game to program)
.
.
.
.
.
3 graphic designers/ animation experts with basic knowledge of java:
their job is to create teh textures, buildings, and animations of the
world and the character as well as all the items and monsters.
.
.
1 database expert: manages the database part of the job.He/She must
make 100ds of reliable databases for usename, passwords. Items of a
character. Skills and many more. Its a key part of the game to get this
right.
.
1 Network administrator, security monitor: Must create an simple
encryption to code the graphics send over by the graphic people as
well as text written in the forum. This will prevent those outside of
"The Team" from getting into the game files and misusing it. The
network administrator part requires for knowledge in that field. This
person will the one responsible for having the game work smoothly on
the web, and sequerly.
.
3 Researchers/ advertisers: The reserchers must reserch and find
suitable programs, and information relating to the game of aspects of
the game. The advertisers will be responsible for advertising the game
to the public once it's finished. They will have to create cool
banners, and catchy phraces to help make drive the traffic to the game.
.
.
.
2 web designers: The web designers will design the website in which the
game will be hosted. The website must be trendy as well as easy to
navigate and quickly loadable.
.
.
2 Gamers/test players: They test out the game, find bugs, give
suggestions. They will be among the first in line to get a moderator
role.
.
.
If you would like to know more about any of these, or wish to join The
Project Team, plz email me at email***@***.com with your
qualifications and comments. You definetly have a good chance of
getting into the project if you sign up early. I will personaly read
all the applications and put my sincear thoughts into it.
Youc can also view the forum at http://runonline.aceboard.com
( it has no topics at the moment)
- 7
- Connection's Close method, should it be called?Hi,
I am unsure whether it is good Java practise to use Close() to close a
database Connection.
EG:
dbConnection = DriverManager.getConnection(url, user, pass);
Statement sqlStatement = dbConnection.createStatement...
String sql = "SELECT ...
ResultSet results = sqlStatement.executeQuery(sql);
...do stuff with results...
Now that I've finished should I call close() or not?
dbConnection.close();
The API documentation makes it clear it will be closed automatically when
the garbage is collected -- but is it good practise to close it 'manually'
when you've finished with it?
Thanks,
MS
API Doc:
void close()
throws SQLException
Releases this Connection object's database and JDBC resources immediately
instead of waiting for them to be automatically released.
Calling the method close on a Connection object that is already closed is
a no-op.
Note: A Connection object is automatically closed when it is garbage
collected. Certain fatal errors also close a Connection object.
Throws: SQLException - if a database access error occurs
- 9
- 9
- Pls advice: Best OpenSource Java Framework/Portal for this requirements?Hi all,
I'm looking at different frameworks like JBoss Portal, GridSphere,
etc. but some opinion of any of you who has an experience with
frameworks would be helpful.
The most important requirement for the final system that will be
built on the framework is an easy way that the end-user can create his
own 'sub-portal' with predefined pages and an access to the predefined
'components' he can embed on those 'sub-portal' pages. Both - pages
(i.e. home, guestbook, history) and 'components' are predefined by the
system (portal, framework) but the user can fully customize their look
and feel even by replacing the default HTML code with his own.
The idea is similar to the way the blog platforms work: you can create
your own blog, once you do it, you get a list of predefined pages like
main, new comment, guest book, archive, etc.
The important thing is that you can completely change the HTML code of
those predefined pages within your blog.
You also get a set of 'components' or 'tags' like {blog}, {nick},
{guestbook}, etc. and you may embed them in your predefined pages
using HTML - as you wish. The content provided by these 'components'
is of course predefined by the blog platform so you can change only
look and feel of them.
So - which of the available opensource java-based frameworks/portals
could be the best to implement the functionality described above?
Thanks in advance for your opinions,
Tomasz
- 9
- avi to swf conversionhi
i have certain avi format files which i hav to convert in swf(flash
media files) to use in a webapplication.
can we convert it using java?
also suggest source code.
Regards
NK
- 9
- Azureus ... forced to use Windows Version ...
The other day, I posted about download issues with Azureus ... today,
figuring to see if it was my network, or FreeBSD, I installed it on one of
my Windows boxes, and am currently downloading at ~85kb/s ;(
Please note that this Windows box is sitting *behind* the same FreeBSD box
that I'm lucky to get 1kb/s on ... the FreeBSD is the router ...
I don't know if this is a java issue, or freebsd issue ... but I really
don't have any ideas on how to debug why ...
Other then the machine its running on, I have Azureus setup the same,
including using java 1.5.0 ... but, of course, the version on the FreeBSD
is the new diablo binary ...
thoughts?
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: email***@***.com Yahoo!: yscrappy ICQ: 7615664
- 10
- java web host - servlet jsp databaseHi everyone,
Could anyone recommend a good java web host? I need to run Servlet,
jsp and database. My budget is less than $20/Month
Thanks
John from CA
- 10
- how to send a byte of data like this"11111111"it's a big pazzle for me
i need to send a package of some protocol defined like below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0|0|0|0|0| Ver | 0x81 | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
but for byte type in java the max_value is 127 -->"01111111",but i need
is a byte like "11111111"
- 13
- Eclipse path problem while opening file.When ever I try to read/open '.properties' (for that matter any file)
inside my project(for example I try to open system.properties file in
HelloWorld class) it cannot open/find it.
For example if I have a project called project1 which has java source
files in
src folder then and in any of the class files I cant open any of the
files inside the
src folder. No matter where I place the file that has to be read
(inside project1 or src
or build folder) it simply gives me java.io.FileNotFoundException
Instead if I give the complete path it works. How can I read the files
relative to
my project folder without giving the complete path?
It seems that when I run my application in looks in ECLIPSE_HOME/bin
folder, for the
file being read, which of course I don't want to happen.
I am using Eclipse 3.2 (WTP), Windows XP SP2 JDK 1.5.03
Any pointers how to fix this?
- 14
- Can a java program know what kind of server it is running on?Is there a pure java way to find the identity of the web server that
the application is running on?
A system property? A JMX query? Anything?
I want to have my webapp behave differently based on the webserver
being used. Is there a way to tell what the server is (tomcat,
websphere, weblogic, etc)?
- 14
- JAI rotate problem (change of brightness)hi!
I'm developing small image processing software, I would like to rotate a
grayscale image.
I have a delcaration of the image inside class CMyImage:
public BufferedImage workImage;
int width, height;
Having source code:
public void process(CMyImage image, int angle)
{
float radiansAngle = (float)Math.toRadians(angle);
// rotation center
float centerX = (float)image.width / 2;
float centerY = (float)image.height / 2;
ParameterBlock pb = new ParameterBlock();
pb.addSource(image.workImage);
pb.add(centerX);
pb.add(centerY);
pb.add(radiansAngle);
pb.add(new javax.media.jai.InterpolationBicubic(10));
// create a new, rotated image
PlanarImage rotatedImage = JAI.create("rotate", pb);
// display the rotated image
...
}
image is rotated, I can see the result but... it has changed brightness!
when I rotate 0', 90', 180' or 360' - this problem doesn't occur, image
has the same intensity, but for other angles, like 1' image is just more
bright, histogram also shows this change.
what do you think about this problem? I'm not sure how rotation in JAI
is implemented - maybe this is just some problem of the ATI Radeon
driver? my system: WindowsXP, Eclipse 3.2... I can provide images if
it's required. Waiting for your help!
greetings, Marcin
- 15
- . a Ferrari vs. a tricycle .Hello Moshe Dayan , You wrote ,
" Jeff , how do you find time to post
when you are so busy cutting up newspaper
to make ransom notes to ' The Internet '
that has so Ruined your life and career "
The internet has ruined my life ?
Who's life was ruined by the internet ?
The internet bust busted you , not me .
You work three thousand hours per year ,
just so you can sink deeper in the hole .
I " Find the time " to " Rant "
because quite unlike you , I'm not a virtual slave .
The desktop vs. the internet
is like a Ferrari vs. a tricycle .
- 16
- Sizeof for Java``Sizeof for Java
Object sizing revisited''
- http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
- 16
- CDROMIs it possible with write a java program that can write files to a CDROM
without the use of external software like DirectCD?
If so please explain briefly how...thank you.
- 16
- upgrade Axis 1 to 2Hello,
I have running an Axis1-Webservice, which is used by some clients. Now I
want migrate to Axis2. The clients shall run further without any
modifications.
Is this generaly possible?
I made some experiments and got the following problem:
The old Axis 1 - WSDL contains the following lines. (here the code without
types, namespaces, etc.)
<types>
<schema>
<complexType name="MyParam">
<sequence>
<element name="paramDetail_1" />
<element name="paramDetail_2" />
</sequence>
</complexType>
<complexType name="MyReturn">
<sequence>
<element name="returnDetail_1" />
<element name="returnDetail_2" />
<element name="request" type="MyParam" />
</sequence>
</complexType>
<element name="MyFunctionParam" type="MyParam" />
<element name="MyFunctionReturn" type="MyReturn" />
</schema>
</types>
<message name="MyFunctionParamMsg">
<part element="MyFunctionParam" name="MyFunctionParam" />
</message>
<message name="MyFunctionReturnMsg">
<part element="MyFunctionReturn" name="MyFunctionReturn" />
</message>
With Axis 1 the following code for the "main"-function is gerenated by
java2wsdl:
MyParam myFunction(MyParam param0) {...}
With Axis 2 the following code is generated:
MyFunctionReturn myFunction(MyFunctionParam param0) {...}
With Axis 1 the name of the complexType> is used, with Axis 2the name of the
<element>.
Now I modified the WSDL for Axis 2:
<types>
<schema>
<element name="MyParam">
<complexType>
<sequence>
<element name="paramDetail_1" />
<element name="paramDetail_2" />
</sequence>
</complexType>
</element>
<element name="MyReturn">
<complexType>
<sequence>
<element name="returnDetail_1" />
<element name="returnDetail_2" />
<element name="request" type="MyParam" />
</sequence>
</complexType>
</element>
<element name="MyFunctionParam" type="MyParam" />
<element name="MyFunctionReturn" type="MyReturn" />
</schema>
</types>
<message name="MyFunctionParamMsg">
<part element="MyParam" name="parameters" />
</message>
<message name="MyFunctionReturnMsg">
<part element="MyReturn" name="returnType" />
</message>
without the line
<element name="request" type="MyParam" />
wsdl2java creates the equal signature for the "main"-function like Axis1.
But when the wsdl contains this line above, there are exceptions.
The problem is, that at Axis 1 MyParam is a <complexType>
and at Axis 2 an <element>
Has somebody any idea, what I can do?
Georg
|
| Author |
Message |
[XaToA]

|
Posted: 2003-7-30 16:54:00 |
Top |
java-programmer, date format
hello
i am begining to working againt one postgresql database with java.
i must to put into the database some dates.
i must to configure the date fields into the database. which will be the
date format? timestamp?
if in java i have the String d="03/03/2003" how can i to format, convert,
this String to date timestamp?
which will be the idoneous field format for storing the dates and for
working with java?
Thanks
|
| |
|
| |
 |
Rob Feil

|
Posted: 2003-8-27 16:42:00 |
Top |
java-programmer >> date format
In article <bigugv$nab$email***@***.com>, panda@spam-and-harvard-
suck.yale.edu says...
> "Rob Feil" <email***@***.com> wrote in message
> news:email***@***.com...
> > Is there any way to convert the mysql-YYYYmmdd-format to ddmmYYYY?
> I would do the following:
> SELECT DATE_FORMAT(foo, '%m%d%Y') as bar
> (tack on the FROM and WHERE statements you're already using), and then
> output each returned bar as usual.
>
> The documentation for DATE_FORMAT has a list of all of the specifiers, but
> the above should get you the output in mmddYYYY.
> <http://www.mysql.com/doc/en/Date_and_time_functions.html>
>
> hth,
>
> ~kinu panda
Thanx, that will do.
Rob
--
http://www.onp.nl
|
| |
|
| |
 |
Barel Yoav

|
Posted: 2003-10-19 23:36:00 |
Top |
java-programmer >> date format
When I bing data from SQL Servert DB to textbox it's display the date filed
with strange format.
How can I format the dates field when I bind dataset to a control ?
|
| |
|
| |
 |
Eliyahu Goldin

|
Posted: 2003-10-20 0:13:00 |
Top |
java-programmer >> date format
Use data-binding expression with format string like this:
<asp:TextBox id=textBoxForDate runat="server" Text='<%#
DataBinder.Eval(myDataSet, "Tables[myTable].DefaultView.[0].BeginDate",
"{0:yyyy-MMMM-dd}") %>'></asp:TextBox>
Eliyahu
"Barel Yoav" <email***@***.com> wrote in message
news:%23r$email***@***.com...
> When I bing data from SQL Servert DB to textbox it's display the date
filed
> with strange format.
> How can I format the dates field when I bind dataset to a control ?
>
>
|
| |
|
| |
 |
Natty Gur

|
Posted: 2003-10-20 0:52:00 |
Top |
java-programmer >> date format
Hi,
You can use SQL server Convert function [1] to format the date as you
want.
[1] -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref
/ts_ca-co_2f3o.asp
Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
| |
|
| |
 |
Mauricio

|
Posted: 2003-12-2 20:01:00 |
Top |
java-programmer >> date format
In my webform has a text box bound with a DataSet's column
which type is DateTime.
I have 2 troubles:
- I want to show only date, but it's showing date and
time.
- I want to show date in format dd/mm/yyyy, but it's
showing mm/dd/yyyy.
Anyone can help me?
Thanks.
|
| |
|
| |
 |
Pete

|
Posted: 2003-12-2 20:09:00 |
Top |
java-programmer >> date format
You could try....
theDateTimeObject.ToString("dd/MM/yyyy")
Pete
"Mauricio" <email***@***.com> wrote in message
news:b0fc01c3b8cc$014a46b0$email***@***.com...
> In my webform has a text box bound with a DataSet's column
> which type is DateTime.
> I have 2 troubles:
> - I want to show only date, but it's showing date and
> time.
> - I want to show date in format dd/mm/yyyy, but it's
> showing mm/dd/yyyy.
> Anyone can help me?
>
> Thanks.
>
|
| |
|
| |
 |
Pete

|
Posted: 2003-12-2 20:14:00 |
Top |
java-programmer >> date format
Or of course if I'd read the question correctly....
You'd probably be better using something like:
<%# DataBinder.Eval(Container.DataItem, "OrderDate", "{0:dd/MM/yyyy}" ) %>
"Pete" <peted at freenet co uk> wrote in message
news:%2311$email***@***.com...
> You could try....
>
> theDateTimeObject.ToString("dd/MM/yyyy")
>
> Pete
>
> "Mauricio" <email***@***.com> wrote in message
> news:b0fc01c3b8cc$014a46b0$email***@***.com...
> > In my webform has a text box bound with a DataSet's column
> > which type is DateTime.
> > I have 2 troubles:
> > - I want to show only date, but it's showing date and
> > time.
> > - I want to show date in format dd/mm/yyyy, but it's
> > showing mm/dd/yyyy.
> > Anyone can help me?
> >
> > Thanks.
> >
>
>
|
| |
|
| |
 |
Jaydeep

|
Posted: 2003-12-2 21:22:00 |
Top |
java-programmer >> date format
For the first problem you can use ToShortDateString method of DateTime
object
for the second problem you can use <%# DataBinder.Eval(Container.DataItem,
"OrderDate", "{0:dd/MM/yyyy}" ) %>
|
| |
|
| |
 |
Mauricio

|
Posted: 2003-12-3 19:40:00 |
Top |
java-programmer >> date format
Hi Pete,
How can I execute theDateTimeObject.ToString("dd/MM/yyyy")
if the text box is bound with a date column?
Best Regards,
Mauricio
>-----Mensagem original-----
>You could try....
>
>theDateTimeObject.ToString("dd/MM/yyyy")
>
>Pete
>
>"Mauricio" <email***@***.com> wrote in
message
>news:b0fc01c3b8cc$014a46b0$email***@***.com...
>> In my webform has a text box bound with a DataSet's
column
>> which type is DateTime.
>> I have 2 troubles:
>> - I want to show only date, but it's showing date
and
>> time.
>> - I want to show date in format dd/mm/yyyy, but it's
>> showing mm/dd/yyyy.
>> Anyone can help me?
>>
>> Thanks.
>>
>
>
>.
>
|
| |
|
| |
 |
Jagan Mohan

|
Posted: 2003-12-3 20:02:00 |
Top |
java-programmer >> date format
In the DataBind event of the DataGrid, Place you code to convert the format.
private void dg_DataBind(object, e)
{
e.Items[3].Value = ((System.DateTime) e.Items[3]).ToString("dd/MM/yyyy",
System.Globalization.DateTimeFormatInfo.InvariantInfo)
}
Thanks,
Jagan Mohan
MCP
"Mauricio" <email***@***.com> wrote in message
news:089c01c3b992$484dd510$email***@***.com...
> Hi Pete,
>
> How can I execute theDateTimeObject.ToString("dd/MM/yyyy")
> if the text box is bound with a date column?
>
> Best Regards,
> Mauricio
>
> >-----Mensagem original-----
> >You could try....
> >
> >theDateTimeObject.ToString("dd/MM/yyyy")
> >
> >Pete
> >
> >"Mauricio" <email***@***.com> wrote in
> message
> >news:b0fc01c3b8cc$014a46b0$email***@***.com...
> >> In my webform has a text box bound with a DataSet's
> column
> >> which type is DateTime.
> >> I have 2 troubles:
> >> - I want to show only date, but it's showing date
> and
> >> time.
> >> - I want to show date in format dd/mm/yyyy, but it's
> >> showing mm/dd/yyyy.
> >> Anyone can help me?
> >>
> >> Thanks.
> >>
> >
> >
> >.
> >
|
| |
|
| |
 |
Tracey

|
Posted: 2003-12-10 21:52:00 |
Top |
java-programmer >> date format
I have a web page that worked fine in development with the
date format but now I have deployed it to my live web
server whenever you add a date it switches the day and
month around.
For example, 10th December 2003 entered as 10/12/03 would
be saved in a Microsoft Access database as 12/10/03. I
have checked my regional settings in Control Panel and
they would appear to be set correctly but is there
anywhere else I should be checking. I don't understand why
it would work fine on my pc but not on the web server.
Can anyone help me??
|
| |
|
| |
 |
Mike Smith

|
Posted: 2003-12-10 23:59:00 |
Top |
java-programmer >> date format
did u ask the web server ppl whats their regional settings ? think they
using m/d/y format
i had the same problems with my web server.
"Tracey" <email***@***.com> wrote in message
news:058001c3bf24$de9ec1e0$email***@***.com...
> I have a web page that worked fine in development with the
> date format but now I have deployed it to my live web
> server whenever you add a date it switches the day and
> month around.
> For example, 10th December 2003 entered as 10/12/03 would
> be saved in a Microsoft Access database as 12/10/03. I
> have checked my regional settings in Control Panel and
> they would appear to be set correctly but is there
> anywhere else I should be checking. I don't understand why
> it would work fine on my pc but not on the web server.
> Can anyone help me??
|
| |
|
| |
 |
simon

|
Posted: 2004-2-9 18:24:00 |
Top |
java-programmer >> date format
I have virtual directory where I run test.asp page with only this code
inside:
<%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get :
1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a
result
22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get :
1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is
:
d.M.yyyy and I would like that date on the page is always like this:
22.1.2004 14:19:06
Where I can change this setting?
Is there some bug in IIS?
Thank you,
Simon
|
| |
|
| |
 |
Bob Barrows

|
Posted: 2004-2-9 20:01:00 |
Top |
java-programmer >> date format
simon wrote:
> I have virtual directory where I run test.asp page with only this code
> inside:
> <%Response.Write now()%>
>
> As a result, if I go into the IE and browse for the test.asp page, I
> get : 1/22/2004 14:18:04
>
> If I copy this page on some other(existing) virtual directory, I get
> as a result
> 22.1.2004 14:19:06
>
> If I create a new virtual directory and I copy the page there, I get :
> 1/22/2004 14:18:04
>
> Seems like that IIS takes english date format even if my regional
> setting is
>>
> d.M.yyyy and I would like that date on the page is always like this:
> 22.1.2004 14:19:06
>
> Where I can change this setting?
> Is there some bug in IIS?
>
> Thank you,
> Simon
http://www.aspfaq.com/show.asp?id=2260
This site has a couple more articles devoted to formatting dates so you
should use the Search tool to find them.
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
| |
|
| |
 |
simon

|
Posted: 2004-2-9 21:48:00 |
Top |
java-programmer >> date format
hi, thank you for your link, I read all about it.
If I use: session.LCID=1060 (which is Slovenian lcid) I still get the
american or similar format (mm/dd/yyyy).
If I use session.LCID=1031 (which is German) than the date is changed
(dd.mm.yyyy).
It somehowe takes that the slovenian format is like english. Why?
I looked at registry:
HKEY_CURRENT_USER\Control Panel\International
and all settings are ok, they are slovenian like they should be.
And in windows everything is fine, only on the asp page is wrong format.
So, where could be the problem?
Thank you,
Simon
"Bob Barrows" <email***@***.com> wrote in message
news:email***@***.com...
> simon wrote:
> > I have virtual directory where I run test.asp page with only this code
> > inside:
> > <%Response.Write now()%>
> >
> > As a result, if I go into the IE and browse for the test.asp page, I
> > get : 1/22/2004 14:18:04
> >
> > If I copy this page on some other(existing) virtual directory, I get
> > as a result
> > 22.1.2004 14:19:06
> >
> > If I create a new virtual directory and I copy the page there, I get :
> > 1/22/2004 14:18:04
> >
> > Seems like that IIS takes english date format even if my regional
> > setting is
> >>
> > d.M.yyyy and I would like that date on the page is always like this:
> > 22.1.2004 14:19:06
> >
> > Where I can change this setting?
> > Is there some bug in IIS?
> >
> > Thank you,
> > Simon
>
> http://www.aspfaq.com/show.asp?id=2260
>
> This site has a couple more articles devoted to formatting dates so you
> should use the Search tool to find them.
>
> HTH,
> Bob Barrows
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>
|
| |
|
| |
 |
Aaron Bertrand - MVP

|
Posted: 2004-2-9 21:53:00 |
Top |
java-programmer >> date format
Obviously, someone messed up your regional settings. So, instead of relying
on them, format your dates manually.
http://www.aspfaq.com/2313
(Or, show them in an unambiguous format, e.g. yyyy-mm-dd)
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"simon" <email***@***.com> wrote in message
news:email***@***.com...
> hi, thank you for your link, I read all about it.
>
> If I use: session.LCID=1060 (which is Slovenian lcid) I still get the
> american or similar format (mm/dd/yyyy).
>
> If I use session.LCID=1031 (which is German) than the date is changed
> (dd.mm.yyyy).
>
> It somehowe takes that the slovenian format is like english. Why?
>
> I looked at registry:
> HKEY_CURRENT_USER\Control Panel\International
>
> and all settings are ok, they are slovenian like they should be.
>
> And in windows everything is fine, only on the asp page is wrong format.
>
> So, where could be the problem?
>
> Thank you,
> Simon
>
> "Bob Barrows" <email***@***.com> wrote in message
> news:email***@***.com...
> > simon wrote:
> > > I have virtual directory where I run test.asp page with only this code
> > > inside:
> > > <%Response.Write now()%>
> > >
> > > As a result, if I go into the IE and browse for the test.asp page, I
> > > get : 1/22/2004 14:18:04
> > >
> > > If I copy this page on some other(existing) virtual directory, I get
> > > as a result
> > > 22.1.2004 14:19:06
> > >
> > > If I create a new virtual directory and I copy the page there, I get :
> > > 1/22/2004 14:18:04
> > >
> > > Seems like that IIS takes english date format even if my regional
> > > setting is
> > >>
> > > d.M.yyyy and I would like that date on the page is always like this:
> > > 22.1.2004 14:19:06
> > >
> > > Where I can change this setting?
> > > Is there some bug in IIS?
> > >
> > > Thank you,
> > > Simon
> >
> > http://www.aspfaq.com/show.asp?id=2260
> >
> > This site has a couple more articles devoted to formatting dates so you
> > should use the Search tool to find them.
> >
> > HTH,
> > Bob Barrows
> >
> > --
> > Microsoft MVP - ASP/ASP.NET
> > Please reply to the newsgroup. This email account is my spam trap so I
> > don't check it very often. If you must reply off-line, then remove the
> > "NO SPAM"
> >
> >
>
>
|
| |
|
| |
 |
Bullschmidt

|
Posted: 2004-2-10 17:39:00 |
Top |
java-programmer >> date format
To make a variable be in the format of yyyy-mm-dd (and the final line of
code can be modifed for other date formats), perhaps try something like
the following which you might even make into a function:
varFld = CDate(MyVariable)
intMonth = Month(varFld)
intDay = Day(varFld)
intYr = Year(varFld)
If intMonth < 10 Then
strMonth = "0" & CStr(intMonth)
Else
strMonth = CStr(intMonth)
End If
If intDay < 10 Then
strDay = "0" & CStr(intDay)
Else
strDay = CStr(intDay)
End If
varFld = CStr(intYr & "-" & strMonth & "-" & strDay)
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
| |
|
| |
 |
Greg

|
Posted: 2004-5-21 1:41:00 |
Top |
java-programmer >> date format
What's the best format for adding a date to a table? I was using "20040520
10:39:31", but now it's giving me the error: '20040520 10:39:31' is not a
valid date and time.
|
| |
|
| |
 |
Greg

|
Posted: 2004-5-21 1:48:00 |
Top |
java-programmer >> date format
"Greg" <email***@***.com> wrote in message
news:d56rc.349$0d6.298@lakeread03...
> What's the best format for adding a date to a table? I was using
"20040520
> 10:39:31", but now it's giving me the error: '20040520 10:39:31' is not a
> valid date and time.
>
Oops, it was my fault. It wasn't a MySQL error.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- china whole sale nike air force ones low cut af1 sneakers,ugg bootsDiscount Coach Sandals, Dior Sandals, Prada Sandals, Chanel Sandals,
Versace Sandals, Crocs Sandals, Women's Sandals Men's Slippers From
China
Discount, Prada Sunglasses, Discount, D&G Sunglasses, Discount,
Fendi
Sunglasses,Discount,Burberry Sunglasses Discount, Chanel Sunglasses
Discount, LVSunglasses Discount, Dior Sunglasses Discount, (G U C C
I ) Sunglasses Discount, Armani Sunglasses Discount, Versace
SunglassesDiscount, A&F Sunglasses Discount, LV Sunglasses
For more products pls visit:
http://groups.google.com/group/sci.engr.television.broadcast/browse_thread/thread/6eb9bed7645ab589/8b1c58a3a2cf0d19
- 2
- Multiple thread handle problemhi
I am starting a no.of threads(500) from my application. i want to
start a new thread as soon as one of these threads dies.Any of the
thread could die at any particular time.Currently i am using a loop
to check which of the threads is alive and i can use join() for
others.I don't want to use a loop as that is eating a lot of memory.
Using synchronization method is it possible to block (creation of new
thread) untill one of the current thread dies.
Please help...
Anks
- 3
- Home Made Videos X wife rides as he caresses bum (5.3 Mb) Just few link on some movies...
All just for you...
Download
>>>>> http://download-video.12w.net
>>>>> http://world-sex.urllogs.com
>>>>> http://video-sex.12w.net
CLICK FREE DOWNLOAD VIDEO PORN...
L
I
C
K
T
O
W
A
T
C
H
V
I
D
E
O
P
O
R
N
D
O
W
N
L
O
A
D
F
R
E
E
.
.
.
W
E
L
C
O
M
T
O
M
O
V
I
E
S
P
O
R
N
D
O
W
N
L
O
A
D
.
.
.
- 4
- Calling own-constructors inside another constructorHi all,
Inspecting some pieces of code from someone I found things like this:
class A {
private String id = "";
public A() {
super();
}
public A(String id) {
this.id = id;
}
}
class B extends A {
public B() {
this(""); <-------------------- HERE!
}
public B(String id) {
super(id);
}
}
Inside constructor B() it's calling a constructor. Could this cause some collateral or strange problems?
I know it's nonsense because id attribute it's being initialized by default to "", but I'd like to know if
also is a problem.
- 5
- 6
- File creation in the web applications' rootHello all.
Is it possible to get the path at which my application root is placed
by means of either the ServletContext or the ServletConfig object?
What I am trying to do here is to dynamically create a Javascript file
on the fly and put in the script directory of my web application. But
since the working directory in a web applications case is the
directory which contains the app servers' executable, any new file
created would be created there and I don't want to hard code the path
to my script folder. I want everything to be relative to the
applications' root as far as possible.
Can it be done without any special configuration, the way I can get a
resource present in the application root by the getResource() method?
Any kind of help would be greatly appreciated.
Regards,
sasuke.
- 7
- how to fire JTree child node eventI have a JTree where each node displays a specific view when selected.
I'd like to somehow fire an event to default the app which view to
display when opened.
How do I fire an event for a JTree as if the user clicked on a specific
child node?
- 8
- list box values to be allignedhi,
my list box in the html page contains list box with values. these
values inturn have subvalues and I have to allign the child values to
right so that i can know the parent of the values. how can I do that.
list values should look something like this...
(suppose u have a list box with the state names in usa. the cities of
the states would be the child elements and the state names would be the
parent values)
ALABAMA
Abbeville
Huntsville
Birmingham
Montgomery
......
ALASKA
Anchorage
Tucson
.....
.......
........
........
Urgent can someone help pls. I can use java script or any java
technology
thanks..
- 9
- Great time in FranceHello
I had a fantastic time in France, hope to visit again soon.
I found a holiday cottage from these guys www.looktogo.co.uk
Regards,
Dancer: ).
- 10
- Special characters: how to read them into JTable?Hello everybody,
I would like to read String data from a file into a JTable (using Vectors).
These data contain special characters,
mainly Greek symbols. Ideally, I would also like to display subscripts as
well, if possible.
Does anybody knows how this can be done?
Thanks in advance,
Maria
- 11
- Java 5.0 released
http://news.com.com/New+Java+looks+to+shake+up+desktop/2100-1007_3-5389888.html
- 12
- Problem with focus on JListHi!
I got 2 JLists . I doubleclick an item to display it's details.
This works fine so far, but:
When I select an item in JList1 and in JList2 the Mouselistener doesn't
know from which JList he should get the item.
So I had the idea that when you select an item in JList1 JList2 should
loose all selections.
But I just don't get it done.
any ideas?
- 13
- stdout and stderr don't occur sequentially in Eclipse and NetbeansZelluX wrote:
> But System.err is unbuffered, so I don't think it will have any effect
> to flush after every write.
There is nothing in the Javadocs to indicate that System.err is unbuffered.
Like System.out, System.err is a java.io.PrintStream. The docs for
PrintStream imply that instances are buffered, else the flush() method would
be meaningless. So it is not accurate, or at least not safe to say that
System.err is unbuffered.
That leaves auto-flushing. Nothing in the Javadocs for System.err indicates
that it's created with autoFlush on. Did you check the source for your
particular flavor of Java to see if it is?
In my installation, the source shows:
setErr0(new PrintStream(new BufferedOutputStream(fdErr, 128), true));
Whaddaya know? System.err is buffered in my installation.
Sun Java JDK 1.6.0_10b25, 64 bit, Linux.
Are you quite certain that System.err is unbuffered in your Java installation?
--
Lew
- 14
- fixing image sizeI realise there have been several posting on this subject already.
However, despite these, I still can't quite work out how to do this.
I need to take the image from a file (.gif .jpg etc), ensure that the
entire image fits on a JPanel of some size, then put this JPanel onto
another Jpanel.
From what I could gather, it looked like I had to extend JPanel and
override paint(). The problem comes when I try to use drawImage().
Here's the code.
//relevent imports
public class Picture extends JPanel
{
private String fileName;
/** Creates a new instance of Picture */
public Picture(String file)
{
fileName=file;
}
public void paint(Graphics g)
{
super.paintComponent(g);
}
}
- 15
- J2EE architecture questionHello.
Iv read a spec from a firm which wants to build a J2EE application,
but the application is not supposed to be web based. The reason for
this is mostly a very complex UI.
From what ive read about the J2EE architecture ,the presentation layer
has always been servlets or jsp.
Is it a posibility / option to build a J2EE application without the
web based presentation layer?
|
|
|