How to insert a reference to a blog in my entry?
Java Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java ProgrammingGo to page: « previous | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | next »

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Saturday, 25 August 2007
Rounded corners Tуth Jуzsef 10:50:05
 Hi,

I'm using PdfPTable in the page header with border:

header.getDefaultCe­ll().setBorderWidth(­1);
header.getDefaultCe­ll().setBorder(15);

Is it possible to make rounded corners arround the header?

Joe
comment 7 answers | Add comment
Thursday, 23 August 2007
Shared memory IPC using NIO memory-mapped files -- anyone done this? Brian Maso 19:54:25
 Java NIO supports memory-mapped files, which has the cool ability to
allow multiple apps to share the same array of data if they all map
the same file in to their respective address spaces.

I've wondered about using memory-mapped files for inter-process
communication for a while. Someone I know is asking me whether or not
this is good to use for high-performance communication between Java
and C++ -- basically sharing fixed-length records between Java and a
C/C++ program in a producer/consumer sort of system.

It seems like memory-mapped files would be ideal for sharing data
like this. A Java app could extract data from some source and put it
in to a MappedByteBuffer, which would immediately be visible to any
other app on the same box that has mapped the same file. However, I
can't figure out how the Java process would "signal" the external
app, indicating that a new record is available for consumption, or
alternatively how an external app would signal the Java app to tell
it to write out a new record to the shared memory space.

Anyone familiar with shared memory inter-process communication out
there who can give me a hint? Google and the regular sources aren't
revealing anything to me this morning.

Brian Maso

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 9 answers | Add comment
Special characters Stephanie Born 19:20:34
 Hi Everybody!

How can I do to put special characters (Example: ь,д,ц,Я....) when I create
a PDF-file with iText?

Thanks
comment 26 answers | Add comment
GC error Avinash Lakshman 18:29:52
 java.lang.OutOfMemor­yError: GC overhead limit exceeded

Has anyone seen this error before ? I am running on a 64 bit machine with
JDK1.6.0_01. I am starting this process -Xmx flag set to 8GB. Is this a VM
bug or do I have to start looking into the GC behavior ?

Please advice.

Thanks in advance
Avinash

___________________­____________________­____________________­______
Booking a flight? Know when to buy with airfare predictions on MSN Travel.
http://travel.msn.c­om/Articles/aboutfar­ecast.aspx&ocid=T001­MSN25A07001

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Wednesday, 22 August 2007
Is it thread-safe to pool the PreparedStatement? Carfield Yim 09:07:06
 I just join a project, this existing team member of this project
concern performance a lot so their pool all PreparedStatements into a
map (probably not a nice optimization, but I have no say about that)
when the application start. And then reuse those preparedstatement
again and again.

I haven't get time to check all method call using those
preparedstatement are synchronized properly. If that is not the case,
is it thread-safe to pool the PreparedStatement?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 11 answers | Add comment
Tuesday, 21 August 2007
Open source Profilers Avinash Lakshman 05:36:21
 Hi

Any good open-source profilers that you guys would recommend based on
experience ? Basically I need something that will tell me the time spent in
each method call over a run.

Thanks
Avinash

___________________­____________________­____________________­______
Messenger CafИ open for fun 24/7. Hot games, cool activities served daily.
Visit now. http://cafemessenge­r.com?ocid=TXT_TAGHM­_AugHMtagline

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 11 answers | Add comment
Sunday, 19 August 2007
BufferedInput/Output­Stream and buffer size Avinash Lakshman 00:10:28
 Hi

Has anyone ever run into this ? It looks like setting the buffer size to
some really high value doesn't really help. Is it true that above the
default size which is I guess is 2K, setting this size to anything higher is
of absolutely no use. Any experience or workarounds to setting the buffer
size to something like 64 MB.

Thanks
A

___________________­____________________­____________________­______
More photos, more messages, more storage get 2GB with Windows Live Hotmail.
http://imagine-wind­owslive.com/hotmail/­?locale=en-us&ocid=T­XT_TAGHM_migration_H­M_mini_2G_0507

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Saturday, 18 August 2007
Minimizing Garbage collection in Latency sensitive applications Rodrick Brown 22:58:17
 I would like to start a brain storming session on ways to minimize GC
on latency sensitive multi-threaded applications anyone care to share
some tips/ideas?

Thanks.

