« first day (1383 days earlier)      last day (3576 days later) » 
02:00 - 17:0017:00 - 00:00

2:45 AM
@Kylar I moved to IntelliJ and it worked :)
 
 
4 hours later…
6:20 AM
@Kylar I have created a simple program for the awt and for the javafx separately to display my issue
@Kylar Using Javafx Print requires JDK 8 ;)
 
Hi everyone, Is that possible to make a program using java that can run in 3 platforms,(windows, osx, and android)?
 
Yes, you just have to port them over.
 
Thank you @unihedron. Does it need a lot of code to be changed when you do the porting?
 
No, usually the user interface it seems.
For example, you would want to make dedicated touchscreen keys for Android...
 
cool, that clears my mind!
If I want to make a program, should I start from one(windows) and then I port it to others when its finished?
 
6:37 AM
Are there alternatives? :)
 
I was thinking about porting each part of the program :)
 
It's always good to code modular. Then again, you don't always get to work with the best code...
 
Java itself is multi-platform !
 
^ That sums it all up.
 
Awesome!
 
6:43 AM
The modules (STDIN, Swing and Android) are the ones you'd have to work on while porting.
 
@user3117671 all the code that you write can run on windows, mac and linux without any porting required !
JVM will do it for you !
while when it comes to android, you will have to break few stones as android runs DVM instead of JVM !
 
Cool, Thank you @ itachiuchiha.
I don't have money to hire a java expert for part of my program right now, what options I have to look for someone?
 
@user3117671 why do you need a java expert ?
 
Please use @Use or @Username to ping for someone, don't add spaces as the system will not alert the person you're pinging. See how-to-chat.
 
@ItachiUchiha, for making part of my program that uses the java technology.
Thank you @Unihedron.
 
6:53 AM
@user3117671 what is your part ?
 
@ItachiUchiha. I have js and html5 features that I want to put them to a java structured user interface.
So are there some options like a share of the program or something like that might interest some?
And where is a good place to look for to find a java expert? This site or craigslist?
 
7:11 AM
... What's craigslist?
freelancer.com
 
Thank you@unihedron
 
Hi there!
 
@Arperum Heyo! Welcome to Java, where your dreams may or may not come true!
>_>
 
I have a couple questions (some of which are certainly off-topic on the mainsite)
 
7:17 AM
<_<
Go ahead, just make sure they're not the ones that makes everyone throw rocks at you for. :)
 
1)What IDEs are currently suggested for java development?
hides for the rockpiles
 
I use Eclipse. Kylar recommends Intellij. And since Kylar says it's good it must be good, right?!
My school has Eclipse and NetBeans installed for our use, and most contests I attend gives us the Eclipse IDE only.
 
Isn't Intellij mac based? I should've added for a windows based dev.
Hmmm, I guess I'll download eclipse then. The graphical interface is going to be a pain anyway.
 
@user3117671 do you have an application in js + html form or a web
 
What DB/data storage option should I look into when storing 100-200k records and the DB/whatever has to be placed on a cd and then distributed?
 
7:23 AM
@user3117671 Do you have an app in js + html format ?
or a website ?
 
@Arperum Usually, I provide both MySQL and FlatFile support across my software / engines, regardless of the use.
Your mileage may vary.
 
does anyone know how to configure apache mina in spring? the client side?
 
@Arperum IntelliJ is multi-platform !
 
apache mina is the one that they're(company) using,so i guess i need to adapt xD
 
@Unihedron My delivarable only has to has the option of reading stuff from said DB, users won't give a fuck what happens behind the scenes.
 
7:26 AM
+1 for flatfile and MySql, though automatic packaging of MySQL with your application might be a pain in the ass
 
@ItachiUchiha When I last used java I think it wasn't (yet)
 
@Kerppag Whats apache mina ?
 
socket programming framework i guess.
 
@Kerppag Do you happen to have a link? Wikipedia is down.
 
@ItachiUchiha It should work on any pc/mac where they insert the cd and click the jar to launch it.
 
7:27 AM
@Arperum I am not talking about connecting a java with MySql using JDBC, I am talking about packaging !
 
@Unihedron here it is mina.apache.org
 
How about legend-and-indexing, @Arperum? If you go through some work you can compress the data. Then again, it again sums up to what you are trying to do.
 
@Kerppag Looks nice to me !
 
@itachiuchiha. I have them in web pages for each feature.
 
