« first day (1377 days earlier)      last day (3576 days later) » 

7:00 PM
you're PHP
 
My website is Php, just kidding its static and jekyll
 
my website is like 5 bytes
 
it just says "hello"
 
Mine is wordpress right now, but I'll be redoing it soon-ish... maybe.
 
7:01 PM
> wp
> 2014
 
Yo mama so fat that even php feels light on megantic tapes ! < Code insult.
 
I've been procrastinating on redoing my website, because that means I have to put design work into it.
 
well, PHP could fit on a small USB drive
so that's only like 10 grams
 
@rlemon yeah I wont donate
 
!!afk production meeting
 
7:02 PM
@RalphWiggum to be easily thrown out the window?
 
even though I guess it doesnt matter if they dont make it
 
Well, my bastardized stringify thing for functions in local storage kind of works. I'm scared now.
 
@Loktar hell I will.
 
@RalphWiggum take that mommy mommy !
 
but I think I won't calculate paths in the DB
which is kind of sad because I saw potential in that
 
7:04 PM
@rlemon after a nap I figured out how to make them slow down and speed up more smoothly codepen.io/mrzepka/pen/rnkEj
 
@Incognito why'd u do that :-(
 
@rlemon also when you set everything to 10% and try to get 100 they turn into rectangles and it looks 3D
 
@AbhishekHingnikar Building strange things. I've made a console page that lets me interact with APIs for debugging purposes and it lets me store some one-off utility functions without having to save to a server or use some browser-based-IDE.
This is never going to face a customer.
 
///all you needed to do was

function StoredBlob(blob){
   this.__payload__ = blob;
   this.__id__ = Utils.getUUIDv4();
   this.save();
}

StoredBlob.prototype.__fileSaveComplete = function(){
      this.emit("savecomplete", this);
}

StoredBlob.prototype.save = function(){
   // implementing this is super easy with idbfs.js
   db.writeFile(this.id, this.__payload__ , this.__fileSaveComplete__.bind(this));
}
StoredBlob.prototype.toString = function(){
        return this.dbId;
}
you can also do
StoredBlob.prototype.load = function(str){
     this.__id__ = str;
     this.__readFile__();
}
 
7:13 PM
oh yeah baby
 
user1596138
!!undo
 
@Jhawins I haven't said a thing!
 
user1596138
Damn
 
@Incognito dude you will do world a good and awesome db :D
or you can just use pouchdb :P
 
I'm black, baby
 
m59
7:15 PM
ahahahahahahahaahahahahah @Mosho I'm on craigslist looking for a van for someone and I see this: nashville.craigslist.org/cto/4480632799.html
@rlemon could you gimp a doge in that van? ^
 
lmao
strong ad
 
m59
hahaha
Like, how can I not buy a doge van for $775?
 
no tire kickers lmao
 
hey all
I'm sick and can't code:
  try            { xhr.body = JSON.parse(xhr.responseText) }
  catch (er) { return options.callback(er, xhr)        }
^ why would the first line throw an error? Wouldn't it be caught?
> Unexpected end of input
 
malformed JSON
 
7:21 PM
@gsnedders, Glasgow, United Kingdom
Web standards advocate, long time WHATWG/W3C contributor, ex-Opera JS and test automation guy, and soon-to-be graduate of @GlasgowUni.
8.5k tweets, 481 followers, following 183 users
does he ever show up in the room anymore ?
 
@FlorianMargaine More than likely an empty string. But why is it thrown?
 
@SomeKittensUx2666 because JSON.parse throws errors...?
 
but it's in a try/catch block?
 
JSON.parse("")
SyntaxError: Unexpected end of input
yes, so it goes in the catch
 
