<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 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  
30
00:12 gradetwo joined
00:26 saurabhjha joined
00:42 soveran joined
01:58 saurabhjha joined
02:19 saurabhjha joined
02:19 cyborg-one joined
02:27 gradetwo joined
02:30 edvorg joined
02:39 saurabhjha joined
02:44 soveran joined
02:55 gradetwo joined
03:00 saurabhjha joined
03:13 hphuoc25 joined
03:21 gradetwo joined
03:26 gradetwo joined
03:27 Guest96 joined
03:41 saurabhjha joined
03:43 hphuoc25 joined
03:47 iamchrisf joined
03:48 saurabhjha joined
03:52 fakenerd joined
03:57 saurabhjha joined
04:00 gradetwo joined
04:01 saurabhjha joined
04:05 gradetwo joined
04:08 wlightning-fuel joined
04:10 gradetwo joined
04:12 saurabhjha joined
04:20 saurabhjha joined
04:30 saurabhjha joined
04:31 wlightning-fuel joined
04:38 edvorg joined
04:38 RemiFedora joined
04:41 gradetwo joined
04:44 fakenerd joined
04:46 soveran joined
04:47 gradetwo joined
04:52 gradetwo joined
05:00 saurabhjha joined
05:02 bannakaffalatta joined
05:11 saurabhjha joined
05:25 WindChimes joined
05:33 aruns joined
05:35 fakenerd joined
05:37 gradetwo joined
05:45 gradetwo joined
05:50 gradetwo joined
05:53 soveran joined
05:53 soveran joined
05:58 Guest96 joined
06:10 gradetwo joined
06:12 hos7ein joined
06:15 gradetwo joined
06:19 ogny joined
06:19 ogny joined
06:20 gradetwo joined
06:23 fakenerd joined
06:27 fakenerd_ joined
06:31 gradetwo joined
06:35 fakenerd joined
06:44 vchav joined
06:44 hazardous left
06:45 winem_ joined
06:48 tarkus joined
06:50 gradetwo joined
06:53 rendar joined
06:56 gradetwo joined
07:08 SkyRocknRoll joined
07:16 gradetwo joined
07:21 gradetwo joined
07:36 gradetwo joined
07:41 gradetwo joined
07:47 gradetwo joined
07:50 efphe joined
07:52 gradetwo joined
07:57 ogny joined
07:57 gradetwo joined
08:01 mikecmpbll joined
08:01 Dave_R joined
08:02 gradetwo joined
08:02 fakenerd joined
08:07 gradetwo joined
08:07 scottc_ joined
08:15 gradetwo joined
08:16 fakenerd joined
08:21 Mr__Anderson joined
08:21 Guest96 joined
08:28 gradetwo joined
08:33 gradetwo joined
08:38 gradetwo joined
08:41 nathans_ joined
08:43 gradetwo joined
08:43 programmingcool joined
08:48 gradetwo joined
08:49 nathans__ joined
08:54 gradetwo joined
08:59 gradetwo joined
09:04 gradetwo joined
09:05 fakenerd_ joined
09:05 Guest96 joined
09:12 fakenerd joined
09:16 fakenerd joined
09:21 gradetwo joined
09:22 fakenerd_ joined
09:26 gradetwo joined
09:31 gradetwo joined
09:31 SkyRocknRoll joined
09:33 fakenerd joined
09:44 gradetwo joined
09:52 gradetwo joined
09:57 gradetwo joined
10:00 fakenerd_ joined
10:00 sz0 joined
10:02 gradetwo joined
10:12 soosfarm joined
10:13 fakenerd joined
10:20 fakenerd_ joined
10:23 gradetwo joined
10:26 kiran_ joined
10:27 soveran joined
10:27 soveran joined
10:28 gradetwo joined
10:33 gradetwo joined
10:41 gradetwo joined
10:46 gradetwo joined
10:51 gradetwo joined
10:56 gradetwo joined
11:07 gradetwo joined
11:16 gradetwo joined
11:16 drbobbeaty joined
11:21 gradetwo joined
11:27 gradetwo joined
11:33 gradetwo joined
11:38 gradetwo joined
11:41 Guest96 joined
11:43 gradetwo joined
11:45 Guest96 joined
11:52 chipotle joined
12:04 fakenerd joined
12:08 kiran_ joined
12:14 edrocks joined
12:25 ogny joined
12:25 ogny joined
12:31 KennethWilke joined
12:45 aruns joined
12:46 averythomas joined
13:07 EyePulp joined
13:22 ember3 joined
13:23 <ember3> hi, has anyone here tried patching SETBIT/GETBIT to use getLongLongFromObjectOrReply instead of getLongFromObjectOrReply?
13:23 adac joined
13:24 <ember3> 2^31-1 isn't enough for my use case, unfortunately
13:47 al-damiri joined
13:58 Mr__Anderson joined
13:59 bannakaffalatta joined
14:05 <badboy_> ember3: likely a limitation because of the length-limit on objects
14:07 felixjet joined
14:15 felixjet joined
14:17 daxelrod joined
14:21 <ember3> badboy_: yes, it appears Strings can only be up to 4 gigabits. so the real question is has anyone patched that as well
14:23 <badboy_> did we ever really lift the 500mb limit?
14:24 <badboy_> or do we just not support >500mb input protocol-wise, but 4gb for the total length? something like that I guess
14:37 daxelrod joined
14:38 <adac> When rdb was enabled, and I then set also AOF to enabled ind the redis config file and restart the redis service. Does the old stuff from the rdb then copied over to the AOF file?
14:40 <Habbie> last i read, it was easy to lose all your data in such a switch if you are not careful
14:40 <Habbie> google gives lots of results on it
14:40 <badboy_> Redis will load the AOF if one present and otherwise load the RDB
14:47 iamchrisf joined
14:52 <adac> badboy_, Habbie ok thanks. Will read a bit more about this. I proobably will birng up a new redis instance and copy the stuff over
14:52 <adac> *bring up
14:54 <ember3> badboy_: particular use case is a large bloom filter, so there are cases where larger strings would help even without protocol change
14:54 <badboy_> ember3: yes
14:55 <ember3> feels like someone must have patched this for their own needs before
14:57 mstaack joined
15:09 <adac> RDB is always enabled by default, right?
15:11 <minus> yes
15:12 <minus> well, in the default config provided. it's not if you don't provide a config
15:14 <adac> minus, thanks!
15:14 wlightning-fuel joined
15:22 bannakaf_ joined
15:27 edvorg joined
15:27 FunnyLookinHat joined
15:28 shinnya joined
15:42 edvorg joined
15:45 ogres joined
15:47 edvorg joined
15:49 felixjet joined
15:52 svm_invictvs joined
15:53 efphe joined
15:58 humboldt joined
15:59 <badboy_> minus: it is by default
15:59 <badboy_> save defaults to "3600 1 300 100 60 10000" and dbfilename to dump.rdb
15:59 <minus> badboy_: even without config?
16:00 <badboy_> yes
16:00 <minus> oh, you're right, there's a dumprdb in my home dir
16:02 orbyt_ joined
16:05 King_DuckZ joined
16:07 <King_DuckZ> hi, I'm writing a pastebin program and I want to save the pastie, its language and its max lifetime, and I'm wondering if there are guidelines to chose between a hash and simple values in redis
16:08 <King_DuckZ> like hmset abcd pastie "" max_ttl 1000 lang "cpp"
16:09 <King_DuckZ> vs set pastie:abcd "" set max_ttl:abcd 1000 set lang:abcd "cpp"
16:11 <minus> hset id paste=... lang=cpp; expire id 1000
16:12 <minus> definitely not store it as separate keys, there's no benefit in doing so in my eyes
16:14 <King_DuckZ> minus: I need it because I want to have the option that when somebody accesses a pastie its ttl gets reset, so I need to remember how much it was
16:14 <King_DuckZ> hashes sound like a better idea btw, so I only have to expire 1 item
16:15 <King_DuckZ> I only thought of that seeing your example :p
16:15 <minus> oh, you can't query expiry, interesting
16:16 <minus> well then just add a expires_at=<date>
16:16 <minus> ttl itself is pretty meaningless without a date
16:17 <King_DuckZ> don't you need seconds for the expire command?
16:17 <minus> yes
16:17 <minus> but for storing the expiry in the hash a date might make more sense
16:19 <King_DuckZ> hm in the pastebin page users will chose 1 day, 1 week etc, not an end date
16:19 <minus> yeah, sure
16:19 <minus> depends on what you want to display, i'd say. saving a creation date + ttl works too
16:21 <King_DuckZ> ah I see, I didn't think of displaying that info... might be useful tho... and I also need an autoreset=yes/no
16:21 <* King_DuckZ> takes note
16:21 <King_DuckZ> I'm looking forward to comments btw :) https://github.com/KingDuckZ/tawashi
16:22 <minus> lol, C++
16:23 <minus> ew, GPL
16:23 <King_DuckZ> yup, it's going to fly on old raspberry pi models ;)
16:24 <minus> but sounds like a good project to do in a new language
16:25 <King_DuckZ> there's plenty in other languages, sprunge, hastebin... they all have some drawbacks tho
16:25 <minus> i'd write it in D
16:25 <minus> to learn D
16:26 <King_DuckZ> the only thing I'm worried about is the security level, since I'm no expert in that... I'm gonna sanitize utf8, but that's as far as I can take it :/ hopefully people will jump in and contribute
16:26 <King_DuckZ> I thought of D, I did some... but it's always tricky on ARM imo, and .so support is so and so... that's why I still don't use it much
16:26 chipotle joined
16:26 <minus> well, the only thing you need to consider is display; and for that you just need to escape HTML entities
16:27 <minus> ah, never used D myself
16:27 <King_DuckZ> hm escaping.... I didn't think of that either! that's a good hint
16:29 <King_DuckZ> minus: https://alarmpi.no-ip.org/gitan/King_DuckZ/jumping-in-d I put comments on the things that confuse me the most about D (coming from c++), hopefully it's not too hard to follow :)
16:30 <King_DuckZ> I really wrote that just for the purpose of showing D to total beginners
16:30 <King_DuckZ> besides that, it's not a real project
16:34 svm_invictvs joined
16:36 <minus> so, what's tawashi stand for?
16:38 <King_DuckZ> just "scrubbing brush" in japanese... I like the sound of it I guess :p
16:39 <minus> that's an odd word to pick :D
16:39 <King_DuckZ> I can't always come up with super-smart names like IncRedis, y'know... :D
16:40 <minus> ;D
16:40 <minus> man, that enum lib you're using looks scary
16:43 <King_DuckZ> are you looking at cgi_environment_vars? that's amazing, isn't it? all build time
16:47 <minus> i was looking at the lib directory
16:50 <minus> you, it'd be cool if you could store data in enums, like in java. or if you could have them be an algebraic data type like in rust
16:51 <minus> but no, enums in C++ have to be almost useless </rant>
16:52 <King_DuckZ> with better-enums you get a string/int mapping (or int/string), it's build-time only but still better than the naive enums o.O
16:54 <minus> i've built that with a codegen + runtime already at work
16:59 minimalism joined
17:07 felixjet joined
17:08 <King_DuckZ> idk java, but if you store stuff at runtime then it's a map, and it comes with a performance price
17:09 <King_DuckZ> if you do as I did, with a vector or array, you can still store whatever you want and you only pay for what you use
17:10 felixjet_ joined
17:11 <King_DuckZ> and the string-to-index part is done at build time, so something like my_vec["my_key"] simplifies to pointer+offset in assembly (or at least it should), I don't think you can get any faster than that
17:22 crobbins joined
17:23 <crobbins> @badboy_: i see you responded to my previous question
17:23 <crobbins> you asked, "did you set a maxmemory limit and policy?"
17:24 <crobbins> i'd have to check, but i thought ElastiCache took care of that to some degree
17:24 <crobbins> will the policy help to ensure that expired items get dropped first?
17:25 felixjet joined
17:25 <badboy_> expired items will be erased in any case, but a policy can handle the case that you still run out of memory
17:30 tavish joined
17:33 cyborg-one joined
17:50 felixjet_ joined
17:55 <crobbins> @badboy_: hmm, it seemed intuitive that expired items would get evicted before unexpired items, but upon understanding the innards of redis a bit more it seems that may not really be the case
17:55 <crobbins> we're stuck with waiting on the randomized garbage collector to do its work, or write some sort of garbage collector ourselves
17:59 aruns joined
17:59 wlightning-fuel joined
18:01 aruns joined
18:15 wCPO joined
18:27 adac joined
18:31 felixjet joined
18:39 chatter291 joined
18:39 <chatter29> hey guys
18:39 <chatter29> allah is doing
18:39 <chatter29> sun is not doing allah is doing
18:39 <chatter29> to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger
18:42 King_DuckZ left
18:43 <minus> hail satan
18:46 <tmberg> =)
18:53 minimalism joined
18:57 indistylo joined
19:02 iamchrisf joined
19:03 aruns__ joined
19:03 hos7ein_ joined
19:06 indistylo joined
19:11 hive-mind joined
19:25 tarkus joined
19:25 rendar joined
19:25 rendar joined
19:31 ember3 left
19:45 Mr__Anderson joined
19:48 edrocks joined
19:53 treehug88 joined
19:54 felixjet_ joined
20:10 wlightning-fuel joined
20:28 hahuang65 joined
20:37 winem_ joined
20:37 GreenJello joined
20:37 wlightning-fuel joined
21:20 cyborg-one joined
21:35 map_reduce joined
22:06 felixjet joined
22:51 underyx joined
22:54 mikecmpbll joined
23:02 edrocks joined
23:06 drbobbeaty joined
23:18 fakenerd_ joined
23:30 bannakaffalatta joined
23:36 crobbins joined
23:37 orbyt_ joined
23:51 daxelrod joined