« first day (824 days earlier)      last day (4140 days later) » 

3:00 PM
i want the object
 
$('.active')
come on
 
Sam
@MikeBoutin $('.active') ?
 
And what do you want if it doesn't have the class?
 
no... it's a plugin
im not dumb
i have the element related with the plugin $(this), and i want to get the only $(this) with the active class
 
It is interesting to observe the progress someone made from 2009 to date.
 
3:03 PM
but is there a way to don't check all object with hasClass and just take the one i want
 
is there another class or identifier on the object?
$(this) will probably a single element anyhow
would be interesting in what context you are there with this
is it in a .each-loop?
 
Oh. I've been visiting this chat room (not even the main SO site most days) for over a year now
 
@GNi33 its a plugin and it will be in a bind function
var thisEl = $(this);

				if(!thisEl.is(':animated')){
					recoverSize(thisEl);
				}else{
					thisEl.stop(true,true);
					recoverSize(thisEl);
				}
 
Pretty cool.
 
thisEl has class .agent who won't change
 
3:06 PM
@rlemon I really liked USS's K.I.T. Do they have other similar songs?
 
then do $('.agent.active')
 
> This is an incomplete list, which may never be able to satisfy particular standards for completeness. You can help by expanding it with reliably sourced entries. (en.wikipedia.org/wiki/List_of_numbers)
 
jquery will go over every element internally anyhow
 
ok, i just wondering if it has a way to just take it
ty
noob question
 
yeah, that should work just with $('.agent.active')
without you having to loop over anything
 
Sam
3:09 PM
Another noob Q: why isn't my transition wokring here? jsfiddle.net/rZhrq (don't blame; I have not even try to learn CSS yet)
 
@Sam Well, try to learn it first then!
(Also, fiddles load slowly for me)
 
@GNi33 ty, i'm little stressed out now i have to announce to my boss ill quit this job :/
 
Sam
( @AmaanCheval of course I will, just that I like to learn by excersicing and sometimes I'm a little bit impatient when trying to make something work. For now, I just want to know what I'm doing wrong in that little excercise)
 
Yeah, I get it. I'm trying to fix it
I generally don't use transitions with different classes
You can see that the transition does apply if you uncheck the opacity: 1 rule from the console
 
Sam
I tried that 'cause it's an approach someone suggested yesterday here. I also tried to make a pure CSS way. but I think I need to learn more CSS first.
 
3:14 PM
Ugh, I hate how slow JSFiddle gets sometimes
@Sam Why do you have three rules to keep the image hidden?
 
Sam
(Another noob question: what iframe do the commands in the console apply to in jsfiddle? I get no img elements by tag name)
 
display: none; visibility: hidden; opacity: 0;
 
@AmaanCheval look on youtube
 
@rlemon Did. Didn't particularly like any of the others
 
@Sam result
 
3:16 PM
also, you get very odd looks going into a store and buying DDR1 400 RAM
 
@Sam See the frame dropdown on the bottom. You want result
@rlemon Had to for work?
 
^ @AmaanCheval this album is those types of songs
this was pre-dj
and yes for work
ECM LX800
 
