« first day (947 days earlier)      last day (4006 days later) » 

6:00 PM
Even bewbs writes better html then him!
 
!!cowthink Despite all my rage, I'm still just a cow on a page
2
 
@FizzyTea @Shmiddty it might be something with a binary string + generating the last or first bit from something else
 
 _______________________________________
( Despite all my rage, I'm still just a  )
( cow on a page                          )
 ---------------------------------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
@Darkyen Is that a vampire that has hepatitis?
 
user1596138
I don't want to be a dick. But yeah, he needs to get his shit together. It's worse than my work's website.
 
6:00 PM
grrr, I need better text partitioning...
 
@OctavianDamiean pun on help vampire
 
user1596138
!!cowthink -f sheep Does this work?
 
!!cowsay Oh lemon i miss you
 
 _________________________
( -f sheep Does this work? )
 -------------------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 ____________________
< Oh lemon i miss you >
 --------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
user1596138
Hmm. All we have is the cow.
 
6:01 PM
@JosiahSouth though code is yours
 
@SomeKittens, you win 1000 internet points.
 
you shall edit it
@SomeKittens cungratulations
 
@JosiahSouth huh, making additional templates...interesting
 
@phenomnomnominal Woo! I can use those to pay off my internet mortgage.
 
Asking a lot of intelligent, well thought out, well researched and well explained questions isn't help vampirism
 
user1596138
6:02 PM
@Zirak Have you seen the actual cowsay? There's dozens of templates.
 
@TomW, correct. Something that has almost never happened.
 
user1596138
@Darkyen I'm assuming this was about my website. If so, I would like to kindly tell you to.... FUCK. OFF.
 
'course. But after implementing cow{think,say} and the eyes/tongue I stopped
 
user1596138
:)
 
@copy @Shmiddty Well I did this:
for(i=0;;)print((1937>>i&1)+(1e7+'--11bytes--'[i++].charCodeAt().toString(2)).slice(-8))
You might be able to avoid the 1e7 with a clever encoding, and maybe then do slice(1).
 
6:04 PM
@TomW I completely agree. A lot of users contribute by asking good questions. Staying around to accept answers, and provide comments and insights. I do agree with @phenomnomnominal that those are much more rare than help vampires.
 
@JosiahSouth you are idiot seriously
i meant fork the bot
add the code and send a push request
 
@BenjaminGruenbaum having had a brief skim of the aforementioned user's questions, I think they're of reasonable quality and it's not fair to call him a help vampire, was my point
 
@TomW Oh, I don't have any context. What user are we talking about?
 
user1596138
@Darkyen I was just screwing with you....
 
We could set only the high bit and get rid of slice at all
Oh no
 
6:05 PM
@TomW, have you looked through his entire chat history?
 
@JosiahSouth dude i am commited
 
Because unfortunately, we get a lot of questions in here that people don't see as appropriate for the main page.
 
user1596138
@Darkyen I don't even understand.
 
user1596138
@phenomnomnominal True. Although I think small questions are better to be asked here.
 
user1596138
Gotta switch machines..... Get to go to the Mountain Lion iMac.... Blah. Hate this shit.
 
6:07 PM
Yes but then people get into a habit of "I have a small question, fuck googling it, I'll just go ask in the chat".
 
@copy @Shmiddty But clock has more binary data in there, looking at the stats.
 
He has 10
 
@BenjaminGruenbaum Could you try accessing what you sent me yesterday?
 
So he is encoding the high bits
250 12 12 38 194 11 0 162 148 188 148
 
@Zirak "Sorry, that page was not found."
 
6:10 PM
hehe, thanks
 
Is there anything in JavaScript I can add to an array and get NaN
 
for(i in a='12345678901')print((1e9+a.charCodeAt(i).toString(2)|269>>i&1).slice(-9))
@BenjaminGruenbaum Only if the array isn't empty or contains one number or numeric string
 
!!> [] + NaN
 
@phenomnomnominal "NaN"
 
@phenomnomnominal hah :) didn't think of that, anything else?
 
6:13 PM
@phenomnomnominal That's not NaN.
 
@copy example?
@FizzyTea Wait, yeah, that's not NaN, that's the string "NaN"
 
Yeah, that's a wat? moment.
 
Valid numbers: [], [""], [" "], [3], ["5454"]
 
([0]/0 is NaN)
 
6:15 PM
so is []/0
 
@copy Well, I want to add something to an array and get NaN, the array may be whatever
 
It's always going to cast isn't it?
 
So what's wrong about []/0
 
can't be done. [] is the empty string for the purposes of addition
 
It's not the addition of something to an array
 
