« first day (1567 days earlier)      last day (3379 days later) » 

7:01 PM
perl has like 1,000,000 modules, so there is probably a CPAN module to make this easier @Elliott
 
I'm just trying to get it to the perl. Everything is fine once I get it there.
 
o
 
just write a GUI in visual basic
 
lol
 
you should have no problem posting base64 data
 
7:03 PM
you should probably post a StackOverflow question about it
 
@Elliott are you using jQuery on the client?
 
EXTJS
 
hoo boy
 
Yup
Legacy stuff man
 
so you already wrote the VB UI?
 
7:06 PM
 
It's a web app. All js/extjs.
Front end
 
gif from adeneo was moved
 
function TheThingThatSendsTheDataToTheServer(base64img, callback) {
	var xhr = new XMLHttpRequest();
	xhr.open('POST', 'server/endpoint');
	xhr.onload = callback;
	xhr.send('data='+base64img);
}
why doesn't this work? @Elliott
 
7:09 PM
you mention the posted base64 data is being incorrectly escaped?
 
@rlemon Yep.
 
can you elaborate?
I've posted base64 to the server without issues
 
maybe set a mime-type so it doesnt try to escape it
 
lemonmeme posts the base64 strings to imgur for example
headers might be the right approach. jQuery does set them for me with the 'type' property
function generate_meme(e) {
	$('#spinner-generate').show();
	var dataURL = canvas.toDataURL("image/png").split(',')[1];
	$.ajax({
		url: 'http://api.imgur.com/2/upload.json',
		type: 'POST',
		data: {
			type: 'base64',
			key: api_key.val(),
			image: dataURL
		},
		dataType: 'json'
	}).success(image_uploaded).error(image_upload_failed);
	e.preventDefault();
	return false;
}
 
When I post a base64 image, the param disappears in the post. As in, the other parameters I'm passing are there, but that one will disappear. If I post anything else in that param, it works normally.
 
7:12 PM
^ lemonmeme source
 
Hmm
 
why the snakecase? noob
 
@Elliott consider that the issue is that is gets escaped, and lets work from there. what could be causing it to drop?
 
@rlemon I'm assuming some character in the encoded image.
 
7:15 PM
@Elliott can you make a pastie with the base64 data in it?
or show me how you generate it?
 
@rlemon Pastie? It's being copied from a php file. It comes in like . . .
 
just a site for you to post longer lines of code on
 
@rlemon Gah, I have to build the code again. It's all minified sencha stuff.
 
ok well generate the base64 and copy it into a gist or something
show me what you're trying to send to the server
 
Welcome to chat @GulinSerge
 
7:21 PM
Hi, @taco
 
@GulinSerge 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.
 
@rlemon Says it's too big. Would you like to see the first chunk?
 
the issue might be that it is too big to send via a post
 
@Elliott How much data are you working with?
 
a) check servers max upload limit.
b) try with smaller images
 
7:25 PM
It's a pretty long string. It will send it when I use encodeURIcomponent though
 
yea, without it all it's not helpful
 
but it doesn't decode in a usable way
 
what does it decode to?
can you post a binary diff of the original vs the decoded version?
 
It looks nearly the same, but some symbols aren't replaced properly.
Like . . . spaces decode to %20
Are their specific characters I could look through it for that might escape it?
 
spaces to %20 is very interesting
somewhere along the lines, you're URL escaping everything
 
7:28 PM
@Elliott that string in the pastie base64 decoded into a striped flag (red, white, blue), so I think your problem is how you are decoding it
 
Oh that was a very small portion of the actual image. I'm surprised it decoded into anything at all. haha
 
@Elliott wth, why would you give bad data? I'm done responding here smh
 
I told you that was just a chunk earlier.
 
what an idiot
 
7:31 PM
anybody use MutationObservers AND profile memory heaps?
 
decodes just fine for me online and in php
 
BECAUSE BOY DO I HAVE A QUESTION FOR OYU
 
😣
 
