« first day (636 days earlier)      last day (4327 days later) » 

Jan
3:01 PM
ok, that looks more clean indeed... thanks! :-)
 
hello folks
If I have a 2d arry foo[a][b] such that every b is unique, can I do anything to b that will return a?
 
$("#formS").submit(function (){
setTimeout( function() {
location.reload();
}, 100);
return true;
});
why isn't that working?
 
Is your ID really formS?
 
yep
the form ID ofcourse
 
Jan
You guys are awesome! Unfortunately, this means I will be back for more n00b questions soon...
 
3:06 PM
@jamesson can you give an example
 
@Jan Asking noob questions is the best way to become not a noob
 
I disagree :P
 
Me too
 
Jan
Yeah, but it's painful for both parties. I really appreciate the patience of these who put up with it :-)
 
Ok, one of the ways
Another way is to say stupid things and then listen when people correct you.
 
3:10 PM
Might be for some, but not for me.
I ask questions as last resort, before that it's very intensive research
 
I'm learning Perl by lurking on #perl. It's the first time in years where an irc channel actually made sense.
They argued last night about email servers...and they actually made valid points. Perl people are fucking wizards.
 
lol
 
so.. no one knows?
how do I make a page reload after a submit?
 
@GiovanniDiToro The anonymous function in the submit works okay by itself. Are you sure it's getting run?
 
I'm gonna re-check it
 
3:12 PM
because submit causes the page to stop and navigate to the next page
you want to do a redirection in your server side to accomplish this
 
@Esailija, I make an array foo and put the object bar in every element ( a unique instance with different properties in each). Bar is also an array. Can I access or make a property of bar[n] that will return the index in foo that contains bar[n]?
 
!!/tell jamesson mdn Array.indexOf
@Zirak Command Array.indexOf does not exist.
@Zirak Command Array.indexOf does not exist.
 
;d
 
hey i understood
 
3:14 PM
event loops and made a custom event loop myself in C++ .. too basic uses threading at heaps
 
For some reason the chat sends some messages twice, and strips duplicates on client...could be lag
 
@Zirak, the examples on that page are lost in space =P
 
!!> var arr = [ 'monkeys', 'poop', 'red' ]; console.log( arr.indexOf('poop'), arr.indexOf('Jesus') );
@Zirak undefined Logged: 1, -1
The method's name explains what it does. Just know that -1 means "not found"
 
@Zirak, I must have been unclear
I have foo[a][b], i need [a] from [b]
 
What do you mean "from"? Give an example, pseudocode, of what you want to happen
 
3:20 PM
console.log(foo[a][b].someproperty) returns foo[a]
 
@jamesson ??
 
You loop over foo, do an indexOf over foo[i], done
 
I must be misunderstanding - I don't have foo[i] within a custom object by default, do I?
Nothing knows its own index to the top level, right?
It knows its index in the bottom array, but not the top one?
 
Unless you tell something "hey, this is some number representing your index", it has no reason to care it's inside an array.
 
@Zirak, precisely
So, from what I can tell indexOf will tell me about the second index but not the first?
 
3:26 PM
Hence the "loop over foo"
You know b, your variable is a
I called it i because there because that's the standard name for the induction variable. But you can call it buttmonkey if you wish.
 
Finally solved it
 
var foo = [
    ['a1', 'b1', 'c1'],
    ['a2', 'b2', 'c2'],
    ['a3', 'b3', 'c3']
];

function searchForIndex(array, property) {
    for(var i = 0, l = array.length; i < l; i++) {
        if (~array[i].indexOf(property)) {
            return i;
        }
    }
    return false;
}

console.log(searchForIndex(foo, 'a2')); // return 1
console.log(searchForIndex(foo, 'a5')); // return false
 
@Zirak, ok but b is only unique to that array - other arrays have elements with the same b?
 
Then unless you find some way to uniquely identify it, you can't.
 
okay...
sadsad
Now I will have to make a sad bolt-on uid thing
 
3:32 PM
Why do you even want the child to be aware of where it's in?
Should the parent keep watch?
 
@Zirak, I wish the child to set properties on the parent
 
