« first day (11 days earlier)      last day (4929 days later) » 

12:00 PM
sure, specialist maths is interesting
my other maths subject is math methods
not so interesting :P
 
oh....
 
@RichardJRossIII haha just wait, you'll have to do them one day :P
 
Nah, im homeschooled :)
 
12:01 PM
lol
 
i dont know abt u guys but i hare maths
 
I really should get back to work... this is just too freaking addicting...
math is important for the developer..
 
yeah u r right @richard so shd i
 
some math
 
@RichardJRossIII , i agree with you friend
 
12:03 PM
I doubt anyone really needs to solve integrals by hand
unless they're programming Mathematica
 
lol nah, but its still important to understand..
otherwise how could you solve complex problems with algorithms?
 
I rarely have the need for advanced math
 
precisely :)
 
Thats what google's for
 
and there's some cool physics stuff you can do with maths
 
12:05 PM
[Notification] productiviity levels stable!
 
If my database application requires it (ie. physics simulation), I will purchase a license for Havok
 
welcome
Were talking about math... not C# like you would expect :)
 
oh nice
i like it
 
DG18(DG1, DG2)
. s DG3 = "", DG4 = ""
. f s DG3 = $o(^DG43(%CC, DG1, DG2, DG3)) q:DG3 = ""
. . s:$p($g(^DG43(%CC, DG1, DG2, DG3)), "|", 11)?1"DG"1. DG4 = DG4 + ^DG43(%CC, DG1, DG2, DG3) . x DG4
 
12:07 PM
@Lasse u there
 
Please don't just dump WTF-content here, link to the post instead
 
@LasseVKarlsen, can you help me linking COM to c#.net
 
No, I don't do COM
 
hmm, im hungry be back in about 15 mins..
 
12:09 PM
You should post a question on SO instead
 
@LasseVKarlsen ok :|
 
Note that chat is not a replacement for SO, if you have programming questions, post them on SO
If you want to discuss programming things, this is the place for it
Let me rephrase that
If your question can have a definitive answer, SO is the place to post it
 
what are the differences?
 
If the question is more like "What do you think of ...", then this is the place for it
 
@LasseVKarlsen i have done so about 3 weeks ago nobody seems to know the answer stackoverflow.com/questions/3967329/…
 
12:11 PM
There's several that is trying to help you
 
@Rich
@RichardJRossIII: What's with the random MUMPS?
 
/me is sadly staring at a MUMPS routine this very instant.
 
@LasseVKarlsen Hello I want to knw how to create vista style (Aero style) application in windows Xp ?
 
12:18 PM
Install a program that gives you that
Find a theme manager for Windows XP
 
actually im developing a win form application so i want to give vista style look and feel to only my application
 
When you say "Aero Style", what do you mean by that?
Transparent window edges?
 
ya transpernt borders and and glow buttons and some more cool stuff
 
Yeah, well, good luck with that, that'll take a lot of hard work to do for Windows XP
 
12:21 PM
Oh yeah
XP has transparency, but no glass effects
 
Why can't you just follow the UI conventions like everyone else ...
 
do you really need vista style in xp?
 
it would look out of place
 
i need its a client requirment
 
12:22 PM
And be an ugly hack that probably wouldn't work right
Your client is an idiot :P
 
Hope so
 
Ask the client to upgrade to Win7 ;-)
 
Whoever agreed to that requirement screwed you over
 
nw its ma duty to do tat and so any1 have idea how to do it
 
Tell him it's not do-able
 
12:23 PM
Surely someone using a 9-year-old operating system wouldn't mind what their applications look like?
 
I would set aside a month, perhaps a month and a half, to research and implement such a feature
And it would still be buggy in some cases
 
Crazy
aspbooru.tk/Post/Show/24 when I would have to implement something like this
 
How about using 3rd party controls like telerik? Will they look the same in Win xp?
 
actually dey are using 1 more applction tat runs on in win xp so the client want the new appliction in xp only with vista style UI
 
