« first day (1372 days earlier)      last day (3572 days later) » 

4:18 AM
yo
 
 
4 hours later…
 
4 hours later…
12:10 PM
hi
@unihedron
how yo?
 
Greetings!
Gaming with friends. How's you?
 
hmm gud
then now there is day or night?
 
it's 20:13.
 
so its night rite
 
Yes.
 
12:14 PM
then have you had your dinner?
hey man can i know your subjects?
 
Yep, made luncheon meat with rice. Not really a big fan of rice, but it was nice.
 
hmmm cool :D
then hey i have one doubt can i ask you
 
I take lessons in Chemistry, ICT, and BBA
Sure please do.
 
in which language are you expert?
java or any other lang?
 
I do mostly Java and C++, but I am no expert. :)
 
12:17 PM
hey ma english somewhat poor. so pls correct me while i make any wrong sentence means ok va
hey you are just 16 but you have talent of 33 yrs man mind
 
ok, ** "Hey my English is somewhat poor, so please correct me when I make any wrong sentence meanings ok"
** "Hey you are just 16 but you have the talents of a 33 year olds' mind"
 
what?
 
Thank you, I am fortunate to have learned what I have so far.
 
you send send back this msg to me
hmmm superb dude
 
Eh, no offense, but you told me to correct your sentences ;P
 
12:20 PM
hmmm ok
then are you fall in love
do you like any other girls?
 
... Not really. I'm a very realistic person when it comes to relationships.
 
hmmm
why you didnt like girls?
 
Women are weird.
(no offense in case any future readers are girls.)
 
hmmm
hey sorry for late reply
 
It's alright.
 
12:28 PM
you have to learn in life oriented some matters
hey in life girls is very important
bcoz your mom is also like a girl
so dnt hesitate
feel free to talk some one and share your feeling to someone bcoz she will point out your mistakes
dude
its ma suggestion
 
I do agree.
I know a girl who does python. She's 14 though.
 
wow superb
wait a seconds
dude i ll come
 
Huh?
 
12:47 PM
hey
 
Eh, hi
 
are you there?
 
It depends on where you mean by "there", I might not be.
 
you didnt date any of girls?
 
Nope.
 
12:49 PM
hmmm ok dude
you must know what is girls mind
 
What do you mean?
 
nothing
you know spinner in android?
how to use custom spinner?
temme about your family?
 
hmmm ok
hey i know those website i wanna how to use custom list like
image with textview in that spinner
 
What?
 
12:59 PM
actually i want to use custom spinner view
it includes image and text in dropdownlist
eh?
 
I have no experience with using spinners, sorry.
 
hey its ok
you are always ma teacher
then whats up?
 
Nothing much really.
 
hmmm ok
then what is your ambition?
temme about your family?
 
My father is a guard at some apartment. My mother works at a restaurant. I'm a programmer who wastes time procrastinating.
And I'm playing some sheep battle game in minecraft at the moment.
 
1:10 PM
wow superb
in ma family. my father is a farmer and ma mom is a home maker. i have two brothers and two sister. two of them are ece engineers an ma sisters are Teachers. i you about me
this is all about ma family
 
cool beans
 
hmmm
then i was asked about your ambition?
 
world domination, perhaps?
 
keep it up dude
you need any help ask me if i can do means i ll do
 
Thanks, I guess. :)
 
1:17 PM
hmmm
then temme some technology oriented
 
It's 2014, I want hovercars.
 
bcoz i wanna improve ma communication skills and management skills
 
Oh, okay.
 
u ll get soon
then temme your hobbies?
 
soonâ„¢
 
1:20 PM
what are the things are you liked?
 
I write code and music. I don't really do much irl except running at the park during weekends.
I skype with friends sometimes.
 
hey send your skype id i ll call u tonight
i ll add u
 
kks
 
sethuchiyaan26@gmail.com
its ma id add me
hmmm ok
then unihedron if there is any openings for me
temme i ll come
for jobs
 
Eh, ok.
 
1:23 PM
am a android developer year of experience is one
 
You can always start open sourced projects to attract attention, like another markup language or something.
 
hmmm
i hav some what idea about that
i ll do later on wards bcoz i need to inverse!! so i need to yearn this time
 
