« first day (648 days earlier)      last day (4286 days later) » 

12:01 AM
Hi..
 
Can you tell me more about automated bug tracking? What does that mean?
 
How Setting session time IDHTTP?
 
Sure. Visual Studio already has the capability to capture exceptions as they are thrown and break to the code editor, FaultTrack will do something similar, and keep track of exceptions throwin during a debugger session. By doing that, we can enter very detailed information into the bug tracker, without any manual typing on the developers part, so they can focus on actually fixing the problem. Also eliminating human error in data entry (while still allowing manual data entry as well)
 
Sounds like something that might end up coming on the next version of tfs?
 
You never know, I use TFS myself, but I also want FaultTrack to be available to the mass, including those who don't use TFS or cannot afford it.
 
1:04 AM
+1 David
 
1:30 AM
Thanks kush
 
2:00 AM
Can someone explain why the following code has a race condition?
        Parallel.For(0, data.Count, i =>
            {
                data[i] = StripContent(data[i]);
            });
StripContent is a static private method
 
2:38 AM
Anyone here?
 
3:21 AM
Anyone?
 
yea
 
@ScottSelby Any ideas on the code sample posted above?
Stripcontent modifies the data[i] object if it matters
 
what is data ?
 
A List<myObject>
 
generic list is not thread safe
 
3:31 AM
Even though I am not modifying the list at all (other than to replace references)?
What should I use instead?
 
my internet keeps disconneting randomly
this is from another similar question on SO
To fix your race condition you need to lock the collection for the whole iteration and also you should perform the removal inside a lock on the same object. You can create a lock object for this sole purpose or you can lock on ICollection.SyncRoot if your collection implements that.
 
@ScottSelby would it help to convert the list to an array?
 
I usually just do web stuff - so i'm always using ajax instead of threads , im not to sure , you could probably google "thread safe collection c#"
 
@ScottSelby thanks
 
or lock the list before the loop
 
3:35 AM
@ScottSelby that would defeat the purpose of the threading
 
true dat
18
Q: Thread safe collections in .NET

ripper234What is the standard nowadays when one needs a thread safe collection (e.g. Set). Do I synchronize it myself, or is there an inherently thread safe collection?

like I said I've never really used multi threaded code , web stuff doesn't need it
 
@ScottSelby, thanks
 
4:02 AM
@soandos it has race conditions because you are running the for loop concurrently, meaning two loops can happen at the same time
 
@DavidAnderson, so long as they are kept separate, thats fine (in fact, thats what I want)
 
I don't really see an issue with race conditions in your case however since you're not really accessing the same element indices concurrently
 
@DavidAnderson, so why was it broken (fixed after converting to an array)
 
I thought you were using an array all along. My mistake.
The reason a list doesn't work is because it only supports multiple concurrent readers, but not multiple concurrent writers, since a list is not guarunteed to be sorted.
 
4:26 AM
@DavidAnderson got it.
 
Rock on.
 
5:00 AM
How to convert Reedsolomon Encoding algorithm to Decoding Algorithm?
I have a Reedsolomon encoding algorithm,if i passes 3 values as parameters to that algorithm, then it returns error code words as output.Now i want to reverse of it,means if i passes error code words as input,then i want to get 3 values as output.How can i do it?
 
@PraveenKumar Since that is such a specific area, you may be better of creating a question in the Q&A part of StackOverflow so more people can see it.
 
@David I already posted it,but i didn't get any answer for that question,for that reason i am posting it here nw...:(
 
@PraveenKumar Ah, well I hope you get an answer. Unfortunately I don't know anything about that algorithm.
 
5:40 AM
hi, i asked a question and it was closed as not constructive. i really want to know if the suggested solution to the problem is correct and fits .Net framework
it's related to C#, design Pattern, designing a Cache
 
5:59 AM
Hi there!
what collective term would you use to describe: anonymous delegates, function references and lambda expressions?
ie. data that have executable code in them
because I'm writing a document and I'm tired of listing "anonymous delegates, function references, lambda expressions" everytime I want to refer to a certain function argument.
 
