« first day (747 days earlier)      last day (4218 days later) » 

6:00 PM
your biggest problem is that you can't access globals using just strings
 
Yeah.
 
so even if you could use the brackets to access any field on any global, you're left without globals.
and I think this means you're screwed
 
Yeah.
And I need eval.
 
gist: 3995408, 2012-11-01 18:01:16Z
this[ ((![]+[])[+!+[]]) + ((![]+[])[!+[]+!+[]]) + ((!+[]+[])[!+[]+!+[]+!+[]]) + ((!![]+[])[+!+[]]) + ((!![]+[])[+[]])](((![]+[])[+[]])+((!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]])+((!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]))
 
so you need window
 
6:01 PM
best I could do
 
So if I can generate the string "eval", I can use this.
 
you still need a reference to the window object
 
well, call me if you find a way to transform strings into references without any external help
maybe you could look for some exploit in javascript engines
 
I can get e, a, and l from the string "false", but what string will I snip v from? Hmmm
 
6:03 PM
var?
 
not 100% accurate
 
I don't know what you're doing, just thinking of js keywords with a v.
 
@Billdr And how would I generate that string?
 
if you can generate charCodeAt then you just need to use that and pass in integers
 
Yup.
 
6:05 PM
codegolf.stackexchange.com is that way guys -->
 
This ain't code golf.
If it is, it's putter only.
 
code football?
code baseball?
code figure skating?
 
code table tennis
code foosball!!
 
code Call of Duty.
 
no that is c#.net
 
6:07 PM
code Sim City?
 
erlang
or haskell
 
code Super Mario Brothers?
code Tetris!!
 
basic
 
So, Kyle, you wanna talk C#?
 
nah, JS is where it's at.
 
6:08 PM
Okay. I'll go to the JS room. Maybe they like C#.
2
 
room topic changed to C# (AKA The other Javascript room): We don't need glasses. Read the wiki: goo.gl/sw1w5 [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
2
 
I'm still looking for a best practice on implementing a collection of interfaces inside of an interface.
 
string.Format("Yo {0}, what shakalakin' brotha?! So I was thinking we should go somewhere and {2} a {3}", name, never_used, adjective, noun);
 
@Billdr code?
 
@rlemon never_used?
 
6:10 PM
yea
make GC work dammit!
 
C# madlibs. Great.
 
I made a js madlibs
horrible horrible code
but it worked!
 
Anyone got an opinion on Scilab vs Octave?
 
Octave is a cooler name.
 
6:12 PM
room topic changed to C# (AKA The other JavaScript room): We don't need glasses. Read the wiki: goo.gl/sw1w5 [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
 
That's all I can say.
 
Octave is cool
it fits with the C# musical nameing theme
 
@KendallFrey Its for your question, I should probably be fired for not writing it up in five minutes. Need to dust off some rust
And I'm not speculating about when that is gonna be [x]
@KyleTrauberman Have you hused it much?
 
public interface IFoo
{
    //some properties.
}

public interface IBar
{
    ICollection<IFoo> Foos;
    //other stuff
}

//(assume Bar : IBar and Foo : IFoo, and then everything has been initialized correctly.)

bar.Foos=MyFooCollection;//type mismatch, etc.
 
never heard of it
until now
 
6:15 PM
They are OSS Mathlab clones
 
That is not the question, I understand why that is wrong. I want to read up on a better way to approach this situation.
 
gotcha
 
you guys are missing the killer puns
in JavaScript, 2 mins ago, by rlemon
(string)string.Format("I Love {1}{0}", (string)the_word_script, that_thing_we_all_dislike.ToString()).ToString(); // gotta ensure it really is a string.
in JavaScript, 1 min ago, by SomeKittens
@rlemon You still can't prove it's a string. All you've got is a String Theory
in JavaScript, 1 min ago, by rlemon
typeof ""
> Theory
 
So wait, you are talking about C# in javascript?
 
6:17 PM
No, killer puns.
 
@rlemon for april fools day, we need to change the names of this room and js room to each others name. So, C# becomes JavaScript, and vice versa
 
in JavaScript, 1 min ago, by Kendall Frey
I'm not seeing any killer puns to be missed...
 
So, the JS room and C# room are just mirrors already.
 
When would one use a hardcoded string nowadays in something "professional" anyway?
 
6:18 PM
@Tgys When it's better.
 
Like when?
 
lol idk
 
JSON calls, I suppose.
 
Localisation
 
6:18 PM
JSON don't localize
 
"Killer Puns"
 
@Billdr shouldn't you use some scary .net thing for that?
 
Okay, CURL.
 
Never really used that so no real idea what it is ":P
 
think json or xml, but uglier.
 
6:21 PM
well, those should be done using some .net things
XmlDocument etc
 
It is. A collection of KeyValuePairs.
 
mm
 
Key is the name the server is expecting, value is what you want to send.
 
Column names could be hardcoded
 
And then you wrap that in a FormUrlEncodedContent, and you slap that into a variable, then send it with a postasync.
 
6:22 PM
ok enough being punny
 
@zneak @KendallFrey you up for a code quiz?
 
mm
"A code quiz" rofl :P
 
you can try me, I'm setting up a new test device
I might not be super fast to answer
 
@rlemon I did nazi that coming.
 
gonna wait for Kendall, my quiz is not very good but
 
6:25 PM
I'm waiting on you lol
 
Ok, spot the bug in the following:
    IList<int> first = new List<int>() { 1, 2, 3 };
    IList<int> second = new List<int>() { 5, 6 };
    first.ToList().AddRange(second);
 
