« first day (1733 days earlier)      last day (3218 days later) » 

user3119231
10:00 PM
jojojo
 
@towc hey there
 
hey
 
(Oops; it works now. It was a blank page.)
 
@towc what's up!?
 
Hey guys, I wanted to start playing with REST to get in touch with web dev, but a lecturer of mine made some hints, that REST's time nearly over. What is the successor? Or what would be the successor most likely? Websockets?
 
10:01 PM
maek me admin pls i pay $5
 
Not sure why he would say that when the internet is the only true REST
 
@catgocat not much
 
@towc so what is the exact date of your speech about canvas?
 
I don't think your lecturer understands what REST is
 
@catgocat haven't decided yet
 
10:03 PM
WHY
 
@mike That doesn’t really make sense. HTTP is here to stay.
 
classList isn't an array
BLUAGH
 
@SomeKittens … why is that a bad thing?
 
@mike Quick question: When's the last time said lecturer wrote production code?
 
1999
 
10:04 PM
@SomeKittens didn't ask^^
 
frontpage is king
 
@minitech Can't use array functions
 
@towc I'm looking forward to it
 
@SomeKittens It doesn’t really make sense to give classes indexes.
It should be an iterable, though, and there should be functions to work on iterables…
 
But the points he made, made sense. sometimes http is too much overhead, and for easy server -> client communication other concepts provide richer functionality
 
10:05 PM
@minitech but it does make sense to give lists indexes
classList
 
… wait, classList has indexes??
Eww
 
but classList (like other collections in DOM) should really be arrays
or at least inherit their prototype functions
 
But writing [].fn.call is so much fun
 
life would just be so much easier.
 
document.querySelector `abusing ES6, woo`
It’s like your very own little CoffeeScript
 
10:08 PM
I still wanna do something with jabbascript
not sure exactly what yet
 
Make a RESTful MVC Reactive responsive NoSQL HTML5 web app
 
@rlemon github.com/lhartikk/ArnoldC let arnold help
 
saw that
luled
 
is native javascript the best way to upload plain text files over REST?
or is it better to use jquery?
 
@rlemon make a library that aliases jQuery methods; jediQuery("#myDiv").useTheForce()
 
10:10 PM
@GarrettKadillak I am 60% sure that “over REST” doesn’t make any sense
 
erm, name it jabbaQuery
 
@GarrettKadillak use ASP.NET
 
But sure, use native Java
 
