« first day (1255 days earlier)      last day (3694 days later) » 

12:31 AM
@TomW this is how I went about it if you're curious :)
0
A: How do I use spatials with to search a radius of zip codes?

SteveSo, Using Phil's suggestion, I re-wrote a lot of this using spatials. This worked out great, you just need .NET4.5, EF5+ and sql server (2008 and above I believe). Set-Up The first step was to add a Geography column to my database EventListings table (Right click on it -> Design). I named mine ...

 
Guys, I'm having a weird behaviour... I've been reading online about it, but I can't figure it out. I have a function evaluator:

public bool CanProcessAllSelectedItems()
{
return TreeViewItems.GetItemsAtState(true).Count > 0 ? true : false;
}

And this is my extension method:


public static List<TreeItemModel> GetItemsAtState(this IEnumerable<TreeItemModel> list, bool arg)
{
List<TreeItemModel> toRtn = new List<TreeItemModel>();

foreach (var item in list)
{
if (item.Children.Count > 0)
{
foreach (var child in item.Children)
Better readability: Eval. function: puu.sh/7H3tr.png // extension method: puu.sh/7H3v4.png
What am I missing here? TreeViewItems is a public property which exposes a private field...
 
well, whats the error lol
 
Error	2	Inconsistent accessibility: return type 'System.Collections.Generic.List<EterTool.Models.TreeItemModel>' is less accessible than method 'EterTool.Helpers.ListExtensions.GetItemsAtState(System.Collections.Generic.IEnumerable<EterTool.Models.TreeItemModel>, bool)'
I thought an image would be better
 
what is your class signature of TreeItemModel?
 
class TreeItemModel : INotifyPropertyChanged
 
12:39 AM
bet if you put a public in front of that it'll work
 
Seriously...
 
your extension method is public, your class isn't
 
Worked, ehe thanks man
 
yep
 
Yeah, now that you mention it. If I don't explicitly set an access modifier, what's the access level?
 
12:41 AM
assembly i believe
 
Assembly, as in "internal"?
 
yeah, i think, don't quote me on it
pretty sure its not protected because... well thats dumb, and not private because thats dumb too, not public, because we get those errors as you see
only one left is internal
 
yep, makes sense
 
12:58 AM
ugh, i wish i had a front-end friend
 
A what?
 
a ux guy
I gots me one of dem
 
You mean building the user interface and the fancy stuff?
 
yeah
i'm artistically retarded
 
Well, you're welcome to join the club
 
1:03 AM
lol
 
@Steve This
 
my project is actually turning out pretty fricken awesome on the backend, just wish it looked like it on the front
 
Totally wish my school had a graphics design degree
Is it a web app by chance Steve?
 
yeah
mvc
 
@Steve Literally what I'm doing right now. Twitter. Boostrap.
 
1:05 AM
i've played around with it a bit, but all i can do is copy examples from what other people have done
i have yet to make something myself that looks good, even with bootsrap
 
libraries like bootstrap save me from myself
 
but on the positive side of things: i learned to use git, so i quit boning myself so much
 
Twitter bootstrap makes everything presentable, and for those of who are design challenged, or don't want to take the time to become CSS gods, it's perfect.
And what blows me away is that non-design people who also don't know how to program think it looks amazing.
 
lol yeah
 
Oh hey, and bootswatch
 
1:09 AM
never heard of that one
 
Free themes for bootstrap. It gives you some different flavors to make things more unique.
Literally, just copy and paste over a couple css files and you're done
 
oh now thats pretty cool
 
Take some time to learn the grid system of bootstrap for structuring your pages and you'll fall in love with it.
If you haven't..
 
yeah, i did a bit, i remember its like 12 cell wide and you can make your elements span multiple cells
i'm sure theres more to it, but thats about all i remember
 
1:26 AM
Yep. It's basically just the way you approach your pages that becomes more clear. You have a container, which contains rows, and each row is divided into 12 columns.
The stuff form forms and panels is also pretty suweet
 
 
1 hour later…
2:45 AM
@steve Lol you likin' that Jenny girl?;)
 
i was having a bad day, i shouldn't have been so harsh
 
I dont think you were harsh, she was being excessively needey
I had a similar experience yesterday
 
3:00 AM
@Steve for what it's worth, thanks for coming to my defense when she went psycho
 
@deltree Yeah she didd....
 
3:28 AM
@Steve So hows it been?
 
pretty great
spent all weekend working on a side project, learned a lot :)
 
Cool what were you doing?
 
theres a link to it up above - don't feel like spamming it
 
Eh too lazy
 
3
A: How do I use spatials with to search a radius of zip codes?

SteveSo, Using Phil's suggestion, I re-wrote a lot of this using spatials. This worked out great, you just need .NET4.5, EF5+ and sql server (2008 and above I believe). I'm using EF6 + Sql Server 2012. Set-Up The first step was to add a Geography column to my database EventListings table (Right clic...

you son of a bitch ...
 
3:51 AM
Oh neat
 
hello quick question about C# using statement
it smells like bad design, but i want to do using (new PathRemapper()) { ... }
is this valid and does this call dispose at the end?
 
That is the whole point of using
IMO
But anyways.. I gotta go talk to you later @steve
 
yes but it's an anonymous variable
is that ok? i don't use it again
just to clear resources
 
Should be
 
ok cool thanks
 
3:55 AM
No problem
 
if i have a return statement in the braces that's no longer valid, correct?
because it's only exception safe, not control flow safe? or am i wrong
 
 
2 hours later…
6:16 AM
Morning
 
 
2 hours later…
8:10 AM
Morning
 
no9
9:10 AM
moin
 
morning
 
no9
hello
 
9:31 AM
morning
 
oh everyones here today :)
How you guys been while I have been dieing of the flu?
 
Well obviously you haven't "been dying" because you would then be dead
Yet here you are :)
Unless you're a zombie, and then that's news because I didn't know that zombies programmed in C#
And to answer your question, I'm good :) I, on the other hand, have not been dying of the flu.
@DaImTo I'm assuming you're staying at home then?
 
9:47 AM
Hi there, I was creating class diagrams in VS2013
my problem is to how can I elegantly show big operation signatures in class diagrams
they look weird
or whether I can hide parameters
 
@LasseV.Karlsen na I came in to work today I couldn't take Day time tv anymore.
 
10:23 AM
@DaImTo I'm experiencing some symptoms from the flu atm...
 
10:42 AM
This is the first year I have gotten the flu shot. I shouldn't have bothred.
 
I don't need flu shots
normally I get the flu like once every 5 years
 
You should get the flu shots anyway
You might not get sick but you may still carry the flu with you, giving it to others
 
It's just flu, it's not a fatal decease so why should I inject chemicals into my body......
 
it might be fatal to others you give it to, like small kids and elder people
 
11:04 AM
Hi
this chat is dead !
chatroom*
 
To a certain degree, yep
Note, you can hit up-arrow and edit your last message, and if necessary click the little triangle next to an older one to edit that.
 
whats the purpose of having Chat wtf ? i just figured it out today
 
Well...
... to chat?
 
chat to waste time ? or to be more productive?
 
Yes, one of those two
 
11:06 AM
:)
thanks for the editing tip (Y)
 
