« first day (1908 days earlier)      last day (3057 days later) » 

3:00 PM
It's expecting it to return movieData
 
this is a Jasmine Karma test
 
So for it to pass, it should return a string equal to movieData
 
@emporio .... bc your always returning movieData
 
so it's running a string search query?
seeing if the object contains the string?
 
no... ur function just returns movieData
just writing a function name called "search" does not make it search... this isn't TV...
 
3:01 PM
how does the string 'Star Wars' equal to the entire movie data object?
 
it doesnt... your search fn ALWAYS RETURNS movieData...
I am out...
@Cereal have fun! :-D
 
Oh hi @Neal
How have you been doing?
 
@BenjaminGruenbaum Hia!
I have been good.
 
@Neal o.o what
 
@BenjaminGruenbaum doing a redesign of gozengo
 
3:02 PM
@KarelG: thanks for quick response, Here is my piece of code
 
eventually will be made public
 
so it shouldn't be 'toequal'
it should be .toReturn
 
1 message moved to Trash can
@user2821894 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
makes mroe sense
more
 
Is the only difference between a unit test and an integration test that unit tests are one piece of code, and integration tests are several pieces?
 
3:03 PM
What have you been up to @BenjaminGruenbaum ?
 
1 message moved to Trash can
@user2821894 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
i did hit ctrl-k before posting the code
<TD style="font-size: 9px"><INPUT class="inactive"
readonly="readonly"
id="${Typ.TCode}_${oTyp.OTCode}_ord"
type="text" size="10" value="0"></TD>
 
this is the piece of code from where I get the result from "id" in the input tag, how do i apply style in the input tag?
 
@SterlingArcher The bottom looks crowded
The text next to the submit button could be put on its own line below
 
3:06 PM
Below the button?
 
rise of the tomb raider is available for pre-order: store.steampowered.com/app/391220
Faster than I expected
 
@Neal living well, have a comfy life - nothing too exciting recently. Working on some interesting projects but nothing concrete.
 
Thought xbone had a year exclusive deal
 
@SterlingArcher showing your email like that reminds me of a conf call with video I had recently with a supplier
 
@BenjaminGruenbaum "comfy life"? :-)
 
3:06 PM
where they accidentally opened their private ssh key file in vim in the video
 
Submit
Already have an account? Return to login
Like that
Right now, it looks like there isn't enough whitespace between things
 
@FlorianMargaine lol like when I emailed my db credentials to @rlemon?
 
@SomeGuy That's because the background is black =D
 
@SterlingArcher a private ssh key is arguably worse
 
@Cereal lol
 
3:08 PM
@user2821894 loop through the TD holding the values. At each value, check if it's a nonzero. If true, add class to TD "boldThis" ... please use a bit logic thinking
@FlorianMargaine you can find some of it on github
 
@SomeGuy you're right that looks better
 
@KarelG: Could you please give a bit clue on the code, am not sure how to do it as am new to javascript and css.
 
just for testing purposes, is it possible to get current state of promise?
 
@SterlingArcher Yay! I helped!
 
@KarelG yeah. I already put mine on it.
 
3:11 PM
@Neal well, lots of beers with friends and parties, lots of cool stuff - nothing too interesting, the life most software devs have I guess.
 
@BenjaminGruenbaum :-D C'mon over to NY at any point? :-)
 
@KarelG: I was trying to apply this logic - <%=idStr1!=0? "<b>"+idStr1+"</b>":0%> where am checking if its non zero make it bold else 0
 
@Neal end of the year, I want to visit.
I was supposed to go last year but had a little emergency
 
@BenjaminGruenbaum Thats in a whiiiile :-) Let me know. naftali.lubin (at) google's email service
@BenjaminGruenbaum oy im sorry!
 
@user2821894 Please don't ping me a lot. it can be annoying at the end. I'm at work, so response can delay. Well you can do that on the server yes.
if you want to do that by js
Array.prototype.forEach.call(document.querySelectorAll('td'), function(el) { /* get the value, then apply class on el */});
that 'td' needs a bit finetuning if you have a larger table .
 
