« first day (1008 days earlier)      last day (3955 days later) » 

12:00 AM
And wouldn't it be cool if you could do var sorted = [4, 1, 3, 2].sort() ?
But when sort is mutative, it breaks your expectations of a function. You can't do func(arr.sort())
You can't do return arr.sort()
You can't do arr.sort().slice(1)
Because sort isn't a pure function, it's a mutator, and those bastards are weird
 
okay, thinking in terms of "funtion vs mutator" makes sense
then you'd have Array.sort(foo) if you wanted to do it in place
 
Beer drinking king dies in competition tragedy: "He had drunk six litres of beer, and when he won he lifted the trophy. Then he just started to vomit without stopping and he never spoke again"
 
</humanity>
 
12:16 AM
hello all *waves
 
@Dave ding ding ding WINNER! Buy me this
 
@Zirak would you ever leave your house if you had one :p
 
I'm afraid the world will have to learn to deal with the absence of my awesome.
 
That is SO worth 50k
 
12:19 AM
I'd get married and sell all my wife's eggs for one
 
You're such a romatic
 
does the chair move like a simulator
would add to game experiences
 
I'm pretty sure you can program it to give blowjobs. Which you can't (legally) do to your wife. So take that, romance.
 
@Zirak Yeah I'm totally getting one of those. EVENTUALLY.
I would settle for the $6k one
don't even care
 
> simply the most advanced work environment on the market today
yeah... work
 
12:22 AM
Alright, I'm heading out.
my brain is fried
 
so close to a platinum trophy on rocksmith
 
lols
sorry that made me chuckle
@phenomnomnominal does it have this song on it : youtube.com/…
i recently finished learning it - caused my fingers to bleed :( but worth it
 
nope, but it is an amazing tool for learning guitar
 
Now I'm at Dallas :)
 
not sure. youtube is probably better + guitar pro 5 software
andy james is deffinatley a player to learn from
 
12:29 AM
guitar pro 6 is much better than 5, and no youtube is not better
 
youtube is much better cos your forced to use your ears
 
> Hand built in Canada
THAT IS RIGHT
 
@Dave pedagogically that is redundant.
The number one challenge in teaching guitar is that people want instant gratification
 
explain..
 
@BadgerGirl how is the airport there?
 
12:30 AM
they want to be able to play songs, not know chords or theory
 
and how was the flight?
 
well thats their fail.
 
no it's not, it's a reality
 
and thats why most people suck at guitar xD
i learnt my theory first
 
well that's fine
but as a teacher, it's much better to have people learn a bunch of songs and the basics first, and THEN seek proper lessons
 
12:31 AM
i disagree.
 
it gets rid of the people who will be a waste of time
 
I learnt theory out my ass, I can play the violin viola and cello - can't twang a 6 string for the life of me. I can GH like a mofoing bauce.
 
i played piano for 10 years before picking up a guitar, so yes the theory does help
 
for me if they want to learn the song they have to know why the notes work over the progression.
 
then you'd be an awful teacher
 
12:32 AM
I can play a 'few' songs on piano. and not well or all the way through.
 
learning music helps develop the mind, in some pretty amazing ways
 
if they want to learn guitar. that is also part of learning the guitar.
 
I can also do the same with bagpipes and drums
 
getting people into music by any means necessary is the important thing
 
so learning music helps.. yet you disagree that dissecting songs makes me a bad teacher seems hypocritical.
 
12:33 AM
i did not say that
 
Did I mention I was a walrus ?
 
"then you'd be an awful teacher"
 
dissecting songs and learning how music is put together is important
 
yes you did
 
Tusks and all. it is pretty sweet.
 
12:33 AM
if they want to learn the song they have to know why the notes work over the progression.
The order is wrong
 
i just said that..
 
people NEED to learn songs without knowing what progression even is
 
you can do both at same time
 
I know you did, it's fucked up
 
not really been doing just fine for last decade on guitar this way
 
12:34 AM
@rlemon I can't see much but looks okay.
 
teaching?
 
@BadgerGirl ok so people can see me, I was afraid I was falling into some strange twilight zone like place
 
ive done teaching for 5 years*
 
well i disagree with your technique
 
so you just teach students song and go "now lets look at it"?
 
12:35 AM
absolutely
 
for me i pick the songs thats best for them to learn
 
even better, teach them 5 songs and see what the underlying commonality is
 
so I explain what a function is? or do I show you a function, get you to write it, then explain why it worked.... AND THEN what it is.
 
who am we as teachers to say what songs are the best for them to learn?
 
if they can't hear the music in their head first, how will the theory help them be a better musician?
 
12:36 AM
well thats why were teachers lol
 
There is not a faster way to turn someone off music than by making them play songs they hate
 
you dont go to school and say "no teach me this please"
if they want to be a musician they will stick with it
 
not everyone wants to be a musician
 
I wanted to be a musician. honestly, programming deemed easier
 
then they wouldnt seek me for a teacher lol
 
12:37 AM
some people want to be able to sit around a campfire and play with your friends
 
yeh they wouldnt choose me in that situation
 
same hand dexterity, less callus.
 
@rlemon I did a performance level diploma, and then started a music degree before doing engineering
it's pretty much the same parts of the brain
 
im self taught ^_^
 
programming / engineering is creativity
 
12:38 AM
@rlemon gotta keep those hands pretty
 
it is an art.
 
also self taught programming with help of SO :P
 
@Shmiddty lotion every night ;)
Self taught programming with the help of an uncle who was learning at the same time and a basic book I found at my local library in 1994
it was wicked awesome
 
