« first day (647 days earlier)      last day (4299 days later) » 

3:01 PM
@shambulator, I thought it would call the current instance of the SettingsComponentAttribute class, got it wrong
 
Value of true is 0b00000001
1
 
@arthurmani Ah, I see. No - just like any other method, you can pass arguments to constructors. Which class contains the CreateAttributes method (I'm going to call it X for now)? And when you create a SettingsComponentAttributes inside it, does the SettingsComponentAttributes have to know about the instance of X which is creating it? The current instance of X is what this is, in that context.
 
But if you set a bool to a positive number, it's still true.
TIL: ^
 
@Kendall I told you foo
 
I first learned it was -1, in VBA.
 
3:06 PM
?
 
If the SettingsComponentAttributes doesn't need an instance of X when it is created, just remove the this in new SettingsComponentAttributes(this), and don't give SettingsComponentAttributes a constructor.
 
Is this a bad idea:
#region Lists
List<double> Doctor_HandX = new List<double> {
968.881652832031,
970.036315917969,
970.057434082031,
970.154418945313,
970.322509765625,
970.57861328125,
970.976684570313,
971.463928222656,
972.025512695313,
972.907470703125,
973.977600097656,
975.126892089844,
976.63623046875,
978.177734375,
979.930847167969,
981.776245117188,
983.615783691406,
985.457214355469,
987.205078125,
988.98974609375,
990.562866210938,
992.009948730469,
993.349975585938,
994.527038574219,
995.517395019531,
 
Maybe. Should that be in a content file instead?
 
ReadAllLines didn't work last time I tried it
 
@shambulator I though I was creating the class CreateAttributes with this code: public override void CreateAttributes()
{
m_attributes = new SettingsComponentAttributes();
}
 
3:10 PM
has anyone ever used Telerik RadGauge?
 
it is no where else :(
 
@Kendall kendallfrey.webs.com I am going to study you for the rest of the day
 
I thought you said you had work.
 
@OutlawLemur I'm going to outdo you and study him for the rest of my life. @KendallFrey prepare to be stalked
 
0
Q: recursive descend parser - avoiding left recursion

Jinu J DI have the following productions A -> Aa A -> b so it is clear that there is left recursion like parseA() { parseA();//recursion parsea(); } It is said that the left recursion can be avoided using the following rule A -> bA' A' -> aA'|null How is left recursion avoided ...

 
3:11 PM
ok I removed the constructor and the this keyword
 
@Kendall Shudd up
 
... ok then
 
I am going to play all of your games
 
somebody post some more justin beiber pictures
 
@OutlawLemur Let me know if you beat the Tic-tac-toe AI.
 
3:12 PM
@Kendall Then I am going to write comments on all of them
@Kendall I will program my own tic-tac-toe player to beat yours
 
Eagerly awaiting. If you do, I think you have earned the Nobel prize.
 
@arthurmani you may need to go back to OOP school....
 
The strange thing about this is that the StackOverflow team seems to think that people will use these reputation points for hiring decisions. They have little widgets you can embed into your site to display your reputation, and I've even heard them suggest that developers put it on their resumes.
I can't think of a better indicator of somebody not to hire than a guy with 10,000+ reputation on any community site. You can only get that sort of rep with a 4hr+/day commitment over a period of several months.
 
@walkingTarget :( any recommendation for it?
 
jon skeet
 
3:15 PM
I was thinking the same.
 
Damn it "cheat" is downloading slow
 
loading? what kind of loading?
ah
 
I think I will call this a productive half hour
 
doesn't look horrible
 
The music is the biggest part of the game.
Beware: the game is incredibly boring.
 
3:17 PM
skeet is a rep machine
 
Kudos if you find the 3 hidden cheat codes.
 
what is the general purpose of internal/nesed classes
 
@Kendall I hate the song
 
It's (lame) fractal music.
 
I just muted my computer
 
3:19 PM
lmao
 
@walkingTarget thanks!
 
There goes one of the easter eggs.
 
I am going to reprogram it so I can use my xbox controller
Damn it no source code
 
Haha
If I gave source code, the cheats wouldn't be hidden.
 
Can i have it... i only twelve
 
3:23 PM
12 y/o's cause the most damage.
 
Oh I drawed the ttt bitch
 
Nice
 
Disassemble it @OutlawLemur, look for const strings in the IL!
 
I need to do some work but its about 32c here, i cant think
damnit
 
3:24 PM
@walkingTarget Shut up shut up!
BTW, no strings.
 
@walkingTarget Ok
 
muffled
 
@Kendall You should add a character so it is 3rd person.... I am getting dizy
 
I played a lot of Ken's Labyrinth, ok?
 
@Kendall I know how you did ttt
 
3:26 PM
BTw this happens when you do a project in EF and WCF
http://www.youtube.com/watch?v=knyB1p_TgCs
 
Oh? How?
 
It always goes in the same place unless I go there first
 
Yeah, it's not a randomized algorithm.
 
is this allowed??
UserInputEntity inputs = new UserInputEntity(SourceFilePath, ErrorLogFilePath, uiTableLayoutPanelColumnDataTypes, uiTableLayoutPanelColumnNames, uiGBUploadSpecificRows, uiCBCurrencyPair);
 
WallOfCode
 
3:28 PM
use usings
 
hans, why you gotta paste long crazy things
 
where ui.. = a control like a table layout panel
 
as kendall said, use imports/usings
 
yeah who would have thought that it was something else then a ui element uiTableLayoutPanelColumnDataTypes
uiTableLayoutPanelColumnDataTypes => tlpColumnDataTypes
uiTableLayoutPanelColumnNames -> tlpColumnNames
so we have
var inputs = new UserInputEntity(SourceFilePath, ErrorLogFilePath, tlpColumnDataTypes, tlpColumnNames, uiGBUploadSpecificRows, uiCBCurrencyPair);
 
i originally had that but then i thought it might be better to prefix everything with ui first
 
3:31 PM
don't know what uiGBUploadSpecificRows, uiCBCurrencyPair is
euhm no its not better
 
GB= group box
@DavidDV i will change back then
 
var inputs = new UserInputEntity(SourceFilePath, ErrorLogFilePath, tlpColumnDataTypes, tlpColumnNames, grbUploadSpecificRows, grbCurrencyPair);
 
@KendallFrey i dont understand ur "use using" comment
 
No just look what is the nicest
Don't just listen to me
 
if (it <> "end") cout << "IT WORKS" . System.Out.println("for sure") +> echo $shindig
else DIE();
why doesn't that work
 
3:32 PM
Sure you did. You edited your code to avoid namespaces.
 
@KendallFrey ahh lol.
 
@Steve != instead of <>?
 
oh
 
What langauge is that? I see Java, C++, and PHP.
 
@DavidDV ill make those changes. Buts its ok to actually pass the textbox or tablelayoutpanel
as inputs?
 
3:34 PM
depends to where you pass these
I don't know the context
so I cant say
 
another class
 
still don't know enough
 
vb
 
anyway why all this refactoring
 
with some gibberish
 
3:35 PM
@DavidDV a helper class in the same project
 
@Steve no way
cout is defintally c++ and echo is defintally php
 
System.Out.println == Java
 
and <> for not equal is definitely vb lol
 
VB + Gibberish == Gibberish
 
@DavidDV i was told to implement unit testin + realised id violated the srp principle in multiple places
 
3:36 PM
ah ok
well still can't say if thats ok withouth seeing almost all the code
 
so figured i might as well redo the whole project from scratch
 
@HansRudel Keep in mind: violating principles on a daily basis is normal
 
Oh, good.
 
yeah fuck principles
:p
 
@Baboon @DavidDV lol nice to know
 
3:37 PM
they're principles, not carved rules, they only apply as far as common sense goes
3
 
every principle should be a guideline
that is not always needed in every context
 
@Baboon +1, good point
 
Says the principle addict.
 
@Kendall Do you know how to publish programs
 
Upload.
Link.
 
3:38 PM
well this will be the last hoop jumping i will , hopefully, have to do
thanks for ur input guys, much appreciated
 
well i'm off to my picnic, have fun, and @KendallFrey .... stay out of trouble
 
No settings->publish
 
I do not touch ClickOnce.
 
I remember when I was working in Canada, we'd have beer fridays
 
lol, cool
 
3:40 PM
where team leaders would go buy lots of packs and tell people to stop working
and we'd drink beers and chill all together
good times
 
I design all apps to be able to be copied into a folder and ran. Except when requirements dictate.
 
@Baboon isnt it common to have wine with ur lunch in Paris?
 
@Kendall Yes but for your website you should publish them. I am going to
 
@HansRudel in summer, pink wine yes
but usually we drink beer at lunch
 
cool
 
3:44 PM
when we drink at all
 
that wouldnt fly here, ppl would just get shit faced
 
Hi guys, i want to ask if the array.sort() is perfect or not..or am i just making any mistake..
 
"would get" or "are"? ;)
Define perfect.
 
get even more
 
for example, this lunch my commercial brought us consultants from the area to lunch
 
3:45 PM
 
and i drank about a liter of beer
 
@Sangram It's right. You're wrong.
 
@Baboon id have been crawling back to the office
 
You expect it to be sorting by numeric value, it's sorting by string.
 
@Sangram you sort by string not by int
 
3:46 PM
Shit.
sorry it was silly
:P
thanks
 
You should be storing numbers as numbers if you want to use your numbers as numbers.
5
 
yesh Kendall..i got that...Thanks..
 
Yo dawg...
 
@KendallFrey that was one cool piece of advice xD
 
3:55 PM
anyone have some good deathmetal pandora stations?
 
@klut Chemlab + Mastadon + Black Dahlia Murder + Opeth + KMFDM + Drowning Pool makes for a good mix
 
@HansZ thanks, i heard someone jamming some in their car yesterday and it has been so long I needed a fix. couldn't come up with bands off the top of my head
 
@klut Black Sabbath + Deep Purple + Metallica + Rammstein + Marilyn Manson
 
4:03 PM
+ Justin Bieber, he's so hard core ;)
 
underoath came up... wow, it really has been too long
 
<3
for klut
;)
 
@DavidDV never has a node been deleted faster
 
that's a nice looking girl david
 
4:06 PM
lol
 
you arse... now i gotta idle til the picture is gone so no one walks past my desk like "wtf are you doing"
 
we all know u secretly saved it for later ;)
 
Hmm, I'm beginning to see the value of TDD
 
Or if you are using Chrome, you can just inspect the element, and remove it.
 
I enter the room. See Bieber, can't unsee. :(
 
4:13 PM
just type and he moves away
just start some trolling like TDD = waste of time
 
@Nican I did it with Opera
 
didn't know you could do that
 
Me neither
Go away Biever!
 
post some other pictures then
 
4:15 PM
Do any of you have experience with Report Viewer SSRS?
 
Come in. See JB. Inspect element. Delete node. Then read the chat since I was here.
 
Brilliant idea.
 
ITS BEIUBS! BEEIBS! OMG BEEEIBS!
 
4:31 PM
If an event is fired and I have a handler, does that function get put onto a queue somewhere? If I am in the middle of executing code, does it interrupt that?
 
The code that you are in the middle of executing will be the code that fires the handler.
The handlers are queued and executed one by one.
If a UI event happens, it is not fired until the UI thread becomes free.
 
1
Q: Add optional gzip compression to selfhosted WCF service

rekireHow can I add a optional gzip compression for my selfhosted WCF service? I'm using for this senario the WebHttpBinding. I want to check if the Accept header contains the string gzip and compress than the content. I would like to use a custom Attribute. So far I curriently use a custom Attribute ...

 
This is completely UIless, I have a thread that calls a function outside of the thread scope and that raises an event inside of it.
 
An event is always run on the thread that fired it. This may be any thread, which is left to the event firer to decide.
 
Alright. Thanks.
 
4:36 PM
It is impossible for a busy thread to fire an event.
If it looks like it does, that means that somewhere the thread called some code that fired the event.
 
If I call a function outside of my thread function, is that in the thread that called it or the main thread?
 
I'm not sure what you mean. A function always executes on the thread that calls it.
 
If two threads call the same function, then the same function will be running on both.
 
And we have a typical race condition.
 
But is it ok if the event that is raised in that thread is handled in another?
 
4:40 PM
Impossible.
An event is handled on the thread it is fired from.
 
I implemented the IHttpHandler interface in a class (thus an ASP.NET handler) with IsReusable enabled, but multiple instances of the class are created. Why?
 
It is possible for the firing code to create a new thread to fire the event on, in which case the event handler won't run on the main thread.
 
Hmm...I wanted an event to be fired when my thread is done and have my manager type of class have a handler so it knows when a thread is finished
 
Use Task or BackgroundWorker.
 
Are those fairly light weight?
 
4:43 PM
Lighter than creating a new thread, since they use the thread pool.
 
A Task utilizes a thread from the thread pool.
 
Alright
Will do, thanks
 
Tasks are awesome.
 
Once you jump on the 4.5 framework, you'll love them even more.
 
Once you jump on 4.5 you won't know what they are, besides part of the method signature.
 
4:46 PM
Well, new programmers, yeah. The more veteran ones love the compiler magic :P
 
Yeah, i have looked at the keywords with 4.5 for the async stuff
I don't see the project I am working on to make that jump for quite a while though.
 
I wish I knew how to create a continuation like the compiler.
 
For any WPF or web-app, I love async. :)
@KendallFrey What do you mean?
 
abc; await mno(); xyz;
Calls abc.
Creates a task that does mno, and continues with xyz.
Returns.
 
Hey Kendall, do you have any links to some amazingly awesome ugly lambda statements?
 
4:50 PM
Or is it without await?
 
like ones that are 3-5 lines long, and 30 chars per line. I saw one once, did some amazing things, but was useless to maintain
 
@RyanTernier Of course. C:\Users\Kendall\My Documents\Visual Studio 2010\Projects\
 
rofl
i said amazing and ugly, not just ugly
 
5:07 PM
Anyone have any idea how a.shapedData = final; can be expensive? Just default getters and setters on shapedData, and final is a string[]
Somehow this line was sampled at 72% of my whole application
 
That seems strange.
 
So I'm trying to bind values to one of my controls, specifically a needle in a RadRadialGauge. my data is stored in Records which has a Value property. The Records are updated with live data. I want to set my needle to a new value everytime Records.Value gets a new value... I can't figure out how to do it. any ideas?
 
INotifyPropertyChanged?
 
yes, thats implemented already
 
Are you firing PropertyChanged?
 
5:12 PM
needle.Value = Records.Value doesn't update the needle though
 
@KyleTrauberman hi
 
@HansRudel morning :)
 
