« first day (92 days earlier)      last day (4856 days later) » 
00:00 - 17:0017:00 - 23:00

5:02 PM
I'm not sure how this works. Can I ask question about an answer I saw in a stackoverflow thread and why I think it's incomplete?
 
@JohnMerlino Sure, you can even invite the author to come over if you want to
 
@JohnMerlino Be a bit more precise, what answer do you think is incomplete?
 
Look at the second answer down: stackoverflow.com/questions/2692021/… In this post the second All he does is post a regular expression. But doesn't explain what JavaScript method to use to extract between the two characters. For example, alert(str.substring(str.search(regex2))); will return the entire string. Not the part between two characters.
 
0
Q: Regular expression to extract text between two sets of characters (Javascript)

opticianI would like to extract some text between two points in a string, in Javascript Say the string is "start-extractThis-234" The numbers at the end can be any number, but the hyphens are always present. Ideally I think capturing between the two hypens should be ok. I would like the result of t...

 
Yeah and silentghost just posts a regular expression. But that is just kind of like indicating how the pattern evolves in strring. It's not extracting anything.
 
5:08 PM
>>> "start-extractThis-234".match(/^.+?-(.+?)-\d+$/)
["start-extractThis-234", "extractThis"]
@JohnMerlino The String.match function returns an array of results, so you can grab the second item in the array here
 
ahh, I read about the match method in book javacript programmer's reference, but he wasn't using it for this purpose. Interesting.
I liked silentghost solution. It was short and sweet.
 
@JohnMerlino You'd usually want to go with match, since substring + search seems a little more obtuse
 
I agree
 
Blegh, stuck again...but I am almost done :D
I just can't work out what is wrong with this function, if you go here and look at the section that says 'slideup' github.com/Wolfy87/Spark/blob/dev/src/transition.js
The callback for this.animate is being run but the css within is not being set.
Alert won't even save me.
Every property seems correct....
 
you did that in pure javascript?
 
5:19 PM
Yeah.
 
You should totally drop that...
 
Hah, I know.
I just can't stop. I am enjoying the pain and torture.
Somehow...
 
just make sure to add hasOwnProperty some day :P
 
Hah, next on the list!
I just don't get it. Everything is being run, I have checked every property and function, they are all in scope. It just does not set them...
 
I'd also factor out all the animations into their own functions
 
5:21 PM
It would be a lot cleaner that way.
I probably should have planned a bit more before I set out >_>
 
and you could do this.animationType[method]()
instead of that ugly switch
it's never too late for refactoring
 
So how would that work. $('p').transition[method here];?
 
no I mean inside your library
 
Oh I see
 
SparkFn.animations = {slideUp: fun..., slideDown: fun...}
 
5:24 PM
Hi! :)
 
I think this is worth looking at if you're building libs: james.padolsey.com/javascript/library-foundation-code
 
otherwise your transsition method will grow into an ugly mess
 
That's a lot better. I just need to get that slideup working first.
It will have to be converted though, you are right.
I need to rewrite a lot of the functions.
Well, about two.
 
I'd also stick with good ol' 80 columns :P
 
@IvoWetzel Meh, 80 cols is far too little these days...
 
5:27 PM
@YiJiang Works for me, it's also a sign for too much functionality in a function if your indentation goes on forever
 
@IvoWetzel ... or that you're working with XML/HTML :P
 
also, all I can fit on my 1280 screen here is at max two 80 column windows
@YiJiang Template engines!!!! :P
 
So does line 33 - 46 of that file look at all dodgy to you? Well I know it is pretty disgusting but am I missing a bracket somewhere etc.
 
@Wolfy87 Surely picking out missing brackets is the job of your IDE?
 
5:30 PM
Please see my proposal guys :)
 
@RebeccaChernoff Something went wrong there, that proposal is suppose to onebox
145
Code Review

Proposed Q&A site for feedback on projects you're working on, by sharing your code with fellow programmers and getting extensive feedback/review of best practices, design pattern usage, application UI, security, etc.

Currently in commitment.

2
Ah, it's the referral code
 
@RobertPitt You should post that around mid-week, on weekends there are only a few (read: the same) people here
 
@YiJiang Good point, the response of my editor is 'All good!'. The problem must lie elsewhere.
 
@Ivo Wetzel i will do, this to me seems the perfect place to gather followers
 
Besides of that, I can't wait to <del>rip apart some JS code</del> give some constructive criticism on JS
 
5:32 PM
Heh
 
@IvoWetzel no HTML on chat :/
 
Markdown
No del in markdown. Sad face.
 
No <kbd> in Markdown. :(
 
All markdown can do is stuff like this
 
I feel much better with that avatar. Sure, I'll remove the Gravatar from its bottom :P
@Wolfy87 And stuff like this:
function class(obj) {
    return Object.prototype.toString.call(obj).slice(8, -1);
}
 
5:34 PM
Huh, no highlight.
I thought it did.
 
You can actually do that in Markdown, but the code is very complex.
!="(!=" []]]]]=/////:::HTMLcode=="+!'"/+'------25345283||||||<highlight>Hello, world!</highlight>
Result: Hello, world!
 