ugh, what horrible incest model have you created?
 
Not I, the client :)
we have code that outputs to hardware, and the business end of the code is in the individual foo[a][b]'s but also some properties of foo[a] depend on whether or not foo[a][b] has been accessed
If I ask foo[a] to watch foo[a][b] I duplicate a method
 
Hi, has anyone developed apps for Rally developer?
 
@user1133324 No idea.
 
3:46 PM
I'm...I'm going to take a break now.
 
4:05 PM
OMG it's friday and I didn't troll today
user image
2
 
@dievardump lol
 
@Zirak Awesome.
 
Jan
:-D
guys, I have a follow-up to my click-through problem from 1,5h ago...
so here's what currently works: jsfiddle.net/jpCfz/354
basically, the overlay will go away after a click anywhere on the element.
the thing now is this: the underlay will be an embedded media player with a big play button in the center of the element. clicking this button will start loading the actual media object.
so now I want the overlay to go away only when I click the area where the play button is located on the underlay...
any ideas? my best bet was some sort of stencil out of four divs, like this:
 
4:24 PM
@dievardump , you are in a chat room for developer .. it's harder to find theists here then atheists in a church
 
Jan
...where the center area is the only one that actually allows the click-through to the play button
 
that's not possible
you cannot click though an element
 
Jan
@tereško: it worked for me with pointer-events: none; (see the jsfiddle link above)
 
@Jan doesn't work in opera
 
@tereško And yet they still manage to find their way here
 
Jan
4:28 PM
@tereško: that's OK for now. I want it to work in chrome primarily
 
i think right now it works in chrome-only
 
Jan
ok, works for me then :-)
 
instead you should trigger event (with javascript) on the button, when screen is clicked
 
Jan
well, right now I'd like to focus on how I can limit the area for which this behavior triggers....
so basically, I need a DIV with a hole in it. failing that, it has to be something like the picture above. unfortunately, as a CSS/HTML noob I have no idea how to build this :-(
 
<div>Hole</div>
that work?
 
Jan
4:31 PM
;-)
not as well as I would have wanted...
 
$("#SomeKittens").onLameJoke(function(){ rimshot();});
 
Jan
@tereško hmm, can I somehow with javascript direct a click from anywhere on a div to a "play" button of a flash element?
 
you can call functions on flash elements with javascript
 
Jan
hm, that sounds interesting! can you explain how?
 
AJAZZ: un-needed but jazzy use of AJAX
 
Jan
4:59 PM
hm, it looks like the embedded object (btw, it's a prezi) brings its own set of difficulties: jsfiddle.net/jpCfz/368 - for some reason, the stacking breaks...
 
0
A: Computing all possibilities of replacing one character by another

JedaiIn fact replace is not in the standard, this is actually something tha

Oy ^
 
lol what is going on there
 
@Esailija fun! join in ^_^
 
I dunno but it makes me want to learn Haskell so I can hang out with the wacky kids.
 
@ErikReppen Don't do it
 
5:11 PM
What is Haskell usually used for? Seems like a lot of the older JS superstars also have some Haskell exposure.
 
Jan
ok, I'll be off for the moment. If anyone has an idea how I can solve this, please let me know. Thx :-)
 
and by "it" I mean want to learn Haskell (or lisp or any other super-cool-kid language)
 
@rlemon Now you've posed me a challenge...I'm unsure if "Drying solutions that meet your needs" is correct; I think which is more correct, but still...
 
in Lounge<C++>, 22 secs ago, by DeadMG
awww mod delete
 
You'll spend forever "wanting" to learn it, and never will. Bite the bullet and learn you a Haskell!
 
5:12 PM
@Zirak not my concern :P i write code not content.
 
:-)
 
i should perhaps
compile my module atleast once ^_^ lol
 
"Which" starts a non-restrictive clause...so it depends. Actually, I made my mind. "Which" is the correct form, as "[that/which] meed your needs" is a non-vital part of the sentence; only "Drying solutions" is. Good job, self. Thank you, self. Self, you look handsome today. Oh, self!
 
where is raynos when u need him the most T.T
 
