« first day (1771 days earlier)      last day (3156 days later) » 

4:56 AM
@DumbKnee wow
 
 
3 hours later…
7:56 AM
Such a me thing to notice that my internet bank has an offset on two text fields on 1px.
It bothers me more than it should
 
8:18 AM
@JohnSnow try a diff browser
 
8:33 AM
Why on earth would that make any difference?
If one row of text field has them set to 19px width and the one under it to 20px width... It's not really gonna show up differently :P
 
try a different bank! :D
 
as you know the design of the webpage depends on a lot of things
 
9:10 AM
Not that issue no...
 
I am out of villagers and license to construct buidings
I should give up playing
 
two text fields next to each other should have same settings, does not matter which browser you use! settings should not be different!
 
9:29 AM
anyone noticed stupid small font size in windows 10!
sorry not java related!
 
@Marzy dont use windows
 
I have to!
Actually from win xp I jumped to 10!
I am happy I missed all versions in between, but now I need to work with windows
 
XP to 10.. wow!!
I had heard that they did something to the cmd
is the cmd better than what it used to be?
 
I am using powershell
it has many aliases
its better than old one
but still sucks!
last semester I noticed some of students have gui forms which needs a magnifier to see them clearly!
Now I know windows sucks with high resolution screens!
 
hehe
but what about cmd?
did you try the new cmd?
 
9:39 AM
not yet
I didnt find the need
cmdlets in powershell can do most of the work I need
 
9:53 AM
hmm
 
@ItachiUchiha What are you playing?
 
The Settlers Online
 
10:18 AM
:O
 
why are you so amazed?
 
I'm not amazed, I'm surprised
or stumped
I loved settlers II and black and white II
I wonder if it's worth playing
 
10:39 AM
I have played black and white
But settlers II, nope
I think you should give settlers online a try
we can be in the same guild :D
 
10:52 AM
I'll think about it some more :)
settlers II is reallllyyy old :P
 
11:32 AM
wat
 
1 message moved to bin
 
12:33 PM
any eclipse folks in here? I have an embarrassing question...
 
12:48 PM
@arcy Wasn't that question it? ;P
 
... what was the wink for? I'm pretty confident it's affirmative
 
hehe
 
1:11 PM
Morning, Java!
 
Morning!
 
1:26 PM
Morning michael
 
2:15 PM
Hi
 
hi
 
well done intelliJ...
I really love how you totally allow me to adapt the interface declaration from the implementing class...
NOT ~grrrr
 
Hi, i was going to ask a java related question, but I am not sure if it falls under general or too broad questions
I cant make any comments about intelliJ ;) I dont have that much experience
 
What's your question, @Marzy? :)
 
public void handleSquareClick(MouseEvent event) {
     handleSquareClick(circles.indexOf(event.getSource()));
}
Guys, in codereview, someone recommended me to use the above code.
But it looks like indexOf is not a valid method, where circles is an array.
 
2:28 PM
I think I figured it out, I was going to ask how to Copy all dependent packages in a neat and fast way from one project to another
 
@HassanAlthaf Then he doesn't know what he's talking about. xD
 
@Michael He's a 11k fella. lol
@maaartinus
 
My focus was on neat way! I am doing it the slow way
 
@HassanAlthaf Just goes to show: size doesn't matter.
 
Well, do you know any way to achieve what I am trying to? @Michael
 
2:29 PM
Does your project use Maven, @Marzy?
 
yes, I thought of that
my target project is in Jason interpreter of AgentSpeak
let see if I can convert it to Maven
 
Well, guys,
I am trying to clean up my code,
 
@HassanAlthaf You'll need to write a for loop and manually iterate over each array element to check for equality.
 
Oh how do I check? I basically have something like this:
 
@HassanAlthaf that's not your CODE, that's your QUESTION
 
2:35 PM
private final Circle[] circles = { circleOne, circleTwo, circleThree, circleFour, circleFive, circleSix, circleSeven, circleEight, circleNine };
 
It's the man himself!
 
Thats the array.
Can you try to do event == element of circles array?
 
The == operator checks for reference equality
 
To find out which element caused the event to happen?
 
It checks to see if two variables point to the same object.
 
2:36 PM
@Michael Ohh, thanks a lot!
 
That's what you need to be using.
 
hi
 
for (int iterator = 0; iterator < this.circles.length; iterator++) {
            if (this.circles[iterator].equals(event)) {

            }
        }
 
5
A: Inheritance in Java - creating an object of the subclass invokes also the constructor of the superclass. Why exactly?

Brian RasmussenRemember inheritance is an "is a" relationship between the base class and the subclass, thus every time you have an instance of a subclass, by definition you will also have an instance of the base class (as part of the instance, not as two separate instances). To initialize the base class properl...

 
@Michael Is that right, Michael?
 
2:39 PM
@bews99 crap, delete it
 
I don't like Java inheritance...I've never gotten cash from it!
 