Ah, learning, good for you! :) I've always meant to learn something new, but then I laugh and watch youtube videos.
Be right back, going to shower.
 
hmmm sure
hey you speak well
?
eh!!!
okie bye dood @unihedron
 
1:40 PM
Anyone there?
 
yeah temme
 
import java.lang.*;

class area
{
int l;
int b;
int ar(int x, int y)
{
l=x;
b=y;
return(l+b);
}
}

class room
{
public static void main(String args[])
{
area a1;
int a;
a=a1.ar(10,4);
System.out.println("Area of room is="+a);
}
}
Variable a1 might not have been initialized
How to fix it ?
 
area a1=new area();
 
let me try
Variable a1 is already defined in method main(String[])
 
hey you have create a object
 
1:49 PM
Please use "fixed font" to format your code, also class types should probably be named in PascalCase, not camelCase (semantics :). As for your original question, I think you can change this part of your code to this:
area a1 = new area();
int a = a1.ar(10,4);
 
@bohemia you have to create a object for area class
then try it ok
 
How to create that?
can you write that in code
 
yes, you declared area a1; at this point a1 is not initialized. a1.ar(10, 4) would throw a syntax error. You need to put some area value into it, or null at least, but then you might get a runtime error.
a1 = new area(); or a1 = null; under area a1;
 
This is the new error after doing area a1 = new area();
Variable a1 is already defined in method main(String[])
 
class area
{
int l;
int b;
int ar(int x, int y)
{
l=x;
b=y;
return(l+b);
}
}

class room
{
public static void main(String args[])
{
area a1;
int a;
a1=new area();
a=a1.ar(10,4);
System.out.println("Area of room is="+a);
}
}
try this code
 
1:56 PM
wow it worked :(
sorry
:)
thanks!! :D
 
It's okay, would you mind me add a word of comment though?
 
Sure
 
Firstly, you could probably do better names than l, b, x, y, a1 and a. Using better variable names helps jumping your vision point within the debugger variable information easier.
 
package com.example.questions;

public class Sample {
int l;
int b;

int ar(int x, int y) {
l = x;
b = y;
return (l + b);
}
}

class room {
public static void main(String args[]) {
Sample a1 = null;
int a;
a1=new Sample();
a = a1.ar(10, 4);
System.out.println("Area of room is=" + a);
}
}
 
Secondly, you don't need dummy variables to have fancy names, you can do this:
 
1:59 PM
This is my first day with Java. Do you guys think I will able to learn it like you guys do. I wasn't even able to correct this code :(
 
public class PairOfNumbers {
  int first;
  int second;

  int setAndComputeSumOfNumbers(int first, int second) {
    this.first = first;
    this.second = second;
    return (first + second);
  }
}
 
hey @bohemia is it worked? its worked for me
 
Yup it did @Sethu thanks bro
and thanks @Unihedron
 
bro va??
hey we just friends ok
dont say bro and all
 
ha ha sorry I'm just used to say bro to my guy friends. It means the same thing.
 
2:01 PM
No problem. By the way, be glad you asked in chat and not post a new question, because issues like that gets downvoted a lot.
 
hmm o k
 
Some / Most of these "newbie" questions are better served when asked in chat rooms as they ask for quick references and simple reviews that includes a bug to be found. It's a shame that there is an entry reputation limit for using the chat room as a privilege. — Unihedron Jul 22 at 7:45
 
well am sethu from india @bohemia
 
@Sethu I'm from India too
 
are you from india??
in which state?
 
2:03 PM
Plus @Sethu @Unihedron do you guys think I will able to learn Java like you and fix errors on my own?
 
yeah sure you will do
 
@Sethu from Delhi
 
java is too easy to learn so dnt hesitate to ask question of others
wow super am from chennai
 
Sure thing, just be patient and you'll be more information literate as you look for more.
 
Tamil nadu
@bohemia do u have google plus?
account
 
2:05 PM
Why I wasn't able to see this error and fix it on my own? I tried to. And I was doing a1=0; but that created another error.
Yup @Sethu
 