Wow that's neat. It just queues every process until results actually get passed to something.
@SomeKittens Thanks for the link.
 
5:16 PM
@ErikReppen No problem. Wonky name, great book.
 
1
Q: JavaScript :: Find the element before and after a specific element

ΩmegaHaving a list with links like this: <ul> <li><a href="#">First tab</a></li> <li><a href="#">Second tab</a></li> <li class="active"><a href="#">Active tab</a></li> <li><a href="#">Fourth tab&...

 
@tereško I know, but there is some
I liked the image, that's all ^^
Like this one
nice facepalm
 
@Neal ...and?
 
@Zirak ?dna...
 
O_o
 
5:25 PM
Hello:)
Anybody know whats wrong with this? It says unread is nothing:/ Thanks!
 
@iHawk unread is nothing ?
Is that the error you get ?
 
When I output unread it doesn't print anything, but there is no error
 
Are you sure your request is sent ?
 
^ was way better trolling
 
More importantly, are you sure that there's a _visitor_alertsUnread property?
 
5:38 PM
methinks same domain issue?
 
I thought it was less important. I planned to ask it after he makes is ajax call working.
Oh it seems to work with Chrome
never mind
 
@Zirak Yes. I think I forgot to call the function..
 
setInterval or window.setTimeout?
;/
 
@rlemon :-P
@rlemon ur just jealous :-P
 
5:49 PM
@iHawk Depends on what you want to do
 
Call the function every 30 seconds
 
Call the function every 30 seconds or re-call the function, 30 seconds after it processed and displayed something on the screen ?
 
go with setInterval
 
I disagree with @Abhishek
 
okay
 
5:52 PM
@dievardump dont tell me u want him to suggest setTimeout and then calling it again from setTimeout with dynamic calculation of time left to call ?
 
I need the badge to update every 30 seconds, so it needs to parse a website evvery 30 seconds
 
Parse an entire website?
 
no a page;p
 
If your parsing like Amazon or something you might need more than 30 seconds ;)
 
@Abhishek no. I want him to call setTimeout after the process.
 
5:54 PM
im just trying to figure out how to call it every 30 seconds
 
@dievardump thats what i said :-|
but in different words [ removed smiley ]
@ErikReppen lol
 
function process() {
//do my process
setTimeout(process, 30000);
}

process();
@Abhishek you asked for dynamic calculation. no need
 
he wants every 30 seconds :P
 
what if his function takes 2000ms ?
and then its 32000ms :P
 
5:55 PM
Thats what I have so far
It doesnt have to be that presice
:4519597
 
Why not setInterval? Seems like the cleaner solution to me.
 
Thats what I'm using, but there is something wrong
 
Then it will be 32. What if the first call is 25 seconds and the second 1 second ? the first call content will only appear for 6 seconds.
 
@ErikReppen cause dievardump likes to ninja
 
5:57 PM
@ErikReppen setInterval is not clean when you deal with asynchroneus content
 
You can't ever really assume precision of timing in JS. You never know when a call might held up by an event firing or something.
 
@dievardump and whats wrong in that ?
 
'get held up'
 
I don't need precision
 
sorry i am thinking from a game designers point of view
if a frame appears for 2ms or 10ms its okay
 
5:58 PM
:0
 
cause the next frame will change it :P
 
@Abhishek a game designer ? I never saw any JavaScript game using setInterval.
They are all using setTimeout
 
...
 
Exactly because you never now how much time will take the rendering
 
5:58 PM
me too use setTimeout :P but here he doesnt needs a setTimeout overkill
 
So what is my issue? Anybody?
 
@iHawk go with setInterval
 
Okay, I did. Its still not working though. pastie.org/4251064
 
You're defining unread as a var inside the function where it gets checked. It's a local variable and not assigning the outer unread.
 
Okay, how do I fix that?
 
6:03 PM
Don't use var in front of the unread inside that function if you want to update the outer one.
When you use var you're saying it's a variable defined inside that block of code. It's no longer a reference to a previously defined var.
 
Oh duh, let me try that:/ Then why is it that it wont print "0" when im not redefining it?
 
