« first day (892 days earlier)      last day (4071 days later) » 

8:10 AM
Is this really a javascript room??
 
8:23 AM
its actually a cyber chat room xD
 
Does anybody know a good book on multithreading in C#?
 
guys, i have a question, please have a look stackoverflow.com/questions/15632363/…
I am not able to desrialize to List<myObject> from JSON string, however it works when I deserialize to a single object
 
8:42 AM
answered
 
9:19 AM
@Alex how about jon skeet's c# book ?
 
multithreading? must be "CLR via C#(forth edition)"
 
@Jerry is it a good book ? whats the perspective towards the language ?
@BeginnerCoder ? @chukwuemeka ?
 
@codebrain it introduces CLR towards the C# language. Do you mean it has no Language Details? I think it can help to write correct multi-threading code in depth, of course in C#.
 
Yep :) thanks
 
@codebrain <CLR via C#> <C# in Depth> both should read times, they're classic. good luck.
 
9:29 AM
sure Jerry. Will do
So, the Devil is here ! @Chukwu Hey man
 
@codebrain , hey, what's goood?
 
whats good ? Everything is good in web except .flv stuff man
 
lol. yep. the devil's here. :D from the burning jungles of Africa!
oMG. you're doing flash now?
what for?
 
flv is great
 
Its actually not burning! its being raped! stolen ?
 
9:33 AM
swf even better
 
@Stefan I am in a flv based task and its dragging me for weeks :(
 
@StefanDenchev I hate writing clsId....and all the other non-sweet stuff :P
 
what does "wrapping" your own class mean?
is that inheritance?
 
@StefanDenchev , means writing some other class that exposes the lower-level features of your class in some (hopefully) friendlier, higher-level way.
 
9:36 AM
@Chuk i have finally make everything work , but the application doesnt seem to run flv videos in IE8 ..
but the video runs in ie8 from local .. when i run through application, it only installs Flash player every time..or loads infinitely ..
 
okay.... let me put it this way: can inheritance be considered "wrapping"?
 
@StefanDenchev , nope.
 
@codebrain dose the browser run you tube vids?
 
@codebrain , Meehn, welcome to the mud pit!
 
@Chukwuemeka then i have no idea how to do it :). Probably just a terminology thing...
 
9:39 AM
hmm i havent check that @Stefen i should try
Pleasure joining you @Chukwu
yes it runs youtube !
 
@codebrain , Every web developer's wish: `The day when all browsers will support html5 as is advertised in the docs and you won't have to beg plugins to comply like a frustrated Borg queen. :(
 
lol , @chuk all browser's latest versions ll support html5 , but my clients using xp sp3, ie 7.0 :( fools
 
@codebrain doesn't say much... except that the flash install should be fine... had similar problems recently actually.
 
9:43 AM
@StefanDenchev , which part are you finding difficult? Wrapping or Inheritance?
 
I already have installed 10 times now, 11.6...180 i still remember the version
 
i get inheritance but i don't get what wrapping means...
 
dont you wrap gifts for your friends ?
@stefan ?
 
@codebrain i do... just not in.. code...
 
@codebrain , Even among the latest browsers, there's still some support landmines to be aware of.
 
9:45 AM
ha ha why do you wrap those gifts ? instead of giving just like that ?
do you wrap a car ? or do you wrap champagne ? why do you wrap gifts ? its to hide the actual gifts from others seeing it ! lol ..same way !
@chukwu There is always a constraint! if everything works everywhere they wont hve business man!
 
@StefanDenchev , Have you ever wondered how those file browser controls pops out file open dialogs?
@codebrain , yea. sighs. Every programmer's nightmare and blessing: The moneybags!
 
@codebrain wrapping has several purposes in my opinion: mystery, appeal etc..
@Chukwuemeka umm.. java? :D
 
@StefanDenchev , nope.
 
@Chukwuemeka should i star this ? you'll get 10 more for this..
 
They call some ugly-looking, unsmiling OS-level, Probably COM function,
 
9:50 AM
they call the api?
yup
so* is an action?
@Chukwuemeka your point being?
 
@StefanDenchev , BINGO! APIs are wrappers.
 
I know that...
i meant it about a class that i created
 
@codebrain, thanks, i'll try
 
just can't get how to apply the idea
or what it means to apply it in that case
i probably am already anywyas..
ways*
 
Welcome
reading more and working out on sample will fetch you some idea on it @Stefan
 
9:54 AM
@codebrain got it working yet?
 
@StefanDenchev , say, you have a C assembly that reads the temperature from some microcontroller who reads it from some sensor and sends some signal to a port whenever the temperature changes.
 
no man its still loadinggg
 
@codebrain loop?
 
i even rest my ie from fix it patch :( still no clue a week back it was working !
@stefan kinda..
 
@codebrain which os are you using
 
9:55 AM
..and you want to have the temperature showing nicely on some label in your winform app.
 
@Chukwuemeka winforms? huh :)... and?
 
xp SP3
 
@StefanDenchev , you want to call the C guy that gets the temperature from the microcontroller, check whether the sensor is plugged in, e.t.c from your winform app written in C#.
 
@codebrain just tell them to use chrome :)... umm now that you mention it... there was some kin of flash mix up on xp... let me try to remember
@Chukwuemeka i know about wrapping c.
 
