« first day (1770 days earlier)      last day (3164 days later) » 

4:09 AM
Morning
 
Morning
 
mornin!
well technically it's 9PM here so it's not much of a mornin for me
@JohnSnow hey john, you said you worked with mongo before right?
I'm having a bit of trouble executing this query,
{ "weekDate" : { "$gte" : 20 , "$lte" : 40} , "yearDate" : { "$gte" : 2015 , "$lte" : 2015} , ...blah blah "$or" : [ { "rank" : { "$gt" : 3}} , { "rank" : 3 , "division" : { "$gte" : 4}}]}
 
It's 6am here so it's bordering on night still ;P
 
ahh I see, but it's dawn there ^^
My error code tells me it's the $or that's the problem
but I thought it was normal to put an "$or" down for query?
 
Well, it's still only august so dawn was 2 hours or so ago :P
The or does look malplaced but you're not showing me ALL of the query
 
4:14 AM
well, alright but you're not missin' much
{ "weekDate" : { "$gte" : 20 , "$lte" : 40} , "yearDate" : { "$gte" : 2015 , "$lte" : 2015} , "matchDuration" : { "$gte" : 2 , "$lte" : 3} , "$or" : [ { "rank" : { "$gt" : 3}} , { "rank" : 3 , "division" : { "$gte" : 4}}] , "championId" : 412}
 
Also, what's up with the year date?
 
@OneRaynyDay use Hastebin
 
Why not just do an $exists on that?
 
I'm trying to put a year range, and it might be 2013-2015 instead, who knows
@deadlydragon00 sure, I just thought this query wasn't that long
I'll do that for future chats ^^ thanks
 
The or is malplaced
 
4:16 AM
where should I put the or instead?
 
it's an encapsulation issue
You need to separate query 1 with query 2
 
Oh... so $or has to be by itself in a query?
that's not how it is in the terminal :/
 
{ $or: [ { <expression1> }, { <expression2> }, ... , { <expressionN> } ] }
Example from the manual ^
 
Yeah, but it didn't really say anything else about {$or: ... , another field: 3} situation
Let me try that in the terminal real quick
 
I'm not a mongodb expert, but the $or needs to somehow be placed similar to how you did the year-date range
 
4:19 AM
maybe terminal & mongo from jdbc are not the same
hmm, alright. Thanks, I'll do that and report back with the results ^^
 
Oh, yeah about that, no, there are differences
I haven't used the java extention, but the Node extention has a lot of differences
 
oh... Well there goes my dreams and aspirations
 
Huh?
 
Oh just being overly dramatic haha
 
Well, keep experimenting with the query, that's what I normally do :P
 
4:33 AM
yeah.. I tried separating $or by itself
did not work
@JohnSnow I'm using BasicDBObject instead of Document for queries, is that okay?
 
it should be something like db.collection.find()
 
yeah that's what I'm doing
 
As I said, I don't know what the Java version looks like
 
oh right, you use node.js for this right?
 
Yup
 
4:36 AM
Ahh, mkay I'll try and just use a querybuilder then
 
sounds like a good idea
 
4:52 AM
What... Even querybuilder failed
 
Hmm
 
Oh derp
@JohnSnow I am the biggest idiot humankind has ever created
In my query function I do an automatic index creation, and you can't have $or's in index creations LOL
 
Pfft
Well, glad you figured that out :P
 
5:08 AM
haha yeah, thanks man!
 
I didn't do much :P
 
it's always nice to have someone by my side when I'm slowly dying ^^
 
5:23 AM
well, that I could do :P
 
haha, I actually really appreciate it though, you have no idea
 
Well, I'm happy you're happy
 
 
1 hour later…
6:26 AM
Anyone with gradle experience?
 
sorry
Mr. F hasn't woken up yet it seems
I just spent 10min lagging through all the fields in kibana and now I forgot what I was looking for...
 
7:17 AM
wow... and another mod flag
Nothing like dishing out some flags in the morning
Oh cool and the main account is deleted already :D
 
7:35 AM
morn
 
8:04 AM
I feel like I need this in my bookmarks: needsmoredetails.com
 
8:31 AM
Wait, who put mod flags?
@OneRaynyDay Pity it's horriblly ugly. It could use more design :P
 
@JohnSnow true that. but it gets to the point well enough haha
 
hi guys
sombody here knows some jsf?
 
@JohnSnow me..
@uniking me. a little..
 