Yes. You have no inital value. If it only matters inside that function define it inside that function.
 
Okay:/
 
@Esailija hey quick jQuery Q
 
fire
 
6:08 PM
Same thing with xhr but that doesn't look like it would cause a problem. You just have an undefined xhr doing nothing in the outer scope.
 
I am trying to use on to delegate a click event to future elements.
$('body').on('click', '.jump-links a', function() {
not working (obvy)
 
ok
do you have jsfiddle?
 
no, live site.
 
btw that selector cannot be optimized
 
rlemon.github.com/dryermaster.com-prototype click on links. then any of the links under 'usa'
 
6:10 PM
.jump-links would skip CSS engines completely when matching with the propagation path
 
what do you mean?
 
I mean .jump-links a doesn't get optimized
 
my second question is going to be why in the fuck are my thumbnails not wrapping properlly
 
lol
I cannot find the word usa on the page
 
LOL
did you click on 'links'
 
6:11 PM
ah ok found it now
 
And yes, I didn't see your code before. Dievardump is right about using setTimeout in this case. It's unlikely it would cause a problem with 30 seconds servers can hang for a bit.
...but servers can hang for a bit.
 
die(var_dump());
problem solved.
 
the handler is firing though
$('body').on('click', '.jump-links a', function() {
    console.log("lol");
});
 
@dievardump ^is right about using setTimeout in this case. Forgot @ you for the street cred.
 
it logs "lol" whenever I click a link
 
6:13 PM
ok let me add some more logs.
i just assumed it was the handler. :P rlemon.github.com/dryermaster.com-prototype/links.html goto the page without ajax and you can see it is not :P
however the dafuq moment is this all works FINE locally.
oop nvm
goto the page and clear your cache and it works without the ajax
 
I want to write a UI library that really just RickRolls developers.
 
isn't that jQuery UI?
 
jQuery UI is kind of like getting Rick rolled but also a lot like a kick in the balls. I still stand by JQ core however.
 
I stand by it... but only because it's too big to stand with it. bah-dum-tss
 
@rlemon wait ok so I clear my cache
handler fired app.js:36
#c5 [
<div class=​"thumbnail vcard well">​…​</div>​
] app.js:39
 
6:19 PM
@rlemon die(var_dump('truite')); is better.
 
ok wow
my browser does not want to let go of the js.
 
Chrome?
 
i navigate to the js file and i see the updated code... hard refresh the shit outta the page and it still uses the cached code
ugh
yea
 
lol
 
Latches on to old files like a pitbull sometimes. I think shift/reload usually gets it for me.
 
6:20 PM
@ErikReppen that is what i mean by "hard refresh"
 
Well I think there's other way to do it supposedly. I'm not 100% convinced they all work the same way because I occasionally have the same problem.
 
I should just turn browser caching off while i'm developing.
 
@rlemon in chrome console, lower right corner press the settings button
then checkmark disable cache
 
sweet
 
there's also override useragent
you can pretend to be an ipad
 
6:25 PM
Okay, I'm an ipad.
Stop touching me.
 
do you miss flash, ipad?
 
Nobody misses Flash except guys who only ever wanted use or learn things about Flash.
I realized one day that there's actually a !@#$-ton of Flash sites out there. You just can't find them with Google.
 
3
Q: why (0-6) is -6 = False?

Zagorulkin DmitryGood day. Today i tried to debug project and after few hours analysing i'd got this: >>> (0-6) is -6 False but, >>> (0-5) is -5 True Could you explaing me, Why??? Maybe this is some kind of bug or very strange behavior. Python 2.7.3 (default, Apr 24 2012, 00:00:54) [GCC...

@ErikReppen lol
so true
 
@ErikReppen And that's why no one cares about flash
 
closevetclinic.com like this one
^ my vet
 
6:29 PM
$.noSolarFlareConflict() I lol'd
 
i'm hoping to get time to remake it and try to get some free services from them for the work
:4520164 that was old. not even in my sidebar anymore
ohh nvm. i'm dumb.
 
so in python -5 to 256 are special this way, would have never guessed without already knowing it
cos you know, it's, -5 to 256
 
It's weird that numbers are objects
 
well everything in js is an object as well in the implementation
 
rlemon.github.com/dryermaster.com-prototype/links.html ok ok now the thumbnails are not aligned properly (in chrome ubuntu... chrome on windows they are fine) .
this is what I see ^
however on my bosses pc (windows) his aligns perfect.
they also look like that in FF on ubuntu
going to check IE now
 
6:38 PM
@ErikReppen I disagree ^^'
Flash can be a good thing. i.e : for games or animations
 
@rlemon: lememe suggestion: make it more like a graphics editor so you can combine multiple memes and place text at any position
 
Flash was not meant to do websites at the beginning.
 
would be great to create stuff like that which is often on 9gag - like "<meme 1>\n<bitch please>\n<meme 2>"
 
@ThiefMaster possibly.
 
But good Flash websites ( the ones recompensed by FWA for examples ) are some years behind what you could do smoothly with HTML and JavaScript
 
6:40 PM
I've seen much more impressive canvas/svg games and animations lately.
I don't remember when I saw a flash site and was like "woah"
 
I like flash for offline stuff tbh
 
this is not an answer right? stackoverflow.com/a/11476237/995876 It should definitely be a comment
just protective about my heightened flag weight :D
 
your actual flag weight is not visible to anyone anyway :p
 
omg omg omg, my first visit on a .xxx domain, and it's not even porn
 
yes but if I flag incorrectly, I lose weight, and I lose the amount of daily flags
cos now I am at 51 per day and it's pretty awesome
oh god some douche bag disputed the flag
:'()
 
6:45 PM
NAA (re-)flags are super-easy anyway
yeah, saw it - not sure if it still counts as helpful
 
it doesn't. though does it reduce weight ?
 
it doesn't reduce weight for sure
 
body:"please share" isaccepted:0
free flags for everyone
 
0
Q: twitter bootstrap thumbnails not aligning properly anywhere but Chrome + Windows

rlemonOk so I'm prototyping a site for work and I have run into a small snag using the thumbnails as part of Twitter Bootstrap http://rlemon.github.com/dryermaster.com-prototype/links.html here is a link to the page in question. My issue is very easy to see and is applicable in every browser I've t...

 
@dievardump No disrespect to badass Flash devs but what I hate is the proprietary technology. It has its place if canvas is for some reason not an option but I'm glad it's on its way out.
 
6:50 PM
@rlemon is google chrome windows supposed to be somehow special? it looks all the same to me in windows firefox, chrome and opera
 
idk. I checked on my bosses PC and it is fine
no issues at all.
let me go dbl check his versions
 
i can check it on ubuntu as well
 
@Esailija There are better search terms for this ;)
 