jabbaQuery('#myDiv").feedTheSarlac()
mismatching quatioation marks. pro.
and I can't spell
too much redbull and caramel corn
 
jabbaQuery('#myDiv").thisIsNotTheElementYouAreLookingFor(); // aliases .remove()
 
10:12 PM
@minitech true. I meant posting the form data to a backend
 
posting data? use a form
no need to muck about in js-land
 
Yep, forms work well
This should help you get started: asp.net/web-forms
 
jabbaQuery("myDiv").itsATrap()
 
:D
 
I am using a form but I need custom headers in the request
since it's a django rest framework backend
 
10:13 PM
For example?
 
django rest framework backend
that is my trigger
you bastard!
:twitches:
 
django backend using django rest framework
 
django back end with django framework with django the movie playing in the background with django django in my django
 
@NickDugger with Django Reinhardt playing on a stereo
 
Django Django Django Django Django
!!youtube django unchained theme
 
10:16 PM
Joomla!
 
@rlemon NO BAD
 
:(
 
Drupal
 
@NickDugger You mean Django Unchained?
 
10:16 PM
No, I meant Django
 
So you're a fan of classic westerns, eh?
 
WHAT DO WE WANT? jQuery! WHEN DO WE WANT IT? 2008!
 
My grandmother is
 
!!s/Django/buffalo/g 24477980
 
@Shmiddty buffalo Django Django Django Django (source)
 
10:17 PM
d'oh
 
!!s/Django/buffalo/g 24477980
 
@Shmiddty buffalo buffalo buffalo buffalo buffalo (source)
 
HAMMERTIME!
 
@rlemon buffalo buffalo buffalo buffalo buffalo (source)
 
anyone got any smart ways of detecting a connection type (i.e. mobile vs cable)?
 
10:18 PM
from the browser?
 
@phenomnomnominal Mobile as in cellular?
 
I think he means like hardwire vs wifi
vs 3g
vs LTE
vs ..
 
Best bet would be to do a simple speed test.
 
so everyone in india is using 14.4K
 
trigger a download, see how long it takes
 
10:20 PM
@Shmiddty don't care about speed though
the concern is the potential cost
 
well, the speed is a rough indicator of connection type
 
I'll ask again, from the browser?
 
@rlemon sorry, didn't see it.
I know it can't be done reliably from the browser
and server seems like a hard problem too
 
In india, they use smoke signals
 
so you wanna detect if it is on a cellular network vs non cellular network?
 
10:21 PM
essentially yeah
 
because I'm pretty sure that is possible to a degree
 
but I'm now thinking even that is stupid
 
get their ip, ping it
er, tracert it
see what carriers it goes through
 
@Shmiddty not happening any more
 
10:22 PM
womp womp
 
The actual answer is just a "additional data charges may apply" message
 
@phenomnomnominal you can spawn a tracert, compare it to a list of known hop points for cellular networks (if this exists?) and make an educated guess
or you can do something silly like check for vibrate api and if it is there you know they are on a mobile and can warn them
 
@Maurize what happened to your github account?
 
device detection doesn't work either, cause they could be tethered
and even if they're on a cable connection, it could be prepaid. So I think we just have to warn everyone.
 
Not a bullet-proof solution
 
10:26 PM
@Shmiddty all speed based solutions mean downloading lots of data, which costs the user money without telling them, which is what they need to know :)
 
fair enough
 
how can I turn the value from "history.state" into a string, so that I can use that to load a file?
 
@phenomnomnominal Have you considered asking them?
 
> "Please note that uploading images using data may cause you to incur additional charges"
Done :P
 
> More than twice as fast
 
10:33 PM
Still has shit dev tools (yes, I know you can use chrome's dev tools with it, but the default ones are shit)
 
Microsoft Edge performs more than twice as fast as Chrome, according to… http://dlvr.it/BXVb82 #MicrosoftEdge http://t.co/23yE04pKWh
 
they also claimed to be the fastest with Canvas which was later learned it was only due to cheating
by not rendering all frames.
 
@phenomnomnominal You could serve an image from within a script on the server, and measure how long it takes
 
Have any of you actually used Edge?
 
8 mins ago, by phenomnomnominal
@Shmiddty all speed based solutions mean downloading lots of data, which costs the user money without telling them, which is what they need to know :)
@copy ^
 
10:34 PM
Plus, I'm sure their tests are made out of code that they know is faster on edge. The results are going to be skewed, regardless of who runs the test
 
Or search for a database of ip ranges of mobile internet providers
 
random question... does anyone here use Outlook 365?
 
also if you are going to claim a benchmark result, provide the test and raw data not just the results.
 
@phenomnomnominal Flimsy (user time isn't necessarily correct): When the browser requests your page, place a data-attribute on the html tag with the time the response is sent. In the first line of the head tag, place a script that sets a global for when the response was received. Boom!
 
the speed isn't the factor
it's whether or not the data is going to cost the user more than they might expect. And there's just no way of telling that, which sucks
 
10:38 PM
@RalphWiggum yes
 
@phenomnomnominal What is your use-case anyways? You haven't really mentioned
 
users uploading photos with an auction or classified listing
 
@phenomnomnominal But why is data usage so important?
 
Data is expensive in NZ
 
10:40 PM
@KendallFrey is it down for you? :l
 
@copy very nice! That would do it
 
@RalphWiggum isup.me
 
If a user is on mobile and they upload 20 photos (which is the max we allow) and the user get's charged $$$ they get pissy
 
@phenomnomnominal And your market is limited to NZ?
 
@RalphWiggum no
 
10:41 PM
yep
 
@phenomnomnominal Are you uploading the photos, or are they?
 
They get pissy because they used their own data? How is that your fault?
 
It's not, but people are stupid
 
That's not a solvable problem
 
10:43 PM
we have ~800k unique users a day, a large percentage are morons
we can't stop them being stupid, but we can stop them saying "you didn't warn me"
 
We're the engineers, it's our responsibility to make the world better
 
I want to ruin some people's lives, while making other people's lives better; kinda like the Republican party
 
Hnngg
And we've broken 12MB/s!
 
"If you are on a mobile data connection, uploading an image will consume your mobile data bandwidth"
Pass it to product for finalization
run it through legal to make sure your bases are covered
 
10:45 PM
Do people not understand how their mobile data plans work?
 
spend 15 seconds plopping it next to the upload component
 
@NickDugger Some people don't understand the concept of "upload"
 
@Shmiddty yep exactly this
 
If you wanted to do the good-guy thing, you'd also set a size cap on uploads < 500k/img, and/or use canvas to scale images larger than that to the appropriate size
You could also, theoretically, chunk image uploads and send parts of them with future requests, but that would be a large-scale undertaking
And the bandwidth savings would likely be negligible
 
i hate it when i have to download 87mb data just to hear a 13.4 mb songs, which already play in chrome (Just missing playlist)
 
I had to tell someone about the easteregg I added to my code today
We're making a light-to-height calculator for Christmas trees. You put in your height of your tree and it returns the number of lights
if (feet == 9001){
    output.warning = "Check your power levels!";
}
 
wat
do feet > 9000
 
The joke is lost on people who are typing in 10000
 
11:07 PM
-_-
 
@Abhishrek ping
 
how can I remove the first N lines of a file with Node?
my Google-fu has failed me :<
 
I think you need to create a ReadStream?
Wait... a WriteSteam maybe?
 
well, I could theoretically do it with a WriteStream but I don't want to keep rewriting the file
there has to be a way
 
@Shmiddty we've done this in the past, and we just ended up with shitty images. Stupid user generated content
 
11:10 PM
I mean there can't not be a way to just remove part of a file with Node... right? not without rewriting the whole thing?
 
I'm not very knowledgable in the fs
 
@phenomnomnominal Also detect images of insufficient scale? Minimum scale 600x400?
 
me either, though I can usually scrape by. streams are still somewhat mystifying though
 
At my last job, we did apply a minimum photo size in the upload process. If it was too small, it didn't upload, and the user was presented with an error message.
 
@Shmiddty yeah we do that too, people just suck :)
 
11:13 PM
@phenomnomnominal Basic intelligence test as part of user registration?
 
@Shmiddty we'd lose half our users
 
That's cool. They probably aren't generating any revenue for your company
 
@ElliotBonneville something like... file.replace(new RegExp('(*' + os.EOL + '){' + n '}'), '');
 
@phenomnomnominal assuming file is a string being held in memory?
 
11:15 PM
sure
 
the problem is, the file doesn't fit in memory as a string.
 
@phenomnomnominal watcha building?
 
oh so it's a stream?
 
the 'restart VM' button in vSphere looks like a 'refresh' button. it's a damn good thing it was an "are you sure?" box.
 
@Polyducks right now? something top secret.
 
11:16 PM
Read the stream until you detect N lines. After that point, you may begin writing to your output buffer.
 
does that not solve it?
 
@ElliotBonneville You have to, you don't need to keep the whole file in memory during that process though
 
@phenomnomnominal sounds deathly exciting!
 
@phenomnomnominal given what copy just said I guess it does.
 
Why does readstream/writestream sound so familiar? Are they a PHP thing?
 
11:18 PM
was hoping to avoid copying it all the time because I'll be repeatedly removing from the beginning of the file... perhaps what we have here is an XY problem
 
Is it a C++ thing too?
I remember learning those words when I was doing another language
 
Maybe you want multiple files (and remove the first file when n files were created)
Or a circular buffer
 
@Polyducks excting/stressful.
 
@Loktar Looking at that put stars in my eyes
 
11:21 PM
here's where I'm at: I have an array of data, big one, and I don't want to hold it in memory. I'm iterating through it and adding to it constantly so I only need a buffer of N items in memory at any given time. the plan was to be appending items to the end of the file and reading/removing them from the beginning. but if I have to be constantly copying the file to remove the beginning of it that's probably not the best way?
 
LOL
 
@phenomnomnominal Your name reminds me of a character I used to play with on a text based game.
 
@Loktar I kind of want to get a telescope, but I live in the city. 1) Light pollution. 2) Don't want to deal with accusations of peeping
 