Morning
 
@JohnSnow do you know how to make a if else i'm very new with it
i tried something like this:<c:if test="sessionScope.user.username=='asdf'">
<ui:insert name="header">
<ui:include src="menu.xhtml" />
</ui:insert>
</c:if>
but it wont work
 
8:43 AM
@uniking Why are you pinging me when Vogel said he knows a little?
I know nothing...
2
 
soory
@Vogel612
 
@uniking the test needs to be an EL expression
-> <c:if test="${ ... }" >
since plain strings only resolve to true if they are exactly "true"
and what you have there isn't evaluated before it's Coerced to a boolean to check the condition
 
@Vogel612 could you make a small example i want to check if a user exists in a session
 
@Vogel612 This sounds like something PHP would do :D
 
@wonder
 
8:50 AM
/javadoc Boolean#parseBoolean(java.lang.String)
 
I couldn't find a signature with that parameter. Did you mean this one? (type the number)
1. java.lang.Boolean#parseBoolean(String)
 
1
 
@Vogel612 boolean parseBoolean(String s): Parses the string argument as a boolean. The boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string "true". (1/3)
 
@wonderb0lt ^
@uniking please don't ping people randomly...
@uniking that seems to be a very dumb idea to me.
you shouldn't check for a certain user, but for permissions
anyways, what you have there seems about right
 
@Vogel612 oke thx for your help
 
8:54 AM
Morning
 
good morning :)
 
hey
 
morning
 
9:17 AM
heya!
 
Friday! And it's Bank Holiday on Monday! ᕕ( ᐛ )ᕗ
 
hehe that emoticon XD
 
@Tavo You lucky man
 
bbq in the garden \o/
need to take advantage. My future home (fingers crossed) only has a balcony
 
mhmh
future home
 
9:31 AM
Brits allow you to bbq on the balcony?
 
the house I'm buying
@JohnSnow I'm not sure it's regulated. Need to ask
 
I imagine them to be even more anal about it than us, and we don't allow bbq:ing
well, electric grills are ok
 
it's funny. Almost 5 years ago I came to the UK without a job, a flat or expectations. Today I'm buying a 3-bed flat 20 mins away from the city centre (by tube, of course)
@JohnSnow you'll be surprised of many things that are not strict at all in the UK
 
Well, either way, you had better make sure the bbq:ing on the balcony is ok ;P
 
Morning folks.
 
9:34 AM
there's a very old law that says a pedestrian can cross the road at any point
yeah, need to check that
 
Here in Norway you (the driver) are in fault if you hit a pedestrian :o
 
Do I need to enable something fancy in eclipse for it to allow me to build hashtables? I am seriously confused atm.
It's throwing errors on both hashtable name = new hashtable() and hashtable<string, string> name = new hashtable<string,string>()
 
turns out it's legal to bbq in your balcony in the UK
 
/javadoc Hashtable
 
9:40 AM
@wonderb0lt java.util.Hashtable: This class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value. (1/13)
 
notice the capital H.
Just press Ctrl+Space at the end and select the entry in java.util
This should set up an import
 
I have imported it, but eclipse tells me there are syntax errors...
{
// Supported content type on the server
Hashtable<String, String> allowed = new Hashtable<String, String>();

allowed.put("Google", "Donald");
allowed.put("Roger", "Duck");
}
 
@Vogel612 Get ready for a kick.
 
@IndentationFaulter "There are syntax errors" is one of the most useless statements you can use to describe syntax errors
 
fge
9:59 AM
@IndentationFaulter a Hashtable in 2015?
 
 
1 hour later…
11:00 AM
@fge It implements Map and is not deprecated so it got that going for it
 
o/
 
11:26 AM
Hello Java
Is the Oracle Java prep book good for learning java concepts for the first time? Or it's mostly for those who already knew the concepts?
 
Java voice hello
 
Talking about this book specifically
 
i cant tell you
 
i think it might be too advanced
i have a pretty good one
but i gue sit was only released in germany
 
11:30 AM
Ah
I'm looking for something that has concurrency well explained
And Java Fork Join framework in Java7
 
i see
well then the one i wa stalking about wouldnt have helped you much anyway
;)
 
11:42 AM
I guess :)
 
11:55 AM
A Note about Java EE Live by Adam Bien
 
12:35 PM
 
this gif again
 
its worth a laugh to me everyday
:D
 
