« first day (776 days earlier)      last day (4175 days later) » 

12:01 AM
posted on November 29, 2012 by Victor Rodriguez

UFOs over Denver are insects A look into the cliams of from Denver FOX 31 UFO Video Dude, where's my car?

 
12:19 AM
0
Q: Created a DialogBuilder object, but having issues with subscribing/unsubscribing to dialog events

Sean Andersonvar WorkflowDialogBuilder = _.once(function () { 'use strict'; var workflowDialog = $('#WorkflowDialog'); var workflowDialogContent = $('#WorkflowDialogContent'); var events = { onApplyChangesSuccess: 'onApplyChangesSuccess', onValidationFailed: 'onValidationFail...

 
12:31 AM
@Raynos oh sorry
Are you still here?
 
 
2 hours later…
2:02 AM
@dievardump hi
 
2:19 AM
So, there is only one Number type in JS, so presumably they are all floats? So presumably all numbers are subject to floating point precision errors, so (unless you are dealing with something other than base 10) is there any point in parseInt()? I generally "cast" with the Number() constructor (like var num = Number(str);) because it's more picky about what it will accept, and that's usually what I want, but right now I want an int, and I can't have one. Right?
 
2:38 AM
@DaveRandom Yeah, all numbers in JS are doubles
parseInt removes the decimals
 
@SomeKittens Oh yeh that's true. But I'd still rather Math.floor()/Math.ceil() most of the time, usually I want to control how that is handled. But 'tis a good point.
 
You can always use ~~
 
bah, amatures. we all know +(num.toString().split('.')[0]) is the way to go
!!> typeof +(12.4.toString().split('.')[0]);
 
@rlemon "number"
 
!!> +(12.4.toString().split('.')[0])
 
2:47 AM
@rlemon 12
 
i'm so ninja
 
3:00 AM
~~12.4 does just over 1 billion ops on js perf, Math.floor(12.4) does ~700 million. but surprisingly, on the first pass Math.floor recorded "Infinity" in js perf, and second pass ~~ did
 
!!> for (var s = "12", i = s.length - 1, r = 0, m = 1; i >= 0; m *= 10, i--) { r += m * s.substr(i, 1); }
 
@DaveRandom 12
 
^^ clearly the best method
Actually that was way too efficient.
!!> (function(s){ for (var i = s.length - 1, r = 0, m = 1; i >= 0; m *= 10, i--) { for (var j = 1; j <= s.substr(i, 1); j++) { r += m; } } return r; }("12"));
!!> typeof (function(s){ for (var i = s.length - 1, r = 0, m = 1; i >= 0; m *= 10, i--) { for (var j = 1; j <= s.substr(i, 1); j++) { r += m; } } return r; }("12"));
 
`12`
:6463836 `"number"`
 
^^ that's the winning entry
 
3:39 AM
I had an 8 hour slep <3
i feel so good
@rlemon on firefox the result is suprizing
~~"12.4" is ~ same as ~~12.4
 
really
strange... js type conversion is funny some times
 
and on my
chrome floor and ~~12.4 performed ~ the same
 
tis coming along!
all day Ive been working on that freaking thing.. all day
(archers dont work fyi)
 
@Loktar blank screen
 
yeah just let it load
then hit the white rectangle
/me needs a loading bar..
 
3:45 AM
urm
 
why does no one click the white rectangle
 
@Loktar
 
they just bitch it's blank
try shit out guys
 
<progress>
 
click around
 
3:45 AM
haha yeah Ill fix that tomorrow
 
your 1 element loader~
 
the UI is the last thing im doing
if I even get time :?
 
Not a my kinda game but cool concept \o
 
ty
you understand it right?
 
I just like to do things my way
 
3:47 AM
make matches, build dudes with resources
 
yeap :D
 
ok cool, a lot of people were confused before
 
ugh, stupid github pages... take so long
 
its cool
 
yeah...
 
3:47 AM
but i just like to hit em off myself :P
 
Im thinking about linking where I host it too
 
@Loktar don't listen to the haters, I love it
 
likee Prince of Persia , C Strike etc
 
@rlemon :P
 
@Loktar hingnikar.com ?
LAMP :D
 
3:47 AM
yeah once I add more units, spells etc. itll be cooler
 
or ur BLOG :P
 
So I started work on this thing, and you both need to contribute too it. hehe
 
@Abhishek yeah, but for the contest I figure it would be better to have it on gh-pages
 
stupid gh-pages.... fucking build!!!!
 
yer wish
 
3:48 AM
fuck it, it's not built but it says it is, so keep refreshing.
like, I got the email saying "page successfully built"
 
yeah they have weird caching issues too ive noticed
 
I don't have all the sections done, I figured I'd stop and get some other input from the rest of the room owners
 
I have to run my game in incognito mode just for the graphics to look updated on mine
 
force another upstream
maybe that will help
woa woa wtf?
the files are not there
:(
 
crazy
well I have to go to bed..
gotta be up by 4:25 am
 
3:52 AM
kame hame ha
@Loktar addthinngs like that to ur game :D
 
damn... forgot to checkout the repo
 
it'd be more fun <3
 
was adding to master
@Loktar
1 sec
check it now
 
oh nice
thats a good idea @rlemon
 
don't mind that the template has some leftovers ;)
I'm not done modifying it yet. :P
bootswatch.com :P
 
3:54 AM
@rlemon add something else to downloads
DOMSHIM
 
1 min ago, by rlemon
don't mind that the template has some leftovers ;)
 
just reminding you love , cause its so easy to forget it
 
I will add all the userscripts, the bot, some other useful tools like screencapping tools and screencasting tools.
download links to VIM, EMACS, Notepad++, and ST2
 
alright man i starred it I gotta get to bed :P
 
stuff like that
 
3:56 AM
@rlemon boy u gonnan need some cSS sugar
 
@Loktar basically from you guys I just need input on the rules and guidelines and stuff. I probably shouldn't be the only one coming up with them. Sleep on it ;)
 
then for the downloads
 
@Abhishek die
 
and hey add jQUery too
@rlemon why ?
 
lol, I don't need no css sugar :P
thats why I used a pre fabbed bootstrap theme
 
3:57 AM
@rlemon yeah sounds good to me
 
@rlemon tehehe :3
thats what you think naughty boy
 
easy to read.
 
simple
 
just add a really nice bunch of things to the list nd the list will look UGLY
 
That's what I used to think of IE
 
interesting read
IE10 is 100% much much better than anything else ms has pushed out recently for browsers.. but they still have a ways to go. All vendors do. Browsers today are not very stable if you haven't noticed.
 
I think IE 10 was outdated even before it was planned of release
 
Chrome is nice, but still lacking in a lot of areas. I am not a fan of FF for many reasons.. but most are biased.
@Abhishek agreed. they are promoting it is fast, but at what cost.
 
@rlemon Yeah, that is a problem. But I guess if they all supported the same thing they wouldn't be much different or reason to be.
 
4:00 AM
I would rather see all my frames than some at a faster rate.
@Shaz no, they all need to support the standards. that is dumb to think otherwise. They all should have their own sugars and features that are unrelated to the languages they parse.
 
Well I certainly agree they should conform to a standard
 
@rlemon if only if they supported the getCSSRenderingContext
we would have done some really nasty emulation ;D
 
implementing standards shouldn't be an option IMO. Having cool little features and stuff is what should set them apart.
 
with its decent canvas .. but it doesnt :'(
 
> Welcome. Please be kind and don't ask to ask, just ask.
> Sparkly Vampires please join #Transylvania
 
4:02 AM
^_^
@rlemon i made a SO room with name Transylvania
 
I know
 
If you can help me, please come here: chat.stackoverflow.com/rooms/20359/…
 

Transylvania

Room to move help vampire posts and to push helpvampires , if ...
can u link that in there ? instead of #Transylvania :D
 
What is a 'helpvampire'?
 
!!/define help vampire
 
4:04 AM
in Transylvania, 2 days ago, by Abhishek
Are you a help vampire ?

* Do you code less then you ask on Stackoverflow
* Do you think users on SO will code for you if u cry in front of them and get succesfull
* Do you use more jQuery then JavaScript
* Do you think coding everything is baddest thing

If yes , you **Are** a help vampire!
 
!!/undo
 
@rlemon Target eliminated
 
@That1Guy see it :D
 
I see, haha I got it now =P
 
4:05 AM
@user1079641 ask out
if some1 cn help they might help
but you cant force them to help
you can but the magnitude of force required to make them help is > then their terminal condition of holding force AKA where they get pissed off so instead of keeping on asking if we will help just ask and see if somebody can help
okay >
 
5 messages moved to recycle bin
don't spam.
you asked, the online users saw it, we made our choice.
sorry.
I left one of your links above if someone is interested they can join
 
so can i ask here then?
or not?
 
yes you can
 
dude read the room description or the link I just posted about the room rules
 
4:08 AM
@rlemon we need to do some matlab research
 
don't ask to ask... it's really annoying
 
on where the hell do these come from , seriously
 
it's when someone says "Guess what?" and they wait for you to say "What?".... like there is any other logical response! just fucking spit it out!
 
^
[okay ugly comparision]
 
I have an app. Its not in Javascript but please read since you need to help with logical error not programming. I have an app where the user enters a sequence of 3 letters. He has a choice of 4 letters, r,g,b,y and can enter any three of them in any order.
 
4:09 AM
no... not like that at all.
 
lol
 
When the user clicks "Check" button, the computer generates a random sequence of those same letters
then the two sequences are compared against each other.
 
@rlemon, Thanks for the link. I'm relatively new to SO...haven't joined a chat before.
 
:-)
 
For example, if user entered r,g,y and computer generated y,g,r, then user got three colors right since the computer also had the same color and he got 1 position right because they both had the same color at the second position: g
 
4:11 AM
@That1Guy no worries, it's not all like hard core rules or anything. moreso guidelines. a lot of us are "lingering" here a lot so it's annoying to see some stuff like "Hey can I ask a question" thirty times a day :P
 
@rlemon do check out my app today for an exhaustive benchmark of your phone :-) , i wanna see how much ur phone can do :D
 
There is my problem
 
just tell me when yer free to test .
 
The app works fine, until there are repeats in the sequence
like r,r,y or r,r,r or y,y,y
I am not sure why
 
@user1079641 dude
dude
just take a variable tell it to have the last chosen value
now run a while / do while loop until this value != last
and you should be fine
 
4:14 AM
When there is a repeat, the colors correct and position correct mess up
 
Are all of the rooms this dead? I've checked out a few others, and this is the only one with any signs of life lol.
always this dead*
 
@Abhishek I need help bro
 
4:39 AM
hey guys, what property can I use to get the visible size of an element?
the <body> tag's height of my page is like 3000px
but the window is about 700px tall
 
clientHeight, offsetHeight and scrollHeight are all 3000px
what am I missing?
height: 100%; overflow: auto; on <html> and <body> made scrollHeight return the value I was hoping for
 
@Raynos so hard to get to you!!!
 
@zneak element.parentNode.offsetHeight , if your container element has overflow:hidden and is constrained
thats shall do it :P
 
anyone fimilar with js in .Net ?
0
Q: adding jquery to asp.net aspx page

Scott SelbyI normally have something like this in the <head> of my aspx page <script src="jquery/jquery-1.8.2.min.js" type="text/javascript"></script> <script src="jquery/jquery-ui-1.8.24.custom.min.js" type="text/javascript"></script> <script src="jquery/jquery.floatingFix...

guess not...
 
5:01 AM
it's not a very busy hour either
 
I started making Simon in canvas.... then I got bored with it.
NSFE (Not safe for epilepsy)
 
@rlemon crazy guy.
 
:-|
 
    var colours = (function() {
        var ret = [],
            len = 256,
            gen = function(n) {
                return ~~ (Math.random() * (n + len));
            };
        for (var i = 0; i < len; i++) {
            ret.push("rgba(" + gen(i) + "," + gen(i) + "," + gen(i) + ", 1)");
        }
        return ret;
    }());
I cannot believe how well that worked for random colours
 
5:12 AM
I won't see Raynos :(
@Loktar: github contest?
@rlemon @Abhishek @FlorianMargaine and you? Github contest?
 
@dievardump me not in :-(
but its a game making contest
 
I know. I would have finish my Arcade DBZ if I had time
and maybe add a Bomberman like
 
@dievardump Dragon Ball Z?
i am in <3 u know i 'd do anything for dbz
 
aha
 
kamehamehaaaaaaaaaaa ;D <- tried to make one with Direct X and C++ about 3 years ago
but what it coded out was :-'( just a bunch of program crashes
 
@dievardump you need better sprites
there is a software u can rip those sprites out of ;D
@dievardump btw i like ur creation though 3
 
That's not really mine
 
:-(
 
you should* use them HD Mugan Characters
they are quite awesome
@dievardump youtube.com/watch?v=qGg-fkQ14Uc :3 :3 the funniest DB GT episode
 
5:44 AM
@Abhishek aha
 
@dievardump i laughed so hard through out it (XD)
so cute i wish they sent vegeta to hell instead of goku <3 , he would off been more funny lol
but the end is priceless .. sorry about that!
vogella.com/articles/Git/article.html <- Starable git tutorial
anybody
got a link to the huge question on SO
with all programming language resources ?
 
6:26 AM
What the heck, man? Why is it running at 95 FPS?
@dievardump ^
 
because the calculator is badly written?
 
Aah
Where are you now? SF?
> Curious? It's good now. No, really.
XD
 
Did you see that?
 
Yep
Hahahaha, Internet Explorer's new ad isn't bad: http://youtu.be/lD9FAOPBiDk via @youtube
 
@AmaanCheval Yes, last day ibn SF.
Of that's you?
 
6:35 AM
Then where you headed?
Yes, sir
 
Going tO vancouver
goal
 
Goal?
 
Hum... my last top, where I'm going to live for some months.
 
Oh
@dievardump You're couchsurfing there in the beginning, though, right?
 
Exactly
 
6:47 AM
Hello guys
Hi @AmaanCheval
again one more help needed in JS :(
Plz help
javascript:pdf_url=location.href;location.href=’http://api.
joliprint.com/api/rest/url/print/s/joliprint.com?
url=’+escape(pdf_url)+’&disposition=attachment’
Can you explain this line ?
Hi @FlorianMargaine
 
@VakulSaini Remove the line-breaks and use proper quotes
javascript:pdf_url=location.href;location.href='api.joliprint.com/api/rest/url/print/s/joliprint.com?url='+escape(pdf_url)+'&disposition=attachment';
 
okay thanks :)
 
wow ~~12.4 is equivalent fast as 12.4 - 0.4 // actully faster LoL
my system is crazy firefox over powers chrome by miles
i wanna investigate why chrome === slow on my computer!!
 
7:09 AM
Hahaha, I think?
I don't remember
 
did a lot with me :P
so i got a whitner instead 8-)
LOL
 
@rlemon Seen THQ's HumbleBundle?
 
Anyone who knows RequireJS
 
Good morning :D
You guys know what day it is ? :D
 
7:26 AM
@AndersMetnik Friday?
 
Well also that ;)
But no, last day of movember :D time to shave off the stache
 
@AndersMetnik - So you're not coming after today ?
:P
Happy Christmas Day in advance :)
 
7:48 AM
Christmas ?
wait what ?
its still a month , unless 21st December an alien race comes out of a worm hole and attacks us for no apparent reason annihilating us all in seconds
 
o/
 
@Esailija well, according to clojure's growing popularity these last years + the number of people using emacs, I assume it's safe to say that yes, many people are used to lisp syntax :p
@GNi33 o/
 
@GNi33 \o
how was /is paris ?
 
sitting in the theatre de varietes right now
awesome venue for a js conference
 
@GNi33 :D
pictures...
picturess.....
picturesssssssssssssssssss.
 
7:56 AM
someone in the crowd just tweeted one -> twitter.com/jacomyal/status/274416813109030913
 
Ready for #dotjs, happy to see JavaScript and java community mixed
What?
 
whaaaat?
 
hehe, yeah, saw that too
 
@dievardump finding my email address shouldnt be hard. Just email me
 
@FlorianMargaine oh no
 
8:08 AM
okay, here we go :)
 