@Kerppag Oh, that NIO framework! It's pretty nice, though unfortunately I have no experience with it.
 
7:29 AM
@user3117671 It will be difficult to convert a webpage into an application. But, I still wonder, why do you want to convert a website into an application !
@Unihedron @Kerppag I have xp with NIO & Spring, but not with Apache MINA :P
 
@ItachiUchiha, @Unihedron yup it's nice, i just cant integrate the client side in spring mvc.
 
Good luck, regardless. :)
 
@ItachiUchiha yup i've done that.it is the server side right?
 
yes ! Java is for server side :)
 
7:30 AM
i mean. it has a server and client side.
 
MINA ?
 
yup.
 
@ItachiUchiha. I want to make a program that makes js and html5 pages.
 
@Kerppag hmm
 
I basically have a website now, and one part of that thing has to be transformed into some offline available application.
 
7:32 AM
brb, lunch time !
 
@Kerppag @user3117671 @user3117671 @Arperum c ya guys in some time !
 
but it is for console. im trying to apply it with spring mvc web app
@ItachiUchiha see ya!
 
What about me? :[ Seeya! xP
 
@ItachiUchiha See ya!
 
7:53 AM
Hi,could I get some insight on whether Quartz scheduler is persistent like EJB Timers.Will it sustain server shutdown and crashes?
 
8:09 AM
@user3117671 such program already exists. Why to re-invent the wheel ?
@Kerppag this link is for an java client application, its difficult to do the same for webapp !
 
8:40 AM
@ItachiUchiha. There are some features that they don't have.
 
@user3117671 I am not disappointing you, but the software that you a trying to make, will require a team and loads (seriously loads) of testing ! This cannot be accomplished by a single individual ! If a single individual works on this, it could take months, even years, to get a stable product, ready to be used by the end customer !
 
@ @ItachiUchiha. How much time do you think it would take to make a program like that?
@ItachiUchiha. Cool. thanks. I should be looking for a team then :)
 
@user3117671 Or you can start an open-sourced project and try to get people to contribute. :)
 
@ItachiUchiha yup! it is really really really difficult. but now i can connect the server and the client. it is just that when the client receives the message it stops the process.haha
 
@ItachiUchiha. I want to make some money eventually to enjoy life. :)
 
8:48 AM
@user3117671 @Unihedron has a point, you can create a open project, but then its really diff to create some money out of it !
@user3117671 I think you should start with some small projects and later shift to big dreams
 
Again, it sums up to what you are trying to do.
 
@user3117671 frankly speaking, its really hard to beat "Adobe Dreamweaver". But then, if Eclipse is finally beaten up by Intellij Idea, anything is possible ;)
 
@user3117671. My program is going to be much simpler than Dreamweaver and is having unique features.
 
Is it fun to ping yourself?
 
@Unihedron haha lol
 
9:00 AM
@itachiuchiha. No, it meant to be for you :)
 
@Unihedron No, it was meant for @ItachiUchiha. :) (Whatever.)
 
cool . thanks everyone. I have to sleep now. have a good one.
 
bye and best wishes for your project :)
 
@user3117671 Good night!
 
Bye and Thanks @ItachiUchiha and @Unihedron.
 
9:04 AM
</3
 
@Kerppag bye from @user3117671 to you :)
 
hahaa! this socket framework giving me a hard time. ServerSockets and Socket is much easier.haha can you tell me the difference @ItachiUchiha
 
@Kerppag I am afraid I have never used the framework, but frameworks are generally made to make programmers life easier !
 
9:19 AM
hmm does those framework manage their own threads? i mean if i would be using the usual ServerSocket and Socket i will be making my own thread for the server and client plus the thread for receiving and sending right? does the framework handle it for me? @ItachiUchiha
 
@Kerppag I am not sure, but most probably if this is the default way, the framework should ! :)
 
9:39 AM
ill see ya guys some time @ItachiUchiha tnx
 
See you @Kerppag!
 
@Kerppag I missed your messages, anyways c ya !
 
9:58 AM
@Unihedron see ya. time to go home from work xD
 
 
1 hour later…
11:17 AM
Omg. Room so dead
Hi all :)
 
@Sabಠ_ಠ Greetings :)
 
@Unihedron Hello :)
I managed to fix my scanner problem :)
 
:o Well done!
I finally got to 2k rep like I wished :)
 
I literally had to wrap my head around it. So basically, whitespace can lead to annoying errors :
:O Wow :D (y)
 
