« first day (1743 days earlier)      last day (3192 days later) » 

7:40 AM
@JohnSnow lol
 
Indeed
 
7:57 AM
hello @fge, or anyone that knows JOOQ. Is there a faster or efficient way of creating mapper classes? do you write them by hand always or you have some automation of sorts?
 
8:07 AM
JOOQ maps automatically if you're using the native objects it creates for you
It might be able to map your custom objects too, but I never had that explored
 
@JohnSnow that's correct. that's my case right now. FYI, the custom objects extend from the native objects JOOQ provides..
too lazy and internet too slow for research, what the deal with Lambdas and how useful are they>
 
Well, fge is only gonna tell you to RTFM and I can't help you so, better grab a coffee while you dl the JOOQ manual as a single page or PDF
You should know by now that if you're too lazy to even try researching, we're too lazy to even try helping you ;P
 
@JohnSnow thanks for the rubber duck! i found a way!
 
good
 
@JohnSnow im not really forcing the volunteers here to research for me, most likely what I could be asking should be something they know already. if not, then its good, ill do my research. short witty sarcastic answers from experts are interesting and better to understand than read blocks of content that you guys can boil down to a sentence..
 
8:24 AM
Those who know things know it from reading all those things and more. Why should you get the fast lane just because you're lazy?
 
because time is short, and humans are instinctively lazy..
 
8:40 AM
You fail to realize that writing that one summary sentence is work too.
From now on I'm too lazy to write it to you
 
well, comparatively easier work now than before when you were learning it.. besides what could be the other purpose this chat is if every newbie are to be told to their own research?
nah, im just too lazy.. its basic that you have to had your own diligence before asking... and theres too tight of a schedule.. but thanks @JohnSnow
 
That's extremely rude. The only good point is that you're honest about it
 
 
2 hours later…
where are you from btw @JohnSnow
 
That's easy to find out
 
<- forever ignorant and lazy.. but didnt find it in your profile anyways..
 
11:01 AM
Then you're blind :P
 
11:41 AM
haha.. i clicked the wrong linked, saw it already though >.< isnt night time there @JohnSnow
 
no, it's midday
 
 
1 hour later…
12:49 PM
EnumSet.noneOf(MyEnum.class).forEach(o -> System.exit(0))
 
Morning, Java!
 
Morning Michael
 
@Unihedron Wat.
@JohnSnow o/
 
Lambda forms are great!
 
@Unihedron I "wat"-ed for other reasons, and you know it.
 
1:00 PM
Morning o/
 
Morning @deadlydragon
 
1:10 PM
Morning @Deadly
 
Morning @Michael , @JohnSnow . Cheers!
 
Anyone using Chrome?
Go to: chrome://flags
Apparently, I get 6.7 FPS on SO Chat xD
 
How do you see your fps?
 
Search for "fps counter" on the flags page.
You have to restart Chrome once you enable the setting.
 
too much work
 
1:23 PM
I like "Enable tab audio muting UI control". It lets you mute individual tabs.
 
2:13 PM
Is there a browser module / plugin for IntelliJ idea to start a browser tab like eclipse has one?
 
2:42 PM
Butts.
 
Is there a way to preserve syntax highlighting when using File > Export as HTML?
^ Syntax highlighting is gone.
^ original
 
shrugs
 
3:03 PM
Why should the highlighting follow
 
3:26 PM
there is someone that know how to use fileinstall with apache felix?
 
@JohnSnow Because it was documented to.
grammatical error aside...
that's definitely not "all syntax highlighting" no matter which way you look at it
 
Talk to the hand, because the face don't understand.
 
3:46 PM
Off to lunch. Bye Java!
 
@Unihedron Hmm
 
4:46 PM
Hey people... Wassup?
Anybody worked on jython?
How is it?
And where can it be applicable?
 
5:18 PM
hi
can someone help me to solve my java problem?
I have post it but no one reply...
0
Q: Why can't display sql value into Jtextfield

user5156075What's wrong with my coding? Why the value in the sql cannot be retrieved and inserted into JtextField**(textField)** I know the coding is a little bit longer, but really hope someone can help me to figuring out the problem..Thanks User.java JButton btnNewButton = new JButton("Process"); btnNe...

 
 
1 hour later…
6:29 PM
helo
 
Hi.
 
6:52 PM
is there a way to do live updates to application in debug mode in intellij 13?
without rerunning
 
7:16 PM
Good news! My application will be ready to do what I want it to tomorrow.
Bad news: it should have done that yesterday at five pm >_>
 
...
 
8:23 PM
Anyone on?
No?
D:
 
I am
though I'm a little busy
Busy figuring out why my computer keeps returning August as the month :')
(I think it's time for bed soon :') )
 
XD
 
Could someone help me with the console?
In Java I would like to have a little ">" when a new line is created
So it would like this...
Let me get pastebin up
 
8:39 PM
Why not just print it? O.o
 
If I did It would look like this
 
String awesomeCommand = 'AWESOME COMMAND!';
System.out.println(">" + awesomeCommand);
 
No
I mean I have ">" and "AWESOMECOMMAND" is what the user typed
 
system.out.print();
 
Would println(); override that?
 
