« first day (1417 days earlier)      last day (3525 days later) » 

6:00 PM
/*CSS*/
-moz-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
-moz-transform-origin: right bottom;
-webkit-transform-origin: right bottom;
-o-transform-origin: right bottom;
-ms-transform-origin: right bottom;
transform-origin: right bottom;
 
I am teaching a Bulgarian girl who's a friend of mine a bit of English, and look what she just wrote:
oh, I wanna take you guakamole on my mouth!

How should I understand that?
 
user2620028
@ziGi ask for a rephrasing :D
 
"I want to try your guacamole"
Or if she's phrasing, guakamole = penis and on = in
 
can I change it without writing codes in JS/JQuery and only by CSS?
 
"oh, sir, my english is so BAD, please, forgive me"
 
user2620028
6:02 PM
hahaha @SterlingArcher closer to what i was thinking
 
@MRS1367 not sure, sorry. CSS isn't quite my strong suit
 
totally lost it "my english is so BATH"
 
@SterlingArcher tnx for answer
 
Snaps for attempts tho
 
user2620028
@ziGi I would imagine she means she wants to try your guacamole.... especially if you were talking about guacamole! Context man
 
6:03 PM
my codes:
4 mins ago, by MRS1367
http://jsfiddle.net/mrs1367/szrpd4hy/1/
 
user2620028
@MRS1367 you can do it with a simple top: -34px; on the div element. But that may cause other issues. You are the only one who can really know what the proper long term solution is.
 
@AaronSiciliano tnx. I know
 
@AaronSiciliano well actually she had my "guakamole" if you know what I mean before, so I don't get whether it is metaphoric or real what she's trying to say
 
but I want to know that can I change its position with something like:
 
user2620028
@ziGi then be direct and ask her :P
 
6:05 PM
@ziGi Maybe asking her, not us, would be more productive.
Oops, ninja'd.
 
-moz-transform-origin: 20px bottom;
-webkit-transform-origin: 20px bottom;
-o-transform-origin: 20px bottom;
-ms-transform-origin: 20px bottom;
transform-origin: 20px bottom;
 
@Retsam Haha, I just wanted to share
how funny it is when someone doesn't know the language and says something like this
I bet I do the same thing sometimes
I used to work at McDonalds 5-6 years ago
and we did some garbage collection at the back of the restaurant
 
I've never worked with food or a cash register
Never had an ordinary job or retail or anything
 
@copy
 
so the next day the manager, who's English btw, asked me, "Hey chap, did you learn to do the garbage already" and I replied with "Yes, I did it yesterday with Deepak in the back of the restaurant" to which he replied with "I bet Deepak liked it a lot, you dirty bugger"
 
6:08 PM
I had a great job working at Dunkin' Donuts. It was pretty dead the shift I worked (afternoon), so I sat and read books for about 4-5 hours of every 8 hour shift.
If not for the obvious pay difference, I might just have said "forget software development, I'm keeping this job".
 
user2620028
@Retsam hahaha don't you end up doing the same thing anyways?!
 
Money does not always bring you happines
 
I started mowing lawns when I was 10, made maybe $400 a weekend mowing 10 or so small yards. Then I became an Animal Restrainer at a local animal hospital till I was 18, then I went to college. Summer job #1: camp counselor. #2: Pizza delivery (1 night only (insurance reasons)). #3 Campus tech center worker. #4 Pool boy for 2 years
And now I have a career. And thus, the life of Jordan.
 
@ziGi If money isn't bringing you happiness, you're using it wrong.
 
@ziGi iunno I'm pretty happy when I can pay the bills and still afford to feed myself
 
user2620028
6:10 PM
@SterlingArcher animal restrainer? Your life must have sucked for a while lol
 
@SterlingArcher yes
 
@ziGi "Money doesn't necessarily buy happiness, but it's often a prerequisite"
 
it buys you time, if I have money, I won't work a single day in my life
rather do my projects
although what I work brings me joy
cause it is like my hobby
I learn many new things constantly
and I get paid for doing some projects that I like
 
Money brings me video games
 
@SomeKittensUx2666 torrents too, but I do not recommend using them
 
6:12 PM
@AaronSiciliano Nah, I work decently hard at my current job.
 
@AaronSiciliano not really. There were some gross things, but I got to assist in some pretty cool medical stuff, and there was almost always puppies and kittens to play with.
 
@ziGi You can torrent a Rift?
 
user2620028
Money brings me things that i can irresponsibly hurt myself with :/
 
Plus I was good at restraining aggressive animals so I never got hurt
Badly, that is
 
user2620028
@SterlingArcher i am thinking more along the lines of the big dog that doesn't like being held down lol
 
