Serkan Demir

Ranch Hand
+ Follow
since Feb 03, 2005
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Serkan Demir

Hi guys,

For a monitoring gui, our mission is to port a real-time charting engine to our monitoring web site. We planned to use AJAX at client side and Java at server side. Do you know is there any charting engine for drawing real-time data which is populated by Ajax?

thanks lot,
Hi guys,
I have a question with SED and its text processing capability.
I have a file with entries similar to below which are separated with ';'.
0;20070718095600;514;3;-1508598133;3;0;905332000000;905331374678;163;0;0;0;0;-002094771550:31fc6b2:113d8159c7f:-7ec1;0;0;5;0;20070718095559;1111905332000000;;2;994508887766;0;;;0;;20;1;-002094771550:31fc6b2:113d8159c7f:-7ec1;0;0;2001;1;98765

I want to separate this line into tokens by delimiting ';' and put index numbers before it.
eg:
1) 0
2) 20070718095600
3) 514
4) 3
5)
.
.
.
37)

I have been playing with sed, but i am unsuccessful to do this. Could you help me with this?

Thanks lot,

Serkan
16 years ago
LinkedHashMap works, thanks guys.
16 years ago
LinkedHashMap works, thanks guys.
16 years ago
this requirement is a serious one because we have memory limitations and this map would have more than 1 million key-value pairs. If we utilize another structure it would be as large as this map (am i wrong?) and it consumes more memory.
16 years ago
this requirement is a serious one because we have memory limitations and this map would have more than 1 million key-value pairs. If we utilize another structure it would be as large as this map (am i wrong?) and it consumes more memory.
16 years ago
Hi guys,
I need to store my key-value pairs in a map which should have a limited size. If the map reaches its limit, for a new put, the eldest key-value pair should be dropped and the new one should be added. I do not want to utilize an extra data structure for timings in addition to my map.
Could you recommend a data structure for this? I searched some types of maps in collection framework but i cannot find a built-in support for FIFO in maps. Can i use SortedMap for this?

serkan
16 years ago
Hi guys,
I need to store my key-value pairs in a map which should have a limited size. If the map reaches its limit, for a new put, the eldest key-value pair should be dropped and the new one should be added. I do not want to utilize an extra data structure for timings in addition to my map.
Could you recommend a data structure for this? I searched some types of maps in collection framework but i cannot find a built-in support for FIFO in maps. Can i use SortedMap for this?

serkan
16 years ago
I am not a guru of EJB, but in my opinion, in order to profile an application you dont need to have original source codes of application. Byte codes are enough for profiling. A good profiler can show method call traces of profiled application by using compiled sources.
I think you missed something. If you have enough time, please try jprofiler.
17 years ago
I will decide to enter SCJP and prepare by a book. I will decide to buy "SCJP Exam for J2SE 5 from Paul Sanghera". Is there anyone who bought and prepared with it? Did you recommend it?

thanks lot for your recommendations.

Serkan
you have to play with classloaders. please take a look to this example.
http://javaalmanac.com/egs/java.lang/LoadClass.html?l=rel
17 years ago
It is a telecom application and high availability is matter.
17 years ago
Hi guys,
I have an urgent question. We have a process which is already up in our production environment. I need GC statistics since we have some doubts on stop-the-world case (application threads are stopped and waiting something very long). I mean by GC statistics, Full GC times and its frequency. Unfortunately, we didnot start this application with -verbose:gc parameters and no opportunity to add this parameter and restart it. Our application uses jre 1.4.x, so i cannot monitor it with jconsole.
Could you advise me on how to get these GC statistics for this application??

thanks lot,

Serkan
17 years ago
it works in jdk1.5.0_06 and prints 5. But it doesnt compile with jdk 1.4.
17 years ago
hello,
i have been starting my java application with verbose gc parameter(-verbose:gc ). The whole std out of application is directed to nohup.out file. But i need to direct only GC output to a new file.
Do you know how i can do that without grepping nohup.out file?

Serkan
17 years ago