« first day (877 days earlier)      last day (4075 days later) » 

4:00 PM
 
@AmaanCheval I havent played it
but I hear good things about it
 
@dievardump I really like mine, I'm not sure I'd advise it as an only computer though
 
@Loktar played what ?
 
Sleeping Dogs
 
user1125394
4:04 PM
hmm... have to work with lightstreamer
 
ah. thats now it works
 
hmmm it is a bit off
 
@Loktar Yeah, me too. Bought it based on that
 
I actually like Tomb Raider so far
 
i consider loktars epic
 
4:05 PM
need to hurry up and beat it before wed (for starcraft 2 heart of the swarm )
@Jan-StefanJanetzky LOL
 
Ahhh much better:
 
helo guys i know this question is not about javascript but you guys might have some idea about it
I am getting this error
Forbidden

You don't have permission to access /pictures/ on this server.
On my website
 
.htaccess not allowing you to list content of diretory?
 
@MalikUsman you do not have access to that directory solved
 
have you got a file called .htaccess somewhere there?
could be hidden
(in case you use ftp)
 
4:07 PM
yeah i have got
.htaccess
 
there must be a rule in it to deny directory listening for that folder.
 
Did you even look on the primary website?
 
/pictures/1679091c5a880faf6fb5e6087eb1b2dc.jpg
even image not showing up
 
@MalikUsman Forbidden is a status code, are you getting 403
It means "The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated."
 
well. open that file and post it here unless it contains private informations.
 
4:09 PM
Ok let me
 
If you're using php, you should ask in the php room, if you're using node.js for your serverside you're more than welcome to ask it here
 
just paste it into the chat window and press ctrl + k in order to send it as "code"
 
How can ultrabooks be that slow?
I still do not understand what the problem is
That's it?
 
#Options +Indexes
#Options +FollowSymlinks
RewriteEngine On
RewriteBase /


RewriteRule ^([^/]*)_([0-9]+)\.html?$ index.php?id=$2 [L]
RewriteRule ^page/([^/]*)\.html?$ page.php?page=$1 [L]

RewriteRule ^watermark/([^/]*)\.jpg?$ watermark.php?info=$1 [L]

RewriteRule ^js_([^/]*)\.js?$ scripts.php?get=$1&type=js [L]
RewriteRule ^css_([^/]*)\.css?$ scripts.php?get=$1&type=css [L]
yeah that's it
 
the post you did before was right.
 
@Jan-StefanJanetzky i did again hehe ok whats wrong with it any idea
 
well.. it seems like you have more than this file.
 
Why do you have access to graph.facebook?
 
I look so INDIAN
5
 
4:13 PM
i thought you are oO
 
yeah i have whole script but in pictures folder just images
even there is no index file
 
@Jan-StefanJanetzky no .... dude i am a saiyan
my real name is Turlus
 
w00t! I am at 20GB on cloud space ^_^ anybody else want an extra 5GB with the 5GB included on copy.com (so 10GB)? copy.com?r=RAsNCW ^_^
 
and on my pictures folder have 0777 permission
 
idk what im gunna do with all this space yet :-)
 
4:15 PM
@Darkyen "GUID field to be used by the Javascript performing the beacon call." source
They don't even know how to write JavaScript
 
lol, mustachify is awesome
 
any help @Jan-StefanJanetzky
 
@Neal 25 gb lifetime cloud space on dropbox. i still not maxed all the offers out there.
 
@Raynos thats cool
 
4:18 PM
@Jan-StefanJanetzky well im already at 20GB on copy.com, hopefully will get more with more referrals :-)
 
Hellow
 
moooo hahahahaha
 
i am new to js
 
obviously you are new!
 
@AfnanBashir shalom. ani naftali. mah ha shem shelcha?
 
4:20 PM
@AfnanBashir please format your code...
 
1 message moved to Trash can
@AfnanBashir try to format ur code please. click on the fixed font button.
 