(like I said, I'm sick and got very little sleep)
 
7:23 PM
oh, it's not caught?
 
yeah, not caught
that's what's confusing me
 
try { JSON.parse(""); } catch(e) { console.log('Look ma, no error: ' + e.message); }
Look ma, no error: Unexpected end of input
something else is wrong
 
Oh wait, I'm an idiot
sorry
The error is being thrown elsewhere in the call stack.
 
it's ok, you're sick and got very little sleep
did you see the irony btw? :(
 
@AbhishekHingnikar But I just want to save functions, I don't care about files.
 
7:25 PM
irony?
 
catch(e) { console.log('Look ma, no error: ' + e.message); }
 
@Incognito thought u were saving blobs T_T
 
"no error" in a catch
subtle irony :(
 
@AbhishekHingnikar Ah, no, I'm actually using a blob so I can re-introduce it into my page. It's mega hacky.
 
7:27 PM
basically building a script file on the fly ?
 
<script src="data:text/javascript;base64,ZnVuY3Rpb24gZHVjayhkdWNrKSB7cmV0dXJuIGR1Y2s7fQ=‌​="></script>
^ generated by string stored in localstorage
 
@Incognito yeap got-it.
 
@AbhishekHingnikar Handy to have for a page that only devs are using.
 
@Incognito hmm make sense :D
 
@m59 on it
 
7:29 PM
and 5 megs is sure as hell enough space
 
@AbhishekHingnikar What's this all about?
 
doge gimp?
 
@Incognito making a startup
launching our first product and kickstarter campaign for making the api publically open
the product uses NLP to find images :D and detects stuff inside images.
 
Can I stay involved some other way? I'm excited for you but not interested in giving out an address -- I had someone from this very chat room show up at my work one day.
Unannounced.
 
leave the addres x.x.x.x
i need emails though for sending u betas :D
 
7:31 PM
well poop
evening plans fell through
fucking poopheads
 
testflightapp.com @Jhawins this is pretto awesome though
@Incognito what whooo ?
 
user1596138
@Incognito Wut. Who
 
at least I'll have time to make some sweet love to node.js
 
RESTful interface question. We're sending a DELETE request and it's coming back empty (as it should) but since we've said we'll accept application/json, our JSON.parse is failing on an empty string.
 
@Jhawins we are brothers -_-
 
user1596138
7:31 PM
@AbhishekHingnikar Yeah I checked that out once
 
who's fault is that? (i.e. should I try to fix it on the frontend or ping a backend dev?)
 
user1596138
@SomeKittensUx2666 Ooh.. Sounds like your problem to me but I'm not really big with teams
 
@SomeKittensUx2666 If the HTTP Code is 200 OK
you should fix your own code.
 
user1596138
Cause what else can they do? They shouldn't send anything but an empty response :P
 
response
 
7:33 PM
@AbhishekHingnikar This was years ago back when I stopped coming around here.
 
@AbhishekHingnikar 204 no content.
 
I'm not interested in saying who.
 
@SomeKittensUx2666 then ping the backend dev
 
is {} a valid 204 response?
 
7:33 PM
he should NOT do that.
 
@Incognito You're TO, so Mosho or rlemon?
 
204 No Content
The server successfully processed the request, but is not returning any content. Usually used as a response to a successful delete request.
 
@Incognito wasn't me!!!!
:)
and I could have.
 
@SomeKittensUx2666 does that answer?
 
Hahaha.
 
7:34 PM
well, no, I didn't know your address just that I was like 45 mins away
 
O_O @FlorianMargaine wow, now that is definitely confusing ?
 
and now you've up and moved so I have no clue
 
@rlemon You probably still are, except the traffic to Toronto is insane right now with the construction going on.
 
lol it is always insane
I avoid TO like the plague
 
oh, the 2nd season in canada. Winter and construction.
 
7:35 PM
@FlorianMargaine technically thats an error no ?
 
Jun 25 at 14:26, by rlemon
Canada only has two seasons: Winter and Construction.
@FlorianMargaine yup :P
 
oh wait 204, nvm
2xx is successful , so successful but no content.
 
@SomeKittensUx2666 why do you have a JSON.parse?
 
@SomeKittensUx2666 I'd say {} is 200. If it's blank then do a 204. The reason being, seeing content-length > 0 when getting a 204 is not consistent with that HTTP status code.
 
@Incognito you can show up at my work unannounced :P but you have to bring me a coffee
only rule
 
7:36 PM
from TIm's
 
He's Canadian, if he brings anything else I am allowed to not hold the door open for him
 
@rlemon Sure thing! Everyone likes country style.
 
we have our subtle ways of attacking eachother
 
@FlorianMargaine I'm not entirely sure where that line is in our codebase
 
@Incognito lol I actually don't mind it
 
7:36 PM
@Incognito Good point
 
Foiled!
 
last office I worked in had a country style attached to it
they made some pretty good coffee, but their food was lacking
I can't stand StarBucks or Second Cup
 
just like Tims?
 
@KendallFrey eh, they make toast a decent beagle
yes, beagle
like the dog
shut up
 
I hope you meant...
oh
I didn't know they had Timmies in China
 
7:38 PM
I'm not even correcting it
 
We have a beagle at our office
 
Hey guys. How can I add an event listener for my html selector in JS?

$('.selectorID').click(function () {

alert ("selected");

});
This clearly does not work
 
"Beagle" is a meme in our office
 
@BDillan what is a html selector?
 
@BDillan what's the selector to use when you want to select an element by its id?
 
7:39 PM
@FlorianMargaine hashtag!
 
<select name="question_type" id = "question_type">
<option value=</option>
<option value=</option>
<option value=</option>
</select>
 
@SomeKittensUx2666 spoiler :(
 
ex
 
that's why all the events are on twitter
 
and you want the selected option?
 
7:40 PM
Yes
 
selectElement.options[selectElement.selectedIndex]
 
How can I add that on the .click function?
 
@BDillan What is this? $('.selectorID'). Why is your class name "selectorID" ?
 
selectElement.onclick = function() {
  console.log(this.options[this.selectedIndex]);
};
@Incognito I imagine it is a dummy example
not his actual selector
 
yeah
 
7:42 PM
@BDillan I'm purposely not giving you the jQuery because you won't learn if you just stick to the abstractions
but you will learn by figuring out how to implement this into your code ;)
 
Man... HTML is weird.
 
@rlemon no, it's his actual selector, that's why his code doesn't work
 
@FlorianMargaine Why not both?
 
@rlemon Work doesn't...well work that way...
 
@Incognito try XAML :D
 
7:47 PM
$('.selectorID').onclick = function() {

console.log(this.options[this.selectedIndex]);
alert ("clicked");
};

HTML

<select name="selectorID" id = "selectorID">
<option value="that"</option>
<option value="this"</option>
</select>

Is giving me nothing...
 
!!hangman
 
@AbhishekHingnikar That didn't make much sense. Use the !!/help command to learn more.
 
  +---+
  |   |
  |
  |
  |
__+__

-------------
 
@AbhishekHingnikar star crazy eh?
 
7:47 PM
@BDillan What's the difference between a class and an ID in css?
@BDillan Once you know, your error will vanish.
 
4 mins ago, by rlemon
@BDillan I'm purposely not giving you the jQuery because you won't learn if you just stick to the abstractions
 
@rlemon eh eh :3
 
you can't just shove your vanilla js into the jQuery
 
Changing it to # does nothing from.
 
jQuery is an abstraction.
 
7:48 PM
can i play hangman ?
 
@Incognito I know
 
5 mins ago, by rlemon
but you will learn by figuring out how to implement this into your code ;)
 
!!s/abstraction/malfunction/
 
@AbhishekHingnikar jQuery is an malfunction. (source)
 
fuck grammar
!!hang a
 
7:49 PM
  +---+
  |   |
  |
  |
  |
__+__
a
---a---------
 
:<
 
user1596138
!!hang b
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, b
---a---------
 
!!hang s
 
user1596138
Ok this will get spammy fast
 
7:49 PM
  +---+
  |   |
  |   O
  |
  |
__+__
a, b, s
---a----s--ss
 
don't flag the bot idiot!
 
game jesus, did a miracle again
 
seriously, who flags that
 
@FlorianMargaine I can tell you
one sec
 
:) good
 