That's because 0 is int, it can't be boxed into area.
As area is a type, the only primitive area would be null, or you'd have to construct a new area().
However long a = 0; works as int can be boxed into long.
 
oh thats fine. yeah thats rite unihedron area is a class so you have to create a object by means of allocating memory of that class
 
wow I sure am newbie :D @Unihedron @Sethu how did you learn this language.
 
hey area is a class so you have to create a object then only it will allocate some memory for that programs
ok
are you studying or working?
 
I'm a student
 
2:09 PM
@bohemia can u send your google plus account name
or link
 
I started with ActionScript when I was 8, I forgot what made me learn Java, but I picked up C++ and Java by running into walls and reading online documentary about it when necessary.
 
wow superb i ll send you some materials and links
 
Earlier I used to learn C++ and to this date I can't make any program on my own. The only thing I know is upto void main() :(
 
2:11 PM
@Sethu lovinglife7696@gmail.com is my gmail account id
 
yup it's me
 
hmmm ok
your name
 
Kabir
 
hmm ok
in which standary are you studying
 
2:14 PM
M.C.A
 
oh ok ok
 
what about you ?
 
am a android developer
worked in cognizant
edu B.Tech
 
oh! that's great.
Can you create code on your own. I mean make programs on your own?
 
Oh @Bohemia, have you seen codingbat? [aliteralmind] shared it the other day, I had lots of fun doing the Java exercises.
Jul 22 at 1:29, by aliteralmind
http://codingbat.com
 
2:20 PM
Thanks!! @Unihedron I bookmarked it. :) I hope to learn from there.
 
Hi everyone!
 
@florian Hello!
Welcome to the Java room, where your dreams may or may not come true!
...<_<
 
;-)
 
ha ha :D lol that's quite optimism :D
 
I have some questions about JSON serialization with Jackson...
 
2:22 PM
yeah ask me @florian
 
Ask away.
 
Is it possible to generate a JSON object with a root field from a POJO?
{ "test": { /* my pojo */ } }
 
Will this do?
@JSONProperty
JSONObject test;
 
yeah will this do
1
Q: deserialize inner JSON object

Anurag TripathiI have a class POJO Class Pojo { String id; String name; //getter and setter } I have a json like { "response" : [ { "id" : "1a", "name" : "foo" }, { "id" : "1b", "name" : "bar" } ] } I am using Jackso...

5
Q: How to convert json into POJO in java using jackson

NoamI'm using spring 3.1.2 and I need to parse a json object into POJO. This is the json that I need to parse: { "Person" : { "id" : "2" }, "Dog" : { "dateOfBirth" : "2012-08-20 00:00:00", "price" : "10.00" } } I need to convert this json object (which is combined from two objects...

 
I cried when seeing that question because in OP's code, class is written as Class.
 
2:25 PM
11
Q: Jackson JSON Deserialization with Root Element

hatboysamI am having a question with Jackson that I think should be simple to solve, but it is killing me. Let's say I have a java POJO class that looks like this (assume Getters and Setters for me): class User { private String name; private Integer age; } And I want to deserialize JSON that l...

 
I want to serialize not deserialize. For now I tried with @JsonRootName(value = "search").
with no success
I know I could wrap my Search POJO in another object but I was thinking that maybe an annotation will do this
 
I don't know of one, have you seen something that might be worth trying within their javadocs?
 
JsonRootName ;-)
 
hey maintain your values in a model class of POJO properties and implements that class into serialize pass that object into where you want and target class you have to deserialize those model class now you understand
 
Not sure I understand what you're saying
 
