« first day (1585 days earlier)      last day (3375 days later) » 

9:03 AM
why fs.readFile in place of app.get ?
 
At server/app.js?
 
yeah
 
fs.readFile is for getting the EJS correctly.(I'm not using Jade on this one)
Not for displaying files.
 
oh.
in your sockets part of the code. I see a socket.handshake.query.name. I did was get the name with socket.username = req.body.username and the room id with socket.room = req.body.room and then socket.join(socket.room) and I push the usersnames to an array and emit it. I didn't know the handshake thing. What is the difference ?
 
9:19 AM
fucking "jquery programmers"
 
:DD
 
also, morning
 
mornings
 
9:38 AM
whose match is it in the world cup today?
 
nz vs something
anyways, how do I get data from a list into a different html page?
 
Oh its "world" cup. I thought "India cup". What is happening to me :'(
 
@doodla use localStorage
or sessionStorage
@argentum47 maybe you are too much into Node ;)
 
@argentum47 It's a bit more secure.
No significant difference, though.
 
@RahulDesai no, I mean how do I determine which list item has been clicked?
 
9:42 AM
:D. I want to go home from this office. I have no work and the tut-plus videos of react are at home. so basically I am getting bored and posibly that CEO will come dancing just two hours before the office ends and ask me to do some rails shit. Fuck this life
 
my bad
 
@doodla are you using jQuery?
 
yes
 
@doodla HTML table?
 
@GabrielTomitsuka ok.
 
9:42 AM
@GabrielTomitsuka yes
@GabrielTomitsuka Err no. Just a <ul>
 
@doodla Okay
 
Try:
$("li").click(function(){ alert($(this).text() )});
you need to use $(this).
 
or you could delegate if you are adding list items dynamically the event woun't bind possibly
 
right
 
@RahulDesai Cool. Thanks.
@RahulDesai Is there any way to pass different data? For example, I have an address, but my list is just showing the city(intended). Is there any way I can format the list/code to pass the address?
@RahulDesai data-value=integer. any option for string?
or something.
 
9:47 AM
@doodla use $('li#id').text("here is my address");
 
@doodla You keep an array with the addresses, another with the cities, and get the address from the position in the array? Please Google that.
 
make sure to use appropriate ID
 
you can have spaces in the id?
nvm
 
Nah, escape it to a %20
 
yeah, i thought of the array while typing the question out @GabrielTomitsuka
 
9:48 AM
fuck no, I have been asked to read backbone. Why is it always me. I kill myself
 
@argentum47 Found any good tutorial?
 
try CodeSchool maybe
 
@GabrielTomitsuka I have to google. I will try codeschool tracks like @RahulDesai says. I like the angular stuff. I dun wan't to learn backbone. I don't know the reason, its like the same feeling that make me 100% reluctant to put any effort into learning rails.
 
Ruby? Ewww
 
9:53 AM
Yeah. Ruby. Although I like the metaprogramming thing in Ruby. But in the end my final server side love would be php. The problem with this framework is there are multiple ways to do a thing.
 
@argentum47 I <3 Node.js!
But I don't use the MEAN.js stack, though. Prefer PostgreSQL.
Also, Express.js is normally an unnecessary dependency. I do the website routing the tough way.
 
I can see why. The love for JavaScript is irresistible in any form
except CoffeeScript
 
I'm actually a pretty good Objective-C programmer, look at this iOS app I made last year: itunes.apple.com/us/app/painless-cloud/id932493547
 
@GabrielTomitsuka Is it free? If it is, how do you afford the cloud storage?
 
@RahulDesai It's free up to to 2GB on the cloud.
 
10:02 AM
ah, I see
I made this stupid app, just for learning purpose: marketplace.firefox.com/app/my-todo-list
its just for Firefox OS
 
@RahulDesai What do you use for persistent storage?
 
but also installable for desktop Firefox
@GabrielTomitsuka HTML5 localStorage
 
@RahulDesai Of course.
 
@GabrielTomitsuka What cloud service did you use for that, if you dont mind me asking?
 
I usually get a bit more dirty, using SQLite, iOS CoreData, etc..
I developed my own.
But it's hosted on Amazon EC2 + RDS, if that's what you mean.
 
10:06 AM
I see.
yeah
 
Obviously, Node.js based!
 
cool!
 
I did use partially MongoDB for that one. But most is stored at an S3-backed SSD storage, so...
 
My company has got the project to build OneDrive App for Firefox OS, but the Microsoft's docs are so messed up!
 
@RahulDesai What an honor! Hehe
 
10:08 AM
Its definitely not upto the mark.
 
And that's the reason for Backbone.js?
 
yeah :D
I dont use backbone
Angular.
it is
 
I don't know. maybe its sometimes used as the controller part of rails
 
Oh yes
Sorry :P
Got confused
 
I never make image processing apps again. I made only 7 black and white filters and then people said it sucked because the app was trial version
 
10:15 AM
I typically over-think these problems. I did use OpenCV(computer vision library) for resizing a thumbnail picture into a 500x500px picture with minimal damage.
 
the question is very fuzzy
 
@dystroy Downvoted
 
whats cv-pls btw?
 
Has anyone ever dealt with PhoneGap on WP8? In particular, disabling the bounce while still allowing certain parts to scroll (e.g. lists).
 
10:17 AM
@RahulDesai "close vote, please"
 
ah, I see
 
I am going to work on smartgardener . The code is a clear case of "mess"
Its like farm vile facepalm
 
Fuzzy logic is a form of many-valued logic which deals with reasoning that is approximate rather than fixed and exact. Compared to traditional binary sets (where variables may take on true or false values), fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false. Furthermore, when linguistic variables are used, these degrees may be managed by specific functions. The term "fuzzy logic" was introduced with the 1965 proposal...
F*CK
Couldn't they pick a better name?
 
@GabrielTomitsuka your U key is broken?
 
10:26 AM
@GabrielTomitsuka I think the name sums it up nicely
> reasoning that is approximate rather than fixed and exact
Approximate Logic sounds scary
 
@BartekBanachewicz Nah
@BartekBanachewicz Hmm...
 
fuzzy is good. AI's use it
 
@Deepak 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.
 
if they didn't there would be a terminator like situation
 
What did you remove ?
 
10:31 AM
accidentally pressed enter after i @'ed you
 
@Deepak I want to work with robotics, but AI could be dangerous, though. If the computer can change his algorithm, then we'd be in serious trouble, if not, then there'd no problems. Just make it follow Isimov's 3 rules :)
 
sounds Sci-fi
 
Yeah, Elon Musk spoke about it a few weeks ago.
He sees it coming.
:-|
 
Me too!
 
10:34 AM
gosh ,github.com/argentum47/testjs/blob/master/modloader.js the things I did as a child :D
 
So did stephen hawking
Everyones a little too scared of robots, I say give them the same battery Ihave in my nexus 5 and they'll run out of power 7 hours in to their killing spree
 
It will take decades, but there will be a point when robots and super-computers are smarter than humans.
 
!!stats
 
