« first day (899 days earlier)      last day (4063 days later) » 

9:00 PM
!!/karma
 
Something with the implicit karma displaying
 
@SomeKittens has no karma
 
anyone here into Hot Water Music?
 
!!/karma somekittens
 
@SomeKittens somekittens has 1 karma
 
9:00 PM
I'm guessing that @ might be encoded
 
@phenomnomnominal No but into hot chicks.
 
If you don't specify who, it defaults to empty string
FOOD TIME!
 
Oh, yeah, you're right
 
HOME TIME!
 
GETTING UP TIME!
 
9:01 PM
@phenomnomnominal that gets me up
 
user2157210
holy cow
 
++
!!/karma
 
@SomeKittens has no karma
 
user2157210
!!/karma SomeKittens
 
@Nexxpresso Y U NO MAEK SENSE!? Could not understand karma SomeKittens (perhaps you meant to execute a command? If so, prepend the command name with a /)
@Nexxpresso SomeKittens has no karma
 
user2157210
9:02 PM
hmm
 
user2157210
empty string has no karma and you do not have karma
 
Haha rlemon likes hot chicks.
Gaaaaay
 
Pagination should be illegal
 
    @SomeKittens Quick question for you, I have

    style(src='assets/css/bootstrap.css')

yet it isn't loading, when I view source and click on it, it isnt* there, but if I was to

    include assets/css/bootstrap.css
it appears right in the source, any idea?
 
9:09 PM
@XCritics link
1
Q: CSS not working in stylesheet

Charlie SmithI have a set of Styles that were first created inside the style attribute on a page. I want to move it from being on the page itself into a stylesheet. however, when I move it to a .css file, the page breaks, move the code back to the html doc and it works fine again. This makes absolutely n...

 
830
A: What is the best comment in source code you have ever encountered?

Rohit// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass

 
is `0 = 0` or `0()` valid JS syntax (never mind throwing type/ref errors)? @littlecalculist @brendaneich @kangax
What's that thread all about?
 
@RyanKinal Nice "post" (the Gist you posted about magic). I like your style. Makes things pretty interesting
 
@AmaanCheval Thanks. Wasn't sure where to put it.
 
hello there, not sure if this is appropriate, but is it okay to ask if anyone in here is interested in NLP and JS? we have a small project involving both ... if not appropriate, we'll leave quietly. :)
 
9:21 PM
@RyanKinal Your personal blog?
 
@AmaanCheval I don't really have a "personal" blog. I have SlickDev, I have blog.jsroom... I guess I have a tumblr...
 
@Crashalot What has NLP to do with JS?
 
@sime
 
I thought you had a BlogSpot for yourself and for SlickDev
 
9:22 PM
@ŠimeVidas, no direct connection ... we have a project touching on some NLP that will be done in JS
 
Well, that sounds intriguing
 
@ŠimeVidas Interesting
Pointless and sort of confusing in parts, but interesting
Thread's all about different browsers behaving differently. Some catch them in a try...catch, others don't
 
@AmaanCheval But (according to the ES5 spec) is 0 = 0; valid?
And if not, why not?
 
The left side is an expression, so it should be the same as a + 5 = 3;
 
@phenomnomnominal I don't want to include it on the page though, I just want to link to it
 
9:25 PM
Step 4 of this is confusing.
 
@XCritics, you need a link element not a style element
 
Ah, step 4 addresses eval = ..., and arguments = ... stuff (strict mode restriction). Got it.
 
@phenomnomnominal <link rel="stylesheet" href="assets/css/bootstrap.css"> yeah?
 
@phenomnomnominal Not working :/
 
9:27 PM
src
 
matt damon
 
oh no
href
hmm
 
Still nothing
 
@ŠimeVidas, can we email you more information?
 
@phenomnomnominal

!!!
html
  head
    title Hello
    link(rel='stylesheet', href='assets/css/bootstrap.css')

  body

    div.hero-unit
      p this is a test
 