2:33 PM
create one model class for json all properties..
public class RowItem Implements Serialize{
private int imageId;
private String title;
private String desc;
private String date;
private String Total;

public RowItem(int imageId, String title, String desc,String date, String total) {
this.imageId = imageId;
this.title = title;
this.desc = desc;
this.setDate(date);
this.setTotal(total);
}
public int getImageId() {
return imageId;
}
public void setImageId(int imageId) {
this.imageId = imageId;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
like this
 
Please use fixed font to format that.
Also I think it's implements Serializable.
 
"Dog" : { "dateOfBirth" : "2012-08-20 00:00:00", "price" : "10.00" } } consider for this example Dog is a class and creata a variable for all the sub elements
yupe
 
ok but when I serialize a simple class the "Dog" root element is not generated.
 
hey here root element is dog
it belongs to some elements is there means you have to use arraylist
 
Or JSONArray
 
2:46 PM
List<Another model class> modelclass name=Arraylist<another modelclassname>();
yes
 
** new ArrayList<>();
 
yes new ArrayList<another model class name>();
 
2:58 PM
are there?
 
yes was trying to use an arraylist but it's not giving the expected result
{"ArrayList":[{"location":"Paris","name":null,"type":null,"specialty":null}]}
ok find the way to do what I want
 
You did it? Hooray!
 
for the root element name you specify @JsonRootName(value = "search") on the POJO
and then you configure the objectmapper to enable the SerializationFeature.WRAP_ROOT_VALUE...
 
Oh I see.
 
3:14 PM
ok guys catch you later bye
 
bye thanks for the help
 
keep on try . u ll get soon bye
 
Goodbye!
 
-1
Q: Unable to compile FreeRDP source code on Ubuntu

NezamI am working on FreeRDP, i have downloaded the source on Ubuntu 12.04 and i am trying to compile it with cmake but i get the following errors.Not sure where i am going wrong.Can someone guide me? More specifically how to set this : CMake Error at cmake/AndroidToolchain.cmake:437 (message): C...

 
@Nezam No experience with FreeRDP, sorry.
 
3:22 PM
Hi again, there?
 
@Bohemia Welcome back! Answering some questions.
 
@Unihedron where you from bro?\
 
Earth, but I stay at Centaurus sometimes.
 
ha ha :D
I guess you are from US
 
HKSAR, somewhere in Asia.
 
3:26 PM
Oh! okay.
What programming languages you know?
 
ActionScript, (a bit of) Bash, C++, JavaScript, python, Java, and Regex!! (because it's an art and belongs to its own language, even if no one else understands it)
And Pascal, but I doubt anyone really uses Pascal to build programs.
 
wow! you sure know many languages.
 
I'm learning C# and (more) python.
Thanks!
 
I hardly know abc of c# , c, c++
 
C is good for the soul and makes you a better programmer it seems, I haven't gotten around to learn it though. It's big.
Bash knowledge comes from use of long git commands.
 
3:31 PM
I can design but not code in .net :( I wanna be coder but it's just too hard for my intelligence level
 
Ah. :/ Well, they do say practice makes perfect. Good luck!
 
Yup I am practicing. I actually want to be a web designer you know. But I have problem with c# and javascript. I can only make a website if I already have the code.
 
Good afternoon, Java!
 
@Michael Welcome back, Java-er!
Sorry for getting slightly off-topic in your room here :p
 
It's ok.
 
3:44 PM
does someone has some knowledge with gradle?
 
Yes, but it's not me.
 
I know you have knowledge with smart (and fun) answers ;-)
Not everyone at the same time pls.
 
@florian I've never used gradle before. Sorry.
 
 
1 hour later…
5:11 PM
Okay. So I've just come up with the most amazing program for java developers and reverse-engineerers and I was wondering if something like the following program already exists:
What I'm thinking of is like a middleground between something like DirtyJOE and JAD
 
rule 43
 
I know it's possible to inject code into a compiled class using ASM (asm.ow2.org)
And I know you can decompile an unobfuscated jar into a fairly good state
And I know that it's practical to explore and edit a class using a GUI because DirtyJOE can do that
So is there some sort of program that can show me a Decompiled class and allow me to manipulate/inject into different parts of it individually?
For example, I would like replace one method with another or add a field to a class.
So basically a frontend for ASM built with an interface based on decompiled source
Does that exist?
Because that would be awesome
 
 
3 hours later…
7:50 PM
can someone help me with this stackoverflow.com/questions/24963647/…
 
hey guys, I've got a quick question, can I make a Java Library in C/C++? If so how?
 
8:44 PM
@DaBaws That's like saying: Can I write an English novel in Chinese?
 
8:58 PM
Please Help

http://jsfiddle.net/48eFc/
@Michael
anyone
 

« first day (1372 days earlier)      last day (3572 days later) »