3:18 PM
I appologize for the inconvienience, thanks for the response
 
Woah, I guess I hadn't paid attention. I just realized the HTML5 canvas has clockwise rotation in radians. I'm used to counterclockwise.
 
uhm.. anybody has some experience with jquery-ui droppable "thing" ? Trying to avoid the drop event propagation if multiple targets overlap (which are not in the same DOM tree)
(don't blame me for using jquery-ui I have no choice it's existing code, FU.. the game..)
 
crl
pure vanilla Dnd ftw
 
@jAndy I share your pain, I tried and never want to use jquery-ui (or jquery at all) again.
But I don't remember how the droppables worked, sorry.
 
yea can't do it. It's an existing codebase which uses a shitload of code in draggable/droppable events already, I have to intercept and differentiate
 
3:30 PM
I also hate the drag-drop JS API. I ended up using mousedown and mouseup in my app.
But I think that's what jquery-ui does too.
 
user1596138
@Trasiva Modules (npm), React, CSS preproccessors, ES2015. Shit like that.
 
user1596138
We like React a lot.
 
So, I'm trying to make a simple function that runs an XHR request. However, I seem to be running into an issue
function xhr(route, data, method, callbackSuccess, callbackError) {
	let xhr = new XMLHttpRequest();
	xhr.open(method, route);
	xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

	xhr.onload = () => {
		console.log("ready state", xhr.readyState);
		if (xhr.readyState === 4) callbackSuccess();
		else callbackError();
	}
	xhr.send(data);
}
 
user1596138
@SterlingArcher You still in Node or
 
jQuery UI is a shame. They exist just because they took the valuable name jQuery. Everybody would have just laughed with a different name...
 
3:37 PM
ES6
So this function is simple. Takes route, method, data, and functions to be called on success and error.
I call it like this:
xhr("/create",
	`user=${username}&pass=${password}&email=${email}`,
	"POST",
	() => {
		let response = JSON.parse(xhr.responseText);
		if (response["flag"] === true) toggleError(showError, "success", "error");
		else toggleError(showError, "error", "success");
	},
	() => {
		showError.classList.add("error");
		showError.textContent("Error, account not created!");
	}
);
 
Promises
 
Yea.. Callbacks are so 2007.
 
export function xhr(args) {
	return new Promise((resolve, reject) => {
		let hr = new XMLHttpRequest();
		hr.open(args.method || 'POST', args.url);
		hr.onload = () => {
			if( hr.status >= 200 && hr.status < 300 ) {
				return resolve(hr.responseText);
			}
			reject({
				message: hr.statusText
			});
		};
		hr.onerror = () => {
			reject({
				message: ht.statusText
			});
		};
		hr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		hr.send(args.data || null);
	});
}
 
@rlemon is that why xhr.responseText is undefined?
 
user1596138
lol but for the sake of learning... @SterlingArcher what's not working?
 
3:38 PM
@SterlingArcher xhr is a function or a variable
choose one
noob
:P
 
ah fuck
 
I have a promise which returns results from a SQL query that should have different reject conditions based on my app's context. in one context, i want to resolve if exactly 1 row was returned, reject if other-than-1 rows were returned. in another, i want to resolve if exactly 0 rows were returned, reject if more than 0 rows were returned. any ideas on a clean way to do this?
 
user1596138
lol
 
user1596138
@SterlingArcher Which part is the ES6 :P
 
user1596138
let and arrow functions lol
 
user1596138
3:41 PM
Meh
 
and export
 
user1596138
export isn't in there
 
it's in rlemon's example
 
user1596138
@rlemon lol the casings on XMLHttpRequest... Even onload, onerror I hate that
 
@Jhawins ONE RROR!!!!
;-P
 
user1596138
3:43 PM
@Neal Yeah that's what I read too haha
 
@ton.yeung VE VIN ALL THE THE THINGS!
 
@SterlingArcher I'm going to punch you in the brovaries.
 
> Uncaught (in promise) TypeError: Cannot assign to read only property 'textContent' of (…)
da fuq
@Trasiva good morning :D
 