7:51 PM
+---+
| |
| O
|
|
__+__
a, b, s
halp--me--with---my--code
 
zigi instanceOf Flagger
 
!!hang n
 
nope
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, b, n, s
--na----sn-ss
 
!!hang e
 
7:51 PM
!!hang e
 
@mrzepka e was already submitted
 
in Lounge<C++>, 30 secs ago, by Cat Plus Plus
Let's play "let's ban the JS room bot for being stupid"
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, b, e, n, s
-ena----sness
 
@FlorianMargaine (@Loktar) someone a little butthurt because my answer doesn't give him a copy and paste solution
 
shut up caprica @AbhishekHingnikar just beat me to it
 
7:51 PM
@rlemon wow really?
 
no but really we're not flagging it
 
@BDillan why don't you leave.
 
@BartekBanachewicz nope, it's @BDillan
 
what's that first letter?
 
I was even trying to help him :/
 
7:52 PM
> I'm purposely not giving you the jQuery because you won't learn if you just stick to the abstractions - said by lemon

I don't understand this
 
Cry more @BDillan
 
@BDillan who the hell are you
 
This was the hint you gave me
 
user1596138
Who the hell are you!
 
some help vamp
 
7:52 PM
@BDillan he RTFMed you
 
umad @BDillan?
 