@steffen yey got it working !
 
9:57 AM
@codebrain : OMG. What we've to deal with! Take heart bro.
 
Someone pinged me at 2:30 in the morning..
 
@codebrain Well Done!
 
lol @Andre Howz you ?
@steffen yep. Thanks mate
 
@StefanDenchev , so, how is it different from wrapping a C# functionality?
..even though you'll rarely need to wrap something that's already wrapped nicely.
 
9:59 AM
@codebrain Good, and you? :)
 
I am good too..
 
Everything in C# is nicely wrapped by default. You'll only want to wrap it further for say, Latin or ` Spanish` to extract more sweetness out of it.
 
viewmModel generally wraps an existing model class
 
@codebrain , Now is the time to call your GF and take an afternoon break.
@StefanDenchev , True. But not for the purpose of making it tastier.
 
@codebrainc no way! just war yourself to death!
 
10:02 AM
My gf ? You mean i should brake having fun or break my teeth ?
 
work** what is war???!?!
 
ROfL
 
@Chukwuemeka that's what i don't get...
 
having a gf is war!
 
10:04 AM
Wrapper Classes are the classes that wrap up the primitive values in to a class that offer utility method to access it . For eg you can store list of int values in a vector class and access the class. Also the methods are static and hence you can use them without creating an instance . The values are immutable
 
@StefanDenchev , It's for the purpose of decoupling your view from your datasource.
 
i get the purpose of a viewmodel. but why not just... use the class. why wrap it?
 
@codebrain , I can't put it in a better way than that. Thanks. RIP wrapping dilemma.
 
got it :)
 
lol
guys sometime stay away from work ! and relieve stress , this is a club room !
 
10:07 AM
@codebrain ,^
 
what does that mean ?
@stefan its seems you're new here..tell us about you !
 
it means (to me.) : I support the above
 
ha ha yeah !
LOL !@stefan
 
hi guys :)
 
10:11 AM
@codebrain tell what?
 
That definition matches what i have said too !
tell something to identify you !
german ?
 
umm like my name ?
 
@libjup hi
 
what am I doing wrong?!
if (!jsonObject["blacklist"].Equals(null))
                isOnBlackList = (bool)jsonObject["blacklist"];
            else
                isOnBlackList = true;
compiler gives me an error in the second line
...
 
thats why i dont say hi to new comers , they pop up with a question :D
 
10:12 AM
but it should not go there, cause the object is null
@codebrain any other reason to be here ?
 
*no offense
you guys are pretty nice every time :))
 
Hi @libjup. ..and they keep saying my name's weird!
 
@libjup none!!! we're just dumb
 
@libjup you're asking yourself or me !?
 
10:13 AM
replied to you with a rhetoric question (:
 
whatever i wasnt serious too..i was looking at your question mate ! I added a smiley and you couldnt interpret it!
 
anyways :)) any idea why the compiler tells me that if jsonObject["blacklist"] is not null?
haha @codebrain I didn't take it as being rude to me :)
 
