« first day (944 days earlier)      last day (4021 days later) » 

8:01 PM
11111 1 1
    11
    11  1
  1  11 1
11    1
    1 11

1 1   1
1  1 1  1
1 1111
1  1 1
 
My team does pretty well at the 24h race qualifyng! (ノ^_^)ノ
 
What race Doc Oc
 
les 24 heures du mans?
 
I was supposed to be there as well right now.
 
I'd love to drive that one day.
 
8:06 PM
Oh not as a driver.
Pit crew.
 
@copy still not seeing a pattern
 
I think I'd rather drive it :-)
 
@FizzyTea Well, I'd love to drive it too but I don't have enough racing experience yet.
 
Well, it's open to the public though, right?
 
!!Socks and Sandals or No socks and Sandals
 
8:08 PM
@XCritics No socks and Sandas
@XCritics No socks and Sandals
 
Wait what
Caprica Six
 
@FizzyTea It is however it's one of the toughest race tracks on earth as well.
 
@Zirak I'm scared, help
 
Fuck off
2
 
LOL
 
8:09 PM
@Zirak This is why we like you
:D
 
@OctavianDamiean Yeah, so you be careful. Would just be great to say I've driven it.
 
@FizzyTea I'm planning to get some real-live experience on the Nürburgring next year or so.
 
Practise on an XBOX first. :-)
@OctavianDamiean Man, that sounds great!
 
@FizzyTea That's not even as stupid as most people think it is! Let me explain.
A driver in that team I was supposed to be in the pit crew now is a neighbor and good friend of mine.
He bought a PS3 and Gran Turismo 5 and said that it is as close as you can get to a real experience.
Of course with a real seat and wheel and so on.
So it's not even stupid to practice there a bit.
 
8:16 PM
I've played that with a wheel. It responds closer to a real car than I was expecting.
 
With some tweaks and a good car setup it is very close to the real car behavior according to him.
 
btw: When did the Roomname get changed?
 
@FizzyTea He gave me an expired race seat, I bought a PS3. GT5 and a Logitech G27 racing wheel. Now I just have to build a frame for all of those components and I'm good to go. :)
 
@OctavianDamiean I had the most fun racing cars like a Golf, because for me that's more realistic. You can slide it just like IRL.
Sounds good! I'd love some peals with a clutch. :-)
 
@FizzyTea I had the chance to drive a KTM XBOW at the Pannonia race track (Hungary) last year. It was a lot of fun.
Something appears to be wrong with the car or something, they're losing a lot of time right now. :(
 
8:25 PM
You are a very lucky guy :-)
 
Oh yea, they're on a BMW M3 GT for this race.
Quite an impressive car.
 
My brother works for BMW. His workshop were building a car for private racing out of spare parts. Dunno how far they got with that though.
 
heh, nice.
 
Nothing serious, just for the craic.
 
Do you watch Formula 1 as well?
 
8:30 PM
I hate lineups
 
Used to, but not these days.
 
@IvoWetzel Tomorrow
 
@Zirak I see, too bad I won't be here then to witness it
 
71
Q: How to declare an array in Java?

bestattendanceHow do I declare an array in Java?

...
 
Oh 13.04 you fucking tosser ...
Of course they have a regression causing kernel panics.
Oh the joy.
 
8:37 PM
@Zirak nudge put the lasagne in
 
@Zirak are you going to have dinner with Caprica?
heh
 
Lasagne is acutally a good Idea for my Dinner on Sunday
 
Rejected yet again
 
@Zirak Turns out I just got lucky then... girlfriend's coming over to my place for the weekend <3
 
By my own creation
 
8:39 PM
@FlorianMargaine All I can think is how horrible Java is.
 
@IvoWetzel Congrats! When did that happen?
 
7, 6, 5, 0, 3, 0, 0, 3, 1, 1, 1, 5, 6, 0, 4, 0, 2, 6, 0, 0, 0, 5, 0, 4, 4, 5, 1, 5, 7, 0, 4, 5, 0
 