How much time do you have for implementing the skin system?
 
12:26 PM
You can tell the client the he has top "pay" for the 3rd party control
 
last week i got requirment
 
@Shoban what he said. Tell him this is a costly feature
 
nw jst studyng it
 
And when must it be done?
 
Till jan 1st
 
12:27 PM
just the skin system?
or the entire application?
 
If the skin system works you can squeeze a lot more money out of it :)
 
C# vs JAVA which is widely using
 
Like telerik
 
which is widely using
 
@Pramodh no, just no
 
12:28 PM
My PM saw some applction like avast antivirus and new msn Messanger so he thinks its possble to do it
 
Of course it is possible
I'm asking how much time you have for the skin system
 
@Nitesh Oh
 
possible != easy/cheap
 
@NiteshKatare they don't actually implement aero glass though
 
@Nitesh So no transparency, just the "style" of vista?
 
12:29 PM
@sinni800 , dint get you
 
den how dey implement ?
 
the aero glass adds another layer of complexity to the system
 
To get just skin support, purchase a component package like the DXperience from DevExpress, or the Telerik controls
 
@Pramodh no c# vs java pls
 
@sinni800 , hey i dint mean that dude........ just need a comparision
 
12:30 PM
I have to work hard to convnce to my PM regardng 3rd party controls
 
@Pramodh using getters and setters and tons of methods in a strange fashion? Java is it
 
Again, how much time you have for the skin system?
 
@sinni800 , i'm a c# programmer
 
@Pramodh stay that way
 
i just wanna know the difference
 
12:31 PM
Any 1 have idea tat Msn Messnger and Avast Antivirus how dey have implemented this on win xp
 
@Pramodh i have java in school and boy... so convoluted
 
@NiteshKatare Look into custom painting, ownerdraw
 
will it works ?
 
I don't understand why you're asking
It will be a ton of work, difficult work
Lots and lots of code to figure out how to make work, write, and debug
Since others have made it function, yes, it might work
But that depends on you
 
den bettr wl convnc my PM tat it will not possble
 
12:34 PM
@sinni800 , :-)
 
@Nitesh You could always just have a borderless window and draw a border yourself. This is the cheap variant
 
@NiteshKatare If you really need a skinning system, purchase it, it will be far easier, cheaper, than the alternative
 
@sinni800 Nice Idea
 
PUBLIC SERVICE ANNOUNCEMENT: Vowels now available in chat at no extra cost!
2
 
@Benjol :)
 
12:36 PM
@Nitesh make imageboxes that light up upon hovering them for the minimize, maximize, close buttons
 
@Lasse (sorry, my eyes are starting to bleed :)
 
@Benjol sorry I program Haskell I'm not used to this luxury
 
@Benjol You mean bld?
 
Has..kell
 
bye all........
 
12:37 PM
m eys ar strtng t bld
 
bye Pramodh
 
@Benjol i thought we get some free new feature. but vowels?
 
@sinni800, yup, and for you I'll throw in the SHIFT key too, same price ;)
 
My PM is given me followng link to refer
http://www.codeproject.com/KB/miscctrl/FancyNetForms.aspx
 
@Benjol touché, damnit
 
12:39 PM
i think the author implemented skinning
 
@Nitesh just take that one! D:
 
@NiteshKatare So then you have the code already
 
its looking cool
ya
 
Sorry @everyone, being an internet curmudgeon, I'll leave it at that, but I won't charge if you choose to quote my announcement at regular intervals :)
 
I have already starred it :)
 
12:40 PM
@Benjol @everyone should absolutely highlight in fact EVERYONE. Would be cool
 
My PM said me to refer that and change the form as per client requirment
 
@Benjol I agree though, this must not turn into a teenage SMS chat, "I <3 U"
 
@LasseVKarlsen at least they use vowels
 
12:51 PM
ok see u tomorrow, i am out of this cubicle
 