@SterlingArcher God damn it Cyril, can't you do anything right?
 
3:49 PM
Nailed it
@rlemon I copied your xhr :D it works nicely
 
This is what yogurt tastes like? I love yogurt!
 
@Loktar seen, not watched
 
@KendallFrey tminus 9 minutes
haha wondering if it will crash or not
they do have FB behind them
 
user1596138
@Loktar lol only 7 players?
 
user1596138
Couldn't you buy 30 $1000 machines and have 30 players
 
3:50 PM
@Loktar You going to be on tonight?
 
user1596138
Not to be that guy haha it's cool!
 
in the past even being an hour late meant you had to wait a month or so
@Jhawins not at that level probably
sure I could buy a shitload of windows tablets and call it a day since people can play pre 2010 games on them
 
user1596138
I said $1000 towers lol
 
those are all running ultra wide 1440 at great framerates
 
user1596138
True. But what;'s it cost to build a machine capable of that?
 
3:52 PM
@Jhawins then you need 30 ultrawide ips 1440 monitors as well :p
 
@Loktar What should I be refreshing furiously?
 
user1596138
@Loktar Ah. Shit. That would be a financial issue lol
 
their blog page? home page?
 
@ton.yeung HAH yea
@Jhawins you could build 7 individual ones for less I bet lol
 
3:53 PM
Ah, I see the ticker is on the home page
 
user1596138
7 minutes till @Loktar is the coolest guy in the room for the day
 
and @KendallFrey too @Jhawins
I have a VR bro
 
user1596138
He won't get it for 2 weeks longer tho
 
user1596138
Canadia
 
3:53 PM
haha actually CA hasn't been bad with them fortunately
but yeah who even knows when they ship.. probably march 1st lol
 
user1596138
More like 5min till oculus.com crashes lol
 
I wanna say idc when as long as it happens but that would be a big lie
 
user1596138
They never released the price?
 
nope
 
not yet @Jhawins
but you don't pay yet anyway now
 
3:55 PM
@Jhawins I'm prepping myself to hand over >$500
 
you pay when they ship, so it gives some people more time
 
its gonna be like, 500 us
 
user1596138
Oh that's nice
 
Wait, why is @Loktar about to be the coolest guy?
 
@BenCraig that would suck
 
user1596138
3:55 PM
I'll wait till I hear about performance more. Not sure how well my laptop is going to do
 
@KendallFrey yup, I really hope its not that much
 
@Trasiva we are getting RIFTS
 
Speculation is still 350-400US
 
user1596138
And I won't build a tower till summer/fall
 
Consumer versions
 
3:56 PM
@ton.yeung the touch?
 
350 us = ? cad
 
~500
 
@Jhawins your laptop with the rift?
you have a 970m right?
 
user1596138
860m it's the 2gb one
 
@Loktar As in...oculus?
 
3:56 PM
Im pretty ok with that price
 
ahh 860, yeah you don't hit the min reqs for the consumer vs :/
970 and 290 are the minimums for GPU
 
everything I can
 
user1596138
@Loktar Yea. And that's minimum lol
 
What's the price going to be, do we know?
 
@BenCraig 3d porn
@Trasiva no
 
3:57 PM
yeah, masturbation mostly
obviously
 
user1596138
It might work. The m series are benchmarked weird
 
Their website is going to get the hug of death in like...1.5 minutes, lol.
 
!!youtube masturbating in the future
 
user1596138
Like I didn't meet the reqs for some new game
 
user1596138
3:58 PM
But I did it anyway at ~50fps on decent settings
 
user1596138
But no probably not lol.
 
@Loktar I wonder what happens if you try less
 
worse experience
 
Surely it won't just not run, right?
 
user1596138
Yea not worth it.
 
3:59 PM
can't hit 90fps so you get jutter, ect.
 
<1m, fapping intensifies
 
It still would work I bet, you just might feel a little weird
I've ran demos that ran shitty
 
ahhhhhhh
pinch me
 
user1596138
I'll buy a skeleton tower and buy parts as I go and maybe later in the year
 

« first day (1908 days earlier)      last day (3057 days later) »