@Zirak We had our first Date last sunday, met online like 1 1/2 weeks earlier
 
@copy you tease.
 
8:41 PM
Cannot be random
 
@IvoWetzel Nice, very nice. By the fact you're seeing her again and excited about it, one can assume she's as well
@tereško Relax, I'm not flirting with my own damn bot :P
 
do it in sandbox
 
@tereško What exactly is your problem?
 
@copy You mean unlikely to be random? :-)
 
@Zirak I left really early yesterday to pick her up from work to we have a couple of hours together, we're really identical when it comes to a loooot of things.
 
8:42 PM
@OctavianDamiean mostly the crap that appears in this room
 
(had to leave early, 2:30 by train to get there)
 
@tereško Well, you are free to not hang our here.
 
@IvoWetzel Sounds like you're having fun!
 
@FizzyTea The odds are 1 to 2^99-1
 
@AmaanCheval It's worth it, 5 hours travel yesterday to see her for just 4
 
8:43 PM
@copy :-D
 
@IvoWetzel :D
 
If the bot pisses you off, too fucking bad. Deal with it.
 
@AmaanCheval She went through quite a few things in the last two weeks (a lot of bad luck recently... well except for me now :)
 
I guess it's one of those things that you either see or you don't. And man, I haven't a clue with this one.
 
!!/die
 
8:45 PM
@canon Registered; need 0 more to execute
 
@IvoWetzel Whoa. You closed a bracket with a smiley. My OCD about grammar is confused
 
!!/poll create round1fight OctavianDamiean tereško
 
@Shmiddty Command poll does not exist.
 
@IvoWetzel Congrats, though!
 
@AmaanCheval Thank you very much :) I'm really proud to be her's :)
 
8:48 PM
@rlemon you can email money to your friends!
 
@FlorianMargaine Hahaha, so I'm not alone!
 
yeah me too
 
var count = xs, x => xs.reduce(a, y => a + (x === y), 0); // It's time, Google and Mozilla
 
just found a forum where they propose nice solutions forums.xkcd.com/viewtopic.php?f=7&t=34621
 
I just changed the :) to :D and it looks okay
 
8:51 PM
[stuff :)]
 
I used to put a space in between
But that looks strange too
 
(fancy pants :])
 
tbh I use (stuff :))
 
@copy Doesn't xs, x need () ?
 
@FizzyTea Probably, I don't know
 
8:52 PM
Spidermonkey has fat arrow now.
 