@ElliotBonneville Have you considered chunking the file, or even saving the file as separate parts?
 
@Shmiddty hah yeah I suppose that is a pretty decent concern
 
11:23 PM
@Shmiddty why else would you want a telescope...
 
@Polyducks So I can see Uranus, obviously.
 
Dayum! Could bathe in that
 
@copy Well, at least you're honest about what you do.
 
LOL ^ semi nsfw-ish
/me is glad hes at home
 
11:24 PM
/me is at home, but on work laptop >.<
 
Guys, I need to sleep. Thanks for being a cool group of people
 
@Polyducks Go screw yourself you bastard.
 
@Polyducks peace. thanks for the thoughts
 
2.9
 
@shmiddty if only I had as much lube as @copy, I could do that.
 
11:25 PM
@ElliotBonneville Yes, you should probably look for another way
 
hahhaha
 
the filesize is anywhere from 100k to 4-5m lines. not sure how practical splitting it into a bunch of files would be.
 
Mannnn... I really want a PS4 so I can get some level design experience with little big planet.
@elliot you just break it into reasonable sizes. Perhaps 1000 lines per file. You have to work out the time balance between switching files and storing that data in memory.
 
@Polyducks Go to bed young man, woman, or otherwise.
 
Sorry, I said I was going... Should've slept about 3 hours ago
D:
going going going...
 