@wonderb0lt people've been told off for less :P
 
12:55 PM
is there a category in Anime&Manga for recommendations?
can't seem to find a suitable tag
 
Closed as "primarily opinion-based"
 
mmmmmm
true, but I'm sure there are some that are "objectively good"
or maybe a "popular" category
popular is not really opinion based
 
@Tavo Yeah I recommend anything with the tentacle tag
:D
 
@DumbKnee so not surprised... :P
 
hehehe
 
1:02 PM
boh, I was looking for recommendations again
can't find anything I like lately
 
I started watching the anime sky wizards academy last night lol it's not bad
super sexualized though which was weird
But I'm starting to find that a common theme
Animes are either dark or sexualized
 
@DumbKnee and once again, not surprised :P
 
No real inbetween anymore
 
@DumbKnee or both
 
Yeah true
I finished watching 'attack on titan' it was pretty good
but had annoying moments as well
 
1:04 PM
nah, there's plenty of good anime out there which has nothing to do with darkness or sex
but it's hard to find
too many shows that are exactly the same
 
Oh yeah for sure
My top three animes are by the same guy lol he's easily the best producer of anime shows
Cowboy Bebop, Trigun, Samurai Champloo
IF you haven't seen any of those, watch them immediately
But I remember you saying you've seen bebop
Another really good one is 'Sword Art Online'
 
@DumbKnee wat.
Bebop .. I couldn't get into the story
Trigun .. Awesome
Samurai Champloo .. a nice light anime
SAO is .. okay-ish
 
@Vogel612 Bebop took me two tries
 
the story is very standard, basically it's lightweight clean art is the best point (at least in the SAO arc)
the Alfheim Online arc is a little more interesting
but Kirito is waaayyy too OP in the 2nd arc
 
calls the off-topic police
 
1:12 PM
Yeah which is why I can relate to him..
Because I'm just the best at everything I do </boast>
lol xP joking
 
@DumbKnee You haven't seen Panty, Stocking and Garterbelt then
 
I liked SAO because I convinced my last girlfriend to watch it with me, and we both enjoyed it
 
and yes, that is a legit anime
 
I'll write it down and check it out
 
1:25 PM
@LeeJeong Sorry Lee I was sick for the past two days!! Hope you had a good birthday my man
 
 
2 hours later…
@JudeNiroshan blocked in germany
used to not b
old song
 
hmm.. yeap; just stretching my fingers after some coding
BTW; Good Evening Java!
 
3:54 PM
Evening
 
 
2 hours later…
5:30 PM
http://www.commitstrip.com/en/2015/08/28/murphys-take-on-moores-law/
CommitStrip - Blog relating the daily life of web agencies developers
Murphy’s take on Moore’s Law
CommitStrip
1440782981
 
 
3 hours later…
8:15 PM
I just sneezed my jaw out of it's place Q_Q
 
Either of you know SQL well?
 
Squirrel?
:P
 
8:32 PM
@DumbKnee #define well
 
Well enough to know queries and techniques beyond the scope of a beginner I suppose lol
 
then yes
 
I have a question and I have a feeling the answer is going to be something that I'm thinking is more complex than it is lol.. I just performed so many pivots and unpivots and now I have this
I have a question... lets say I have a table:
identifier   bitOn   bitOff

AAS          Null      Failed
AAS          Failed     Null
Is there anyway to combine these two rows, such that it is left with one row:
AAS    Failed    Failed
I believe it might just be a group by statement <_< lol now that I think about it
 
nope, you'd need an aggregate then
 
Yeah I figured it wouldn't just simple be a group by
 
8:35 PM
you can't just group by identifier without specifying how you handle the multiple results for bitOn and bitOff
 
That's what I figured, and also where I'm stuck
There is around 30k of these duplicated identifiers so I can't just manually do it
 
8:48 PM
ah
select identifier, min(bitOn), min(bitOff) from table group by identifier
did the trick
 
 
2 hours later…
11:02 PM
Heya everybody!
Hows it going?
I have a quick question and wanted to know if you reckon doing my own check to see if a user is in a column is better done using java by getting the entity from hibernate
or perform a namedquery sql type statement where it performs a check like
select * from table where user = ? and otheruser = ?
or by doing like Collection<table> users = ent.getTables() and do the check on the collection by using some loop
or search algorithm
 
11:44 PM
 

« first day (1770 days earlier)      last day (3164 days later) »