not really a question, I just wanted to complain. That's why I came to chat.
 
lol
That's all we do @SimonSarris
usually about @SterlingArcher
or Lana
 
7:32 PM
or about how much we hate your book
 
I like my book.
 
I like your book too
 
But its getting past its shelf life
 
I'd probably like it too
 
:(
 
7:33 PM
such is the way of technical books
 
yeah :/
 
Write another one!
 
hahah will you write another @SimonSarris?
seemed liek a shit load of work
 
I could write a 2nd edition but I'm not sure there's enoguh change
 
ES6 that shiz
 
7:33 PM
first book was SO MUCH WORK
I read like
every spec everywhere
 
Is HTML5 out in the wild for every major browser
 
yea
 
Do you even use the internet?
 
has been since IE9 (albeit partially)
 
yeah IE9 is the starting point
 
7:35 PM
@NickDugger caniuse.com exists right? Wasn't sure if it was all live yet... I'm kinda dumb on the front end stuff
 
where HTML5 means the death of plugins (flash), IE9 was the beginning of the end
chrome and firefox 2 years prior were the beginning of the beginning :P
 
For example, this HTML5 feature is only in Firefox caniuse.com/#feat=font-size-adjust
 
offsetX and offsetY on events aren't in FF, and that irritates moi
 
FF has a lot of stuff that nobody ever cared about
 
I guess I meant to ask is HTML5 ready for primetime without worrying about interoperability between browsers? I'm guessing it's not?
 
7:37 PM
HTML5 will never be useful for public products, since IE8 is a thing.
 
heh
 
Most browsers support most of it, tho
 
Depends on who you target
 
I mean, you can use an HTML5 shim to make elements work, as far as being block level and things like that
which is what I do
 
what is localstorage in HTML5 called... web storage?
 
7:38 PM
troll
 
I'm most interested in using WebRTC
 
that will probably never work
 
why not
 
does jquery click event have promises?
 
I used it with a webcam for my wedding
or at least I think I did... can't remember now
On second thought, I got a big red button to fire a camera trigger trap using an arduino, so maybe not. I was too busy to use it though
Ah, I forgot Microsoft doesnt plan on adopting WebRTC because of Skype
 
7:49 PM
O.o skype
/me hates skype
 
user1596138
@taco read as welding and then had strange thoughts...
 
I learned all this shit about MutationObservers and all I got were the same fucking memory leaks
 
8:09 PM
Mornin
How is everyone doing?
 
8.5/10
 
10/10
 
@taco that's not true, they said they are - I even have a question on that.
@SimonSarris Awesome
 
how are thee
 
@copy Also very good
 
8:10 PM
4.5/10
 
@rlemon whydat
 
very sore neck.
pulled a muscle
 
@rlemon not good at all
 
nope
 
@SimonSarris after a whole day of studying so mostly glad it's over :D
 
8:11 PM
:sits in a corner and cries:
 
Also, I did some devops on Thursday which was fun.
 
user1596138
> With over 80,000 tech jobs listed, Dice.com has openings for MongoDB developers.
 
user1596138
I fail to see the logic here
 
Question about makefiles. I have a variable THEME_OUT_DIRS containing a list of directories (./static/themes/boring-goose ./static/themes/stoned-bear ./static/themes/sadistic-otter ./static/themes/perverse-otter). Why can't I build the directories with
./static/themes/%:
	mkdir -p ./static/themes/$<
themes: $(THEME_OUT_DIRS)
What would be the correct syntax ?
$< doesn't seem to contain my directory name in ./static/themes/%:
 
8:24 PM
nvm, found it
 
@AwalGarg its just for starters, after I have familiarized with the way of developing / working with them, I can change it . :)
doesn't socket.io work with express ?
 
8:41 PM
Sure it does
 
@copy gist.github.com/aghosh47/fdf14da50e9593fe11da I can't get it right. what am I doing wrong.
"body-parser": "^1.0.2",
"express": "~4.1.1",
"jade": "~0.31.2",
"socket.io": "~>1.3.2"
 
