<    April 2017    >
Su Mo Tu We Th Fr Sa  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
00:11 pid1 joined
00:37 pid1 joined
00:50 Majiir joined
01:19 hahuang61 joined
01:39 enigma_raz joined
02:03 EyePulp joined
02:08 Guest96 joined
02:13 Guest96 joined
02:31 chipotle joined
02:37 jdelStrother joined
02:45 enigma_raz joined
02:54 edvorg joined
02:56 hndk joined
03:00 shinnya joined
03:16 pavelpopov joined
03:19 hahuang61 joined
03:49 Specialist joined
03:49 hive-mind joined
03:54 daxelrod joined
03:58 daxelrod1 joined
04:03 SkyRocknRoll joined
04:24 SkyRocknRoll joined
04:24 fakenerd joined
04:35 steeze joined
04:36 pavelpopov joined
04:43 EyePulp joined
05:20 hahuang61 joined
05:29 nathans joined
05:34 vchav joined
05:56 tavish joined
05:57 chipotle joined
05:59 rendar joined
06:22 tarkus joined
06:36 enigma_raz joined
07:00 minus joined
07:18 enigma_raz joined
07:21 hahuang61 joined
07:35 vchav joined
07:35 soveran joined
07:35 soveran joined
07:52 soveran joined
07:52 soveran joined
07:52 Mr__Anderson joined
08:00 soveran joined
08:00 soveran joined
08:12 soveran joined
08:30 Guest96 joined
08:32 bannakaf_ joined
08:40 enigma_raz joined
09:13 EyePulp joined
09:22 hahuang61 joined
09:31 efphe joined
10:01 vchav joined
10:05 edvorg joined
10:09 Guest96 joined
10:11 enigma_raz joined
10:13 mikecmpbll joined
10:13 soveran joined
10:13 dh1tw joined
10:26 edvorg joined
11:00 soveran joined
11:08 Guest96 joined
11:24 hahuang61 joined
11:42 cyborg-one joined
11:49 xco joined
11:50 <xco> hi, i’m using ruby and i have a class that looks like Cat < RedisModel … i want to ask how to find the field names of a redis model?
11:51 <minus> if your thing is a hash in redis: HKEYS. no idea how that translates to whatever ruby framework you're using
12:09 <xco> minus: thanks. and if it’s a set?
12:10 <minus> SMEMBERS
12:10 <minus> see https://redis.io/commands/ for all availble commands
12:12 shinnya joined
12:15 <xco> minus: thank you :)
12:50 vchav joined
12:59 EyePulp joined
13:02 soveran joined
13:07 tavish joined
13:09 chipotle joined
13:13 soveran joined
13:13 soveran joined
13:25 hahuang61 joined
13:31 bannakaffalatta joined
13:49 tavish joined
14:09 dh1tw joined
14:18 KennethWilke joined
14:20 felixjet joined
14:23 Specialist joined
14:37 ogres joined
14:41 soveran joined
14:41 mikecmpbll joined
14:48 GreenJello joined
14:50 steeze joined
14:55 steeze joined
15:26 hahuang61 joined
15:36 Jonuz joined
15:52 granitosaurus joined
15:52 <granitosaurus> Hey, could someone explain me what does the 0 mean in redis url like this: redis:// ?
15:53 hndk joined
15:59 <minus> granitosaurus: database id most likely
15:59 <granitosaurus> oh ok, so redis can have multiple databases?
16:00 <minus> yes, 16 by default
16:00 <granitosaurus> lovely! Thanks minus
16:00 <minus> they're numbered and the amount can be configured in the config file
16:04 tarkus joined
16:31 efphe joined
16:43 timg__ joined
16:44 soveran joined
16:53 <Jonuz> Hey, I want to a) "Find item by it's key" and b) "Find multiple items by value of property", should this be doable with redis? Here is example how items are stored right now https://paste.debian.net/926742/
16:54 <Jonuz> So in this case I can find item easily by key, but can I find items whose thread_id is 2?
16:57 jimeno joined
16:58 <jimeno> Hello. Is there any redis native type to store data structures like ["user1": ["pole", "liked!"], "user2": ["liked", "disgusting"]]? (comment's system)
17:05 svm_invictvs joined
17:08 swebb joined
17:12 dh1tw joined
17:13 <minus> Jonuz: create a set thread_id:2:messages with message ids. but if you need something like that redis might not be what you're looking for
17:14 <minus> jimeno: no, but you can e.g. json-encode the values of the hash
17:15 RemiFedora joined
17:16 <jimeno> minus: read today about using json encoding or pickle for that. What's the best choice?
17:16 <minus> redis doesn't care, it's up to you. json has the advantage of being readable
17:16 <minus> and of not being able to execute code
17:18 <jimeno> minus: any good documentation on how to pub|sub? I mean I cannot find any good resource on how to subscribe my userA to channels from userB and userC without infinite loops listening for messages
17:19 <jimeno> minus: yup, pickle has somewhat the kind famous pho object injection vuln :/
17:19 <minus> also, json works with other languages than python
17:21 <minus> jimeno: when you do pubsub on a redis connection you can't use it for anything else and you need to run it in a loop
17:23 <jimeno> minus: then, if I want to receive for example messages from all users I subscribe to, is it possible to implement that with redis?
17:23 <jimeno> I thought about when I follow userN, I subscribe to his channel
17:23 <jimeno> but if it must run in a loop... I'm out of ideas
17:24 <minus> do you also store messages in redis? if yes, check keyspace notifications, but that's a different story
17:24 <minus> how does your client look like?
17:25 <jimeno> minus: I thought about implementing a comments system, but for now I want to be able to receive notifications from the users I follow
17:26 <minus> but what's your client; a python app the user runs on their system and that connects to redis. or a website using websockets/SSE?
17:26 <jimeno> minus: my users've an uid to unique identify them, and when I follow userA (which uid is == 1), for example, my redis adds my uid to user:uid:1:followers
17:27 <jimeno> minus: python app that I run in separate ttys
17:27 hahuang61 joined
17:27 <minus> one process per tty?
17:27 <jimeno> tty_1 is userA, tty_2 is userB and etc
17:28 <minus> then on startup get the list of followed people, and subscribe to each of their channels with one redis connection (and optionally have another if you need to do other things)
17:29 <jimeno> minus: separated threads? (to be able to listen to the channel in a loop)
17:32 <minus> yeah, you'll probably need threads there
17:32 <minus> or an event loop
17:33 <jimeno> minus: will give it a try. Thank you very much!
17:43 daxelrod joined
17:45 timg__ joined
17:46 tarkus joined
18:07 dh1tw joined
18:25 minimalism joined
18:28 rendar joined
18:28 rendar joined
18:30 cyborg-one joined
18:41 hndk left
18:47 soveran joined
18:58 felixjet joined
19:14 barisyesilcicek joined
19:27 hahuang61 joined
19:28 tarkus joined
19:37 timg__ joined
19:48 soveran joined
20:03 tarkus joined
20:04 jgt1 joined
20:04 <jgt1> hey folks. I did a dumb thing. I did a GEOADD for about 1.2M records, but I got the LAT and LON backwards. Is there an easy way to flip them?
20:05 <badboy_> no, remove the key and re-add everything
20:06 <minus> it's just geohashed and added to a zset, right?
20:06 <minus> 1.2M records shouldn't take long anyway
20:07 <jgt1> it shouldn't take long, but I don't want to re-add everything from scratch, over the network
20:07 <jgt1> because over the network (against an API) it'll take over a week
20:08 <minus> ouch
20:08 <jgt1> I should be able to do it in place, or at least on disk
20:08 <minus> just shove the script onto the machine?
20:08 <jgt1> but, I'm a redis noob, and I'm not sure how to approach it
20:08 <jgt1> yeah, I guess I could script it
20:08 <jgt1> feels like a hack, but I guess that's the best I got
20:09 <minus> well, you'd need to fetch the data, decode the geohash, flip it and readd it anyway
20:09 soveran joined
20:11 <jgt1> ah, right, it's hashed
20:11 <jgt1> it doesn't store the LAT and LON vals anywhere as-is, right?
20:12 <badboy_> no
20:13 <minus> https://redis.io/commands/geoadd#how-does-it-work
20:26 soveran joined
20:26 soveran joined
20:36 soveran joined
20:40 chipotle joined
20:43 hndk joined
20:45 enigma_raz joined
20:45 dh1tw joined
21:10 vrfvufv joined
21:11 ogres joined
21:12 ws2k3 joined
21:28 hahuang61 joined
22:03 soveran joined
22:03 soveran joined
22:20 iamchrisf joined
22:24 enigma_raz joined
22:25 enigma_raz joined
22:29 pandeiro joined
22:40 Guest96 joined
23:00 enigma_raz joined
23:29 hahuang61 joined
23:37 xco joined
23:38 xco joined
23:39 xco joined
23:40 xco joined
23:40 xco joined
23:42 xco joined