$("[id^=update_cat_]").click(function(){
    var id = $(this).attr("id").replace("update_cat_","");
    $("#update_cat_"+id).show();
    $("#orignal_cat_"+id).hide();
    $.ajax({
       type: "POST",
       url: "'.CController::CreateUrl('ajaxUpdateField').'&id=" +id,
       data: "var1=data1&var2=data2",
       success: function(msg){
         alert( "Data Saved: " + msg ); //Anything you want
       }
     });
    });
 
wait what? where are buttons? i have none here except send and upload
 
now the problem is that in the URL everythhing gets rendered
 
@AfnanBashir What's .CController::CreateUrl('ajaxUpdateField').'&id= ?
 
4:21 PM
put multiple
lines
and it
will
magically
appear
 
except for javascript variable +id
 
what is with your linebreaks? they look odd.
 
CController::CreateUrl('ajaxUpdateField') is used to create url link in Yii
 
@AfnanBashir What's CreateUrl ? What language is that?
 
its php
framework URL
here is the result from page source
url: "/h2e/index.php?r=staff/menu/ajaxUpdateField&id=" +id,
 
user1125394
4:22 PM
anyone here played with lightstreamer?
 
i need to place the value in the javascript variable
 
@Shea Good idea, I'll add it in
 
but it comes as it is
 
@crl nope
 
@AfnanBashir put a console.log the line before and trace id
 
4:23 PM
i dont get it
 
i placed the altrt and it shows the value
15
 
@AfnanBashir So, what's the problem? What did you expect to be there?
 
the id is apearing as it is in the url line
it should he 15 there
for example
url: "/h2e/index.php?r=staff/menu/ajaxUpdateField&id=15"
 
@Raynos Ooh, neat!
 
When your javascript is run that would work, it would evaluate the expression "/h2e/index.php?r=staff/menu/ajaxUpdateField&id=" +id and return "/h2e/index.php?r=staff/menu/ajaxUpdateField&id=15"
 
4:25 PM
Takes a while before he starts animating, though
Just slides at first
 
anyone got some time (and knowledge) to help me out with some regex?
 
ah i see
 
@JamesP.Wright As a general rule f you have a question just ask it, there's no point in asking about asking a question
 
I've got this regex: [a-z, 0-9]+(?=\.|\s) which captures the three words out of this string: "test.other.thing2"
at regexpal.com it works
when I to "string.match" inside JS, it doesn't return "thing2"
 
asking to ask! all the things !
 
4:27 PM
any idea why?
 
 
@JamesP.Wright That makes perfect sense, thing2 isn't followed by a dot or whitespace
 
I guess that does make sense
I'm an idiot
I had hit the enter key at regexpal.com
 
sooo...that would be whitespace
 
4:28 PM
@BenjaminGruenbaum works L) thanks
 
@AfnanBashir np
 
So now I need to write some more html5 games
or add more features to mario
 
@JamesP.Wright What are you trying to match in general? I don't think I would use a lookahead for what you're doing, I'd rather do a string.split(".")
 
@BenjaminGruenbaum : This is just the beginning of a more complex regex
 
4:30 PM
@Raynos: did you write me an email ? Someone from stackoverflow asked me to help with his "Mario game" lol
 
[a-z,0-9]+(?\.|$) works for me
awesome
 
@JamesP.Wright glad I could help
 
Try this out
 
user1125394
!!> range(1,50).length
 
@crl "SyntaxError: Unexpected number"
@crl "ReferenceError: range is not defined"
 
4:35 PM
!!> (new Array(50)).length
 
@BenjaminGruenbaum 50
 
!!> send("test");
 
@Jan-StefanJanetzky "ReferenceError: send is not defined"
 
user1125394
@Darkyen no paki
 
user1125394
4:36 PM
:D
 
@jAndy no. that wasnt me
 
user1125394
 