Something with jade
 
I pasted the code in html2jade.org , appears to look ok, but I can't understand what is wrong
 
@argentum47 shouldn't you specify the tag of the container ? Is it implicit ? If not, I would do div.container
 
Understanding what's going on will be very helpful later
 
8:47 PM
its implicitly takes div, I will cross check though
it does, its in the jade-lang.com
 
ok
I'm not familiar with all subtleties of jade. Like your big script, it's a syntax I didn't knew
 
umm, how would you write it ? in a separate js and including it?
 
Note that jade is very sensible to spaces : you may break it by having some spaces replaced by tabs or the reverse
 
ok
it sometimes feels very haml, I should use ejs, it looks html-ish
 
8:50 PM
ok
 
@RoelvanUden the "complaining about stuff from the internet but not actually coding very much" environment :D
 
it's an old version, as I've removed all scripts from my views, but it shows you a simple way to insert a script
(I removed all scripts from my html files to complain with strict CSP)
 
user1596138
LMAO jade...
 
there is nothing wrong with the code in app.js
?
 
8:52 PM
@argentum47 You're putting the body INSIDE the head
 
Why is everything starred a stupid question?
 
oh sucks, how the hell the indentation end up like the.
 
@BenjaminGruenbaum which one ?
 
@dystroy Thanks :)
 
hu ? I didn't get it...
 
8:54 PM
Oh, someone removed them, thought it was you.
 
@BenjaminGruenbaum hi
 
oh, no, I starred nothing here apart Florian's thing
 
this is how it looks like
 
@copy thanks :)
@argentum47 why do you have a tab with porn open?
 
8:56 PM
porn?
no
 
@argentum47 You were supposed to look frantically... not to be so sure...
 
oh I get it
XD
 
We can't all be a @darkyen00
 
!!abhishekpornfreak
 
8:57 PM
Jan 21 '14 at 16:46, by Abhishek Hingnikar
they love there work like i love p***. maybe i should do a p*** site !
 
@KendallFrey what ?
 
lol
 
@BenjaminGruenbaum I am not a porn freak.
 
@darkyen00 oh hey man :D What's up?
 
@BenjaminGruenbaum The way that's c***sored makes it look more like he loves penis
 
8:58 PM
@BenjaminGruenbaum Working on lots of stuff.
 
@KendallFrey inorite?
 
I LOVE penis
metaphorically
 
@phenomnomnominal naa, you're just going to edit that out.
 
So, I made makefiles about 20 years ago when I was coding in C. It's interesting how I remember nothing. I'm learning everything again...
 
8:59 PM
you're right:
 
Lol, the bot doesn't care if it's metaphorical, the bot only quotes a single message.
No context or anything.
Why the little i?
 
lazy. fixed.
 
@phenomnomnominal I love a penis. A penis. Just one. Mine.
 
None of us would be here without them.
Well maybe @Zirak I assume he just appeared one day.
 
9:01 PM
!!learn craigspencetruelove "<> chat.stackoverflow.com/transcript/message/…;
 
@BenjaminGruenbaum That didn't make much sense. Maybe you meant: learn
@BenjaminGruenbaum Command craigspencetruelove learned
 
@phenomnomnominal Which came first, the @Zirak or the penis?
No pun intended
 
!!craigspencetruelove
 
4 mins ago, by phenomnomnominal
I LOVE penis
 
!!gayclubs
 
9:03 PM
Mar 18 '13 at 20:08, by Loktar
I've been to gay clubs more than regular clubs lol
 
!!slidepoop
 
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
This room is fun
 
rlemon's one is still the best one
 
9:09 PM
hehe
 

This room in a nutshell.

Jul 16 '13 at 17:12, 31 seconds total – 4 messages, 3 users, 0 stars

Bookmarked Jul 16 '13 at 17:13 by SomeKittens

 
I have PRs on my project
\o/
 