user2620028
6:13 PM
@Retsam i meant reading books. Still a huge thing in the tech industry (Or articles more commonly now)
 
One time I was pinning down an english mastiff named Mama Cass who had a complicated pregnancy so her business was hurting her, and she bucked, slipped under my elbow (she weighed in at 138 lbs) and headbutted me. Almost swelled my left eye shut
 
@AaronSiciliano I actually don't read that many tech books; (or any sort of "serious" books; it's something I'm trying to work on)
 
@SomeKittensUx2666 Iso image of Rift MMO for PC. For those who may want an image of the disc if you have boughten the game online?
 
That was the worst. No horrific cat bites or dog bites -- was lucky and have pretty solid refelxes
 
I read a ton of Fantasy, though.
 
6:14 PM
@ziGi Oculus Rift
 
lol
ofc not
ok but it gets boring after a while
admit it
 
user2620028
@SterlingArcher lucky you man. Also Mama Cass :D Thats just mean lol
 
2 guys (one from computerfile) on a mission to get on live cameras in london
 
Once she healed, it turned out Mama Cass was the biggest sweetheart
 
But I mean, I do agree on general principle that money alone doesn't "buy happiness". If it did, I don't think celebrities would generally be such wrecks
 
6:16 PM
The only reason I didn't go into biology to become a Veterinarian is because I couldn't handle the euthanasia well
 
If any front end devs want a job in Omaha (technically papillion) Nebraska send me your resume
 
I excelled in my animal science and biology classes in high school and early college
 
@AwalGarg It's a wrench
 
I could probably name 30+ dog breeds if not way more
Horses and cats too
It's an oddly specific skill I have
 
user2620028
6:17 PM
@SterlingArcher you know your supposed to be performing it to them, not giving the drugs to yourself right?
 
Lo all
 
@RyanKinal the answer makes no sense at all... atleast not in the context of the question.
 
@AwalGarg code samples which require scrolling though *smh*
 
lmao come to think of it I could have easily stolen a LOT of valium. But I didn't know what valium was when I was 16-19
And even still, why would I want valium? xD
 
@IanClark where is it?
 
6:19 PM
The OP in the question you linked
 
@RyanKinal it's a trick, get an axe.
 
@IanClark ok... but the answer there... I think it should be downvoted, if not removed.
 
@RyanKinal wielded by the butler in the billiards room?
 
I always forget what "smh" means, and I have to google it
 
@SterlingArcher me too, but only cats
 
6:21 PM
@AwalGarg supported, and DV'd :)
 
Fav is Devon Rex
 
:)
 
@RyanKinal I'm keeping you on your toes :)
 
Something like that
 
Who wants to tell me what evil terrible stupidity is lurking in my dumbass approach to control local scoping and use bindings rather than variables:
var bootstrapRetryLoop = function(f) {
  return function() {
    if (!module.require('app'))
      setTimeout(f(f), 250);
  }
}

$(document).ready(function () { setTimeout(bootstrapRetryLoop(bootstrapRetryLoop), 250) });
 
6:24 PM
wat
 
lel
 
Is controlling bindings explicitly like that dangerous, harmless but stupid, or just strange but fine?
 
well, it's super confusing for one
 
@IanClark how would you make the binding explicit? Would you even bother?
 
Can't you use set/clearInterval - would that stop you from needing to store a reference continuously?
 
6:27 PM
Happy birthday @second best
 
@SterlingArcher That's so wrong, I can't believe it has 4 stars
 
@IanClark I guess... wouldn't I need to carry the reference to the interval around then though?
 
@BadgerGirl are people really amazed when you can actually tell that their cat is a Torti, or a Calico? If I do get a cat, I must have a Norwegian Forest Cat. So big anf FLUFFY
Russian Blues are meh to me. Skinny little things
 
six of one, half dozen the other - one way it needs the reference to something while staying anonymous I just used the closure to bind the reference - would I use a different approach to bind the interval id?
 
@copy me too, it was like... 65% a joke
There is some underlying truth though
 
6:30 PM
@copy ^ the cat thing
 
I think quite the opposite: jQuery is terrible, yet there are (valid) reasons to use it
 
@JimmyHoffa
 
@copy what's terrible about it? I've heard this opinion a number of times but never heard an explanation other than "it's large and uses lots of network bandwidth" -> which means it's terrible for certain cases, but not the majority
 
Gah, format on here pl0x?, can't remember
 
user2620028
ctrl k
 
6:31 PM
ty
 
@IanClark but that's an implicit binding, it doesn't bother you that interval is just a hanging reference?
 