huh, success! At least the third workstation recognizes all four memory modules and both CPUs.
The third workstation is exactly one as the first one which is borked. So a HP xw6200.
All that's left to do now, is installing a SSD and then reinstalling Ubuntu because I was an idiot and installed the i386 non-pae kernel ...
@Darkyen Nothing wrong with that ...
 
@Raynos isn't that pretty slow:
function gravity(mario, delta) {
    return extend(mario, {
        yVelocity: mario.yVelocity - (delta / 700)
    })
}
to return an extend
 
@OctavianDamiean dude i am a saiyan!
@rlemon need a lil bit of help ... only u can
 
4:46 PM
zipper problems again?
 
@Jan-StefanJanetzky I awoke on Sat, 09 Mar 2013 19:59:49 GMT (that's about 1 day ago), got invoked 198 times, learned 46 commands, but forgotten 5 commands, teleported 78 goats
 
!!/wherearethegoats
 
@rlemon I
 
goats?.. what the..
 
4:50 PM
@rlemon I ate them
 
@rlemon can u add a scouter to my photo ?
 
scouter?
 
Google it ... Dragonball Scouter
 
yea, I can do that
green or red
or green to red in a gif?
 
green :D
oh that'd be cool!
but they dont change colors :-(
i am actually thinking of
 
4:51 PM
ITS OVER NINE THOUSAAAND!!
 
buying Raspberry pi
some really costly shit
for the screen
and making a dbz inspired scouter :D
but that'd be next to impossible :-( i have not much knowledge of hardware
so lets just USE PHOTOSHOP
 
Abhishek the screen would be the hardest I would imagine.
 
i guess someone who would wear a scout would not look that happy
 
fuck, new SSD and no GIMP yet :(
 
i have a question that if you have a div and inner elements and if you have onclick event on parent div why does event fire even if inner divs are clicked?
 
4:54 PM
:)
 
is Inkscape any good?
 
@rlemon yaourt gimp
 
Because they pass the click to the parent...
 
@AfnanBashir bubbling
 
for vectors, yes
 
4:55 PM
Inkscape is lovely!
That's where I drew my avatar
I love it so.
 
!!/tell AfnanBashir mdn Event Bubbling
 
I'm actually not into Beagles; too sleazy. I do love vectors though.
 
well that link isn't useful. but you get the idea.
 
!!/hang solve
 
4:59 PM
8 messages moved to Trash can
 
odd
 
!!/undo
!!/stopthefuckinghangman
 
@rlemon Command stopthefuckinghangman does not exist.
 
!!/forget hang
 
@rlemon You are not authorized to delete the command hang
 
5:00 PM
xD
 
@Zirak you should allow us to disable commands
!!/disable hang or !!/disable stat
 
@rlemon Command disable does not exist.
 
@Darkyen ok GIMP is installed now
 
yes bubbles comes out to true
 
@rlemon you are making my new gravtar :P u know
 
5:03 PM
can we eliminate bubbling
 
@Darkyen biggest issue is: in DBZ their ears are very high :/
 
@rlemon true
 
yours are not, perspectives are hard to get right
 
Git rebase "understanding and success while applying" process: step 1 of 5 - OK
@AfnanBashir yes we can.
 
how because bubbling is i suppose due to div structure
 
5:08 PM
event.stopPropagation();
 
@rlemon leave it i will get my ears transplanted
then take a picture and give u
 
php is good
 
I really had to fuck with perspectives
@Darkyen
 
:D
goes too far over his nose i think
but neat
 
its tough because all of the images of the thing are drawn to fit the stupid cartoon heads
 
5:20 PM
so scale it xD
 
it's the ears that are hard to fit
he looks like Borg now
 
is XMLHTTPRequest removeeventlistener XHR2 or 1?
 
2
!!/choose 1 2
 
@dievardump 2
 
Even the bot agreed
 
5:22 PM
the bot knows !
 
I don't know, btw.
 
 
sorry @dievardump. please take a look at code at below URl, jsfiddle.net/martyk/VE4sU/15 . I wanted to refresh the page after every section Activity1, Activity2,etc.
 
@rlemon i love u!
 
5:23 PM
Anyone here with experience in MSSQL?
 
@developer you should pause the scroll on mouse over
 
Guys, how can I create objects dynamically without using eval()? Like, there's an empty object, and I would like to set obj.(key+i) to a value, how do I do that dynamically?
 
@Incognito I would say it's more an Event feature than an XHR one
 
no I do not want to pause on mouseover.
 
5:27 PM
@DJDavid98 wait what? this does not make sense. eval is useless in any kind of way. also obj.(key+i) does not look like javascript
 
I just wanted to refresh the page between sections, so that I get the most updated version of the information from the server
 
(like it's not XHR spec that says we can listen to it's events, but it's Event specs that says we should be able to listen to XHR events)
Just a guess
 
@Jan-StefanJanetzky Nice.
 
@SomeKittens Some. Why?
 
@KendallFrey Found something interesting, but looks like it's a dead end. I'll get back to you later if I get out of there.
 
5:31 PM
My avatar is now changed
i can now see help vampire level (xD)
 
do any of the chromebooks come with a cd rom?
 
@rlemon thou rang?
 
@SimonSarris yea but I'm good now, Loke came to the rescue
 
I just saved a fiddle and it won't load, damnit!
Oh wait, I can copy paste js from the dashborad, yay
@Jan-StefanJanetzky Btw, found it out already: for (var i=0;i<writers.length;i++){ object[i.toString()] = writers[i] }
 
cache lengths
 
5:36 PM
@Darkyen: you changed it into borg avatar ?
 
@rlemon why?
 
@rlemon: I wanna be the borg !!
 
for( var i = 0, l = writers.length; i < l; i++) } because engines will re-calculate the length each iteration, + if the length changes you're screwed.
so caching the lengths of an array is always a good idea when using as the limit for a for loop
 
@jAndy yes
 
iirc some browsers optimize this for you, some do not. best just do it to be safe
 
5:37 PM
Now i can say
His help vampire level .... its its over 9000!!! LOL
 
@rlemon It wont change and I saw a jsperf that clearly showed it' not faster.
 
on your browser
look don't argue me, look it up
9
Q: Do modern JavaScript JITers need array-length caching in loops?

DomenicI find the practice of caching an array's length property inside a for loop quite distasteful. As in, for (var i = 0, l = myArray.length; i < l; ++i) { // ... } In my eyes at least, this hurts readability a lot compared with the straightforward for (var i = 0; i < myArray.length; +...

 
I thee
 
@rlemon I'm really not sure that's true in chrome anymore
 
yea so only really noticeable in IE9- but it is still good idea. I don't like letting the browsers optimize for me when I can be sure of optimization and just cache the length.
either I cache it, or the browser does behind the scenes. Either way.
 
5:39 PM
@DJDavid98: rlemon is right, various browsers (admittedly, legacies more) do show less performance on not-caching loop variables
 
i find it strange.. isnt the array length only changing when you add or remove elements?
it should be fix in memory
its not a getter
 
however, for performance reasons its pretty sure a 'micro optimization'
 
@rlemon I guess it won't hurt to include it.
 
I often cache it just because I want to know the fixed lengths
what If i'm modifying the length of the array in the loop. now I have l for the original length, arr.length for the current length, and i for the current position
more info > less info
 
@Jan-StefanJanetzky: its about the 'lookup process' for object keys more, which costs
 
5:40 PM
i look a lil bit too calm for a saiyan .. No ?
 
foo.bar is cheaper than foo.bar.hey.woww.this.is.deep
but also. modern browsers will optimize that for you too
 
@rlemon Whenever I can go from explicit to implicit in optimizing code, I'd rather be implicit. I agree that IE<9 might be a problem there though. When you have a "classic" array (that is, mostly fixed in size and sequential) modern JS engines will use an actual underlying C array, so getting the length will be O(1)
@jAndy That's actually an interesting benchmark I'd like to see
 
@jAndy how about foo.bar.hey.deep['wow]['now']['you']['are'].just.bulll['shitting'].deep
 
(Obviously, it's true, I just wander to what effect)
 
well its true but for this kind of operation i guess at least v8 would do it optimized.
 
5:41 PM
same story
 
I would rather see what is actually happening. Caching lengths is an extra couple keystrokes but add a new layer of clarity
 
@jAndy mine should be slower
 
legacy browsers will crawl all the way through the lookup-proces/scope-chain/prototype chain
benchmark that on IE6
you will be surprised how much slower deeper chains are
 
who still cares about IE6?
 
@jAndy Care to make a jsperf?
@Jan-StefanJanetzky 25% of china for example
 
5:42 PM
all IE6 gets from me is a lynx optimized page.
 
the effect is still there
IE7 and 8 too
 
@BenjaminGruenbaum that benchmark is detailed per browser in High Performance JavaScript, by N. Zakas
 
even some firefox versions show drastic less performance on deep chains
 
@SimonSarris You're making me get up from my sit :(
 
The information for the bench is out of date (it uses Chrome versions 1 and 2), but a new edition of the book is coming out very soon
ypi?
nay nay sit down
and wait for the next edition
 
5:44 PM
0
Q: How to setup a popup registeration page in wordpress with function.php

Adameveryone: I wonder if there is existing tutorial on how to create a popup registration page in wordpress by utilizing function.php? or is there another way that can do with it? Thank you!

 
I will be in the next edition :D
 
good for you
 
@SimonSarris Now you're making me bummed that I paid for a book with deprecated benchmarks :P
 
it came out three years ago! thats like a million in internet years
 
5:45 PM
Did anyone ever read and answer, or find interesting a feed question from the wordpress stackexchange site?
 
i think on friday i clicked one that i found interesting
 
@SimonSarris It's still a good book, but I think JS got really fast really fast, which makes some suggestions in it irrelevant today.
 
yeah, little disagreement there
 
On what?
 
that large parts of the book have become dated
 
5:46 PM
afterall, the book is very recommendable
 
it needs an update, and its getting one, and there will be large numbers of jsperf tests included (which were really popular last time)
 
alone for the XHR / MXHR parts and the run-away-script timers, its fantastic
learned a lot back then
 
Hello @NicestFirstnameInTheWorldSarris
 
Hello awesomely-named friend!
 
5:48 PM
second page has a good graph of the prototype chain costs
(with... Chrome 1 and 2 :D )
 
lol @ chrome vs other browsers
 
We should be inclined to believe that other browsers have since gotten better
2010 was around the year that not-chrome browsers started to take JavaScript seriously
though IonMonkey (new JS engine for Firefox) only came out this year
 
O hai Simon.
 
bonj, bauce!
 
Zup guys
 
5:51 PM
i remember a time i used to compile spidermonkey into a gameserver plugin.. that was fun.
nowdays i would choose v8 :D
!!/hang s
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
e, s, service, solve
-e-s--e
 
!!/hang cloud
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
cloud, e, s, service, solve
-e-s--e
 
now we can say that the cloud helped kill someone.
 
good one xD
 
5:55 PM
lol
I always knew that the cloud is bad.
 
!!/hang h
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
cloud, e, h, s, service, solve
-e-s--e
 
this guy is great by the way
@cloud_borat, In the Cloudz
Oh Man, software industry is so full of Bozos - rich source of material.
1.3k tweets, 1.5k followers, following 158 users
this guy too:
@simonsarris, New Hampshire
HTML5 Canvas, JavaScript, Philosophy, Game Theory, Metaphorical Bomb Defusal. I try to deeply love all things. Currently writing a book: http://t.co/kZcKbru4
284 tweets, 192 followers, following 79 users
:D
 
!!/hang l
 

« first day (877 days earlier)      last day (4075 days later) »