O_O
Complex is an understatement.
 
or... not
 
@Nyuszika7H Rrrrrrrrright... -_-
 
Who's Raffy Rabin? O_O Apparently a developer from America who just added me on Facebook...
 
5:39 PM
No, I'm not just kidding. It works for me.
 
Nice looking blog though: blogs.raffyrabin.com
 
aaaaaaah Facebook
 
I know.
I hardly go on the Godforsaken site but still.
I check from time to time.
 
Well... some people are really really dumb
 
5:40 PM
lol
@YiJiang Dumb? Don't be so mean to the dumb people
That guy is just... sigh... ridiculous
 
any of you looked into
 
@RobertPitt o_o
 
@RobertPitt Sure
 
looks pretty interesting :)
 
:kitten quote
 
5:46 PM
Hoorah! It is working. It is down to my css function somewhere I just set it via element.style instead.
 
> "Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration." - Stan Kelly-Bootle
 
@CodingKitten How are you today?
 
@IvoWetzel Ah, are you want?
 
@CodingKitten Uh, what is a "want"?
 
@IvoWetzel member for 1 year, 4 months Took your code for IE and Browser
 
5:48 PM
Oh holy **!
 
@CodingKitten I think you are a pretty poor reflection of my coding skills
 
@YiJiang NEVER! You have in there, anything would care so much about that.
 
This Raffy guy is actually a big name...
Does jQuery talks I think...
 
@CodingKitten Well... that's just making it worse
 
@YiJiang I confess to being unable to post an BASE64 image to manipulate a string...
 
5:49 PM
@CodingKitten !
 
@IvoWetzel Wait! You're telling me gone out :D
 
var myArr = [];
myArr[0] = 'foo';
myArr[0.5] = 'bar';
myArr[0.7] = 'baz';
myArr[2.5] = 'qux';
console.log(myArr); // ["foo", undefined, undefined, undefined, undefined, "bar",  undefined, undefined, "baz", undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, "qux"]
 
@RobertPitt The kitten is written with Node.js, although its "AI"... well..
 
@IvoWetzel Hey, I had absolutely nothing to do with that. I swear!
 
@Nyuszika7H It's undefined behavior - on Firefox it caused the array to turn into an object... or something
@Nyuszika7H Meh, you're doing it wrong. Chat automatically cuts off the protocol
 
@YiJiang Well... an array is an object
 
@YiJiang Fixed :P
 
V8 sets keys
 
@IvoWetzel Okay, an array-object hybrid monster then
 
@YiJiang Gnah, it's nothing more than doing var e = []; e.foo = 2; e['1.4'] = 4
 
console.log(0.99999999999999999); // 1
console.log(0.9999999999999999);  // 0.9999999999999999
 
@IvoWetzel Fair enough, but those aren't really array elements, since Array.length doesn't change as you add more '0.5' indexed elements
 
I never stated them as being elements, they are properties on the object
 
@YiJiang
// YiJiangs horrible talking code
// TODO(for YiJiang): FIX THIS(!)

var words = [], map = [], minLength = 3;
 
5:56 PM
@Nyuszika7H Oy.
 
:kitten rchern
 
double oy
 
:kitten quote
 
> "Talk is cheap. Show me the code." - Linus Torvalds
 
<?php $users = $_GET("$_USERS"); $users["Nyuszika7H"].changeData("reputation", "10000"); ?>
 
5:57 PM
try using C#
 
But you're right, it's not undefined behavior. I blame being still awake at 2am in the morning for that.
 
:D
it's barely 7pm here
 
@IvoWetzel Here too! (UTC+0100, CET)
 
Damn you Europeans and your elitist timezones

Where Americans silently accept the manifest superiority of GMT+1.

Dec 17 '10 at 12:53, 8 minutes total – 21 messages, 3 users, 1 star

Bookmarked Dec 17 '10 at 13:02 by badp

Anyway, 'night
 
good night
 
6:03 PM
localStorage.setItem('item', 'value') vs. localStorage['item'] = 'value'
localStorage.getItem('item') vs. localStorage['item']
localStorage.removeItem('item') vs. delete localStorage['item']
 
 
1 hour later…
7:15 PM
Wow, this is pretty nice. SO has really outdone themselves.
 
7:50 PM
Hi again! :)
 
 
3 hours later…
10:39 PM
if any of you want to have a play with three.js, i've put one of their examples (the minecraft one) into jsfiddle. jsfiddle.net/ctrlfrk/hheEe
 
00:00 - 17:0017:00 - 23:00

« first day (92 days earlier)      last day (4856 days later) »