6:17 PM
> add to an array and get NaN
 
Oh, yeah no
 
Do you mean add to an Array as in push? or add as in +
I think I know the answer, but sleepy.
 
neither can be done
 
And yeah, array addition is stringification
 
@phenomnomnominal +
 
user1596138
6:18 PM
@phenomnomnominal True dat.
 
string + anything = string (or exception)
 
@JanDvorak When does it produce an exception (provided the code compiles)?
 
@JanDvorak How exception assuming "anything" is valid
 
user1596138
Random and off-topic I know! But does anyone else feel like this question shouldn't have been closed as off-topic? It isn't off at all. stackoverflow.com/questions/16573375/…
 
ninjad :/
@JosiahSouth That should be on serverfault
 
user1596138
6:19 PM
@BenjaminGruenbaum Ah that makes sense. I don't use many of the other sites.
 
@dystroy ""+{valueOf:console.log} => "console.log is not generic"
 
@JosiahSouth SO is self governing mainly based on what's on/off topic, you can ask in the php room
 
TypeError: Illegal invocation
 
!!> [] + ((Array.prototype.toString = Math.sin), 0)
 
@copy "NaN"
 
6:20 PM
@JanDvorak nice
 
user1596138
Alright, well I'm about to go show the boss man my "progress" on our app. It's been a month but he's made it my lowest priority and for some reason he thought that meant I'd be working on it? I have 6 things higher up than it.
 
!!> []+{valueOf:console.log}
 
@JanDvorak "undefined"
 
user1596138
@BenjaminGruenbaum Well it wasn't my question, in fact I answered it. I just wondered.
 
eval's console isn't that erratic
 
6:21 PM
@copy You win :)
 
!!> []+{valueOf:function(){throw "oops"}}
 
@JanDvorak "oops"
 
@BenjaminGruenbaum What's the prize?
 
!!> []+((a='a'),1)
 
@JanDvorak That's interesting
 
6:22 PM
@phenomnomnominal "1"
 
Weird, evals differently in Chrome
 
@copy Was wondering if there was any sense in "Your momma's so fat, when you add her to an array you get NaN" which I saw on FB
 
Oh duh
I need sleep
 
@dystroy an object is primitified by calling valueOf. If valueOf is not callable, toString is used. If neither is available, a typeError is raised
 
user1596138
6:25 PM
Hahahahahaha I love this comment from Zirak in Chatbot's cowsay plugin.
 
user1596138
//it looks more like a donkey who was involved in a sledgehammer accident
 
user1596138
// because of escaping and newlines
//the cow business is a dangerous one
 
@phenomnomnominal / @BenjaminGruenbaum Can you give me some cfs snippets for testing?
I think I got it
 
coffeescript.org has a bunch
(in the overview)
 
oh, you know whitespace (as in newlines) will be a problem, right?
 
6:32 PM
coffeescript can be written without newlines
just use semicolons and parentheses
 
@JanDvorak Like regular JS?
 
@Zirak newlines? no, whitespaces? of course, coffeescript is whitespace sensative
 
Can somebody explain this to me?
 
@SomeKittens not quite. Lambdas are (arg)=>arg*arg
 
6:33 PM
@SineLaboreNihil format your code (control+k)
 
show(Math.min.apply(null, [5, 6]));

function negate(func) {
  return function() {
    return !func.apply(null, arguments);
  };
}
I'm not sure if I did taht right this time.
 
#  valid coffeescript
if flag is on
    b
# if I wanted to write this in one line
if flag is on then b
 
Anyways, it's from Eloquent Javascript chapter 6.
 
@BenjaminGruenbaum b if flag
 
Which part are you having an issue with?
 
6:35 PM
Where is the negate function used there and what does apply do?
 
user1596138
@SomeKittens I never saw this message... But yes, that's my plan.
 
@JanDvorak Yeah, I wanted to emphasize how to write complete multiline ifs, not show off compact syntax :)
 
I love Ruby's (and coffeescript's and python's) modifiers
 
ok everyone. I need some serious help - i'll even pay. BOOM.
 
@JosiahSouth very good. Now execute
 
6:35 PM
Why wouldn't it just pass (5, 6) to Math.min and be done with it?
 
Will you pay with blood?
 
I need to convert PDFs into an HTML template.
 
@SineLaboreNihil It negates the return value of the function, I don't see it used here
 
@Zirak anything you want, bby
 
@SineLaboreNihil Oh, I think maybe he's just showing off apply
 
6:36 PM
@KevinMurphy good luck with that
^^that
 
@SineLaboreNihil And if you had a variable holding that array?
 