umm what type is jsonobject["blacklist]?
 
JObject
 
and you cast it as bool?
 
10:15 AM
if I really have to I could work with try catch... but I don't think that's nice...
yes
 
castint it causing issue ?
 
yes; cause it is null
 
it's not!
 
but since it is null ... it shouldn't have gone into the second line in the first place
 
if (!jsonObject["blacklist"].Equals(null))
isOnBlackList = (bool)jsonObject["blacklist"];
 
10:16 AM
?
 
no :S
if it's not null it should cast
 
so your if statement doesn't work properly?
 
@libjup you're checking if its not null ^ not if its null !
 
yes
if it's not null it can cast
 
10:17 AM
yes.. so?
 
otherwise it has fixed value of isOnBlackList = true;
 
got it.. and what is the error?
 
I don't get it... casting is causing the problem since it is null... but one line before I said "only go there, if you are not null!"
"Can not convert Null to Boolean."
*Argument Exception
 
doesn't make sence...
should work just fine
 
yes; I don't get it either...
I might post on SO :-)
 
10:20 AM
can't you use ==?
 
didn't work either...
 
wierd.. try closing the if statement with {}
 
@libjup , try this: if(!!jsonObject["blacklist"])
javascript has some truth check quirks.
 
surround whatever
 
9
Q: javascript check for not null

riaBelow is a code snippet, where we retrieve a form value. Before further processing check if the value is not null.. //-- code snippet starts here var val = document.FileList.hiddenInfo.value; alert("val is "+val); //-- this prints null which is as expected if(null!= val) { alert("value is "...

 
10:21 AM
whaaaaaaaaaaaaaaaaaat
amazing!!!
 
@Chukwuemeka i thought that was c# code?
:)
 
yes it is @StefanDenchev !
i'm dazzled
 
@libjup what is amazing?
 
You're getting some weird suggestions there.
 
no compiler error ?!
 
10:22 AM
@StefanDenchev , oops!
 
huh?
 
isOnBlackList = jsonObject["blacklist"] != null && (bool) jsonObject["blacklist"];
 
"!!" is double negating ?
 
@RoelvanUden lol :)
 
so "!!" is the same as ""
?
 
10:23 AM
@RoelvanUden you're late today!
 
@codebrain Sowwy :3
 
lol
 
@libjup so what worked?
 
one sec, still testing
can't believe it's working (with double !!)
 
Sacred Silence
 
10:24 AM
* double "!"
 
I didn't even think that compiled, we can't use ! for anything other than bool, can we?
 
na
not working
 
@libjup WHAT?!?
 
@libjup , I posted that but I'll be damned if it works in C#.
 
@Chukwuemeka 's solution
with the double "!"
 
10:26 AM
keep it cool ppl ! hope the working answer helps
!now tata
the monk goes back to china !
 
I'll try @RoelvanUden solution with "isOnBlackList = jsonObject["blacklist"] != null && (bool) jsonObject["blacklist"];
"
 
I'll just switch to PHP. (the known bitch is always better.)
 
@Chukwuemeka java ftw
@libjup did you enclose it with {}
 
yes @StefanDenchev
I did it that way now and it works
 
@StefanDenchev , not for me man.
 
10:29 AM
even though it's extremely ugly:
 
@libjup huh.. so it's working now?
 
            try
            {
                onBlackList = (bool)jsonObjeckt["isOnBlackList"];
            }
            catch (ArgumentException)
            {
                onBlackList = true;
            }
 
it works but it's ugly
and I know... someone shouldn't do it that way...
 
10:31 AM
@libjup So check if it is null first?
 
@RoelvanUden , lol
 
@RoelvanUden ROFL
 
^^
 
ha ha
 
is the chat written in js?
 
10:33 AM
@StefanDenchev Browser side, of course. Server-side, it is not.
 