8:42 PM
No
 
Thats the problem
 
Because println(inserts a new row after it)
 
I want it so if a new message comes up before the user types something the ">" moves down with it
 
Hmm
 
8:57 PM
I believe the console object does have a thing for that but I haven't used it in so long >_<
 
9:09 PM
hey guys!
quick question - do you guys work with connection pools?
I just don't want my code to look like the "professional youtuber minecrafters" code when I try new things
but from what I understand connection pool is just a singleton where it can create multiple threads doing the same process
I'm using it for mongodb database and I don't really know where to instantiate it so that the entire connection to the server would only require 1 pool
 
Pretty much
 
do I put it inside of the servlet, and whenever the servlet is instantiated I just create a pool?
 
Mongodb D;
You're in for a treat
 
LOL only using mongo because
all my data is in json format already
and it has like
 
There are better document databases
 
9:11 PM
3-4 layers of object -> object -> object...
so using sql would require too much hassle imo
 
But the main issue is... IMO it's hell to learn on your own
 
you're right about that
to learn mongodb? :o
it seems pretty simple not gonna lie, since there's no schemas/tables/rows/cols etc
 
Oh the theory is easy
The code...
well, I'm using the Node module so it's a little different but... ugh >_>
 
ah I see
why is the code so hard? :o
I guess I'm not putting tons of variation into the db so it might not seem too hard
but all I'm doing is
 
Well, it would have helped if the manual wasn't recursive and lead me into deprecated things
 
9:14 PM
I'm getting the league of legends api json -> turning it into my own schema using java bean -> using gson to serialize it into my own json -> putting the json into the database
oH right I know that feel
DB is deprecated and I got so confsued
 
Java is a lot easier though if you multi-layer your application right
 
multi-layer?
 
A multilayered software architecture is a software architecture that uses many layers for allocating the different responsibilities of a software product. The "Layers" architectural pattern has been described in various publications. The terms "tier" and "layer" are often used interchangeably. Most experts recognize a distinction between the two, where 'tier' is used when representing the physical layout of the various mechanisms in a system's infrastructure, while 'layer' is used when representing the orientation of the different physical or conceptual elements that make up an entire software...
 
you mean like, a business layer -> data analysis layer -> database layer?
 
Something like that
 
9:15 PM
ah icic
I never read into it too much
 
You should
It makes the developing a lot easier
 
I'm going into my first year in college in 2 months and I'm planning to learn that 2nd quarter anyways haha
right - I just have a general gist of it, but I did put everything in layers per se
 
If something deprecates or needs to be changed, it's a lot easier to fix it
 
right - I suppose my layers aren't too apparent though
I just have different java packages
for each layer
but yeah, oops i totally forgot my original question - do you know where to
create the connection pool?
 
9:22 PM
heyyo!
 
ssup?
 
ever worked with connection pools? :D
 
The MongoClient has the pool
 
yea
I want to make sure that I'm not accidentally creating like
50 mongoclients when a user contacts the database 50 times
so it's all a matter of where I put it I guess haha
should you have 1 single mongoclient for everyone accessing the database, or 1 mongoclient for each?
 
I don't know how it works in the Java API.
You can set the default pool size somehow though
 
9:31 PM
yeah
hmmm
I think its pool size autoadjusts
up to a cap
 
Well, I dunno how it works on the Java side. In the node one it makes and maintains the connections you tell it to. I java it might just make a new thread shrugs
 
ah i see i see
coo, thanks! :D I guess I'll experiment with it a bit
@JohnSnow hey john, just 1 more question, sorry to bother
@JohnSnow even though this isn't java related(more mongo related), do you know what the difference between document and DBObject/basicdbobject is?
 
I'm not sure I can make that transition, but I can tell you how it works compared to SQL:
Document - Row
Collection - Table
There are some more things to mongo though to make it easier to search. Like; you can index your documents.
 
ahh
so basicdbobject is the value of a row(document)?
cause I did this so far:
MongoCollection<Document> collection;
collection = db.getCollection( COLLECTION );
BasicDBObject query = new BasicDBObject(); //later filled up with stuff
collection.insertOne(query);
and it's giving me an error
saying that document =/= basicdbobject, and that the generic prevents me from putting in basicdbobject
this is super confusing since all the online examples show that you CAN indeed put a dbobject into a collection by saying collection.insertOne(DBObject) but since it's
deprecated I am like, super lost right now
 
9:55 PM
Well.. a standard thing to keep in mind is that a Type of an object is unique. Never has the same object two object types. There's Inheritance where object b extends a, but a isn't b and b isn't a. B is an extension (new object) built on a.
 
@JohnSnow oh nahh I know that, I was just wondering whether basicdbobject was a parent of document
I figured it out though, this stupid mongodb 3.0.0 release made me confused
so they introduced new things
called MongoDatabase
instead of the old DB
and MongoCollection instead of DBCollection
geez they do the same thing, but just in completely different class names
so I was trying my best to use the updated version but due to their terrible documentation and lack of users using the new version, I'm going to use the deprecated version to go along my project
which is working now!
 
10:10 PM
good db pooling
 

« first day (1743 days earlier)      last day (3192 days later) »