--
Rodrick R. Brown
http://www.rodrickb­rown.com

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Friday, 17 August 2007
Interesting issue Sudhakar Jalli 23:05:39
 I am transforming xml to xml using an xsl with Xalan
XSLT processor. But I am getting the resulting xml as
string instead of

nodelist.

test.xsl
<xsl:stylesheet
xmlns:xsl="http://w­ww.w3.org/1999/XSL/T­ransform"
xmlns:lxslt="http:/­/xml.apache.org/xslt­"

xmlns:result="http:­//www.example.com/re­sults"
extension-element-p­refixes="result" version="1.0">
<xsl:output method="xml"/>
<lxslt:component prefix="result"
functions="GetCopyB­ookData">
<lxslt:script lang="javascript">
function GetData(Data)
{
var x1 = 0;
var x2 = 0;
var result;
for(var i = 1;i < 3; i++)
{
var s = "<Customers><FirstN­ame>";
x1 = x2;
x2 = x1 + 15;
s = s + Data.substring(x1,x­2) + "</FirstName>";
s = s + "<LastName>";
x1 = x2;
x2 = x1 + 1;
s = s + Data.substring(x1,x­2) + "</LastName>";
s = s + "<StreetNum>";
x1 = x2;
x2 = x1 + 1;
s = s + Data.substring(x1,x­2) + "</StreetNum>";
s = s + "<Street>";
x1 = x2;
x2 = x1 + 1;
s = s + Data.substring(x1,x­2) + "</Street>";
s = s + "<City>";
x1 = x2;
x2 = x1 + 1;
s = s + Data.substring(x1,x­2) + "</City>";
s = s + "<State>";
x1 = x2;
x2 = x1 + 1;
s = s + Data.substring(x1,x­2) + "</State>";
s = s + "<Zip>";
x1 = x2;
x2 = x1 + 1;
s = s + Data.substring(x1,x­2) + "</Zip>";
result = result + s;
}
return result;
}
</lxslt:script>
</lxslt:component>
<xsl:template match="/">
<xsl:variable name="Data" select="data"/>
<xsl:value-of select="result:GetD­ata($Data)"/>
</xsl:template>

test.xml
<Customers>
<data>SudhakarJalli­030719751809Bigbendd­rmilpitasca95035Raje­evkasarabada03271975­1788lowerbenddrivesa­njoseca94523</data>
</Customers>


Result.xml

<Customers>
<FirstName>Sudhakar­</FirstName>
<LastName>Jalli</La­stName>
<DOB>03071975</DOB>­
<StreetNum>1809</St­reetNum>
<Street>BigBendDr</­Street>
<City>Milpitas</Cit­y>
<State>CA</State>
<Zip>95035</Zip>
</Customers>
<FirstName>Rajeev</­FirstName>
<LastName>Kasarabad­a</LastName>
<DOB>03271975</DOB>­
<StreetNum>1788</St­reetNum>
<Street>lowerbenddr­ive</Street>
<City>sanjose</City­>
<State>CA</State>
<Zip>94523</Zip>
</Customers>

Thanks in Advance
Sudhakar

___________________­____________________­___________
Do you Yahoo!?
Yahoo! Mail Plus Powerful. Affordable. Sign up now.
http://mailplus.yah­oo.com

comment 40 answers | Add comment
Thursday, 16 August 2007
Java API for disks in a machine Avinash Lakshman 10:49:58
 Hi All

I know there is exposed API for identifying the number of network interfaces
in a machine. Is there API available for identifying the number of disks
available in a machine ?

Thanks
A

___________________­____________________­____________________­______
A new home for Mom, no cleanup required. All starts here.
http://www.reallive­moms.com?ocid=TXT_TA­GHM&loc=us

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Tuesday, 14 August 2007
Exit from Exception Code Ivan H Mann 12:22:33
 Running on my Unix workstation, I have a main routine which pops up a
gui. Running from the command line, the gui does some processing,
responding to different buttons that at pressed, until the Done button
is pressed, when the gui goes away, the program exits, and the prompt
appears in the shell window.

There are things that can cause an exception to occur. Sometimes the
exception handling can cause a JOptionPane gui to pop up under control
of the code in a catch block. When these things happen, everything
appears to be the same, except that usually after the gui disappears
control does not return to the shell window until I press ctrl-C. This
tells me there is a process running somewhere, but I don't know where.