@HassanAlthaf You can do that, but it's overkill for what you're trying to accomplish.
 
sorry guys..
 
@Michael Oh, what is the best approach then?
 
You're using the equals() method, which not only checks for reference equality, but also checks for value equality.
In your situation, reference equality is all you need
 
2:40 PM
I see.
 
if (this.circles[iterator] == event.getSource())
 
why cant you use contains?
I might be totally wrong!
 
Because this.circles is an array. Arrays don't have that method.
 
@Michael Thanks a lot man! You're amazing.
 
yeaa :D
 
2:42 PM
Oh, so basically the event.getSource() will return the reference to the Circle it clicked, and we compare the references stored in the circles array yeah?
 
Arrays are very basic data structures. They do not have all the functionality that, say, an ArrayList has.
@HassanAlthaf Precisely.
 
that is right , I didn't pay attention to its definition
I saw the for look
loop
 
@Michael Oh I see, thanks a lot! Would you recommend me any online stuff to learn from? (Java).
 
@Michael Damn, the problem is that I can't buy from Amazon. :/
 
2:47 PM
Oracle's website also has a number of tutorials for beginners: docs.oracle.com/javase/tutorial
 
@Michael Oh thanks, and btw, there is a problem in this.
 
I prefer oracle
 
Quick question about IntelliJ... how the f**k can I get intelliJ to show me the complation problems I need to resolve?
 
@MIchael It gives the index -1 when I click a square.
 
@Vogel612 it doesn't show in the console?
 
2:52 PM
@Vogel612 right click directory -> code analysis -> all
 
Damn, fudge this game, Imma make a new app.
Time to look for an idea on what to cod.e
 
@JohnSnow sure when I run it, but that ain't helping much
 
@HassanAlthaf If the for loop never finds an object in the circles array that matches the value of event.getSource(), then the index value will never change.
 
@Michael I know, but they should.. :/
 
hmm
 
2:53 PM
@Michael Any app ideas on what I can code?
 
It may be triggering that method, even if you do not click on a circle. For example, it may trigger the method if you click in an empty space in the window.
 
@Michael Oh yeah, it can be an empty space.. :/
 
So if it can't find a circle (in other words, if index is -1), you need to prevent it from calling this.handleSquareClick(index);
 
Well, I get -1
 
2:56 PM
if I click the block where the thing is.
 
restriction: web app
 
@Unihedron Same here mate. I want an app idea too.
Something that requires some work
 
@HassanAlthaf AFAIK, last time you asked for app ideas all the ideas were out of your league
has your skills improved?
 
Sorta, I was with Swift and PHP.
And C# yesterday.
 
yes or no, simple question
 
2:57 PM
Came to Java back after a while
no
 
@Unihedron how big?
 
ok, then I know not to sink my time and actually suggest something good :)
 
Well, suggest something man.
 
@Vogel612 Doesn't have to be big or small, as long as it's functional
 
Hardest part of learning to code: Deciding what to code.
 
2:57 PM
@HassanAlthaf conway's ...
 
@HassanAlthaf ^ fallacy
 
What @Vogel612
What is a fallacy @Unihedron
 
Just play video games. It's easier.
 
Hell no, I hate games. I love code <3
 
15
Q: August 2015 Community Challenge

Gareth Rees The top-voted answer is Racetrack: "In the game of Racetrack, cars race around a track bounded by two concentric closed loops drawn on a square grid. Implement a program that plays this game." It's time to choose a community-challenge for August 2015. Post your challenge as an answer to th...

^ @Unihedron something here?
 
2:59 PM
I can try to implement Jeopardy I guess
!!!
 
Damn, I don't know how to do games. lol
 
in Ruby :: Sometimes on Rails, Apr 2 at 17:30, by Wayne Conrad
That would be an interesting geeky mini game. Jeopardy, but you write code. The categories are languages, and when the square is turned, you see the answer. The first contestant to write the code that gives that answer in that language wins.
YES I'm going to do that
in scala
 
sounds like a plan...
 
or java
/me rolls dice
 
Oh god halp!!!
Someone make a project generating app
 
3:00 PM
@HassanAlthaf you'll just end up rejecting the first 100 ideas
 
@HassanAlthaf go DIY
 
Nah I wont trust me.
I have changed.
 
The dice lands on 5. That means nothing.
 
take a textfile and random sth.
 
@Vogel612 What is DIY?
 
3:01 PM
no you haven't... I clearly remember you asking for recommendations over and over and over in the 2nd monitor.,
 
!!urban DIY
 
I cast magic missile.
 
DIY -> Do It yourself
 
@Vogel612 and here, he's not new here
 
@Michael 1 Vote registered, need 1 more to execute
 
3:02 PM
@Vogel612 Authorized. Commit!
 
I think
 
Thank You, please do come again.
~I'll see myself out then
 
I stuck three "Java" stickers on sides of the dice and three "Scala" stickers and it landed on "Java". So I'll do it in Java!
 