@jaminator cya
 
hi im back..
 
howdy
 
do de
 
1:38 PM
hey we no longer have the most users out of all the chat rooms did someone start telling bad jokes?
does anyone know if there is a word that describes the syntax of C#, JS, Java, C/C++, Actionscript... you know how they all have slightly similar syntax rules... is there a word for that?
like it's a _ type of syntax or something
 
i've always just called it "c style syntax"
 
yeah same here, good enough for me
 
I've seen it been called angle-bracket syntax, but I think that's a dumb name
I call it C style as well
 
Anyone using NCommon with NHibernate?
 
1:54 PM
NNo
 
Nthanks Nanyway
 
2:09 PM
how do you get people to understand that just because a feature is simple and looks simple, maybe it's only a new checkbox for example as far as the user is concerned, that doesn't mean it's simple to make... "What, 6 hours? How could it take that long to make?"
people are such n00bs
 
I still use vb.net
 
@Shogun Ask them to change a wheel on the car. That's a simple task but it takes time...
 
yeah it's just one wheel what's taking you so long?
i usually just say something to the tune of 'no, you're right I'm lying to you'
 
@Shogun or, 'It'll take longer if you keep saying things like that'
 
so on my asp.net webforms (ugh!) site, i've got a panel with a text input and button in it. DefaultButton on the panel is set to the button. if i type in text and hit enter, postback occurs but Request.Form is empty and the page reloads with the input cleared. if i type in text and click the button, click event fires as expected and the data is handled.
anybody ever seen something similar?
 
2:17 PM
People assume everything they don't understand is simple. Like politics.
 
Do you have action behind the button?
 
what do you mean by action?
 
on form
 
> if i type in text and click the button, click event fires as expected and the data is handled.
 
grr, disco'd from chat
 
2:19 PM
> if i type in text and hit enter, postback occurs but Request.Form is empty and the page reloads with the input cleared
 
Does your button just do a postback?
 
as opposed to...?
 
some other code
Clicking a button and postback are two different beasts from what I remember of my asp.net days
 
i've got a page_load handler and the button_click handler. page_load always fires, but if i hit enter then with a breakpoint in page_load i can see that request.form is empty, and thus the click event handler doesn't fire
 
Howdy all
 
2:22 PM
/wave
 
function __doPostBack(eventTarget, eventArgument) {
12 var theform = document.myForm;
13 theform.__EVENTTARGET.value = eventTarget;
14 theform.__EVENTARGUMENT.value = eventArgument;
15 theform.submit();
16 }
ignore the numbers sorry
Is that what your postback looks like?
or similar
 
that's automated by .net
 
@rchern automated poorly by the looks of it :) Can you create a question with your code so I/we can take a look?
 
how come IEnumerable.ForEach always seems to not be there when I want it.
 
2:27 PM
@rchern Actually won't the form be in the viewstate?
 
Oh, I have to cast it ot a List or Array to get ForEach
 
keep in mind that actually clicking the button works just fine
it is only when hitting enter that things are broken.
 
@rchern dirty hack

function clickButton() {
if (event.keyCode == 13) {
document.form.button1.click();
return false;
}
<input type=text id="textbox1" runat=server
onkeypress="return(clickButton());">
and the rest...
I think it's an IE'ism
 
@Sres, that says to use the DefaultButton property. I've said that I am using that property...
 
curious - what have people used NHibernate for in the past?
 
2:34 PM
@rchern it's not as simple as a syntax error is it?
 
@Tom: an IEnumerable is not in general a sequence of storage locations. It's possible for an IEnumerable to give you values that you will never see again, so it does not really make sense to mutate them before getting them out of the IEnumerable.
 
Yeah that part makes sense. But ForEach(Action<T> action) doesn't mean you are going to mutate those items.
 
afk @brew
 
It's the same thing as saying ForEach( var x in IEnumerable) dothing(x), which we're all fine with
 
@Tom: Er, yes, I suppose.
 
2:37 PM
@Sres, syntax error what? no.
 
@Joren: I mean, you can easily extend IEnumerable<T> to include a ForEach, so its not a big complaint. I just don't know why they left it out.
 
Yeah, not sure. I think because they didn't like the idea of including a naturally side-effecting operation in their mostly (visible) side effect free Linq library
 
2:51 PM
@rchern no idea then, without the code I'm only guessing
 
@Joren so basically what you're saying is Linq would be more fun and easier to use if it was a Java library? ;)
 
I don't see what Java has to do with it – but regardless, I think Linq is fine as it is
 
@Joren sorry i meant PHP. PHP doesn't care about side fx at all :P.
 
PHP is an abomination :P
 
@Joren no real notions of type safety etc.
haha
that, sir, is your opinion ;)
 
3:01 PM
Im sending a javascript object to a C# codebehind method. the paramater is currenly just "object" is there some more useful type I can convert it to?
I'm not sure what a good C# type is to represent a javascript object with
 
personally i'm lazy so i use Object... but at first glance that link looks like it may be useful to you.
 
thats using c# style objects in javascript
I want it the other way around. But i think ill just stick to being lazy
 
Javascript objects ... Dictionary<string, object> :P
That's basically what they are anyway, maps from identifiers to values
I believe you can even access a field in javascript by providing its name as a string?
 
Yes :)
obj["field"] === obj.field
 
Well then :P
Of course, there is another option
dynamic :P
 
3:09 PM
Im pretty sure dynamic isnt in c# 2.0
 
Yes, it isn't
You didn't mention what version of C# you're using
 
3:31 PM
@Joren that's for you to guess
 
Well, Dictionary<string,object> is the best option in 2.0, I think
 
Yeah, I'd say so
 
3:53 PM
Home time, safe coding folks
this.Close();
 
am I a douche for finding it incredibly annoying when going through my coworkers code and finding a massive like 100 line block of code that is just commented out, instead of deleted?
 
that bugs me too, normally
 
like why is it still there, I don't know if it's deprecated or what..
 
unless it's a WIP
 
then i dont know if i should delete it or not you know
 
4:03 PM
:)), they must be keeping it for a time to reuse it, and that time is never going to come again
 
yeah and then there are the //there has got to be a better way to do this...
well that doesn't excuse you from doing it that way now does it??
it's like 'i know this sucks even though i did it anyways, just so you know that i know it sucks' lol
rant over..
 
Well, that one doesn't bother me as much, provided they have a "// TODO: Fix this because it's a crappy implementation" comment that'll get picked up
sometimes pragmatism wins out
 
its all about balancing Cost over Return
 
yeah they need to at least put a hook in there to something in reality.. like a fogbugz case number, or something so it actually gets assigned to someone
 
yeah
 
4:07 PM
//I put a sticky note on Bob's desk to fix this
 
as long as there's some way to track it in the future
it doesn't bother me
 
but it should not be an excuse to do such thing, if you know a better alternative then either implement it or mention the alternative and the reason why that was not implemented
 
I think in this case it was an ActionScript developer learning C# ASP.NET MVC for the first time building our app
and so it was like 'well this doesn't feel right but i have no idea a better way to do it'
now i'm left with a puzzle to solve haha
 
well atleast he admits that he is not feeling right
better if he would have mentioned y he feels its not right
 
4:54 PM
Whenever I think I might not need something I tend to comment it out and assign a //TODO task for it, just to remind me that it's there and I'll eventually need to decide what to do with it. <3 Visual Studio ;0
 
5:25 PM
@JamieKeeling what does Visual Studio have to do with it?
 
I primarily use Visual Studio and you can add a TODO attribute in your code which shows up in a little window to remind you.
I've never tried it in another IDE
 
oh really
when does it pop up?
it doesn't seem to be working for me but maybe I'm not doing it right
 
It just sits in a little window thats docked in the corner, I think it's an alternate output window or something.
 
oh perhaps i need to enable the window
 
5:28 PM
oh snap
thanks :)
 
no worries =]
 
that's pretty handy and cute, how unmicrosoft
 
It's great! I don't even remember how I came across it =/
 
the //TODO: is amazingly useful
i normally just do a //TODO: implement [x] later
throw new NotImplementedException();
 
Nice, I just thought I could drastically reduce the amount of code I need to write by simply putting "//TODO Implement later" in void main() . Not very productive but an awesome timesaver.
 
5:41 PM
hello, can you have a look
2
Q: FindForm and WPF

serhioI have an application that has a WinForm(myForm). In that WinForm there are a WPF UserControl(myWPF). In that WPF UserControl there are a WinForm UserControl(myWinCtrl). The myWinCtrl has a custom WinGrid(myWinGrid). myWinGrid does internally a this.FindForm() and.... does not find myForm......

 
@serhio At what?
nvm
 
6:21 PM
has anyone got FXCop to work with VS2010? I have tried adding it as an external tool but can't get it to work
 
hey guys
and gals :)
 
howdy
 
chat seems quite quiet rite now...
 
Yeah, it varies how active it is
But then again
I've had the best conversations about C# when there weren't that many people in it at all
 
6:25 PM
At the busiest times it seems like no one talks about C# at all
 
Wasps :)
Joke:
http://blog.stackoverflow.com/2010/10/datacenter-migration-oct-23/
Now Jon skeet can answer C# questions even faster! :)
 
6:39 PM
is there a way to remove an item from an IQueryable similar how you do from a List
say, by the ID
i have this really annoying problem query and i think the only way i am going to get it to do what I want is to just brute force loop through it
 
IQueryable's are by nature not random access
 
I have this table of 'items' and you can make a copy of them, when you make a copy it becomes an item just like any other, the only difference is that it has a field that shows the ID of the original
as well as a userID to go with it
when i pull back all the items for said userID, i want to exclude the originals that were now copied
so some how i want to remove all items from the IQueryable whose IDs appear in the originalID field of any item in the list... so confusing i know... i would not have made it this way if it were up to me
but only if the current user is the one that made the copy
otherwise they get the original...
@Joren what do you mean
 
It's not clear to me what you're trying to do ... but can't you do some clever Where?
 
yeah thats what im trying to figure out
but im not sure how to compare the IDs of the items against another field that is in itself
like, exclude all items where the ID of the item is in any other items specialID field
 
er
 
6:49 PM
only if the userID of that item is also the userID of the one who is browsing...
 
well
if there is one specific ID you have
 
in my opinion the fact that this problem exists says that it's not being done right in the first place
but it would be way more work to go change it now because of all the existing data
 
But yeah, I don't know
 
deep breath, gotta remember that this is FUN not frustrating, if I figure it out I gain XP :)
one step closer to leveling up
ok im out of here, later all
 
7:50 PM
hey guys, you know how you can do a SQL query where you say NOT IN (another query) or something like that, does anyone know the equivelant in LINQ to SQL?
i am trying to compare an ID and make sure it does not appear anywhere in another whole list of items
 
!other.Contains(...)
 
so like this: (from i in db.Items where i.userID == userID && !i.Contains(..)) wait that doesnt make sense :( i suck at this lol
 
Any improvements for this? I think it should be doable as a single query with no subselects: select lastwrite, lastquery from writings where lastquery in (select max(lastquery) from writings where name = 'foo' group by name)
 
i want to say where i.userID == userID AND i.AssetID [IS NOT SOMEWHERE IN THIS QUERY INSERT HERE]
i love how i can write sql queries directly into my C# but i hate how the syntax is so different from SQL it confused the crap out of me..
 
I could do select lastwrite, max(lastquery) from writings where name = 'foo' group by name, lastwrite
 

« first day (11 days earlier)      last day (4929 days later) »