11:28 PM
that's like 1-5k files though :o
 
@Polyducks that's a really strange reason
why would you use PS4 instead of PC for that?
 
@tereško you wouldn't believe the job requirements for level designers in gaming
@tereško please message me any games for the PC with decent platformer level editors while I'm gone
 
PS4 doesn't seem like a goof platform for development :P
 
@shmiddty really going for real this time.
 
@Polyducks in which genre ?
 
11:29 PM
@tereško It's not. It's about level concepting and design, and little big planet 3 is the best for that in terms of pre-generated tools
@tereško platformer. I can't wait for the new Mario Maker to be released in september. For that I'd buy a WiiU
 
^ hes right on that
little big planet is such an amazing series..
if that was on the PC.. omg
 
@Loktar First time for anything
 
Emulatorio!
 
@loktar I find PC ports are the worst
 
hmm ... lemme see what I can find (I am not really into platformers)
 
11:31 PM
Or anything else you can find is welcome too, @tereško.
 
@Polyducks check out humblebundle.com
 
It's more about the design than the actual coding of the tools. Simpler the better.
 
they have a game making bundle going on right now
 
@loktar A game I worked on was featured on humble bundle once!
 
11:31 PM
hah nice, which one?
 
@loktar hoooly shit
 
stencyl seems cool
 
@loktar thanks. And Tinykeep
I knew a dev that knew nothing but stencyl
 
I'd say go with an emulator, buy the game, and you're set.
 
@Shmiddty for PS3 or PS4? lol those don't exist yet :p
 
11:32 PM
Oh my god, sprite lamp
Guys, highly recommend all these things
 
yeah I need to buy that bundle
 
@Loktar I owe you big time for this. Thanks.
 
np!
 
if there is a download 99% sure its a virus
you can find "xbox one emulators" as well
 
11:34 PM
Night guys
 
see ya @catgocat
 
happy coding
 
@catgocat pong
 
@Polyducks so basically Super Meat Boy comes with editor (unlocks on 20 badges), there is also editor for Trine 2 and Portal 2
and that's basically the end of the platformers that I know
 
@Loktar womp womp :(
 
11:36 PM
@tereško used Portal 2 extensively :p I didn't know Trine 2's editor was released
 
How long does a kick-mute last?
 
depends
1 then 5 then 30
then ban I think
not sure
 
does that reset?
 
every 24hr
 
cool
 
11:38 PM
SO time
 
Note to mods: kick-muted @Polyducks for their own benefit (sleep is important!). :D
 
@Polyducks I think Trine's editor is in perpetual beta
 
sexy
 
@rlemon moon, sun, earth, mars, jupiter, saturn, uranus, neptune, pluto?
 
Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
 
11:47 PM
that makes more sense.
I'd forgotten that Mercury looks a lot like the moon. haha
 
Thats no moon!
cool pic
 
@Shmiddty do we actually have color pictures of mercury ?
 

« first day (1733 days earlier)      last day (3218 days later) »