@copy I'm in your boat. I dislike the website bloat, but in cases of legacy dependency, it's almost a must have. Makes my life so much easier developing with IE7 in mind
But for dom manipulation? querySelector is like.. all I need.
 
(function() {
  var interval = setInterval(function() {
    if(stuff) clearInterval(interval);
  }, 250);
})();
Hanging where? There's no named function there, so it's using the same number of references as yours was
an anonymous function in the interval
 
@JimmyHoffa The code is unreadable, the API is confusing and overloaded (made for designers/beginners, it accepts arguments in all variants so that you can try and it just works), it doesn't have any error handling
 
Literally no error handling?
 
6:33 PM
It's needlessly bloated, including things like a crummy implementation of a Promise library.
 
Stop using literally like that
 
user2620028
Stop using literally literally O.o
 
@Retsam oh? Is there a preferable one? I've been using JQuerys just because they're handy...
 
I'm a man of hyperbolic statements
 
on a scale from one to even, I literally just can't.
2
 
6:34 PM
@copy Don't all the competitors just try to emulate it's API though? I agree about your points largely, just never thought too much about it... that and I use it only for literally element selection and small tweaks like adding/removing classes or events, nothing more
 
@JimmyHoffa Yeah, bluebird is really the best, generally.
 
<3 bluebird
 
user2620028
@rlemon someone showed that to me the other day lol
 
I also don't really get the jQuery hate - yes it's bloated, and yes it doesn't stick to specs super closely - but we all seem to be forgetting that it was an excellent tool, we used to live in a world where consistent DOM APIs were just not a thing, and jQuery gave us that
 
@Retsam does it present more or less the same API or is it have a different behaviour around it's promises?
 
6:35 PM
But really, any library that follows the A+ Spec for Promises is better.
 
Bluebird follows A+ and adds in a lot of gooshy goodness
 
@JimmyHoffa Unfortunately, the main disadvantage of jQuery promises is that they're different. Almost all other promise libraries (all decent ones) follow that spec I linked above.
 
on the client, maybe it might be a concern it is a larger library -- on the server, who gives a fuck?
 
That's a big reason I suggest not using jQuery promises, because you'll have to unlearn all their quirks when you switch to a different library.
 
(On this point btw) - I'm pretty stupid for wasting time to answer this question (stackoverflow.com/questions/25628728) - but I always find it notoriously difficult to close as a dupe when the question really falls under the "lacks minimal understanding (GIVE US THAT OPTION!) and so the summary isn't really a dupe
 
6:37 PM
doesn't jQuery want you to use the deferred antipattern?
 
@Retsam ah. Will look it over - I'm quite comfortable with Promises across a variety of languages, JQuery's seem slightly odd but more or less conceptually similar to promise APIs I've used in other languages... The differences can't be that great...
 
@JimmyHoffa I don't think they are wildly - just the syntax mostly AFAIK
 
That flap of skin that manages to always tear it's way under your nail <<<
Ugh stupid desk
 
@JimmyHoffa Yeah, it's okay for small websites (clearly better than plain DOM access), just for web applications I would use something based on templates
 
@JimmyHoffa github.com/kriskowal/q/wiki/Coming-from-jQuery There's a good guide that highlights the differences.
 
6:39 PM
shit, given the A+ spec there's a stupidly naive implementation of a promise that just falls out obviously...
@copy how does templates effect the dom access? I'm using KO for templating and everything else, in fact I think $(document).read() is the only thing I've used JQuery for now that most of my DOM behaviours are declarative...
 
@JimmyHoffa what's your browser support like? Some selectors library will probably help if you need IE8 - it's a real pain that it doesn't support classList
 
but in the event I needed to find and jigger with the DOM, what would you suggest I use for it in a real web app?
 
jigger... lol
 
@IanClark internal only systems monitoring console - I get to dictate the client, Chrome for now just because I know it's dev tools best so it's what I'm developing against...
 
@JimmyHoffa I don't know, I avoid writing user interfaces in general. From what I've heard, you should try Angular or React
Those approaches are better
 
user2620028
6:43 PM
http://encosia.com/in-javascript-curly-brace-placement-matters-an-example/
Son of a..... i had been wondering if there was foul play with my curly brackets for quite a long time now.
 
Well they're much more fitting of SPA (in Angular's case) and widgets (in Reacts)
If all you want to use JS for it so trigger a class when a user clicks something then using Angular would equally be a bloat
 
@copy haha you and me both - thus why I'm in here. I'm a back-end guy just creating the monitoring and management control app for our back-end work because I'm the team member with front-end experience
 
@IanClark Yes, but that's not an application
 
@AaronSiciliano Time to convert to the One True Brace Style?
 
