« first day (1786 days earlier)      last day (3384 days later) » 

20:00
you're doing what you need (bracket notation for setting a dynamic property) correctly in the very example you posted
@SomeKittens Did you mean prop[i] ?
So, my entry for js13k is out!
Mind tweeting, liking on fb or whatever g+ calls it? XD
http://js13kgames.com/entries/flappy-box
Cause that only returns the value of that key
I want the key name there
@towc hey how are you
... i?
20:02
@towc Nice, thought you were going to monetise it :p
@catgocat hi dude! How's life?
@Callum having trouble with adSense ;)
@towc everything's great. I'm glad you finished the game :)
@SomeKittens Can you just rewrite the line 3 so that I could understand what I was doing wrong ?
and even if I ended up planning that, the time was running out and I have no inspiration whatsoever, but I really wanted that free shirt XD
@towc tweeted. I don't use facebook/g+ sorry :(
@AwalGarg thanks bro! Do you plan on doing anything? There's still a week left
@SomeKittens ouch
@towc nope.
canvas is not my cup of tea
how's college going?
@SomeKittens haha. oh come on now.
20:05
@towc it's a bit of festive season here, so good :D
10 days till classes begin
nooooooo..
@towc Ah, non-sensical documentation?
@catgocat haven't you already started?
@AwalGarg nice :D
day 16
I haven't had classes since june 15th
uh oh
Think Mongo might be the best choice for this project
so far it's been JSON flatfiles
20:07
summer holidays, june 15th - september 16th to 21st
@towc Shit, just realised I lost my bastardised version in my upgrade to Linux :p
@Callum I applied, apparently someone looked at my site and said this:
> Thank you for your interest in Google AdSense. Unfortunately, after reviewing your application, we're unable to accept you into AdSense at this time.
We did not approve your application for the reasons listed below.
Insufficient content: To be approved for AdSense and show relevant ads on your site, your pages need to have enough text on them for our specialists to review and for our crawler to be able to determine what your pages are about.

