« first day (1751 days earlier)      last day (3187 days later) » 

6:00 PM
Emacs' skewer mode is fun
 
sweetjs is cool too
skewer sounds like something I already have with hot-loading
or does it just connect the console to the browser?
 
@Abhishrek I just found him rather irritating.
 
I have make about 50 000 queries to a restful api, what's the best way of doing that with node?
 
@Callum xD
the videos arent targetted for "science students" but for "everyone watching tv"
his book is better though.
 
Yo fuckers
3
I need like 100 ideas for SQL injection for a simple form.
Deliver
 
6:05 PM
bobby' drop TABLE students;
 
Real stuff.
 
I'm a n00b so I do the failsafe; is the query ever gonna have anything to do with user input? prepared statement: normal query
 
user2076675
0
Q: iPhone doesn't support inline video - Is it possible to strip frames and audio from an uploaded video file with JS?

Jonathan ToddTl;Dr Is it possible with JS to strip individual frames and audio data of an uploaded video for streaming to a custom canvas / audio player? Why or why not? I haven't tried reading raw file data / manipulating it with JavaScript but I wouldn't be surprised if it were possible. I'll explain my r...

 
user2076675
Anyone care to take a crack at this?
 
user2076675
It's probably not an easy question, but Id really appreciate the help.
 
user2076675
6:10 PM
In other news,
 
user2076675
Man Tries To Press Charges When Girlfriend Lets Cat Eat His Bacon
 
@BenjaminGruenbaum have you already grabbed all the php examples from w3schools :P
 
iirc they were susceptible
I want that so bad
would look so beautiful on my desk lol
reminds me of something out of Fallout
 
6:17 PM
@Loktar too bad it only costs $700
 
hah yea
if it was $100 or less I probably would have grabbed it
 
why not make one yourself? Could be a fun project to do with your kids
 
eh I couldn't make something as pretty as that
 
I wish my father thought that
 
I just love the overall style of the case
 
6:18 PM
@Loktar certainly not, but it will also remind you of the kids
so it's even better :D
 
@BenjaminGruenbaum owasp testing guide?
 
@AwalGarg ah good one!
 
you can find the keys pretty easily for free I guess, you could make the casing by wood, making it square-like... it'd still have style
 
eh yeah, too much work though :p
id rather build a new pc
going to build one for one of my oldest sons friends before we move actually
 
I'm pretty sure you can find quite cheaply those kind of monitors..
 
6:21 PM
they are vacuum tubes iirc, not too much money
 