Ah, I know right!
 
11:28 AM
I managed to even make a simple program to find the palindrome square numbers :D
It was awesome doing it in Java, since I was literally decomposing the problem into smaller pieces and suddenly I was at a very simple level to code. But as I went along I had to learn how to make public static boolean and some other ways to define methods which made it extremely simple to program :D
However, now I have to make a new program and I have no idea how to do it.
And I need help :O
 
I'm glad you're learning ;) The joys of putting your knowledge together and have a console printing a few small numbers... The enjoyment is unlimited :)
 
oh ya. And I did it in 1 shot :3
It just flowed
 
System.out.println(new StringBuffer(tempstr = Integer.toString(numbr)).reverse().toString().equals(tempstr))?
 
I love the idea that I can do smaller classes. Since I started programming in Python I always loved to make functions to simplify my task. Java makes this mindset awesomely better. :D
No, I didn't use that
xD
 
One liners :)
 
11:32 AM
I wanted to try an convert to a string and use the reverse() but I didn't know how :3
StringBuffer() < What does this do?
BTW, is there a way to have an array of several types?
 
It creates a StringBuffer. It's a java.lang object that keeps String, but mutable, and less computation to actually generate the String objects. It's a CharSequence, so you get to use stuff like .reverse()
Just do Object[]. :)
 
arrays are not bound on primitves ...
 
Aha. Thanks
 
You probably won't want to, though.
 
But my problem is kind of tough. I need to make a sort of program that will act like a simple spreadsheet
The thing is I need to print out the values based on an input which contains exactly 9 objects(of type int, string)
 
11:34 AM
Ah.
 
E.g 1 2 3 4 5 =A1 =A1+B1 =B2 =B2
So the output will be
 
You can wrap int in Integer, but I doubt you'll want that.
 
Sample output based on input above:
1 2 3
4 5 1
3 5 5
The possibilities are endless for the input
I'm not sure how to go around this
 
First step: Break it down with input.nextLine().split("=")
 
I was thinking about something along the lines(no puns intended) of checking if the input has a specific type, then put it in a specific array, but then I lose the orders
 
11:37 AM
Ah, time to learn regular expressions then? :)
 
I'm too new :/
But I wanna learn it though, but not right now
I was to learn it back when I was coding javascript stuff but I was too lazy :P
Damn, it's late. I need to go to a lecture right now, I'll be back in exactly 2 hours and we'll talk more
 
Good luck! Have a nice day!
 
I need to finish this program by today :/
C ya later :)
 
@Sabಠ_ಠ Seeya :)
 
You too @Unihedron
 
11:40 AM
@Unihedron ssup ?
working on something ?
 
Enjoying my edit perks and trying to improve some content here. Hashtag enthusiasm :)
 
@Unihedron One downvote, given or taken and your editing is over :p
 
lolz
you seem to have a lot of free time
why dont you learn something new in this free time ?
 
I thought I'd write some tests.
Then I surf the web and noticed some people upvoted my (detailed, impressive and elaborated) answers :)
 
hi all anybody having experience with spring 3+jdbc templete
 
11:52 AM
@Unihedron lolz
@Sandy yes
 
@ItachiUchiha i am facing issue related to lots of connection on production with my spring +jdbc templete project
@ItachiUchiha my site is running very well on local development enviroment but once i push it to production server it don't work properly like site performance get down to 20 time less the i am running on local development enviroment
 
@Sandy most probably there are threads where you are not allowing the connection to close !
 
i am using jdbctemplete that open and release and close connection automatically
i am not creating any connection at my end
 
connections get close by spring automatically, but only if the control comes back to the container. If they dont, they remain open !
@Sandy
 
@ItachiUchiha but its working well on my local enviroment
 
12:10 PM
@Sandy well I am not sure what the issue may be, but in local the load is less compared to the production load !
 
i checked with multiple system
and cheked at mysql database connections its showing some those thread
not acceded
 
well I can't comment on what the issue may be from here, but if you are not able to figure out, you must ask someone from the team to help you out :)
 
Or put together a sscce and ask on SO :)
 
@Unihedron this issue can't be replicated as an SSCCE, as this can be happening from any part of the code and there are thousands of files ! :)
 
1:11 PM
Greetings!
 
1:22 PM
@Karl Greetings!
 
1:32 PM
Morning
 
Good morning!
 
Hey guys!
 
1:55 PM
Not a good day. Had TWO BSODs today [Winders 8.1]
 