!!/tell SineLaboreNihil mdn apply
 
Well that's very confusing for a beginner.
A function is never passed to negate.
 
@SineLaboreNihil The two examples are seperate
 
6:37 PM
!!s/off apply/off/
 
user1596138
@SomeKittens Can't haha. Servers down. Has been for 9 hours. We have the worst hosting imaginable.
 
@JanDvorak Command off does not exist.
 
forgot the s
 
@JanDvorak @SineLaboreNihil Oh, I think maybe he's just showing off (source)
 
@JosiahSouth No local copy? Make one ASAP
 
user1596138
6:37 PM
Settin up my Git now instead. Boss man said just hangout and answer phones.
 
@BenjaminGruenbaum fully aware
 
Yeah, but they're written within the same example and I thought they had something to do with each other.
 
@SineLaboreNihil Apply lets you execute a function yourself, choose what 'this' is bound to, and pass the arguments.
 
I guess I have to do all of these by hand. I think I automated it as much as I can
=[
 
@JosiahSouth Git's also a nice thing to have
 
6:38 PM
And what does null do there?
 
@SineLaboreNihil Math.min accepts var-args (that is, Math.min(3,4,5)) but he wanted to execute it on an array, Apply lets him to that conversion.
 
user1596138
@SomeKittens I have one. I have a bash script that runs every night using wget to mirror the entire server. It downloads anything with a newer timestamp and replaces the old things. Then once a week it's backed up on our backup drive just in case.
 
@SineLaboreNihil ad "function never passed to negate" -- have you heard of monads? Wrappers?
 
No.
I'm a novice.
 
@SineLaboreNihil your question was perfectly valid, don't worry :) It's a good question
 
6:39 PM
Hehe, thanks. :)
 
@SineLaboreNihil function log(f){return function(){console.log("hello"); f.apply(this,arguments)})
 
I just find Eloquent JavaScript really overwhelming.
And it's advertised as a book for beginners.
 
function log(f){
  return function(){
    console.log("hello");
   f.apply(this,arguments)
  }
)
 
user1596138
I basically made a dumbed down edition of Apple's TimeMachine. Except mine actually works. Plus who the hell needs a backup every hour.
 
@JosiahSouth Neat. That's the sort of thing that gets you interviews. Solid code standards to problems (especially ones built on your own)
 
6:40 PM
wraps f in a function that logs every call to it
 
@SineLaboreNihil Give it time, it takes a while to learn, feel free to ask questions here. Read the MDN page on apply (and its sister-function call) it's very good.
 
@JosiahSouth rsync is always a nice tool ;p
 
user1596138
@SomeKittens I've also built our entire ad updating system, and calendars. We have to have calendars updated every night by 3am and ads are always changing. It's all automated now so the boss man only has to put things in the right folder.
 
Thank you all for your help. I really appreciate it.
 
womp.
 
6:42 PM
@JosiahSouth Sounds like you've been busy. You stop working unpaid overtime yet?
 
brb lunch
 
I went through all JavaScript tutorials on Codecademy, and I went through the W3Schools tutorial on JavaScript but Eloquent JavaScript is just very confusing to me. I think that it assumes too much knowledge from the reader and goes over the material too fast.
 
user1596138
@SomeKittens I work 25 hours on the clock. So I'll never hit actual OT ;). But I take my work home every day and usually debug things on my own time around 11 or so.
 
!!c> map = (m * m for m in [1, 2, 3])
 
I definitely don't think it's for novice programmers.
 
6:43 PM
@phenomnomnominal [1,4,9]
 
@SineLaboreNihil ditch w3schools
 
@JosiahSouth Stop doing that. So long as you're working for free, they won't start paying you
 
Why Jan Dvorak?
 
!!c> [0, 1, 2, 3, 4, 5].filter (n) -> n % 2 != 0
 
6:43 PM
@Zirak [1,3,5]
 
@SineLaboreNihil w3fools.com
 
Implemented
 
user1596138
@SomeKittens I honestly do a lot of work unpaid.... I stay up till 3am on wednesdays to put together spreadsheets for our battle of the bands results...
 
Every time your boss says "Hey, can you do X", tell him you need more time on the clock
He'll get the message eventually
 
6:44 PM
Y U SO NOISY
 
@phenomnomnominal Nice!
 
!!c> [0, 1, 2, 3, 4, 5].filter (n) -> n % 2
 
@JosiahSouth yeah listen to @SomeKittens.. you'll get bit in the ass real hard sooner or later.
 
user1596138
@SomeKittens I actually just put my 2 hours from 3am to 5am wednesday on my time card. He'll notice Friday.
 