books put me off learning a language i had the c++ primer .. instantly felt like a chore than any thing fun
 
You must have been so happy when you started working in languages other than basic
 
12:40 AM
if you get a job working as a programmer - is it any less fun ?
 
Yes
 
my programs evolved from a basic calculator -> text based adventure (never finished) -> insult generator -> (yay web) marquee like a mofo -> (yay js) holy shit things just got messy
@Shmiddty bah, maybe for you!
 
i was going to do game design for university but i thought itll put me off the hobby
 
trick is, get a job programming in a language you like, but do not love
 
Enterprise applications drain your life essence
 
12:41 AM
I love js, I write professionally c#, c, and c++
but outside of work I try to stay as far away from it as possible
 
I love JS and I work with JS
 
although I have been known to try to sneak as much js into my work as possible.
@phenomnomnominal but... but... but... fu
 
I enjoy my work at times, but there's so much bs involved in the corporate world
 
embedded industry isnt' ready for js
 
but the company i work for lets me use it in fun ways
 
12:43 AM
if I have my way however, I will push them there
 
i still feel strongly canvas will replace flash
 
I need to get my ass into gear and really analyze node.js and see if I can rehaul our system using it
 
Obviously
 
only problem with canvas is android etc v.sucky with them
 
mobile canvas is improving
almost runs on my Nexus 4
 
12:44 AM
although does that apply to windows tablets?
 
7fps i think
windows tablets are ie10 iirc
so yes, canvas works
 
is it the hardware or the OS that limits them on devices
 
browser
 
well isn't android's based on chrome
 
Once phones get gpu acceleration, it'll be golden
 
12:45 AM
surely it has the v8 with it
 
chrome 18
 
what js engine?
 
my hardware would crush a lot of systems (on the nexus 4) that run that demo fine
problem is mobile browsers have no or stupid canvas optimizations
 
chrome for android already has gpu acceleration
 
I wonder if copy is handsome irl.
 
12:47 AM
@BadgerGirl he is. trust me. (nice ass too)
 
their site says "Chrome for Android brings to small devices the same multi-process architecture, GPU-accelerated rendering, and the V8 JavaScript engine - all optimized for mobile architectures. Chrome for Android delivers fast graphics performance through:"
 
yea well, Nexus 4 here (their flagship phone) - and I say otherwise
 
lol xD
 
canvas performance === eh.
that clock demo gets like 7fps on the best of days
 
what about your dancing video one
 
12:49 AM
doesn't run
I think video api isn't there
makes sense
 
this is why i think i might go for windows tablet next
just because the same software of my pc will work on it
mark zuckerbeg 2.0 has arrived :P
 