all good in da hood?
 
I over slept this morning
both good and bad
 
5:15 PM
XD
 
lol. as long as u didnt get busted, its all good
 
nah, Boss doesn't care about schedule
as long as the work gets done
nevertheless, I'll stay late tonight
Never saw you yesterday. Did you get your question answered?
As a side note: Ever since I hit 10k rep, I've found it insanely easy to get more rep.
Its like people see the "k" next to my rep
 
lol
 
and automatically click the up vote arrow.
 
takes money to make money, or rep votes
 
5:17 PM
I think I know how Jon Skeet feels now.
apparently
I got an extra ~700 rep without even trying
 
Nah i didnt get it answered but im still trying to finish something first before i contacted u as i didnt want to waste ur time
thats an awful lot
 
its a little less than that
 
In ASP.NET MVC I have a method with the signature "Index(string name)" and want to be able to call it like "/Home/Index/MyNameHere/", instead of "/Home/Index?name=MyNameHere", how would I go about doing that?
 
the rep fuzzer rounds up when it adds the "k"
@RoelvanUden you'll need to define a new route
 
How would I go about doing that?
 
5:20 PM
in Global.asax
find the default route
routes.MapRoute(
				"Default", // Route name
				"{controller}/{action}/{id}", // URL with parameters
				new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
			);