9:29 PM
@Crashalot I've got no time :-( My daily for today is already late.
@copy? Meaning?
When 0 = 0;, PutValue will throw a reference error, as the left-hand side is not a reference. But syntactically, the statement is valid, right?
 
@ŠimeVidas The left side of an assignment (also of delete) has to be a reference
Exactly
 
@copy But it is valid syntax, right?
 
They seem to leave the option open to add other kinds of references later
Yes
 
Funny how valid syntax does not guarantee successful execution.
 
@ŠimeVidas, ok thanks. do you know anyone who might be interested? if you ever get time and would like to learn more, the project is to make smarter domain suggestions for this site, www.panabee.com.
 
9:36 PM
!!/info echo
 
@OctavianDamiean Command echo, created by rlemon on Mon, 11 Mar 2013 12:36:06 GMT, invoked 2 times
 
@phenomnomnominal no idea or you just busy?
 
@Crashalot I (will) never have time :-(
 
Show me the generated html, and any errors
 
@ŠimeVidas, fair enough. :) do you know anyone who might be interested?
or where we could find someone? are there NLP forums/chat rooms we should check out?
 
9:38 PM
@Crashalot Reddit?
Also, funny how the JavaScript "celebs" tend to have discussions on Twitter constantly. So impractical.
 
@ŠimeVidas, good idea, though we don't have enough cred on reddit to ask questions ... thanks for the idea though
 
!!/commandlist
 
@Shmiddty Command commandlist does not exist.
 
!!/listcommands 2
 
@Shmiddty 420, 5318008, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, awsm, beautify, convert, get, google, hang, karma, learn, bewbs, i_am_a_robot, aliens, ym, format, happynewyear, tell2, 3point14, camel, ihatelanadelrey, fa, vk1, vk2, rlhd, popcap, knock, say, heybuddy, codesnotwork (page 0/2)
@Shmiddty tester, cmdname, dance, stab, mustache, nudge, spec, stat, timer, todo, undo, fools, hal9000, oregon, botnet, fuckable, howyoung, hrmmm, hrmmmm (page 2/2)
 
9:42 PM
!!/howyoung 27
 
@Shmiddty 20.5
 
!!/beautify {"foo":"bar"}
 
@ŠimeVidas Message -1 not found
 