yea but it will work shitty
god I hate windows 8
(albeit I have never used it on a touch device)
 
i stuck to 7. i like 7 has been good to me
 
linux or win7 for me
 
I had 8 on my touch laptop - I can't imagine it on a non-touch device
 
12:54 AM
cant you go to classical windows in 8 for desktop if you wanted to
 
You can - it's just awkward when you try to do power-user things like turning the machine off
 
oh
 
Turning off a computer is reserved for power-users?
Well, that does make sense in letter...
 
I was being facetious
 
guess they took power user literally
 
12:58 AM
8.1 will be interesting
 
no seriously. turning off a win8 machine isn't plain as day.
also, to get a classic start menu you need third party software. there is no native solution
 
ill await for 9 then
 
Anyone here know Jake at all?
 
Verbatim
 
yeh had a coffee with him yesterday
 
1:01 AM
w/e
that is wrong spelling
Raynos
 
m59
Oh man, I could lose my mind.
 
why?
 
m59
Does anyone get semi-teary-eyed when scripts are BAWSSS?
 
:(
 
m59
Or it that just me?
 
1:02 AM
what makes it bawsss
 
m59
much =D
 
I write a lot of them
 
im sure a pro here can make it even more bawsss and poke holes through your code :P
 
m59
Probably, but it's 10,000 times better than Joomla =D
 
but i'm also drunk so don't listen to me
 
1:03 AM
@m59 UGH JOOMLA.
 
@rlemon freelancer.com/contest/… <-- winner!
3
 
m59
@SomeKittens UGH indeed.
 
hahahahaha
nice
I forgot about that comp.
 
m59
I finally finished (until I decide to add more functionality lol) an angular directive for my site's templating
btw, @rlemon, the way I solved the loop issue was taking advantage of angular data-binding, which I was planning to do anyway
 
cool
 
1:04 AM
It's nothing special, but I finally got my brain to work a bit, and I made collision detection in JavaScript :-P
https://dl.dropboxusercontent.com/u/53738503/AT/index.html
 
I know nothing of Angular, so I would have been of no help
@BenjaminGruenbaum is quite knowledgeable (it seems) on Angular.
 
m59
Instead of adding the plugins to the page (out of order), I add them by index to an array which is bound to the position on the page where they belong. Angular auto-orders them
It's also boss because I have it all cached in my js controller for some epic manipulation if I think of a use =D
 
@Zirak omg... no no no... impossible
 
m59
@SomeKittens so far, I don't see any reason why my website will require a reload on page change. Talk about speed.
 
- off topic -
 
1:08 AM
there never needs to be a reason for a reload if you know javascript well enough
 
m59
yep.
That is, if you server all content via ajax, as I am.
 
@OliverSchöning
function check(others, me) {
	// assume 'others' is the other points you are checking for collision
	// 'me' is the point in reference
	var x2 = me.x,
		y2 = me.y,
		rad2 = me.size / 2; // assume circular object
	others.forEach(function (other) {
		if (other !== me) {
			var x1 = other.x,
				y1 = other.y,
				rad1 = other.size / 2;
			var d = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
			if (d < rad1 + rad2 ) {
				return true; // HIT
			}
		}
	});
	return false;
}
this is how I do it
 
yeh its what i do to.
 
also probably not the best
 
m59
The only thing I fear is that my initial page load will be slower than ideal once I get this on a live server as opposed to my local xampp.
right now, it's insanely fast, but it's local, so yeah...
 
1:09 AM
@rlemon Cheers :) Ill try to understand it
 
m59
I guess I should upload it really quick and see =D
 
@OliverSchöning basically get the center of your reference object, then loops all objects to check against their center + both objects radius
it isn't the best approach
 
@rlemon return in a forEach ?
 
if that is what you did, it is common - but not the best (fyi)
 
So many fatties on the train.
 
1:11 AM
@dievardump no, in the real function is just assigns to a var and I return it after
 
oh ok !
 
I modified it for the paste into here
 
@rlemon Neat :) But is that better then checking boxes? What if its an rectangle that isnt a cube
 
@OliverSchöning should still work I think
probably wrong
 
