« first day (1252 days earlier)      last day (3700 days later) » 

9:00 PM
Well...
From recollection it's not required that the collection implements IDisposable
 
@user3123545 Java has foreach too...
 
@user3123545 You can... but the question is why? .NET provides many more ways of doing that which, in my opinion, are more eloquent.
 
so it's probably more like:

var x = collection.GetEnumerator();
using (x as IDisposable)
{
 
@Shoe I know but you cant remove or add an index with foreaching you will get Iteration exception
 
The MSDN article for providing a manual implementation doesn't mention the using statement nor the IDisposable interface.
 
9:03 PM
IEnumerable<int> AllTheNumbers()
{
    int i = 0;
    while (true)
    {
        yield return i;
        i++;
    }
    yield break;
}

foreach (int i in AllTheNumbers())
{
    // I'm sorry for breaking your brain
}
@user3123545 check that out
it foreaches over an infinite sequence
 
eww yield
 
If you modify the collection being iterated over, most collections will enforce an exception being thrown in the enumerator
 
y so slow
 
@TravisJ so handy
 
@KendallFrey I thought foreach didn't allow non-definite arguments?
 
9:04 PM
Fair enough
 
@Pheonixblade9 non-definite?
 
pastebin.com/QfBkdbyc what language is that?
 
never mind
 
user1804599
@TravisJ Premature optimisation is the root of all evil.
 
user1804599
@Pheonixblade9 You can use foreach with infinite enumerables.
 
9:05 PM
@user3123545 looks like... Haskell maybe? or clojure? one of those weird functional languages
 
@rightfold Premature [somethign] is the root of being broke
 
@user3123545 No - looks like object pascal: en.wikipedia.org/wiki/Object_Pascal
 
user1804599
@user3123545 Looks like Pascal.
 
not haskell if I know Haskell
 
@rightfold - It is a double edged sword. Whose time gets wasted? Mine for pre-optimizing, or yours for improper optimization.
 
9:05 PM
i think @ReedCopsey is right
 
user1804599
I don’t waste time, for I write maintainable code.
 
@user3123545 I'd guess Delphi
 
@user3123545 Looks like some broken version of Pascal.
 
Programming languages are obviously too similar
Nobody mistakes REBEL for another language
 
idk its in my computer science book, it doesn't even tell the langauge name
 
user1804599
9:06 PM
The only Pascal-like language I know is Go.
 
user1804599
And it’s not even very Pascal-like.
 
Who programs in whitespace here
 
 05   ILOVECOBOL     PICX(1)
 
@user3123545 I've never gotten around to it
 
in whitespace?
 
9:07 PM
Do you like esoteric languages?
@TravisJ You know, the programming language
 
Whitespace is an esoteric programming language developed by Edwin Brady and Chris Morris at the University of Durham (also developers of the Kaya and Idris programming languages). It was released on 1 April 2003 (April Fool's Day). Its name is a reference to whitespace characters. Unlike most programming languages, which ignore or assign little meaning to most whitespace characters, the Whitespace interpreter ignores any non-whitespace characters. Only spaces, tabs and linefeeds have meaning. An interesting consequence of this property is that a Whitespace program can easily be contain...
weird langauge
 
most efficient language in terms of printer ink
 

like that?
 
HAI
 CAN HAS STDIO?
 PLZ OPEN FILE "LOLCATS.TXT"?
     AWSUM THX
         VISIBLE FILE
     O NOES
         INVISIBLE "ERROR!"
 KTHXBYE
 
9:08 PM
I use whitespace to program, sure, I don't program in whitespace though, but then again I wouldn't expect any sane person to do so.
 
It said Hello World :P
@Kendall - Lol, it is an old programming language comprised mostly of tabs and spaces.
 
user1804599
@RyanTernier I once wrote a program in COBOL.
 
user1804599
It was a video game.
 
I have programmed in COBOL
 
user1804599
They should rename COBOL to GLOBAL.
 
9:09 PM
Since we're on this topic...
\/!{2}$\/$0$`\/(?<!@)[\\\\\\\/](?=.*!{2}.*(?<!_)$)\/@$0\/(?<!_)$\/_\/@(?=[\\\\\\\/])\/\\\\\/(.+)_\/$>$1!!/!{2}$/$0$`/(?<!@)[\\\/](?=.*!{2}.*(?<!_)$)/@$0/(?<!_)$/_/@(?=[\\\/])/\\/(.+)_/$>$1
 
Nearly got fired for it
 
weeee
 
nsfw
Hm, I found a bug. If you rep cap, and then a user is removed which deletes 2 upvotes, you are still technically capped.
 
user1804599
Speaking of REBEL.
 
In university we watched porn that was written in cobol. ASCII porn... was... weird... because our teacher was showing it!?
 
user1804599
9:11 PM
I should work on Styx.
 
@Pheonixblade9 did you find any spikes? I found a bottle of wine and a bunch of beers.
 
really really wants to evangelize to Lasse
@TravisJ firstest world problems
 
I'm pretty sure that in every context, the word esoteric could be replaced without losing any understanding of the sentence.
with the phrase "f-ed up"
 
@TravisJ Not a bug - the user deletion stuff doesn't impact rep cap issues
there's a meta post somewhere about it
 
@deltree REBEL is not fucked up
 
9:12 PM
@ReedCopsey - Yes, but I am now capped at 180 instead of 200.
 
lol
 
It's quite interesting from a computer science perspective
 
no - the -20 is credited to a different day
on a recalc, if you were over rep on that day, it'll come back
 
@Reed - I see.
 
lol, I forgot about that rep recalculation stuff
 
9:12 PM
Not everyone rep caps daily like you do :P
 
user1804599
I think I will drop the tensor generalisation from Styx.
 
user1804599
Though I don’t like it.
 
user1804599
But it’s too difficult to implement.
 
@ReedCopsey - Do you remember the /name to get to your total rep caps count?
 
never heard that before
 
9:15 PM
@TravisJ Question, is it wrong to use the <main> tag to define the primary content area of a page?
 
@TravisJ nope
 
@Greg - Not wrong at all, some html5 people would suggest that is the "best practice" way of doing it.
 
Okay.
 
@KendallFrey I would not call regex esoteric, no
 
I am going to remain in the div id="main" camp though because it indexes faster
 
9:16 PM
@deltree regex is not, REBEL is
very difficult to write
 
i should go for rep cap tomorrow, rightfold is getting dangerously close
 
@JohanLarsson no I went to lunch and our CEO bought us all beer
 
I think <main> is nicer semantically
 
@KendallFrey according to this, REBEL is just regex kendallfrey.com/projects/rebel.php at least, as I understand it
 
no, it uses regex
it's turing-complete though
 
9:17 PM
is the definition of turing complete difficult?
 
how does that make it different from regex?
 
C# is turing-complete
@deltree Hello, World!/.+/$>$0 is not a regex. It contains a regex
 
in js that would run just fine
 
user1804599
@JohanLarsson No. It’s pretty simple. If it can emulate a Turing machine, it’s Turing-complete.
 
9:19 PM
@deltree what do you mean it would run?
 
user1804599
Usually the infinite tape constraint is omitted as it is impractical.
 
document.write(thatProgram)
 
@deltree That's not how it works -_-
 
@rightfold Not in REBEL nudge nudge
 
9:20 PM
does the wiki get many views?
 
It has a count on it
"viewed 4562 times"
I created it about a year ago
 
one of those ugly 90's ones?
 
@TravisJ :)
 
No I modeled it after a SO question layout
 
I don't see it, but your decision to call the language esoteric, means by your own admission you think few, if any people should ever understand it. Therefore, it's "fucked up"
 
9:21 PM
I could make it the ugly green and black counter just for you though Kendall
I could even make it increment on refresh :)
 