0/
@Boolean strange what happened to you
maybe it's the way you ask
 
6:31 AM
@Jordi yes, can you help me correct the question?
 
7:24 AM
Hii..
can anyone please give any solution for this problem

http://stackoverflow.com/questions/11637538/converting-image-to-icon-c-sharp
 
morning guys
 
7:49 AM
@Boolean you should try to open a new question. If the question is closed.... Anyway, I found the question interesting :)
 
Hi anyone there?
 
Yeah.
 
@ygssoni I looked at your question, interesting one. I have not immediately an answer or the time to play around with it myself, but maybe you can try to use streams instead of pointer handlers. Strange you are loosing quality through the conversion.
@KarimA. maybe function pointers is a term, but tends to move to much to C world.
 
8:05 AM
@ygssoni Clone is probably not an effective method to copy the image.. or the last argument..
 
Anyone know how to check what T is in a generic method?
public static void PopulateLists<T>(GroupBox userInputs, List<T> container) where T : Control
        {
            foreach (Control control in userInputs.Controls)
            {
                if (T == TextBox)
                {
                    if (control as TextBox != null)
                    {
                        container.Add(control as T);
                    }
                }
            }
        }
 
@HansRudel if control is TextBox You can't comapare 'T'
 
ill give it a shot, cheers
nah, keeps saying its a type parameter but is being used like a local variable
 
      if (control is TextBox && (control as TextBox != null))
      {

    			container.Add(control as Textbox);

       }
Try that...
You can't cast T xD..
 
Hello!
 
8:14 AM
Hi
 
Whats the preferred way to add sql files to a solution in visual studio?
 
hello furier
 
i would like a content project the way you manage content in an xna project
instead of just adding static files to a random project in the solution
hi @Abhijeetchindhe
@HansRudel typeof(T) ?
if (typeof(T) is MyClass)
 
@furier yeah ur right. I just found the same thing. here is the final method
public static void PopulateLists<T>(GroupBox userInputs, List<T> container) where T : Control
        {
            foreach (Control control in userInputs.Controls)
            {
                if (typeof(T) == typeof(TextBox))
                {
                    if (control as TextBox != null)
                    {
                        container.Add(control as T);
                    }
                }

                if (typeof(T) == typeof(ComboBox))
                {
                    if (control as ComboBox != null & control.Name != "cbCurrencyPair")
thanks for ur help guys!
 
np :)
should use switch tho if u can
 
8:19 AM
@HansRudel Nice, didn't know you could do that. I love this chat lol
 
but nobody have an answer to my question :(
 
@furier i have no idea, im really sorry!
FFS i think i could have just used enabled instead of visible
n i wouldnt have wasted nearly 3 hrs
 
Lol
Shit happens.
2
 
indeed
 
morning all
 
8:37 AM
morning
@HansRudel Im not too fond of that method
it looks like you just wanted to show off that you knew about generic methods
my concern is that you constrain the generic parameter to be Control only
but you don't accept any control, only TextBox and ComboBox are allowed
and it's not very "generic" if the first thing you do is cast to the higher object
 
@Baboon fair point bro.
i realised that i could just change my use of control.visible to control.enabled and i didnt need to get rid of the tlp's so ive changed it back to the original method which was:
public static void PopulateLists<T>(TableLayoutPanel userInputs, List<T> container) where T : Control
{
    foreach (Control control in userInputs.Controls)
    {
        container.Add(control as T);
    }
}
im assuming thats ok?
 
8:52 AM
@HansRudel I don't know much about generics... but do you need to have control as T ?
It seems redundant.
 
@LewsTherin i think so, i might be wrong
 
I assume where T:Control means T as to be of Type Control. since control is of type Control, I don't see the point. Try it and see if it works.. curious
 
@LewsTherin yeah u do. there is an error otherwise. Im assuming its because the add method should only work with the specific type specified in the list<T>
guess someone else could give a better explaination
 
@HansRudel I am afraid of learning generics... but I may have to one day
 
ive only used them a little bit but they seem to be pretty handy
 
8:57 AM
For inbuilt generics yeah. I haven't had to write my own generic container yet.
 
@HansRudel it's not ok
it's good
 
@Baboon :)
thanks buddy
 
@LewsTherin generics aren't that scary. You'll learn most of it in a day
then covariance/contravariance, that's another beast ;)
 
@Lews Therin Generics is only a compile-time construct, at runtime T is resolved to a closed constructed type in your case, so your basically saying container.Add(control as Control) when its already strongly typed at runtime
 
I was reading TC++PL and came across it.. since then I am always reluctant to read up on templates/generics.
 
9:04 AM
one of the things you shouldn't be reluctant about
 
@LewsTherin

public static void PopulateLists<T>(IEnumerable<T> controls, List<T> list) where T : Control {
foreach (T control in controls) {
list.Add(control);
}
}
 
var instead of T
var control in controls
 
which method works when the printer starts printing?
 
huh?
 
j
 
9:10 AM
Using var instead of T could imply that control could be something other than T, and could fall outsite of the generic constraints.
 
no it won't
 
Not in this particular case no.
But in other cases it could.
 
Well I always use var
var = <3
 
Good night and happy coding.
If anyone here, or that joins likes bug trackers, check this out:
http://www.kickstarter.com/projects/dcomproductions/faulttrack-a-modern-desktop-bug-tracker-for-net-de
 
@DavidAnderson How so?
 
9:18 AM
@DavidAnderson g'night
 
please help which method works when the printer starts printing?
 
every method works when the printer prints
@_@
^_^
 
;)
 
@igni Are you looking for an event that fires when printing?
 
0
Q: Printing event to start on computer

igniwhich method works when the printer starts printing? and please sample code :) because google == null... i need use ReportViewer.PrintingBegin? or ReportViewer.Print? please code here :))