@RoelvanUden why not?
:(
 
@StefanDenchev StackOverflow is a fan of MS technologies. They use full ASP.NET stack.
 
atleast they are :(
 
have to go now - thanks for the chat guys! have a nice day ;-)
 
Hmm... That was quick.
 
10:58 AM
@codebrain could you please use TAB for names? I just got a 'Thanks mate' in my SO notifications and wondered what the fuck happened
until I read the transcript
 
I am sorry.
 
What would you guys call a HTTP exception for regular people..
 
some problem in the tap !
 
That would look weird :P
 
glitch?
 
11:08 AM
for some reason: a violation of the laid out process for handshake and communication just occured.
 
for some reason?
 
yep. exceptions don't always tell you why:
see inner exception for details:
 
i'm hungry...
 
is that a interview question ? @RoelvanUden ?
 
and all that chat is making me unproductive :(
 
11:11 AM
No. I just never know how to "show" an exception to users without them being swamped with stuff they dont know
 
@RoelvanUden just explain it nicely :): "Error!".
 
Rob
Hey guys
 
@RoelvanUden , show them a page with the picture of a crying server. That'd do.
 
@Chukwuemeka that would make the user sad...
better something more optimistic like "Try Again!!!"
 
XTG
hi
 
11:16 AM
Is this good enough for non-technical users then?
 
@StefanDenchev , so it is you! All those messages that tell me to try again only to hit the same error again and get trapped in some infinite loop! :D
 
@Chukwuemeka guilty as charged :). But tell me: isn't it just great when it finally does work? It's like.. you helped too :)
 
@RoelvanUden , Good enough. In line with Stefan's spirit of keeping things non-gloomy`. Replace the bold Error with OOPS!
 
Rob
@RoelvanUden Looks fine, but i would hide the keyboard before trying to send the request :P
 
@RoelvanUden network communication sounds a bit scary, but otherwise it's nice
 
11:20 AM
Alright. I'll go for 'Oops!', hide the keyboard and try to come up with something for 'network communication'
 
@RoelvanUden that's not right... Mangas can be made by non-japanese in other languages as well. it's the style
 
@StefanDenchev , lol. Now, that's too cheery for the situation the application is in. :)
 
@StefanDenchev I disagree. :)
 
@Chukwuemeka precisely - make them think "it's not cancer - just a little pimple"
 
Manga means Mango in Tamil xD
 
11:23 AM
@RoelvanUden educate me then - aren't mangas published in English still mangas?
 
@RoelvanUden That's pretty decent Roel ..Nobody bothers actually,, they ll understand the issue!
 
@StefanDenchev That is correct. The translated manga, however, it not created by the translator and therefore remains manga no matter which language it is in.
 
@StefanDenchev , Thanks to you: now, I'll be scared each time the doctor says: It's just a minor pimple.
 
@codebrain hmm... then the users that go ape and call me in 3 am are just figments of my imagination
@Chukwuemeka doctors don't dev that much...
 
@StefanDenchev , Not over here man.
 
11:27 AM
Thanks for your input people. I settled on "Oops! An error has occurred during the request for the internet resource. Do you wish to try again?"
 
@RoelvanUden so if i make a manga i won't be a manga because i'm not Japanese? Don't you think that's discrimination?
it won't*
 
@StefanDenchev I don't think so, no. You'll be making a comic. :)
 
@RoelvanUden racist :)
 
@StefanDenchev , that's discrimination: Where it should be.
 
@Chukwuemeka huh?
 
Rob
11:28 AM
Little question: I'm implementing paging, should int page be 0 or 1 default?
 
Throw the swords!
 
@StefanDenchev , If you paint yourself black, I can't call you a negro.
 
@StefanDenchev It's the same principle with, for example, Chinese comics. They have their own name, manhua. Or the Korean comics, manwha. I am not aware of more terms to refer to comics from different origins.
 
@StefanDenchev , I'm assuming you're not black like me.
 
@Rob Depends on how you query. I always try to keep things in line with how the user perceives it, so I use page = 1 and do the SQL with (page - 1)
 
11:29 AM
@Chukwuemeka no, sorry
 
Rob
@RoelvanUden Hmmk, thats not very array-ish tho
 
@StefanDenchev , lol, what're you sorry for?
 
@Rob True! You can decide on whatever you want, it doesn't matter all that much. I just shared my view and how I do it, but it doesn't mean that's necessarily the best way.
 
@Chukwuemeka disappointing you?
@Rob user always comes first
client*
 
@StefanDenchev , nope. you didn't disappoint me. I inferred that you're not black from your name and you confirmed that the assumption is correct.
 
11:33 AM
@RoelvanUden to me manga is the style not the origin, i think otherwise it would be quite racist(never would have thought to look at it in the way you are).
@Chukwuemeka bot :)
 
@StefanDenchev It just how most people think about it. You can read the same views I have on almost every manga-related website, and even on wikipedia it is described as such.
 
@StefanDenchev , lol.
 
