« first day (1774 days earlier)      last day (3160 days later) » 
05:00 - 19:0019:00 - 22:00

5:10 AM
 
Hey everyone
3Stack Overflow
Q: implementing class adapter pattern in java
markjason72while reading up on Adapter pattern in Head first design patterns ,I came across this sentence 'class adapter...because you need multiple inheritance to implement it,which is not possible in java' Just to experiment ,I tried interface MyNeededInterface{ public void operationOne(MyNeededInt...

java class design-patterns adapter
Look at this question
What I want to ask is can we pass the black duck
to duck catcher's method catch
3
Q: implementing class adapter pattern in java

markjason72while reading up on Adapter pattern in Head first design patterns ,I came across this sentence 'class adapter...because you need multiple inheritance to implement it,which is not possible in java' Just to experiment ,I tried interface MyNeededInterface{ public void operationOne(MyNeededInt...

 
5:54 AM
This room needs to charge up :D
 
zzz
 
stop slacking around :P
 
6:53 AM
Can any one help me with classLoader?
 
shoot
 
7:25 AM
morn
 
Ohayo
 
hi all
 
7:43 AM
3
Q: implementing class adapter pattern in java

markjason72while reading up on Adapter pattern in Head first design patterns ,I came across this sentence 'class adapter...because you need multiple inheritance to implement it,which is not possible in java' Just to experiment ,I tried interface MyNeededInterface{ public void operationOne(MyNeededInt...

can you see kevin's answer
What I want to ask is can we pass the black duck
to duck catcher's method catch
if so how?
typecasting?
 
8:03 AM
@Identity1 Duck turkeyDuck = new TurkeyAdapter (yourTurkeyObject);
Anybody work with hl7?
lol, it's looking fucking impossible
I have dto object, and I need make hl7 messages object from my object
 
8:50 AM
Hi all
 
hi
 
9:05 AM
14 more days. morning.
 
morn @wonderb0lt
how's your flathunt going?
 
@Tavo Starting from zero
 
:/
good luck
something good will come up ^_^
 
Yup, just today stumbled over something that looks nice in a place I like
probably won't ever get a reply 5eva but such is life
But whatever I look at I won't tell them about my new job starting in a month :P
This was an error, I'm just too honest of a person but I need to lie by omission if I ever want to get a nice flat
 
yep. Not sure how it works in Germany, but here you need to be out of probation period to rent/buy a flat
and the average duration of a perm job is less than 2 years in IT
so...
 
9:26 AM
I don't think there's restrictions on this in Germany. Our renting rights is very rentee-friendly
 
the moment youStartToRunOutOfSynonyms.soMembersGetVeryLongNames.problem()
 
@paul23 just use nonsensical names like strstr
 
Especially with constructors I seem to have this.
(Calling one constructor from another, so the default arguments need to be encapsulated into static methods etc etc)
 
@wonderb0lt that's good. In the UK the tenant is practically helpless
 
Strangely I didn't run into these problems in C++ (Or well once I ran into them I always noticed that the code could be reduced a lot by using templates etc). But in java even in very small trial applications that I'm creating now I notice them.
 
9:31 AM
it's the landlord that has all the rights and very little obligations
 
Don't you have public housing then? - For when your income is less than modal?
 
@paul23 yeah, but it's a complicated topic here in the UK. The public housing system was massively privatised by Thatcher. Too late they realised that it was a bad idea. Now people are paying for that. Also, benefits are being cut enormously
plenty of people suffering the consequences of 5 years of conservative government with another 5 years ahead of us. I'll be leaving the UK soon I think/hope
 
Vote differently then lol
 
@Tavo Well they have to give you 3 months notice before they kick you out and they can only realistically kick you out if they need the flat for themselves/their relatives
(unless you royally fuck up of course)
 
3 months is a short time, I'm happy I am given at least 9 months. Can at least make a child in that time.
 
9:39 AM
3 months is better than "Yeah you're leaving end of this month"
 
@wonderb0lt that's how it works here roughly
although they have to give you notice two months in advance. One if they want to move in
 
I hope they have to make sure you do have a roof above your head when leaving?
 
nope
it's your problem
 
Lol so easy to prevent lots of homeless people by a simple law that enforces above. Seems like an easy way to win a few votes ("I'm going to solve the homeless problem, and this is my plan")
 
you don't win votes doing that in this country
 
9:46 AM
No one cares?
 
nope
it's actually not a real problem. You need to move out quickly, you find another home quickly. Might not be your dream home, but it's a roof over your head. There are much bigger problems in the UK than having to find a new apartment in a rush
 
Ils sont fous c'est Anglais!
 
bien sur
but I still don't see that as a real problem
 
Well what if you get fired, and then suddenly thrown out of your house?
Not unrealistic given every keeps getting fired nowadays
 
if you don't have a job, you can claim benefits. There are people that will accept tenants in benefits
not all of them do
most don't
 
9:50 AM
Public housing (here at least) has a waiting list of at least 4 years.
 
now that is a real problem
 
@Tavo Well you know - there's simply not enough space. And it works fine as long as everyone is just a bit relaxed and doesn't throw out people constantly, but give a few years headsup.
Actually the waiting list is 9 years on average.
 
10:42 AM
Morning
 
Morning!
 
11:02 AM
Hey you guys
 
11:22 AM
@Unihedron hey
 
Morning Humans
 
hi
 
I want an energy drink >_>
 
11:40 AM
@JohnSnow Drink water + eat a fruit
 
or multiple hectoliters of coffee
 
or take a shower
 
@MadaraUchiha I've been doing that already >_>
I'm waiting for a script to run
 
Did they change the font of the moderator flagging dialog's textbox?
Morning btw.
 
Afternoon
 
11:45 AM
Afternoon!
@SilentKiller hi
 
Afternoon
Minecraft is on top 3
 
LOL, seriously?
 
Yesterday our new teacher asked us how often we use the debugger.
Me: All the time!
Everyone: Never!
 
yeah :3
 
@JohnSnow Cool :D
wc @SilentKiller
 
11:49 AM
hey @SilentKiller
 
in Smart Developers' Lab, 15 mins ago, by SilentKiller
whenever i try to open any project it shows blank window.
its happens in studio @Unihedron
thanks @ItachiUchiha
@deadlydragon00 hola
 
cool cool
 
like if i try to open a project via File Menu -> Open and a new pop up come with blank window.
 
@deadlydragon00 all ten of those listed items are crappy
 
its shows home directory for a sec and went of
 
11:51 AM
@ItachiUchiha The teacher was horrified with the answer
 
@SilentKiller check if the SDKs are defined
@JohnSnow why?
 
@Unihedron :P
 
I wish most of SO had gotten his lecture on how to find out what's wrong before you ask for help
;P
 
@ItachiUchiha yes it is there
 
@ItachiUchiha A whole classroom of developers, of which only one uses the debugger
 
11:52 AM
if i go with new project its working hell fine
 
@JohnSnow Ahh, I can understand his/her shock :P
 
@JohnSnow hahaha, I know that feeling
practically it happened to my class as well, and the teacher wasn't the only one astonished, I was too
 
!!tell 25435150 xkcd compiling
 
@Unihedron to be honest, I didn't expect that answer either :P I thought most would know how to debug at least :P
 
in Smart Developers' Lab, 38 secs ago, by SilentKiller
"Do not call synchronous refresh under read lock (except from EDT) - this will cause a deadlock if there are any events to fire." Error Log
@ItachiUchiha this is what error log says
 
11:59 AM
Yo
 
Yo
 
hey, americans, who work with hl7?
I sit during second day with this abbreviations such as XON, SI, IS and have no idea how to search something there
nobody do it?
ADT_A01 adt_a01 = new ADT_A01();
PD1 pd1 = adt_a01.getPD1();
XON xon = pd1.getPatientPrimaryFacility(0);
ST st = xon.getOrganizationName();
 
looks beautiful
 
yea
 
I always try to stick my PD1 into XONs where it doesn't belong
 
12:10 PM
many thanks
 
I tried casting to XAUGHTER but that didn't help
XAUGHTER or XLAUGHTER, can't remember
 
It's LAUGHER or SLAUGHER... :P
 
slaughter
 
Thank goodness for git
 
Laughterhouse 5
 
12:13 PM
The Dark Knight
 
@JohnSnow Agreed. Can't wait to use it again
 
You can't spell slaughter without laughter!
@wonderb0lt my boss appended to my app, and it broke >_>'
But I could just checkout a previous working version :D
 
You can't spell dishonorable without honorable
@JohnSnow You can do that with SVN too! :O
 
Most VMS I suppose can do that
 
so yay to version control systems
 
12:17 PM
yup :)
starring at script while it runs
 
documenting JSDoc because literally no one else bothers to
 
JSDoc?
 
@wonderb0lt meh, just look at gcc docs
 
@JohnSnow usejsdoc.org
What I meant to say was "document using JSDoc"
 
...
who on earth even documents with JSDoc, just write comments
 
12:23 PM
@Unihedron why not both?
 
cuz it's redundant and without an IDE, looks like dialects
I'd forsee only projects with coding standards would require them
 
So it's a great idea for Java but sucks for JS?
 
javadocs wasn't really "a great idea"
 
It's nice to tell people what arguments a callback function receives and stuff like that. Especially if they're bad at reading comprehension to begin with.
 
it's hard to call framesets with unshareable URLs "good" in 2015 source
@wonderb0lt welcome to the world of dynamic typed programming
 
12:28 PM
Meh, I think it has merit. Good thing you're not the one paying me to do it :)
 
o/
 
hi
 
hi
 
Hey Hans
 
hi @Joe'sMorgue
 
12:39 PM
'sup?
 
not much
gto some health issues besides that everything snormal ;)
 
Sorry to hear
 
and you
everythings fine?
 
Still waking up...THINK so, so far...
 
evrythings fine when you wake up
then reality kicks in...
sleep and dreams are one of the best parts of life :)
 
12:52 PM
Yeah...
 
1:05 PM
@wonderb0lt I use the google standard
because something I suppose.
Also, even though my boss broke the entire app with his new code, I get a lot of practice reading undocumented code I don't even know what it's supposed to do
 
Fun!
 
It's a puzzle! :D
 
Puzzled to what it's supposed to do?
 
1:23 PM
And how to solve how it's gonna be put together
 
1:36 PM
oh lol, I just realized opengl ES uses degrees when making transformation matrices.
Which fool thought about that...
 
dunno
 
2:10 PM
@wonderb0lt lmao good old hectolitres of coffee
@JohnSnow Maybe your classmates are so good at coding they never have errors/bugs and need not debug! kekeke nat xP
 
Yeah right, and I'm the kind of all faries
:P
 
hehe <:3
 
@JohnSnow it's called "callback hell" for a reason..
 
I've been listening to final fantasy OSTs lately. How does Nobuo Uematsu do it
Guy is a bloody genius
 
I'm kinda sorry to have to call you again Jon :(
 
2:14 PM
Who's Jon?
 
btw. can I have some feedback from mod-flagging people on this:
15
Q: Can we get a Flag-History for chat's moderator attention flags?

Vogel612's ShadowI checked my Chat-Profile to see whether I can find something similar to the main-site flag-history for chat-flags, but didn't find anything. I recently had the (dis)pleasure of regularly having to deal with a user, that has been deleted multiple times. Whenever they show up (with the same nick-...

 
A moderator.
@Vogel612 meh, chat needs more love in general
a lot of features are lacking
 
It's got flair, you know?
 
no api, no logs, no endpoints
@Vogel612 nope, flairs only for main site
 
@OneRaynyDay It must be in my "other messages" ! I'll see if I can find it budday
 
2:17 PM
@Unihedron flair as in "atmosphere"
 
...
.........
 
@Vogel612 Well that's actually not a problem here
 
if you say so
 
2:33 PM
I like atmosphere of this room, only think that name 'Java<>' may disappoint somebody.
 
2 messages moved to bin
wrong room. try somewhere else. goodbye.
 
:25439061 I don't see any java in this room
 
@degr you're blind
anyway
 
lol
 
2:34 PM
much better
 
room topic changed to Java and Scala (Fish and Chips): Room dedicated to the Java programming language. And no, 𝗔𝗻𝗱𝗿𝗼𝗶𝗱 𝗶𝘀 𝗡𝗢𝗧 𝗝𝗮𝘃𝗮 (does not use the Java VM; runtime environment and base SDKs differ; et cetera) [fun] [java] [jvm] [no-copyright-infringement] [serious-business] [type-erasure]
 
Serious business?
 
Yes, serious business.
 
We do Scala here now?
 
think tomorrow it will be difficult to find room
 
2:35 PM
@JohnSnow No.
 
Java<Scala> no way
 
Then why is the room called Java AND Scala?
 
> Room dedicated to the Java programming language
 
@Unihedron do you compare java with fish, and scala with chips?
 
Let's edit that too while we're at it
 
user406009
2:37 PM
@Unihedron You're not going to add Clojure to the list while you are at it?
 
I really like me some trout
 
@JohnSnow Can't be more off-topic than it already is.
 
Salmon is pretty good too
 
room topic changed to Java and Scala (><> and Clojure): Room dedicated to the Java programming language. And no, 𝗔𝗻𝗱𝗿𝗼𝗶𝗱 𝗶𝘀 𝗡𝗢𝗧 𝗝𝗮𝘃𝗮 (does not use the Java VM; runtime environment and base SDKs differ; et cetera) [fun] [java] [jvm] [no-copyright-infringement] [serious-business] [type-erasure]
 
2:38 PM
Let's talk about that snapper though
 
Java and Scala :O
I think its @uni love for the newly discovered language!
 
room topic changed to Java and _seed (><> and Clojure): Room dedicated to the Java programming language. And no, 𝗔𝗻𝗱𝗿𝗼𝗶𝗱 𝗶𝘀 𝗡𝗢𝗧 𝗝𝗮𝘃𝗮 (does not use the Java VM; runtime environment and base SDKs differ; et cetera) [fun] [java] [jvm] [no-copyright-infringement] [serious-business] [type-erasure]
best language ever
room topic changed to Java><>: Room dedicated to the Java programming language. And no, 𝗔𝗻𝗱𝗿𝗼𝗶𝗱 𝗶𝘀 𝗡𝗢𝗧 𝗝𝗮𝘃𝗮 (does not use the Java VM; runtime environment and base SDKs differ; et cetera) [fun] [java] [jvm] [no-copyright-infringement] [serious-business] [type-erasure]
ok I'll stop now.
 
fish look good
 
sure does, was once my favourite language
 
"Dat Tuna Doe" - Albert Einstein
 
2:53 PM
Aug 3 at 9:18, by Unihedron
@Vogel612 "90% of internet quotes are falsely attributed." - Unihedron
 
brb. groceries
 
"The world is awesome, everything is cool, and best of all - nobody is dumb!" - Unihedron
 
Get me some!
 
@DumbKnee - Unihedron in an alternate dimension
 
:D
 
3:04 PM
bb
 
3:15 PM
bye
 
4:06 PM
I've really been running down nostalgia lane lately lol ^^ been listening to too many old game OSTs and also OC remixes of them
If you've never checked out overclocked remix you gotta! If your a fan of video game music that is : ocremix.org
 
Lol I still want to get my old game working :P
Lemmings and "metal fatigue" were the games!
 
studying JSF
 
Joint Strike fighter?
Amazing!
 
Or JavaServerFaces. Same shit
 
@DumbKnee hah. I'm replaying Wing Commander Privateer 2
tell me about it :P
 
4:17 PM
Ahhhh such classic games!
Also I realize I've bugged you continuously about this @Tavo but you didn't respond so: WATCH SPACE DANDY !
 
yeah, I saw the text. Forgot to reply
sorry dude
but 12:30 is a bit late. Was already asleep
 
Yeah I figured! my bad haha :D
Forgot the time difference before I hit send then was like aaaahh yah
 
I was a normal person once, then I took a dumb to the knee
 
It happens to literally the best of us doesn't it?
heuheuheu
 
4:39 PM
Anyone here that can offer me quick help about the JNI?
 
Is there a way to time ScheduledExecutorService so that it shuts down after X units of time??
 
guys, what is your preferred library for making GET, POST requests
 
library?
 
yes, instead of HTTPURL class
 
stares att my JSF
 
4:42 PM
I'm not fluent with Java at all but I imagine that to be included in the SDK. Isn't it?
 
No ..
We can build later .. though
@ I mean in normal Java SE
@JohnSnow
 
Someone has KFC in the office and it smells so good >_>
 
@DumbKnee dirty chicken is so much better ^_^
and by dirty chicken I mean the cheap copies you can grab in any chicken shack
 
5:10 PM
@Tavo omg super greasy it makes you fat
 
private DblyLinkList<Entry>[] defTable; but this does not compile.. defTable = new DblyLinkList<Entry>[(int)sizeEstimate];
Error is: Cannot create a generic array of DblyLinkList<Entry>
 
congrats, generics screwed you over
may as well buy lottery, that's rare
 
why can't I create an array of DblyLinkList<Entry>?
 
Why can't I make a car out of a carrot?
 
58
A: Cannot create an array of LinkedLists in Java...?

SergeyYou can't use generic array creation. It's a flaw/ feature of java generics. The ways without warnings are: Using List of Lists instead of Array of Lists: List< List<IntegerNode>> nodeLists = new LinkedList< List< IntegerNode >>(); Declaring the special class for Array of Lists: class Int...

car out of a carrot?
 
5:29 PM
Why can't I turn my carrot into a carpet?
 
5:49 PM
Excellent question
 
@Tavo Hmm, I think I know what you mean. I haven't gotten KFC in a long time, but it smells so good!
 
6:00 PM
I find many many examples on how to query a ElementCollection from DB using JPA which are using List<String> and "like" operation. I am trying to store List<Long> in my Entity. Any pointers to how to tackle Long with ElementCollection will be highly appreciated.
 
What specifically do you want to know
You're trying to query to an elementcollection of Long using the 'like' keyword?
 
Yes. But, like won't work with Long
So, not sure how to fetch list of entities where an entity has a given Long number in its lisst of Long
 
Why would you need to use like?
Are you using hibernate?
 
No. I don't. But, for this problem of querying entities based on a value in collection member inside entity, examples are using String and like operation. So, I'm searching what operation to use for querying when the collection is Long (not String).
Yes, I'm using Hibernate.
 
ahh okay
something like this:
Query q2 = sess.createQuery("from Tag as tag where tag.tagType = :fault_code");
q2.setParameter("fault_code", Tag.getTagType());
too lazy to clean up to generalize that
You can see how that works though right?
 
6:09 PM
Yeah
I have use HQL basically, Am i right ?
*have to
 
Unless you want criteria, which is also possible I think
 
If possible, can you also give Criteria variant..
I'm not sure which one works best for my case.. so, will try both and pick one.
 
Okay, I'm trying to find a criteria one, most of the criterias I've made just use the Example
I believe you should be able to add a Restriction let me see if I can't find one..
heres one in the criteria docs
List cats = session.createCriteria(Cat.class)
     .add( Restrictions.like("name", "Iz%") )
     .add( Restrictions.gt( "weight", new Float(minWeight) ) )
     .addOrder( Order.asc("age") )
     .list();
If you notice the Restrictions.gt(String propertyname, Object propertyValue) part there
 
yes
But, will it act against ElementCollection property ?
 
Restrictions.eq() is also an option
Hmm I'm actually unsure
 
6:16 PM
Ok.
Thanks for your time, bro.
 
Can also try this one
 Restrictions.in( "status", statusArray )
There are a ton of restrictions so maybe see if there is one in there that fits your needs! and your welcome
 
05:00 - 19:0019:00 - 22:00

« first day (1774 days earlier)      last day (3160 days later) »