that is easier
 
9:23 AM
@shambulator huh
 
@DavidDV "plz giveth meh the codez"
that question is so gonna be closed
 
I thougt it was cute the "please code here :))"
how can one resist a double-smiley
 
lol
 
в падлу блядь?
 
9:29 AM
Lol
Who did he just curse? :P
 
I'm not sure why, but I often see russians suddently writing in russian in chat
maybe in hope someone will answer them in their native language
and nobody from other nationalities ever does that
 
inderdaad trekt op niks
there is always google translate offcourse
 
@DavidDV did that mean "I love EF" ?
 
tsssss don't make me post justin bieber pictures
 
hehe
 
9:37 AM
@DavidDV No one's stopping you, we know you want to :)
 
@DavidDV just for u buddy
 
A video? Even better!
 
10:09 AM
omg, test deployment files not getting copied! T_T
Local.testsettings - Deployment
i have added the faking file O_o
 
Is there any way to create a method signature for an indexer that accepts any time of delegate/expression?
For example, "public Delegate this[string Pattern]", but that doesn't work.
 
@HansRudel much better
 
@DavidDV lmao, even a tie fighter was getting in on the action
 
10:30 AM
What's a tie fighter
 
TIE fighters are fictional starfighters in the Star Wars universe. Propelled by Twin Ion Engines (hence the TIE acronym), TIE fighters are depicted as fast, fragile starfighters produced by Sienar Fleet Systems for the Galactic Empire. TIE fighters and other TIE craft appear in the original Star Wars trilogy—Episode IV: A New Hope (1977), Episode V: The Empire Strikes Back (1980), and Episode VI: Return of the Jedi (1983)—and throughout the Star Wars Expanded Universe. Several TIE fighter replicas and toys, as well as a TIE flight simulator, have been released by merchandise companies. O...
thing that was shooting green blaster bolts
 
How's he a tie fighter? Oh was there a TIE fighter..
 
he's not
i just said it was also participating in the shooting
 
I didn't watch the video so misunderstood you :)
 
11:02 AM
nhibernate execute sql script
i want that to happen!
 
anyone using nHibernate ?
my sympathies :p
 
