« first day (1111 days earlier)      last day (4054 days later) » 

05:44
@HatoriSanso Is it the same Processing that Arduino draws upon?
 
10 hours later…
16:06
burp
16:29
Excuse you
17:20
Man, I wish I did more programming :(
like 80% of my job is... not programming
17:43
Hey @Kylar, @AaronBlenkush
How's it goin' script kiddy? ;-)
:O
Fine thanks haha
Hey, ask me to do some PHP and I ain't no script kiddy xD
Yourself?
hehe sorry that was mean.
I'm fine. Learning unit testing in Java
Haha it's fine, what's that?
facepalm
17:55
Script47 -> newbie in Java
/me waves
Haha
Aw man, I miss IRC
How can I detect what arrow did I press on the keyboard in JFrame?
#ERIS
@jon
@JonyKale add a key listener. The problem is that if a different component has focus, that component will need to have a key listener as well
17:59
It's a game start, thread looping. I want it to move the square's X coordinates += 10 every time i click on the right arrow.
34
Q: Java KeyListener for JFrame is being unresponsive?

TomekI'm trying to implement a KeyListener into my JFrame. On the constructor, I'm using this code: System.out.println("test"); addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { System.out.println( "tester"); } public void keyReleased(KeyEvent e) { System.out.println("2...

@AaronBlenkush, which one?
in the last 24 hours I've had to do java, awk, sed, python, bash and grasshopper.
I wonder why the is no always active java chat on chat.stackoverflow, just sometimes
there*
There's a bunch of us that are here more often than not.
I haven't seen Michael in a while tho
18:34
We mostly have real jobs :)
public KeyListener keyListener = new KeyListener();
"Cannot instanitate to the type KeyListener
what?....
You're fairly new to java, right?
KeyListener is an interface, which means that it just defines behavior
it gives you a bunch of methods that you need to have in your actual code
not really new but kinda. And I didn't know it's an interface
There's a default implementation called KeyAdapter
Never had that error eitehr
Now I know though ;)
19:27
[9:26:53 PM] md.rockychowdhury: Is it possible to learn programming from google?
LOL
 
2 hours later…
21:28
Hey guys
eh
take a look at this
0
Q: Hibernate and String primary key, case sensed load

Xtreme BikerI have a tlogin table in my DB which has got a primary key of String type, called Login. This key is not generated by Hibernate authomatically, as it is assigned by the application. Here it is the mapping: <id name="_Login" column="Login" unsaved-value="null"> <generator class="assigned" /> <...

why is the session.get(User.class, "username") case sensitive?
Everything is case sensitive, unless you specifically tell it not to be
how can I tell it not to be case sensitive via config?
assuming I have an string primary key
Why not session.get(User.class, username.toLowerCase())?
21:38
cuz I may have "UPPERusername" as key in the table
wouldn't that be the same?
Can you change your database column to case-insensitive collation?
it is in a case insensitive collation
that's the weird thing about it
22:01
0
Q: Java game development clipping

Jony KaleI started learning game developing in Java, 2D. I just learned how to use graphics, fill pixels, make shape etc. bs = getBufferStrategy(); if (bs == null) { createBufferStrategy(3); return; } g = bs.getDrawGraphics(); g.setColor(Color.BLACK); g.fillRect(0,...

New idea: anybody who posts their question to chat within minutes of posting it should immediately have their profile pic turned to Scumbag Steve for a week.
Haha
What you guys up to?
Compiling
22:17
Compiling.
For some reaosn when I add JLabel, the window resizes and everything thats behind it goes, O.o
frame.setSize(width, height);
frame.setResizable(false);
frame.setTitle("First game");
JPanel j = new JPanel();
j.setVisible(true);
JLabel text = new JLabel("coords");
j.add(text);
frame.add(this);
frame.pack();
frame.add(j);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
not sure why
When you add something, the container revalidates
frame.add(this) what's (this)
paste a sscce into a pastebin
the game class
yeah but what kind of container is it?
22:25
You're adding a frame to another frame?
That's not right.
Also you're not including the right definition of variables
like in render() you don't have a definition for bs
yeah used some tutorial for this
would be good if you could explain how should it be done, or send me to a correct tutorial.
Wait...
Frame is my class
The one with the main method
public static JFrame frame = new JFrame();
public static Threads thread;
public static Game game;
public Graphics g;
public BufferStrategy bs;
it extends frame
You don't really understand how these components work
a Frame and a JFrame are top-level components
they shouldn't contain another frame
And if you're musing JComponents (like JLabel) you should be using JFrame, not Frame
When I started that swing thing, i never understood what is frame, labels, containers, panels
it confuses me lol, I guess i just need a long read into it
then read all the other swing pages on that section
Then come back.
Alright will do ^^
But first I have to take a nap, saved the page though.
22:33
@Kylar what do you suggest on learning after you wish to move on from console programming, so what should I learn first?
Don't ask me, I'll tell you to quit CS and become an electrician or plumber.
Better job security, almost the same money, and it's a lot easier to figure out what's wrong
Carpenter, maybe
Lol
why, its alweays good to know
I'd be a carpenter if I had it to do over again
doesnt mean he have to work as a programmer
I take a lot more satisfaction building bookshelves than I do building massive code
22:36
^ True, that.
i started with PHP, then idk why moved to java but still do php
now i have moved from java to c# cause of comp sci
I wanted to build a fort for my kids, so I downloaded Google Sketchup and designed one. Bought all the materials and built it over the summer. First time I'd built anything like that. So much fun, and incredibly satisfying.
@JonyKale same, I started with PHP, I regret it sometimes though
Google Sketchup is pretty nice.
23:11
Sometimes I feel bad about bolding a question in an email.
But I do it because I know they're not going to read the explanation.
It just feels so severe.
23:23
I keep a hockey stick in my office so that I can thump people who are idiots.
Let the hate flow through you, and join the dark side.
Cya fellas :)
23:38
Thanks for the encouragement, Kylar >:-}

« first day (1111 days earlier)      last day (4054 days later) »