« first day (1923 days earlier)      last day (3250 days later) » 

16:01
hallu
@ton.yeung lol
we've been over mongo many times here
I would be very surprised if you could convince somebody in this room (besides corvid) to use it
Can't convince me.
I use mongo
I'm still pissed I have ot use MySql for this one project right now (planning to convert to postgres in the future).
@Cerbrus ever use johnny-five (node lib)
16:04
Hrm, redis seems to be injecting a phantom object in my smembers results
[object Object],{"id":23,"user":"Archer","x":2,"y":25},{"id":23,"user":"Archer",
"x":40,"y":53},{"id":23,"user":"Archer","x":75,"y":79}
redis is flawless, ti's you
storing product data for a number of different divisions
I'm not sure what that first object is, but I didn't set it
mongoose
16:05
@rlemon I've used it for some SPI/I2C stuff
@BenFortune learning curve is low?
[object Object] looks like JS's toString() output, not at all realated to redis.
if I'm familiar with arduino programming already that is..
@rlemon Took me a while to get my head around it, but I'm a bit simple :P
just a very simple express api, being consumed by several applications ranging from coldfusion to node
user3119231
16:06
Totally agree with Ben Fortune's humor
@KevinB so do we, in prod. It's awful. :(
We've had like 2 DBAs quit over it so far and run into a really fun bug the last three mornings where sustained writes force it to isolate onto a single core.
What's awful about it? we haven't moved it to production yet, but so far it's been great being able to store the product data in a single collection rather than needing a relational db to store things like arrays of data within the product
we're relatively low traffic, don't really expect to have performance issues
@KevinB nested objects totally bone the storage algorithm, since it has to create a new copy
before WiredTiger, it never did cleanup, so your data files would just keep growing (we hit some 10TB+, of which maybe half was active)
old versions locked the entire collection (table) on writes
the replica stuff has a bug where writes to a secondary, even without guaranteed write consistency, will lock the other secondaries as well
16:09
what's the best package manager for front-end stuff?
from the limited testing we did, we aren't going to need the additional throughput. We'll likely throw some caching infront of it anyway and rarely actually reach mongo
the locking is still fairly broad-grained, so it's really easy to accidentally lock a whole collection or even a node
we have a dedicated AWS server for it
this is amazing 0.o
Analyzing fonts with NNs http://erikbern.com/2016/01/21/analyzing-50k-fonts-using-deep-neural-networks/
@KevinB absolutely cache. Mongo will not survive even light load without a cache.
16:10
Ahh I found out why -- redis data persists.
I need to run "FLUSHDB" when the server shuts down
The data only changes maybe once a week too, so there will be very little writing to it.
@KevinB just for argument's sake, look into Postgres' document DB
it has all the features of mongo, but is significantly faster and more stable
plus, Postgres is dead easy to set up (Mongo is not)
> Postgres is dead
- ssube, 2016
@ssube Holy shit, didn't know Postgres did nosql
Mongo also demands you boost file handle limits out of the box, because of how it fragments the data files
16:11
Will do. Need to re-look at what amazon offers as a service now, i think they've added a few new options since the last i looked
@BenFortune there's a mongo-to-postgres driver that lets you secretly replace mongo with a real DB
Postgres has much better support and is a million times more stable, but much harder to shard.
@ssube So you can use ORM's with it?
Mongo is, at scale, still super buggy.
@BenFortune yeah
The api is written for easy db replacement should we decide to switch to something else, so no big deal
Brb, migrating data.
16:13
We've been using mongo in prod for maybe 3 years now and not even at huge scale (two dozen collections with 100-2500 million documents each)
@rlemon I've only ever used node once, for school...
So, nope. :P
It's running on 6? 40-core boxes, I believe
@ton.yeung it does
postgres has a specific JSON datatype that stores as a hash and allows querying on keys and all that
Postgres' noSQL is also, for the same workload, faster than mongo: enterprisedb.com/postgres-plus-edb-blog/marc-linster/…
@ssube You got a link to that driver?
i can confirm that postgreSQL does noSQL db, but only after version 9.4
because that updates adds hstore and jsonb
or jsondb
@ssube does sadd not support pushing new objects?
16:16
not sure about the name
@SterlingArcher sadd has nothing to do with objects
@BenFortune no, can't find it casually
@ton.yeung it's included since the mid 9.x updates
@ton.yeung no. because hstore is a datatype.
it contain a db table with key => value
with postGis yes
lol @ Arduino IDE
@KarelG it's a hell of a lot like redis, there
shift + tab does nothing
what a POS
16:18
Redis is fucking confusing lol
I'm going to lunch
but with in-object querying
we're going to have ~ 4 collections with maybe 6000 documents in the largest, very small scale. like i said, just product data, no analytics or user data.
@SterlingArcher what part?
still, worth to mention: it's from a branch of our company. We just do QA stuff on their stuff
advantage: we get informed about newest stuff
@ssube the general logic I'm doing.
16:20
!! kebab or pizza
@KarelG Input not matching /(\d+)\s(\d+)/. Help: User-taught command: 'gives <>http://lorempizza.com/$1/$2#.png
@ton.yeung Input not matching /(\d+)\s(\d+)/. Help: User-taught command: 'gives <>http://lorempizza.com/$1/$2#.png
We had postgres in the past, like 7 years ago, but it was maintained by our IT department (very poorly) and crashed all the time so we moved all of our web stuff over to mssql because the web manager at the time understood it better than postgres
I need to be able to easily access every players game stats. Pushing and popping players from the game list is key, because players can leave, enter, or change races
@KarelG kebab
ok * orders kebab *
16:21
@SterlingArcher you don't push/pop with a set
that delivery prepares a kebab with the same size as a steering wheel :P
When a player moves, it will check redis, and if proximity of another player, send out a socket emission that says "bro I'm over here"
haven't really looked back at postgres since
it's add/remove on unique numbers
16:21
postgres is love
i'm a bit confused...i have use this example to get "Giovedi 21/01" with this : moment.locale('it');
document.write(moment().format('dddd DD/MM'));
@ton.yeung Depends of the software. But they've used Java (Android) and (bleh) PHP
but now if i have italian date in this format dd/MM/yyyy how can i convert in Giovedi dd/MM ?
16:23
??
> YoloDev
I'm not sure if redis is what I need
I might have to just make ajax requests to do what I need
@SterlingArcher it is, you're putting the data in wrong. Stop thinking about an array of objects.
16:24
I don't know how else to think of it lol
johnny-five won't connect to my board :/
a Game and Players
Arduino IDE and Codebender.cc have no issues
I'm about to make a little browser ascii roguelike in js.. Are there any js libraries that might make life easier? Like maybe something to help with drawing the ascii gui?
you get an array of players when you read a game and each player from redis
but you don't store it like that
16:25
@MarkusWerner you're using moment.js or something ?
that's not how document stores like to work
yes moment js
i used this code
moment.locale('it');
document.write(moment().format('dddd DD/MM'));
for getting Giovedì 21/01
but if i have a date as 21/01/2016
how can i pass it to moment?
i don't have experience with moment.js but check what Date can parse.
@ssube maybe that's what I need though
most of us doesn't i think. That's why nobody replied
16:26
@SterlingArcher keeping all of that in one blob is going to make your life much harder
relational DB or document
blobstore is full of blobblobblobblobblobblobblobblobblobblobblobblob
think about how you'd break down the game in a SQL DB: one row per player with a game column, probably
do the same thing with redis, but instead of player having a game, the game is its own thing with a set of players
heh, some people here suggested sterling to move to redis. He got stuck there and now i suggest: move to RDBM :P
16:28
the Game set in redis is what you'd get by SELECT playerId FROM players WHERE game=X
the Player hash in redis is the other columns of the player row
Each player comes from a different session, how would you get them all into the redis set?
that's it
@SterlingArcher when the player joins a game, add them to the set
@Lemony-Andrew yes
look at react portals
if that's what you mean
that's all you do
client.sadd(["game-1", socket.request.session.player.id], reply);
You mean this
@Lemony-Andrew like you mean rendering a modal for example outside of the current dom element you specificed for your react app?
@SterlingArcher why is that in an array?
starring to look at htis later
Because that's how the guide I'm reading said to use it
16:29
@SterlingArcher with all the drivers I've used, that's wrong
@BenjaminGruenbaum yeah it's pretty handy, I run a few react apps inside of a large monolithic app, so I needed access outside of that for rendering modals, tooltips, ect.
using a portal is pretty nice/easy
Noted, thanks
Maybe that's why
that's how sets in redis work
same as Java's Set<Integer> here
16:31
I think that worked...
Stupid bad guides
user47589
are AngularJS questions welcome here?
man I love React, I will never work another job in the next at least 3 years that doesn't use react
until the next new cool hip web component type thing comes out ofc.
!!s/react/lamp/ig
@rlemon man I love lamp, I will never work another job in the next at least 3 years that doesn't use react (source)
eh I dont love lamp :p
16:35
but.. g
lol my game doesn't appear to work in internet explorer
oops
@SterlingArcher even edge?
edge isn't internet explorer!
It's not
IE is dead
Even the other browser that's new developed by the internet explorer team?!
16:36
@Loktar haven't tested edge, I think I have like.. IE10 on my computer? dunno
ah yeah I wouldnt worry about 10 anyway
9/10 should be dead soon
even at work there are rumblings for dropping 9 really soon
and 10 soon after
9 isn't going away anytime soon. 10 will, because it never got big.
^ not to be confused with 9/11
Yeah I'm not worried about it. My game is ES6 so fuck legacy
hopefully we'll drop both within the next year or so...
16:37
!!afk food
@ssube IE9 is pretty low in usage, gs.statcounter.com/…
IE9 didn't catch on as much as people thought, IE8 was the huge one
that's good
in our customer-base, IE8-10 account for like 85% of traffic
it'll be a while
IE10 released a year later I think?
@ssube ouch you still support IE8?
I think we dropped 8 late last year
nice, yeah I mean 9 isn't terrible
definitely better than 6/7/8 by a large amount.
but it still sucks supporting it.
16:41
You're a wizard, Harry.
user47589
i did
You're a gizzard, Gary.
@Amy Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
You're a lizard, Larry
user47589
16:43
I tried to format it. i can never get formatting to work here
;_.
user47589
    this.$scope.$on("signalr:connected", (e: angular.IAngularEvent, toState: angular.ui.IState) => {
        this.$scope.$apply(() => this.isApiConnected = true);
        console.log('connected');
    });
You're a scissors, Scary.
There are demons on the first floor
man that image isn't complete
http://i.imgur.com/Wap9zyv.jpg
http://i.imgur.com/BeecEDv.jpg .
pun ruined ;_;
user47589
16:44
i know. I wouldn't have come here if I hadn't looked.
user47589
how do i get the view to notice the variable changed?
user47589
everything says to use $apply, but $apply isn't allowed here
user47589
i know how to check if i'm in a digest cycle.
user47589
$scope.$$phase
user47589
i've already looked at that.
user47589
16:47
that wasn't in the code i pasted, no.
user47589
how do i get the view to notice the scope variable changed if i can't use apply?
user47589
simply setting the variable directly doesn't work
Office got a rollerboard; that shit is fun
@ton.yeung The Gods of Wikipedia did not bless us
user47589
    this.$rootScope.$on("signalr:connected", (e: angular.IAngularEvent, toState: angular.ui.IState) => {
        this.isApiConnected = true;
        console.log('connected');
    });
user47589
that doesn't work either. the view doesn't see the change.
user47589
it might be

« first day (1923 days earlier)      last day (3250 days later) »