« first day (1378 days earlier)      last day (3556 days later) » 
01:00 - 19:0019:00 - 21:00

1:56 AM
anybody want to try to give this one a shot? stackoverflow.com/questions/25071623/…
 
 
3 hours later…
5:25 AM
hi guys?
any one is therE?
 
Hello Java!
 
hi
 
Sup!
 
hi this is sethu from india
 
Great, so am I.
 
5:28 AM
hmmm great
 
kya
@kylar when do you sleep ?
 
Which state?
 
currently in KA, you?
 
6:24 AM
KA ?
 
kya
6:49 AM
@ItachiUchiha You are also awake... When do you sleep ?
 
@kya I don't :P
 
kya
@ItachiUchiha Thats amazing!!!! Im on day 3 of java programming. Its going well so far.
I made the deadline by the way. thanks to you
 
@kya welcome !
@kya so whats up ?
 
kya
@Nothing much. I'm going through some java books at the moment, so php will be a thing of the past very soon. I also got me intellij. Whats up on your side ?
 
7:06 AM
@kya how good are you with php ?
 
kya
@ItachiUchiha I'm intermediate. been using it for the past 4 years. do you also have 15 years java experience ?
 
 
2 hours later…
8:47 AM
@kya nope ! Not 15 years :P
 
Who has 15 years here?
 
I'm 16 years old and I didn't start Java when I was 1, so nope.
 
:D
 
kya
@kya, so how much experience you got ?
@ItachiUchiha I mean
 
You tried to ping yourself. Consider yourself a hero. :)
 
8:54 AM
@kya professionally close to 3
but then I have been programming in java since i was in school(though most of the things didn't make any sense at that time :P )
 
kya
@ItachiUchiha hahaha! school stuff makes no sense
 
@kya true ! but when i see school kids right now ! they are faster and more intelligent than we are !
look @Unihedron he is 16, and he knows so much (claps)
 
Thank god I learned programming outside school.
I'm just this other guy, you know? :P
 
kya
@Unihedron That's awesome. we are snails compared to you
 
So much to (be) learn(ed), so little time. :)
 
9:23 AM
@Unihedron true !
@kya need some help !
are you good with JS ?
 
kya
@Unihedron I had no idea what programming is when I was in school. I only got to learn it at university
 
Good noon everyone!
 
Good afternoon!
 
@Unihedron I had no idea what programming is when I was in school. I only got to learn it at university
:'(
Okay so Java is being gay now!
Could you plz explain how to fix it
;-;
 
Hang tight, what's the problem?
 
9:28 AM
I get an error when i submit it to the automatic marker
but it works on my machine ;0l
An error called 4d3 w.e
 
Is w.e an emoticon or part of the error?
 
w/e = w.e watever
:S
My code is missing something
 
Jul 23 at 15:16, by aliteralmind
user image
What's the test input and corresponding output?
 
second
Here's my updated code (which doesn;t allow me to input country name) :
http://pastebin.com/wUJVmVYQ
Input:
Dicky L.Mobster
1000
Long Island
so it's name, money and countryname
 
Because there's a space after 1000.
 
9:33 AM
yep
No no
I mean
You enter full name
press enter
enter 1000
press enter
and the you can't input country name
 
You can probably type that all within one message so the chat log doesn't get flooded, and I'll try that.
 
I know I can I'm just too lazy to type long line :3
 
The problem was the whitespace. If I input Unihedron 0 / 100 Earth Alpha Centauri it recognizes both the amount and the country as fine.
 
how to fix it?
 
You can use a spamDetails.nextLine(); after .nextInt(). It doesn't have to write anywhere, just burn the whitespace to skip to the new line.
 
9:40 AM
I tried this as well didn't work
then the output was wrrong
 
@Sabಠ_ಠ That would have been OK if we had an active room owner who trashes messages for us.
What do you mean?
Try this:
(final) String cntryName = spamDetails.nextLine().concat(spamDetails.nextLine());
 
We need an active room owner !
 
We should have a Room Owner Election for the Java room.
 
Micheal please make @Unihedron as the owner, as he is the most active person in the room !
 
nooz pls maek @Kylar hes best
 
9:43 AM
~That was a disaster~
.
 
Not to be harsh (im going to be harsh now) You have enough rep to join the room, you'll probably get locked out if enough users downvote your content. /just saying
 
@Unihedron may be both of you can ! Kylar has experience and you have too much of free time :P
 
They won't. I'm very much likeable :3
 
Back to serious talk though, I can't figure this out. Now, when I try to input a person with 3 Names example Eugene L. Harris where eugene is the first name
 
9:46 AM
Oh?
 
The problem now is that there are 2 last names and 1 gets stripped out
 
Would you like them to go to lastName? Then use (final) String lastName = spamDetails.nextLine();
 