I would be happy with [...].map(#(a)a*a)
 
I like \ because it looks a bit like a lambda.
 
chrome still doesn't have fat arrow :|
eff it, really
 
also, doesn't FF run spidermonkey?
 
I want the fat arrow
 
8:55 PM
You can omit the () with a single arg, but I think the comma causes problems otherwise.
 
then I'll use it and browserify will replace it with compatible code
oh wait
I already can do that...
 
yeah yeah we know you love coffeescript
 
By the way, is operator overloading planned anytime soon?
 
@copy @Shmiddty So have you two figured out the pattern?
 
9:01 PM
Nothing yet
 
you guys suck
 
You go back to reddit, smartass
 
!!/choose chicken beef
 
I got nothin
 
@SomeKittens Command chose does not exist. Did you mean: choose, code, moose
@SomeKittens chicken
 
9:02 PM
@copy poor soul
 
besides 1e8 instead of '00000000'
 
is it because of emacs you don't like me anymore?
 
It's your frenchness
 
@Shmiddty Oh. I can't figure out your sudden decrease in chars then.
 
I just said why. :P
 
9:04 PM
@copy but... I've always been french :(
 
> 7 JavaScript Shmiddty 89 5280
5280 is the elevation of Denver
 
I used to like French culture, but then I saw how they dip baguette with marmalade into coffee
 
@Shmiddty Hah! Oh yeah.
 
dude
it's so good
did you even try it?
 
Ugh
 
9:07 PM
This sucks on an iPad.
@copy That sounds like it could be good.
 
Just making sure
There is no way in hell I can get an iFrame's current URL, right?
I can't, let's say explicitly ask the user for permission or something, right?
 
iframe.src?
 
iframe.src isn't subject to cross-domain stuff iirc...
 
iframe.src stays the same if the user navigates inside the iframe
 
Girl bot?
 
9:13 PM
oh :/
 
1
Q: Explain this Uncaught TypeError: Property 'x' of object [object Object] is not a function

chris_sCan someone please explain why I get the results I do in each of the following situations? I wish to understand why the outcomes are what they are regarding how JavaScript works with scope, if this is what the issue is. In the first example, my code functions properly. var Employees = function(n...

 
Anonymous
9:29 PM
Hello, Javascript people
 
Hey noob
 
-11 24 25 77 -124 22 0 -188 -215 -136 -216
 
hey guys im using a regex generator to match this sort of string h1.blue or div#wrapper or html.no-js & this is what i have come up with, but it does not seem to work for me, does this sound right?
Generated regular expression
/^.*\.|#.$/
Textual meaning of regular expression
Match a string which starts with any character any number of times
followed by the character . or the character #
ending in any character
 
You want it to add in a number of characters, not just one
Yours will match div#b but not div#blue
 
@Connor /\.|#/
Or explain it better.
 
9:34 PM
@FizzyTea how can i explain that better?
 
/.*(\.|#).*/ ?
/^.*(\.|#).*/ ?
In fact: /^.*[.#].*/
 
!!> /^.*\.|#.*$/.test("div#wrapper")
 
@BenjaminGruenbaum true
 
!!> /^.*\.|#.*$/.test("#wrapper")
 
Unless the string contains newlines, in which case you'll need a $ at the end.
 
9:35 PM
That's probably a bad approach, tokenize instead
 
@Connor true
@Piran Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
heh, just wrote a Python script which fetches the live timings of that race and outputs just the information of my team real quick. :P
 
@BenjaminGruenbaum this shouldnt be true - /^.*\.|#.*$/.test("#wrapper")
 
Or not. Depending on what exactly you want to match.
 
!!> /^.*\.|#.$/.test("#wrapper")
 
9:37 PM
@BenjaminGruenbaum false
 
I don't know what you want, that works, but it's still stupid
 
Ugly but does the trick.
 
@FizzyTea select the html element with a id or class like this div.wrapper or h1.title or table#main not .main or .class or .title
 
@OctavianDamiean would be easier with jQuery :P
 
9:37 PM
@BenjaminGruenbaum how is it stupid
 
Scratch that, . doesn't match newlines anyway.
 
@BenjaminGruenbaum Yea, there's a disturbing lack of jQuery, isn't it? :D
 
/^.*\.|#.$/.test("div#wrapper")
 
@Connor You should do this sort of thing (parsing CSS) with tokenization
 
/^.*\.|#.$/.test(".class")
!!> /^.*\.|#.$/.test(".class")
 
9:38 PM
@Connor true
 
$.getJSON("http://www.24h-rennen.de/liveranking/data/qualifying1.json?_=1368823037887").done(function(result){
//do shit with result object
})
 
@BenjaminGruenbaum Right but I wanted to have it on the command line. ;)
 
m59
Does jquery ajax for a script (or shorthand method $.getScript) use eval() to run the response?
 
@OctavianDamiean I'm sure there's a jQuery plugin for that.
 
im trying to match a string that starts with the html tag and ends with a id or class - so starts with any character, contains but does not start or end with (# or .) and ends with any character
 
9:40 PM
@BenjaminGruenbaum Probably. :P
 
@Connor foo.id[0] !== '.'
 
@Connor so you're parsing HTML with regex? Cool
 
@BenjaminGruenbaum no
 
@Connor Parsing HTML with regex is an awesome idea, you should keep doing it.
 
@BenjaminGruenbaum your assuming
 
9:40 PM
*you're
 
like jquery does it $('div.wrapper').hide();
 
i take it you don't know what that does?
 
@Connor /^[^.#]+[.#]/
 
Meh, I have way too much work to troll you about .hide , sadly, I've read the jQuery source code, and the jQuery 2.0 source code, several times.
 
9:42 PM
Or /^[^.#]+[.#].*/ depending.
 
I even filed a bug or two back in the day, I still don't get what you want to do
If you're parsing CSS you're doing it wrong, and if you're parsing HTML you're doing it even worse
 
so if i have this

<div class="blue">Hello </div>
<h1 class="blue">OMG</h1>

then like jquery does $('h1.blue').css('color', 'red'); so only the h1 with a class blue changes
i don't see how that is remotely parsing anything
 
/^[^.#]+[.#].+/ (couldn't edit)
 
You're IMPLEMENTING A SELECTOR ENGINE?
 
@BenjaminGruenbaum making one yes
 
9:46 PM
Without parsing anything?
 
I'm going to stop participating in this discussion now, I'll just say I think you're taking a bad approach in order to do so if it's for education, if it's not just use sizzle. Honestly, best of luck.
 
Why not document.querySelectorAll
 
@BenjaminGruenbaum so your telling me jquery took a bad approach too?
it's exactly what they do
 
@Connor, jQuery use Sizzle
That's the name of their selection engine
 
@Connor No, it's not, I've read the sizzle source code, they don't just match regular expressions, they tokenize... also, jQuery uses document.querySelectorAll on modern browsers
 
9:49 PM
@BenjaminGruenbaum does tokenize like slice it at a # or .?
 
	matchExpr = {
		"ID": new RegExp( "^#(" + characterEncoding + ")" ),
		"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
		"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
		"ATTR": new RegExp( "^" + attributes ),
		"PSEUDO": new RegExp( "^" + pseudos ),
		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
The great thing about open source software is that it's open source
 
If you want to parse HTML with regex you should consider this. [unicorn.js - Parse HTML with regex](javascript: Eggs.Cthulu('<[^>]*[\^[^]]*>.*]');)
 
Ah fuck you chat Markdown!
 
Still, they're not touching the HTML at, they're selecting with DOM methods
 
9:50 PM
Would have been too awesome.
 
@BenjaminGruenbaum how am i touching the html?
 
I don't know, I sure hope you're not
All I said was
16 mins ago, by Benjamin Gruenbaum
That's probably a bad approach, tokenize instead
Which I think you should do if you want to build a selector engine
 
@BenjaminGruenbaum whats tokenize?
 
Break the input into tokens which your parser can understand
!!/wikipedia tokenization
 
@BenjaminGruenbaum so like slice it at # or .
 
9:53 PM
@BenjaminGruenbaum Command wiki does not exist.
@BenjaminGruenbaum Command wikipedia does not exist.
 
screw you :/
Tokenization is the process of breaking a stream of text up into words, phrases, symbols, or other meaningful elements called tokens. The list of tokens becomes input for further processing such as parsing or text mining. Tokenization is useful both in linguistics (where it is a form of text segmentation), and in computer science, where it forms part of lexical analysis. Methods and obstacles Typically, tokenization occurs at the word level. However, it is sometimes difficult to define what is meant by a "word". Often a tokenizer relies on simple heuristics, for example: * All contiguo...
 
lol
 
Yeah, slice at interesting things
 
ok
 
!!/tell BenjaminGruenbaum google "wiki tokenization"
 
A token is a lexical atom.
 
Anyone here got a tablet handy?
And feels like helping me for a sec
 
@BenjaminGruenbaum iPad
 
@FizzyTea iPad works, can you open the browser for a sec
 
9:58 PM
Yep
 
@FizzyTea all set?
 
Chomping at the bit!
 

« first day (944 days earlier)      last day (4021 days later) »