NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

HI everyone

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
H2O



Joined: 08 Feb 2011
Posts: 6
Location: tucson az

PostPosted: Tue Feb 08, 2011 7:06 am    Post subject: HI everyone Reply with quote

I'm new to this forum, new to Java, and new to NetBeans but before I retired I was a mainframe computer programmer and started with Fortran when it was brand new.

I'm looking for any tips and or traps anybody would care to pass along to a new guy.

I'm running Windows 7 Pro, 64-bit and I've got NetBeans up and running without any problems so far....knock on wood.

So I don't have anything to complain about or ask a question about but I'm pretty sure I will have a question or two.

Thanks ahead of time for your replies.

friends,
larry


Last edited by H2O on Wed Feb 09, 2011 9:07 pm; edited 1 time in total
Back to top
Todor Kostadinov
Posted via mailing list.





PostPosted: Wed Feb 09, 2011 8:50 am    Post subject: HI everyone Reply with quote

Hi Larry,

Welcome in the Java world, welcome in NetBeans also.

What do you mean with your name H2O. Do you mean water? If yes why exactly water?


Yours sincerely
Todor J. Kostadinov


-----Urspr
Back to top
H2O



Joined: 08 Feb 2011
Posts: 6
Location: tucson az

PostPosted: Wed Feb 09, 2011 10:47 am    Post subject: H2O = water Reply with quote

I'm using H2O as my username because nobody else is using it. It's short, sweet, and to the point. Also, because I have 2 BS degrees..........one in Chemistry, and one in Chemical Engineering. Plus I like water when I'm thirsty. Like right now. Thanks for asking and thanks for the welcome(s).
Back to top
throwcode



Joined: 26 Dec 2008
Posts: 30

PostPosted: Wed Feb 09, 2011 6:40 pm    Post subject: HI everyone Reply with quote

Hey H20, can you tell us what areas of development your pursuing (SE,
EE, ME, web apps, etc). This will help us to direct you.

Regards,
Don




On 2/8/2011 2:07 AM, H2O wrote:

Quote:
I'm new to this forum, new to Java, and new to NetBeans but before I retired I was a mainframe computer programmer and started with Fortran when it was brand new.

I'm looking for any tips and or traps anybody would care to pass along to a new guy.

I'm running Windows 7 Pro, 64-bit and I've got NetBeans up and running without any problems so far....knock on wood.

So I dont' have anything to complain about or ask a question about but I'm pretty sure I will have a question or two.

Thanks ahead of time for your replies.

friends,
larry

------------------------
I got my signature right here




Back to top
Brian1



Joined: 09 Feb 2011
Posts: 3
Location: Dublin

PostPosted: Wed Feb 09, 2011 8:39 pm    Post subject: [SPAM] Re: HI everyone Reply with quote

Hi H20, welcome and everyone. I am also new to Netbeans but at least you
have your head around things, expecially with your background in Fortran
and C. Maybe I can pick your brains. I have successfully downloaded Netbeans
and it looks great with the folders and the like. But when I go to compile
it is looking for the Base folder. I thought I had MinGW the .exe file. A
few files show up as compilers but not the .xe. Any advice on how to get a
compiler working and any preference. I have read the Sourceforge documents
but none the wiser. Any help from you or anyone would be greatly
appreciated. Brian
----- Original Message -----
From: "Don Millhofer" <address-removed>
To: <address-removed>
Sent: Wednesday, February 09, 2011 6:38 PM
Subject: [nbusers] Re: HI everyone


Quote:
Hey H20, can you tell us what areas of development your pursuing (SE, EE,
ME, web apps, etc). This will help us to direct you.

Regards,
Don




On 2/8/2011 2:07 AM, H2O wrote:

Quote:
I'm new to this forum, new to Java, and new to NetBeans but before I
retired I was a mainframe computer programmer and started with Fortran
when it was brand new.

I'm looking for any tips and or traps anybody would care to pass along to
a new guy.

