« first day (1011 days earlier)      last day (3920 days later) » 

10:00 PM
@SomeKittens
since my deisgner is sleeping i had nothing as designs so iput up iFrames there :->
from Codepens
wish my designer was alive :-( they could use proper ratios and positions :-/
 
@Darkyen not bad, but yeah, proper ratios would be nice.
 
@Darkyen seems like you have a lot of experience with pixel manipulation, right :?
 
@Jeremy not really
loktar would be superior much superior
 
@Loktar any ideas ^
 
@SomeKittens am going na bed.
 
10:02 PM
@Jeremy seems to work ok
 
@rlemon Not when the canvas is larger than 260x260
 
because of the resolution of the sweep?
 
@Jeremy getImageData takes a while on larger canvases
What is this for? Do you need a high resolution portion of the red?
 
what should I use then?
 
if not you could always search every 2 pixels or so
I gotta go help with groceries
 
10:05 PM
I search on every 4/5 unless I need super hi res
but every pixel isn't really possible
 
I'm actually trying to create the following: user has red dot on a sheet of paper and when they move the paper, they are drawing a picture on the canvas with strokes that follow the red dot... red dot moves back, strokes get smaller. red dot moves forward, strokes get larger. red dot disappears, stroke ends.
 
0
Q: Pass parameters from html page to start() function in unity3D webplayer application

TharinduI want to pass a parameter from web browser to Unity3D web player as soon as it is loaded. I know that, as soon as the web-player is loaded, the start() function is execute inside web-player. So I want to pass parameter from web browser to this start() function.

 
so you need to detect at like 30fps say, render at 60, i'm sure you could do that
in your x/y loops increment by a larger value.
start with 2, move up as you come to a happy resolution / performance medium
 
This hangs: eg.jfein.net/draw
 
ok let me see what I can do
(I was going to make a game...)
 
10:09 PM
This project is cooler anyways... and it does seem like your kind of project (I was just doing it to have fun... but this isn't fun)
 
enjoy watching this while I rip many parts of its code for this
 
@rlemon Are you going to do the whole thing or just red detection?
 
!!youtube Nero - My Eyes
 
@rlemon ^ My song to you while you stream
 
10:13 PM
@Jeremy a simple red detection
I always comment ;)
 
@rlemon aw. That leaves circle detection and drawing up to me =/
 
yes it does.
fun times ;)
 
i.imgur.com/7NyudNP.gif // not even once.
 
@Datsik hey! format your code
expected more from a mod
 
wat
 
10:16 PM
@Jeremy jsfiddle.net/rlemon/jWQZP/11/show you can look at this as well in the meantime
the outcome and the code
pretty much I started playing with motion detection and loktar tough me a shit load about image manipulation for canvas.
 
@rlemon "failed"
 
@Shmiddty yea, needs a webcam
 
ah, I see
 
user1596138
@rlemon I thought this was yours? codepen.io/loktar00/pen/zEhDB
 
nono
all him
 
10:17 PM
@rlemon okay, did you ever find a cool pattern for eg.jfein.net/rlemon/blob.html
 
i do like it tho
 
user1596138
 
@Jhawinsss very nice
I like yours
I also appreciate you hosted the mp3 yourself as well :)
 
user1596138
I don't have anything on codepen :P
 
@rlemon hehe, is it a big file?
 
user1596138
10:19 PM
@rlemon Who is this to? Haha
 
Probably me because I downloaded an mp3 in hopes that it'd load faster =/
 
@Jeremy not really. but it would be taxing if a lot of people linked back to it
 
meh, I'll get rid of it
 
the demo he posted chat.stackoverflow.com/transcript/message/10796738#10796738 has an mp3 playing. some people when 'forking' a demo just use the existing permalink.
it hasn't added up yet, and thankfully the video demos cannot be cross compat.
 
user1596138
Ah. Yeah, that owuld be annoying.
 
10:21 PM
they are big. 60meg.
 
user1596138
Nothing is happening....
 
The cam isn't initializing
 
use something red
 
?
 
10:25 PM
er wait lol
one sec
try it again
 
DAM YOU LOKTAR I THOUGHT YOU WERE DOING GROCERIES!
 
it auto does it btw
doesnt require a click
 