@deltree Just because it's difficult doesn't mean it's fucked up
fucked up implies it has flaws
 
difficult is different from "intended to allow few people to understand it"
that intention is a flaw
 
That's not what its purpose is
 
I like it, for what it's worth, think it's a cool language
I wouldn't call it esoteric
but you chose to
 
well, each to his own
REBL isn't quite as cool a name ;)
 
9:23 PM
agreed
 
I don't think "difficult to understand" is a prerequisite of esoteric languages
 
it's a cool idea, gonna store it and use it to mess with my coworkers
 
When I made it, I called it esoteric because I thought it wouldn't be practical for real-life application
 
if it's turing complete, it is then
so in theory, you've outgrown yourself
 
I have since realized there are a few corner cases where it might be cool
 
9:26 PM
lol
 
So there might be real things it could do
 
good example
 
I haven't made a Turing machine simulator yet, but it would be fairly simple I believe
 
I've been busy for a couple of minutes here and I got a couple of things to reply to
@KendallFrey "really really wants to evangelize to Lasse" -- WHUT?
 
teehee
you haven't met REBEL
my pet language
 
9:30 PM
@TravisJ What do you mean by "Not everyone rep caps daily like you do :P" in response to Travis commenting about hitting cap at 180 instead of 200?
REBEL is just sick
 
teehee
I'm quite fond of it
I finished a 1450 char game engine recently
 
+1 your codegolf for minifying brainfuck
 
I think I could reduce it a bit, but I don't need to
 
@LasseV.Karlsen - I was talking to Reed (he rep caps every day). I had asked about an edge case and he clarified it just before that remark.
 
@KendallFrey I'm listing REBEL on my resume
another language in the bag
 
9:35 PM
lmao wut
 
thanks to knowing regex
 
have you written something in it?
 
I will write something today
 
ping me when you do
I want to see the first ever REBEL written by a non-Kendall
 
I want to modify that requirement
I want to see the first ever REBEL written by a non-Kendall that isn't also mental
 
9:38 PM
:P
 
But then I'm just strange, what do I know
 
Have you ever written a language?
 
Cool language Kendall, just read it
 
:)
@KendallFrey yes
 