To resolve this issue, please work through the following suggestions:
@SomeKittens have you tried something like waterline?
over just whatever DB
which means that basically they're not just going to let me put an ad on a game
@ʞɔᴉN I tend to stay away from ORMs
20:09
why?
@AwalGarg btw, for the tweet to count you need to click the tweet button on the link :P
they complicate things
never used one myself, all my projects are rather bare-bones
ah
@towc hrm?
@towc Probably a bot, did you specify that it was for a game? And I've tweeted
20:10
they didn't let me add aditional notes
What arses.
bloody wankers
Good night good people! Off to bed.
I spend three days in south-west Scotland and sound like a Wegie :(
@AwalGarg @Callum strange, I'm not getting the ping notification from twitter. I do get that the js13k site may not be refreshing very often...
but I didn't see the numbers go up nor the notification, are you sure you've done it right?
20:12
@towc I clicked the "Tweet" button, then another "Tweet" button.
^ yes same
Y'know, the way you Tweet from pre-made tweets?
@SomeKittens please remember that postgresql has json storage
@Callum alright, but just be latency. Thanks guys!
@FlorianMargaine how could I forget!
/me flagellates myself
20:13
@Callum yeah yeah. Thing is that in the tweet there's supposed to be "@MateiCopot" which means it should ping me every time it's tweeted
Yup, there's that.
> Check out Flappy Box - 13kb entry by @MateiCopot for the @js13kGames compo! js13kgames.com/entries/flappy-box
@towc:
Check out Flappy Box - 13kb entry by @MateiCopot for the @js13kGames compo! http://js13kgames.com/entries/flappy-box/
@towc I tweeted as well . twitter.com/abhiii5459 . But your tweet count just isn't incrementing
well, thanks guys! I trust you. Might just be latency
Latency? No. I'd check the code o.O
20:16
you can return the favor by preaching my religion. It is called "never-come-to-india-nism"
@AwalGarg why not? XD
@AwalGarg Actually, our religion says we welcome guests :P But I sense yourr religion might be totally different :D
@SomeKittens I got it. I have to do element.style[i] :)
Oh! I just got the notification from awal. Yeah it should be working ;)
@ZahidSaeed yes, that's the answer
20:17
There isn't space here. I am not able to grab a seat in metros :(
@SomeKittens Well thanks. :)
you were SO CLOSE
and I didn't want to just give it away
OCD alert. I can't help but notice that the Tweet count still isn't going up :(
@AwalGarg ouch, good luck with that
Increased to 5 for me
20:19
Let me clear my browser cache XD
Still nothing -_-
Okay, now it's 4 O.O
Breathes
EVERYONE PANIC
vi is better than emacs!
Fun prank to try: install windows on a friend's PC!
a fresh install would be even funnier teehee
That's just kicking yourself in the crotch O.O
20:22
@AwalGarg that's so cruel! I don't think you'll be friends anymore
@AwalGarg Last time I installed Windows it took me 4+ hours
waaaay too long for a prank
Maybe kill him in the meantime
Just for fun
that'll go a lot quicker
Ever wondered what will happen if all of the world's internet traffic was routed through your PC for 20 seconds?
That's how installing Windows feels.
Atom catches on fire
user406009
20:23
@AwalGarg ? That makes no sense?
Maybe 2 hours
@Lalaland which part
user406009
Windows installations never seem to spin up the fan that much for me.
user406009
Just a lot of hard drive movement.
pft, because programmers still use PCs, right
wait, do they?
20:25
Atom catching on fire O.O That's deep...on a molecular level
250 concurrent requests hit 2.4seconds on average with ab
@towc It's hard to escape a PC when programming.
@Callum laptop much?
same bucket as PC
@towc All laptops are PCs :p
20:29
for me PCs are desktops
yeah, the term is interchangeable
That's a DC
XD
uhm... really?
PC -> Personal Computer
@towc He's talking bollocks :p
I'm an idiot
20:30
2 tru
@Callum fun thing: my chemistry teacher is called Balloch and he's scottish :P
pronounced bollock
( I expected an immediate vamp of stars btw. Thanks guys :D )
My stars shall stay safely in my pocket
Another fun Scottish pronunciation -> Menzies is pronounced "Ming-is"
and Callum is pronounced "wanker"
LAUGH AT MY JOKE
hahah?
20:34
hah
ha..
still, vi is better than emacs
user406009
Depends on the task.
user406009
Emacs does have some cool shit for editing Lisp-like programming languages.
20:38
no, vi is better on that aswell
and I dare you disagree, there's no way emacs is better
any three.js experts in here?
@towc these types of discussions make me feel like watching on Discovery two caveman arguing over which stone will be better for bludgeoning the third one.
@bushdiver depends on the level of expertise you need. Just ask your question
user406009
@tereško The heavy stone. NEXT
@tereško The one with the pointiest bit, more pressure.
20:39
0
Q: How to make an interactive video progress bar in three.js?

bushdiverI can't think of a good way to make an interactive video progress bar using three.js.. and I can't find an example of it being done anywhere. I can draw the progress of the video pretty well (a plane with a canvas texture ) but selecting a new progress point with a raycast is what I can't figure...

@tereško I just want to argue with someone about something I don't know anything about :/
user406009
@Callum I think weight is more important.
I've never used vi nor emacs
@Lalaland Mass + pointy bit = best stone
@bushdiver just do it in 2d canvas
20:41
@towc you use those at 4AM, when trying to revive a mission-critical server while you PM is panicking at the other end of phone
or just use 2 rectangles for the progress bar, and calculate on the screen the position of the click in relation to the progress bar
@tereško is that a joke? I don't get it
no, it's not a joke
@tereško Top tip: nano
top tip: whatever editor, as along as it can open httpd.conf
@towc that's kinda what I'm attempting right now but the math is getting a little crazy. wanted to make sure this is the best way before spending a lot more time on it..
20:44
@bushdiver the maths are pretty simple actually
s/are/is/
do you know where on the screen does the bar begin? Do you know where it ends? If so they're pretty straight forward
@Callum but it's maths... right? As in plural
@towc Mhm. Americans are wrong.
@Callum u wot m8
@ʞɔᴉN You're fockin wrong m8
20:48
How can this be?
@towc it's hard to say.. the position.x is at 0 but the plane width is set to 8.. when i hit the bar with a raycaster it ranges from world space from -3x to 2x
I'm never wrong
Sorry to disturb again :P
@ZahidSaeed that is wrong. don't even ask. that is wrong.
@bushdiver so the bar changes position in 3d?
20:49
:P
it should still be pretty easy
in this case you can treat 3d as just scaling, which doesn't change the maths
@towc no the bar is static, i meant when I use rays that's what the range is ( I have to comput that into video progress percentage.. )
@towc i don't see how this is easy unless I'm completely missing something :(
var prop = ( mouse.x - bar.x ) / bar.width; // this goes from 0 to 1
@bushdiver ^
im setting up a jsfiddle real quick, but looking for video that will work with crossOrigin="anonymous" tag set
holy geez, jsfiddle only supports three.js r54. thats ancient
Guys I have a question. I have a 5 List items
When you hover any one of them
A bar moves towards that List item
When the cursor is removed from the list item
The bar waits for 2 seconds
And then go backs to the active element
But the problem is, if the user hovers multiple list items
like spamming
Then clearTimeout() is not working on the other siblings
@ZahidSaeed you've got to attach the script you're clearing to the elements themselves obviously ( and iterate through the list when you do the timeout)
what would you do if you needed to store a user's signup information on the clientside? how would you do it? (ignoring security)
@MarkusHallcyon 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.
@MarkusHallcyon Local storage or cookies
Although a user will usually click "Remember password" if they want their details saved
@Callum yeah im using local storage, im just wondering about the exact code, how would you save that?, in one object and then push it to an array for instance or some other way?
21:15
@MarkusHallcyon store a cookie with session data and transmit it to the server for verification when they access your site again
no need to store login information at all
you shoudn't store a user's login info in localStorage
that's bizarre
> ignoring security
why would you ignore security?
it's not just about security, it's really not the way to do it
doesn't make sense
@ʞɔᴉN It's a way that one could do it, though.
21:16
@MarkusHallcyon dozens of tutorials on that
just use jquery/angular/framework
@Callum so in an object do you think would be best?
@Callum you could do it, but how much work would you be saving? really none at all
@MarkusHallcyon Same way you'd store anything in Local storage :)
you can only store strings in localStorage; you'll have to convert any object to JSON before you do so
otherwise you'll get [object Object]
21:21
@Callum Is it possible to take a string value inputted by a user and use it as the variable name of the object created for that user and then store all other information about the user in that object?
@MarkusHallcyon Try it, I'm no Dracula m9.
21:35
@SomeKittens Should I say I was a filthy college dropout on my Hired profile?
@ʞɔᴉN where'd you drop out from? How long were you there? Major?
should I list a school at all? i might just make something up #winning
erm
don't lie, great way to get fired
community college :)
should I even bother to list this
but it's a great way to get Hired as well
Why did you drop out? Could be used to your advantage
21:37
I haven't yet but I would have few qualms about leaving all that crap behind me
this man was not meant for the academic world
soooo
hermes should work
cc @AwalGarg
I have to try it with a real usb stick tho
but it works with a virtual block device... no reason it won't work with an usb stick
ugh
now I have to find an usb stick to test
@FlorianMargaine they're never around when you need them
I just use the Claude, now. USbs are lost too easily
the what now?
22:28
The Claude, my home made cloud.
Like Drive, or OneThing.
hard to install Ubuntu from that
I usually install from CDs, anyway :p
I don't have a optical drive on any of my devices
user406009
You probably have a cd player in your car stereo.
My laptop doesn't recognise USBs as UEFI devices, anyway. Makes using them to install OSes rather difficult
22:43
Technically, yes. However, the model year I have has a known issue with the stereo mobo that causes short circuits
so the stereo doesn't work
Well you better get some wire and lengthen them, then :P
23:32
23:44
Thank you for using my full title, for once
also what are you doing in the lowly jabbascript room, hanging out with us peasants?

« first day (1786 days earlier)      last day (3384 days later) »