looks like that
 
see the "{id}" part
copy that route, place it ABOVE this definition
and change id to name
alternatively, you could just rename the name param in your action method to "id"
and it will work with the default route
 
.. I would have to do this for every route, everywhere? Can't I map EVERY request according to /Controller/Action/Param1/Param2/Param3/etc..?
 
Can someone explain without demagogy about Enterprise Library ? I don't seem to find a nice article about it...
 
yep
just create one route with all your Params
and specify them all as optional
 
5:23 PM
But a new function will also need a route, correct?
Since every single one needs correct naming
 
nope
not unless you want it to follow a different url scheme
 
hey guys
 
Sorry, I don't get it. I have to RENAME {id} to {name} for this basic example to work, but if I create another function that has "string whatever" instead of name, that route won't work.
So how can I define automated mapping according to parameter order?
 
the argument to the method would need to be called "name"
MVC will use a query string if it can't find a param in a route
 
I just got this as an interview question and was wondering what you guys think about it: How do you sort a list of integers sized 100 times your current memory?
 
5:25 PM
@RoelvanUden You'll need different routes for each different url scheme
 
So I do have to make a route for every action, since they all will have different parameter names (I'm not going to name everything param1, param2, param3..)
 
alternatively you could use attribute based routing
 
That's cumbersome, didn't anyone ever try to change that?
How does that work?
 
where you define the route as an attribute to the method
 
@Hanz - Mergesort
 
5:26 PM
50
A: ASP.NET MVC Routing Via Method Attributes

DSOUPDATE: This has been posted on codeplex. The complete source code as well as the pre-compiled assembly are there for download. I haven't had time to post the documentation on the site yet, so this SO post will have to suffice for now. UPDATE: I added some new attributes to handle 1) route ord...

 
Yep, merge sort.
 
there's a codeplex project it looks like
 
That's even worse.
 
yeah that was what i was thinking
 
Those are your options, unfortunately
 
5:27 PM
though the best answer according to him was, assuming a 64 bit machine, counting sort on every possible integer value
 
Why is ASP.NET MVC so popular if the base of thing, routing, is so cumbersome? :|
 
I don't think its cumbersome.
How would you improve it?
 
@HansZ You first reaction should not be mergesort. Your first reaction should be "Why the f--- would you need 100000000000 numbers?"
 
@KendallFrey bioinformatics? large scale market prediction software? weather simulation?
 
@KyleTrauberman When I have a parameter as non-optional, I'd expect one block in the URL to map on that, and when omitted, don't even enter the route. I would also expect automatic mapping of URL to Controller, Action and any defined parameter. The way it currently is requires me to write a LOT of code to have clean and friendly URL and to quite a bit of error handling when URI components are omitted. Unifying that into simple access rules would make sense.
 
5:31 PM
@KendallFrey I have another question for you. You said an event will be handled on the same thread that fired the event. With a backgroundworker, how does an event get fired on the main thread instead of the thread it is running on?
 
I understand a million numbers. A billion even. But 100 billion is just a bit much.
@Justin I suppose it uses an Invoke call.
 
@RoelvanUden well, MVC is open source, so you're free to change its behavior as you see fit. I agree with you on the required param bit. URL Constraints are nice for things like that though.
 
@KendallFrey Ah
 
I wanted to use a url Hash in one of my urls, and MVC balked at it
 
The reason I'm trying to get into ASP.NET MVC is because of Web API and bundling, and the fact I adore .NET. But ASP.NET MVC is cumbersome, and all it should provide is routing and a view engine, or are there benefits it brings to the table that I am not yet aware of (something that would make sense not to use a different MVC implementation)?
 
5:37 PM
MVC is nice for all the hooks in there. Plenty of places to override or extend.
Not to mention your favorite site was developed with MVC
 
@RoelvanUden you just described WebPages
Routing with webforms style pages
using Razor for the views
 
Nah, that's just silly. I described any other MVC, like Fubu, Rasta, Rails, etc.
 
or you can use routing with vanilla webforms
 
So what does ASP.NET MVC bring to the table besides that? I fail to see the point at this time, and I really would like to use an all-MS stack, but this is the only thing I don't get (EF+Web API, etc, love it -- but mvc, why?)
 
I like the SoC
 
5:48 PM
SoC is good, but I find MVC to be really flexable. I'm not tied to using Views as MVC provides
nor am I tied to using any particular ORM or model structure
You could just use EF+WebAPI with HTML and AJAX
or skip WebAPI and use a normal controller
Yeah, there are flaws in how it could do some things better.
 
Guys really sorry, someone is asking for method declaration for one method and one class but I am not entirely sure if I aswered correctly? Which part exactly is the "method declaration" stackoverflow.com/questions/11634578/…
 
but its easy to change how it behaves
@arthurmani method declaration is this:
 protected override void SolveInstance(IGH_DataAccess DA)
 
I really like the razor syntax, even though I have created my own API to implement it in javascript.
The model binding to a view helps a ton.
And the ajax partial pages are pretty neat too.
 
thanks @KyleTrauberman so why is he asking me for the method declaration of a class ? (GH_Component)
 
I think he meant the method declarations in the classes.
GH_Component.Solveinstance and SettingsComponent.Solveinstance
 
5:54 PM
I suspect GH_Component.SolveInstance isn't virtual, hence the error
 
but the GH_component is a class within the sdk...
 
if you comment out your SolveInstance method
then just type "override" and hit space
is SolveInstance a choice in the menu that pops up?
 
comment our the whole method?
out
 
yes
just temporarily
testing to see if VS sees the method as virtual
 
SolveInstance is not in the menu
 
5:57 PM
then you can't override it
 
hmmm
 
what API is this?
 
@arthurmani - Is SolveInstance defined as overridable?
 
it's a plugin for a 3D modelling software called Grasshopper for Rhino
 
@TravisJ virtual, that is.
 
5:59 PM
should I replace override with another value?
 

« first day (647 days earlier)      last day (4299 days later) »