@tehAnswer Hey there!
hah silly winders
 
;-;
 
@Sabಠ_ಠ How was your lecture?
 
Boring as f*** ;-;
now I got only 50 minutes to code my program and get it to work ;-;
 
._. glhf!
 
2:08 PM
So do you have an idea on how I can proceed?
How can I cater for these =A1 thing?
?
 
Are these always numbers? And the table is always width 3?
 
ya
THe input can be something like
1 2 3 4 =A1 =A2 7 8 9
so in this case =A2 should output 2
 
Is the size always 3x3?
 
yeah always
I created an array of 3x3
however I can't go further i'm stuck
 
You can use a 2D array: int[][] box = new int[3][3];
The input can be split by whitespaces to break down the input into every non-whitespace sequence: input.nextLine().split(" ")
 
2:23 PM
But in what kind of array do i store it?(since dealing with different types)
 
If you're dealing with different types, you can't do it with primitive dimensions anyway, you'd have to use Object[][]
With the split string array (name it arrstr), iterate with a for loop. for (int i = 0; i < 9; i++) { String toParse = strarr[i];
 
import java.util.Scanner;

public class Question3 {

	public static void main(String args[]){
		Scanner input= new Scanner(System.in);

		Object [][]grid = new Object[3][3];

		for (int i=0; i<3; i++){
			for (int j=0; j<3; j++){
				grid[i][j] = input.next();
				System.out.print(grid[i][j] + " ");
			}
		}

	}
}
Doesn't work :'(
well, I'm fced anyways, it's impossible to code this in 25 mins.
 
Then you do whatever you want with toParse to get your Object, and place it into box[i / 3][i % 3]. You can parse it with Integer.parseInt(), or-
wait
Can I use javax?
 
What is javax?
 
2:46 PM
test input pls
 
sec.
John 12 23 David 45 67 Total =B1+B2 =C1+C2
Sample Output

John 12 23
David 45 67
Total 57 90
 
Almost good, but it's throwing a NPE.
And it has became machine code.
package foo;

import java.util.Scanner;

/**
 * Procrastination: I'll add a javadoc description later.<br>
 * hello @ foo
 *
 * @author Unihedron<vincentyification@gmail.com>
 */
public class hello {

    private static final java.util.regex.Pattern WORD = java.util.regex.Pattern.compile("([A-Za-z]\\d)");

    private static Object magic(final Object[][] grid, final String toParse) {
        if ( !toParse.matches("=(\\w+)([-+*/]\\w+)*")) return toParse;
        String eval = toParse;
        while (true) {
 
it's too late :(
i got only 5 minutes le
It's too complex for my level right now.
 
Aww.
 
All i can do is study your code and try to implement a simpler solution
:)
 
2:56 PM
Is the time limit arbitrary?
 
no
after that time limit marks slashed by 50%
lol
 
What's the passing criteria? 40%?
 
50%
it's get automarked
=> wrong output - 0
:P
 
Goodness!
 
I guess I'll try to solve it and contemplatemyself with 50%
since on my total final marks, it's worth 0.5%
And there is the possibility that the worst asignment mark is discarded :3
I guess it's a wake up call for me. Get my act together and master Java A.S.A.P!
By master I mean become proficient :3
 
3:03 PM
Done.
Dammit! Nope. So close.
 
John 12 23 David 45 67 Total =B1+B2 =C1+C2
12+45
23+67
John 12 23
David 45 67
Total 57.0 90.0
 
everyone was crying about this assignment
I wasn't.
I thought I could do it in an hour top so I didn't start early
Penalty (if you submit now): 30%
:O
I can still get 70%
:O
I got 24 hours now :O
to do this :D
 
Done.
John 12 23 David 45 67 Total =B1+B2 =C1+C2
John 12 23
David 45 67
Total 57 90
More test input pls.
 
This is epicly awesome
How long will it take me to reach this level?
I was quite great with python
 
3:06 PM
You mean... Receive a project and nail it within half an hour?
 
Don't know.
 
If it was to develop a whole system in php/html/css it would take 1 hour ;-;
too bad it's java ;-;
Is a month of constant practice(4hours a day) enough to become proficient?
 
I'm not sure.
I have 2 years of Java experience, and my time tracker shows I code for at most 6 hours (efficiently - the time tracker is harsh) every day.
 
ahh nice :D
so basically, when I;m out of college in 3 years I'll be awesome ;
:3
brb
 
3:10 PM
hb
 
back :)
So yeah. Basically, so far, I' learning Java by looking at codes online and reading the docs only
 
Same, except I also run into walls, get poked with sharp sticks, and race to fix troubles I caused as soon as possible. :)
 
So far it's working in the sense that I was able to create methods, and do simple input/output
xD
Same
 
Developers are mostly undercredited. :P
 
The only thing which is preventing me from doing more stuff is my lack of knowledge of the objects and methods that java has
If I know what to use when to use, it's gonna be epic :)
 
3:16 PM
Ah, I see.
 
I figured out how java works(roughly) and it's not that hard tbh
 
anyone can help me a bit with one HTTP request? ^^
made in Java, of course.
 
@tehAnswer Ask away!
in The SO Tavern (Free Snacks), 4 hours ago, by Unihedron
So it's easier to learn the overall syntax, but even a real Java jedi may not know all the utilities. :)
 
True. It's like that for all programming languages, heck it applies to all fields of knowledge. :)
 
3:19 PM
Well, with the exception of HTML jedi. I was once an HTML jedi ;-;.
 
0
Q: Equivalent cURL request in Java

tehAnswerI need to perform a HTPP request equivalent to this cURL in Java: curl "host/path" -X GET -d "somedata[inner_field]=...& somedata[other_inner_field]=..." At first, I tried to use java.net, but then, I change to use the client Apache Library. AT this moment, I am wondering how to pass the data....

I got problems with the question : /
it was put on hold at first because was to abroad.
 
Sorry but it's still on hold.
 
broad*
yep.
 
Have you seen the possible duplicate in the comments?
 
yes, for sure
I mean
the first comment was to... a old version of the question.
At first, I was trying with java.net
 
3:21 PM
Yeah, I saw.
 
but it was a hell.
hahaha
I'm debugging right now
(the API is made in Rails)
and the params don't reach
the controller.
 
Why is login ignored?
 
oh.
hahaha a mistake.
it wanna mean
somedata
login is the real name of the variable
on my problem
 
I don't understand, is that the problem?
Or just an oversight that login is actually somedata? or is it not related at all?
 
no, sorry If I don't speak clearly
I want to mean
that when I write a question I often rewrite the code.
you know, in my problem
the name of some data variable is login
it was a mistake ^^
 
3:27 PM
OK, thank god it's not a XY problem. I don't have the libraries to test this with at the moment. What error or unexpected behaviour did you get?
(And why isn't Stack Overflow Academy out yet?)
 
whats SOA?
: o
 
A place where you learn how to give enough information for others (aka me at the moment) to diagnose your problem.
See my edit on your question.
 
I'm checking ^^
okay, I should read before post
HTPP, such facepalm.
 
3:50 PM
Has anyone heard of a lightweight (in-memory?) database that can create tables as you query them?
 
... What do you mean, create tables on querying?
 
so for example I query select name from Customer... rather than throwing an error the table doesn't exist, it just creates a customer table with a name column
 
^^^^^
 
I hope sqlite works ^^
 
3:56 PM
I think you still need to create the schema in sqllite before querying it
I think I'm just wishful thinking atm
 
4:37 PM
375 messages?!
Dang
I always miss the good stuff
 
@Kylar Eh
@Kylar I just talk too much :) sorreh
 
@Unihedron 早晨!
 
good morning! ^^
 
@tehAnswer did you solve your HTTP issue yet
If not, I can probably help
/me has done a small amount of HTTP work in java
 
0
Q: Equivalent cURL request in Java

tehAnswerI need to perform a HTTP request equivalent to this cURL in Java: curl "host/path" -X GET -d "somedata[inner_field]=...& somedata[other_inner_field]=..." At first, I tried to use java.net, but then, I change to use the client Apache Library. At this moment, I am wondering how to pass the data....

 
4:48 PM
Got it
@tehAnswer do you want to use a library? If you're planning to do this mulitple times or do different requests (other than GET), it will make life much easier.
If not, then we can hack something up using core Java.
 
Note for @Sabಠ_ಠ (When you're back): The code was hacked together using regex replacement (for each letter + digit, lookup in table) to fill in the values in the values if it is a formula (= ...). Then because there's no eval() in Java, I stole the JavaScript script engine from javax to run the eval() for this exclusively. Terrible hack, but better than writing own eval() method.
 
02:00 - 17:0017:00 - 00:00

« first day (1383 days earlier)      last day (3576 days later) »