@FlorianMargaine So what do you use LXC for? Every project? Only for keeping versions of libraries, general separation or something else?
 
@copy every project has an LXC
lighter than VMs
@copy this way each project can have the environment closest to the prod environment
I use them as VMs...
it's just better than VMs
no shared folders, less consumption
 
Yeah, I use VMs for a few projects in which that's a requirement
But it's a pain
 
9:14 PM
@FlorianMargaine I saw, I get an email every time there's something happening on your project...
 
@BenjaminGruenbaum Oh god
 
@dystroy lol
 
That was getting a bit ridiculous
 
@BenjaminGruenbaum I need a talk.
Like seriously T_T ..
miaou ?
 
@copy yup, lxc overall make it easy. lxc-wrapper makes it even easier, in my workflow
docker makes it hard, imho.
 
user1596138
9:16 PM
Heh I had a good one in there
 
@Jhawins you have a good what in where (don't answer if it's nsfw) ?
 
user1596138
2 mins ago, by Kendall Frey
That was getting a bit ridiculous
 
@darkyen00 gmail chat?
 
works fine.
 
@Jhawins :D
@KendallFrey :/
 
user1596138
9:18 PM
@SomeKittens Uhh whatever I got
 
user1596138
Today - standard wired Apple keyboard
 
@copy I have a VM with the deps I use in most of my projects, and I just clone this one now. Then I just ssh ubuntu@foo.lxc and I get working
 
user1596138
Most days - whatever is on the laptop
 
@BenjaminGruenbaum Excuse me for not being in the mood to read about pleasuring an animal.
 
s/VM/container/
 
9:19 PM
@Jhawins so which laptop oyu bought ?
 
user1596138
Idk yet I'll probably wait till monday and buy a ROG
 
@FlorianMargaine I put switching to LXC on my todo list
 
@copy ask when you need anything
 
Oh, neat. That was fast
 
it's not working yet for everyone though...
 
9:21 PM
Would I need lxc if I already have an isolated environment?
 
@BenjaminGruenbaum are you on linux?
because lxc means linux containers
 
@FlorianMargaine sometimes
 
in the way I use them, it's basically lighter VMs
@copy for a good comparison, I consider lxc to be chroot + cgroups... and that's pretty much it
 
Doing that sort of thing in linux is so much better than in windows given how the OS is built
 
@copy nc 8002?
 
user4082764
9:42 PM
Hi everyone
 
user4082764
anyone can help me about my question?
 
@innovation 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.
 
10:18 PM
Protip: If you're gonna get stuck in a snowbank, do it in your own driveway. Then you can shovel it out whenever the fuck you please.
 
-1
Q: Javascript click images individuel

