« first day (655 days earlier)      last day (4516 days later) » 

17:00
@Steve Yes, but if you want, we can lock the room.
@LewsTherin how's that? haha useless starring?!
@steve - go create another room, you're able to do that with 100 rep
What's with the flag?
Whoever it is, will you stop flagging irrelevant stuff?
@KendallFrey Lock the room? Give me a key so I can stay here. I like it here.
17:01
...
@KyleTrauberman i'm not fighting with you, don't tell me to create another room, i've been quiet the whole time
23 hours ago, by R. Martinho Fernandes
Please don't play with flags. Every 10k+ user across the whole chat is bothered to vote on flags.
@klut Hehe, I used an offensive term
I've used my full vote allowance for today
lol
17:01
I can't counteract flags anymore
steve get a duplicate made
@DavidDV but he did not ask if it is a bad product or not. Neither did he ask what is a good alternative.
who the hell is starting all the flagging drama?
@steve I'm not trying to fight with you or anyone either.
trying
People talk about flags because of off topic-ness. How ironic.
17:04
Off the off topic, let me ask a question.
Seriously, guys, by being so bent towards off-topic talk, you're giving C# a bad name. Do you want people to switch to Java?
@Andredseixas Please do.
@KendallFrey Oh God no. :<
If I insert a string on the database with a breakline and retrieve it, it will return with \r\n right ?
c++ room has a code of conduct
maybe we need to make one here - built by the community of course.
so everyone agrees
17:05
@KyleTrauberman 'greed
Use the same one. It’s sane.
@KyleTrauberman When someone shows signs that they have read it, it's a miracle, but yes, we have one.
I have the following code break a big string every 50 characters long.
            string strObservacao = string.Empty;
            string strRetornoObservacao = dtMaisInfo.Rows[0]["Observacao"].ToString();
            int intQuebraLinha = 50;

            for (int i = 0; i < strRetornoObservacao.Length; i += intQuebraLinha)
                strObservacao += strRetornoObservacao.Substring(i, Math.Min(intQuebraLinha, strRetornoObservacao.Length - i)) + "\n";