11:24 AM
@LewsTherin this is so sad it almost made me cry
how can you not know about Tie Fighters?
 
@Baboon Not too much of a SW fan, so the details don't interest me.
 
but... but... it's STAR WARS man!
 
xD yeah. I prefer Stargate
 
Hi
I have some performance issue with EF
is anybody there?
 
EF has some performance issue with you...
 
11:32 AM
??
 
EF is bad for performance..
 
My advice don't use EF
:)
 
@DavidDV Why always that someone says EF, you appear ?
 
I think it's destiny
 
@furier seriously?
 
11:35 AM
You're like an EF anti-evangelizer ...
 
@furier you found no better way to ask than "i want that to happen!" ?
 
I'm like a bltoolkit evangelist striking down on all the heretics using EF or NH
 
apparently if i want to execute more then one query with hibernate it needs to be in HQL not SQL so im screwed, so im just doing it the regular way
 
Anyway if you rather want to spent time tuning EF and trying to learn about all the pitfalls in the framework you can read this
http://ayende.com/blog/4505/analyzing-the-mvc-music-store-data-access
and then try it yourself
http://efprof.com/
@furier you are using nHibernate you are already screwed
:p
 
so you have told me 100 times :)
 
11:53 AM
Is there a .NET ORM capable of async?
 
you can call the ORM async
but it's on the roadmap for EF if you don't need a good ORM
 
Eh? What ORM is capable of async?
EF is not, nHibernate is not either, nor are MongoDb mappers and such.
 
you can call the function async
why does the orm have to be async?
 
To avoid blocking a thread.
 
omg
when you call a function async which uses an ORM its the same thing
 
11:57 AM
Just FYI, I'm talking about .NET 4.5 async operations.
 
my data-retrieval from my ORM is non-blocking
 
So what are you using?
 
I'm not using an ORM capable of async
 
heyyy
 
Then it's blocking, not non-blocking.
 
11:58 AM
blocking what?
blocking a thread?
 
The thread.. yeah.
 
which threaD?
 
@RoelvanUden Run it on a separate thread...
 
A thread.
 
lol
 
11:59 AM
Look, high performance situation, thread pool of 25, with 1000 requests per second.
 
do you have that situation
?
 
Blocking 25 threads means the other requests aren't processed, even tough the DB farm can take it.
 
yes or no
wtf is a DB farm?
 
Yes I do.
A DB cluster with load balancers and replication? aka a farm?
 
It still doens't make any sense
 
12:01 PM
Well, never mind I asked, I doubt any ORM/mapper is async-capable yet.
 
well yeah because you don't need it
 
How can you claim that I don't need it? You don't know my situation.
 
As proof that you don't need it I give you
All entreprise applications in the world that do 1000 request per second just fine
 
Sure, by scaling vertically and spending quite a bit of money on web servers (which should be spend on DB). Web servers don't have to have such a high cost, moderate hardware can easily serve 10k requests per second on a non-blocking evented system.
 
this is like watching jerry springer live
who's going to throw the first punch
 
12:05 PM
I'd rather optimize the web server and have 1 machine, instead of a small cluster, since you can achieve that with non-blocking i/o, but you need async capable db-layer for that.
 
then use node.js
 
And spend remaining budget on optimizing the DB cluster.
 
:p
every stateless db-layer is async capable
 
And you just said I don't need it. And what's with always recommending a different language, C# is faster and with the new async stuff it can easily rival node.js in terms of scalability.
I just lack a DB-layer that properly implements async :)
 
@Steve Yeah xD
 
12:07 PM
you lack more then that
:p
 
Really, such as?
 
hi guys, does anyone know how to cancel task in web applications? anyone...?
 
Experience
 
It's amazing how you are capable of judging the required and achieved experience of someone you don't know. You should become a psychic.
 
JERRY JERRY JERRY
 
12:11 PM
@Steve Ha ha
 
well yeah it's a gift, thanks for the compliment ;)
 