Thanks chat bot :-(
 
{'foo':'bar'}
 
9:43 PM
Haha
 
!!/beautify 8626390
 
@Shmiddty Message -1 not found
< code > {
    'foo': 'bar'
} < /code>
{
    'foo': 'bar'
}
 
Ok, chat bot went manual, I think
 
nah, beautify takes a messageid as its input
 
Ah, nice
 
9:46 PM
function(a){
var b=10;
for(;b--;){alert('c')}
return a;
}
!!/beautify 8626504
 
< div class = 'full' > function(a) { < br >
    var b = 10; < br >
    for (; b--;) {
        alert('c')
    } < br >
    return a; < br >
} < /div>
 
and apparently it doesn't like multi-line code
!!/nudge 70 "Go home you jaggoff!"
 
@Shmiddty Nudge registered.
 
!!/mustache rlemon
 
@phenomnomnominal that is sweeeet
 
So good
 
Do guitar hero guitar controllers output midi? I know the drums do?
 
Dunno. But I have been waiting for this so I can connect my midi devices for soooo long
 
9:57 PM
Programming with guitar hero controllers instead of keyboards?
 
WebGL guitar hero
 
If a chicken had lips, could it whistle?
 
teehee php
 
10:04 PM
@SOChatBot yes.
!!Could a chicken with lips whistle.
 
@rlemon Y U NO MAEK SENSE!? Could not understand Could a chicken with lips whistle.
 
m59
@phenomnomnominal I'm headbashing over here again. What about arguments that tryCache has that success and error need? Notice optList and listNum
 
jsfiddle is not a place to just dump code
make it fucking run
or noone is going to give a shit about your problem
 
m59
LOL, you want all 700 lines?
 
m59
10:07 PM
that won't run on jsfiddle anyway :)
 
whatever is required to actually show your problem
 
His problems are just stylistic, they don't need to be run to be fixed
 
m59
Ahhh. I tried something very like that.
 
@phenomnomnominal what you posted won't work
if the fiddle ran you would know that
 
@m59 700 lines isn't that many.
 
10:08 PM
Why won't it work?
 
oh wait no it will
nevermind ><
 
m59
Jeez you're being harsh. My code won't run on jsfiddle anyway. It has some youtube scripts and ajax stuff to deal with that are security issues if presented like that.
cross-domain and what not.
 
assuming it never gets called twice before getting a response
 
!!/choose "work on chat" "netflix and game" "clean fish tank"
 
@rlemon work on chat
 
m59
10:10 PM
@phenomnomnominal Thanks man. I tried doing that but using more tryCache properties.
 
@SOChatBot ok, but not for long. I really wanna game
 
Hold music is the devil
 
MUSIC IS EVIL
IT MAKES YOU WANT TO TAP YOUR FEET
(My mom really said that. Maybe I wasn't listening and that's what I heard)
 
I feel very sad for her :(
 
m59
10:16 PM
The Devil's got feet.
 
And angels have?
 
m59
and he uses 'em fer walkin'.
angels have holy wings, der
 
Yes, and feet.
WAIT
 
m59
lol
 
Whoa, almost 4am
 
10:17 PM
Angels always be playin' harps and flutes and shit
 
Later
 
m59
take that Church of Christ
 
Hahaha
 
Satan be trippin'
 
!!Are you there?
 
10:21 PM
@OctavianDamiean Indeed
 
!!/cake
 
@Shmiddty Command cake does not exist.
 
the cake is a lie!
.
 
@Shmiddty Command why does not exist.
@Shmiddty Y U NO MAEK SENSE!? Could not understand why does my butt smell?
 
!!Does Shmiddty's butt smell?
 
10:26 PM
@OctavianDamiean Yes, absolutely
 
m59
lol I get owned. @phenomnomnominal, the vars all got set to the 4th iteration's value. I think that is what David was warning.
 
Oh yeh, it's async
Hmm
 
just use the context option that ajax requests have ><
 
m59
I'm one step closer to thinking those have to be properties of the main object :(
 
!!/learn cake "The cake is a lie!"
 
10:27 PM
that's what it's for
 
!!/tell SoChatBot say '!!/tell SOChatBot "I heard you like scripts"'
 
@OctavianDamiean Command cake learned
 
!!/forget cake
 
@Shmiddty Command !!/tell sochatbot "i heard you like scripts" does not exist.
@OctavianDamiean The
@OctavianDamiean Command cake forgotten.
@OctavianDamiean Command cake learned
 
!!/listcommands
 
10:28 PM
!!/cake
 
@Shmiddty 420, 5318008, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, awsm, beautify, convert, get, google, hang, karma, learn, bewbs, i_am_a_robot, aliens, ym, format, happynewyear, tell2, 3point14, camel, ihatelanadelrey, fa, vk1, vk2, rlhd, popcap, knock, say, heybuddy, codesnotwork (page 0/2)
@OctavianDamiean The cake is a lie!
 
m59
I'm checking that out. I don't know anything about it.
 
var data = {
'context': {optList:optList, listNum:listNum},

and then

object.feed_callback(this.optList, this.listNum, feed);
 
@SoChatBot Hi!
 
m59
ballz
that would be sweet.
 
10:29 PM
!!/tell SoChatBot say '!!/tell SOChatBot say "I heard you like scripts"'
 
@SoChatBot Hi!
 
aaaand I'm back
 
oh shit hide the lollies
 
@Shmiddty add ?fake=.jpg to fake a photo
 
gotit
:)
 
10:37 PM
Oh look, some cats.
 
I come to check what's going on here every now and then. Last time I checked, devil, now cats.
 
counter = 0; // resetting the counter
 
console.log(data); // Log the data to the console.
 
10:41 PM
lol
 
i++; // add one to the i
 
//Line intentionally left blank
 
myFunction.call(this); // Call myFunction.
 
Math.max(1,2,3); // get 3
var a=~1&2^c|x; // do some math stuff
 
// This is a comment.
 
10:47 PM
Websockets are annoying
 
:o
 
Or, at least, don't work on my server (router issues?).
 
how so? when i gave them a try they seemed pretty sweet
 
@SomeKittens Of course they do.
You're using them right now (most likely).
 
I'm playing with a chat tutorial (node)
 
10:48 PM
ok enough working on the chat.
@SomeKittens feel free to use ;) ;)
(I like to think I can make a website look nice)
 