@Loktar if I were still a 9yo that would mean the world to me :(
 
@AwalGarg nice idea, thanks fucker
3
 
lol
 
lol I dont think I've ever seen @BenjaminGruenbaum say fucker.
 
6:22 PM
It's his new thing
 
I guess Zirak hijacked @BenjaminGruenbaum's account
 
or they always were the same...
0.o
how's it going @AwalGarg ?
 
@towc okayish. college starting day after tomorrow. yourself?
 
@AwalGarg ha, poor boy :P Mine start the month after this one
 
:D
 
6:24 PM
pretty good
 
Meh, still in high school :S
 
what class are you in? (Awal)
 
Boring as fuck, no CS class.
 
hi guys, quick question, I have this code:
`<a href="${gistUrl}" onclick="trackOutboundLink('${gistUrl}'); return false;" target="_blank">${gistUrl}</a>`

it seems like target="_blank" doesn't work in combination of onclick, anyone knows a workaround for this ?
 
@towc Passed high school last year. almost dropped an year.
 
6:25 PM
@AwalGarg nice :D That's a good thing... right?
@Callum hey, I still have 2yrs of HS to go :P
 
I'm currently in fourth year, got fourth, fifth, and sixth to go before I can start doing anything computer related :P
 
Morally it is. Not community wise. Indian student dropping college === student sued.
 
@AwalGarg Sued for dropping out? Dafuq?
 
stares at my monster app
WHY DON'T YOU WANNA WORK?!
 
in italy if you drop out you're seen as a human failure...
 
6:28 PM
Drop out of what?
college?
 
instead, some guys in Saint Francisco asked me to drop out so I could go work full-time for them, as if it was something good
 
Lots of people drop out of college and are successful; like me
 
@Nick and hs
@Nick you're not successfull, too sloppy in bed
 
Yeah, if you drop out of HS, it's bad here too. Some people still are successful after dropping out, but it's really hard
 
technically in italy it's against the law not to finish HS :/
but techincally now I belong to UK's school, and I'm not sure what they say about it
@AwalGarg what do you mean by almost?
 
6:32 PM
One great thing about being Scottish, is I can get into practically any Scottish Uni with no tuition fees.
@JohnSnow Because it finds joy in enraging you/
 
Well,The real answer is that I'm attempting to code something I don't know how to do. Poor little node is trying to keep up but it just can't array.forEach(make request to thirs party API) 50 000 times :/
 
@JohnSnow what are you trying to do?
 
I'm trying to get an array of object ids from a 3rd party API
 
in what case is making 50000 requests an option?
 
there are about 50 000 of those objects
 
6:36 PM
@JohnSnow does it allow for multiple returns?
 
No
if by it you mean the api
 
can you show us the api?
 
No it's not a public one
 
@JohnSnow Tell the api's devs they are bad and should feel bad, then.
 
but it's giving back a JSON
 
6:38 PM
@JohnSnow is the result like this: [ {"something":"something"} ] ?
 
Yes, standard Json
 
but is the result contained in an array?
 
www.apiadress.com/api/getObject/objectid <--- kinda the link
No it's a json object
 
ok...
you're fucked then
try not to get them all at once
 
:(
 
6:40 PM
Will the objects change? You could store them in a database...
 
I'm trying to do that
 
or ask the dev guys if they have something for multiple requests
 
but I have to retrieve them first
They don't. It's intentional for some reason I don' know
 
So just make the 50,000 calls, then. :P
 
and why do you need 50000 of them? Can't you get a smaller number?
 
6:41 PM
I need ALL the objects
 
load them dynamically
 
^^
 
dynamically?
 
like, you make 100 calls, then another 100 ones...
 
Ah
 
6:42 PM
you need like a list of them, right?
 
the response is inserted into a db
 
the user isn't going to instantly need all 50000 of them, unless he's Jon Skeet or something and can read it all instantly
 
It's the get them all part that returns errors
 
errors? Then you're doing something wrong
 
@towc no, but I thought it'd be easier for the db to get them all
@towc Pardon me, but that's what I've been saying all along >_>
 
6:44 PM
but really, I can't imagine a real-world case where you'd need to make 50000 calls instantly...
 
Just ordered pizza, and it's gonna take an hour to get here, but I'm hungry now!!!
 
I know nothing, ergo I must be doing it wrong :P
 
@Nick I can come over
 
with pizza
 
as pizza
for pizza
 
6:45 PM
I still have that carrot cake, Nick.
 
@towc Well, more of the XY is that I kninda only need it once, normally it's gonna be about 5-600/month
but I'm writing the FULL import here
 
carrot cake is disgusting
 
@JohnSnow if you only have a list of books or something, can't you page them?
@Nick you're disgusting without carrot cake. Go get it from him
 
I found a really great tutorial online for creating a 3D tetris with Three.js -- the game is terrible, but it explains a lot about how to actually use Three.js. You just have to change a few lines that they give you, and it works great
 
Hmm... I suppose I can do that and have the next "page" as the callback?
 
6:48 PM
@Nick Wow. link?
 
@JohnSnow yup
@Nick that's probably really easy
all you need is the logic, which is pretty straighforward. Then just make the cubes as voxels with threeJS and you're done...
I don't really see why would you need a tutorial for that
 
Let's hope I can do this without ending up with 50k requests run simultaneously
 
@Callum Be forewarned, you should know how games work before you try this, like how a game loop works. I'm not using hardly any of their code, just the concepts -- smashinglabs.pl/three-js-tetris-tutorial
@towc The tutorial is more about learning Three.js -- not the logic
I can figure out the game logic on my own, I don't care about that
I'm just trying to learn Three.js
 
learning threeJS: make a camera, scene and renderer. Then put a mesh+geometry in the renderer and 50 points for griffondore...
 
If things were that simple, don't you think everyone would do it? Chill your tits.
 
6:51 PM
not sure why should the tut be about 3d tetris, it should be about making cubes in threeJS then
@Nick and everyone does it!
 
For someone as smart as you, you're not very bright
 
Which indentation do you guys prefer? pastebin.com/EUf1CGeM
 
@Nick I stayed outside for too long
@Unidan #1
 
@Unidan First
 
I wouldn;t do it either way
 
6:52 PM
Nick programs in one line.
 
aight, visually I prefer the second, but first feels more natural to write
 
return browser.getCapabilities().then(function (cap) {
    return cap.caps_.browserName;
});
 
@Unidan you used spaces for first and tabs for second, right?
 
nah spaces both
 
@Unidan 0.o the second one must have killed you...
soooo many characters to type
 
6:53 PM
<tab><tab>?
or just even <tab> tbh
or, do you mean in the pastebin editor? I pasted it in there
 
@Callum I probably would in this case, if I got to use a lambda
 
usually it's better to use a single tab par indentation level, this way everyone can set their tab-length to what they prefer, but some people are dumb and do double-tabs for indentation making everything unreadable for the others
 
return browser.getCapabilities().then(cap => cap.caps_.browserName)
 
() => browser.getCapabilities().then(cap => cap.caps_.browserName);
 
towc: our team decided to use 4 spaces for indentation, this is enforced with jscs
 
6:55 PM
@Unidan and that's good
 
tabs are more semantic and better
because
 
but yeah I think I prefer tabs
 
even if it would be even better to set everyone's tabs to equal 4 spaces
 
I'd say a tab should be four characters by law.
 
I personally prefer 2 space indentation, so I have my tab set to 2 spaces
 
6:56 PM
ew
 
thing is, enforcing 4 spaces indentation sort of protects us from spaghetti code and callback hell
from less experienced devs
 
do 16 for stronger protection
3
 
lol
 
@Unidan use tab-4-spaced indentation then? You save 3 keystrokes and a lot of unreadable code for others like me that prefer tab-2-spaced indentation
 
towc: tabbing will indent it perfectly fine, unless you're editing in nano or something
for the record, my personal preference is tab indentation
but I was overrun on this
 
6:59 PM
Setup a macro, then. Press tab and it sends four spaces.
 
?
 
Don't every one already do that?
 
I don't have a problem with which character is used for indentation, most modern editors will sense this automatically anyway
 
The case for tabs as I see it is that if you commit with tabs then everyone can set their IDEs to display a tab as the number of spaces they want
 
and we even have an .editorconfig
ivarni: yep, cat(1) though
btw, does IRC style mentions work here or is @ required?
 
7:04 PM
@ or :<message-id> are the only ones I know of, but then I'm pretty new here
 
I think those are the only ways
No reason to have any more, though.
 
@ works on partial matches though, so @uni should ping you and anyone else whose nick starts with "uni"
 
If we leave two kids with enough food and water on a remote island with no connections to the outer world, do they develop a new language and culture?
 
Eventually, after a few generations some language might pop up.
 
Probably not right away, but after a few generations (if those kids are of the opposite sex).
 
7:13 PM
ohoo thanks alot @Neoares @Lalaland
 
crl
after some inbreeding
 
7:24 PM
@AwalGarg some king tried this experiment with 50 infants. They all died.
@Unidan only @. Thank god.
irc highlight sucks
God help you if your nickname is a word or part of
 
@AwalGarg Lord of the Flies
 
@FlorianMargaine any wiki entry or other link explaining it? sounds interesting (and sad) :-P
@Zirak o.O TIL
 
7:40 PM
fucking jackdaws
 
How can I make the red label display the value from first controller ? ( without inheritance) JSDIFFLE
 
crl
JSNIB you mean
 
yes:)
 
@rlemon I'm actually using lorem pizza for stuff
 
guise
can someone sanity check something for me?
if you visit here: aharding.co.uk/photography/port-de-bales and scroll all the way down
then run document.body.scrollTop = 0;
in the console or something
does the page go back to the top?
because it seems like it should, but i can't make it so
 
7:53 PM
the body's scrollTop is already at 0 when I scrolled to the bottom.
 
yeah, that's odd though
am i derping, because the body is the element with the overflow set to scroll
 
Nah, it seems that it isn;t the body element that's scrolling. The body's height isn;t going past the window's height
 
If you really wanna make something, and you really wanna read something as well, what'd you do first?
 
the body has a height: 100% on it
This is making things odd
 
@Nick okay
@AwalGarg make, otherwise you will not be able to get it out of your head
 
7:54 PM
It could be that you need to clear some floats... Still looking
 
okay
thanks for looking, i thought it was odd :c
 
@AaronHarding but the same stands for reading as well right?
 
i'm not sure, unless you know what's already in the book, the idea is in your head and it might need to come out?
 
You have too many odd things going on. Too many things have their height set to 100%
 
@Nick lol
 
7:58 PM
@FlorianMargaine First of all the s flag means it won't traverse into subdirectories. Second I implemented it with symlinks, so you need -L to make it follow symlinks, giving you: du -Lch .../files/
 
"too many odd things going on"
 
and then you have an overflow-y on the body, which you could just leave alone, but when I uncheck the box, it doesn;t scroll
So you have something that's overriding the default
I'm gonna eat my pizza and play a video game, so good luck
 
well, the idea is to have the body be the scrolling element
because there is a lightbox that when shown, i'd like to freeze scrolling and have the website stay in the same position on the y axis
thanks man
 
Can we limit the repeats of a GIF in JS/html/css?
 
@BenjaminGruenbaum do you mean the animate loop or background repeat?
 
8:03 PM
animate loop, it's just an img
 
and i guess you want to loop it x times, dynamically?
because if not then you can set the limit in photoshop, or if so, then you might have to do some work with gifsicle which you can render a gif to loop x times (see github.com/imagemin/gifsicle-bin)
it can run on node
 
Thanks, too much work but appreciated.
 
user3119231
helloooo
 
@BenjaminGruenbaum ^^
so simple answer: no haha
 
8:21 PM
hey
var cname = ["", "prochnica", "wypelnienie", "korona", "amalgamat", "u_przyszyjkowy", "brak_zeba"];
cname.filter(Boolean).forEach(el => {window[el] = []} );
what's wrong with that
"Uncaught SyntaxError: missing ) after argument list"
 
Boolean is a function, no?
 
I thought it's a type?
 
Boolean() //-> false
 
@BenjaminGruenbaum jnordberg.github.io/gif.js ?
 
!!>Boolean()
Still no cap?
 
8:25 PM
There was another one, more lightweight, I can't seem to find it.
 
no change after I've added "()" after boolean
 
@crusty your environment doesn't support arrow functions. use a normal ES5 function.
 
environment? I'm creating a web app...
maybe I need to include something?
 
@Zirak YOU'RE NOT MY MOMMY >: (
 
@crusty try with firefox. chrome has a bug can't even get parsing code right stupid browser.
 
8:31 PM
hmm... I need to get it working on both browsers >:(
 
On Firefox your code works fine, by the way.
 
thanks for info :P No firefox installed
so how do you think it should be done with ES5?
 
@Zirak why is the background of that website flickering?
 
@Zirak symlinks? ... you're weak
 
there is this horizontal flickr about 33% down the page
 
8:32 PM
That said, it also means we don't have the same output though
 
There is a curse set by @BenjaminGruenbaum on chrome. It will never be able to parse code which defines a variable by the name cname because benji dislikes DNS.
So to solve your problem, just use firefox before he sets a curse on firefox too.
 
DNS is satan
Firefox is terrible.
 
Yeah
Chrome is terrible too
 
@FlorianMargaine For the very simple reason that I just couldn't figure out how to do hardlinks
 
Edge for the win
 
8:34 PM
@FlorianMargaine chrome's timeline, audits, and profiling tools are suuuper good though
are you trolling?
 
@Zirak return the file content on readAll?
 
@FlorianMargaine That's not what a hardlink is, hardlinks share an inode
 
I know. Does it matter?
 
It's otherwise just a file
Which is...weird. And things.
 
What's wrong with that?
Ok...
The folders are real though, right?
The folders are real though, right?
 
8:36 PM
How Can Folders Be Real If Your Files Aren't?
 
I'll have to change my code to use symlinks, no problem
But define it somewhere ^^
 
lurv u
I have a pretty serious bug though. After syncing/upgrading, the filesystem no longer reflects the real state, since the dbs got updated.
 
how long until you get bored
 
Of you? Already happened.
 
that's quite an accomplishment. kendall's mother still hasn't :/
 
8:52 PM
@AwalGarg internet makes me sad
 
@AwalGarg Foolproof WAF
 
user406009
To be fair, people do similar gimmicks with JS.
 
user406009
 
That's not the same at all. Also, stupidity doesn't justify different stupidity.
 
Is it really fair to pin that botnet image? It presents some stuff in an exaggerated manner. (jus sayin, I don't like windows anyways).
 
9:15 PM
It's not fair. But hate isn't fair. Exaggeration pleases the hater' crowd.
 
would anyone mind if I unpin? It's still starred.
 
I wouldn't mind. Rather, I'd rather see a pin about W10 privacy concerns (because there are) that are a little more fair, including the detail to disable those. Or let's pin a lot of privacy issues about using Google, Facebook, Android, iOS, etc.
 
privacy issues in Android? I love being able to just grab my phone -> chrome -> latest tabs -> whatever I've just been reading before my intestines demanded immediate attention.
 
objectA.bs.push("test");
how to get it working if "bs" is not the name of array in the object
but a variable?
 
square brackets
 
9:23 PM
will try
you mean [bs]?
 
yes
 
unexpected token
 
not my fault
 
XD
objectA.[bs].push("test");
?
looks weird to me
and I'm not experienced with js
 
almost
 
9:28 PM
so what is the right way of doing it?
var objectA = {"prochnica":[], "wypelnienie":[], "korona":[], "amalgamat":[], "u_przyszyjkowy":[], "brak_zeba":[]};
 
remove the dot
 
@FlorianMargaine github.com/Zirak/pkgfs
 
@JanDvorak thanks?
no "?"
 
9:57 PM
Hi folks
any node.js users here ?
 
@user568109 pretty much noone doesn't
I mean, I don't
but most do
 

« first day (1751 days earlier)      last day (3187 days later) »