what will be the languages?
or better asked categories?
 JS | Java | Groovy | ...
 
 JS  | Java |  C#  | Lisp | some obscure language | esolangs
I guess the first four languages are kinda familiar, and the last two would allow you to write in any of the available languages so you won't play by lottery
 
3:29 PM
/shutdown
 
Shutting down. See you later.
OakBot Online.
 
/roll
 
@Michael 4
 
feature request: /roll [java, java, java, scala, scala, scala]
 
/roll 2
 
3:32 PM
@Michael 1
 
You can specify the number of sides.
/roll 20 5
 
@Michael 3, 15, 5, 8, 10
 
And the number of times.
 
but arbitrary values are useless, I just want a dice to decide between options for me
 
4:04 PM
OakBot Online.
 
/roll java scala
 
@Michael java
 
Happy now?
 
4:17 PM
OakBot Online.
 
/8ball Is Michael awesome?
 
@Michael My reply is no
 
Dang it!
 
wll...
 
/8ball Is Vogel awesome?
 
4:18 PM
@Unihedron Better not tell you now
 
...
but I WANT to know, that's why I asked
 
Off to lunch. Bye Java!
 
4:37 PM
Guys, what is the best method to store data in Java?
 
Keep it in a safe
 
You need to elaborate. Your question is too vague
What kind of data?
 
@HassanAlthaf do it or do it not there is no best
 
I need to store three fields;
 
4:39 PM
that will be five bucks
 
id, password, description
 
I didn't see any deer
 
IDs are so 1990
use UUIDs
also, store passwordHash instead of password
 
@Unihedron What's that?
@Unihedron I will need to encrypt it, a Hash will not work.
 
use a search engine
 
4:40 PM
Because, this is used to store your passwords.
 
and please learn how to store passwords
 
@Vogel612 I did, but I don't get any which meets my requirements.
 
store your own passwords, keep your mind off mine
 
btw. tell me what you write so I can put it on the blacklist of stuff never to sign up to
2
 
4:41 PM
@Vogel612 I will have to show them back as Plaintext, so I can only encrypt them. However, to access the application, it will require a password, which will be hashed.
@Vogel612 It is a password manager, where you can store your passwods,and view them if you forget them...
 
if you have to show them back as plaintext
 
And for that, hashes won't work.. :/
 
then you do shit wrong
 
@HassanAlthaf what's the name of this password manager?
 
@Unihedron Password Manager
 
4:42 PM
you suck at naming
 
I do. :/
 
hehe
 
I don't really care about naming though, its about the code.
@ItachiUchiha Damn Shinchan.
Is XML a good solution?
 
no
maybe if you lived in 1980s
 
4:45 PM
sometimes it's not the worst...
 
What can I use then?
Does SQLite work in Java?
 
flatfile?
A flat file database is a database which, when not being used, is stored on its host computer system as an ordinary, non-indexed "flat" file. To access the structure of the data and manipulate it, the file must be read in its entirety into the computer's memory. Upon completion of the database operations, the file is again written out in its entirety to the host's file system. In this stored mode, the database has no structure which can be seen external to the file and thus is referred to as a "flat file." The term has generally implied a small, simple database. As computer memory has become cheaper...
 
Yeah, preferably a flat file database.
Because I want the user to be able to set this upeasily.
And if it's flatfile, no configuration would be required.
 
three false assumptions in a row
 
wut?
How about you point out what's wrong, and point out a solution instead of just arrogantly mocking?
 
4:48 PM
"Yeah, preferably a flat file database." not really, I just threw out a random idea
"I want the user to be able to set this upeasily." no you don't
"if it [the database]'s flatfile, no configuration would be required." no
@HassanAlthaf I just did
 
Oh okay, thanks. That is what I expected. @Unihedron
 
then don't waste my time reiterating
 
If I use an RDBMS solution, will it not require the user to setup a database and stuff?
 
no.. think derby
SQLite for eclipse
 
Oh derby nice
 
 
2 hours later…
6:25 PM
Am I correct to assume that JSF works in the same pattern as JSP? It generates the views backend and the client is completely static?
 
/8ball answer JohnSnow's question plz
 
@Unihedron Without a doubt
 
@JohnSnow ^
 
hehe
Well.. I'm reading up on it but the wiki is kinda fuzzy on the topic
 
@JohnSnow :O
 
6:29 PM
@ItachiUchiha Well, is that a yes or a no? :P
 
@JohnSnow well for the most ... no
 
well technically yes! But, there is a confusion if you are talking about the JSF framework or the JSF file extension. My bet is on the later ;p
 
I'm talking about the framework
Seems like it's all about templating
 
there's things like ... f:ajax
but yes the client only gets "static" content and cannot modfiy the jsf with stuff like js
 
Nowadays you can add JS to JSF
But I dunno how much
 

« first day (1771 days earlier)      last day (3156 days later) »