are comics created in Japan, or by Japanese creators in the Japanese language, conforming to a style developed in Japan in the late 19th century. They have a long, complex pre-history in earlier Japanese art. In Japan, people of all ages read manga. The medium includes works in a broad range of genres: action-adventure, romance, sports and games, historical drama, comedy, science fiction and fantasy, mystery, suspense, detective, horror, sexuality, and business/commerce, among others. Since the 1950s, manga has steadily become a major part of the Japanese publishing industry, repre...
 
I always thought Manga is just a fruit :/
 
@RoelvanUden i already assumed you didn't write that, which makes me even distressed/
this is just horrible
 
11:36 AM
lol. but why is it horrible?
it's the definition of something.
 
@Chukwuemeka because it takes away basic human rights based on origin - that is racism :)
 
Nope. It just a word that defines a particular style of comics done by a particular set of people.
It doesn't mean that other people don't have the right to write in the same style and same language: it just won't be called manga.
 
@Chukwuemeka a particular set of people that is define based on... Wait if i get Japanese citizenship and make comics in manga style would that make them manga?
@Chukwuemeka why not??!?
 
@StefanDenchev , Well, you have to read the spec. deeper to get that answer.
 
it's like saying i can't call myself Indian
and I do have the above right
so should i have the right to call my work manga
 
11:42 AM
@StefanDenchev , Try this: If I give birth to a boy, he's called an African boy. If you give birth to a boy he's called a European boy (Assumption: You're European.)
 
even if it's actually pastry
@Chukwuemeka you're a girl?
 
@StefanDenchev , lol. I'm a man.
 
@Chukwuemeka And you want to give birth... nice
 
@StefanDenchev giving birth here means: causing a girl to give birth.
 
@Chukwuemeka then i'm leaving
 
11:43 AM
:)
lol.
wow. He actually left.
scratches head for the third time Did I say something bad?
 
@Chukwuemeka Not at all. It was fun/.
 
Oh. OK. for a moment I thought I may have implied something someone might be sensitive to without knowing it.
 
Rob
12:02 PM
back
 
12:14 PM
Ok. Now I've seen it all.. There is a column in a table that I work with that is called engEngagement
eng ... Engagement..
eng stands for Engagement..
 
Rob
What's in it :P?
 
 
1 hour later…
1:37 PM
Did @Steve die?
 
I don't really have anything to say, but I'll say something just to get people to talk.
It isn't working, so I'll say something else.
 
i'll say something so you don't feel awkward
 
Thus is the essence of internet messaging.
 
Don't remember this room being so silent since last winter brakes
 
It usually is slow in the mornings steering wheel
By afternoon some good discussions are going windshield
 
1:45 PM
haha, it's evening here
 
oh. it's @Kendall. nice.
 
i'll probably be at home by that time
hey
 
Hey @Samy
 
Accordion to recent surveys, you can insert musical instruments into a sentence without people noticing.
 
i always see your gravatar as a guy firing a turret
 
1:46 PM
It doesn't work as well with car parts, I guess muffler
Ima Dyck
 
I'm getting really tyred of your play with words
 
Everyone thinks Ima Dyck.
 
I'm not going to google that during work hours
@Samy that's one way to look at Angry Keyboard Man
 
Either I fail at making jokes, or you fail at understanding them. I doubt it's not the latter.
 
Keep in mind I'm not US based
so I'm not sure who this Dyck person is
I know what a DYKE is though, being Dutch and all.
 
1:51 PM
I really am a dick, aren't I?
 
as we like to say in Holland: 'self-knowledge decorates the man'
 
grammer nazis are dicks
 
speaking of nazis: I still have to watch Iron Skies!
 
user142019
Ohai.
 
'lo @zoid
 
1:54 PM
Y Not
 
user142019
@SamyS.Rathore You start sentences with a capital letters and you end them with a period.
 
user142019
@ActionHank Do we? Ik heb nooit iemand dat horen zeggen.
 
:okay:
 
Not sure if @Zoidberg is Dutch or just really good with Google Translator -.-
 
user142019
Ik ben Nederlands.
 
user142019
1:56 PM
Google Translate is for pussies.
 
user142019
Even my bio on Stack Overflow says so!
 
It was also a 'Not sure Fry' pun
but nvm
 
user142019
ohlol
 
I like how you promote your tumblr yet it's empty
 

« first day (892 days earlier)      last day (4071 days later) »