lol thats easy
 
it doesn't actually add second to first
because .ToList
 
it creates a new list, adds the range, then discards it
 
6:26 PM
^
 
A little bit tricky since the IDE does not give any hints
I should have obfuscated it a little maybe
 
Yeah, maybe.
Make it less obvious.
 
We can call it the FeedTheGC pattern?
 
for (int i = 0; i > array.Length; i++)
{
    // Y U NO WORK???
}
Slightly more obscure?
 
@JohanLarsson gotta keep the GC fed and happy
@KendallFrey loop will never execute
0 is never greater than array.Length
 
6:29 PM
@KyleTrauberman Yeah, I always ponder the question if it is a way to threaten your objects with the GC
@Kyle On fire!
 
I posted that one before :P
 
I'm going home now. Later duders.
 
later @billdr
 
Jon Skeet uses the garbage collector to clean up his keyboard
 
Jon Skeet doesn't use a keyboard, he simply orders the computer to do what he wants.
 
6:31 PM
touche
Wait... me too.
I use the mouse lol
 
lol
the mouse sucks
i only use it because i have to
if I could get away without it, that would be awesome
 
Know what's funny? Computer n00bs never call mice mice.
Mine sucks too.
 
any mouse sucks, no matter how good it is.
its almost always more efficient to do something with the keyboard
especially when coding
 
Except when using mousekeys.
 
Confession: I look at my keyboard as I type. Have taken some serious flaming for that over the years
 
6:35 PM
Same here
 
@JohanLarsson I would flame you too
I never look at the keyboard
 
It's all muscle memory, but I still can't look away for long.
 
@KendallFrey Same == look
 
Thia os wkxo ha[[wns wjrn I so.
 
lol
really
 
6:36 PM
Maybe it is a good thing not to look directly at the code if it gets ugly
 
That took like 3 times as long to type too.
 
if you don't look at it, you can't type?
 
Use a proxy sort of
 
@KyleTrauberman Nops.
see?
 
wtf. I must have some sort of super human typing power.
 
6:37 PM
Or actually learned how to type properly.
I use 3 fingers.
 
it might be due to the way I was taught to type
my highschool, where I learned, had black boxes with the keyboards in them
so we couldn't look
 
AHAHAHAHA
That's fricken funny.
 
i can type without looking at my keyboard too
 
I would have murdered more than one inanimate object.
 
you only use 3 fingers to type kendall?
 
6:38 PM
yup
 
you don't touch-type?
 
Nope
 
We had a typing teacher who had a serious drinking problem. She must have used gallons of perfume trying to hide it
 
HOW DO YOU PROGRAM? WTF
 
with the keyboard
 
6:38 PM
i swear your generation is lazy
of course, my parents have said the same thing about me
and you're only 11 years younger than me
 
I use more fingers when typing symbols
I have code snippets stored in muscle memory.
 
i clearly don,t use all the fingers I should be using to type
but I'm still consistently over 80 wpm
 
Looks like I got a ways to go.
 
try nitrotype.com
 
When I get better at typing my three fingers speed up, I don't use more fingers.
:P
I'm gonna hit the roof soon.
 
6:47 PM
I did that once, be careful.
it doesn't always end as you would like
 
gneh
 
you climbed a ladder to your Juliet?
 
well his name was actually Jeremy, the history books had it wrong all this time
 
That annoying moment when you press F5 in Notepad++.
 
c:/
c:/program
c:/program/run
run/program/run
 
6:51 PM
No, it's DOS
Also, backslashes
Also, I am the world's biggest pedant.
 
well jokes on you, in my universe, running LemonXP that is perfectly valid
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
^ best room ever, all join NOW!
 
Do you think picrofo will reach 500k?
http://stackoverflow.com/users/1712248/picrofo-egy?tab=reputation
 
7:10 PM
Is anyone familiar with AT commands? I'm successfully written up a small program to send out an SMS through the modem I have plugged in. But rather than checking to see if I get an "OK" from the modem I put a 1 second delay after each command. I'm not sure how to read that "OK". Any ideas?
 
Anyone have an opinion on google nexus?
 
Which nexus?
Nexus One?
Nexus S? 4G? Galaxy Nexus? Nexus Q?
 
I did not even know there were many
all/any then
 
I like them. They sent a benchmark for other manufaturers.
 
I'm clueless about the telephone question by the way
 
7:13 PM
No biggie.
As far as the Nexus go, they're farm from the being the worst phones/tablets on the market
but they're a few hairs short of being SuperDooper phones/tablets
 
My only hard requirement is that it is not Apple
 
I had a Nexus S 4G for a year. Great phone with a strong community behind if (if you
if you're into rooting/flashing ROMS
Jumped to a Galaxy S3 and I'm in <3 all over again.
 
Windows tablet, is that an option?
 
I just got the Windows error ding, and now I need to minimize all my windows to find the message. #firstworldproblems
Ah, found it.
It says: ""
 
so helpful
 
7:21 PM
I have windows 8 on my laptop and it's neat. though if your looking into Windows tablets be sure if you want Windows RT or Windows 8
 
best website ever: HTTP://1249763523
 
I recently learned that there are downsides to being always available in IM. If someone else's account gets hacked, the hacker can see you are online, and if they start messaging you, awkwardness ensues. #truestory
 
7:38 PM
 
7:52 PM
 
Wow, kids are brillianter than I thought.
 
hahahahaha
 
Great, I'm back in time for gifs.
 

« first day (747 days earlier)      last day (4218 days later) »