wohooooooooooo :D
see ya guys going for shave :P
i am so glad <3 i am doing this :3 teehee :D
// cause i am looking scary to myself :D
 
@Raynos yeah I know... but I'm leaving tomorow morning :/
And I had a crazy hangover day
Ì think it'll be for my next time in SF :(
 
8:32 AM
mathias bynens talking about unicode and js
 
@GNi33 What about it?
Oh, character count and string.length?
 
astral characters, and the problems with those
 
8:49 AM
@VakulSaini coming?
 
You can ask your questions here on twitter, we are watching. #dotjs
 
0
Q: In what ways can I test an image slideshow javascript code?

RahulI have a slideshow of images (and links) on a page. This images are part of a json response to a request sent after the page loads. The slideshow is set to play at an interview of 2 seconds. The slideshow can be paused, played over, and all other controls a normal slideshow would have. As a Rail...

 
Hi people, I'm looking for a canvas animation library I found a while ago. I thought it was called Michael.js, but I could be wrong..
The main example was a clock, that I want to build to teach myself about canvas and animation. Does anyone know what I mean?
 
Never heard of anything like Michael.js
 
9:05 AM
DAmn it.
 
If you want to learn, though, I think you should start at the basics
!!/tell Kyle mdn canvas tutorial
 
Once you learn how to draw simple shapes and images, look into rotation, translation, scaling and how you can use those with save() and restore()
 
look into rotation, then rotation?
 
9:08 AM
Yeah, I've looked at it all :) Thanks. I was just trying to find this one library I remember seeing a while back, thought it was called michael.js but I might be totally wrong.
 
Maybe Raphael.js
 
Yes!
Thanks!
 
No problem
 
9:23 AM
@AmaanCheval That was the first one in my link ....
 
Yeah. Guess he didn't see the link
 
Yeah ;-)
I feel like flaming someone, I'll go look at questions :P
 
Hahahhaa
 

« first day (776 days earlier)      last day (4175 days later) »