joseph dela cruz

Ranch Hand
+ Follow
since May 17, 2012
joseph likes ...
Oracle Chrome Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by joseph dela cruz

hi ive been thinking if i can make an application that when i download an excel file from the internet or office cloud and upload it in my java application the java app will automatically convert it into CSV file and read it through standard IO library
i know there are third party libraries that read excel files and put it right into JTable

my question is what im trying to do really worth the trouble?
is using a third party library with this kind of function good ? if yes what library you recommend ?
also if there is a more conventional way than these please share it
thanks
11 years ago
I just want to clarify if ObjectInputStream results into one receive?

I wrote a program in c# for my school project and when the object is small it serializes and desializes just fine but when the object got big sending its initial size then reading it with readBytes(length);
is not effective anymore it says cannot read beyond the stream and so i searched and then i found that for sending objects to be effective you need message framing since one send does not result to one receive.

now in java i want to know if ObjectInputStream wont result into a multiple receive or if ever please help me correct some of my misconceptions and help me how to do a multiple receive since i have no idea about it. help me out guys

by the way im putting the object through TCP/IP ports and sockets etc.
11 years ago

Anayonkar Shivalkar wrote:Hi joseph,

Are you sure that you are using an empty infinite loop for GUI refresh? Any specific reason for that?


that block is not empty i just did not put it to make the code shorter but what it does is disable and enable a terminateButton on a specific connection if the list is empty then it will go disable anyway thanks for the book

john price wrote:

Bear Bibeault wrote:

john price wrote: Java seems like a technology no one wants to use


You need to get out more.



All my coding friends do not use Java. Could you tell me some main technologies that use Java? I'm not asking for the basic ones on Java.com or anything. I'm talking about major corporations like Google, Facebook, Microsoft, Apple, Twitter etc.

John Price


correct me if im wrong i know android is java and every body loves android apps
11 years ago
i have a very simple chat app. its not done yet but whats bothering me is when i am creating a thread for an update of GUI asap it uses both cores at 100% i do not have air condition but its not that hot here in the philippines.
does 100% cpu usage burns my proccessor plus im using htop in terminal in ubuntu at first loading of my application it sets both cores to 100% then when i try to stop and restart my mini chat app server it goes 90% and below but its red.
does it mean my cpu are working more than it should be?
plus i observed that some of the games(heavier than my mini chat app of course) that i play. doesnt use that much cpu please help



this is my thread for my gui update

and this my code for stop and start server button


by the way if im doing something wrong please tell me thanks
thanks i am trying to build a server that can run in a background and manage it anytime for my chat application.
i think system tray is the proper way to do it like wampserver although my pet project is crapt compared to wampserver
thank you again very much
11 years ago


what if i ran this on cmd and i closed it via x button does it end the program? if not why and how do i resume to my program if ever i lost reference to it?
if it exits how do i create a program that works on background and can resume to it anytime?
need your help guys.
thanks in advance
11 years ago
this wasnt installed properly either pease help im installing it now via sudo. it looks very tidy in my downloads folder
11 years ago
ahhhh ty ty i havent read that page ty for the link
11 years ago
i already looked there i even tried to learn to swing manually. i can already make an application with swing manually but if i have to run them i have to press shift F6 in netbeans. now i want to learn how to deploy them in a distributable manner and i do not know how to do it please help what do i lack? am i doing something wrong?. what is it that org.jdesktopapplication have that when its built it runs unlike in a regular build it wont run
11 years ago
i just cant make a desktop application whenever i built it in netbeans or built it in cmd it just shows nothing. do i have to put someting in command line arguments? i just dont know how to do it
11 years ago
how do i make a desktop application when org.jdesktopapplication package doesnt exist. i already checked my libraries. the specific swing library is inexistent
11 years ago
im not sure but i do think its stand alone i only used swing and some computations i even tried to make an empty program i used swings only just to try if it the gui will load
11 years ago
whenever i build in netbeans the program just wont run using the jar file icon in the dist folder why?
11 years ago
i already found the answer my win installer is miraculously disabled in services i just turned it on thanks for the reply
11 years ago