:( my moment of glory is over :(
(was only 2/3rds done)
 
eh mine just shows the red-ist object
 
It's not working that well
 
10:27 PM
by not well what do you mean?
detection, or speed
 
so it only highlights the pixel that beats the red-ist pixel so far?
 
because I thought your issue was speed
yeah
that canvas is 600x600 btw
 
Oh, so if there's one extremely red pixel, other red things won't be highlighted?
 
yeah
 
@Jeremy you just need to adjust a threshold
 
10:28 PM
I just updated again btw
yeah my threshold is auto set
so like it takes the reddist object
and filters all the others out
 
reddest*
 
haha fucking reddit :p
 
that was like 5 times, I couldn't take it.
 
better way might be to use a moving avg
 
10:32 PM
I just set the threshold to 100 in the example
 
Alright, thanks
 
yeah np, thing is you dont even need the other colors really
I mean if you're only detecting red
also I just set the alpha val to off or on based on the red threshold
less modifications required
 
@JoshuaRowe 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.
 
Ah, fuck it ... 'nuff work for today.
 
should put a slider on it for a better example
anyway a moving avg would be best avg all the red pixels
find the area with the highest val
and set a threshold based on that like -10 + 10 of the value
 
10:36 PM
@OctavianDamiean yeah, man
 
hmm actually you do need green+blue
because otherwise youll detect whites
 
yeah
 
i'm late. but I thought you guys gave up so I went and made a sandwich.
 
you don't have to use the sandwich execuse again, @rlemon
 
no really. it's 6:41pm here I was hungry.
 
10:41 PM
what kind of sandwich
 
cheese :(
 
toasted ?
 
tomorrow of grocery day.
no, microwaved.
i'm lazy
 
I just want to get into the mood for some dirty food
yeah thats good, tell me more, moar
 
I would have made a grilled cheese on the sandwich maker but it hasn't been used in a long time and looked like it needed a cleaning.
45 secs ago, by rlemon
i'm lazy
 
10:43 PM
:(
 
tinker.io/43c59/1 @Loktar tl;dr is this what you were trying to show him with puttin a limit on it
look for the only comment
 
kind of
 
$('.ui-loader').css('display', 'none') all over the place. -_-
 
1 hour ago, by kaser
omg, stahp. I'm leaving. u guys are so mean.
oh my god, what did i miss? ;_;
 
just another troll
 
10:47 PM
rudest bastards striked again
 
hehe
wow, i've been on the phone for 1.5 hours right now
 
We should all get "Rude Bastard" tattoos. (except not because that's a stupid idea).
 
my usual phone calls are about 30 seconds
 
if that isn't a girl, you're claiming full professional gay status
 
dodged a bullet then
 
10:48 PM
because it's your mom?
 
:D
 
yeah.
2.9 my mom
 
I like the Rude Bastard tattoo. It should have an image, like.. a smiling face with a stomach which is torturing a children or something
 
goddammit, I'm too tired to think of a good stupid comment now :/
we could just use Zirak's avatar
 
yea captain obvious, we could do that !
 
10:51 PM
:D
stop being so rude
 
OMG OMG .. a new picture from NASA, Curiosity send a new PICTURE.. I CAN'T TAKE THE WAITING TIME... OMG OMG OMG...
ITS COMING
 
IT IS COMING........
CLOSER...
ALMOST THERE
and THEN:
wow...
I'm so excited
 
dust and stones...
 
its always the same with me, its a cycle thing
I hope for the snapshot of the alien I guess
getting disappointed every time!
 
10:55 PM
curiosity... you sunk jAndy's battleship AGAIN
 
Battleship wasn't quite as bad as I thought it would be.
 
two questions before I test this and feel stupid. a) will this work (assuming a is the array, b is the sort condition to put the removed items at the end, and c is the 'filter' callback to test against those conditions) and b) do you think it will be faster than the native approach? :/
function filter2(a,b,c) {
	a.sort(b);
	while(c(a[a.length-1])) {
		a.pop();
	}
	return a;
}
 
I would be delighted about some... unusual anything there. I'd also accept a flood light or so, film crew making a mistake tho
@rlemon there are two b's I can't work like that
 
lol
 
even if they are out of context, its too confusing
 
10:57 PM
@jAndy well, at least there's not a d in there
 
@rlemon a.slice(-1)
@rlemon what's the point of the sort?
 
Another chat bot, this time in Ruby
 
oh I loved to code IRC bots when I was young
did it the good ol' fashion way in C
all my proud was a reporting-bot, which streamed Half-life / Counter-Strike games into IRC channels
 
except ignore that i screwed up the last check there.
 
!!workout or hangout
 
11:03 PM
@jAndy workout
 
!alive
 
how does sorting help?
oh I see
without sort, it's always O(n)
I think the sort is worse though
 
@rlemon y u no use Array.prototype.filter
 
@jAndy where the hell are you?
 
sorts are like O(n^2) right?
 
11:05 PM
@GNi33 I'm used to workout late :(
I'm going to the office around noon :(
I'm lost :(
Jaywalker
 
well, I should actially go to sleep too, planning to go for a run before work tomorrow, but I'm not even a bit tired :/
 
@jAndy because i'm testing
if it's worth it i'll clean it up
awww shit
fucekd up the perf
 
if you really want to improve performance, you need to get git rid of any functional thing within the regular loops
 
@rlemon I don't think it's worth it.
 
otherwise its wasted time
lol @ git
 
11:08 PM
there we go
 
@jAndy Torvaldian slip.
 
@jAndy this is a small circumvent to not wanting to use a proper particle pool
I need to be able to quickly filter an array of objects.
 
@rlemon remember that sort is mutative.
and so is pop
 
ahh I missread the code, you're not calling the function per iteration
you're good then
 
11:10 PM
but then again.. yes you do
 
@jAndy advice?
function filter2(a,b,c) {
    a = a.slice(0).sort(b);
    while(c(a[a.length-1])) {
            a.pop();
    }
    return a;
}
 
@rlemon disappear
 
I tried.
 
.. LOL.. that was my favourite line of Die Hard 4.0
 
now I have to hide behind a computer for human interaction.
 
11:12 PM
the guy also asked the genius hacker .. "advice?"
was a cool scene tho
 
Die Hard kicked ass.
 
well, can't you just remove the callback call and put everything right into the call
meaning, get rid of the "c" callback
 
is Array.prototype.filter just horribly optimized?
 
so hard code it for the application?
@Shmiddty yes
@jAndy seems almost... logical...
:(
 
pretty much yes, function invocation is THE huge bottleneck there
but ... you know that we are talking about micro here
 
11:14 PM
dealing with 4K+ particles at 60fps it makes a difference.
 
@rlemon weird. Doing a sort should always be slower than a filter.
 
you might be interested
also read jAndy's comments above.
 
its weird that .filter is so much slower
 
ES5 array stuff is pretty slow atm
it is sexy, but once you use it in a performance critical environment it becomes a huge bottleneck.
 
@rlemon filter is much faster in FF
 
11:18 PM
yea FF out performs Chrome in most array stuff.
it is my guilty pleasure that I only do demos for Chrome
 
@rlemon well... not faster than chrome
just faster than filter2
 
alright god dangit @Jeremy somethinghitme.com/pprojects/cam
you can change green/blue threshold to better detect red
if(red >= this.avgRed*2 && green < 120 && blue < 120) {
 
LOL Loktar you were still working on that?
 
yeah I wanted it to detect super red
 
I got to thinking how to cheat out of making a particle pool and still have descent FPS
 
11:20 PM
What'd you come up with?
 
@Loktar haha, okay thanks.
 
its still not perfect
 
but is fast idk
@rlemon idk how that will save needing a pool
 
@jAndy suggest here the bottleneck is the c callback. if I hard code it per application it shouldn't be too bad?
 
11:22 PM
at least, you can't optimize that code anymore then
 
I pop/slice all the time. Memory and GC are usually what cause needing a pool
 
except tick-wise
 
@Loktar right now according to the chrome profiler the big bottleneck is gc. using the filter function to filter the array was slowing me down
 
^ its pretty standard gamedev stuff
but yeah maybe your issue is something different
 
:is not a game dev... also has the crushing habbit of trying every half baked idea I get thinking it might work so fuck it, i'll innovate:
 
11:24 PM
anyone whos made any game is a game dev :P
just like anyone whos made a website is a web developer
 
I've only made demos ;) and snake :P
 
obv just some people have more weight than others
snake counts
 
cool :P
adds to resume
 
so many people call themselves game devs now
no reason not to yourself honestly
 
11:24 PM
this is always horrifying to see again
the tragedy about .bind
 
yea but I try to be an honest individual (Canadian and all) :P
 
well the definition is someone whos done game development, so snake counts
 
home time
 
I can never be a gamedev :( I can't even proper resize a transformed box around :(
 
now to eat dinner and fix up me blog
 
11:26 PM
\o
 
ohh I know it counts. I'm just saying. I left "Software Engineer" off my title because I know I am not really an Engineer by all definitions. in this case maybe, but when I get asked what I made and I say "Snake" :P
 
see ya @Shmiddty
 
@Shmiddty o/
how in the hell did he take tab precedence ?
 
did someone summon me
 
haha
 
11:28 PM
yea, @necrolemon
 
he is Suave...
I give him that.
 
I always take precedence
I'll be under my heatlamp
 
lemons don't like heat lamps :/
i'll stay away.
 
lemons especially don't like apples, grrrr
I lost like 8 lemons just because a stupid apple rolled next to them
decayed :(
 
I'll have a lemon martini. Shaken. Not stirred.
 
11:31 PM
that sounds horrible.
 
keeps me suave under my heatlamp
 
you are drinking my brethren... you must die!
 
brethren.. never heard that before, y u no use brothers
 
call in ElegantEagle if they be about
 
it is old english, sounds better.
@jAndy it's like saying "Thou hast accosted me fine sir!"
 
11:35 PM
sounds weird
 
I can imagine it would to people who didn't learn english as a first language.
but this is how we used to talk
 
@Charlie74 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.
 
and it sounds german'ish too
hast especially
in that context
 
English has some roots in german
as well as a number of other languages
read shakespeare
 
oh gosh, I did, but only partially and a very long time ago
 
11:39 PM
 
If thou speak'st false,
Upon the next tree shalt thou hang alive,
Till famine cling thee: if thy speech be sooth,
I care not if thou dost for me as much.
I pull in resolution, and begin
To doubt the equivocation of the fiend
That lies like truth: 'Fear not, till Birnam wood
Do come to Dunsinane:' and now a wood
Comes toward Dunsinane. Arm, arm, and out!
If this which he avouches does appear,
There is nor flying hence nor tarrying here.
I gin to be aweary of the sun,
And wish the estate o' the world were now undone.
Macbeth
@jAndy see what i'm saying
 
yea I'm remembering
 
I love the page design too
MIT shouldn't be allowed to host such crap code
 
user1596138
11:43 PM
I don't like gravitar. There is no sense of privacy. I sign up for anything now days and whatever I'm signing up for automatically steals my gravitar by matching my email. Without my consent. If I want you to have my gravitar I'll fucking sign into gravitar!
 
> Killing a baby is not a valid literary device.
 
@Loktar That was an interesting read. Never knew consoles had problems like that
 
!!/Time
 
@monners That didn't make much sense. Use the help command to learn more.
 
user1596138
@SomeKittens Interesting so far... Yet I see ZedShaw's point in the quoted twitter convo.
 
11:47 PM
!!> Time()
 
@SomeKittens "ReferenceError: Time is not defined"
@monners That didn't make much sense. Use the help command to learn more.
 
Morning/Evening peeps
 
Morning
 
Morning
Evening
can't decide.. 1.52am
 
that would be Morning
 
11:55 PM
@rlemon Haha, I always assume that! But I'm not sure I can think of a game to play. My timings are really all over the place these days
@GNi33 Sounds decent!
 
user1596138
I wondered why I was hearing pings every time someone said anything.
Apparently there is a setting for that and apparently I turned it on. It should be named "annoy the fuck out of me"
 
@SomeKittens Nice
@Jhawinsss Where is that setting?
Visible rooms?
 
user1596138
Yup.
 
Didn't do that for me
Guess you're just unlucky.
 
user1596138
You don't hear a ping from every message with it on?
 
11:59 PM
Nope
 

« first day (1011 days earlier)      last day (3920 days later) »