@dystroy [1,3,5]
 
6:44 PM
Dont do that @JosiahSouth
 
@SineLaboreNihil I had the same issue when I started reading Eloquent javascript. Once you get to Chapter 6, its starts to click into place.
 
You are devaluing your work.
 
!!c> [abc, two, three] = [['a', 'b', 'c'], 2, 3]; console.log(val) for val in abc
 
@phenomnomnominal "undefined" Logged: "undefined","undefined","undefined"
 
@Loktar Don't put the extra time on the card?
 
6:45 PM
Thanks Jan Dvorak, but I think that the references w3 offers are pretty useful. I'm not into their certifications or anything like that. But I think they have some valid info to offer.
 
user1596138
I understand this. I've had enough of it myself. I'm going to work my logic theories at home because I enjoy doing it on paper on the couch. Other than that I won't be doing anything more off the clock.
 
No, dont do work for free. @SomeKittens
 
@phenomnomnominal "ReferenceError: a is not defined"
@phenomnomnominal "undefined" Logged: "a","b","c"
 
@SineLaboreNihil use google for references
or MDN
 
@Loktar Ah, makes more sense.
 
6:46 PM
@mikedidthis I am at chapter 6 and it's not clicking into place.
 
Some Dr's love their work, but if you could get 20 dr's to not charge you why would you ever want to pay one good money?
 
user1596138
@SomeKittens Haha
 
Once I got through with w3schools I actually found MDN to be a much better reference guide.
 
Lots of IT people love their work, and just say "its not big deal" to not charge for it, but when you give so much work away you are telling the person its not really worth that much if they are getting it for free.
 
Finished Coffee cup #1 and still having trouble focusing
blah.
 
user1596138
6:47 PM
Exactly. I really like working through my program logic at home when I'm relaxing though, so I'll do that. But it's not like I have to.
 
Thus devaluing it for everyone
 
The re-introduction to JavaScript on MDN was pretty good.
 
user1596138
@SomeKittens I'm on espresso number 3. Late night...
 
@JosiahSouth yeah I feel your pain man, I love what I do
its hard to just stop sometimes
but I've learned over the years I have to
 
@SineLaboreNihil I would carry on. Also remember to take a break and go back to it.
 
6:48 PM
@JosiahSouth Nope. Instead, work on some fun GitHub projects. Mention them at work. Message to boss: "I'm getting bored here, and am working on getting a better job. Do something or you'll lose me"
 
user1596138
I love it too. I'm going more and more into the hole every week though, so somethings got to change now.
 
@Loktar Sounds like a very good problem to have
 
c> console.log "YAY FOR COFFEESCRIPT"
 
@JosiahSouth I thought you were in the midwest
 
6:48 PM
@AmaanCheval not really. My mom has asked me to make her a website in under 2 days
I charged her.
 
user1596138
@SomeKittens He's losing me no matter what. This business is going to die in the next year or two, guarantee it.
 
!!c> (uniq = (arr, obj = {}) -> obj[arr[i]] = arr[i] for i in [0...arr.length]; return obj[i] for i of obj) uniq([1, 1, 1, 2, 3, 4, 5, 'a', 'ZIRAK', 'is', 'pretty', 'cool', 'cool'])
 
@phenomnomnominal "function (arr, obj) {\n var i, _i, _ref;\n\n if (obj == null) {\n obj = {};\n }\n for (i = _i = 0, _ref = arr.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {\n obj[arr[i]] = arr[i];\n }\n for (i in obj) {\n obj[i];\n }\n return uniq([1, 1, 1, 2, 3, 4, 5, 'a', 'ZIRAK', 'is', 'pretty', 'cool', 'cool']);\n}"
 
user1596138
@SomeKittens I meant last night was a late one. Got home about 2am.
 
@mikedidthis Oh, I'm definitely carrying on. I am really passionate about programming and learning programming languages so I'm gone push as hard as I have to to learn everything I need.
 
6:49 PM
ah?
 
@SineLaboreNihil I think you'll like Ruby
 
I just feel really frustrated when I get stuck on Eloquent JavaScript examples and they advertise it as a beginners guide on JavaScript.
 
user1596138
I'm about to go work FT at a factory.
 
@SineLaboreNihil nice to hear. The folks in here are always helpful.
 
Ruby is my ultimate goal! :D
I noticed that. I really appreciate the help I can find here. :)
 
6:50 PM
[].methods.sort.grep /!$/
 
user1596138
Fuck. The servers back up. That means I have to get back to work.
 
The most basic question of the day :
-1
Q: What do plus signs on either side of a variable mean?

blbakerI once saw a long line of code inside an inline "onclick" and was wondering what the + signs mean on either side of the variables. Are they important? The example, watered-down code (if I remember correctly) looks something like this: var HTML = '<a onclick="$('+ variable_id1 +'").show(); ></a> ...

 
@phenomnomnominal "undefined"
 
Bah
!>> [1,2,3].map(x=>x*x)
 
As soon as I feel comfortable with JavaScript I am gona move on to Python and PHP, and Ruby is my ultimate goal. :) I actually had JavaScript, PHP and Java in college, but they just show you the fundamentals and where to look for more. If you want a more in depth knowledge you have to put in the effort yourself.
 
6:51 PM
@FizzyTea You're using the wrong style
 
@Zirak ^^^ Easier to add than CoffeeScript!
 
!!c> [1, 2, 3].map (x) -> x * x
 
@phenomnomnominal [1,4,9]
 
@AmaanCheval Get a recent Firefox!
 
@SineLaboreNihil Yep! My advice is to skip PHP (the time you'll spend learning it isn't worth it).
 
6:52 PM
@FizzyTea I was talking about invoking the command for the bot
 
@phenomnomnominal use => to bind this automatically
 
I am a web developer and people here look for PHP developers. There aren't a lot of us in my country.
 
@JanDvorak. trust me i know
 
0
Q: Begginer webdeveloper. How to make development right?

user1292810I am at the beginning of my programmer career. I work in some local company for over six months. In the company there are about 55 programmers and webdevelopers and it is the biggest webdev company within a radius of 100 km around my home. What is more, the company creates websites and webapplica...

 
@AmaanCheval Hee! Oh yeah! My point doesn't depend on that luckily!
 
6:53 PM
PHP is very useful to know, I don't like it very much as a language but that doesn't make it less useful
!!c> console.log "YAY FOR COFFEESCRIPT"
 
@BenjaminGruenbaum "undefined" Logged: "YAY FOR COFFEESCRIPT"
 
But it's also so widely used that I think it's almost essential to know it if one wants to go into web development.
 
Mhmm, should I go for a 150€ car or a 800€ for the first couple of rides?
 
PHP is a terrible language
 
I guess a 150€ one would make more sense.
 
6:54 PM
!!c> someone = "ZIRAK"; console.log "YAY FOR COFFEESCRIPT AND #{someone}"
 
@phenomnomnominal "undefined" Logged: "YAY FOR COFFEESCRIPT AND ZIRAK"
 
I guess I'm not really versed enough in PHP to like it or hate it. I just do it. :D
 
!!c> (i*i i for i in [1..10] when i%2 is 0)
 
@BenjaminGruenbaum "undefined"
 
PHP didn't have array literals (array(...) doesn't cut it) until 5.4
 
6:54 PM
!!c> blah = (i*i for i in [1..10] when i % 2 is 0)
 
and they are still ugly compared to JS/python (=> instead of :)
 
@phenomnomnominal "ReferenceError: x is not defined"
 
right, cs, not python
@ThiefMaster yep
 
@phenomnomnominal 100
@BenjaminGruenbaum "TypeError: i is not a function"
 
6:55 PM
@phenomnomnominal [4,16,36,64,100]
 
Ruby has => for hashes, too
 
@CapricaSix wtf?
 
@Zirak, yeh that one was weird.
 
!!c>[1..10].filter((x)->x%2 is 0).map((x)->x*x)
 
@BenjaminGruenbaum [4,16,36,64,100]
 
6:57 PM
{a: "hi"} is valid ruby since 1.9 or so, and synonymous to {:a => "hi"}
 
This works in FF now:
`[x*x for (x of [1,2,3,4]) if(x%2 == 0)]`
 
Should call her Caprica sex.
Thats what I've always called her.
 
@Loktar Smooth.
 
i wish PDFs never existed.
 
@KevinMurphy which replacement do you suggest?
 
6:58 PM
@KevinMurphy Isn't pdf mainly a wrapper for a subset of post script ?
@JanDvorak HTML
 
@JanDvorak HTML
 
@JanDvorak HTML
 
@JanDvorak Have you considered HTML?
 
@Zirak no, but thanks for the suggestion!
 
6:59 PM
@BenjaminGruenbaum, @KevinMurphy, @BenjaminGruenbaum, @zirak HTML can't (efficiently) store images
 
Flash
 
@JanDvorak do you have any good Ruby tutorials to recommend for me to study from?
 
I KID I KID.
 
@JanDvorak Why not?
 
Man no one jumped on me.
 

« first day (947 days earlier)      last day (4006 days later) »