I checked the thread in meta
 
(besides that, it's much better to flag recent crap instead of ancient crap)
 
6:51 PM
but I do order by newest first
so it's not ancient usually
@rlemon doesn't align in ubuntu chrome either
 
that is my point
 
well not in windows either
 
he is using Google Chrome 20.0.1132.57 (Official Build 145807) m + windows XP sp3
looks PERFECT :P
 
oh
 
0
Q: twitter bootstrap thumbnails not aligning properly anywhere but Chrome + Windows XP

rlemonOk so I'm prototyping a site for work and I have run into a small snag using the thumbnails as part of Twitter Bootstrap http://rlemon.github.com/dryermaster.com-prototype/links.html here is a link to the page in question. My issue is very easy to see and is applicable in every browser I've t...

there I updated with specific versions
 
6:54 PM
if I give height it works
.thumbnails > li {
float: left;
margin-bottom: 18px;
margin-left: 20px;
height: 200px;
}
in ubuntu chrome at least
 
@rlemon It is a height issue.
 
@Neal, king of the 2 minutes late
 
@rlemon some have height of 198, while others are 199
 
@rlemon it's the margin-left: -20px
On thumbnails which breaks everything
(negative margins, that's bad)
 
@dievardump thats a bootstrap thing.
 

« first day (636 days earlier)      last day (4327 days later) »