Sam
@AmaanCheval now it works. The display none was just a workaround. What I wanted was just to block the elements (originally it said display: block. opacity is for the transition. visibility is just another thing I added via generate and test.
 
man, one of my HDDs is semi-borked.
It works just fine for file storage, but gets fucked up when you try yo do anything decent on it. Linux auto-turns it to readonly, and I cbf to run fsck every other hour.
 
3:20 PM
(yes, it's not an OS thing - reinstalled Arch, even tried ubuntu for same result)
!!/tell FlorianMargaine urban cbf
 
@FlorianMargaine [cbf](http://cbf.urbanup.com/1387260) A term used frequently out of laziness, it means "can't be fucked" or "couldn't be fucked" and in some cases "can be fucked" depending on the context.

For instance..
"I cbf going to the movies"
would be "can't be fucked"

and..
"I cbf getting up for work yesterday."
would be "couldn't be fucked"

where as..
"I'll go when I cbf"
would be "can be fucked"
 
So if anyone cared, that's why I was away. Typing on mobile sucks. But I'm sure none of you care.
 
typing on mobile does suck
 
Mobile keyboards (even physical ones) is nothing next to a real keyboard
 
Had such a nice plan...the giganto HDD for windows & storage, the smaller HDD for linux distro.
I don't want windows to tarnish my linux :(
 
3:23 PM
!!/tell Zirak urban cba
 
@Zirak [cba](http://cba.urbanup.com/666100) CBA = Can't Be Arsed.

CBA is a severe form of laziness.

Often comparable to a psychological/medical condition. CBA is most common in teenagers around the age of 16-17 years of age.
 
If I wanted to say "can't be arsed/assed", I'd have said "cba", and not "cbf".
 
It's a lot more understandable though ;)
 
It's sort of how when you want to order lasagna, you say "I'd have the lasagna", and not "I'd have the priest dildo butt-plug"
 
awww, instaposted.
 
3:25 PM
o____o
 
  o__o
0______0
 
in PHP, 10 secs ago, by Neal
Hehe it seems like one out of every 1.5 people on Stack Overflow are from india
:-P
 
@Neal lulwut?
 
@AmaanCheval exactly... you do not know ratios? In other words 2:3 are indian.
 
Logic would dictate that 2 out of every 5 users would be Indian
2 would be chinese
 
3:28 PM
Hmmm maybe.
 
1 would be either Canadian or American
 
How many Jewish?
 
Yeah,
 
Sam
@AmaanCheval Btw, when I said that now it works, what I meant was that the console works. But still can't get my transition to work. Just saying in case you stopped looking my fidde because I said it worked.
 
@Sam Oh, yeah, I did. Thought you got it to work
 
3:28 PM
the rest of the countries fall off the map unless we make it a larger ratio
Canada should be as well.
Indonesia would be there
 
Yes, but (using their logic) 1.5 of every 1 question askers are help vampires.
 
Sam
Could this code be beautified...?
sfw = setInterval(function(){
  pics = document.getElementsByTagName('img');
  for( i in pics){
    pics[i].style.display = "none";
  }
},1500);
 
@SomeKittens Hmmmmm
 
@Sam looks good to me. Minor fixes, but whatever
 
@Sam yes. move the getElementsByTagName out of the interval, unless there might be dragons there?
 
3:30 PM
Yeah, NodeLists and HTMLCollections are live
 
Also that seems very repetitive...
No need to change things that are already display none.
 
Also, you could just use document.images
 
@AmaanCheval BAH
 
Or, you know, just disable images in your browser
 
Sam
I only want to disable them in this tab
 
3:32 PM
I'd put a placeholder image instead of hiding them, really
 
@Sam eh? make a fiddle @sammy...
 
@Sam Its not working
 
Oh, wait.
Only the last image shows for some reason
 
0
Q: HTML5 & Javascript Collisions in the game platform (Y-axis)

user25252The problem affects only the X axis. I have not created a conflict for the X axis I can not deal with the collision when the next platform is higher than the previous one. My all code: http://wklej.org/id/928010/ That's how it works: galeriagiza.pl/cartmanPytanie1.html The most important part of...

 
fixed: jsfiddle.net/amaan/rZhrq/2 (link will be live in a sec)
 
Sam
3:35 PM
@AmaanCheval Yep. Same that happened when I used display:block (see the CSS comment). Anyway, I'm checking it ;)
 
@SomeKittens Na, probably won't be /amaan/ for you
@Sam Yeah, saw the comment
 
@AmaanCheval I'm waiting for you to fix it and then I'll take the credit.
 
@SomeKittens Hahahaha
XD
 
Heh, just saw an awesome explanation of what PHP is
> it's like C had sex with perl and then that baby spent 17 years getting high and developing features in some weird directionless limbo
3
 
Brilliant
 
3:37 PM
whoa. jquery upped their design: api.jquery.com when did they do that?
 
ewww
 
It is too bright...
 
looks like a bad japanese social media video game interface.
 
I like it.
 
I feel like I should be undressing a paperdoll
 
3:39 PM
@rlemon haha yea. It is too spread out.
 
You had a background-color set, so it hid the images below
 
Sam
Is this better?
 
> jQuery is a new kind of JavaScript Library.
 
Sam
sfw = setInterval(function(){
  for( i in document.images){
    document.images[i].src = "http://www.unlekker.net/common/img/dot_blank.gif"
  }
},1500);
 
it'd be time they update their homepage
 
3:41 PM
@Sam Don't use a for...in loop when you don't need to; add your var when you declare variables
 
//TODO: Fix comment
 
Sam
@AmaanCheval Wow, thanks, dude. You also fixed the fade out :)
 
No problem
 
@Sam dude. for..in is only to loop over objects, not over arrays.
also, not using var to declare a variable makes it global.
every time you don't use var, you're killing a kitten
a colleague spent 3 days some weeks ago
on a js bug
turned out it was a forgotten var.
 
Sam
3:43 PM
@AmaanCheval why shouldn't I use for...in as the rule?
 
> A for...in loop does not iterate over non–enumerable properties. Objects created from built–in constructors like Array and Object have inherited non–enumerable properties from Object.prototype and String.prototype that are not enumerable, such as String's indexOf method or Object's toString method.
> The loop will iterate over all enumerable properties of the object itself and those the object inherits from its constructor's prototype (properties closer to the object in the prototype chain override prototypes' properties).
Basically, you get a lot of stuff that you don't want from the object's prototype
Here, it makes sense to just use a normal for loop
 
Do you have any ideas about that?
2
Q: Why jQuery.unique can't work with arrays of strings or numbers?

VisioNIn the description of jQuery.unique() method in the official docs I found that: ... this only works on arrays of DOM elements, not strings or numbers. However, if we try the method for some test arrays with strings or numbers it seems to work fine: $.unique(["Alex", "Andrew", "Maria", "Ale...

 
If you had to go over the keys of an object, you should be using hasOwnProperty
> If you only want to consider properties attached to the object itself, and not its prototypes, use getOwnPropertyNames or perform a hasOwnProperty check (propertyIsEnumerable can also be used). Alternatively, if you know there won't be any outside code interference, you can extend built-in prototypes with a check method.
 
Sam
I see
 
so I'm trying to prevent blacklisted IPs from posting on some blogs, I'm running an ajax call on this this URL: mxtoolbox.com/SuperTool.aspx?action=blacklist%3a{{IP}} with the suspected IP, which is just a site that runs the IP on multiple blacklists. When I'm parsing the results none of the blacklist results are included.. is there parameters like "wait for something.." with ajax calls? ..
 
Sam
3:51 PM
But this is weird. If I change the for declaration to for(var i; i<document.images.length; i++) it won't replace the pictures here.
 
@FlorianMargaine Please use var
 
or maybe the problem is im trying to scrape a site that is scraping sites.. maybe that can't be done?..
 
@Sam You have to assign i a number, like 0, and then use document.images[i] for the particular image
@bushdiver You mean like a callback for the XHR request?
 
Sam
@AmaanCheval LOL, noob mistake.
 
@AmaanCheval Idk if that's what I mean or not..
 
3:54 PM
@bushdiver Have you ever used XHR ("ajax") before?
 
WTH is wrong with the brits?
 
boss wants this new mini pc to have a mini monitor.
5" kinda deal
where the fuck would I get a 5" monitor
or a display that I can fab a driver for
 
probably you'll quickly find something in that size when looking for touchscreens
 
yea but they will be much more expensive and I assume harder to get working on this micro itx
 
@AmaanCheval yes..
 
3:56 PM
vga
 
Sam
@AmaanCheval Btw, why wasn't my CSS working?
 
@ThiefMaster People should be much more afraid of corporations than the government. Business has the money.
 
@Sam Well, the transition wasn't because it was applied on a class that would get removed, so the transition wouldn't be effective. Later it worked only on the last image because the background color was set, and that covered the images under
 
Sam
@AmaanCheval Almost what I thought. Thanks again ;)
 
I'm using XMLHttpRequest and parsing after onload event ..
 
3:59 PM
Hi I got the same error when I tried out the code for image pre-resize stackoverflow.com/a/10334170/823386 . The error vanished! However, the code didnt work. Any pointers? — SHOUBHIK BOSE 4 hours ago
wtf is this guy on about?
the error was because the OP didn't define a variable.
did he post to the wrong answer?
 
0
Q: What to use instead of `toggle(...)` in jQuery > 1.8?

NealNow that toggle(...) was deprecated in jQuery 1.8 and then removed in jQuery 1.9 What could be used in general (aside from using the jQuery migrate script) instead of toggle(fn, fn2); thats has the same type of functionality? Related question (asked about a specific case): What to use instead t...

Hopefully that will go nowhere ^
 
Hello, I've just built a project with backbone. Is it just me or does it make you write a lot more code than you do normally?
 
Maybe.
 
Anyone ever heard of chrome and safari headers being treated differently?
I have "Location" in safari and "location" in chrome.
 
4:04 PM
strange.
never heard of that.
 
I know right?
It's given me some really annoying problems with some XHR requests that use the header
 
@Neal the name toggle is very confusing with the more common use of toggle (show/hide) the logic is very simple to implement
 
@BenjaminGruenbaum in fact, toggle is not confusing at all
it is semantic
 
@Incognito why would it matter to you?
 
I can't simply look at one or the other, I need to introduce code to smother one of these two formats to death.
 
4:05 PM
toggle === switch between two different pre-defined states
 
@BenjaminGruenbaum I use the header?
 
@rlemon exactly... idk why they removed it.
 
@rlemon I meant confusion since there is another function named toggle in the API that does something different
@Incognito HTTP headers are case insensative
 
the API is more confusing in other regards.
jQuery Y U SWITCH THE FUCKING ARGUMENT ORDERS?!?!?
el, i vs i, el
RAGE
 
@BenjaminGruenbaum Sure, but the browsers treat them differently. As I said, I can't just use what I'm sending from the server, one transforms it.
 
4:07 PM
@rlemon lol PHP does the same thing.
 
@simich you make me want sandwiches.
 
@Incognito I don't understand, what is the problem with the header? In what way are they treated differently?
 
@Neal jQuery.each(index, element) vs Array.forEach(element, index) is the worst case I can think of.
 
0
Q: A Debug Logger for ES5 Global Objects and some "Host" Objects

pure_codeI don't want to extend the functionality of this method to include say library objects. I'm just looking for feedback on what it currently does. ES5, section 8.6.2 "exposes" these global objects. I added a few Browser or "Host" objects which I needed for my purposes. If needed I can add some ...

 
@rlemon hmmm?
 
4:08 PM
@Neal no. jQuery API is coherent throughout itself. And .each was invented before .forEach was
PHP isn't coherent with itself.
 
@FlorianMargaine exactly!
 
@FlorianMargaine true.
 
@FlorianMargaine bah. jQuery is consistent with itself - but not with native methods they are 're-implementing'
this is what i'm bitching about ^
 
@rlemon because most methods didn't exist when jQuery "invented" them
 
I don't care who came first - native should win
 
4:08 PM
@BenjaminGruenbaum One browser takes "string" and makes it "String". How is that not different?
Using something other than the provided headers. It alters my headers.
 
@FlorianMargaine "PHP" === "PHP" //false. Don't use ==, it's bad practice to cast PHP to a language.
 
About the last feed link : yesterday I pointed 3 major bugs in his code. He acted as an asshole and then deleted his question...
 
again as @FlorianMargaine said... jquery made those methods before the "native" ones existed
 
they were spec'd
no excuse
 
!!> /* comments! */
 
4:09 PM
@Incognito I'm not saying its nice of them, but that's legal since headers are case insensative
 
@SomeKittens "undefined"
 
@SomeKittens, javascript probably has the most confusing equality system implemented in a programming language
 
@BenjaminGruenbaum what?
 
You mean casting, and you're right in my opinion
 
4:10 PM
 
they're well explained in the standard, it's ecmascript, not javascript.
 
@BenjaminGruenbaum o-O
 
Sam
@BenjaminGruenbaum Besides whitespace.
 
@copy He means coercing.
 
and PHP is worse.
 
@OctavianDamiean Oh, yes
 
ah, yeah, coercing.
 
Coercing makes no sense sometimes in javascript
 
meh
you never had to deal with C/C++ operator precedence rules
 
> Programming languages that are not like other programming language I know suck and are bad. You should feel bad for knowing them and using them. - every programmer ever
 
4:13 PM
also, the programming languages I do know are the best, I will prove this based on insignificant examples you will never use
 
0
Q: What exactly does a hyphen mean in CSS?

pythonforspss.orgOn this blog post I found the following CSS snippet: html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } Although I took some basic CSS cours...

wtf
:(
my faith in humanity is gone.
 
lol
Oh, his actual question is fair enough
The vendor prefix confused him
 
0
A: What exactly does a hyphen mean in CSS?

rlemonThe hyphen is used in place of a space to break up joining words. Other languages use CamelCase for this.

And every fucking answer but mine is wrong
HA!
 
white-space < no prefix here
 
4:16 PM
Yeah, for the title
 
@rlemon MOOO HAHAHAHA (downvotes for all! [except yours ^_^])
 
seriously... someone asked this?!
this is what I don't get!
 
Sam
@rlemon +1 You answer the title. But you forgot snake case.
 
Haha who is upvoting the other answers?
 
@Sam snake case?
 
Sam
4:18 PM
this_is_in_snake_case
 
!!/google snake case
 
tada. :-P
 
@rlemon hELlo rOBert hOW arE You
 
Never knew it was called that.
 
THIS_IS_A_SHOUTY_SNAKE
 
I often call it the drunk camel case.
 
ahh I call it underscore
 
Nice answer:
 
but I knew that was wrong :P
 
4:19 PM
2
A: What to use instead of `toggle(...)` in jQuery > 1.8?

Gaby aka G. PetrioliHere is a simple implementation $.fn.toggleClick = function(){ var methods = arguments, // store the passed arguments for future reference count = methods.length; // cache the number of methods //use return this to maintain jQuery chainability return this.each(function(i, i...

 
@rlemon "Under score" is what I usually call the Mets.
 
@SomeKittens booooo LET'S GO METS!
 
Does anybody know where this construct: ${} comes from in the Java/JSP/JSTL/Tag-Lib/Tiles phenomenon? Just trying to sort out all the tech involved in our JSP.
 
Sam
Btw is it true that PHP has some native methods in snake case and others in camelcase ?
 
@Sam yes... it is screwy...
 
4:21 PM
@ErikReppen Booo jsp :/
 
PHP isn't prized for its consistent API.
 
Sam
Any reason for that?
 
@BenjaminGruenbaum Preaching to the choir. I'm just trying to sort this crap out.
 
I wouldn't be surprised to find drunk camel casing in PHP.
 
!!s/for its consistent API//
 
4:22 PM
@SomeKittens Invalid command /s/for its consistent API//
 
It happens when you've got many coders and no coding-convention bible they've all sworn upon.
 
@SomeKittens Zing!
 
@SomeKittens PHP isn't prized . (source)
2
 
Sam
^ +1
 
@OctavianDamiean there's probably a built in function for that drunk_camel_case()
 
4:23 PM
I'm not saying it's not prized for other things. I don't prize it or hate it personally. I just don't like that a lot of the core library stuff feels inconsistent/bolted-on. The general language stuff never bothered me but I'm by no means an advanced PHP-guru.
 
function drunk_camel_case(str) { return 'That\'s what I said to your wife!  HULLLURRRRGGGHH'; }
because escaping ' means you're drunk.
 
That seems like a solid implementation but I didn't understand the part where you couldn't do any form of sql injection in drunk_camel_case
 
PHP is not even case sensitive for function names :x
 
function inject($your_wife) {
 /* SQL Injection attack on your wife! */
 return "u mad bro?";
}
 
And I think even the camelcase-ish functions are usually written in lowercase throughout the docs
 
4:27 PM
aww well shit - that just rendered my answer invalid :( hehe. — rlemon 4 secs ago
 
iF(iSsEt($yourwife)){ EcHo "hElLo";} - perfectly valid php
 
Ever since I switched to Node, I really haven't had much PHP bile buildup.
 
You know what really fucked my mind?
 
@Zirak Your mother?
 
<?php
System.out.print("this works");
?>
 
4:29 PM
Casing is not the problem with PHP's identifier naming, it's a complete lack of consistency across (and sometimes even within) core modules. Also there are some seriously consistency issue with argument ordering, due to bad design in the first place and the BC-at-all-costs attitude of certain people in internals.
 
@SomeKittens She never hugged him. Growing up he had to get his warmth an affection from the family gardner name Raoul
 
@DaveRandom BC?
 
Backwards Compatibility
 
For ex. most of the string functions are func($haystack, $needle) and most of the array functions are func($needle, $haystack)
 
Ah, thx.
 
4:30 PM
There are still some cases I'd rather use php and not node, they are getting very rare though. (In almost all those cases, rails/asp.net mvc/ django would still come before php though)
 
Most of the OOP stuff follows the camelCase method naming convention though, the only thing I can think of that doesn't is MySQLi which is a terrible API anyway.
 
I always thought acronyms were a camel-case gray area.
 
4:47 PM
Hmmm what could I use blipit.net for?
 
To use a blink tag?
 
anyone use cornify in their website?
 
@CBredlow cannot say I have...
 
it's a script that will spawn unicorns on your page
whenever a user clicks at a certain place
 
5:11 PM
need some help with jquery focus...
i am able to get the script to focus an particular input box but for some reason the cursor does not appear on the box...
var prev_row=$("#prev_row").val();

var new_row=$("#prev_row").val().match(/\d+/);
new_row="#row"+(parseInt(new_row)+1)+"-col2";
var new_row2="row"+(parseInt(new_row)+1)+"-col2";

$(new_row).focus().css({
'-webkit-user-select': 'auto',
'-moz-user-select':'auto'
});
document.getElementById(new_row2).select();
 
hit up @NMFSDF
then hit ctrl+k, then hit enter itll format your code in the chat
 
  var prev_row=$("#prev_row").val();

            var new_row=$("#prev_row").val().match(/\d+/);
            new_row="#row"+(parseInt(new_row)+1)+"-col2";
            var new_row2="row"+(parseInt(new_row)+1)+"-col2";

            $(new_row).focus().css({
                    '-webkit-user-select': 'auto',
                     '-moz-user-select':'auto'
                     });
                     document.getElementById(new_row2).select();
 
sorry
 
hahahaha
 
5:14 PM
is there any way to capture/detect a pseudo (ghost DOM node) within an event handler ? :p
 
> May you know peace at last, intern.
 
any ideas ?
 
if you click that pseudo element, how to distinguish those from the original parent node :(
its not even the parent node really, i hate shadow DOM
 
so use real dom @jAndy I guess you can guess based on mouse location?
 
5:30 PM
yea maybe, thats what I was thinking. using real dom in the real environment might also cause some trouble, I'm dealing with an inline-element which contains some inline-block elements, and it has a very good chance to get wrapped
 
@Loktar does the current chatbot request the page on an interval... or does it attach a mutationobserver(s).
 
no idea
thats @Zirak baby
 
so why does the bot not own a mustache
.. might be a bastard bot
 
!!/tell canon help
 
5:37 PM
@SOChatBot How do you feel about all this?
 
you can check out the code
 
@SomeKittens Parity Error: I feel a bit off.
 
*Discussing MS Access*
Me: It's not a database, it's a collection of information that's difficult to work with
Prof: In my day, that **was** a database
Me: Now we call them professors.
 
What does that mean, "that was a database" ?
MSAccess never was considered serious, even in the old times of 4D...
 
5:42 PM
imgur.com/a/vmpTG YaY prototyping
 
You'd have to bring that up with my professor (of Business)
 
That bad boy has got XP sp2 on it
now that I've killed my entire morning building that - time for lunch
 
@Loktar oops, I meant zirak
 

« first day (824 days earlier)      last day (4140 days later) »