@FlorianMargaine You (http://stackoverflow.com/users/851498/florian-margaine) have 18514 reputation, earned 0 rep today, asked 29 questions, gave 546 answers, for a q:a ratio of 29:546.
avg. rep/post: 32.19. Badges: 4g 39s 78b
 
Oh, nice
!!stats
 
10:35 AM
@GabrielTomitsuka You (http://stackoverflow.com/users/3630197/gabriel-tomitsuka) have 138 reputation, earned 0 rep today, asked 2 questions, gave 21 answers, for a q:a ratio of 2:21.
avg. rep/post: 6. Badges: 0g 0s 11b
 
!!stats 508666
 
@FlorianMargaine PeeHaa (http://stackoverflow.com/users/508666/peehaa) has 33826 reputation, earned 19 rep today, asked 190 questions, gave 1000 answers, for a q:a ratio of 19:100.
avg. rep/post: 28.42. Badges: 22g 101s 178b
 
@Deepak I'm not scared of robots. I want to help developing them.
 
@GabrielTomitsuka In some cases they already are
 
1
Q: Promisify prompt.js

EsailijaI am trying to promisify prompt.js. Could anyone say what i am doing wrong? var prompt = require('prompt'); var Promise = require("bluebird"); Promise.promisifyAll(prompt); prompt.start().then(function() { console.log("test"); return true; }); prompt.get(['message'], function(err, result...

 
10:37 AM
they don't even need to be smarter to replace us
 
This was one of the things that saved my life recently: stackoverflow.com/questions/28500941/…
 
!!stats
 
@salathe You (http://stackoverflow.com/users/113938/salathe) have 28646 reputation, earned 10 rep today, asked 4 questions, gave 641 answers, for a q:a ratio of 4:641.
avg. rep/post: 44.41. Badges: 3g 49s 81b
 
they just need to be economically viable
 
!!stats 22656
 
10:37 AM
@GabrielTomitsuka Jon Skeet (http://stackoverflow.com/users/22656/jon-skeet) has 752306 reputation, earned 215 rep today, asked 32 questions, gave 31047 answers, for a q:a ratio of 32:31047.
avg. rep/post: 24.2. Badges: 323g 5018s 6322b
 
and they will kill us by using ourself.
!!sandbox
 
@darkyen00 Please go and play in the Sandbox
 
I saw that @BenFortune it was written my the guy that made bluebird
 
@Deepak Yeah, he's asking how to use his own library. :D
 
> gave 31047 answers
o_0
 
10:39 AM
@darkyen00 Nah, humans will survive. But the poor will have nothing nor anything, because they'll be 100% replaced by robots.
@RahulDesai He has just 752306 reputation.
 
It reminds be of that argument in gaming
who knows how to play the game better, the game dev or the professional gamer
 
@Deepak Professional gamer.
 
I'm not sure thats true
 
yeah it's true
 
!!stats
 
10:42 AM
A professional gamer would be the best in the community, he wouldn't have the in depth knowledge that a dev would
 
@argentum47 That dude sucks
 
@Deepak it is.
@Deepak You are assuming that that knowledge helps you play, while it doesn't necessarily.
 
@CapricaSix Why?
 
@argentum47 LOL
 
@BartekBanachewicz +1
 
10:43 AM
XD very bad of you
when did that happen
 
!!stats
 
@RahulDesai You (http://stackoverflow.com/users/586051/rahul-desai) have 4070 reputation, earned 15 rep today, asked 190 questions, gave 289 answers, for a q:a ratio of 190:289.
avg. rep/post: 8.49. Badges: 2g 17s 42b
 
seems to be working for me
 
maybe because of reps. or someone set my username to that
 
need to get some coffee
 
10:45 AM
> asked 190 questions, gave 289 answers, for a q:a ratio of 190:289.
lol really @CapricaSix
 
@GabrielTomitsuka in esscence
 
^ very helpful. //cc @dystroy @Zirak
 
this will degrade the human genetic hierarchy
and completely doom us in a while ?
 
@BartekBanachewicz the division is not without remainder.
 
@darkyen00 We're all discussing about theory
 
10:47 AM
@BenjaminGruenbaum OIC, expected float
 
!!google Artificial Intelligence
 
!!google Human's Need Not Apply
 
!!google Has Human Evolution Stopped
 
The AI course in my under-grad was full of shit. It was all artificial, no intelligence. :P
 
AI sounds like a lot of fun though
The theory of it must be really interesting
 
!!google Are we doomed?
 
@BartekBanachewicz I'm not involved in capricasix, I didn't even read her code
 
10:53 AM
when did I become "that dude sucks" :/
 
@Deepak Needs lots of processing power. 3D processors that will come in the future, they'll help a bit with that.
 
I didn't know that was the impression I created. Its no wonder though
 
@dystroy ah sorry I wasn't sure
@GabrielTomitsuka um what? "3D processors"?
 
@argentum47 Dont worry bro. We all tomar bhalo bashi ;)
 
@BartekBanachewicz most likely you meant @rlemon
you can go ahead and open an issue on github, supporting floats !
 
10:55 AM
@RahulDesai lol. thanks.
 
Is it really just processing power that is needed? We have processing power
 
Meh. People talking about AI.
 
@BenjaminGruenbaum :P //exactly
educate us will you ?
 
Learn ML, AI will come later, maybe.
 
Machine Learning
 
10:56 AM
@BartekBanachewicz Our transistors are tiny, but they're 2D. Imagine if we did it just like the brain and put a 3rd dimension on it.
 
Machine Learning
 
@argentum47 Machine Learning
 
@phenomnomnominal how's your day going? Better than yesterday?
 
@BartekBanachewicz You can look for it.
There's a bit of theory about this
@BenjaminGruenbaum Working on it.
 
10:57 AM
It's still today, still fighting the same problem. Stupid httpBackend.
Bout to go to sleep soon though
 
@GabrielTomitsuka inb4 processors are already 3d.
 
Is a Recommendation System ML?
 
@phenomnomnominal hehe, just override XMLHttpRequest.
@argentum47 only if it learns, it can recommend without learning at all.
 
Machine learning is a scientific discipline that explores the construction and study of algorithms that can learn from data. Such algorithms operate by building a model from example inputs and using that to make predictions or decisions, rather than following strictly static program instructions. Machine learning is closely related to and often overlaps with computational statistics; a discipline which also specializes in prediction-making. Machine learning is a subfield of computer science stemming from research into artificial intelligence. It has strong ties to statistics and mathematica...
 
@BenjaminGruenbaum tempting. There just doesn't seem to be a good, general solution for injecting the ngMockE2E module only when you're running protractor.
 
10:58 AM
@BenjaminGruenbaum Nah, still don't get near the brain.
 
@GabrielTomitsuka like what Haswell CPUs have
 
Morning, Afternoon and other slices of time description.
 
aren't those called tri-gate or something
 
@BenjaminGruenbaum Wait, inb4 processor? I don't know this one.
 
I once though of making an OS that would scale according to user's taste, music updates and live shows infor for music lovers. Buisness Trends stocks etc for business class. But that's a lot of work
 
10:59 AM
@BartekBanachewicz I'll look into that; 1 moment
@argentum47 Say hi to Machine Learning!
 
Its like Person of Interest
 
@phenomnomnominal too tempting though.
@GabrielTomitsuka inb4 von neumann quote.
 
Why do you know everything :'(
 
@GabrielTomitsuka the inb4 processors are amazing. They do everything just a little bit faster than what you might expect.
3
 
@BenjaminGruenbaum shit
@phenomnomnominal lol
 
11:02 AM
I read about Haswell, but is there a INB4 Processor Wikipedia page?
 
my brain is done for today
 
Urban Dictionary: Generally used on internet forums, inb4 refers to a user posting a reply to a message/topic "before" another user posts an obvious response. When used appropriately, inb4 is followed by a word or short phrase that the user knows will eventually appear in the topic conversation.
I really don't get it within the context.
 
6 mins ago, by Benjamin Gruenbaum
@GabrielTomitsuka inb4 processors are already 3d.
@GabrielTomitsuka inb4, (processors are already 3d.)
 
xD
 
Processors are already in 3d. They have 3 dimensional structures.
 
11:04 AM
@BartekBanachewicz NOW IT MAKES SENSE
 
Also, pretty much everything you said about ML or AI is incorrect in terminology and meaning.
That's the second inb4, von neumann has a famous quote that there is no sense in being precise when you don't understand the fundamentals to begin with.
 
25 mins ago, by Gabriel Tomitsuka
@darkyen00 Nah, humans will survive. But the poor will have nothing nor anything, because they'll be 100% replaced by robots.
 
I'm pretty sure processors are 4d, they can go back to a previous state. /troll
 
So the distinction between AI and ML isn't meaningful without knowing either.
@GabrielTomitsuka yeah - that's not true at all.
We're not even close to sentient AI today. We're like.. decades away and it's not just processing power.
Our models of brains with neural networks are very very very naive.
 
@BenjaminGruenbaum I know it's not just processing power.
 
11:06 AM
You really don't because you probably don't know anything about ML yet. Instead of making bold claims go and learn stuff.
 
We're not ready for that; There's not even reasonable theory on AI
 
@GabrielTomitsuka jesus christ why am I responding.
 
Someone feature request positronic brain on a deep mind github
 
@BenjaminGruenbaum Ok sorry.
@BenjaminGruenbaum 60 dollars? :(
 
Stop saying things to sound smart. You don't understand the basic concepts of the topic - that's perfectly ok : I wouldn't make any statements about sound processing for instance.
@GabrielTomitsuka do the coursera course or something then.
 
11:08 AM
@BenjaminGruenbaum When did I talk about sound processing?
 
He's saying he doesn't know the fundamentals of sound processing, so he wouldn't make bold claims about it
 
But yes you've got a reasonable argument, I get it.
 
@SomeGuy pretty much that.
 
@SomeGuy Oh well I get lost in context pretty often; Sorry
 
@BenjaminGruenbaum umm, sorry to interrupt, if you were to learn backbone , how would you start?
 
11:10 AM
@argentum47 I would probably start learning backbone by apologizing to my co-workers for being angsty in the next few days. Then I'd take a deep breath and lie to myself that as a professional nothing is beneath me - even backbone. I think a good model of the backbone learning process is the Kubler-Ross model. You want to get to 'acceptance' as fast as possible.
2
 
ok. :P
 
@GabrielTomitsuka what the f
 
Backbone doesn't do anything for you.
 
@BenjaminGruenbaum Actually I didn't say anything about theory on AI; I said mostly about the consequences and defended studies on it. Also, regarding processors: That's about an outdated conversation.
 
@GabrielTomitsuka wat.
 
11:12 AM
@BartekBanachewicz I mean on how it should work
 
I thought Kubler_Ross was something related to CS :P
 
@GabrielTomitsuka Stop trying to sound smart. No one here cares if you sound smart or not. Go read the introductory Norvig book or something. You're just making a fool of yourself.
@argentum47 it's more commonly known as "the 5 stages of grief".
 
@BenjaminGruenbaum Hahaha
 
Also - Addy Osmani has a decent backbone book, but it's full of false promises. The thing about backbone is that it doesn't do anything for you - it's just an event emitter and an html5 enabled router with quirky event conventions.
 
@BenjaminGruenbaum Thats Russel Norvig, is it?
just trying to recall
 
11:13 AM
@RahulDesai Peter
 
ah, ok
 
Oh, Russel - that's the second author.
It's Russel-Norvig
 
makes sence
 
I have a book by Peter Norvig
Found it at my college library
 
Which one?
 
11:14 AM
AI: A Modern Approach
 
Yeah - that's the one. It's the introductory AI course book.
 
yeah, its the one.
 
@SomeGuy He's like a god programmer, he's very well known for taking code written by people like Bob Martin made with "TDD and OOP" and reducing it from 1000 lines to like 20 lines of Python by actually thinking about the problem and applying real problem solving techniques.
:21591901 don't feed. Meh, not my place to tell you. Thanks anyway.
 
wow
 
11:17 AM
@BenjaminGruenbaum I am going back to work anyway
 
@BenjaminGruenbaum Bob Martin of Clean Coder?
 
@SomeGuy the same one :D
I don't have a lot of respect to that guy as a programmer to be fair.
 
Norvig sounds like a cool person
 
He is, he does cool things at Google too.
He's also absurdly nice
 
@BenjaminGruenbaum *Robert Martin. Though also known as Uncle Bob
 
11:19 AM
@ivarni thanks, I'm sure Bob and Robert mean different things.
 
@BenjaminGruenbaum You've spoken with him?
 
@SomeGuy in emails, mainly asking noob questions about papers I've read and getting "read that" responses. Always nice though.
 
That's great
@BenjaminGruenbaum Did you use Octave / MATLAB when learning?
 
Matlab a bit, mostly the Python stack and Java libraries in Scala.
The courses teach Matlab and R in the university.
 
Yeah, it seems like most courses I came across used one of those
 
@RahulDesai after a cool intro they ask me to signup for 29$ a month. Thats uncool. Education should be free.
 
I'm still looking for an article on one of those code reductions Norvig did that @BenjaminGruenbaum was talking about
 
@argentum47 Yeah. Sorry, I should have reminded you about that.
 
:D . ok I have a basic Idea. I will read their docs
 
I got this message twice on SO just now: We apologize for any inconvenience, but an unexpected error occurred while you were browsing our site. It’s not you, it’s us. This is our fault. Detailed information about this error has automatically been recorded and we have been notified.
Did any of you get it?
happened 4th time now.
 
11:30 AM
@RahulDesai SO is breaking up with you. She's giving you the classic "It's not you, it's me" speech.
 
lol
 
> This site is currently in read-only mode; we’ll return with full functionality soon. Follow @StackStatus or visit our status blog for more info.
(no info on stackstatus)
 
I got the same message from programmers.stackexchange.com
 
and nothing on stackstatus.net
 
> We are looking into network issues now, stand by.
on their twitter
 
11:32 AM
Is there some way to make a web hosting application respond to requests that aren't handled by another web hosting application?
Like, if they shutdown their web application, apache would automatically respond to requests with pages indicating that the site is down
It seems like something that should exist somehow
it's back up in read-only mode
 
yep
 
@Neil What does SE use for a back end?
 
Asp.NET i guess
 
@GabrielTomitsuka No clue
 
o nvm
 
concrete
What flavor soda was required to build Stack Overflow?
XD
 
Written in C#.. I feel dirty now
 
There's a good lesson to take away though, good stuff can be written even in languages you personally dont like
 
\m/
 
@ivarni Not saying C# is a bad language
Just.. of all choices available, C# ASP.NET isn't my first pick
 
11:49 AM
Neither mine but I wouldn't be able to cite a major weakness for such a project. It's fast, strong, and can be used by a team
 
@BartekBanachewicz Funny, just saw it tweeted
 
@BartekBanachewicz Can you honestly not think of a better pick?
 
@Neil I was asking you, actually.
I don't write enterprise web apps so I don't really know what's good.
 
@BartekBanachewicz Everyone has his or her own preferences
 
11:56 AM
@Neil so...
 
@BartekBanachewicz so?
 
8 mins ago, by Bartek Banachewicz
@Neil what's better?
 
@BartekBanachewicz I prefer not to mention
 
@Neil What would you have chosen among the technologies that were available ? Most people were choosing Java or PHP, I'm not sure that would have been better...
 
@Neil why?
you went as far to say that C# isn't your first pick, so that got me interested
 

« first day (1585 days earlier)      last day (3375 days later) »