« first day (1870 days earlier)      last day (3077 days later) » 

3:19 PM
@FlorianMargaine google knows erriething
Very nice
 
crl
oh crap, all the links don't work, need to work on that search engine
 
3:48 PM
if(req.files.profileimage){
		console.log('Uploading File....');
                var profileimageOriginalName = req.files.profileimage.originalname;
		var profileImageName = req.files.profileimage.name;
		var profileImageMime = req.files.profileimage.mimetype;
		var profileImagePath = req.files.profileimage.path;
		var profileImageSize = req.files.profileimage.size;
	} else {
		var profileImageName = 'noimage.png';
	}
error msg
Cannot read property 'profileimage' of undefined
input.form-control(name='profileimage', type='file')
any idea what's going on?
 
which library for file uploading are you using? multer?
 
req.files is not defined, probably didn't enable multipart decoding
 
@Luggage ya
@AwalGarg you mean at form? enctype='multipart/form-data?
 
show us the multer middleware config
 
app.use(multer({dest:'./uploads/'}).single('profileimage'));
i think i messed up here
 
3:55 PM
1
Q: req.files is undefined when uploading file with multer

洋葱头I am trying to build a Node.js Application in Express.js 4 that uploads an image. I decided to use the multer module but cannot access the uploaded file through req.files. Here Is the code I am using. I restricted it to those parts that I believe are relevant. Jade code: form(method="POST", act...

read that answer. it applies to you
 
crl
.single(fieldname)

Accept a single file with the name fieldname. The single file will be stored in req.file.
just need to read the manual
 
github.com/ralt/dh-quicklisp-buildapp <- some perl stuff. cc @Zirak @copy you guys might find this interesting, although not for the end usage, just how it's done
 
are those comments that turn into a man page?
 
no idea. I saw them used like this in other code so I did it too.
I don't know perl so it might be specific to perl
 
4:02 PM
perldoc
 
crl
perl looks like hidden swear words (but nothing wrong with that)
 
IRC is one dark... dark.. corner of the internet
@argentum47 welcome to light
 
i should learn pearl. it's the 'standard' unix language for when you outgrow shell scripts, right?
 
@Luggage might have been, some time ago. Python is more standard these days, IMO.
 
@AwalGarg I am batman .. darkness is my ally
 
4:10 PM
hm, yea.
 
@FlorianMargaine you know of the debian's "port everything to python3" movement?
 
so I am not the only person who s having the urge to learn perl :P
 
@AwalGarg IRC is cool, if you know where to play and have some .. emm .. recognizability
 
its not a coincident that @AwalGarg is the dark lord
 
@tereško yeah, /me loves irc.mozilla.org :D
 
4:12 PM
I play around on IRCNet and FreeNode
 
@argentum47 If you can hammer your keyboard, you know perl :D
 
that makes Thor a damn good perl monk
 
looks like a fairly straightforward language with familiar syntax.
boring.
 
@Luggage I guess then brankfuck is your thing :P
 
...uggage
 
4:15 PM
@Luggage it is pretty similar to PHP in some aspects
but more fucked up
 
its more like ruby .. naked
 
@argentum47 check hangouts
 
checked
 
:27177677 return this.checkers.push(
			(obj) => !!obj
		)
@Abhishrek ^ wtf?
 
4:19 PM
did somebody never teach you ?
 
no
 
!!> !!''
 
@Abhishrek "false"
 
same as Boolean(obj)
 
4:20 PM
@AwalGarg "false"
 
shorter
 
@Abhishrek this.checkers.push(Boolean)
 
!!> !!"boo"
 
@argentum47 "true"
 
it should be req.body.profileimage instead of req.file.profileimage
 
4:23 PM
"ahhh"
 
to my previous doubt
 
@Zirak I went with ipdb, thanks!
 
also @AwalGarg
	validate(elements){
		return elements.all(element => super(element));
	}
I wonder why I didn't think of that
 
because you are borked
 
vOv
must be drunk when writing that earlier
 
4:27 PM
@Luggage github.com/argentum47/file-upload-test/blob/master/routes/… I had written a simple file upload with multer if u need it ..
 
@Luggage hi Lu!!!
 
@Abhishrek using __ to privatize methods? really?
 
Luggage isn't here.
__ is the sacred prefix.
 
oh.. so the irc thing changing offline name
 
@AwalGarg yes
 
4:28 PM
 
@AwalGarg what else you propose ?
 
module pattern
 
symbols, FFS!
 
@argentum47 lol no
 
4:28 PM
Err no
 
Err yes
 
Not yet.
 
@Luggage I have run the test regarding the websockets
 
absolute encapsulation might not really get you anything meaningful.
 
explain, or accept your defeat in front of the Dark Lord
@Luggage not having to put that ugly __ is a big win
 
4:29 PM
@AwalGarg I have to debug it on an iPad using a terrible crap of a console
 
@Abhishrek then use Valence
 
__ is easier than using a symbol for every function call
 
No
Its just much better for now
 
use typescipt
 
i prefix my private functions with racial slurs. no one will dare use them.
 
4:33 PM
niggaSum = () => Array.from(arguments).reduce((a, b) => a+b, 0)
mofoProduct = () => {}
 
you were supposed to imagine your favorite racial slur privately in your own head.
 
lol
 
@argentum47 err thats very offensive
 
anyone knows if its possible to draw paths in svg(with mouse) and save em somehow to draw them in an other position or just use the coords to for example move an object over that path ?
 
@Luggage are you coming to meet us on 18th ?
 
4:42 PM
perhaps, didn't know of plans.
 
I bet after a couple of drinks your racial slurs will erupt
and become public :->
@Luggage the plans are still tentative
 
crl
5:02 PM
!!caniuse contenteditable
 
crl
Can you 'improve' DnD inside a contenteditable, ie dragging directly images without having to difficulty select them?
I suppose I could try putting draggable=true on them, or event js handlers, not sure they still work inside the CE
I spent 2 weeks on DnD, while you can just.. jsfiddle.net/crl/haxo1boo/1 since the point is to have some wysiwyg anyway
like reinventing something that already exists..
 
5:21 PM
the dnd thing still has uses for editing other structures
 
Someone knows about an AngularJS lib for charting that is actively mantained?
 
crl
the point were to make drag-n-drop between contenteditables too, but
Can you nest contenteditables? would that make sense, let's check the spec
 
crl
@Luggage like?
you can drag a table inside the contenteditable
whatever thing you want as long as you manage to select it
or even cut/paste it
 
@AwalGarg looks pretty damn nice!
 
crl
5:25 PM
@AwalGarg how do you make it paddle?
 
dunno, I didn't make it.
@BenjaminGruenbaum aren't you "inglor"? If you aren't, ignore this. If you are, sorry if my HN comment comes off as rude :/ Didn't mean it that way.
 
crl
!!define igloo
 
@crl No definition found for inglor
@crl No definition found.
@crl igloo A dome-shaped Inuit shelter, constructed of blocks cut from snow.
 
crl
I feel stupid, because I guess it's a name..
also the boy's boat is filled with water, he should start to worry
!!youtube sailing 420
 
crl
5:31 PM
hmm that video is shitty, clearly amateurs, but I used to be good at that boat
 
@BadgerCat @SterlingArcher I might have another date lined up for Thursday, if this girl doesn't bail or stand me up
 
nice
 
crl
s/e/k
 
@nick
hell
o
 
@nick
hell
o
 
5:33 PM
hell
u
sayin boi
 
o cmon
 
:)
 