I'm going Knockout instead of Angular just because Angular seems to be trying to be everything and the result is a massive amount of unclarity around correct usage, and tons of wrong ways to do things that aren't clear without lots of time spent learning the framework...
 
6:47 PM
can you see in a glance if there's something wrong in this JS code?
 
anyhelp reGARDS THIS
 
for(i=1; i < 3; i++){

		var form = document.getElementById('form'+i).id;

	form.onclick= function(event) { event.preventDefault();
		alert("hhj")
		}


	}
 
If I was creating Amazon, Angular looks like the right approach, but for something simple where I am the sole maintainer, I hope to avoid oversized frameworks
 
@JimmyHoffa I think backbone is pretty flexible as well
 
@IanClark backbone is empty
 
6:47 PM
:P
 
@AdamBarak use a loop that isn't static length conditional
 
Empty of?
 
@IanClark features, functionality, behaviour
usefulness
 
@SterlingArcher You mean that i < 3 right?
 
@JotDhaliwal please don't spam
 
6:49 PM
Backbone is like the N-Tier - a conceptual way of breaking stuff up, but it's up to developers to implement in that way. Backbone says "conceptually you could break things up like this", but it has barely any code to cause you to do so. Batteries not included would be the best description
 
I AM ASKING FOR HELP
 
@JotDhaliwal if people want to answer your question, they will - that's what the main site is for
 
2 messages moved to Trash
 
Hello and good evening for everyone. Just requesting for comments if there's anything wrong if I do k='foo',(o = {})[k] = 'bar'? I'm expecting this to create object o = {foo:"bar"}.
 
Array.prototype.forEach.call(document.querySelectorAll("[id*='form']"), function(x) {
    x.addEventListener("click", function() {
        alert("derp"); //console.log is better, but I understand
    }, false);
});
 
6:49 PM
TY
 
evryone nevr look questions all time
 
@JotDhaliwal But not twice in 1 minute
 
@IanClark.
 
id*=form
 
6:50 PM
@AdamBarak ^ this is more advanced, but it uses a querySelectorAll selector
 
@SterlingArcher going from terrible to perfect, but can you explain your decisions :P
 
@FlorianMargaine what's wrong with that?
@IanClark in a moment lol
 
@SterlingArcher thanks :-) I thought that filtering worked just with CSS
I see where I'm wrong now
 
@JotDhaliwal We help when we can; we aren't obligated to help you, spamming us to try to get help quicker is going to get you helped slower or not at all.
 
@SterlingArcher can't you take the document.querySel... outside and use it's forEach method, rather than going around the prototype like that?
 
6:51 PM
Do you understand the prototype methods? It took me a while to click it
@IanClark you mean like cache the nodelist, then do nodeList.forEach()?
 
@SterlingArcher yep
 
@SterlingArcher it goes through each and every element of the DOM and runs the regex against the id
 
a+ promise looks like the definition for your typical monadic promise, I guess they had to lay it out like a new concept to get front-end folk to pay it any mind perhaps
 
@SterlingArcher Let's say I'm beginning to understand them, but never thought about trying to use it in this case
 
Well why even cache it?
 
6:52 PM
I'd imagine that from there it's easier to optimize top-down
 
@JimmyHoffa Haha
 
@FlorianMargaine ahh, usually I have at least a specific element to loop through, but if you don't know the specific element, or there are multiples, what would be the best way?
 
document.querySelectorAll("[id*='form']").forEach(function(x) { ... });
 
@SterlingArcher a class...
@IanClark you think this works?
 
@AdamBarak it's a lot slower, but it makes up what it does in speed with a lack of out of bounds loops
@FlorianMargaine heh, I thought we were under the assumption that the HTML didn't have a class :P
Of course a class would be better xD
 
6:54 PM
@IanClark (Hint: try copying it into your browser console, with a different query)
 
 Array.from(document.querySelectorAll()).forEach
 
:P
 
@SterlingArcher Ah I understand. Well, I got a working code now, so I'm going to optimize it and benchmark
 
Still overly verbose
 
@FlorianMargaine touche' - @SterlingArcher, clever ;)
 
6:55 PM
@copy ES6 only
 
Ohh I didn't know there was a from method.
!!mdn from
 
wth I'm going to use classes instead, it's easier
 
If a NodeList's prototype was Array would that have made it work?
 
@AdamBarak a good plan, then you can simple use getElementsByClassName("datClass")
 
6:57 PM
s/was/included
 
@SterlingArcher Yes :D Sometimes the simplest solution is the best, who cares of minifying HTML that much
 
Guys this is fucking amazing
 

« first day (1417 days earlier)      last day (3525 days later) »