I'm running Windows 7 Pro, 64-bit and I've got NetBeans up and running
without any problems so far....knock on wood.

So I dont' have anything to complain about or ask a question about but
I'm pretty sure I will have a question or two.

Thanks ahead of time for your replies.

friends,
larry

------------------------
I got my signature right here






Back to top
H2O



Joined: 08 Feb 2011
Posts: 6
Location: tucson az

PostPosted: Wed Feb 09, 2011 8:57 pm    Post subject: Re: HI everyone Reply with quote

throwcode wrote:
Hey H20, can you tell us what areas of development your pursuing (SE,
EE, ME, web apps, etc). This will help us to direct you.
[/quote]
Um........I downloaded the JDK for SE and have been playing with it trying to learn Java....I'm making some headway and I'm learning a lot but I guess I'm still classified as a hobby-programmer so far. I don't have any asperations for a job or anything I just want to hack around and find out what I can do etc. I'm especially interested in multi-threading since I have 2 CPU's on my system. I'm finding Swing to be more of a brain-dead approach to doing Windows forms than it really needs to be and think maybe I should have separate code path(s) to do the form stuff and the hard-core program code. Correct me if I'm wrong but there already is a thread that does nothing but the swing stuff and you're not really supposed to use it to do the hard-core programming stuff since it will introduce lag....noticable to the user.

Um.......I guess I'd like to put together a simulation of a chemical processing plant but that's horribly complex and might be several months down the road for me. But I'd like to include heat-exchangers, distillation towers, tanks, pipes, reactors, etc. and that just begs for multi-threading.
Back to top
H2O



Joined: 08 Feb 2011
Posts: 6
Location: tucson az

PostPosted: Wed Feb 09, 2011 9:05 pm    Post subject: Re: [SPAM] Re: HI everyone Reply with quote

Brian1 wrote:
Hi H20, welcome and everyone. I am also new to Netbeans but at least you
have your head around things, expecially with your background in Fortran
and C. Maybe I can pick your brains. I have successfully downloaded Netbeans
and it looks great with the folders and the like. But when I go to compile
it is looking for the Base folder. I thought I had MinGW the .exe file. A
few files show up as compilers but not the .xe. Any advice on how to get a
compiler working and any preference. I have read the Sourceforge documents
but none the wiser. Any help from you or anyone would be greatly
appreciated. Brian

Hey Brian........so um......I opted to have NetBeans manage my projects so it wouldn't be confused when I go to compile. I just right clicked on Projects and then new and followed the wizzard to create a new project and NetBeans handles all the placement of the folders etc. So when I compile it already knows where the 'base-folder' is I guess. No complaints so far....knock on wood. Sorry you're having problems finding a good compiler. I opted to use the one that came with the SDK and it seems to be doing a good job so far. I'm trying not to get to complicated yet in compiler choice etc. since it's especially easy to confuse a new guy. Once I learn my way around more I might delve into specialized compilers and what not. If you're not too far along in your project already you might want to get NetBeans to create your project folders for you when you create your project. I mean instead of trying to just point out to NetBeans where your project already lives.
Back to top
Erik Steen Jakobsen
Posted via mailing list.





PostPosted: Wed Feb 09, 2011 11:06 pm    Post subject: the nb blues Reply with quote

Hi guys

I still thanks the guys at sun and net-beans for the effort.

but ...

Damn I getting depressed seeing the 6.9.x.
I don't know who the sorry ass looser was who decided to de-develop
net-beans down to an "enriched" notepad.
But it is sad so see the Visual in MVC reduced from "image" (who says
more than 1000 words) to "text" (which is visual in a strange
intellectual way). For a rad -developer net-beans has become as valuable
as an accountant at an modern art-exhibition - ie: dysfunctional artwise.-)
Before - and thanks heaven for nb 5.5 , 6.5 , sun creator - I could let
a designer produce my web-pages and I could concentrate on mockups (
quickly displayed in meetings with clients ) and business-logic.
Now I have - if I want to use netbeans - to have a trained programmer to
produce a serious hampered visual expression.
Thanks and no thanks for netbeans > 6.5
Erik
Back to top
Todor Kostadinov
Posted via mailing list.