@BDillan :-(
 
If he gives you the code, you won't learn from it
 
You should cry some more @BDillan
 
no the 'hint' I gave you was the EXACT code you needed. Just not wrapped in jQuery crap
 
7:52 PM
you're just copying and pasting
 
he is trying to make you a better developer
 
user1596138
@BDillan everyone is pinging so me too
 
@Jhawins nailed it.
 
@BDillan sorry you're such a bad developer.
don't take it out on us
 
#harsh
 
7:53 PM
Caprica is like the daughter of all the room :P or wife for "bot o philes"
 
hashtag harsh is fun to say aloud
 
0
Q: Reading a angularjs promise object?

user3799365I have a service that returns a study object as shown: $scope.study = StudyService.studies.get({id: $routeParams.studyIdentifier}); When I print out the study object using: console($scope.study); I get this message on the chrome console: Resource {$promise: Object, $resolved: false, $get: ...

 
user1596138
@Loktar LOL
 
why not just tell him the truth
 
!!hang o
 
7:54 PM
@Loktar I wasn't saying don't
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, b, e, n, o, s
-ena--o-sness
 
Feed me a fucking fish
 
just adding appropriate tags.
 
because he is.
 
@BDillan what
 
7:54 PM
@BDillan I ALREADY DID!
12 mins ago, by rlemon
selectElement.onclick = function() {
  console.log(this.options[this.selectedIndex]);
};
 
payback bitch :->
 
@BartekBanachewicz if you give a man a fish you feed him for a day, if you teach a man to fish ...
 
.. ^
 
...
he's setting demands
the sense of entitlement is amazing
 
its over 9000!
 
7:55 PM
!!hang v
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e, n, o, s, v
-ena--o-sness
 
haha I just called my boss a noob
it was fun
 
@Loktar THAT WAS MY LINE !
 
@mrzepka if you build a man a fire you keep him warm for a night. If you set a man on fire you keep him warm for the rest of his life...
5
 
Did you go teehee and run away?
 
7:56 PM
@SomeGuy yes
 
i even typed V for vegeta !!!
 
user1596138
!!urban 9002
 
@ircmaxell love that quote
 
he couldn't find the power button on the new monitor
 
@Jhawins 9002 A non-prime number that is over 9000.
 
7:56 PM
I turned it on for him and called him a noob
 
OH WOW !!!!!
 
@ircmaxell I mean he asked for a fish, not to be warmed up.
 
Hahaha
 
Its its its over nien thou sand !
 
@mrzepka :-P
 
7:56 PM
another favorite of mine "Its better to walk in the dark than to light your hand on fire"
 
user1596138
@BDillan HAHAHAHAHA
 
@Loktar why not just turn on the light?
 
1 message moved to Trash can
 
user1596138
:17899081 Google how to add an event listener with jquery even
 
user1596138
in Trash can, 56 secs ago, by BDillan
@rlemon I changed:

selectElement.onclick = function() {
console.log(this.options[this.selectedIndex]);
};

TO

$('.selectorID').onclick = function() {
console.log(this.options[this.selectedIndex]);
};

And nothing happened
 
7:57 PM
God damned garbage pale kids digging in the trash
 
oO
 
@AbhishekHingnikar dude I can't figure out what that first letter should be
or what should be after the o but before the sness
 
@Loktar "Its better to shit then to keep holding and waiting for it to decompose inside".
 
very true....
 
!!hang u
 
7:59 PM
you end up decomposing people "OUTSIDE"
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e, n, o, s, u, v
-ena--ousness
 
woo!
 
!!hang t
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e, n, o, s, t, u, v
tena--ousness
 
i am a genius :P
 
7:59 PM
!!hang f
 
tenaciousness?
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, b, e, f, n, o, s, t, u, v
tena--ousness
 
@BDillan stop flagging the bot
 
!!hang c
 
otherwise we'll remove you from the room
 
7:59 PM
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, b, c, e, f, n, o, s, t, u, v
tenac-ousness
 

« first day (1377 days earlier)      last day (3576 days later) »