there is this weird bump on my hand, and i've been digging at it for weeks and it isn't going away, i'm about to go at it with a knife, its driving me crazy
everybody is quiet now :(
 
pics or it didn't happen
 
kind of a weird request
 
@Steve He gets off on blood.
I shouldn't have had a big lunch. I feel so sleepy...
 
12:19 PM
its early here, 819am
i'm sleepy too
 
Sleepy? I have two cans of redbull in my desk. I'll totally make some work happen.
Not
 
i want this message to get a lot of stars and appear on the right. Everybody better star it or i'll be upset( because i'm an attention whore)
 
lmao.
 
guyz
 
12:23 PM
I'm starting to like LINQ to XML, at least the theory is quite nice.
 
some inputs from your side creating a common website on mvc3 for mobile as well as desktops
how to do it ??
 
open vs, press buttons
 
I did not quite understand what you said.
 
@bhuvin You could always use MVC4 which has mobile detection and provides mobile layout helpers.
@bhuvin In MVC4, you can then name your template <name>.Mobile.cshtml to override that particular template. It's rather powerful to override the main layout and change sections that need changing that way, all without altering code..
 
@RoelvanUden - The problem is the company i am working in is a service based company and they are resistive to moving to .net 4.5
So have to also look into how to work it out with mvc 3
 
12:32 PM
@bhuvin MVC4, in contrast to popular belief, does not require 4.5 -- but it IS beta (for now), but should be marked stable pretty soon. I don't know if that is an issue, but otherwise you'd have to do a lot of hackish things to get mobile properly working.
 
yup
just was going thru scott hanselman's post how to enable it almost the right way
 
@KendallFrey
 
hey sugar plum
 
<.< >.> ^.^ v.v O.O
 
12:36 PM
you always sneak in here so quietly
 
Sometimes I wonder why there isn't a SO app for iPhone or Android :(
 
And then you ping me.
@Andredseixas Chat, viewing questions or answering questions?
 
lol yeah, i have to break you out of stealth
 
A portable SO overall, with chat, check your questions/answer, check others too
 
i should write one and sell it for .99 $
 
12:39 PM
AFAIK you can use a browser for general SO stuff.
 
it should pop up automatically when you have answers, or comments to your questions though
 
SO lets you create apps to read questions and answers, but their public API is read-only, so you can't post anything.
 
like a text
 
There are some limitations on the browser that on the app you don't have...
 
@Andredseixas on my windows phone i found several apps
 
12:40 PM
So.. on iOS or Android...
It could be a nice thing, sometimes I want to check SO Chat but I'm on the bus and I have to keep checking the browser to see if there is something new..
 
@Andredseixas you'd be screwed, yup.
 
At least here where I live, Windows Phone barely sells..
 
I know, they came to the market with their product way too late
it's a shame because it works really well
 