PostPosted: Thu Feb 10, 2011 10:15 am    Post subject: HI everyone Reply with quote

Citation from you : " ... simulation of a chemical processing plant ..."

Such a simulation could be an interesting task I think. Now I understand your name H20.

You could think this way - Swing is your friend, it could help you to make things you thought it was very hard (impossible) to achieve. Of course Swing runs in a separate thread.

Yours sincerely
Todor J. Kostadinov

-----Urspr
Back to top
Todor Kostadinov
Posted via mailing list.





PostPosted: Thu Feb 10, 2011 10:24 am    Post subject: HI everyone Reply with quote

Hi Brian,

in Java we do not produce "*.exe" files. When we make development in Java you produce "*.class" files, with or without NetBeans.

When you speak about "*.exe" filed and about "MinGW" I think you want to make a C or C++ development. It is completely all right, but
you must tell NetBeans where you compiler is. And NetBeans can understand you.

Yours sincerely
Todor J. Kostadinov


-----Urspr
Back to top
Brian1



Joined: 09 Feb 2011
Posts: 3
Location: Dublin

PostPosted: Thu Feb 10, 2011 5:54 pm    Post subject: HI everyone Reply with quote

Particularly to OH2 got the compiler sorted thanks used the Mac instead and it located the compiler on my hard drive . Thanks for the posts

Kind regards,

Brian


On 10 Feb 2011, at 16:30, "Stadelmann Josef" <address-removed> wrote:

Quote:
Simulation of a chemical processing plant? Greate! simulation of redox reactions? Hmmm.

It sounds very good to me. My second leg, beside SW development, is with wood gasifiers;
coming months will show me realising a 45kW el / 105 kW th wood gas plant for client in Autrich.
We will provide energy from natural regenerable resources, from biomass, from wood snipets.

my few cents: modelling chemical objects is a big challenge. How do you think to do that?

modelling down to the atom or molecule level is an even bigger one. Where do you start?

Did you ever work before with simulation SW, simulating plant equipment?

The simulation of the behaviour of chemical substance in redox reactions is a challenging issue?
How do you modell it?

i.e. what happens when I mix this two substances O and 2H and apply some heat?

i.e will exothermic energie develop? if yes, how fast and how much?

It is in fact a complex thing you aim at.

BUT Deploying it onto your system, deploying it to various threads,
to dedicated maybe heterogeneous CPU's / Cores is a further challenge; Debugging one more?

yea, why not, give it a try. And because Simulation is much about Real Time it migth be worth reading

http://en.wikipedia.org/wiki/Real_time_Java

é all

Josef -
Let me know how you do.




-----Ursprüngliche Nachricht-----
Von: H2O [mailto:address-removed]
Gesendet: Mittwoch, 9. Februar 2011 21:58
An: address-removed
Betreff: [nbusers] HI everyone


throwcode wrote:
Quote:
Hey H20, can you tell us what areas of development your pursuing (SE,
EE, ME, web apps, etc). This will help us to direct you.


Um........I downloaded the JDK for SE and have been playing with it trying to learn Java....I'm making some headway and I'm learning a lot but I guess I'm still classified as a hobby-programmer so far. I don't have any asperations for a job or anything I just want to hack around and find out what I can do etc. I'm especially interested in multi-threading since I have 2 CPU's on my system. I'm finding Swing to be more of a brain-dead approach to doing Windows forms than it really needs to be and think maybe I should have separate code path(s) to do the form stuff and the hard-core program code. Correct me if I'm wrong but there already is a thread that does nothing but the swing stuff and you're not really supposed to use it to do the hard-core programming stuff since it will introduce lag....noticable to the user.

Um.......I guess I'd like to put together a simulation of a chemical processing plant but that's horribly complex and might be several months down the road for me. But I'd like to include heat-exchangers, distillation towers, tanks, pipes, reactors, etc. and that just begs for multi-threading.

------------------------
I got my signature right here
Back to top
H2O



Joined: 08 Feb 2011
Posts: 6
Location: tucson az

PostPosted: Thu Feb 10, 2011 8:59 pm    Post subject: Reply with quote

Quote:

Simulation of a chemical processing plant? Greate! simulation of redox reactions? Hmmm.

I would at least like to try it. 95% of C++ projects fail because of the complexity. Java might be a better framework to at least try it. I think.

Quote:

It sounds very good to me. My second leg, beside SW development, is with wood gasifiers; coming months will show me realising a 45kW el / 105 kW th wood gas plant for client in Autrich. We will provide energy from natural regenerable resources, from biomass, from wood snipets.

wow! That's way cool beans. I like the sound of that.

Quote:

my few cents: modelling chemical objects is a big challenge. How do you think to do that?

I want to make it as modular as possible. Break up the separate processes into separate parts and do them one at a time and maybe make them separate programs. Have them communicate with each other using localhost: or something. There's a bunch of ports to use for that purpose fortunately.

Quote:

modelling down to the atom or molecule level is an even bigger one. Where do you start?

I wasn't thinking of going really low level....maybe using a mole of substance as a basis. Something like that.

Quote:

Did you ever work before with simulation SW, simulating plant equipment?

For the final exam in my chemical engineering class the professor gave us a chemical that is typically produced in industry and we had to come up with a process to produce it and design the plant that would be needed to do that. It was a lot of fun for about 2 months and the next 6 weeks were just drudgery. But I liked the excitement and discovery involved and thought maybe something like that might be developed into the simulation of running such a plant.

Quote:

The simulation of the behaviour of chemical substance in redox reactions is a challenging issue?
How do you modell it?

There are mathematical relations describing the coefficient of production of various species or families of chemical substances that you can use to produce a suite of mathematical formulas that need to be solved simultaneously to get the overall or net solution that you're looking for as the end result. So I thought I'd dedicate a thread to each one of them and have the threads step through the solutions 1/10th of a second of time at each step and see what happens. Maybe it'll work. Maybe not.....I haven't done this before so it's still just a theory.

Quote:

i.e. what happens when I mix this two substances O and 2H and apply some heat?
i.e will exothermic energie develop? if yes, how fast and how much?

Mixing the constitients of water together ( H and O ) and heating them up is asking for trouble since the heat given off in the reaction is so high. Usually you need a spark or an open flame to act as the first step but enough heat applied would eventually do the same thing. The trouble is that both reactants would be at the required temperature to react and the amount of heat given off would cause those reactants left over that haven't reacted yet to react and before you know it you have an explosion. All this happens in 1/1000th of a second. The other way around an explosion ( lots of heat given off simultaneously ) is the slow "burn" you can get from a fuel cell where in addition to the heat you can harvest you also can obtain electricity since electrons will be flowing and you can use the flow of electrons in the reaction to drive a circuit. Enough individual cells connected in series can give enough voltage to charge batteries, drive a light bulb, run a radio, power your entire house etc.

Quote:

It is in fact a complex thing you aim at.
BUT Deploying it onto your system, deploying it to various threads, to dedicated maybe heterogeneous CPU's / Cores is a further challenge; Debugging one more?

It would be a bear to try to debug all at the same time. I'd rather debug the various modules one at a time separately to make sure THEY work okie dokie before I hook them all together and run them.

Quote:

yea, why not, give it a try. And because Simulation is much about Real Time it migth be worth reading
http://en.wikipedia.org/wiki/Real_time_Java


Wow! thank you very much for the link. I'm going to delve into it in depth.
Back to top
mdeggers



Joined: 28 Jan 2009
Posts: 208

PostPosted: Thu Feb 10, 2011 9:34 pm    Post subject: Reply with quote

Welcome to the world of Java programming.

Like you, I'm a former C / FORTRAN programmer (mostly scientific stuff
on IBM mainframes and Crays).

A couple of books I've found useful in getting started are from the Head
First series.

Head First Java, Second Edition

This will get your head around basic Java, thinking in an object-oriented
fashion, and getting your feet wet with the standard libraries.

Head First Design Patterns, First Edition

Designing how your code works is pretty important. You can get yourself
into a lot of traps by making poor design choices up front. These traps
will lead you to scrap tons of code, which gets to be frustrating. This book
goes over the basic design patterns that will help you organize your
thoughts.

One of the nice design patterns introduced is MVC (model, view,
controller). While normally considered for web applications, it's also nice
for Swing applications. A well-designed Swing application can be
moved to the web by replacing the controllers with servlets, and the view
with JSP (JSF, Tiles, whatever). Your heavy lifting code (simulation)
remains largely untouched.

The Spring RCP was especially well-suited for this migration. Unfortunately
it doesn't seem to be very active any more, and integrating it with the
NetBeans IDE is a bit of a chore (some library conflicts, etc.).

JUnit in Action, Second Edition

I'm a big fan of testing. Requirements change a lot, and JUnit helps to
make sure that the code still works. Unit testing will save lots of wear
and tear on your brain. NetBeans has great support for JUnit.

Concurrent Programming in Java: Design Principles and Patterns

Since you're looking at threads, this is the book to use (second edition).
I've used the first edition to torture an XML database with a threaded
client. Lots of fun.

Version Control with Subversion (free on the web)

I don't think I can work any more without some sort of version control.
Subversion is pretty reasonable (not as agile as git, but not bad). Along
with unit testing, a good version control system allows you to try out
ideas, discard them, merge them, and go back to them while keeping
sane and your code working. NetBeans has reasonable support for
subversion, although some of the branch and tag management is easier
to do outside of the IDE. For those people who are command-line phobic,
there are nice free GUI tools available on all platforms.

Finally, it sounds like you're going to build a very complex system
(eventually). While native Swing will get you started with a user interface,
you've already seen that there is a lot of work involved in managing the
plumbing.

Fortunately, there are several frameworks available to help with this. I
think the most comprehensive framework available is NetBeans's RCP.

Unfortunately, it's a huge, complex environment, and there are not any
up-to-date books on the subject. The only book published has gotten
mixed reviews (Rich Client Programming: Plugging into the
NetBeans Platform). It's also old, so there have been many
improvements to the platform. The good point is that the book is written
by the originators of the technology.

Fortunately, there are a lot of online tutorials, videos, and reference
cards at http://netbeans.org/kb/trails/platform.html.

I know, information overload, especially for a hobbyist. Hopefully you
(and others) will find the information useful.

. . . . just my two cents.

/mde/
Back to top
H2O



Joined: 08 Feb 2011
Posts: 6
Location: tucson az

PostPosted: Fri Feb 11, 2011 2:32 am    Post subject: Reply with quote

Thanks very very much for the information and the link(s). I went to the bookstore, found, and bought the following:
Head First Java, second edition,
Head First Design Patterns,
Head First Object Oriented Analysis & Design,
Java Concurrency in Practice,
Thinking In Java ( Bruce Eckel ), and
Effective Java

I've got a lot of reading / learning to do to get up to speed.

Also, I've used ports to allow programs to communicate with each other before in C/C++ but not in Java yet although I suspect the principle is the same, but are there any users here in the forum who have done something like that? I'd like to know what your experience was like. I was thinking of going that route because using ports would allow the separate parts of the program to run on any computer in the world with a little modification. Distributed computing as it were. Also, it would eliminate a lot of the cyclical references that come up in complex projects. I'm pretty sure this one is going to take a couple of years for me to put together. And your hint about getting the design right first is well taken. I've already gone through the stage of writing some C/C++ code along the lines of this project and scrapped it as unusable.

Man oh man......I'm in love with this forum. So many helpful people.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo