« first day (1412 days earlier)      last day (3537 days later) » 

3:00 PM
If you have a power outage in a software house, you're going to have a bad time.
 
@Shmiddty apparently not. I guess it's been going on for a few months to different people here and there
 
@HelpingHand also, having periods inside IDs isn't a great idea if only because it's a special character in CSS
 
Just another reminder: Anyone who has a few minutes, could you take this survey about mental illness in the workplace for technology workers: j.mp/osmisurvey
6
 
I'm pretty mentally ill. I just pretend that I work on the ISS, and it makes me feel better
 
@JanDvorak Yeah, this whole thing was kind of a workaround. Probably not a good code practice, but I use inline css and am not formatting the footnotes. I did what you said and it seems to have fixed it: jsfiddle.net/za8h60pq/3
 
3:05 PM
@HelpingHand also look up "document fragment"
 
@JanDvorak Okay... Seems like it's not really supported yet: developer.mozilla.org/en-US/docs/Web/API/DocumentFragment
 
@HelpingHand it surely is
 
@JanDvorak IE and Safari are not on the chart.
 
@HelpingHand that's for lookup within fragments
 
0
Q: Updating multiple rows with node-mysql, NodeJS and Q

Kis LeyeI am using node-mysql, node-js, and Q promises. I have successfully updated, deleted, and inserted single rows using the above. As well as inserted multiple rows in a single statement in my test case scenario. However, I need to update multiple rows with different values (batch mode) either in ...

 
3:08 PM
@JanDvorak Oops. my bad. Nevermind.
@JanDvorak Yup... Sorry bout that...
 
(qsa works, though)
 
@JanDvorak Alright my friend... Thank you for the help. I really appreciate it!
 
I don't normally get stressed out at work, because I do a fairly good job of separating my concerns with the concerns of my coworkers
 
0
Q: Is there any way to know which script call a particular script in the browser?

Pervy SageI am trying to understand how scripts are getting called. In particular I want to know if there is a method to trace the calling of the scripts. For example: I have a script loaded X.js which is loaded because Y.js called it which in turn is loaded because Z.js called it. And Z.js is in the web p...

 
Though if I can't finish a project on time, even if the deadline was set prematurely, that bothers me to no end. I lose sleep over that, as silly as that sounds
 
3:13 PM
@Neil -- Same way...hard to get a date out of your head, however unreasonable it may be
 
Sometimes I'm able to scrounge up something to show within the deadline, but if I hit a technical snag, then the deadline comes and I have nothing to show for it
I usually end up getting it done anyway, but that doesn't keep me from feeling like it's going to end in a disaster when I hit that technical snag
 
user2620028
Can someone help me figure out why this is throwing JS errors jsfiddle.net/hatterismad/224xb3j7
 
@AaronSiciliano hint: reread L11
 
and Y U NO VAR?!?!?!
 
I can't wait for let
 
user2620028
3:18 PM
@rlemon Just playing at the moment
 
user2620028
@JanDvorak I am not seeing the issue still
 
@AaronSiciliano your end condition is inefficient, though; i*i<number
 
Semicolon
 
you're missing a semi colon
 
And in God's name, can you use a better variable name other than "Number"?
 
3:19 PM
@AaronSiciliano also, don't use UpperCase for variable names;
 
^^^^
 
user2620028
@Neil Jesus guys i am just trying to play with fiddle at the moment not make the next photoshop
 
and this day is no more terrible #yummy
 
@Neil I just wrote a tiny 7 line function, where my variable names are: e, n, and bg
 
@AaronSiciliano Sorry, pet peeve of mine
@NickDugger That's bad, but not as bad
 
user2620028
3:20 PM
@Neil where is this missing semicolon?
 
@AaronSiciliano doesn't mean you have to write crappy code
 
@rlemon whenever, just give me notice :D
 
function randomBdBanner() {
		var e = document.getElementById("serviceSearch");
		var n = Math.floor(Math.random() * 8);
		var bg = "/2014/images/bd/" + n + ".jpg";
		e.setAttribute("style",
			"background:url(" + bg + ") center center no-repeat;" +
			"background-size:cover;"
		);
	};
@Neil
 
@AaronSiciliano Jan pointed it out. Line 11
 
@AaronSiciliano look up the for syntax
 
user2620028
3:20 PM
@Neil that is line 9
 
@NickDugger I could tolerate that.
 
@Neil yay! lol
 
user2620028
And i see it now.... not quite sure how that got missed o.O
 
@AaronSiciliano It's line 11 in the jsfiddle
My boss has an awful tendency to name columns in a database with keywords
 
Offshore code...man...sometimes... grv = this.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent as ASPxGridView;
 
user2620028
3:22 PM
@Neil Must not have hit save before i sent it to you guys
 
We try to use SQL Server and the whole thing explodes..
Keywords like "KEY" and "OFF" .. I mean come on.. you should know better than that
I fully expect to see "drop database" as a column name one day
 
user2620028
@Neil that would be the day that you quit?
 
@AaronSiciliano I'd like to think so, but probably not sadly
 
hi. testing...
 
@DocKodam Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
3:26 PM
@DocKodam your tests failed
 
user comes, types a message, and bam! 2 loud pings... he gets afraid and leaves.
 
okay lemonmeme is really backup now
just cloned the files over, so some pages may not work :/
 
Just wondering : where does the JS unary plus operator come from ? Is there another language predating js having it (the c++ one doesn't do the same) ? Did it just come from nowhere in JS 1.0 ?
@copy @BenjaminGruenbaum @Shmiddty ^
 
unary plus operation?
must google this
Oh, type conversion
 
3:36 PM
yes, just the +"7" thing
 
@dystroy Java?
 
god always the penis talk.
 
It looks "normal" but in fact I can't remember having seen it apart in js (I don't know a lot of "cool" languages)
@rlemon java ?
 
user2620028
Wait are we talking about casting?
 
9
A: What is the purpose of Java's unary plus operator?

John FeminellaThe unary plus operator performs an automatic conversion to int when the type of its operand is byte, char, or short. This is called unary numeric promotion, and it enables you to do things like the following: char c = 'c'; int i = +c; Granted, it's of limited use. But it does have a purpose. ...

 
user2620028
3:39 PM
I have never seen it done that way
 
@rlemon yes... not so interesting in java but yes (and +1 to this answer)
 
user2620028
I have always seen it done as (int) "7"
 
me too, that's why I say it doesn't seem very interesting in java
 
did something happen to caprica?
 
!!are you alive?
 
3:41 PM
@rlemon Not at all
 
seems like she dead
 
in sandbox, listcommands gives a weird output.
 
@dystroy It was added for consistency since you have unary -.
C has it?
 
@BenjaminGruenbaum You mean in java ?
 
dammit, I got so bad at SQL
given I got a whole list of tables I need to query
I got a clause in there to check for several IDs already
all of those have a column "categories", which I need to check too
 
3:50 PM
Somebody knows where can I get inline HEX color chooser for Sublime?
 
posted on August 28, 2014 by jeffposnick

Over two years ago, Renato Mangini described a method for converting between raw ArrayBuffers and the corresponding string representation of that data. At the end of the post, Renato mentioned that an official standardized API to handle the conversion was in the process of being drafted. The specification has now matured, and both Firefox and Google Chrome have added native support for the Text

 
but with a simple AND it will query all of those tables that do not have the column "categories" too, causing an error. How do I get around this again?
 
!!google inline HEX color chooser for Sublime?
 
@rlemon that one is not cool. It has no square chart like brackets does. And it is pretty dull too.
 
3:51 PM
would pretty much need to execute the first query, filtering IDs first and get the second where - clause on the result of this first query.
 
SublimeColorPicker is pretty good
 
any hint on what I should look up? JOINs?
 
@RalphWiggum It is not good once you have the experience of Brackets IDE's color picker.
 
@AwalGarg ooh, it just brings up the standard Windows color picker for me
 
@RalphWiggum yes... and it is ugly!!!
 
3:53 PM
@AwalGarg eh, it works fine though
 
1 min ago, by Awal Garg
@RalphWiggum It is not good once you have the experience of Brackets IDE's color picker.
 
@AwalGarg is bracket's color picker like GIMP's?
 
@RalphWiggum Like PS's (even more powerful), not sure about GIMP. (lemme post a screenshot)
 
> "Ohh nooooo!"
 
3:58 PM
 
Hi pepole
 
(I know my freehand writing sucks)
 
@AwalGarg looks like GIMP's or any other editor
 
Angular guys, will using &attr binding improve performance over =attr?
 
for who hasn't seen it before: codepen.io/MateiGCopot/full/powha
also, love the link: 'full powha'
 
4:01 PM
thats the stupidest pen I've ever seen
 
@rlemon i hate you right now
 
@Loktar yet
 
why would you post that here
/me jokes
 
@RalphWiggum yes but those 'bookmarks' of colors are pretty useful.
 
@SterlingArcher check out "self inflicted"
 
4:01 PM
I has a question. They were taking name input in a HTML input field maybe , and then saving it to database maybe, but the names were like 'foo\r' , 'bar\n'. Why would they get such values .... When does that \r occur?
 
i.imgur.com/zmPFF.gif some good stuff in there.
 
@Loktar I just want to start world domination, don't critic me for that >:(
 
@shortCircuit looks like an escaped newline
not sure how it got there
 
@towc haha
 
@rlemon IS THAT A MAN THROWING A LACROSS GRENADE INTO A BUS
WAT
 
4:03 PM
i think the buss is rigged and he's setting it off
with a stick
not sure
 
Like someone wrote a name and pressed enter!! So a \n , . when does that \r occur !!! I never actually understood carriage return
 
@SterlingArcher i.imgur.com/gQAOG.gif
 
lmaoooo
 
i can't stop i.imgur.com/cA2Ck.gif
2
 
where do you get all these from?
 
4:06 PM
wow, the sql room is dead
 
8 mins ago, by rlemon
@SterlingArcher http://reactiongifsarchive.imgur.com/
 
anyone good at sql query stuff that would be able to at least hint me in the right direction?
 
@anyone \r
 
@rlemon Oh, found this the other day.
 
the hockey one was awesome lol
 
4:08 PM
What SQL help u needs!!
 
lol thats great @Neil
 
read my messages from there on
I know it's not that hard, I've just haven't touched too much SQL in some time
 
in HTML / CSS / WebDesign, Aug 8 at 20:31, by rlemon
http://i.imgur.com/cNDmv1u.gif :P
I thought I posted it in here :/ guess not
 
I'm not going to check the history if someone has posted it before or not
 
Hah. That's awesome.
 
4:11 PM
@rlemon I posted it here ;)
 
@rlemon damn 20 days ealier
 
inorite!
 
I think that calls for an OOOOOLD
 
REPOST!
 
So u need to modify a query that checks for several ids to check several ids and their categories .. :(
 
4:12 PM
-1 not enough jQuery
 
I really want to see this show/movie now
 
for some reason, I always read that as "in or ite" and I think it should be "in or out"... then I remember, this is internet.
 
user2985029
@SterlingArcher what is this?
 
Obama's fault apparently
But that would be a woman trying to open a beer with a banana
Apparently it's some sort of party trick
 
4:15 PM
You can break it into two queries than one complex one
 
user2985029
i thought she was trying to put the banana into the bottle
 
xxx, you would go straight to that conclusion
:D getit
 
user2985029
but that's what it looks like
 
Why is everything Obama's fault , why not Modi's fault
You can break it into two queries than one complex one
 
4:16 PM
as time goes on more and more is Obama's fault 4realz
 
inb4 heated political discussion
 
Our prime minister ...
 
@Neil if one starts its Obamas fault
 
before the political discussion heats up...
74
Sex and Intimacy

Proposed Q&A site for consenting adults who engage, or want to, in intimate and/or sexual activity.

Currently in definition.

 
I've seen worse presidents
 
4:18 PM
how would they see if minors joined in? I mean, if the site graduates...
 
Hey anyone uses emacs24
 
@SomeKittensUx2666 do you like ze chromebook? Can you do simple text editors/ftp on it?
 
@AwalGarg Whoopee, now SE has become a dating site.
 
@SterlingArcher the chromebook is awesome
 
@AwalGarg can't we have a PG-rated room about sex?
 
4:19 PM
@simonsarris has one as well
you can do ssh on it
 
user1596138
i.stack.imgur.com/2OXqM.jpg // I almost get it
 
its built into the browser
 
@JanDvorak Isn't this room very much the like? :P
 
Really?
 
yea
 
4:19 PM
So I can do lightweight development on it!
 
however I installed ubuntu on mine
so I can dual boot
 
user1596138
> Proposed Q&A site for consenting adults who engage, or want to, in intimate and/or sexual activity.
 
user1596138
That "or want to" bit scares me
 
@Jhawins why? It is a good thing, IMO.
 
Depending on how much it costs to fix my "service airbags" issue in my car I may buy one tomorrow
 
4:20 PM
So a Q&A site for horny people? That'll end well
 
:D
 
@SterlingArcher let me rephrase it, the chromebook is AMAZING for the price
 
Like those video chat sex rooms .... I once asked can we bargain over the price ... I was banned ... Damn ppls
 
user1596138
@AwalGarg lol if you need a stackexchange to figure out about sex what is your life
 
however if you get one I suggest getting one with an intel, not the atom
the intel ones are more powerful
 
4:20 PM
@Jhawins s/figure out/have additional fun/
 
inb4 esc0rt s3rvice 5pam
 
you can also throw ubuntu on them and even play steam games if you want
 
!!afk
 
user1596138
@AwalGarg "or want to" bit
 
user1596138
4:21 PM
You say things that are ridiculously irrelevant sometimes
 
posted on August 28, 2014 by jeffposnick

The ECMAScript 6 specification, while still in draft form, brings the promise of many exciting new tools to add to the JavaScript programmer’s belt. New classes such as Sets and Maps offer native solutions to working with specific types of collections, and the for...of statement provides an elegant alternative to traditional ways of iterating over data. Sets offer a way of keeping track of a

 
> horny men looking for women to watch
 
the next big thing will be oculus rift sex
 
@Neil the resolution isn't good enough yet
 
@Neil its already happening
I watched a 360 porn vid on it... for science
 
4:23 PM
!!s/to watch/to $watch/
 
@RalphWiggum I $watched a 360 porn vid on it... for science (source)
 
Today was an extremely bad day ... At office and at SO php too
 
@JanDvorak That didn't seem to stop people when we had 256 bit color schemes :P
 
the res is fine on the dk2
 
@RalphWiggum horny men looking for women to $watch (source)
 
4:23 PM
there!
 
Today was an extremely bad day ... At office and at SO php too
 
the dk1 was pretty blurry/low res though
 
@Neil oculus rift really needs better resolution
 
 
LOLOL
 
4:24 PM
@JanDvorak I think it's only a matter of time
 
lord thats a weird periph
> I LOVE RUBBING LEGS OMG
 
@Loktar own?
 
while(true) {
    try {
        self.writeCode();
    } catch(oops) {
        self.drinkCoffee();
    }
}
7 line autobiography?
 
I don't understand why did they build rails ... I mean without those gems , its a skeleton with no bones
 
    $(this).parent('li').addClass('active').children('ul').toggleClass("open");
     $(this).parent("li").siblings().removeClass("active").removeClass("open");
     $(this).parent("li").siblings().find(".active").removeClass("active");
     $(this).parent("li").siblings().find(".open").removeClass("open");
Can we optimize this code?
 
4:27 PM
@Pilot yes
 
Any clues?
@JanDvorak
 
step one: store common subexpressions into variables
 
@JanDvorak haha I dont own the legs
but I own the dk1 and 2
 
0
Q: document.location.replace when using promises across iframes

Brett PostinI have the following site structure which consists of an outer page (index.html) with an iframe containing iframecontent.html: /mysite/index.html /mysite/script.js /mysite/folder1/iframecontent.html index.html includes script.js. script.js contains a function that returns a promise . ...

 
step two if you care about LOC more than about readability: if a node is only traversed from once, use chaining to get rid of a variable
 
4:29 PM
@JanDvorak how do I chain..I am thinking the same way
 
@Pilot $li.css({color:'red', border:'10px solid black'}).closest('ul').css({font: 'comic sans 12px normal'}).find('li a').not(this).css({textDecoration:'strikethrough'}).children()...
the resulting code isn't that nasty if you don't overdo it
the page itself will be if you use my styles, tho
 
@JanDvorak Okay .. thanks for help
 
if you indent well, even heavily chained code can be readable; debuggability is a different question altogether
 
@JanDvorak +1 for comic sans
 
@sterlingarcher not in Chrome OS
I set it up to run Ubuntu as well as Chrome os
 
4:38 PM
Damn. I was hoping for a simple ftp client
that's all i need
maybe ssh is enough though
 
looks like adobe products
 
@rlemon edit: nevermind, it got less choppy
 
like almost exactly
looks like that targets illustrator, pretty neat
running directly in the browser is nice
 
-3
Q: Reset function not working on clearing form,the other functions work, just can't get reset to work

user3686091<html> <body> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title Regisrtation Form </t...

ugliest formatting ever
worse than minified IMO
 
4:41 PM
you guys ever see/use the aviary tools?
 
Oh man, Rob Zombie just came on Black Tide radio. This is interesting :3
#throwback
 
man aviary is a lot different from the last time I looked
doesn't look like they have their online editors anymore
those were really nice
 
How do I get an array of values of an ES6 Set?
 
map them using for of?
 
for of?
 
4:48 PM
There's no direct method for converting to a plain array?
 
!!mdn for of
 
Why the heck not?
 
soo I downloaded atom
trying it out on my 3 monitor setup
 
(I'm working with es6-set module in a Node environment. I only get the Set API, but not the for-of or the other ES6 stuff.)
 
4:49 PM
file menu opens up on another monitor lol
 
3
A: How to convert Set to Array?

adeneo if no such option exists, then maybe there is a nice idiomatic one-liner for doing that ? like, using for...of, or similar ? Indeed there is: var array = [v for (v of mySet)];

 
like the dropdown for file
@SterlingArcher nice!
 
var array = [v for (v of mySet)];
 
glad to see I wasn't too far off
 
@Loktar that's pretty cool, I'm looking up what a Set is
 
4:50 PM
Aha, so spread operator is needed -.-
 
spread? Is it an async method?
 
user1596138
@SterlingArcher Generators?
 
Wait.. nevermind me, I used that for mysql results, not ajax callbacks
 
It's synchronous
 
@Jhawins wut?
 
4:51 PM
The spread operator, that is
 
user1596138
@SterlingArcher What are sets?
 
It's just an operator
 
user1596138
From that snip I'm guessing they're just the generator functions from ES6?
 
^ thats between 2 monitors
/me hates atom forever now obviously.
 
@Jhawins developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… im reading this. it looks like some sort of Array like object
 
4:53 PM
@Jhawins Sets are a new data structure
Like arrays
 
user1596138
@SomeGuy Oh ok
 
user1596138
Weird
 
This is pretty cool
 
submitted a bug
hope they fix it, happens on every monitor
 
Really? text-align: right? position: absolute? If I could downvote comments... — Ryan Kinal 1 min ago
 
does @SomeKittensUx2666 have a chrome book?
 
user1596138
@SterlingArcher brooo
 
Broooo?
 
!!s/oo+/ew/
 
@RyanKinal Brew? (source)
 
user1596138
4:59 PM
@SecondRikudo I waited so long for OnePlus and gave up :/
 
0
Q: how to use angular services to run a function and assign result to $rootScope

Jason SpickFor some reason I have a problem wrapping my head around Angular logic, but I am determined to understand this. I am trying to run a function at application start that loops through an object and stores the result globaly. I am trying to do this through a service. first question: Should I use ....

 

« first day (1412 days earlier)      last day (3537 days later) »