Ollie Relent

Greenhorn
+ Follow
since Apr 25, 2013
Merit badge: grant badges
For More
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 Ollie Relent

Yes, essentially i have a method which streams from hardware and prints the values of arrays to the console. As a .jar does not have the console as eclipse does, i need a way of showing the output real time within the jframe.

Therefore, this is why I wanted to get it running real time. I tried updating the GUI with swing worker but it still doesnt do it realtime, it does it at the end of my streaming data method which is not what i want.

Any ideas?

Thanks
10 years ago
Hey guys,

So i've essentially got a GUI step up with cardlayout and gridbaglayout. I'm drawing in information from hardware, processing it and performing corresponding actions based on the data. However all my outputs are currently displayed in the console.

To get my GUI panels changing correctly whilst other methods were working I've had to use the swingutilities.invokelater method. I have a object inside an invoke later that reads in data and has many system.out.printlns in

I made a fake console using http://stackoverflow.com/questions/342990/create-java-console-inside-the-panel

However, it does not update dynamically. One of my methods is essentially an infinite loop which looks for certain data and displays outputs based on the value of the data. The normal console updates correctly with this but the JTextArea seems to only update when a method is finished.

Could someone show/explain how to make it run in real time?

Thanks

10 years ago
Indeed Bill. I have no problem drawing in the data and storing it. I am experiencing problems trying to classify the different gestures.

I need to figure out some way of looking for repeated similar values of floats during calibration of each gesture. If similar values repeatedly found to this value (including an an error margin) the value is classified as the gesture being performed.

I currently instruct users with a GUI and images/instructions. Currently I believe I need to ensure gesture data is only considered if they are over the baseline value and last a certain length of time. I may also have to get the timestamp for later use..(maybe) Therefore, I think there are realistically two options. Make a bespoke machine learning classifier by myself or find an easy machine learning java library to do it for me.


To be honest, i'm a bit confused with machine learning as I've never really encountered it before and so this is very new ground. I'm sure a more experienced OO orientated programmer could solve this in a day or two but i'm not at that stage of understanding yet.

Thanks for the reply and for your thoughts, I'll definitely have a look at your suggestions!

Also thank you for your interest, it is indeed an nice little project but I feel I have bitten off more than I can chew...

Bicks



10 years ago
Hey Everyone,

So i'm somewhat new to Java, I've done a bit of programming in it but its not my preferred language, however i'm using it for this little project.

Essentially I'm drawing in a stream of floats from a HCI Hardware device which I've built. A user can manipulate the device through performing gestures which changes the value of the floats, much like how you might see an increase in amplitude on an oscilloscope. I want to classify 4 different gestures if possible. However, I have no real idea of how to implement this as this is very much new ground for me.

Currently I am taking a baseline reading and putting it into a temporary buffer. I then worked out a bit of math such as mean, highest/lowest values etc. I'm now stuck... In theory I should look for anything possibly 5% over the baseline value and find out its maximum value and its length to classify it as a gesture? However I have no idea how to do this in code...

Therefore does anyone have any advice or know of any machine learning/other libraries that could assist me with this? I feel i'm out of my depth with this but I HAVE to do it and don't really have a choice... I'll continue to try hard but any advice would be VERY much appreciated..

'Sigh'

Thanks

Bicks
Thanks
10 years ago
Possibly but it would still look weird as there would be a login option etc unless i rooted around and cut these out of the source.

The Anon is a bit annoying. Ahh well, i'm not sure if i'm gonna find what i'm looking for. I may just have a make my own basic one
10 years ago
Hey ppl

Just wondering if there is any reasonable way to get rid of the login/registration system on jforum or if you know of any java forums/bulletin boards etc that do not require a login?

I already have my own secure login system set up for my site with pages that only registered users can access. I want to add a message board/forum but making the user login again/have to register again just for the forum seems a bit backwards.

Ideally, a forum that doesn't require a login would be great as I could edit it a bit and ensure the user has logged in previously, if they haven't I can bump them bk to the login screen.

Any ideas? Any style within reason will do

Thanks
10 years ago
2.19. I bailed on the beta (which i guess IS the newest version)
10 years ago
Yer I agree. I that case, i expect its easier to fill in the jforum tables with information when my users sign up using my form? Seeing as I have extra columns in my old table couldn't I just add extra colums to the jforum tables? I dont think that would affect any queries it performs to retrieve data etc....(hopefully)
10 years ago
Thanks for the welcome folks

I have the latest version of jforum and the latest version of derby. Yup i followed the installation guide :S
10 years ago
Ok, so i used the standard setup it describes and I get the forum up, that said, it has its own login system etc, which is a bit annoying.

I was using the MYSQL type before Derby uses MYSQL style sql etc when I setup my db and tables using the ij batch file.

Does anyone know how to get jforum running from your OWN database for login things. I already have a table which stores username, password and email plus a few more things, so i would much prefer to use that. This is because after logging in the user can do more things than use use the forum. Adding the forum was a nice extra feature I desired in my spec.

I used the datasource type before and tried putting in my filepath to the db but it didnt find it/like this config.

Has anyone got Jforum to work with a pre-existing derby db? The db already has a table with user names passwords, emails, D.O.B etc

Thanks
10 years ago
Hey people.


So as an enthusiast and someone who wants to try server side things to complement my web design, i have setup Tomcat and it's using a derby database which i've got storing various information that my jsp pages gather.

I want to add a forum which is only accessible after the user has logged in. I looked around and it seems Jforum is the most popular java based one. All good and fine.

I've slapped and unzipped into webapps but CANNOT get the thing to run. I keep getting...

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Server connection failure during transaction. Due to underlying exception: 'java.net.SocketException: java.net.ConnectException: Connection refused: connect'.

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at net.jforum.SimpleConnection.getConnection(SimpleConnection.java:94)
at net.jforum.SimpleConnection.init(SimpleConnection.java:74)
at net.jforum.view.install.InstallAction.configureDatabase(InstallAction.java:679)
at net.jforum.view.install.InstallAction.doInstall(InstallAction.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.jforum.Command.process(Command.java:114)
at net.jforum.view.install.InstallAction.process(InstallAction.java:915)
at net.jforum.InstallServlet.service(InstallServlet.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


** END NESTED EXCEPTION **


Attempted reconnect 3 times. Giving up.

I've changed my Tomcat ports to 80 and 443 to make it easier and nicer for myself and have 'my' current database in a completely different directory for security, which i've linked as a resource etc. I have not created another database for Jforum/any tables etc as I didnt think I had to.

I've tried following the Jforum install.jsp but each attempt ends in failure. Can anyone show me how to get this working?

I've followed a few tutorials aswell on setting up but to no avail.

Many Thanks and much thanks if you can help

10 years ago