Also, many of the markdown editing tricks you can use in comments and posts on the main site also work here, like italic, bold, links, etc. You can also reply to posts by clicking on the little arrow to the right of a message when you hover over it, it'll add a :123456 where 123456 is the id of that post. This will also ping that person so that he's aware of being sent a message.
@SyedUmarAhmed Like this one. If you hover over this message you'll see that I replied to one of yours.
 
@LasseV.Karlsen <i>nice</i> <b>bold</b>
 
Check the faq down to the right in the window for tips on formatting, using single asterixes around text for italic, like *nice*, and double for **bold**. And to conclude this, if you want to experiment with chat features, there's a separate room for it, the Sandbox.
 
@LasseV.Karlsen nice
and also we can chat one on one like PM.
@LasseV.Karlsen Sandbox is dead already, anyhow thankyou for your useful tips mate ! gotta go back to work
 
11:41 AM
@deltree pong
 
12:04 PM
What's the simplest way to get a List from a List from a given index?
 
motherList[index]
 
12:22 PM
Oh I found someone to have comment war with :)
 
@KendallFrey that doesn't produce a List..?
 
@Ciaran in that case you need to make your problem clearer
 
Hi how can I know what version of .NET framework particular project on github requires. I am using NLog 2.1, and I want to know which target framework it works with