So basically, I need to be able to cater for any length(numer of words) of names and country names
 
Otherwise you can use regex
 
Regex is out of option for now, I'm still too new to Java
 
9:47 AM
final String[] sectionOfWords = spamDetails.nextLine().split(" ");
 
I guess I should wrap my head around this a bit. I'll be back in some hours if I can't figure it out. I'll have to understand what final does as well :)
Thanks for the help so far.
 
Good luck!
Going to code for a few, ping if needs help.
 
kya
10:02 AM
@Unihedron are you sure you are 16 years old ?
and not coding for 16 years ?
 
@kya what do you mean?
It would be tragic if I've started coding since I was born.
 
kya
@Unihedron your java knowledge is exceptional. This is only my 3rd of java :(
 
I don't really know as much as you thought. We're both learning. I just happened to get a head start.
I also have a better spade (information literacy) so I can dig google for most of what I need, and don't ask questions on SO (yet.)
 
kya
@Unihedron thats awesome. I got a lot of catching up to do. But I will get there
 
10:18 AM
Good luck! Keep calm and keep trying. Until you stop. Well, whatever.
Anyone with the golden hammer want to help out this guy on meta? meta.stackoverflow.com/questions/267442
 
Have patience, java is a developer friendly language !
@Unihedron i have no idea
 
@Ondkloss you must !
 
@ItachiUchiha I will!
(Although I should have done so sooner)
 
@Ondkloss better get started !
 
11:10 AM
Tests are important. Without them you'll never be able to make sure your code works.
 
 
1 hour later…
12:10 PM
Greetings
 
@Karl :)
 
How is all today?
 
All is well.
 
Great !
 
12:21 PM
One upvote today so far.
 
@Unihedron have you worked on Javafx ?
 
Nope, I do swing, not really used javafx before.
 
you used try it man !
its superb !
 
Oh? Enlighten me?
 
I keep thinking about the other version of swing!
 
12:22 PM
it uses MVC architecture for applications
You can build the UI using java code(as in Swing) or using FXML
FXML can be embedded into your app, just as the HTML, jsp are embedded in javaEE
using controller classes
+ it uses css, to design your app
 
*your app
 
so now the UI designer can separately design the app, while you code logic !
 
I need somebody to do that for me
 
... But I don't have colleagues to worry :/
 
I know
that was just a pun :P
3
A: Which is better way of programming in javafx?

ItachiUchihaJust to put some light, javafx script was used prior to javafx 2.0 and is no longer in use ! You can use this approach, if you are more familiar with the coding UI in java. But, I personally dislike the approach, since it makes the code complex when you have a way too complex application. JavaF...

 
12:26 PM
lols
 
0
Q: What to know before starting to learn JavaFX?

user3629274I read about the advantages of JavaFX over Swing(that is not the point of discussion) and I would like to learn JavaFX. But later I got confused between the JavaFX script and other things like XML, etc... I don't have a clear picture of it yet. I want to know what all things like basic informati...

76
Q: JavaFX or Swing?

cesarI just wanted your input on something with regards to Java. Would it be a good investment to study JavaFX for my user-interfaces, or would sticking to Swing be easier or more convenient?

With Javafx you can build beautiful applications :)
+ work is in proress for porting javafx app to android and iOS
 
How do I find a person to make a UI for me?
[For Android]
 
you can do it on your own
 
freelancer.com
 
12:29 PM
its has a simple drag drop scene builder tool !
you can start with making UI using java code
and then switch to fxml
to make the UI, you dont need a person
but to decorate it, you might need !
:P
 
No I cannot. Between my Autism, and holes in my memory, and the way I learn. I cannot do it on my own.
 
@Karl you are Overthinking !
Do you know swing ?
 
I do not.
I want to make it for Android and iOS
 
@Karl
 
Back when I started Java, I did much better than I do now
 
12:34 PM
@Karl when did you start java, btw ??
 
@ItachiUchiha I like your profile.
 
About a decade ago, but I don't hit it regularly.
 
and I thought you are a school boy :p
@Unihedron what do you like about it ?
 
takes up 65% of your posts :)
 
I have two children that have graduated High School. One is married, other in college
One still in HS, and one in middle school.
 
12:36 PM
Man ! I underestimated ya !
@Unihedron how do you post the tags ?
 
@ItachiUchiha What do you mean?
 
the javafx tag which you posted just now, which looks like a button
1 min ago, by Unihedron
takes up 65% of your posts :)
 
[tag:lrn2tag-pls]
 
Mmm, delicious Java.
 