hmm, your visual rebel IDE crashed running your 99bottles program
well, ran, but very laggy
@KendallFrey is there a way to keep it from exiting the program immediately upon completion?
 
9:48 PM
@KendallFrey I have written a BASIC-like language yes, but it's a long time ago, it was on the Vic-20
 
@deltree nope, there isn't in VS either...?
 
I mean in the language
like in c# I can do console.read() at the end
 
oh, yeah, you could probably do that
There's no concept of flow though
 
Just so you know it, my cat is having the time of his life apparently, on the desk in front of me.
 
This is why I hate cats.
 
9:51 PM
@KendallFrey your 99bottles program uses some @ symbol syntax like a GOTO
 
s/cats/blacks
don't deny it
 
@deltree It's just a delimiter
nothing special in the regex
The only special syntax I added to .NET was $< and $>
 
k
 
i gtg pretty soon. hope to see you tomorrow.
 
so it's interpreting itself, roger
 
9:54 PM
didn't know stack had a chat... cool...
 
@Martin welcome!
theres a wiki on the right for tips, tricks, etc
 
had to check whether I have got my left and right the correct way round then!
 
lol
 
I was running a little powershell room for a week or two, but nobody really used it
and when I say running I mean sitting idle inside of it
 
That's what running a room is!
You set up a room for "X", and invite people. Even if nobody turns up but you, you're still in the room for X"!
 
10:05 PM
				if (this.SelectedIndex == -1
					&& this.Items.Count > 0
					&& this.GetBindingExpression(SelectedIndexProperty) == null
					&& this.GetBindingExpression(SelectedItemProperty) == null
					&& this.IsDefaultItemSelected)
				{
					this.SelectedIndex = 0;
				}
i don't even care
@ReedCopsey I found it I think
 
10:42 PM
@TravisJ Question...
What is the best way to align an inner item to the far right of a page?

<header>
     <div class="Logo"> <!-- Left of Page -->
     <div class="Social"> <!-- To the Right -->
     <div class="Header-Navigation"> <!-- To The Right -->
</header>

Yes, I know I didn't close the divs.
 
float
 
10:56 PM
double
 
created authorization & authentication tables in sql server with aspnet_regsql.exe, now how do I tell my mvc application to use that
 
position:absolute
 
it doesn't seem to be an attribute in the web.config ... msdn.microsoft.com/en-us/library/1d3t3c61(v=vs.100).aspx
 
@Steve - custom ones?
 
no
 
10:57 PM
@Steve - the asp.net schema?
 
yep
 
@Steve - are you using simple membership or identity
 
i created an internet application, so... wish i could say
what is default?
 
what type of asp.net did you create
vs13?
 
mvc4
and yes vs13
 
11:00 PM
@Steve - In web.config, do you have this?
<membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider">
      </providers>
</membership>
 
no
should I?
i dont have <membership> anything
<authentication mode="Forms">
  <forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>
thats about it, which isn't the place to do it apparently
 
loading...
@Steve - In your runtime tag in web.config, do you have these?
<dependentAssembly>
        <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" />
        <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" />
        <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" />
      </dependentAssembly>
 
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
 
You are using the new Identity membership provider.
Sorry, can't help you. That thing is a POS.
 
okay, so now i at least know what to google
 
11:05 PM
@TravisJ - Open Auth is crap?
 
@SpencerRuport - No, the Identity auth and auth system MS made
 
gotcha
 
I spoke with one of the asp.net insiders at the VS Live convention who sits on one of the panels for it. He said that it had large security issues and too many bugs to use in production and that he was still on SimpleMembership
It is also a huge pain to incorporate into an already existing simplemembership setup
 
crap
but it looks so cool
;)
 
Yeah, it looks cool.
dapper
 
11:11 PM
Since the log-in/log-out functionality is based on Forms Authentication, the membership system can't use OWIN. OWIN includes middleware components for authentication, including support for log-ins using external identity providers (like Microsoft Accounts, Facebook, Google, Twitter), and log-ins using organizational accounts from on-premises Active Directory or Windows Azure Active Directory. OWIN also includes support for OAuth 2.0, JWT and CORS.

You have to admit, thats pretty awesome..... but only if it were secure...
 
@Steve - Are you using OWIN?
 
not yet, but its going in it, yeah
on my to-do list
 
OWIN is just a different way to manage the http pipeline.
 
and it supports azure crap, so ++
 
You can build it up to include all the constructs of asp.net, but the main driving force behind it was to remove system.web as a dependency
 
11:12 PM
"OWIN includes middleware components for authentication, including support for log-ins using external identity providers (like Microsoft Accounts, Facebook, Google, Twitter)"
doesn't that just mean oauth crap for fb and twitter?
ah
 
11:30 PM
The "middleware" is how you use the different hooks in the pipeline.
 
Is Linq-to-SQL not the way to go anymore?
 
@TheRedLou The recommended Microsoft database technology for new productions is Entity Framework.
 
hello there!
can't some body help with a wpf usercontrol animation event ?
 

« first day (1252 days earlier)      last day (3700 days later) »