are u sure? because you just got "size" thats for a circle or a cube
In either case, I gotta learn Separating Axis Theorem
 
1:12 AM
I (tbh) ripped all of my collision detection from other people without learning the theory behind it. this one here I understand how it works.
blob detection I need to learn
 
haha ok
@rlemon this was my guide that finally made me less stupid: kilobolt.com/30/post/2012/12/…
 
bounding circles/spheres for basic checking, then do more accurate checking
 
@phenomnomnominal So from rlemons code: take radius from the longest side of the object for circle detection and then see what collides and then do more acurate?
 
I don't understand how stupid people stay alive
 
Saying that should make you question yourself
@phenomnomnominal are bounding circles faster then boxes?
 
1:17 AM
lol big dog scared of tiny kitten : youtube.com/watch?v=bkY0-AFxz38
 
@Dave Stop.. or I will go on a cute YT video marathon
 
im already lost on cat videos on youtube :( help me
 
There is no cure.. you just have to fall asleep at 4 am
 
5 hours ago, by Zirak
Sweaty sex. But it totally wasn't gay. And it changed your life and you cuddled afterwards. And it was very ungay.
LOL
 
@OliverSchöning sphrere-sphere is a nice balance of fast and accurate
 
1:24 AM
@Jhawinsss sad. man-on-man things are awesome.
 
@phenomnomnominal But doesnt it only work for "circular spheres"
I want to end up doing Half Life 1 Collision Detection. So rectangles for players and a world made of Triangles and Rectangles
Going to make a small game with what I learned first though, so it stays in the brains
@Dave Damn you.. now ive seen like 10 videos
 
m59
1:41 AM
My cms output site loaded in 2.24 seconds
then no more page loads
 
2 seconds seems slow
how much is on there
 
m59
It's angular and jquery
I'm using cdn, so that test is unfair
 
total time for me 200ms
altho i use my own made library
 
m59
holy mess nice
 
this is pre minify i should note
 
m59
1:43 AM
mine also
 
so i can probably shave some time off but 200ms is fine :P its the data total i more care about
 
m59
but, I should add that that was how long it took until all my js was done
 
oh 200 ms was everything for me like css html images etc
 
m59
I'm not sure how things actually consider page load
 
u can check on network tab for how long it all takes
in chrome
 
m59
1:47 AM
I don't have any server-side language to serve the page. It's just html for loading the js libraries which then grab the content
the html file is 92ms lol
Ohhh
I see what's slowing it down.
I loaded up the sample data with a ton of plugin info, so I'm loading 10 plugins, but only one of them is real, the other's are just bad requests which I just respond to by serving up an error message.
well, only one is real, but I use it 3 times. So I'm making a total of 14 bad requests via ajax. Those are sucking up some serious time.
So, it's actually under 500ms!! WOOT! @Dave
 
Anything under ~700 is acceptable (we puny humans can't tell)
 
user1125394
mosquitos are fucking bad creatures ,awaken by them
 
m59
SO is averaging 1.7
 
@SomeKittens Anything to back that up?
700ms seems like a significant amount of time
 
m59
is there any cms that actually loads up that fast??
 
1:57 AM
Also, you up for Awesomenauts soon?
 
m59
I just checked a wordpress page with no content, almost no markup, and a single image, and it took 800ms
 
@SomeKittens Ah. Have you read the entire thing? Would you recommend it?
Haha, yeah, WP is slow
 
Just as soon as I get mocha to run all the tests when I don't provide a specific one to run
@Amaan Yes. Steven Levy is a great tech writer, one of the few who can effectively write about the hacker world.
 
user1125394
a helloword php, in localhost is around 1s
 
2:01 AM
@cx What‽?!
 
m59
Average page load time across all 9 CMSs tested: 5.4 seconds
Top 10 percent fastest CMS sites: 0.7 seconds
^ web failz
 
@m59 Disgusting.
Some people just need to figure out SQL.
 
user1125394
@minitech nah jk, I'm tired :D
 
m59
I feel like my cms will end up in the 700ms area, but that's a one time page load and setup, then page changes are taken care via js. I think that's infinitely win.
 
My CMS is written in C. It’s in the 2ms area.
 
m59
2:05 AM
Nice. How versatile is it?
 
Not. I use it for a blog.
It’s got SSI.
And that’s it.
 
m59
Well, there's the difference lol.
 
YES. GOT IT.
 
@m59 What are you using your CMS for that rendering takes 700ms, though?
 
m59
In my mind, the same stuff any fully functional cms would have...
 
2:07 AM
Like…?
I just can’t see how that would take 700ms
You’d have to run dozens of queries.
 
m59
In the admin panel, you can add a page, type a location (/about-us), then the actual site template loads in the admin panel and you can select the template's content positions and add/edit/remove content which is served via plugins. If you want to add an article, select the article plugin and add your content. When you visit the page, it looks at the url, checks the db and pulls that page's content
The template loads and the content is filtered out into each position in the template
if there is any markup in the position, that is used as plugin wrap and the plugin is inserted at the designated place in it (attribute "plugin")
 
So are we talking about the admin panel that takes 700ms? Or the actual user-facing page?
 
m59
I was just giving you the full flow
 
Admin panel in PHP taking 700ms is not unreasonable
 
m59
On the actual site, I have angular and jquery, I was also using twitter bootstrap on that test
700ms is the site
 
2:11 AM
But a user-facing page probably shouldn’t, something is going wrong if that happens.
How are you timing that?
 
m59
it's 500ms now, but will probably be longer when I'm done
dude, angular is 90k
 
Is it possible to connect your domain to your local server?
 
Sort of.
 
Edit %WINDIR%\system32\drivers\etc\hosts and add a yourdomain.com 127.0.0.1 entry.
 
m59
2:12 AM
^ I think that's super not secure
but I dunno.
 
@m59 It’s completely secure.
Only changes it for your own computer.
 
m59
Ohhh
 
@Amaan whenever you're ready
 
@SomeKittens Now's good
 
It has to be possible, since it was done with Facemash.
 
m59
2:15 AM
If there is a way to get this amount of dynamic functionality in less than 700ms-ish, I've never seen or heard of a cms doing it.
 
I think he means to point his actual domain to his computer
Sites like DynDNS make it easier to do that if you have a dynamic IP
Having a static IP would make it even easier to host your own domain
 
I honestly don't remember the difference between static and dynamic ip.
 
Do you mean like this? 70.66.146.121:5000
(That’s my computer)
 
dose anyone know TITANIUM SDK
 
Speaking of which, @m59: how fast does that load for you?
(Or not fast)
 
2:27 AM
@AshKetchum
!!define Static
lookup the definitions of static and dynamic, you'll have your answer
 
2:42 AM
Okay, I’m killing it now
 
m59
@minitech does what load?
 
… restarting it now.
 
m59
ohh lol
 
m59
my bad, was afk
946ms
about that consistently
 
2:45 AM
Pfft.
I have 23Kb/s upload. More or less.
 
m59
about to take that down
it's going to go slow because of the bad requests which cause additional requests for 404.html
 
why are you calling JS in your body?
 
m59
take all that away and it's under 400ms
@Dave it makes no difference in this case, but that is considered a best practice because it allows the content above it to load first (but I have no content, lol)
I might put it back the head. I dunno. It just doesn't matter either way, I think.
 
bottom of the body
 
m59
@phenomnomnominal look at my page, lol. There's nothing the body anyway =D
 
2:49 AM
it does seem more logical that it should at the bottom now that i think about it
 
m59
btw, ignore the silly content haha
 
providing you wait for the page to fully load to do any thing
 
@m59 It doesn’t load for me?
Just a blank page.
 
m59
@minitech ahaha, no js
of course not =D
 
I turned JS on and now it’s a directory index
 
m59
2:53 AM
did you JUST now look?
 
Yes
 
m59
oh
 
Now it’s a 404
Fun times
 
m59
too late
Deleted it, lol.
I might have it really rolling in a week and I'll upload it again to test. Not worth worrying about right now.
I have to figure out how I want to do menu's now.
 

« first day (1008 days earlier)      last day (3955 days later) »