> I am very Very Intresting in computer science
 
lol
i didnt find any other things to write so i wrote this
i need an small help
can i ask that ?
 
@Nick Yay!
 
crl
5:40 PM
@Luggage right.. you can't do whatever you want jsfiddle.net/crl/haxo1boo/3, can't drag the whole first div
 
how do i decode an image from server side ? I send image string encoded with filereader in js with ajax. and i dont now how to save an image in my server ?
 
@BadgerCat For all I know, she could stand me up, so it's whatever until it happens
Not getting my hopes up that high
 
crl
step1: know the encoding format
 
@AwalGarg I am, and it doesn't come off as rude. I expected way more downvotes.
 
6:00 PM
i was about to code my own one
then heard about pointer lock
for a game
 
sup everyone :D
 
do we really need typescript now that we have es6,7 and flow?
 
Isn't typescript used by MS people
 
if we can have es7 interfaces I think I will dump ts
ts is used by angular2
 
Thanks Obama
 
6:06 PM
programmers and devlopers coders....Please help me here
http://stackoverflow.com/questions/33986030/how-to-send-encoded-image-in-string-in-server-using-php
 
@MathieuLescaudron 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.
 
I just finished my Chrome extension. If someone wanted to test, it's here: chrome.google.com/webstore/detail/google-quick-search/…
 
!!summon 41570
 
6:24 PM
hello everyone, could someone vote for my question?
I need my question to beseen by more people to have a good answer.

http://stackoverflow.com/questions/33945506/is-there-any-mockito-like-framework-for-java-application-not-under-junit-testin
 
@seaguest 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.
 
crl
why does hitting enter (new line) on a text in the top elements insert a new element? jsfiddle.net/crl/haxo1boo/5 I just want a multiline element
 
@MathieuLescaudron hey, looks nice.
@MadaraUchiha do you find people suck up to you more now that you have the diamond? :D
!!learn i_am_a_merciful_king "<> chat.stackoverflow.com/transcript/message/…;
 
@BenjaminGruenbaum Command i_am_a_merciful_king learned
 
!!i_am_a_merciful_king
 
6:29 PM
ew
 
@Zirak ^
 
lmao
 
req.checkBody('password2','Passwords do not match').equals(req.body.password);
not working
 
good for you; what the hell is req.checkBody?
 
Same as req.check() but only looks in req.body.
 
6:30 PM
what's req.check?
 
@Nick don't be hard
 
cant help it
 
It's the same as req.checkBody except it doesn't look at req.body.
 
I can be soft for you bb
 
lol
 
6:31 PM
I tried req.check(). req.checkBody() and req.assert() as stated in this question
4
Q: validate a password with express-validator

chovyI'm using express-validator for express 3.x -- when the user changes their password or signs up for an new account, they have to enter their password twice. How would I write a custom validator that will push an error to the error stack in express-validator if the two passwords (two strings) do ...

but not working. any idea why?
 
oh, it's express stuff; yeah, I don't use express
 
might have to include the body parser module
 
then why are you asking what is req.check(), what is req.checkBody()? One who knows will answer.
 
@BenjaminGruenbaum God*
 
wat
 
6:32 PM
I am a merciful god.
 
your logic is terribly flawed
I'm really hungry... do I go semi-healthy, or just order a pizza?
 
semi healthy
you have pizza like every day
 
I have it like once every other week... but yes, that's still too often
 
the body parser module has been included
don't know what's wrong.
 
did you app.use() it
 
6:38 PM
@AwalGarg I love what this guy has done with patterns and expressions
 
ya i did
u mean the middleware
 
@Nick Oi, pizza is my plan
 
phpizza
 
yeah
 
Don't steal my ideas, bud
 
6:39 PM
yaa. I did.
 
There are too many nicks here.
 
the json parser?
or whatever youre trying to do
 
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
 
!!s/too many/not enough/
 
@nick There are not enough nicks here. (source)
3
 
6:41 PM
@MadaraUchiha 3 many
 
sometimes more
 
don't s/ni/di/ don't s/ni/di/ don't s/ni/di/ don't s/ni/di/
 
@MadaraUchiha I guess your name earlier was some Ricudo. You changed it. right? guessing from the avatar
 
@nickB Second Rikudo, yes.
 
6:47 PM
New name, same ol' phpain
 
hahaa
and you were saying something about anime manga, when you had the old name.
 
Third Ricardo
 
is php's future not good?
 
what future
 
php's past isn't good
 
6:53 PM
future means development. how it can fit in with web's advancement and requirements
 
they made some improvements but its still slow as balls compared to node or go
 
php's past was glorious
it conquered everything everywhere
 
ya it was.
the lovely thing that php still has is wordpress
max websites still use that.
people without knowledge as well
 
i am an expert wordpress programmer
 
so you have something to do with themeforest?
 
6:56 PM
i wrote the damn thing
 
nick is top php engineer
advanced wordpress engineer
 
I call myself an engineer but I'm secretly not one
 
so something like Jobs
you wrote what? wordpress or themeforest? or both?
 
yes
 
jquery too
 
6:58 PM
nice.
 
wordpressquery
 
you found a chicken to play with
cheers
 
uhhhh... is this normal? My ip address starts with 2.
 
must be hax
wait post the whole thing
 
2.24.217.something
 
7:02 PM
alright so I just need to iterate through 225 values
 
255*
 
oops
256 actually
 
srsly, I thought that the range for ip addresses was much above that
 
ipv6 is
 
@nick I think the last value always starts at 1
 
7:03 PM
good point, I've never seen a 0 at the end
 
> there's no sweeter place than 127.0.0.1
 
actually, apparently you can end with 0 but it wasnt always supported
useless fact of the day
 
lol, I remember one of the bash quotes: "A: someone is trying to hack me from 127.0.0.1 B: send him hell! He deserves it A: I'm trying to, but he keeps sending more and more attacks as I counterattack him..."
 
ya, this thing is everywhere. no sweeter place than 127.0.0.1. perfect cover pic.
 
37
A: How to use FormData for ajax file upload

SpellFor correct form data usage you need to do 2 steps. Preparations You can give to the formData all form for processing var form = $('form')[0]; // You need to use standart javascript object here var formData = new FormData(form); or specify exact data for formdata var formData = new FormDat...

Why is the append method used ??
 
7:05 PM
@nick btw, what could you do with my ip address other than find out roughly where I live?
 
ddos you
 
what's the point of ddosing him.
 
oh, right
 
i could also do a port scan
 
@nickB so I become a hateful little funny teen? Apparently it's fun
 
7:07 PM
I could listen to port 8080 so every time you test your node programs i can fuck with you
 
@nick what does that give you?
 
well
 
@nick I use 8081 ;)
 
a port scan would indicate which ports you have open
 
@nick oh...
makes sense :P
btw, what ftp client do you use? (linux)
 
7:10 PM
like 22
sorry my network just died
 
@BenjaminGruenbaum @Zirak you guys going to this Meetup on Dec 14?
 
only noobs use FTP
 
I haven't used ftp in a long time
 
@AlexanderSolonik to add each of the files array to the formData object you just created most probably.
 
use ssh, sftp, scp
 
7:12 PM
ftp is for kids. first website i used ftp. that's it.
 
meh, some hosts only offer FTP access
 
better to use a vpn then
 
7:31 PM
Einstein was born on 3.14
 
ya 22/7
 
8:02 PM
anyone know wether it is possible to make a kind of skeleton tracking on an svg using js? What I mean is like a drawing of a person and when you move a hand his arm follows because they are attached ?
 
crl
 
I'm speaking, so probably @MadaraUchiha
 
@BenjaminGruenbaum Oooohhhh, now I have to come
 
I'm off to friends - beer on Wednesday?
 
@BenjaminGruenbaum Huzzah
 
8:16 PM
Just implemented a custom session system using redis and a cookie to save the session id. Painful to wrap my head around, since I've never done sessions/authentication before.
 
crl
usually you set the set-cookie header from server, and nothing to do on client
 
@Nick Oooh, nice
Up for review?
@crl Isn't redis server side?
 
Uhh, it's a part of a larger framework that I'm working on. I'll show it off once it's beta
 
crl
yea, but I thought he was setting the cookie manually, with js, ok
 
Nah, I'm doing it on the server
but I'm only storing the session ID in a cookie, and using the cookie to look up the session that's stored in redis
 
8:23 PM
@Nick Yup, that's basically how a session works.
 
Not sure why it was so hard to wrap my head around
I've been stuck in client-side world for too long
full stack/back end is way more exciting to me
 
crl
Does the mouseover in JS or :hover in css depend on stacking (the z-index)?
 
Yes, if there is an element in front of the element that you want to detect the hover on, it will be as if the cursor isn't on top of it at all
 
crl
hmm ok (a sibling element you should add)
 
8:57 PM
has anyone successfully installed bcrypt in ubuntu?
git clone git://github.com/ncb000gt/node.bcrypt.js.git
cd node.bcrypt.js
node-gyp configure
node-gyp build
I tried these commands
 
why not use npm?
 
It's showing error when trying to configure
Error: Cannot find module 'nan'
npm installation tried. It's failing
when trying to install with npm
/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: 3: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: node: Permission denied
npm ERR! Linux 3.19.0-33-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "bcrypt"
npm ERR! node v4.2.2
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! bcrypt@0.8.5 install: `node-gyp rebuild`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bcrypt package,
 
do you have python installed?
 
I do
 
crl
shouldn't worry about those errors me think, does it fail installing completelyt? oh it does, forget it then
 
9:12 PM
I put that in question
 
Anybody from / near new york
 
1
Q: Bcrypt installation failed on Linux

nickBFirst, I tried installing bcrypt with npm. Error : / > bcrypt@0.8.5 install /home/saaggy18/node-projects/10-projects/node_modules/bcrypt > node-gyp rebuild /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: 3: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: node: Permission ...

 
spread
oh wait... no
I don't know what that is
 
if anyone could answer this question

i'd give at least 50 rep to the accepted answer but cant now coz gotta wait 2 days, and will vote up all the answers as i always do, bye and thanks in advance, gotta go now
0
Q: Disable time picker from mysql

LynobCurrently I'm using html time picker, but wouldn't mind using Javascript/Jquery/Ajax instead. The problem I'm trying to solve is this: you are a customer, you ordered x from an employee. that x has a duration (start_time - end_time). The time form data is saved in $customer_time. Note that I had...

 
How that has anything to do with jquery is beyond me...
 
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API
Why are there seperate LogicalExpression and BinaryExpression ?
 
because logical operators and binary operators are different
> Note: The .. operator is E4X-specific.
 
9:39 PM
@Lynob it's very unclear what you are looking for
 
@phenomnomnominal I am curious what makes them different in an AST ?
 
Error 404 occured, I will call the maid (@Zirak)
Error 404 occured, I will call the maid (@Zirak)
 
9:58 PM
@nickB a time picker input field which can have disabled values. so if user x selected a time, user y cant select the same time
but not dropdown select list, i want an input field
something like html field with type="time" as stated in the question
 

« first day (1870 days earlier)      last day (3077 days later) »