Using plain Bootstrap? :D
 
mmmm bootstrap
 
for prototyping yes
 
@rlemon I'll put that in when I get this stupid thing working
 
Ah alright.
 
10:49 PM
@SomeKittens whats the issue
worked fine for me
 
From the console, it's connecting initially but neither end sends messages.
 
got websockets installed?
 
yup.
 
running it locally?
 
10:50 PM
change the client to not connect to 127.0.0.1
 
I did
 
;)
still nothing eh?
did you follow the tut or fork the gist
 
gist
Though bent to work properly with Express
 
ahh well I am not using express
 
Yeah, I want to expand it (rooms, like you said)
 
10:52 PM
0
Q: Sending data from admin table to printer that doesn't involve hacking WP core

Nima MoradiI've put together a print button on a custom page as part of my theme that sends the populated table data to the printer. It's done with javascript and it removes the wordpress sidebar temporarily while printing and reverts back when it's done. The point of this was that I didn't want the wordpr...

 
i'm going to try without express
 
JSHinted the whole thing
 
you should be writing it in coffeescript!
 
YOU SHOULD BE WRITING IT IN COFFEESCRIPT
 
@david You're trolling, right?
 
10:54 PM
no :(
coffeescript is great and does all things
 
phenomnomnominal--
 
"The answer to your problem is to add another abstraction that doesn't address your problem in any way"
 
david--
 
i wrote my websocket chat thing in coffeescript!
 
david--
 
10:54 PM
OH SHIT GETTING REPPED
 
phenomnomnominal++
 
!!/refresh
BAM
 
i'm not saying coffeescript will address the problem with websockets
but it will address the problem of you having to run your shit through jshint >_>
 
just that its awesome, and you should use it
 
pretty much
 
10:56 PM
 
@phenomnomnominal slob on my cob?
 
I'm going home now bai
 
@rlemon could you post your code somewhere?
The node chat stuff
This is probably something really stupid
 
@SomeKittens, are you using express 3?
 
11:00 PM
yeah
 
From memory, it's really fucking annoying to use with sockets
are you doing it with or without socket.io?
 
Without. Considering switching
Wanted to learn the basics
 
i used 'ws'...
and just made it listen on a different port to everything else
 
@SomeKittens lol dude. literally I forked the repo, changed the 127.0.0.1 to chat.lemonmeme.com and fired it up
 
can you link me to the repo rlemon? I'm curious now
 
11:03 PM
@rlemon arg. This always happens.
 
My server's at home with port forwarding, have to do everything on 8888
 
m59
@david now the odd thing is that I really kind need 'context':this because the callback needs to use this.functions.
 
still shouldn't be a problem
 
http://chat.lemonmeme.com/chat-server.js
http://chat.lemonmeme.com/frontend.js
http://chat.lemonmeme.com/index.html
there are my files. for the world to see ! :P
again, my goal was to see if it worked :P
 
11:05 PM
@m59 then do context: {self:this, optList:optList, listNum:listNum}
 
m59
@david so I tried context:{object:this, etc} then this.object.myFunctions but that didn't work out, so then I tried passing the functions themselves..
@david, yeah, that caused "Illegal Invocation"
 
why are you adding those functions as properties on another function anyway?
just wrap them in a closure ><
 
m59
They need to be overwritten by a child object, I think.
 
did you pass the functions, or call them?
 
m59
It's really being very strange. If i pass the actual functions, it calls one of them when adding it to context. That makes NO sense.
literally, let me paste it...
 
11:07 PM
i bet you're calling it in the object literal ><
 
Yeah, probably
 
i shouldn't have gotten involved >_>
 
@rlemon How are you getting index.html to load? nginx?
 
@david, he has been working on this for a long time
 
lol apache
godaddy man.
 
11:09 PM
@rlemon Ah, that's my problem. No Apache. (which is kinda the point of node)
 
m59
'context':{optList:optList, listNum:listNum, callback:this.callback, tryServer:this.tryServer} callback won't get called, yet tryServer will. and it is only this line where they are ever mentioned at all. I tested that out like crazy to be sure...
 
yea and i'll get to that. right now i'm just using node over php for server processing
baby steps... baby steps..
 
m59
How can that be invoking the function!? and even then, only the one of them and not the other lol.
 
Where is it called from?
 
m59
@david When I started this, I didn't know JS really at all. I wrote in procedurally with a ton of globals lol. I keep re-writing it to improve.
 
11:11 PM
put a breakpoint in and look at the callstack
 
@m59 is there any way for you to setup a public staging environment so @phenomnomnominal can take a look at the code in action? I think that would be ten thousand times more useful.
 
I agree so much
 
someone had to suggest it
I know he's been struggling with this for a long time but no one (to my knowledge) has seen the code in action but him.
At this point spending some time setting up a free server (or your server) to host this so we can actually see it might make our helping you more productive
 
m59
I have that, yes.
 
link?
 
@phenomnomnominal go!
( i'm just a mediator here )
 
m59
I thought you meant jsfiddle lol. I have't figured out how to make ajax work there (and didn't care to since it rejected the youtube api also)
but the api comes into play way later
@phenomnomnominal hold on...I see why it invoked the one and not the other. The other doesn't exist yet.
Why it is invoking them...dunno. jQuery is doing I'm pretty sure.
 
@m59, you need to look up $.post and $.get
 
but really guys.. basic "design" for the 'room' is ok? jsfiddle.net/RuSZt/3
 
I give up, time to switch to socket.io
@rlemon Yep
 
11:17 PM
ofc once I start developing the actual chat things might need to change
 
What is the difference between the 'websocket' node library and the 'ws' node library? ws seems a lot... simpler
 
I didn't know there were two
:P
npm install websockets iirc is all I did :P
I'm such a node noob
it's fun
 
check the examples here: github.com/einaros/ws
i'm going to have to research more
ws was updated more recently!
 
updated more recently !== better
 
m59
@phenomnomnominal you mean, scratch the makeAjax function? That makes sense.
 
11:20 PM
might... but not always
 
@m59 yep
 
no not better, but more active is always good
 
Socket.io uses ws
 
@m59, you need to actually assign context as context in the $.ajax call, and then use this in your handlers
 
m59
If I understand you, that would take away passing the arguments in context
I need both
context:{object:this, arg:arg, etc:etc} really makes sense. Just doesn't work :(
 
11:26 PM
Because you're using it wrong
 
@m59 yeah the code i pasted was wrong. I didn't realise you were doing the crazy makeajax stuff
 
m59
Doing it that way would make it this.object.myFunction, correct?
 
you need to put that context field into the $.ajax optiosn
 
makeAjax : function(type, url, dataType, data, success, error) {
  return {
    type: type,
    url: url,
    dataType: dataType,
	data: data,
	success: function(response) { success(response); },
	error: function(jqXHR, textStatus, errorThrown) { error(jqXHR, textStatus, errorThrown); }
    }
},
You need this:
 
m59
DOH
I see.
 
11:27 PM
Oh k won't type it out then
just get rid of that
 
m59
lol my brain is fried.
 
and use $.post and $.get
 
m59
My reservation about those is how errors are handled.
 
What errors?
Just pass an error function?
 
m59
only accepts success
error has to be bound to it
kinda silly.
 
CoffeeScript sucks
2
 
I'm going to slap you in the face @SOChatBot
you punk ass bitch
 
What a timing.
 
11:47 PM
Greene Daeye!
 
11:58 PM
(I don't actually care if people use coffeescript or not, I just find it neater)
 

« first day (899 days earlier)      last day (4063 days later) »