When testing, this is only a minor annoyance, but I am concerned that I
don't know what is going on. I am also concerned that there might be
some implication when running in production. Does anybody know what is
going on with the exception handling or the JOptionPane?

Ivan Mann





===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 21 answer | Add comment
Friday, 10 August 2007
Re: ADVANCED-JAVA Digest - 2 Aug 2007 to 3 Aug 2007 (#2007-76) Michael Brewer 15:41:03
 
.... just try that at MacOSX , but don't give me a thread dump :-/­ is
that only for solaris??
On 8/1/07, ron.yang@oracle.com­ <ron.yang@oracle.co­m> wrote:
Get into the mystery state then ask your process for a thread dump (kill -3 pid ?), this ought to produce a lead.

On OS X 10.4, calling kill -3 <PID> (or kill -QUIT <PID>) spits a thread
dump to the console (default: Applications/Utilit­ies/Console.app).

I haven't been able to get the same behavior on 10.3, with limited time
spent.

michael

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Forcing sub-classes to implement Constructor Roger Jakobsen 14:02:43
 Is there a way to force subclasses of a class to implement a certain (read
empty) constructor.

mvh roger j

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 17 answers | Add comment
Thursday, 9 August 2007
Compacting multiple large files Avinash Lakshman 19:35:03
 Hi

I have a requirement where I need to merge multiple sorted large files into
one single file. There could be at any given instant of time up to 50 files
which could be a few GB in size. Is there any known efficient algorithm or
technique in Java to achieve this ?

Thanks in advance
Avinash

___________________­____________________­____________________­______
Puzzles, trivia teasers, word scrambles and more. Play for your chance to
win! http://club.live.co­m/home.aspx?icid=CLU­B_hotmailtextlink

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 11 answers | Add comment
Tuesday, 7 August 2007
[JBoss IDE] - tutorial help Wenger 19:02:59
 I'm working through the JBoss-IDE tutorial trying to figure out this xdoclet thing and am getting hung up.

Right now I've created the ear file according the directions in the tutorial doc. The initial web page comes up when I start the debugger but when I try to submit I receive an http status 404 with the resource is not available. So I look at the web.xml housed within the war file (within the ear file) and it is completely different from the one I created in the IDE. The same is true of the jboss-web.xml file??? I'm really confused - there are no other web.xml and jboss-web.xml files as part of my project and I've checked and quaddruple checked the config definition to make sure it is pointing the right web.xml file and and the right jboss-web.xml files.

Any ideas?

Also, If anyone could just send me a working FiboApp.ear file I would be most appreciative. email to me at lwengertibco.com

thx,

lw

View the original post : http://www.jboss.or­g/index.html?module=­bb&op=viewtopic&p=38­32746#3832746

Reply to the post : http://www.jboss.or­g/index.html?module=­bb&op=posting&mode=r­eply&p=3832746


-------------------­--------------------­----------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com­/?ad_id=3149&alloc_i­d=8166&op=click
comment 8 answers | Add comment
connection of tally accounting software to .net Sachin Garg 14:51:28
 Hi

I am Sachin looking for solution to establish connection of vb.net to
tally software and update the data of tally from .net application

Please mail be the details how could it be done

Regards

Sachin garg

Email sagarg@hcltech.com,­gsaching9001@yahoo.c­o.in

comment 2 answer | Add comment
Monday, 6 August 2007
table Aristo Togliatti 18:24:43
 Hi all,

is it possible to retrieve the x and y coord. of a table's left lower corner
(or any corner)?

Thx,

A.

-------------------­--------------------­--------------------­-----------------
Bringing you mounds of caffeinated joy >>> http://thinkgeek.co­m/sf <<<
comment 14 answers | Add comment
hi Ashish Sanghvi 10:48:14
 Hi,
I have just join the group.
Can anyone suggest me the best way to start?
Regards,
Ashish Sanghvi

comment 241 answer | Add comment
Sunday, 5 August 2007
Server-Mode JVM's Native Code Compilation Policy Randall R Schulz 23:58:03
 Hi,

I have been under the impression that Sun's server-mode JVM will
immediately JIT-compile all methods of all classes as soon as they're
loaded.

I tried to find confirmation of this, but couldn't. Is this something I
might have read once that is no longer true? Or did I somehow fabricate
the whole thing?


Randall Schulz

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 11 answers | Add comment
Wednesday, 1 August 2007
re: logo Timothy Ma 17:19:02
 Sirs

I am going to display pdf on the fly by incoking a servlet in xslt page

However, I want to embedded a logo to display page.
Because broswer machine would provide no directory to hold the jpeg file.
Is there any suggestion to do this?






Timothy Ma
comment 6 answers | Add comment
Monday, 30 July 2007
Form help Good Fella 17:32:18
 Hi All,

I currently have a small problem with my PHP form. I have made two PHP
files (application.php and process_application­.php).

On submitting the form, you then move to process_application­.php. Any
errors will force the form NOT to be submitted to me.

However, how do I stop people from accessing process_application­.php
directly? You can still type in the URL of this address without filling in
any details.

Although it serves up an error, is there anyway I can prevent people from
getting to this page unless they press "Submit" on the actual form on
application.php?

Thanks,

SK
___________________­____________________­____________________­______________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.­com.

comment 16 answers | Add comment
Sunday, 29 July 2007
How use JAXP DOM with Schema Validation? Dan Bizman 14:39:44
 I want to use the Java XML API so that I can pop in and out different
implementations of XML parsers as I need/want to. However, as far as I can
tell, if I want Xerces to validate an XML document with a Schema, I CANNOT
use the DocumentBuilderFact­ory method. Is this correct?

As far as I can tell, the only way to make it use a schema for validation
is by setting certain parser features such
as "http://apache.org/­xml/features/validat­ion/schema" and this can only be
done on either a SAX Parser or Xerces' DOMParser, which you MUST refer to
explicitly by name to use "setFeature" since setFeature is not part of the
DOM interface.

Does anyone know if there's a way around this? Can I actually use the
following and make it use an XML Schema for validation?


<code>
DocumentBuilderFact­ory factory = DocumentBuilderFact­ory.newInstance();
factory.setValidati­ng( true );factory.setNamesp­aceAware( true );
DocumentBuilder builder = factory.newDocument­Builder();
Document doc = builder.parse( file );
</code>

If not, then what was the purpose of the above interface (JAXP)?!

You can read messages from the ADVANCED-JAVA archive, unsubscribe, or
subscribe to other DevelopMentor lists at http://discuss.deve­lop.com.

comment 3 answer | Add comment
Monday, 23 July 2007
Memory mapping of files. Avinash Lakshman 23:59:38
 Hi All

I was looking into how to do Memory mapping of files in Java. I figured out
that once a portion of a file is loaded into memory there isn't any specific
API to unload it. Atleast I couldn't find any. Are there any tricks anyone
is aware of to acheive this? Is this necessary, if the ByteBuffer that is
returned is treated as a local variable ? Docs say that the loaded file is
unloaded when the ByteBuffer is garbage collected. Is this good enough or is
there any trick to force the unload ?

Thanks in advance
A

___________________­____________________­____________________­______
http://liveearth.ms­n.com

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 3 answer | Add comment
Tuesday, 17 July 2007
Ajax Ramin 20:10:00
 I know Matt has some plans to add Ajax capabilities to AppFuse. I
found this site with some nice examples to look at.

http://www.fiftyfou­releven.com/resource­s/programming/xmlhtt­prequest/examples
--
- Ramin
comment 107 answers | Add comment
Saturday, 14 July 2007
Synchronization in a HashMap Avinash Lakshman 15:42:02
 Hi All

I was wondering if anyone has implemented this kind of synchronization in a
HashMap. I want synchronized access to the put() and get() methods but I do
not want to synchronize the entire data structure by using a Hashtable. I
was thinking of somthing along these lines:

Maintain a separate list of the keys inserted into the map. On put() check
this list to see if the key exists. If it does get it and synchronize on
that key. If not add it to the list and synchronize on it. Any other design
ideas on how to achieve per-key based synchronization.

Thanks in advance
A

___________________­____________________­____________________­______
http://imagine-wind­owslive.com/hotmail/­?locale=en-us&ocid=T­XT_TAGHM_migration_H­M_mini_pcmag_0507

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java ProgrammingGo to page: « previous | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | next »

see also:
Postgresql likes Tuesday...
re: 3.23.52 log rotation crash
Purpose of rscale/dscale in NUMERIC?
pass tests:
How objective you are
see also:
Enjoy Your iPod with More Videos: from…
Some Problems of Ripping DVD to ipod…
How to Get Videos from Youtube and Use…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .