paul nisset

Ranch Hand
+ Follow
since May 13, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
18
Received in last 30 days
0
Total given
5
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by paul nisset


I'm not familiar with the Tanuki library. Why are you starting your server app from a new Thread?

controlEvent() seems to be where you are supposed to be controlling your DummyApp/FX app .
I don't see you calling DummyApp.stop() anywhere.

Try this:
Call the stop() method of your FX application from controlEvent() before you call stop() in the Tanuki wrapper app.
Instead of starting your app from the start() method of the Tanuki app ,start it  and stop it from the controlEvent method .
You need a handle for your  app that Tanuki is controlling ,so you can call it's stop() method.

You might have to make DummyApp an instance variable of the DummyAppWrapper class so controlEvent() can see it.

Try something like this where dummyAppInstance is the  instance of your DummyApp.class:

You can use the return value of controlEvent() to determine if your app is has started or stopped.

System.exit()  will crash out of the app without freeing up any resources. Any data connections or file resources etc. will remain open and continue to use up memory.

-Paul
4 hours ago

So when user is disconnected (by Disconnect user from Task Manager) the client session looses the actual GUI but the GUI thread keeps running on the server machine and consuming the lot of resources



I don't work with JavaFX but what seems to be happening is that you are just shutting down the connection to the Server machine with the Java app .
That doesn't shut down the app so it will continue to use resources.

If you want to shut it down from a client Windows context. You need to firs trigger the remote app shutdown and then disconnect.
Perhaps use a wrapper script or app on the server  to start and shutdown the Server app from the client/Windows context menu ?

So instead of

I start my JavaFX application via Remote Desktop Services

, start a script or a wrapper java app  that starts the JavaFX app .
If it is a wrapper app , create  a shutdown method that first shuts down the JavaFX app then shut's itself down .

Good luck,
Paul
2 days ago

Hi,
Your goal is to first get someone to see your resume and call you.
You will probably then get a phone screen and form there it depends on the company.

It's a bit of a chicken or the egg scenario with a first job.
To get someone to see your resume and call you, you have to have some sort of job  even an internship listed on your resume.

As others have suggested .Create a project and post the code on git hub . Make sure it is clean and documented.
It should probably be a substantial project.

If you want to be a web programmer it should be a web site. If there are parts of the process that you don't know then collaborate with someone who does know those aspects of the project.

If you want to be an Android programmer it should be an app that is available in an app store.  

Your best bet initially is to try to get an internship somewhere even unpaid. Your resume has to show you've worked somewhere.


good luck.
Paul
Hi ,
I realize this was from two weeks ago but I just read this post .
I liked Tim's language analogy but if you are living in Wales ,learn Welsh.
Same with programming languages. What is your goal ?

If you are comparing two languages because you want to be a phone developer then looking into which apps/app store generates the most money for their developer makes more sense than language specifics.

If you want to learn Object Oriented programming ,you might consider an object oriented language that does not use a garbage collector like C++ . Learning about how memory pointers work is a solid start for any programmer .  

As far as a general computer language goes, just regular C is a pretty good start as a lot of other languages use C like syntax.

Good luck with the dissertation.
-Paul
3 weeks ago
Thanks Tim.
It is a bit of a chicken and the  egg syndrome .
I haven't worked anywhere that has adequately addressed it.

This is  why I thought Cornelia's suggestions of using Amazon Parameter Store or an external configuration server was interesting .
Maybe use a cert  to have the web server authenticate to the external configuration server.


You are right ,if you have a bad actor with access to the web server ,you are in a world of hurt anyway but ( hopefully ) you can minimize it by making it harder to access stored data .
1 month ago
JNDI and context.xml are excellent for general information like DB server paths etc. But I wouldn't want to put passwords in them.  
It doesn't really resolve the security of issue  having passwords readily accessible to anyone who has access to the web server having the keys to the kingdom all in one convenient place.

I've seen people put DB passwords in web.xml (luckily not often). It's quite shocking.    
1 month ago
Thank you for sharing your experiences Tim .

Your previous situation is exactly what we have.

Property files were being bundled up in the jar


We are in the process of migrating some of our web apps to Amazon so Parameter Store is a great tip!  

Cheers,
Paul
1 month ago
Thanks Cornelia.
The concept of a configuration server is interesting . We were recently asked to provide an alternative to properties files on our systems . There was a concern with the security in using them and all the database credentials for a web app being in a single plain text file. I didn't think hardcoding them was a good alternative or even that more secure in the case of reverse engineering.

The book sounds like it has some excellent practical advice.
-Paul
1 month ago
Hi,
What are the mistakes people make when developing a web app that will be hosted on the cloud?
thanks,
Paul
1 month ago
Hi,

I'm used to thinking of reactive programming more on the front end of apps with Javascript,css ,etc..
From the info on the book's site, it seems Reactive Spring is more focused on back end performance.

What does it do/add  in addition to  more general techniques like Thread Pooling?

Thanks,
Paul
1 month ago
Hi,

Is there an advantage to using Go over another language for some common data structures or algorithms?

thank you,
Paul
2 months ago
Go

Thanks Marco .
This sounds useful. As both Spring and Hibernate handle jdbc transactions, it is good to know how they interact when both are used.
Presumably ,developers should only use only one or the other.

-Paul

Hi ,
Does the book go to  what happens with jdbc transactions when they are configured in an app with both  Hibernate  and Spring ?

For example what happens when using the Spring  @Transactional annotation and then in the code there is session.beginTransaction() (where 'session' is a Hibernate Session) .    

thanks,
Paul
Thanks Randy.
Your point about the hyper scale companies is interesting.
Hi,
After reading a description of Apache Thrift , I am wondering when it would be used ?
In terms of web services ,it seems like it is covering existing ground.

Is it primarily to convert non web service applications into web services ? Reading the description, makes me think of technologies like CORBA .

thanks,
Paul