user3058027window.addEventListener("load",init); function init(){ var main=document.getElementById("main"); var h1 =document.createElement('h1'); h1.innerHTML="Zet in de juiste volgorde"; main.appendChild(h1); h1.className="header"; var p=document.createElement('p'); //voeg tekst toe aan p element p....

Kill with fire?
 
@BartekBanachewicz ping me when you're there, I have an even more awesome macro
@BartekBanachewicz github.com/Ralt/lxc-wrapper/commit/… in case you wanna read on your own
 
By chance, does anyone know how to export an object literal in TS?
 
MLM
10:34 PM
Is there a more concise/better way to massage an argument into an array?
var myArray = [];
if(input !== undefined) {
	myArray = input instanceof Array ? input : [input];
}

if(myArray.length > 0) {
	// do stuff with myArray
}
 
var myArray = [].slice.call(arguments, 0);
 
Wouldn't [].concat(input) also work fine?
 
oh, I just saw the first question
 
MLM
@RoelvanUden Seems to work great. Didn't realize you could pass in bare values to concat
Thank you
 
How can make return a promise from a Angular factory... where I am getting data with $.ajax not $http. Long story short I cant get $http to work with POST, but $.ajax works
 
MLM
10:42 PM
Need to check for undefined: input !== undefined ? [].concat(input) : [];
 
You should probably let all of that be the responsibility of the caller
And only accept arrays
 
MLM
@rodling If you are using Bluebird promises, you can use Promise.resolve
 
@MLM no just standard, any way to do this with vanilla?
i just feel like im not structuring callbacks properly or something, tried using $q
 
MLM
@copy The input is an optional object property. I could have a default and use extend in order to always have a empty array. jsfiddle.net/L0ubw1x8
 
@MLM any other ideas, i just need to return a promise from a factory...
 
10:51 PM
The function you're inventing should be made much simpler
 
You guys wanna hear the best friday ever?
 
 
@SterlingArcher rebecca.blackfriday
 
Worse than that
I went to the bank at 1pm to handle my bank fraud -- I'm there for 3 and a half hours before suddenly, BAM. Bank is robbed
 
MLM
@copy I'm curious if you have some time to make some suggestions. I updated it to use extend defaults to simplify logic: jsfiddle.net/L0ubw1x8/1
 
10:54 PM
@FlorianMargaine so that was a loop?
 
So on top of dealing with bank fraud, I had to be interrogated by the FBI for 1 hour
 
@SterlingArcher anyone get hurt?
 
No no injuries, just an upset teller
 
ok, then lol and that sucks dude
 
@BartekBanachewicz yep... At compile time
 
10:57 PM
The FBI likes me though. I was cracking jokes and lightened the mood
 
Good guy Jordan
 
Well, they got a lot of info from me because I had to tell them I was dealing with fraud, and I think it was just routine to connect fraud to robbery
The second he asked me if I was victim or perp I knew. But all good, he totally understood since I had witnesses that I've been dealing with it all week
 
@BartekBanachewicz this is the generated code pastebin.com/JsKgt20B after the expansion of github.com/Ralt/lxc-wrapper/commit/…
 
@FlorianMargaine k got it
@SterlingArcher wha
 
isn't it amazing?!
that's what "code is data" means
 
11:03 PM
@FlorianMargaine I get it
It's fun enough.
But I still prefer Haskell :P
I can see the appeal and the approach is interesting
 
@BartekBanachewicz what a shitty day, eh?
 
You should take a look at Terra actually @Florian
@SterlingArcher man I don't even
 
@BartekBanachewicz what's its appeal?
 
A really good type system
 
it says it's using C type system...
 
MLM
11:13 PM
@copy flatmap does seem pretty good but I want to iterate over the "extra" elements that are also added in the process
example with flatmap: jsfiddle.net/vd2v0xpk
 
That's much better, make it two functions
 
MLM
@copy What do you mean?
 
The function you were originally creating does too many things
It's untestable
flatmap is part of what you need
 
Guys, could someone explain to me how I'd be able to update number like Yahoo Finance does
Let's say I have a number 123.05 and I wanna update it to 124.05
Then the 3 gets a green-ish color and changes to a 4, still keeping the color. After a second the green fades to black again
And same if the number is decresing; 123.05 to 122.05 then 3 should get red and change to a 2 and then fade to black.
How'd I do this is js?
 
MLM
11:31 PM
@copy I'm trying to work out how to incorporate flatmap but I can't think of a way :/
I made some tests to show you how I would test it: jsfiddle.net/oqLn754d
Added test to make sure it iterates over "extra" elements: jsfiddle.net/oqLn754d/1
I am not trying to say my way is better and I am still curious about any suggestions
 
@taco well if you didn't bring food to the office we wouldn't have to worry about ANTS.
 
@FlorianMargaine the compilation step
 
Notepad++ is really really terrible at autocompleting HTML tags
type:
<!DOCTYPE html>>>>
get:
<!DOCTYPE html>>>></!DOCTYPE></!DOCTYPE></!DOCTYPE></!DOCTYPE>
 
why do you use notepad++...
 
Because I've used it since forever
Je suis Charlie
 
11:52 PM
TIL there's a little left arrow next to chat replies....
 

« first day (1567 days earlier)      last day (3379 days later) »