lol you can't even agree in chat, while bs-ing, how are you going to agree when it comes to put pen to paper
@Andredseixas I believe that depends on the database, usually, it just retrieves whatever break you used in the first place.
17:06
i mean its a legit idea, but lets be frank, its not going to be by the community where everybody agrees
How can I check if the line already has a breakline and stop the count ? Should I use RegEx ?
In the C++ room we usually just troll away the annoying.
Please don't star code blocks. It doesn't look nice in the sidebar.
I mean, if it finds a breakline, I go to another step of the loop.
@Andred what does observacao mean?
work calls guys, brb
does anyone know how I can display JS code in ASP.NET/C#?
@HansZ Observation. The word in portuguese is Observação.
@Andredseixas I can't think of a clean solution. But there should be a .Contain("/n") and all you have to do is put an if statment to check if there is one or not
@Raynos Display it? You mean print it to screen, or run it?
17:07
@Raynos .. Console.WriteLine? Sorry but that question needs context!
run it
I am trying to use Response.Write but I get errors sometimes
@Raynos you mean on the view?
I think you can output it the same as any other HTML.
<script type="text/javascript"> </script>
JS doesn't usually run on the server, so you can just write it to the browser and have it execute there just like normal HTML
17:08
@Raynos What errors?
I am using Ajax + C#
@RoelvanUden Thanks, I'll try that.
@Andredseixas maybe a stringreader will be more useful
suddenly everyone on topic when questions are asked. This room is like some sort of state Troopers station lol
@Andred stringreader has a readline method
automatically gets a line
as well as a writeline method
17:10
and here comes @Ammar-whynotZoidberg throwing it off topic! haha
for stringwriter
the error is a JS error: Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near '<script type='text/j'.
@klut shh. I am still trying to see what the JS question is
@Raynos Can you show the Response.Write call?
oh that one is easy
I bet its not even your response.Write
17:11
@HansZ I'll try your first, it seems simpler and easier. I'll just have to iterate through each line of readline.
look for .TryParse in your code, most likely you are passing improper arguments to that method
anyone knows of top of their head how to change the font text in razor actionlink?
@Html.ActionLink() ?
my google-fu is weak today
@Ammar-whynotZoidberg apply a class to it
and use css
@Nadal that was it, one method in my code was inputting a wrong parameter, after I checked the value it was returning I found it didnt give the proper value so when I did enter the proper value I no longer got the error! thanks
@KyleTrauberman oh .. THAT what it was
I saw the class at some point. Thanks kyle
17:14
@Html.ActionLink("text", "action", new { @class="cssclass" })
something like that
i just spent ~3 weeks finding that error
spot on. Thanks!
I love being helpful!
when i was trying to debug, there werent solutions on the web for it
took a while but it was worth it
yeah I never would have found it, thanks
17:18
does anybody know where the ads are on the main SO website?
I created a dummy user with 1 rep and I still can't find them
uhh anyone know what could cause JIT to pop up at application startup with "An unhandled Microsoft .NET Framework exception occured in [your application name]
@HansZ Not even for SO careers? remember there being lots of those.
So I heard you guys sell used womans socks
STOP RIGHT THERE.
I have the following situation with SQL/EF, pastebin.com/RUKe6TVQ, where a Page has a FK relation to a Title while allowing more than one Title for that particular page. A Title must have a Page it belongs to. Is there any way to implement this, or have a graceful alternative while remaining enforced database consistency?
17:20
@HansZ there is one above the question, between the first and second answer.
OI
who flagged that >.>
I don't think there are ads on the home page.
I only came in here to ask you guys to stop the flagging ._.
@HansZ and one on the sidebar
I love how I google something, find a SO question with the same thing I asked. And find a Jon Skeet answer.
17:21
lol why does my project build if my XAML isn't valid.
@Reno believe me, we're asking the same thing
This is not something new, the Android room faced the same problem before.
I asked balpha to penalize flag junkies.
Nothing came of it though
what problem? rampant unnecessary flagging?
yeah
there should be some sort of penalty for a large amount of chat flags closed as invalid
like the loss of the ability to flag
17:25
yes that is what I suggested on meta.
do you happen to have a link to that question?
I see it now
I think sbi asked the question on meta, I don't have a link soz.
I asked of it in the chat feedback room on chat.meta
@HansZ It is working now. Thanks
@Andredseixas ha ha no problem
17:29
lol thats pretty funny hanz, but its lagging the crap out of the chat
Does this end >.>
SO Chat should have 2 things that would help a lot. A "hide" button and a "like" button.
@Andred are you using chrome?
No like button. But hide would be nice.
@HansZ Yes, yes I am
17:33
right click, inspect element, right click div containing image, delete node
IS there a market out there for building a robotic arm that will put your contacts in for you?
@HansZ I know, but there is people with IE -2
@Andredseixas then they deserve to be spammed with images
cause one would've came in handle about 5 minutes ago. and I bet there are people that don't buy them because they are repulsed with putting them in.
@HansZ yeah, thanks.
17:34
@klut ohGodArobotArmjustPokedOutMyEyes.jpg
does anybody think "User Control" sounds vaguely sinister?
it would blow a small burst of air when close enough instead of pushing it on your eye.
@HansZ I lol'd at ZE WARDO
i guess it would be hard to implement preventing the user from jabbing their own eye. it would need to be a mechanical head rest
@klut Blink. Contact goes flying. Machine goes out of business.
I always wondered how they do eye surgery.
I'll get that 12 year old to write a kinect program for blink detection
go check out a lasik eye surgery on youtube. pretty neat
but i do have a microprocessors semester project i have to come up with this fall.
17:39
I think mechanical head rest for putting in contacts is too much
there isn't anything to really stop them from jabbing their own eye out
or what if a drunk person wants to use it. good luck with no safety
so make em do it themselves
that way if they jab their eye out it's their problem
Until you get sued.
guys, we're off topic, stay on topic please
It is programming related.
17:42
legal recourse for children stabbing their own eye out is not related to c#
@Steve I'm being literal. It could be a possible project for my course, which would include programming.
True enough.
"When talking in a room, it's polite to stay roughly on topic for the room, as defined by the room owners. If you find yourself consistently veering into other topics, you should consider taking it to another room."
note "roughly"
does anybody else think this company's logo looks like i.e.'s logo? corporate.worldtravelinc.com
I'm just trying to help provide the best resource for people trying to get c# help, and if they came in the room and saw discussions about children stabbing their eyes out, they might be turned away
17:45
yes @HansZ
lol I'm gonna make a chrome airline
Hi new people! Ask your C# questions! We promise not to poke your children's eyes out, pinky swear!
we weren't talking about children stabbing their eyes out. I was talking about the 12 year old that comes in here who is a Kinect programmer.
I just realized, why are all browser's logos circular?
I cant remember his name
17:46
@OutlawLemur
aye
@KendallFrey holy crap you're right, every one
only one I can find that is square is iCab
whoa
@HansZ Some of the people that use IE -142 have to use it because of their jobs.
@KendallFrey Netscape sent hi.
17:49
This one?
._. I remembered the old logo.
Long time since I last saw netscape, didn't know it was round.
Netscape doesn't count. The only relevant browsers are Chrome, Firefox, IE, Opera, and Safari.
but almost every obscure browser these days has round logos
* obscure
17:54
@KendallFrey You blew my mind. I even searched for Konqueror's logo..
seamonkey, konqueror, maxthon, netsurf, K-Meleon
maxthon, shiira
though non square include midori, flock, galeon
rockmelt, fluid, Comodo Dragon, swiftweasel, icecat, omniweb, rekonq, pale moon, dillo, xb Browser, SRWare Iron
TIL there exists a lot of web browsers
Must be like OS's. There are probably millions of OS's.
Opinions are like OS's. There are a lot of them
Very few are actually good.
18:20
Trying to toy around with nHibernate here, can it use attribute annotations and a code-first approach similar to EF? I don't want to get smacked with a bunch of XML schema files and whatnot.
The XML files are so easy to manage.
I'm not sure why people like attributes. They make the code really hard to read in my opinion.
With XML mappings all the DB mappings are separated from your class files so it makes it really easy to just pretend that they're magically preserved.
That's just my opinion though.
Because it keeps the entire data validation in one place. The attributes can be shared between the database scheme generation and model validation.
@SpencerRuport it's an interesting one. Opinion seems to be swinging away from xml configuration these days, but it must have made sense at some point...
Model validation is usually much more defined than the db schema anyway so I feel like you end up with a disjoint regardless.
Maybe because distribution to the end-user is still a bit of a pain in the arse in .Net - it's one more thing to carry around? I dunno
18:24
@SpencerRuport They have the same style of definitions, such as MaxLength, Required, and so forth. They apply on both, having one place for the entities is what I'm after. I did see model-mapping for nHibernate but very little information on it..
@TomW - The XML files get embedded into the DLL so it doesn't complicate distribution at all in my experience.
@RoelvanUden - Fair enough. I was just tossing in my unsolicited opinion. :)
I haven't used attribute bindings with nHibernate.
ah, fair enough. Not personally used xml configuration for an ORM, but do use xml schema for our somewhat eccentric hand-rolled persistence layer at work
fluent binding is 'nice' at first glance, but it has a real air of being a fad
@SpencerRuport Perhaps you have seen good guides on it? I can't seem to find anything, nHibernate, to me, is this big monster with documentation that was torn into a million different pieces.
@RoelvanUden - Guides on XML mappings or attributes? I agree the documentation is... well... pretty much non-existent. I mostly just look up specific questions on ayende's blog. If it weren't for him I wouldn't know anything about nHibernate. :P
@RoelvanUden likewise. The NHibernate docs, and the FNH stuff as well, have a nice get-started section, but the detail is lacking in doing anything nontrivial
what's honest-to-god-'J'-Hibernate like for documentation? Presumably if NH is a port, the API should be similar
18:30
@SpencerRuport Attributes. I'm really not motivated enough to have scheme information out of the defined entities. Who is this ayende? I did google him/her/it, but ended up with some guy blogging 'bout NoSQL (Fun, but not to this topic).
man, as much as I love LINQ, it is the dumb sometimes
(first post on ayende)
lol how is it dumb?
I'm not a big fan of Linq-2-SQL
Well, that blog doesn't give me any insight on attributes code-first approach either.
18:33
Same but without 'big'
But I love LINQ itself. Sooo much better than writing for loops just to filter a List.
gridview question: I have a table of dates pulled from sql.. how can I make a column that shows how many days ago it was? Would CURRENTTIMESTAMP be involved?
@HansZ frequency of N+1 query problem, I mean, you're supposed to read the disclaimer, be aware of that problem, and work intelligently to avoid it, but it seems to happen so often that it has to be seen as a shortcoming in the technology itself
and the xml extensions it provides are priceless
18:34
Hiya @KendallFrey <3
oh yeah, LINQ-to-objects is the bomb
@SpencerRuport You still doing that trek thing?
Just got home today.
and also,
C# TEAM
Y U NO IMPLEMENT XML LITERALS
@SpencerRuport Nice
18:35
Prague, Vienna, Dresden, Berlin, Amsterdam, Antwerp, London, Paris, La Rochelle and Milan.
@TomW Cuz they implemented L2X
@SpencerRuport wow you got around, lucky
You can parse a XML string.
@KendallFrey they're complementary technologies
It anything, they need regex and date literals.
18:36
L2X works in VB as well
@Steve - Yeah, this was my first trip to Europe so I kinna just breezed through to figure out what I like and don't like.
@SpencerRuport sweet :)
VB's syntax is inherently slightly more cumbersome, but it still does it - and with literals support as well it's really nice for building test cases for a bunch of spaghetti legacy code that sticks its grubby fingers in xml persistence all over the place
@SpencerRuport Spencer nice road trip. Did you hit London during the OMGWTFLYMPICS?
By the way, I purchased a Dell Streak 7" for the trip and I'm a big fan. If anyone's looking for a cheap and reliable Android tablet I'd highly recommend it.
@TomW haha
18:39
@TomW I was there about 2 weeks before they started. I was around when they were running the torch but I didn't see it. The timing was coincidental though.
ah, probably for the best, although I was there yesterday and it seemed about normal
everyone who works in central london has cleared off on holiday
Yeah I've heard a lot of would-be tourists are avoiding it so they're actually seeing less traffic than normal.
btw, beach volleyball is as entertaining as it sounds
lol
It's fun to play too. ;)
that was EXACTLY what I meant
18:41
suuuuure.
hahaha
I have a var : `public String PreCadastro__Senha { get; set; }` I want to, every time a value is set to the var, I change the value of it.