its homepage : nlog-project.org/2013/10/09/…
github page : github.com/NLog
 
@KendallFrey what I mean is: given a List<String> with "a", "b", "c", "d", produce a List<String> containing only "c" when given index 2. I'm asking if there's a one-liner to do something like this. I know I could get the item I need by index and add it to a new list to achieve the same.
 
you might as well
new List<string>(new string[] { list[index] })
 
1:03 PM
Good Morning Everyone!!!!
 
Hi @JLott
 
How is everyone doing? I have been gone for a week.
 
So was I.
 
1:19 PM
Just found out the company I work for is going to pay for my trip to Google I/O (happy dance)
 
That's awesome
 
Should be weird I wonder how many other women will be there.
 
1:37 PM
Probably not many haha
 
I think there are only 2 other GDEs that are women. There is currently only like 80 GDEs becoming a GDE alone is an accomplishment. But add on to the fact that I'm a woman. Must give bonus points :)
 
Oh yeah lol. We are extremely hirable :P
 
!!wiki gde
 
Debian () is an operating system composed of free software mostly carrying the GNU General Public License. The operating system is developed by an internet collaboration of volunteers aligned with The Debian Project. Debian systems can use either the Linux kernel (known as the Debian GNU/Linux distribution), the FreeBSD kernel (known as the Debian GNU/kFreeBSD distribution) or, more recently, the GNU Hurd kernel (more precisely, the GNU Mach microkernel and its servers; known as the Debian GNU/Hurd distribution). Debian GNU/Linux is one of the most popular Linux distributions for perso...
 
1:53 PM
try this
Why does it never open links for me.
 
hm, seems more adequate, thanks
Well, I can't find women there, at least in the pic on that link hehe
 
Check the members directory there are a couple.
 
Hi Guys, any one can help me with HLSL for RGB code?
float Brightness : register(C0);
float Contrast : register(C1);
float Red: register(C2);
float Green: register(C3);
float Blue: register(C4);

sampler2D Texture1Sampler : register(S0);

float4 main(float2 uv : TEXCOORD) : COLOR
{

float4 pixelColor = tex2D(Texture1Sampler, uv);
pixelColor.rgb /= pixelColor.a;

// Apply contrast.
pixelColor.rgb = ((pixelColor.rgb - 0.5f) * max(Contrast, 0)) + 0.5f;

// Apply brightness.
pixelColor.rgb += Brightness;

// Return final pixel color.
pixelColor.rgb *= pixelColor.a;
 
@KendallFrey pong tag
 
Where is @KendallFrey
 
2:02 PM
he pinged me back this mornin' been after him all weekend for some help with REBEL
it's a very different way to think about programming, that's for sure
 
right, what's up?
 
so, I figured out how variables work and that the programs are essentially a single loop (thanks for the cat prog) is that right?
 
yeah, but there are no variables :)
 
well, that's sort of where this is going
I want to capture a group an unknown number of times, which can't be done in trad regex, but with your looping features it should be doable
 
confused
 
2:09 PM
the problem is, that I then want to use the number in the groups to help me build a regex, and that's where I get lost
I don't want you to build the program for me, but I can walk you through what it is?
if you want
 
Guys can you see who's chatting in SO main?
 
yes please
 
These things are not obeying me
 
it will take in a series of numbers e.g. 1234567890 and a format (3) 3-4
 
I could see who was chatting SO main
Now it is gone
 
2:11 PM
and output the numbers in the format (123) 456-7890
good for phone #s, ccns, etc
 
I'll warn you that decimal math is very hard in REBEL
 
@KendallFrey Ffs
 
a format (ddd) ddd-dddd woulid be quite manageable though
 
my challenge is taking that (3) that's input by the user and getting it into a regex
 
So main?
 
2:12 PM
@DaImTo Stackoverflow main
 
@deltree You can't build regex in REBEL, however ironic
 
Probably a question.
 
@LewsTherin whats that?
 
e.g. /\d{3}/
 
2:13 PM
That's not really chatting is it?
 
let's take your ddd example then, how would I implement that?
 
@DaImTo It was showing a list of users who were currently chatting.
A little div
But when I reloaded it was gone
 
you were part of a trial group
we found that users who saw that data, shortly thereafter went crazy
so we took it down
 
@deltree how can I explain it without writing it?
I just stumbled on a very simple solution
 
well, that one is no the app I'd build
 
2:15 PM
@deltree I hope they don't do that
 
*not the app
dang, that's 3 typos so far today
and it's not even 7:30am yet
@KendallFrey if you can walk me through your version, I think I can figure out how to mod it to fit my version
or alternatively: you do something similar with your 99 bottles of beer stuff
using your ! and @ delimiters
 
I recommend you don't try the math at this point
 
the problem is just taking input and using it to alter the regex
but I suspect that's not what you're suggesting
 
You cannot change the program, so stop thinking about that
Shall I give you a hint?
 
(ddd) is easier than (3) because you're regex replacing the d with the \d from your first input
 
2:18 PM
yes
 
whereas the (3) has to be replaced with ddd first somehow
 
yes, ideally you replace it with d2
 
which would require...math, subtracting one as you count down
 
which becomes dd1, and finally ddd
 
yup
that's where I was just getting to
thanks
 
2:19 PM
however, to do decimal arithmetic, you need a table of digits
and lots of nasty manipulation
 
and a lot of processing power I found
 
I always use unary arithmetic if I can
 
your 99 bottles of beer basically hangs in my pc for a few minutes
 
really? lol
 
I can use the rest of the computer just fine
 
2:20 PM
@LewsTherin let me know if you find it that would be interesting to see.
 
but VisualRebel is frozen, and then of course, the app is done and the screen cleared so I can only assume it ran
:)
 
just use the interpreter
 
@DaImTo I've reloaded my page ten times now but it didn't show up again. Probably a test bug
 
I only use VR for debugging
which it happens to be great at
 
hadn't even fiddled with the interpreter, I assumed VR was you know...your site called it an IDE
:P
 
2:22 PM
it's only half baked
 
no worries, I'll take another stab at it probably tomorrow, gotta wrap up my bot ai for my coding competition which ends tonight
 
right now it's a debugger
 
and yes, it does debugging well
btw, your language would benefit from allowing whitespace, even if it were ignored...so hard to read
be nice to break out each /section/ onto individual lines
 
That's how I develop
I just remove the line breaks before I run
 
I thought you were a developer, what are you doing things manually for?
 
2:24 PM
This is pretty raw, everything is interpreted literally
@deltree I don't do it manually
Ctrl+H
 
lol
 
2:44 PM
hi everybody
i need to know if there is some way to manage nested foreach
firstly i need to know if there is more elegant way to manage foreach nested
 
Ultra short question; I have a class X : ICollection<Y> and want to use it like var a = (ICollection<object>) x;. That cast will fail. What can do this?
 
object !== Y
 
@RoelvanUden question on your question: why not use a List instead? Are there any advantages of ICollection?
 
@BrockHensley where Y : class
@RodrigoSilva Doesn't matter. Not the point :P
 
hi friends, how to take asp.net project backup?
 
2:52 PM
@RoelvanUden Probably due to contra co variance
animal.Add(dog)
animal.Add(cat)
List<Cat>
List<Dog>
Screwed
 
Sure, but I don't care about that situation :P
I just want to call ICollection<T> methoids like RemoveAt
 
Doesn't Ienumerable<T> have RemoveAt? Cast to that instead
Mmn guess it doesn't
 
Howdy peoples.
 
Has anyone had a chance to play with the new Owin and Katana Framework?
 
3:06 PM
What a crap feature
And now it is gone!
 
@Greg Yes
 
Hey guys
 
@LewsTherin a side effect of the crazy is seeing the div reappearing only to disappear when you try to show others. We warned you this would happen.
 
When would I avoid using for a resource?
 
If it doesn't need to be disposed
 
3:22 PM
Of a disposable resource I mean.
 
If you need to catch an exception you might use a try catch instead
 
@BenjaminGruenbaum If it needs to last longer than a single method, in which case you store it in a field and make your class disposable
 
@Shoe How is it?
@Shoe Worth learning?
 
@Greg I think it's good and is better than simplemembership
 
@Shoe Can you elaborate a bit more?
 
3:33 PM
A crappy part about membership was it only worked for very simple logins/roles and you had to implement a crap ton of abstraction in order to override that
simplemembership made that easier because it implemented a lot of that for you, but it was still essentially the same model
and the auto-generate tables for you was a joke really
 