12:39 PM
[tag:You're it]
Tried....
 
hehehe use - to connect words in tags
 
I guess it has to be existing tags
 
[tag:You're_it]
Nope
 
It's the '.
 
12:43 PM
 
it is not accepting '
 
I see
 
[tag:You are it]
No spaces
 
12:44 PM
Use - to represent spaces.
 
[tag:You are it]
I know. I tried alt-255, and it doesn't work either
I've actually put alt-255 in a user name. Logins wouldn't accept spaces, but it LOOKED like I had one. I didn't need a password, nobody could figure out my user name!
 
control-c control-v...
 
Well...
Not when your logged off
 
1:00 PM
hi @uni
 
Hello there!
 
yeah
how yo?
 
Lovely day over here hunting for good questions and shooting down bad ones with [cv-pls] at the tavern.
 
1:30 PM
hmm
then
what doing?
 
@Sethu What do you mean?
 
2:02 PM
What are you doing now
 
I just convinced a room to get their name changed. :p
in The SO Tavern (Free Snacks), 10 mins ago, by Unihedron
We should rename to The SO Tavern (Free Snacks)
 
2:42 PM
hmm ok
 
Hi
All
Can anyone tell me how to get UTC date in java
 
Hello there. You can edit your messages if you missed something.
 
3:12 PM
I'm back!
I HATE having to reboot my server, it cripples my machine! ESPECIALLY when it's "Install updates and shut down" crap
 
lol welcome back!
 
Thanks
My network was crippled for 3 days because my server's clock was wrong [nobody looks at the computer's clock]
 
3:36 PM
Now to wait for it to power up...
 
4:21 PM
Hello!
 
@Cid1025 Hello!
 
4:37 PM
Hi, I could use some help, I've hit the proverbial wall
 
@sathia Ask away
 
Thanks
I'm trying to use an API that throws some data via json
i then take this jsonobject and put it into an hashmap
what I want to do with this method is to create a new method for each bike on the hashmap
I can enter into the multidimensional hashmap, but for the life of me, I can't understand how to get the id value, ie: id=51 id=52 id=53
it's about three hours of brainfarts now
basically, I'd like to call a new method Get_Bike_Details(51) in order to render it on the intent
and so on for id 52 and 53
 
4:56 PM
any idea?
 
i'm just confused because methods are named in camelCase, not PascalCase.
 
you must be meaning something, but I don't get it :)
is it a practical joke?
 
TONS of ideas! Many I can't say here
FEW are Java related
 
you could go to myspace then
I'm frustrated because I'm stuck into something that looks like an easy thing
it's my fourth day of java, so yes, my head hurts
 
Ah, I see.
 
5:03 PM
4th day?
 
yes
 
Did you come from the Objective-C world?
 
no, php
since 2001
so yeah, you can imagine the pain I'm feeling now
 
Ah, that explains. You see, semantically Java Types are in PascalCase (All word uppercase joined together), fields andMethod() are in camelCase (First word lowercase), which was why I was confused when I saw Pascal_Score for a method name.
 
ok
i must get used to that as well
 
5:05 PM
Is Bikes a JSONObject?
 
no, it's a map
public static Map<String, Object> toMap(JSONObject object) throws JSONException {
    Map<String, Object> map = new HashMap();
    Iterator keys = object.keys();
    while (keys.hasNext()) {
        String key = (String) keys.next();
        map.put(key, fromJson(object.get(key)));
    }
    return map;
}
this is how it's converted
 
You can actually declare Iterator<String> keys = object.keys();. Then you don't have to typecast keys.next() with (String).
 
let me see
this is the class I'm using to convert json to map gist.github.com/codebutler/2339666
 
Every time a programmer uses instanceof a cute little rabbit dies :(
 
i may have killed some then
i thought that converting to hashmap would be better, should I let the json be?
and use that?
 
5:11 PM
JSONObject extends HashMap...
 
in form of JSONObject
ok, so it's redundant
 
Which was why I facepalm'd at the tutorial. It does teach you how to manipulate with maps and JSONObject, but you wouldn't want to do this other than for sport.
 
Understood, that was muscle memory then
when in php you have to json_decode($hit)
 
That is correct.
 
so, I'll drop this class altogether, change type
and see where I go from there
 
5:14 PM
Good luck!
 
I'll post later if I make it
thanks
 
5:41 PM
Hi all
 
@fahdijbeli Hey there!
 
thanks @Unihedron
thanks @Unihedron
 
Eh?
 
nothing just my connection deplicated the message :)
you are all Hindi here ?
 
I doubt it.
 
5:50 PM
you also ?
 
No.
 
hum...
 
Eh all
 
Hi @Kylar!
 
Hola @Unihedron
 
5:59 PM
@Kylar so espagnol or prtugal ?
 
Que?
Je ne parlez pas espanol.
je suis un canadien!
VIVE LES HABITANTS!
 
Star this message if you believe we should elect a person active in this room to be a Room Owner.
10
^ There. :D
 
p00p
 
I'm not thirsty for power, I'm just sad that currently our only active RO is Michael, who isn't on a lot.
 
There's a tavern? WITH SNACKS
OMG there goes my day
 
6:02 PM
@Kylar ah c bon j'ai compris
@Kylar oui il y a une salon Taverne je pense
 
I don't understand.
 
@Unihedron he looking for Tavern's rooms
 

The SO Tavern (Free Snacks)

Room 5 was frozen for inactivity even though it was once an ac...
 
I think I'm going to act like a tween girl for the rest of the day
and use catchphrases like Oh. Em. Gee. and "OMFG I CANT EVEN"
 
6:04 PM
Good idea.
 
Whatever.
 
That should raise your charisma level to OVER NINETHOUSAND!!! points.
 
That's the cheddar i'm talking about
YOLO
 
where is Michael @Unihedron
 
He's been MIA for a while
he pops in for a few minutes maybe 1-2 times a week
but he hasn't been too omnipresent
 
6:09 PM
la réponse pour moi ? @Kylar
 
I'm sorry, I only speak AMERICAN
 
@Kylar and this :p :
Que?
Je ne parlez pas espanol.
je suis un canadien!

VIVE LES HABITANTS!
 
I must have been hacked.
Oh well.
Those canadians. They're slippery. you can't trust them
 
though I don't understand but not problem
 
I can see what he posted too, though. (I'm confused too)
 
6:13 PM
@Kylar the canadian speak french :)
 
You one of them? A commie?
 
lol I m Tunisian speak arabic :)
 
Tunisia! Tatooine!
Are you a tuskan raider?
Do you walk in single file to hide your numbers
 
@Kylar I don't understood this word "Tatooine" ?
 
gasp
I... just... I'm.....
 
6:18 PM
Tuskan ?
listen I don't know american english if you can talk with BrE
 
you know Tunisia ? @Kylar
 
I know the two most important things: It was used as a primary filming location for many Star Wars bits
and it's the antipode of the Lost island.
 
lol
 
Antipode, I'm pro-pode
 
6:29 PM
... ?
 
Hi again, How would I iterate a multidimensional JSONObject?
I can't get it straight
 
for (final Entry<K, V> entry : map)
    if (entry instanceof JSONObject) // Cast entry.getValue() to JSONObject and use
 
        Iterator<String> i = Bikes.keys();
        while (i.hasNext()) {
            String key = i.next();
            try {
                Object Bike = Bikes.get(key);
                Log.v("Bike", Bike.toString());

            } catch (JSONException e) {
                // Something went wrong!
            }
        }
 
@sathia recursion!
 
let me see
it's really over my head
sure, the JSONObject Bikes is a container of objects, I need to iterate each object and get the ID value of each
pastebin.com/aNimQXYF here's the data I'm working with
 
6:36 PM
Object findKeyFromMultidimensionalThing(JSONObject json, String key) {
    for (final Entry<String, Object> entry : json)
          if (entry instanceof JSONObject) {
              final Object deepentry = findKeyFromMultidimensionalThing((JSONObject) entry);
              if (deepentry != null) return deepentry;
          }
          if (entry.getKey().equals(key)) return entry.getValue();
    return null;
}
Recursion woot!
 
let me see
Error:(47, 25) non-static method findKeyFromMultidimensionalThing(org.json.JSONObject,java.lang.String) cannot be referenced from a static context
 
add static before Object
 
slightly better, but Error:(55, 20) cannot find symbol class Entry
 
you either have to change Entry to Map.Entry or import it
 
foreach not applicable to expression type, I've added also the second parameter on recursion
it was missing
i guess
i'm at loss
 
6:56 PM
Oh?
 
I understand what it's trying to do
but I can't get it to work
 
...
It's missing the brackets:
for (final Entry<String, Object> entry : json) { //here
      if (entry instanceof JSONObject) {
          final Object deepentry = findKeyFromMultidimensionalThing((JSONObject) entry);
          if (deepentry != null) return deepentry;
      }
      if (entry.getKey().equals(key)) return entry.getValue();
} //here
Sorry.
 
i tried fixing that
static Object findKeyFromMultidimensionalThing(JSONObject json, String key) {
    for (final Map.Entry<String, Object> entry : json) {
        if (entry instanceof JSONObject) {
            final Object deepentry = findKeyFromMultidimensionalThing((JSONObject) entry, key);
            if (deepentry != null) return deepentry;
        }
        if (entry.getKey().equals(key)) return entry.getValue();
    }
    return null;
}
and I've also added the key when it tries the recursion
 
01:00 - 19:0019:00 - 21:00

« first day (1378 days earlier)      last day (3556 days later) »