`set { return "new string"; }` will work ?
Has anyone used the Autocad .Net API? I have a client that's going to want me to use it on a project soon.
just as well the seats are quite far back from the court, as you'd otherwise see how fricking huge they are up close
Found documentation on nHibernate attributes! No way I'll ever use that, it's so verbose! -- nhibernate.sourceforge.net/NHibernateEg/…
18:42
and unless fearing for your life is your thing, it's not quite as simple as "hur chicks in bikinis, woot"
Anyone ?
@Andredseixas You don't return a value from set. You accept a parameter called value.
@Andredseixas Set doesn't return. You set a field with 'value' and then do whatever you want, like updating your timer.
Hehe, I guess you noticed I have no idea what do... So you guys are saying that instead of return I use value ?
Yes. value is the value that the property is being set to.
PreCadastro__Senha = "foobar"
what they're saying is ... its used to set the value.. someclass.someproperty = "this sets the value, not returns its"
then value is "foobar"
how would you store a returned value from that?
@Steve I understood
awesome
18:44
i can run my code while my project is configured in Debug, when I switch it to Release it doesn't run with/without debug. any ideas?
So, can I do public String PreCadastro__Senha { get; set { PreCadastro__Senha = value.Trim(); } } for instance ?
@klut what does 'doesn't run' mean?
Thanks Kendall, I really don't want to use private vars..
I can run with/without debugging
18:45
Oh, you meant with auto properties.
Then no, you need a field.
@klut - He's asking what happens. Do you get an error message? What happens when you try to run it?
@klut I can read. I'm asking you to explain what the words MEAN.
JIT to debug
and then i get:
If you don't know what words mean, can you read? ;)
@KendallFrey you aren't being helpful. So STFU :P
18:46
But I do agree. @klut, what is the expected vs actual behaviour?
@TomW The invocation of the constructor on type 'Telerik.Windows.Controls.RadTreeView' that matches the specified binding constraints threw an exception.
when I debug after JIT
I'm getting the error Cannot implicitly convert type 'byte[]' to byte for the following
[HttpPost]
        public ActionResult Edit(Product product, HttpPostedFileBase image)
        {
            if (ModelState.IsValid)
            {
                if (image != null)
                {
                    product.ImageMimeType = image.ContentType;
                    product.ImageData = new byte[image.ContentLength];
                    image.InputStream.Read(product.ImageData, 0, image.ContentLength);
                }
                repository.SaveProduct(product);
                TempData["message"] = string.Format("{0} has been saved", product.Name);
that's more like it!
inner exception: {"The type initializer for 'Telerik.Windows.Controls.RadContextMenu' threw an exception."}
@Grixxly Which line?
18:47
inner exception: {"Could not load file or assembly 'Telerik.Windows.Data, Version=2012.2.607.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Telerik.Windows.Data, Version=2012.2.607.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"}
actual information. And there, I have no idea. Never used Telerik.
product.ImageData = new byte[image.ContentLength];
but I have no idea how to handle that... it loads it in debug config
product.ImageData is a byte?
Does the Telerik stuff come with debug and release compiled binaries?
18:49
No. It's supposed to be a byte array to hold an image
Strange indeed. Can't help without more debugging on your end, though.
haven't used them if they do. here is the StackTrace:

at Telerik.Windows.Controls.RadTreeView..ctor() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TreeView\RadTreeView.cs:line 172
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
@klut is that assembly present in the bin\release folder, or wherever you're compiling the release version to?
there is no c:\TB\117 folder that is for sure
Not even hidden?
18:52
nope only hidden is MSOCache
That's bizarre. I have a horrible feeling that's a folder on some Telerik developer's machine
definitely is.
well shit... I match exactly what the book source is... frustrating
I thought the same.
meaning something they've released is WRONG.
18:53
well clearly.
any reason its working in debug mode?
It's an unhandled exception.
because I cause load my RadTreeView in debug
ahh okay
I'd check out the Telerik Forums and see if they can shed some light on what the error means.
They're pretty active with their users. Shouldn't take long to get some assistance.
"Bug in the library" is both the best and the worst conclusion to draw. Best because you didn't do anything wrong. Worst because you can't fix it.
3
18:54
Eh, with Telerik it's not so bad.
also, it stinks so much of a cop-out
I'm sure if he posts on the forum he'll get some help within a couple hours.
@TomW I have to star that.
@TomW - Not all frameworks can be as complete and pretty as .Net.
3 days via forums when inquirying specific controls @SpencerRuport :/ usually ~50-70 hour response
i found they have an update, maybe its fixed
18:57
Is that what they say or is that what they do?
i'm a licensed user though so i have 24hr guarenteed response
Oh.
Ever since I got the Telerik package for hitting 10k they've been really helpful whenever I have a question.
that is what they do, they guarantee 72 hour response
WOOO HOOOO!!! in my class I had it as byte not byte[] :)
18:59
I didn't want to insult you, but I did think of it.

« first day (655 days earlier)      last day (4516 days later) »