@Shoe How does Owin and Katana fix that?
 
@deltree Hey.. I took a snip :)
So not crazy!
 
@LewsTherin your snip is empty to me
 
What?! You are empty to me!
 
I am empty inside...hungry kind of empty
 
3:37 PM
I forgot to create our CSC 101 test.... crap... crap... crap... I am a horrible TA lol.
 
@JLott no one argued that wasn't the case ;)
 
I will be up late tonight :(
 
glhf
 
@KendallFrey only case?
 
I wouldn't say so without further pondering
 
3:42 PM
@Greg Well Identity largely resolves those issues but Owin and Katana make it a lot easier to implement things like external authentication
 
@Shoe So it really enhances the communication via Server Side / Client Side.
 
The authentication method was tightly coupled to the webserver in the membership framework
Owin allows you to authenticate with any webserver given they follow the same interface
So now your webserver may not do any authentication, it delegates that to something like facebook
 
@Shoe Ah, that is pretty awesome.
 
@KendallFrey ponder on :D
This is for Bluebird btw.
 
hi just want to know if I create a simple Windows Forms application create folders manually to follow my package hierarchy and then write classes in them, after compilation where compiled .class files of .cs files go? Is everything packaged in exe, I dont see any separate DLL created
 
3:48 PM
@Greg In MVC3/4 we had an entire project dedicated to doing stuff like that and new projects had to tweak all this custom code to get membership to do what we needed. When MVC5 came out that all got scrapped. Probably 2000 LOC
 
Nice!
 
Hey
has anyone used aspose.pdf.lic
I dont know where to paste the files. i still get Licence not found.
 
4:06 PM
1
Q: How to add license files as part of custom NuGet package using PowerShell

DarekI am facing an issue with PowerShell and NuGet. I have created a custom package, which also contains a license file in the lib directory. If I use the following code in an attempt to add a relative file so it would be added as a link (install.ps1): param($installPath, $toolsPath, $package, $proj...

 
4:23 PM
@BrockHensley Thanks brock, Checked it already. I had to paste the licence file current applictaion executable directory.
 
@Greg - do you have titanfall yet?
 
@TravisJ Yeah, I already beat campaign I got it on launch. I'm level 22 I think.
@TravisJ I've been playing alot of Project Spark.
 
The two people with the most grating voices in the entire office are having a 15 minute conversation about the coffee maker in the break room that echos right into my ear. #ihatemondays.
 
@Greg - What is Spark?
 
@TravisJ It is a game that lets you play other games, or build your own games. Your imagination is the game, it even implements a language like scratch to program objects and items in your game.
 
4:35 PM
@Greg - So its mouse+keyboarD?
 
The game is infinite, the game types are infinite, as each developer can create a story and world.
@TravisJ It allows for Mouse + Keyboard and Xbox Controller.
You can choose the controller or code it to work with both.
 
 
The syntax is based off tabs, so for instance you want an object to power an animation you would simply do:

**When** this event occurs, **Do** this.
 
@Mike - lol
 
with a for() you can use continue; to just skip to the next one. Is there something similar for a parallel.for ?
 
4:41 PM
parallel.continue
 
found it, just a return;
The body is a delegate function, so that's what it wants I guess
 
@RyanTernier - How jQueryesque
 
@Mike hahaha
 
So I hired this data entry person (recently fired them), and now I am having to go back and fix all their mistakes by hand. They weren't consistent enough to automate the process. fml #caseofthemondays
 
@TravisJ Users are random input generators
2
 
4:45 PM
truth
 
TwitchPlaysDataEntry
 
^
 
visual studio needs to take some inspiration from chrome's keyboard shortcuts with relation to tab management
 
@TravisJ I already mapped ctrl+w to File.Close
 
@Mike - That one is useful, but how about ctrl-shift-t
I adore that one
 
4:53 PM
@TravisJ How about F + U + C + K shortcut?
Seriously someone should make that into a valid shortcut, it instantly shuts down the application and uses the sound "Fuck this application." As it closes.
 
@TravisJ install Productivity Power Tools extension, enable "power commands", map ctrl-shift-t to Edit.UndoClose
 
@Mike - I will keep that in mind
 

« first day (1255 days earlier)      last day (3694 days later) »