Android monopolized the market in Brazil, so 90% is Android and 10% is iOS :(
windows phone has no space for competition...
 
I've never seen a Windows Phone around home.
 
12:42 PM
I wonder how bad that surface tablet will sell
 
we'll see if they make the breach in the market when windows 8 gets out
 
But as soon as Surface is on the maket here, I'll buy faster than Wozniak buys his apple stuff..
 
i've never seen one either
 
I've seen a few androids.
 
windows 8 is horrrrrible
 
12:43 PM
but I really doubt it, the whole new interface thing won't pull through before win 9
 
Quite a few iPhones
 
@Andredseixas I want a surface real bad too :p
 
And so many blackberries
 
ew blackberries
 
blackberries? oO it's definitely the worse phone right now
 
12:44 PM
Baboon -> Microsoft Fanboy :p
 
Is a blackberry still considered a phone ?
 
and I read the company was in catastrohpic shape
 
The thing is, everybody got a blackberry, so everyone else got a blackberry.
 
@DavidDV DUDE! the Surface looks neat! Imo the best device that runs win 8
 
Yep, RIM is tanking.
 
12:45 PM
@Baboon yeah but no apps, no apps => suck
 
@Baboon you like windows 8?
 
I think windows 8 will be horrible on the desktop.. but on surface will be really great
 
It's good to remember where blackberries got popular: it was at a time when sending texts with a blackberry to another one was FREE
now that texts are free with most subscriptions, blackberries are dying
 
@DavidDV no apps? the market place has 100k apps, and 100% portable with no change to win8
 
12:46 PM
i tried it, and the whole start bar full screen thing was so horrible, its like they tried blending their old os gui with a new os gui and it ended up having two half assed guis..... on a positive note, i did download a mod which changed it a bit, but overall, i was very disappointed
 
@Steve I'm not too fond of Metro UI, but I've seen MS dudes who customized it and it looked good
 
There are two reasons that will make me buy MSSurface. (Edit: dafuq I just wrote)
 
the whole UI experience sucks on desktop
 
1 - Cheap
2 - MSTSC app
 
yeah it does
 
12:47 PM
you have to point at the screen's corners to show critical actions
while that's ok on touch devices where you drag & drop with your fingers
with a mouse it's just bad
 
@Baboon Quality > Quantity, MS is paying app-developers to port apps to wp7
all the apps I see are Ipad then Android, never WP
And I want tablet-apps not WP7 apps
 
yeah
 
it feels wrong
 
windows 7 will last for a long time since its so solid, and windows 8 is so... poor on the desktop
 
@DavidDV apps on WP7/7.5 have good quality, I have yet to see a buggy one
@Steve what's really gonna kill windows 8 in its cocoon is that enterprises won't buy it
 
12:49 PM
The Surface will be just a gateway to you to access information on your home desktop more easily and be able to work more easily when you're travelling. Actually is just a lighter and cheaper netbook. I think...
 
it's just not a good fit for productivity-oriented usage
 
@Baboon thats for sure
 
@Andredseixas you forgot cooler!
 
Oh yeah, way cooler too. You f-cking touch the screen !! I love that. Really, the only reason I love my smartphone is because I can touch the screen, otherwise, games.
 
i don't do enough stuff with my smart phone. all i do is text, i feel like its a waste of money because 99% of the time i'm in front of a desktop or laptop
 
12:51 PM
@Steve That's why I never got one.
 
@Steve you forgot it's cool!
 
@Steve That is why I said that. Rarely someone uses it for important stuff. People buy to play games and have fun touching the screen.
 
@Andredseixas lol yeah
 
I admit that I f-cking love touching the screen. It feels so right to do it.
 
but seriously, if you live in a big city, it's nice. for example in Paris I have a subscription to get a bike at many spots in the city
 
12:52 PM
for sure it does
 
the problem is there are limited slots per emplacement
 
@Andredseixas Does the home desktop have to be turned on?
 
so if there's no bike, you walked to the emplacement for nothing, and when you want to dispose of it, you need a slot at your destination
 
Yes, you can't access a server that is turned off...
 
I have an app that tells me where spots are available, it's invaluable
makes me save a lot of time roaming around to park
 
12:53 PM
@Andredseixas So there is no point. I can do that using RDC.
 
without this app, the whole thing wouldn't be useful, I'd lose too much time
 
HEY i have a legit question since theres tons of smart people in here
So I want to use WOL to turn my desktop on from a location that is outside of my LAN. I succeeded in doing it with magic packets, but I can't figure out how to send magic packets to a specific IP since they're supposed to be send to the broadcast ip
 
@LewsTherin You have to understand when someone falls in love for a technology, one will say it is useful, even though one knows it is not.
 
Half the websites say its not possible, the other half say it is, but don't explain how to do it... does anybody have any insight on this?
 
Use linux and program the waking up of your server at periodic time. I know it is possible, just don't know how.
Shell script all the way.
 
12:57 PM
ohhh
thats a good idea
i can probably do it with a batch job on windows too
 
Probably. I told you about linux because my father is a penguin-fan and I know he did that already at his job. Maybe when I get home I can ask him to give me the code to do it. But I think googling is faster.
 

« first day (648 days earlier)      last day (4286 days later) »