« first day (1655 days earlier)      last day (3296 days later) » 

11:01 AM
@Meredith s/4/2/ on your number
I'll post the lisp code
Little bit ugly because of conversions, but well
 
Is the challenge ben posted discussed here ?
 
Isn't all lisp just ugly? :P
 
@dystroy pins
Ah. Yeah
 
"pins" ?
my code is ugly and long (seven lines if properly formatted) :(
 
Lisp isn't ugly, just misunderstood
 
11:03 AM
@dystroy Probably starred
 
obligatory
!!xkcd lisp
 
ermm, no :(
 
!!xkcd parentheses
 
11:06 AM
@MadaraUchiha what?
@MadaraUchiha because it's not a tail call, for one
 
@BenjaminGruenbaum It's a tail call
 
@BenjaminGruenbaum Sure it is.
 
Hey guys, I have json static source file. This file contains json string with special charters like (Yònghù míng). I tried to access this source file using jquery ajax . But I am getting response with (?) question marks. How to set proper charset for response
 
@AwalGarg No, Lisp code is beautiful! You just need to get into it! Like Inception! But cooler, because it has many many more layers!
 
response : Y�ngh� m�ng
 
11:10 AM
@gowri you should probably store and transmit them as UTF-8 = server-side issue
 
@gowri Just let your server respond with an appropriate encoding. Is the file UTF-8 stored? Then set UTF-8 headers. If your server reads it into a string before passing it to the browser, make sure the encoding is appropriate there, too (usually, they don't do this).
 
The last thing isn't a recursive call, it's an operator applied to it
 
That said it should still work
 
Thanks for tought I will try to set encoding type to file
 
11:12 AM
@ivarni Nah, they hacked most of it with perl.
 
!!tell 22969376 xkcd lisp
 
@MadaraUchiha That's why everything in our universe is just random :/
 
@BenjaminGruenbaum The deciding part is what happens to the return value of the recursive call, anything before doesn't matter
 
11:13 AM
@MadaraUchiha works with a function declaration
 
OK, 3 lines
 
@copy TCO is defined very specifically in ES6 afaik
 
@BenjaminGruenbaum Yeah, looks like it just doesn't work with functional expressions apparently.
 
lol, ES6
 
Just changing it to a function declaration makes it work. Open a bug report
 
11:16 AM
How do you write named function expressions using fat arrows ?
 
@RoelvanUden, @JanDvorak : Thanks I set charset (ISO-8859-1) using htaccess file and it works
 
I mean this
console.log(function f(v){ return v ? f(v-1)+v : 1 }(3))
but with =>
 
@gowri I said utf-8
 
@BenjaminGruenbaum ^
 
11:18 AM
@JanDvorak: utf-8 giving ? marks, but this works ISO-8859-1
 
@gowri then store the file as UTF-8!!!
 
^ That so much.
You'll have other issues if you use a funky ISO-8859-1
 
Let me try that
 
it works!!! Thanks you so much for helping
 
11:24 AM
Why would they call it v2 if there are only relatively minor changes?
2
 
idk
 
@RoelvanUden I'd like to know the answer to that question
 
Maybe because of V8 upgrade?
 
@AwalGarg Not substantial enough for a major version though
 
no idea then.
 
11:27 AM
That's kinda why I felt like sharing :)
feels like updating for the sake of updating
 
But the issue does state it:
> This is very early but we're risking a long period of time with no release and a build-up of changes so we need to push to get this out.
 
No change is too minor
 
@MadaraUchiha Looks like it's 2.0 because this: github.com/iojs/io.js/pull/1433
 
@ivarni No, it looks like this is because of 2.0...
 
11:29 AM
@MadaraUchiha that's tagged semver-major and it does change the default of some node-gyp thing
 
@MadaraUchiha oh, they just figured they'd throw it in there because 2.0, yeah that's probably more what they say
 
@AwalGarg it's too long to read >_>
 
11:32 AM
instructions unclear. forgot how to read
 
How big is the TC39 community internals?
 
Since we're talking about IOjs anyway, is there any schedule to go for promises instead of callbacks in the built ins?
 
And generators and coroutines ^^
This is probably a silly set of questions, but:

Where do we fetch V8 from?
Are there any patches (or other, manual actions) we have to apply to add a new V8?

@chrisdickinson when you find answers perhaps you could document somewhere? either the wiki or in docs/
ahahahaha
 
@AwalGarg ?
 
11:36 AM
@BenjaminGruenbaum You commented there.
 
@dystroy you mean named function expressions? There is a Python trick, but you don't
@AwalGarg I comment on a lot of stuff in io.js, I try to be at least somewhat involved.
 
@BenjaminGruenbaum well, I wrote "named function expressions ", yes. It's very convenient for recursion
 
@dystroy oh lol, I'm a retard, there's no way... well, there is a hack around it if you wanna see.
 
I'd like to see it :)
 
I wanna see.
 
11:38 AM
There's also arguments.callee that'd work, but that sux
The trick is you pass the function to itself as an argument and then call it by argument name
 
that's ugly
 
@BenjaminGruenbaum example?
 
@BenjaminGruenbaum fix? How's that a hack?
 
So, no fat arrow based named function expressions, in short. I can live with that.
 
I am too dumb :(
 
THE
11:40 AM
is it just me getting bored these days ?
 
Bored of what?
 
@THE Try cocaine
 
@THE Try catch
 
wtf is that?
 
11:42 AM
omg
 
Recursion for unnamed function expressions
The function is calling itself with itself as the first parameter
 
"itself"
 
@BenjaminGruenbaum not itself
 
Ok, another function, you can make it simpler lemme make it simpler
 
Would V8 see only one function here ?
 
11:43 AM
Here
Shhh, you're spoilering it
 
sorry :-/
 
Also, it's not really the y combinator, it's similar though :)
 
@BenjaminGruenbaum nice.
well, kind of nice.
 
In computer science, a fixed-point combinator (or fixpoint combinator) is a higher-order function y that satisfies the equation, It is so named because, by setting , it represents a solution to the fixed point equation, A fixed point of a function f is a value that doesn't change under the application of the function f. Consider the function . The values 0 and 1 are fixed points of this function, because and . This function has no other fixed points. A fixed point combinator need not exist for all functions. Also if f is a function of more than 1 parameter, the fixed point of the function need...
 
Seeing iojs issues and codes makes me forget everything. I am such a noob :(
 
11:59 AM
@dystroy ^
 
hopefully I can see the history...
My code returned only one result because I was only building sorted arrays
 
@AwalGarg oldie
 
@dystroy well yeah, I deleted because I know you're RO :P
 
@JanDvorak I am a newbie :P
 
12:02 PM
@FlorianMargaine I didn't think about that loop. It makes it trivial...
 
Hello, has anyone ever used npm's http://registry.npmjs.org/? Trying to figure out how to make a search but the docs aren't clear enough. Found online that it should be something like http://registry.npmjs.org/-/_search?q=keyword but it doesn't work.. Any ideas?
 
commandline or in browser?
asking because command line I'd use npm search <query> and not bother about URLs
 
Browser!
They are using a CouchDb and now I'm checking these docs
 
> {"code":"MethodNotAllowedError","message":"GET is not allowed"}
 
@iamemmanouil That URL acts more like a REST API
 
12:10 PM
looks like they just block it
 
See registry.npmjs.org, I don't think that is meant for visual consumption at all
 
Hmm from their docs The official public npm registry is at registry.npmjs.org. It is powered by a CouchDB database, of which there is a public mirror at skimdb.npmjs.com/registry.
 
I'd still use npmjs.com/search?q=gorilla if I was going to search directly from a browser
I wonder if there's any random keyword that doesn't have a correcsponding *script, apparently there's a gorillascript that compiles to javascript
I literally picked the first random word that came to mind
 
I got an email from them and they told me to check this repo
 
I don't think I understand exactly what you're trying to do
 
12:21 PM
-14
Q: Return an array after for loop in javascript

NiroshanI know there are many ways to reverse an array. I know the easiest way too. But i want to make it a bit difficult. As you can see the you know where to type what. Please replace only those two lines and make it output 7,6,5,4,3,2,1. Thank you. var array = [1, 2, 3, 4, 5, 6, 7]; function PrintA...

Homework assignment: I want to reverse an array
OP: "I know the easiest way too. But i want to make it a bit difficult."
Overcomplicated answers incoming!
 
stackoverflow.com/revisions/29918996/3 this is question vandalism
 
I reverted that original edit
 
yea but still
 
The extra text contained a request to only change the 2 commented lines
Hm, how did that first edit even get accepted? it added a "Thank you"...
 
@ivarni Just want to do a search like api.github.com/search/…
 
12:27 PM
@Cerbrus no, stackoverflow.com/review/suggested-edits/7864807 it removed all of the other text and moved the thank you
 
Aaargh!
 
Oh, I just received an email *"You're the first to collect this new badge"*
but... turns out it's not SO but TripAdvisor and it's just their usual bullshit ^^
 
Don't comment on an answer and immediately delete the answer
Oh, didn't add the "thank you", only moved it
Still horrible :P
 
@Cerbrus The OP used their binding vote to accept it
 
Question gone. screw it.
 
12:32 PM
^
 
If somebody has time to look for the QA for closing as duplicate...
-4
Q: Javascript : Sum into array

bao baoLet me know how to sum in this array : myArray [ "Apple: 10", "Apple: 3", "Banana: 3", "Pear: 7", "Pineapple: 7" ] My result > myNewArray [ "Apple: 13", "Banana: 3", "Pear: 7", "Pineapple: 7" ] Thanks for your help !

 
woa! I didn't know petka was working on iojs
 
@Cerbrus are you sure of that : stackoverflow.com/a/29919650/1170900 ?
 
@RoelvanUden because that is not the case - there are breaking API changes for addons with the v8 upgrade and several improvements.
 
just set it into a variable before*
 
12:37 PM
Well, a way to sum the array would be to replace the string "Apple: 10", "Apple: 3" with the string "Apple: 10", "Apple: 3". — Benjamin Gruenbaum 1 min ago
typo ?
 
lol benji troll
 
voted too broad
 
`'<div ng-include="'/assets/garments/' + garment.slug + '.svg'"></div>'`
should just be replaced with
`'<div ng-include="/assets/garments/' + garment.slug + '.svg"></div>'`

I don't know why there is so much ' and " in his code.
 
The ng-include should be a string
So: ng-include="'some/path....'"
Or: ng-include="'some/path' + variable + '/to/a.file'"
> angular expression evaluating to URL. If the source is a string constant, make sure you wrap it in single quotes, e.g. src="'myPartialTemplate.html'".
 
hates angular
5
 
12:43 PM
jsh.zirak.me/1vik6 how to java script
 
loves angular
Let the competition begin!
 
-1
 
ᵗᵃᵇˢ
3
 
^
 
Didn't you hate jQuery, Awal?
 
12:48 PM
tabs
@Cerbrus I hate all libraries and frameworks equally.
 
spaces
 
-1
 
Good luck databinding with native JS
 
@AwalGarg That's sad :(
 
thanks.
 
12:49 PM
Good luck getting a JS-related job without using libraries, even
 
when are we going to get a voting plugin for the bot
 
^
 
@Cerbrus you don't need luck. you need patience and the ability to ignore your own code because it is ugly.
 
There's !!survey in Miaou :)
 
12:49 PM
@KendallFrey Let's vote on that. err wait..
 
@Cerbrus I have a JS job that doesn't require the knowledge of libs.
 
@rlemon Wow, what do I need to do to steal your job :P ^_^
 
@AwalGarg corn
 
@AwalGarg: To steel his job? A I-beam would do.
 
@rlemon I used to
 
@AwalGarg downworthy
 
@AwalGarg I don't get it. What did he tried to do ?
 
I didn't even know about window or document or DOM or any of that shizzle
 
@dystroy Answer without reading the question for getting rep.
 
12:54 PM
But... that doesn't even sum ?
 
Correct.
 
The whole being an XY question (duplicate ID), maybe we should close it
 
@NickDugger that made me wanna watch the newsroom
 
@rlemon Me too. I had ever even heard of it, but t clip is fantastic
and Canada was mentioned, eh
 
The Newsroom :(
I miss it so much
 
12:57 PM
@dystroy voted already ages ago
 
@NickDugger I had heard of it in passing but never once checked it out
good clip for sure tho
 
This question should be closed because of the following sins committed by OP: using jQuery, duplicate ids for DOM elements, using arrays where objects make sense, using spaces instead of tabs, not doing any code attempts himself, leaving a "thankyou" remark at the end. — Awal Garg 1 min ago
 

« first day (1655 days earlier)      last day (3296 days later) »