« first day (1110 days earlier)      last day (4063 days later) » 

00:00
but, it can be 20% cooler if mousemove....
TAKE THAT!
and with such speed and grace, OP DELIVERS!
SEXY!
It's like sparklers on 4th of July, anytime I want!
@rlemon nice work
It works well on my old laptop too
good now give me some codepen love :P
@Shea recycle everything ;) I'm finally getting the hang of the concept.
@rlemon yesterday you were asking about the performance of apply for the matrix transforms, vs parameters, did you find an answer?
00:06
almost no difference
I still used params because it is more clear
but if you look in the source I do leave this for the reader.
// context.transform.apply(context, this.m); // test if this hurts performance
also reddit love
(i'm a whore for the fake internet love)
i'm having so much fun with this
:)
protip: turn up the count for the high limit of on screen particles.
bare in mind, the initial animation uses them all. so if that is laggy, that is the high limit for you
It's... beautiful!
I like your comment on 165. I was thinking about turning off gravity, as well
well it would otherwise make sense to do it in the update function
but because I plan on re-using as much of that as possible. I applied it outside
and gravity is also, if you noticed, responsive (however slightly) to the size of the object.
remember we are dealing with scraps of paper ;)
Physics would disagree with that... but this isn't real life
you could call it "air resistance" kinda
but gravity does not care about size/mass
well yea, but also, pedant.
00:20
I know, I know. It's cool!
Actually... I just changed the gravity line to use a - instead of a plus, and I like the effect
cont[i].vy += .1 - (cont[i].s/1100)
ahh man! I was just coming in from my smoke to do that!
Oops lol
lol
however I would have done it slightly different
each item is still at a fixed index in the array
I "feel" like some of the elliptical confetti are "too big"
00:25
every second item gets a circ
@whitehat101 because he uses diameter as radius
;)
That sounds good, because sometimes there's too many circles
Oh, that's probably why, actually
Also, all the Easter colors? It's Halloween, dontcha know.
@Baklap4 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.
Need more bats and spiders
Add cursor: crosshair to the canvas style
00:29
@rlemon Do you think this is appropriate? this[this.sh](context);
that is how I would do it
err wait
forgot to pass i
I see a difference, I like it
brb dinner
jsfiddle.net/whitehat101/Nwp66/14 - crosshair + physics-like air resistance
now I'll take my physics and my pendantic self and leave
tips hat
@whitehat101 nice
00:39
lol
you only added a crosshair
I see no change in the gravity code ;)
and the +/-
in your world larger things go down, in mine larger things stay up
I was trying to see a difference, but I noticed them falling and swaying slower
Or maybe swaying a little more
mumbles surface area velocity squared
cont[i].vy += .13 - (cont[i].s/1100); // gravity and wind resistance is applied here. I plan on using this without gravity in another demo.
happy?
s/is/are
because I know you'll bitch about that as well
^_^
Thanks for your patience @rlemon
I appreciate the artwork you have created here
00:46
thanks, fiddle is here: jsfiddle.net/rlemon/Nwp66/15 if you want to continue playing
your cross hair can go f itself ;)
Harsh but fair
function KeycheckPassword(e)
{
    var _dom = 0;
    _dom=document.all?3:(document.getElementById?1:(document.layers?2:0));
    if(document.all) e=window.event; // for IE
    var ch='';
    var KeyID = '';
    if(_dom==2){                     // for NN4
        if(e.which>0) ch='('+String.fromCharCode(e.which)+')';
        KeyID=e.which;
    }
    else
    {
        if(_dom==3){                   // for IE
            KeyID = (window.event) ? event.keyCode : e.which;
        }
        else {                       // for Mozilla
01:02
@rlemon I get the impression the author isn't particularly good at writing JS
@monners That would be fact
What's all this about?
var res = await AjaxReq.fetch('/long-request')
 // because you are waiting for a result, here the runtime would
  // schedule event handling, DOM redraws and whatever else it can
  // squeeze in while you await
 res.name // this will be only executed once res is available
Is he expecting the response to be waiting before you even want it?
hahaha yea I liked that part too
well he did get one thing almost right.
it isn't the js community that is producing the horrible code.
it is everyone else that thinks they can write production js
(for the record, I don't believe without some serious code review that my js code is production ready)
Isn't that true for anyone's anything code? ha
There's always human error...
@twiz not in ruby, noo
the code is 5 star quality
01:14
haha
WHATUP
@RyanKinal that ^
(i'm so proud of myself. f u all if you don't think it's cool)
@rlemon No, that's fucking sweet
Also, I may have gone out for drinks with coworkers after work
01:29
did you click and drag?! did you?! did you?!
thats ok
I was mostly drinking while writing it!
No! I have not dragged.
OMH
OMG
... not drunk. Okay, totally drunk.
yea dragging makes it SOOOO much better
:D
Seriously
That's awesome
Has the tumble equation changed since 3:00 or so?
I don't see the hard edges I used to
the only thing I changed was the rotation speed modifier
it now stops decreasing before they stop rotating
It seems to have fixed a lot
I might have also fucked with the rotation
FUCK THAT GUY
can't quite remember what epiphany came when
@rlemon Yeah, seems reasonable. In any case, it's a good effect.
01:39
thanks :)
I'm quite happy with it
I researched how to do the tumble for what seemed like ever. couldn't come up with anything, so fubbed it until it worked.
Take that with a grain of salt... I'm pretty happily fucked up right now.
@rlemon It seems to have worked
well look tomorrow and report back :P
@RyanKinal What was your credit card number again? I forgot...
@monners Shit. Left it at the bar. I'll tell you later.
01:41
123456fuckyouyouratbastard98214 and the security code is 4fu
@rlemon I knew I liked you
@rlemon I've already got yours, but thanks
Seriously, though... from what I've read (even while drunk) FUCK THAT GUY. He doesn't know what he's talking about.
inorite
> Null everywhere
wtf do you excpect?
01:43
The comments are funny
Reading them now
@RyanKinal Doesn't strict mode solve this?
> Trying to use a constant with a wrong name by mistake? ... Nothing will happen.
Probably. I'm too fucked up to care.
I thought this would be a good thing for production
All I know is I <3 JS
01:48
Some people just prefer to let their iDEs do all the work for them.
Yeah, fuck that
IDEs are not something I care about
you know what I care about?
@RyanKinal Preach it brother!
CONFETTI!
Give me a text editor and a browser (or Node) and I'm cool
@rlemon Yes!
01:51
next step.... pseudo 3d.
so scaling.
just need to add a z variable
Have you codepen'd it yet?
Because I feel as though it's worthy, pseudo-3d or not
> you sir, have a very limited knowledge of programming. please educate yourself on the topics you intend to post biased information about and learn to use appropriate programming languages for appropriate tasks.
^ Brilliant
Say you get called in to work on a register at some local business, because "the computer won't turn on, and there is nothing you can do about it." So you look at it, and realize right away that monitor is burned out, and it needs a new screen.
You explain to the client that the same thing has happened, that has happened a few months ago on a different register. So he tells you to go in the attic and fish out the old burned out monitor (that should have been thrown away), to try to use it on the machine we're having problems with now.
As if the old one somehow magically repaired itself in the attic.
Do you go up there and get it?
Yep
And then you show them how it doesn't work.
If it does, you explain that it's still fucking old, and should be replaced.
I told him, no lol
Hey, if you're getting paid hourly, do whatever the hell they ask
01:59
I get paid whatever I tell him to pay me when the job is done
Then you have every right to tell them to pay you more
thats all you get
it doesn't look 3d :(
Which is better for me, I know, but it's always more than fair regardless
but some grow, some shrink.
I guess I could have went up there, and charged more
02:00
and the larger ones (the ones growing) lose less opacity
@rlemon And yet, drunken Ryan whole-heartedly approves
It didn't really occur to me, until I explained the situation just now.
I guess I'm not that smart. lol
lol
... mysterious noises come from my computer. Not sure what that "ka-plunk" was.
@rlemon so how do you increase max particles?
var count = 1024; // this is max particles on screen
or better put, this is the number of particles pre-generated into the pool
02:03
So, you generate that many particles, and then that's the max as well?
which i think is nice. I generate all of the particles into an array then when I need a burst I select the first 36 dead particles in the array and stop
HAMMERTIME!
Very nice
:P
function burst(e) {
    var limit = 36;
    for( var i = 0; i < count; i++ ) {
        if( cont[i].alive ) {
            continue;
        }
        if( --limit <= 0 ) {
            return;
        }
        cont[i].reset(e.clientX, e.clientY);
    }
}
silly bot
I missed that... what did Caprica try to parse?
02:06
the last word (stop) on my 'I think is nice' sentence
and then again on my edit ;)
Ah, gotcha
@monners 3K particles on screen and I drop to 30fps
haha, it does that every time a message ends with stop
HAMMERTIME!
I think the upper limit is probably 1.5k
filling / saving / transforming (all of the rendering) is not cheap
02:08
@rlemon Yeah, definitely
i think this would preform much better with webgl
but that would not be as fun (for me.... yet)
Well, yeah. From what I've heard, I imagine WebGL will perform better for a lot of things.
@SethCodes 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.
anyone enjoy troubleshooting bootstrap 3 typeahead? I'm struggling.
@SethCodes About as far as I get with bootstrap is Google, lol
But hey, maybe your issue is solvable with general JS knowledge
02:17
I haz knowledge
omg t3h knowledgez
brb n33d b33r
3=e is all you get
DECIPHER!
lol, as if that wasn't obvious
All I have is vodka right now... not sure that's a good idea.
I just found out that Google owns Motorola now. /slow
Yeaaaahhh... not entirely sure how to feel about that
02:25
Well, there's Phonebloks
Idk if Motorola adopting that was directly caused by Google owning them or not
Wait, Motorola is adopting that? I never thought anybody would seriously consider it, despite the fact that it's an awesome idea.
I just wish the Blokstore was finished, so I could preorder my phone lol
See, it's a brilliant idea... I just don't think it will actually catch on. It's too... DIY, I guess?
Every blok has four connections though, even the cpu blok.
But it doesn't matter how easy it is to use. The point is that there's enough choice to scare off the every-day consumer.
02:31
I wonder how it's even possible for it to work the way they want it to
@RyanKinal What about prebuilt phonebloks?
If there's no every-day consumer, then the product will most likely die
That's basically what a phone/pc is
@Shea I guess that depends on the form factor. If it's chunky and square, it most likely won't catch on.
If it's unnoticable, it won't matter
It just has the added feature of making them interchangeable, so then it comes down to marketing. Which ever side can make the most manipulative advertisement.
To the everyday consumer, I definitely would not sell it on it's most prominent feature
It would have to be made to look trendy
user1125394
I should have bought this boat
02:36
@Shea that's the key part. But if it isn't easy, it can't be trendy. And choice is, by default, not easy.
codepen.io/rlemon/full/IzEej I added 'missiles' incase people don't click and drag
those bastards
@rlemon Good idea
@RyanKinal Could it be as easy as making it very easy to recognize, put them in movies, and have young celebrities do the commercials for it?
I doubt it.
This seems like a very hacker-programmer-techy kind of thing
Think of the possibilities with it being in a movie, you could cheat and have super bloks to make it look cooler than it actually is.
Like hologram bloks, or some weird super futuristic blok
02:45
I think it would quite difficult to make it look cool
Yeah, maybe lol
ok nowwww it only activates the auto 'missile' after 12 seconds and then stops if you start clicking. and then only activates again 6 seconds after you stop clicking
clicking clears the timeout ofc
@rlemon Nice
I think it would be just perfect, if you replaced the initial confetti with a few really quick missiles
maybe tomorrow
that would require an array for the missiles so there can be more than one
No sweat
Looks awesome though
03:05
@rlemon Forked.
03:49
@Vic 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.
04:02
04:55
<a href="javascript:WebSocketTest()" >run</a> what is the use of if call method like this statement?
what
href="javascript:WebSocketTest()" I don't know what is the use of this.
we can also call a method like href="WebSocketTest()" ... what is the difference between both
It's generally a bad idea to call something like that
Mixing JS into your HTML can cause caching issues as well as being less maintainable
as your statement the best way is
href="javascript:WebSocketTest()" .
for call a amethod.
no, that's the worst way.
Instead, add an event listener in your JS
05:01
ok
thanks.
and would please tell me ? where should i learn java script for improve my skills to a advance level. further i want to work on a plugin.

Noob Javascript Resources

Jun 15 '12 at 13:05, 1 minute total – 11 messages, 2 users, 0 stars

Bookmarked Jun 15 '12 at 13:09 by rlemon

Learn Javascript Videos

Apr 27 '12 at 15:10, 1 minute total – 7 messages, 1 user, 0 stars

Bookmarked Apr 27 '12 at 15:13 by rlemon

@Shailendrsingh ^^
thank
@ SomeKittens
05:19
say "java script" once more and I'll wrap your body in a car pet.
@JanDvorak harsh...
but fair
Need help.. how can i communicate between angularjs factory services?
0
Q: Angular $resource setup : Communicating between factory services

devoI am trying to implement pagination for my Laravel 4 + angular.js 1.0.7 application by reading this article. My code looks, var app = angular.module('cmsPlus', ['ngResource']); app.service( 'Post', [ '$resource', function( $resource ) { return $resource( 'posts/:id', { id: '@id'} ); }]); f...

05:34
@NaseerKhan 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.
Hi good morning to all
in this link we can enter tags, but i want to load the tags dynamically which are from database
for example like edit profile etc
@CapricaSix
@devo
custom tags? Huge chunks of inline style?
inline styling for tags? Even if you assign it from javascript, you should assign a class instead.
why is the hidden input not type:hidden?
can u give a link regarding this exaple
@JanDvorak
what do you have in mind?
I don't know the plugin you're using, sorry
@NaseerKhan It is incredibly bad form to ping random users of the chat.
That's a very good way to ensure anything further is ignored.
05:46
in my application i loaded the event information along with some tags, but i want to edit that event, so i am getting those details from db and displaying in the same form ,but the tags are not loading
wait, I'm not even looking at your code?
this is the css for the field and the field is <input id="keywordTags" type="text" class="tags" value="" />
how is the CSS related to your question?
the designer has given like this, but i cant able to load the dynamic content in that field
i am new to this technology
!!/learn pingSomeone "<>@$someone"
05:57
@Shea Command pingsomeone learned
@SomeKittens ^
anybody knows about google map api travel mode
0
Q: Google Map travel mode in api

BurhanIn new google map there are several travel mode like driving, bicycling, walking and transit but they also added fly mode also. I can choose fly mode in new google map but i cant get fly travel mode in google maps v3 api. I want to to show fly distance between two cities on my site like google ma...

06:13
Can javascript read file from Xcode?
@kongkea WAT?
@JanDvorak Can javascript read file from Iphone app?
@kongkea how would it obtain the file?
06:28
@BenjaminGruenbaum Oh, it's you again...
I lold
!!afk work
@BenjaminGruenbaum Stay safe.
07:02
<script type="text/javascript" >
Get_All_Company();
Get_All_FOO();
Get_All_Category();
var selected_cat_id = window.localStorage.getItem("selected_cat_id");
alert("in on load"+ selected_cat_id);
Get_All_Product(selected_cat_id);
Add_DD_SL();
</script>
Hello guys , In java Script in which sequence this function will call ?
because i am fetch all category and set first index value and pass that to Get_All_Product(cat_id) but its sending older value instead of new one
the functions will happen in the specified order, but some may enqueue other functions to execute later.
Because i am calling one more function inside to Get_All_Category(); and that is Add_DD_Category()and this will add array of value and return all category and set selected value in temp_storage for further use , but next time when i recall the page then it will use older value to get all product
Main thing is when i load the page , that will directly throw me alert("in on load"+ selected_cat_id); so i am stuck
javascript variables are not preserved upon navigation
07:18
0
Q: How to configure facebook app for subdomain?

ramanI have created an facebook app, that is working fine. i have also used invite feature of facebook. Invitations are sending successfully, but when i click on the invitation in facebook, it redirects to my app. and shows the below error: Please help me how can i make this working for sub-domain.

please help me
07:36
0
Q: Jquery lightbox popup with URL

Jinendra KhobarePlease check URL http://www.digitalrev.com/discover click on any photo on the popup also check the URL then copy that URI and post on a new tab and you will notice that complete new page loads. You can observe the same thing in case of facebook photo click popups. My question is how is that don...

i want to create a lightbox
which changes URL
when opened
and reverts back to old URL after popup is closed
anyone has any idea how to do it?
08:04
@JanDvorak did you see my pastebin?
@FlorianMargaine yep
could this be solved with a function?
yeah, but uglier
so, there's no special preference in either direction; if both are applicable use what seems better at that moment?
08:06
use a macro if it makes the code clearer
macros add some complexity, so it better be worth it
ugh, this is so true
user image
2
sometimes I do prefer to look younger
his neck muscles have shrunk for some reason
08:25
Can anyone help me with this issue in jQuery Mobile panel?
08:42
08:54
I want links to the best interactive resumes. Do you know any?
@BenjaminGruenbaum Were you bitten!? Strip! Prove you weren't bitten.
Oh shaddup @CapricaSix

« first day (1110 days earlier)      last day (4063 days later) »