« first day (1595 days earlier)      last day (3356 days later) » 

3:00 PM
It's a full blown end-to-end black box testing framework for servers. Allows you to mock all kinds of external calls from your server (http based APIs, memcached, redis etc.)
plus the usual response code etc. stuff
 
Hi Guys, Good Evening.
 
hi
good morning
 
good afternoon
 
Hi FlorianMargaine, IvoWetzel you guys have an idea on Angular Js ?
 
3:10 PM
it's a thing
 
And it can be used.
 
To make wobsites
 
wob 4.0
better than woks
worse than wookies tho
 
anyone!!
 
y u no shorter, ES6? D:
1
A: How to loop javascript object of objects and find a property

ssubeI would use something like: var test = { obj: check, oi: "5" } var lord = { sol: "5" }; var holand = { vol: "try", mice: lord } var second = { bol: "true" }; var check = { fol: holand } function getDescendent(base, steps) { var step = base; for (var i =...

 
3:14 PM
@NickDugger the reason in the chat?
 
happy Monday
 
@Loktar Si, senior
 
@lakshmi you must ping benjamin he is oracle of angular knowledge.
 
@NickDugger I think it would be weird if someone made a unity game for example
 
@IvoWetzel o/
 
3:15 PM
also its in the JS room so it seemed logical
 
@Loktar I did restrict engines to open source only
 
/me heads to meeting
@NickDugger thats good to know
 
@darkyen00 hey there
 
@Loktar Unity.supportedLanguages.contains('JAVASCRIPT') === true;
 
also hi @IvoWetzel!!
@darkyen00 I know
 
3:15 PM
but i get your point
 
but its not strictly js :P
 
somebody with that skill
and somebody with the skill to make a thing like that, without unity
 
@darkyen00 s/===/==
 
unfair competition.
@IvoWetzel ever fixed a fat finger ? on touch.
 
it wasn't quite JS, last I checked
 
3:16 PM
@ssube always ===
 
btw: I've need to put up some docs and the example game (a top down laser shooting thingy) but I've written up a lib for FPS Like Multiplayer Games github.com/BonsaiDen/fareon
 
I am having a weird problem,
WkWebview is not compensating for fat fingers
so i wrote my own implementation
 
@darkyen00 I'm afraid I'm not doing much touch stuff nowadays
 
:-(
:-( but but but you used to rant iOS safari so much :'(
 
@ssube you can do both JS and C# with unity
 
3:17 PM
sob sob
function visit(node, boxOfTouch, level){
  var children = node.children;
  var thisElementsBounds = node.getBoundingClientRect();

  var x_y = [thisElementsBounds.left, thisElementsBounds.top];
  var w_h = [thisElementsBounds.right - thisElementsBounds.left,
             thisElementsBounds.bottom - thisElementsBounds.top];

  var boundingBox = aabb(x_y, w_h);
  var doesThisQualify = boundingBox.intersects(boxOfTouch);

  if( doesThisQualify === true ){

    var matchedElements = [];

    if( children.length !== 0){
@IvoWetzel ps you can see what i am doing :->
 
@FlorianMargaine do they have a full JS implementation now? They used to use some weird VM with nerfed APIs, IIRC.
 
@ssube oh yeah, same with C# iirc
 
Similar to what Pentaho uses for their JS, but not as atrociously outdated.
 
not sure though, I only played with unity... what, 4 years ago?
 
yeah, it's been a while
 
3:20 PM
@IvoWetzel Do you have something for compensating the lag of objects that are created by the player but not instantly (like grenades)?
 
same
 
I think it would have to appear delayed from the view of the player that creates it
So, no input prediction
 
@copy Currently I don't have something like that in my prototype, but I imagine you could fake it up with some local animation stuff etc. (At least that's what they did in Halo Reach judging from a GDC talk)
 
@copy why would you delay it for that player?
seeing your own grenades immediately is more important for UX than seeing someone else's exactly as they throw
 
@ssube If you put them in the world immediately, they are not synchronized with the server (unlike movement and "instant" shooting, like from a gun)
@IvoWetzel Ugh, that's annoying to implement
 
3:25 PM
@copy no, but putting them in the world immediately and then notifying the server, then allowing them to move on the next sync, at least means they appear immediately
maybe they jerk a little, but you don't have to wait ping+sync ms for them to show up
especially important if they glow
 
In Halo Reach they designed the throwing animation in a way that it covers the granade for some timeframe
From what I remember they made it long enough to cover up the "usual" lag
other option: Throw the locally, and then integrate with the server position over time
 
That doesn't work for me because I want to have slow-moving bullets
 
@IvoWetzel this is by far the best solution, visually.
the client should be capable of continuing the sim on its own for at least a few seconds, in case the server times out once or twice
 
@IvoWetzel That's good, but it will still be off quite a bit when seen by other players
 
@copy no
because they all see a "old version" of the world
 
3:28 PM
once you regain contact, you either use the server's truth right away or merge the two (visually) until you're back in sync with the server
 
I implemented the unreal / source engine network model
Local Input Prediction / Everyone else is interpolated to (not from) their latest server state
That means if you got 250ms lag, you'll see everyone else like they were 250ms ago
This is then removed when shooting etc. since the server keeps N old world states and calculates your firing event with your local time against these states
common trade off in this model is of course, that people with high lag might be able to shoot you right after you've taken cover
because on their client you're still not behind that box
 
@IvoWetzel can't you fix that by always comparing from the appropriate lag state to the current state?
 
But the upside is that headshots actually work well in this model
 
so you are behind the box, they just couldn't see it
 
Sadly you have to choose one of the two
 
3:31 PM
@ssube Then you'd have to aim ahead of where enemies are moving
 
Either your headshots work point on, or you can always take cover perfectly
The former is usually more annoying to players if it doesn't work
 
@IvoWetzel I'm not sure that works, but I can't figure out what would be wrong right now
 
@copy yep, which a) you should do anyway and b) is predictable and correct, where as comparing to the old state is simply incorrect (for the player being show/with lower lag)
otherwise you could easily run a machine with low lag and a machine with an enforced 300ms, and buy yourself 250ms+ of prescience
 
I'm trying to dig up the article which explained the algorithm from which I implemented it
 
supacheat, if you can watch both monitors
 
3:34 PM
@ssube It's not predictable, it depends on the lag you have
 
that's pretty much the way my implementation works too, still you have to either favor the shooter or the person trying to take cover
Imagine the screenshot with the hitbox and add a box infront of the character
 
@CSáµ  school
 
The local guy clearly hit him, but the guy behind the box might be "Well wtf? How could he shoot right through that crate!"
You can't solve that, without reducing the overall lag through better connections
One side has to be "right"
 
@copy damn nice article!
 
guys I have a meteor problem :\
 
3:40 PM
@corvid is it moving towards earth
 
I need to name a library that does, roughly, null coalescing (the ?? or ?. operators in C# or Groovy, respectively), but for JS.
 
If you favor the shooting guy, him adding lag might make targeting a bit easier but everything else (grenades, vehicles) we'll be a lot hard for him. If you favor the guy behind the box, adding more lag on his side will make him extremely hard to hit for everyone else. In the first scenario, the guy might score a few more headshots, in the latter one, he can go on a rampage because you'll have a really hard time killing him. That and the fact that people want their headshots to work,
is the reason most net codes go with the approach of favoring the shooter
 
@IvoWetzel I suppose more kills makes the game seem more fun, even if a few are questionable
keeping things more dynamic and people on their toes distracts from the occasional "did that really hit me?"
 
Of course, missing every second shot would we a very bad experience
 
@copy nice.
 
3:41 PM
Yes, most of the experience is really about covering up shit
 
user406009
@ssube You are talking about an Option library?
 
Back in my day you just shot in front of the enemy.
250 ping meant you needed to lead your target
 
they talk a lot about how they cover up the lag by tweaking gameplay / animations
 
@Lalaland not quite. Something where you can go dig(obj, "prop1", "prop2", "prop3") and it will return obj.prop1.prop2.prop3 and do the null checks.
 
@Loktar I've played like that a lot
 
3:43 PM
@ssube /cc @BenjaminGruenbaum wasn't there something for this in ES2015?
 
But games like Awesomenauts handle lag quite decently
 
@FlorianMargaine No, you're thinking C#6
 
ah.
I thought es had something similar
 
Also swift, and Scala
 
user406009
That feature is in other languages as well, like Clojure.
 
3:43 PM
@FlorianMargaine I have a few nice implementations of it already, so I really just want to merge them, write tests, and publish it.
 
Yeah, and Clojure too
 
But I need a name, and coalesce.io is taken.
 
user406009
I know it's in immutable.js as well.
 
@ssube You'll need a disclaimer that that method breaks code when using Closure Compiler's advanced optimisations
Because it renames properties
 
@copy this is true. You can mark properties as exported so it won't, can't you? Seems like the best workaround you can get.
Or I could get really clever and implement it as a transpiler and actually use the ?. operator, but that seems... sketchy
that'd make it work with closure, since it would turn into a chain of null checks, and could be renamed in the same way
 
3:46 PM
@ssube Yeah, or quote it
 
@copy quote what now? which bit?
 
obj.renamed vs obj["not_renamed"]
 
oh, right. If it's just a lib, it will use obj["prop1"], which I imagine closure can handle np.
If I got way too clever and made it an operator, then stuff, things, bleh
disunirregardless, I have multiple implementations, but no name that isn't already taken
ifdot?
 
room topic changed to JavaScript: Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angular is on topic here stop asking. Don't ask to ask just ask. [cereal] [david-programming] [ecmascript] [es6] [javascript] [we-so-excited]
 
Can be misread as idiot
 
3:51 PM
(Just made the rules part a link)
room topic changed to JavaScript: Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angular is on topic here stop asking. Don't ask to ask just ask. [cereal] [david-programming] [ecmascript] [es6] [javascript] [we-so-excited]
 
yeah, I don't like it much. coalesce, dig, qdot, and anything like that were taken.
 
(And the goo.gl one too)
 
@ssube koaleszieren
 
is it mandatory for the room description to be in italic?
 
yes
 
3:54 PM
@copy or coalesce crossed with koala...
then I could have a clever koala picture
koalesce, koalaesce, or null-koala?
 
anyone here ever do pair programming...?
 
goooood morning (ugt)
 
they are talking about trying it out here
and I cringe.
 
@Loktar quit. Today.
 
@ssube koalaesce
 
3:59 PM
haha yeah man I seriously have no desire to do it
I've read articles on it and most seem against it
 
@Loktar I'd like to try it some day
 
@Loktar it's great when you're teaching someone. Otherwise, unit tests should be your "pair"
 
beeeches
 
@Shmiddty GOOD MORNING BRUH
Its FRiiiidaaaay
 
bruh bruh the morning is good
 
4:03 PM
@IvoWetzel The license text and title are contradicting
 
ugh stupid copy pasta
get out of there gpl
 
Good choice
 
fixed
it's now MIT and matches the LICENSE file
 
posted on February 27, 2015

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} For a limited time only! We're selling the bird auguries comic as a

 
hello everyone...in kendo ui what does it mean the data-bind?...i´m seeing an example of an imput and it has a type ...a id and data-bind...what does it do?
 
user1596138
4:14 PM
@HarshalCarpenter Hahahahahaha that is the best GTA clip I've ever seen!
 
user1596138
@SterlingArcher have you seen this??
 
I won't deny it
 
user1596138
@FlorianMargaine wow
 
except @Loktar's wife
 
user1596138
4:20 PM
Hey I've seen my sister do >30mph on a board. I can't but she can lol
 
I saw your sister, too
 
user1596138
They go to Chicago and such for races. But I don't think they ever went to Texas ;P
 
I was gonna propose another maybe, but I'll just end this here... lol
 
user1596138
@NickDugger what are you woking on recently
 
user1596138
!undo // can'ttttt
 
4:29 PM
@Jhawins [woking](http://woking.urbanup.com/3810758) a small southern town, with about 62,000 inhabitants, is actually not as shit as the 2nd description.
cinema, pool in the park, 25 min train journey to LDN, supermarkets, shopping centre, theatre, colleges and schools are some of the greaaaat attractions.
yess, populated by a lot of chavs, but there are other subcultures within this town.
 
@Jhawins redoing all of houston.thegreensheet.com (What's on my local is infinitely better than what you see on the current url)
 
user1596138
@NickDugger What's there isn't that bad lol so many moving things tho
 
I'll screenshot
 
user1596138
I like the reader (even tho it's flash)
 
@rlemon link to your dark SO theme?
 
user1596138
4:32 PM
issuu
 
user1596138
I only know of that one
 
user1596138
Not to steal his ability to respond on his own or anything...
 
@Jhawins ^
 
user1596138
4:34 PM
@NickDugger Nice looks pretty clean. Is gallery view the only option? :P
 
What you can't see in that screenshot is the awesome 3D flip effect when you hover over a listing
@Jhawins Nah, there's this mode, and a simpler list view mode
 
@FlorianMargaine haha
 
user1596138
Nice I hoped so. good job bro
 
@NickDugger that looks really nice
did you design the whole thing?
 
@Loktar Nah, we had a designer, but I did have a lot of input/sway on the whole thing
 
4:36 PM
ah nice, yeah it looks really good
 
My database is old, so I get duplicate/old listings
 
user1596138
Better than Craigslist lol
 
^ for sure
I'd troll the casual encounters section of that site instead of craigslist anyday
 
user1596138
Haha
 
user1596138
So gross
 
4:39 PM
One of our back end guys keeps comparing us to craigslist... Well, not anymore, but for the first few months of him being here, he wanted to turn us into cragslist lol
 
hahaha
 
Question: Is there a way in Node to run a query on a SQLite database without loading all the results into memory? I've done some googling but I haven't found anything. I'm not sure what terms to use.
 
@SpencerRuport what do you want to do?
 
@Loktar You only risk the lightweight STDs there, I'm sure. Unlike craigslist where you'll get AIDS.
 
@Shmiddty yeah the more refined people would use the above site for sure
and hell maybe people under 60 so bonus!
 
4:40 PM
Here's a place where I can get naughty that doesn't look like it was made by a college student in a weekend!
 
user1596138
@NickDugger We have a local version of you guys (it seems) autorv.com but their site is terrible lol. They tried to become like craigslist didn't work out
 
It's funny, actually... our market is generally the impoverished...
 
@NickDugger poor !== unrefined man
 
Fair enough
 
my spitoon is solid gold, bitch
 
4:41 PM
lol
 
@FlorianMargaine - I have a query that returns a lot of records and I'm curious if there's a way to limit how many of the records are loaded into memory on the Node side. I know I can put a range on the SQL query.
 
user1596138
@Shmiddty haha
 
@Jhawins We've been around far longer than Cragslist, in print form. We've had a really shoddy past with the web, but since I got here, and am amazing, we have a real website going up soon lol
 
caviar tastes on a tuna budget
 
user1596138
There are spitoons at the courthouse here. Like 4 of em I've seen
 
4:42 PM
@SpencerRuport why don't you put a range in the SQL query then?
 
I can't see how anyone actually enjoys chew
 
user1596138
@NickDugger Yeah the people I linked are the same. Mostly print
 
too much mess and gum cancer
 
@FlorianMargaine - I'm just curious if it's possible.
 
user1596138
Except they don't know how to Dugger
 
4:42 PM
teach me how to Dugger. teach me teach me how to Dugger
 
@SpencerRuport it doesn't make sense. The query just returns what you tell it to.
 
user1596138
^
 
user1596138
I had a boss named Doug once. I tried to make that joke and it didn't go over well
 
@FlorianMargaine - I know it doesn't.
 
user1596138
Wait my current boss' name is doug too..
 
@FlorianMargaine - But does Node have a way to load one record at a time or does it always just load all the results and let you iterate through them in memory?
 
user1596138
@Shmiddty People that smoke for the buzz
 
user1596138
Most the people I know that chew do it because they're ridicukously addicted to the nic and cigs aren't enough
 
@SpencerRuport you have generators to load one record at a time. However, it's better to run the SQL query only once, so it means you have to load all the records in memory.
 
user1596138
@SpencerRuport IO.js has generators lol
 
4:45 PM
@Jhawins wats a ridicukously?
 
user1596138
@Shmiddty A big hairy cock typo
 
freudian dick slip!
 
user1596138
lmao
 
@FlorianMargaine - Can you point me to an example? Like I said I tried googling it but I couldn't find anything
 
@SpencerRuport I'm saying that you need to run the SQL query once. So yes, it's loaded in memory.
 
4:48 PM
Ah okay
 
@SpencerRuport you could do while (row = query()) { /* foo */ } to have one record at memory only, but it's very inefficient
 
Thanks
 
4:58 PM
Ok, so I have read for loops are bad.. whats the best way to add values to an array. For example I have a total number of things and an empty array. Whats the best way to add the new things to the array
man I can't even word that how I want.
 
Hi, everybody! I have a question that will probably get closed as a subjective question, so I'm going to ask it here.
 
@Lucy 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.
 
user406009
@Loktar For loops in javascript aren't bad.
 
for(let i = 0; i < thingtotal; i++){
   someArr.push(something + i);
}
 
user406009
For-in loops are the ones that can be tricky.
 
4:59 PM
whats the "es6" way to do that
 
OK. I'm looking for suggestions on the best language to use to build a SUPER SIMPLE web app that has a VERY small footprint. I mean, the server will be running on a small electronic device, so no Tomcat, etc. We're thinking HTML5 and JavaScript.
 

« first day (1595 days earlier)      last day (3356 days later) »