havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
DeeJayh has quit [Ping timeout: 240 seconds]
DeeJayh has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
mrconfused has quit [Ping timeout: 272 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has joined #ruby
skweek has joined #ruby
bernd27 has quit [Ping timeout: 240 seconds]
Mrgoose has joined #ruby
duderonomy has joined #ruby
bernd27 has joined #ruby
<Mrgoose> anyone know how to get debug log info from a ruby grpc server
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
coderphive has joined #ruby
jgt3 has quit [Ping timeout: 260 seconds]
go|dfish has joined #ruby
duderono_ has joined #ruby
bambanx has joined #ruby
duderono_ has quit [Client Quit]
duderonomy has quit [Ping timeout: 260 seconds]
fusta has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gusrub has joined #ruby
quiller has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
quiller has quit [Client Quit]
cam27 has joined #ruby
quiller has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
s2013 has joined #ruby
gusrub has joined #ruby
skweek has joined #ruby
bronson has quit [Remote host closed the connection]
joelwallis has quit [Ping timeout: 246 seconds]
maddamxx has joined #ruby
gusrub has quit [Remote host closed the connection]
bronson has joined #ruby
charliesome has joined #ruby
maddamxx has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zacts has quit [Ping timeout: 246 seconds]
mwlang has joined #ruby
Hunter1 has quit [Read error: Connection reset by peer]
Hunter1 has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
apparition has joined #ruby
uZiel has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Client Quit]
Asher has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
rgr has quit [Ping timeout: 272 seconds]
cam27 has joined #ruby
eightlimbed has joined #ruby
eightlimbed has quit [Remote host closed the connection]
maddamxx has joined #ruby
maddamxx has quit [Client Quit]
bronson has quit [Remote host closed the connection]
juggler has joined #ruby
croberts has quit [Ping timeout: 240 seconds]
jolamb has quit [Ping timeout: 260 seconds]
theRoUS has quit [Ping timeout: 240 seconds]
ski7777 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
theRoUS has joined #ruby
cyclonis has joined #ruby
gizmore|2 has joined #ruby
Toledo has joined #ruby
jolamb has joined #ruby
olivi____ has joined #ruby
mrconfused has joined #ruby
uZiel has quit [Ping timeout: 246 seconds]
gizmore has quit [Ping timeout: 255 seconds]
quiller has quit [Quit: I out! ::mic drop::]
olivi____ has quit [Ping timeout: 240 seconds]
j416 has quit [Ping timeout: 240 seconds]
GinoMan2440 has joined #ruby
bambanx has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
bambanx has joined #ruby
soahccc_ has joined #ruby
quiller has joined #ruby
soahccc has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Ping timeout: 240 seconds]
j416 has joined #ruby
nobitanobi has joined #ruby
Hobbyboy has joined #ruby
jenrzzz has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
oliv_____ has joined #ruby
cam27 has joined #ruby
coderphive has quit [Quit: coderphive]
bruno-_ has quit [Quit: leaving]
coderphive has joined #ruby
cschneid_ has joined #ruby
duderonomy has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid_ has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
bkxd has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
hobodave has joined #ruby
Mrgoose has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh_ has joined #ruby
redaudit has quit [Quit: Cya]
ascarter has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
oliv_____ has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 268 seconds]
mrconfused has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
jusa has joined #ruby
rkazak has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
GinoMan1423 has joined #ruby
coderphive has quit [Quit: coderphive]
GinoMan2440 has quit [Ping timeout: 240 seconds]
mrconfused has joined #ruby
GinoMan2440 has joined #ruby
GinoMan2440 has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 240 seconds]
al2o3-cr_ has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
GinoMan1423 has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cam27 has joined #ruby
genpaku has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bernd9000 has joined #ruby
bernd27 has quit [Ping timeout: 240 seconds]
mrconfused has quit [Ping timeout: 260 seconds]
genpaku has joined #ruby
ecuanaso has joined #ruby
coderphive has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
bheesham has quit [Quit: leaving]
b0mbnet has joined #ruby
Dimik has joined #ruby
herbmillerjr has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
<b0mbnet> is there any guide or books about writing c extension for ruby?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
juggler has quit [Remote host closed the connection]
charliesome has joined #ruby
uZiel has joined #ruby
vahe has joined #ruby
mrconfused has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Hunter1 has quit [Remote host closed the connection]
b0mbnet has quit [Ping timeout: 260 seconds]
Hunter1 has joined #ruby
jackjackdripper1 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
b0mbnet has joined #ruby
jackjackdripper has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
b0mbnet has quit [Read error: Connection reset by peer]
cam27 has quit [Read error: Connection reset by peer]
b0mbnet has joined #ruby
cam27 has joined #ruby
jcao219 has joined #ruby
jenrzzz has joined #ruby
patr0clus has quit [Quit: tempusfugit]
ascarter has joined #ruby
heyimwill has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
ascarter has quit [Client Quit]
krasnus has quit [Ping timeout: 240 seconds]
nullobject has quit [Quit: WeeChat 1.7]
heyimwill has joined #ruby
nullobject has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
mrconfused has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
octobermagic has joined #ruby
<octobermagic> Well hellllo internet
<octobermagic> anyone care to help a Ruby noob?
mrconfused has quit [Ping timeout: 255 seconds]
octobermagic has quit [Remote host closed the connection]
olivi____ has joined #ruby
krasnus has joined #ruby
agent_white has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
juggler has joined #ruby
pankaj has joined #ruby
ascarter has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
enterprisey has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
olivi____ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jerematic has quit [Remote host closed the connection]
jerematic has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cam27 has joined #ruby
jerematic has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 246 seconds]
claw has quit [Ping timeout: 246 seconds]
xall has joined #ruby
ascarter has joined #ruby
tfitts has joined #ruby
sneakerhax has joined #ruby
gix has joined #ruby
cyclonis has joined #ruby
hobodave has quit [Ping timeout: 246 seconds]
hobodave_ has joined #ruby
claw has joined #ruby
coderphive has quit [Quit: coderphive]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
b0mbnet has quit [Remote host closed the connection]
drcode has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pankaj has quit [Ping timeout: 260 seconds]
b0mbnet has joined #ruby
uZiel has quit [Read error: Connection reset by peer]
pookleblinky has joined #ruby
Vivekananda has joined #ruby
SteenJobs has joined #ruby
uZiel has joined #ruby
nullobject has quit [Quit: WeeChat 1.7]
hndk has joined #ruby
\tau has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
jane_booty_doe has joined #ruby
cam27 has joined #ruby
pankaj_ has joined #ruby
PaulCapestany has quit [Quit: .]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
b0mbnet has quit [Remote host closed the connection]
elsevero has joined #ruby
pankaj_ has quit [Ping timeout: 246 seconds]
ski7777 has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spcwlz has joined #ruby
Cyrus has quit [Quit: brb]
renchan has joined #ruby
pankaj_ has joined #ruby
ski7777 has quit [Excess Flood]
ski7777 has joined #ruby
Cyrus has joined #ruby
Ropeney has joined #ruby
knight33 has joined #ruby
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
spcwlz has quit [Quit: leaving]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
jusa has joined #ruby
vahe has quit [Quit: Leaving.]
hobodave_ has quit [Ping timeout: 272 seconds]
vahe has joined #ruby
hobodave has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 268 seconds]
Ropeney has joined #ruby
pankaj_ has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
bronson has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
pankaj_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hndk has quit [Ping timeout: 268 seconds]
xall has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
\tau has quit [Remote host closed the connection]
Jakaria has joined #ruby
<Jakaria> which gem should I use for Multiple authentication in Rails?
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
anisha has joined #ruby
xall has joined #ruby
b0mbnet has joined #ruby
<Jakaria> anyone???
skweek has quit [Ping timeout: 246 seconds]
cam27 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
cam27 has joined #ruby
oleo has quit [Quit: irc client terminated!]
SteenJobs has quit [Quit: SteenJobs]
pankaj_ has quit [Ping timeout: 240 seconds]
nickjj_ has joined #ruby
nickjj has quit [Ping timeout: 272 seconds]
b0mbnet has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
b0mbnet has joined #ruby
Bock has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<Ropeney> Jakaria, what is "multiple" authentication?
<Jakaria> I want to create two authection.... one for Admin of the Website and aonther one for normal users.....
<Jakaria> authentication*
<Ropeney> So you would authenticate the users, then authorize their permissions based on a Role. I suggest Devise + CanCan.
<selim> good morning
<Jakaria> so, I instead of creating Admin model, I should stick with User model and give each user a role?
<selim> can someone help me with my gem install issues
<Ropeney> Jakaria, Yes
ur5us has quit [Remote host closed the connection]
<selim> gem always searches for the online url when dependencies are not fullfilled
<Jakaria> thanks, Ropeney
<selim> the problem is, it's being done even if I use -l as option
<selim> and the timeout for not finding the url, due to firewall blockage, is more then 30 minutes
<selim> how do I avoid that?
aufi has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
<agent_white> Go authenticate, then auth via some text-message mechanism over Twilio, then hug your pillow goodnight.
<agent_white> As your users or someone will fuck it over at some point.
<agent_white> 5-10 years, then you'll back back into re-writing what you did before.
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
hobodave has quit [Ping timeout: 246 seconds]
pookleblinky has left #ruby ["WeeChat 1.2"]
<Jakaria>
hobodave_ has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
jusa has joined #ruby
bronson has joined #ruby
exchgr has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
exchgr has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
vahe has quit [Ping timeout: 268 seconds]
bambanx has quit [Quit: Leaving]
delta67 has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
yogg-saron has joined #ruby
delta67 has quit [Client Quit]
cam27 has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
cam27 has joined #ruby
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
postmodern has quit [Quit: Leaving]
hays has quit [Ping timeout: 246 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pankaj_ has joined #ruby
Jakaria has quit [Quit: WeeChat 1.4]
stoffus has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
uZiel has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
andikr has joined #ruby
conta has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt3 has joined #ruby
TomyWork has joined #ruby
<foxmask> bonjello
elsevero has quit [Quit: elsevero]
<dminuoso> !shoot foxmask
<dminuoso> !kill foxmask
* dminuoso kicks ruby[bot]
<dminuoso> apeiros: Can we install that Cyberdyne plugin into ruby[bot]?
nobitanobi has joined #ruby
<dminuoso> Seen the presentation on TV the other day, seems decent.
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
pandaant has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
jenrzzz has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
nazar_ has joined #ruby
gusrub has quit [Remote host closed the connection]
<foxmask> dminuoso: what'sx the matter ?
<dminuoso> foxmask: I wanted ruby[bot] to go beserk and shoot you in the head.
<nazar_> Hello everyone, can any one explain for Ruby 2.3.4, when exactly GC full run is initiated?
<nazar_> During each GC cycle, is it the soft sweep that occurs? or full clean?
<dminuoso> nazar_: soft sweet
<dminuoso> nazar_: full gc runs take an awful lot of time (50-150ms)
<foxmask> dminuoso: why?
<dminuoso> nazar_: If Ruby allocates more than a given threshold it will run the full run instead.
<nazar_> So related to that, In my app, memory is increasing like a hell... It start from 100MB and goes beyond 60GB. But if I trigger manually GC.start in my code during processing, memory came down. How to handle this?
<dminuoso> nazar_: Down to what?
<nazar_> Otherwise it never ever came down and server blow up
<nazar_> Down to initial or close to initial memory
pankaj_ has quit [Ping timeout: 260 seconds]
<dminuoso> nazar_: It's a bit old but it still applies to 2.4.1 as far as I know.
<kp666[m]> r.update(amount: r.amount - amount)
<kp666[m]> is it possible to change this activerecord update to something on the lines
<kp666[m]> r.update("amount = amount - ?",amount)
pankaj_ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
foxmask has left #ruby [#ruby]
<nazar_> Let me share an example. https://pastebin.com/JjSjmhvt
<ruby[bot]> nazar_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/940db6591dc20aeb3702558a721b825d
<ruby[bot]> nazar_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
rgr has joined #ruby
enterprisey has quit [Remote host closed the connection]
bernd9000 has quit [Remote host closed the connection]
<nazar_> As you notice object count and memory continuously increasing, gc count change does not sweep any thing. In the last line "After Clean" is where I run manually GC.start
hutch34 has joined #ruby
ThirstySurfer has joined #ruby
<nazar_> I need input from you guys on one question. "Is it a memory leak? or a GC issue?"
<dminuoso> nazar_: The thing is. GC.start is not even forcing anything.
hutch34 has quit [Ping timeout: 245 seconds]
<nazar_> But its trigging the full_mark
<nazar_> Is not it?
<dminuoso> nazar_: All GC.start does is kindly suggest to run the GC.
ur5us has joined #ruby
<nazar_> Hm... So then question is, when I suggest to run GC, why it cleans the memory, otherwise never...
<nazar_> Its become a nightmare for live server
<dminuoso> nazar_: Do you have any C extensions inb use?
<dminuoso> It should be impossible to cause this kind of behavior from the raw ruby world
<nazar_> I believe a lot inside. Its a Rails app with plenty of gems included.
juggler has quit [Remote host closed the connection]
<nazar_> Does a C extension have any effect on GC run?
<nazar_> I never read such thing any where.
TomyWork has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 268 seconds]
TomyWork has joined #ruby
<nazar_> My code base is very comprehensive in a sense. It have three phases. 1. Heavy HTTP calls (IO/Memory) 2. Transformation (CPU/Memory) 3. Storage (IO/CPU)
<nazar_> Most objects and memory allocated in third phase, obviously because huge number of active record objects got initiated at that step.
<dminuoso> nazar_: Ill have to do some reading before I can answer any of these questions properly. Perhaps someone with good knowledge will answer before Im done.
dionysus69 has joined #ruby
ski7777 has quit [Ping timeout: 246 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pankaj_ has quit [Ping timeout: 246 seconds]
<dminuoso> nazar_: The one thing you could be doing your own research for is RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR
<dminuoso> Which is basically the metric to control full GC timings
PaulePanter has quit [Ping timeout: 240 seconds]
<dminuoso> nazar_: Some explanations can be found here: https://bugs.ruby-lang.org/issues/9607
<nazar_> Yeah sure, I will explore it, it also mentioned in few articles I searched over. I was just stuck to one point, if GC.start manually do the clean, why does it not automatically.
SaschaVoid has joined #ruby
biberu has joined #ruby
charliesome has joined #ruby
ThirstySurfer has quit [Remote host closed the connection]
Mortomes|Work has joined #ruby
ecuanaso has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haxrbyte has joined #ruby
ascarter_ has joined #ruby
ascarter has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
ascarter_ has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
ltem has joined #ruby
ascarter has joined #ruby
marr has joined #ruby
Silthias has joined #ruby
charliesome has joined #ruby
ferr has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ruby
ascarter_ has joined #ruby
uZiel has quit [Ping timeout: 260 seconds]
ascarter has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
vahe has joined #ruby
voxxit has joined #ruby
djbkd_ has joined #ruby
jaruga has joined #ruby
dasher00 has joined #ruby
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b0mbnet has quit [Remote host closed the connection]
b0mbnet has joined #ruby
aupadhye has joined #ruby
bkxd has joined #ruby
<zenspider> huh... this is a new one for me... I have 2 blocks of code. they both work. If I wrap them in `if true then block1 else block2 end` I get a C level fault
<zenspider> [BUG] iseq_set_sequence: adjust bug -3 < 0
<b0mbnet> when i writing c extension for ruby, should i use ruby's xmalloc or pure c malloc? anybody knows?
andikr has quit [Ping timeout: 246 seconds]
<zenspider> b0mbnet: what are you trying to do?
bkxd has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
<zenspider> don't really have all day
uZiel has quit [Ping timeout: 240 seconds]
<b0mbnet> implement levenshtein_distance in c for ruby
quobo has joined #ruby
<zenspider> seems fast enough in ruby... but OK...there's not really anything to malloc, is there?
<b0mbnet> RSTRING_PTR
uZiel has joined #ruby
stan has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
<zenspider> oh. I guess you can use an array the length of one of the strings...
<zenspider> if you want a string, make a string using the API
patarr has joined #ruby
<zenspider> any of the rb_str_new* functions
stan has joined #ruby
<b0mbnet> using rb_str_new, ruby will automatic free it ?
Beams has joined #ruby
<zenspider> that's the idea
romank has joined #ruby
<b0mbnet> but how do i get speicifc char for this string, for example string[1]?
TreyG has quit [Ping timeout: 260 seconds]
<zenspider> what have you tried so far?
tvw has joined #ruby
tvw has quit [Client Quit]
hays has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
al2o3-cr_ is now known as al2o3-cr
<b0mbnet> wait a second
<zenspider> liiiike... have you read the extensions doco? have you read any C extension code? have you written anything yet? etc...
esObe has joined #ruby
pankaj_ has joined #ruby
<zenspider> WOW... updated to 2.4.1 just in case I was missing a bug fix... nope. still got the explosion: lib/ruby2ruby.rb:436: [BUG] iseq_set_sequence: adjust bug -3 < 0
<zenspider> and it's on compile too... this is cool
Kug3lis has joined #ruby
<b0mbnet> yes, i read ruby/doc/extension.rdoc already
vahe has quit [Quit: Leaving.]
<zenspider> that's good
<b0mbnet> i tried, it support index access, thank you
vahe has joined #ruby
<b0mbnet> and i have already done something, my first c extension is to wrap libmagic for ruby
TreyG has joined #ruby
<dminuoso> zenspider: Do you have the real code for me?
<zenspider> dminuoso: say what?
<dminuoso> 10:36:01 zenspider | huh... this is a new one for me... I have 2 blocks of code. they both work. If I wrap them in `if true then block1 else block2 end` I get a C level fault │ anisha
<zenspider> I'm reducing it to a minimal repro now
<zenspider> got it from 1346 lines down to 21
<zenspider> anyone have 2.5 dev running?
<dminuoso> Does this apply?
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zenspider> this says 2 months ago... 2.4.1 was 2017-03-22
<mikecmpbll> stop breaking ruby
<zenspider> I wish
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
<dminuoso> mikecmpbll: I constantly trigger gcc and ruby bugs every week..
<dminuoso> Some people have a talent for it.
<Cork> i'm trying to decode aes-gcm data in ruby but get "OpenSSL::CipherError:" https://paste.debian.net/933168/
<mikecmpbll> scoundrels.
<Cork> the data is encrypted using webcrypto
<dminuoso> Cork: such a descriptive exception.
<dminuoso> Gotta love OpenSSL
<Cork> ya...
<Cork> any hint on where i can get help with it?
<dminuoso> Cork: I would compare the base64 decoded keys and see if they match
jane_booty_doe has quit [Ping timeout: 246 seconds]
<Cork> dminuoso: Base64.decode64(privateKey).unpack('H2' * Base64.decode64(privateKey).size).map {|s| s.to_i(16) } is identical to the bytearray in js
<zenspider> funny thing is, if you remove the if true/else/end it works fine... this is purely a compiler bug
<dminuoso> zenspider: That is scary.
FastJack has quit [Read error: Connection reset by peer]
<zenspider> I just wanted to profile the two versions w/o commenting
djbkd_ has quit [Ping timeout: 246 seconds]
<mikecmpbll> Cork : ruby's base64 does stuff new lines every 60th character or something
<mikecmpbll> dunno if that's anything to do with it
<Cork> hmm might be
<mikecmpbll> ah nvm you're only decoding in ruby
<Cork> ya
<mikecmpbll> there is a strict_decode64 tho too :/
sdomsta has joined #ruby
sdomsta has quit [Client Quit]
<Cork> mikecmpbll: the result is identical in this case
<mikecmpbll> ok :)
<Cork> i wonder if it is the auth_tag/auth_data think in ruby causing it
<Cork> but i'm not sure what that would be
<dminuoso> Cork: And the iv matches too?
FastJack has joined #ruby
jgt3 has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
<dminuoso> zenspider: I wonder.. I wonder if your bug was actually introduced by the referenced bugfix.
<Cork> dminuoso: yes it is
<Cork> Uint8Array(12) [113, 95, 75, 50, 187, 254, 232, 34, 12, 219, 245, 150]
<Cork> => [113, 95, 75, 50, 187, 254, 232, 34, 12, 219, 245, 150]
<zenspider> possible I guess. I found the error message in the compiler but didn't look into it too much. calculating offsets and blows an assertion, basically
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt3 has joined #ruby
<Cork> dminuoso: the iv is the base64 before the space in cryptData
alazred has joined #ruby
gusrub has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<dminuoso> This is such a typical nobu commit. The name of that macro.. CHECK() ...
erry has joined #ruby
<erry> good m orning all
<erry> So an admition: i know nothing about ruby
<zenspider> I don't think that is what is blowing... but yeah. kinda opaque
<erry> what i want to know is how you get rvm to install to ~/.rvm and not /usr/local/
<erry> :D
<dminuoso> erry: Avoid rvm.
<erry> oh
<erry> well I just want to insatll this one gem
<zenspider> or read the doco?
<erry> and not have to be root
<dminuoso> erry: You do not need rvm to install a gem.
<erry> yes
<erry> ok
<dminuoso> rvm is just a pita especially for a beginner, dont bother
<erry> we already use it i think
<erry> but if i can avoid it i will
<zenspider> gem install --user-install gemname
<zenspider> or gem i -i ~/whereveryouwant gemname
<erry> You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.0/wrappers directory.
<zenspider> can't tell you about that. Not using rvm will probably help :)
<erry> gem install -i ~/.gem breakpoint
<erry> You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.0/wrappers directory.
<erry> ..
<erry> Sigh :(I
gusrub has quit [Ping timeout: 246 seconds]
* erry is a perl developer
* erry 's job infra uses ruby for random stuff
<erry> ah well
<erry> don't worry about it i guess
<zenspider> `gem i -i xxx breakpoint -N` works for me... maybe rvm patches rubygems? god I hope not
<zenspider> `gem env`
<zenspider> see where your gem home is, that's where it'll write stuff to by default
<zenspider> perl... now you have two problems
<erry> haha
<erry> well
<erry> i think i know where our perl moduels go at least
jenrzzz has joined #ruby
<zenspider> erry: gem install --help | grep wrapper
horst has quit [Quit: horst]
<dminuoso> zenspider: I can reduce the testcase even further..
mim1k has quit [Ping timeout: 240 seconds]
<dminuoso> zenspider: if false then if true then .. is sufficient
<zenspider> nice!
<dminuoso> zenspider: Oh mmm. That is a syntax error isnt it?
<mikecmpbll> erry: looks like you've installed rvm in "multi-user mode"
<zenspider> dminuoso: even so... it shouldn't blow up
<dminuoso> Yeah
<dminuoso> zenspider: the outer if is not necessary at all, reduced even further
<mikecmpbll> erry : looks like you need to add users to the 'rvm' group if you've installed in multi-user mode
minimalism has quit [Quit: minimalism]
mim1k has joined #ruby
<zenspider> Adding that to the ticket. thanks
aupadhye has quit [Remote host closed the connection]
<dminuoso> zenspider: I should debug this. This seems to be related to the one portion of the compiler that I know and have modified already! :D
aupadhye has joined #ruby
<zenspider> cool. have at it.
jenrzzz has quit [Ping timeout: 268 seconds]
pankaj_ has quit [Ping timeout: 260 seconds]
horst has joined #ruby
<erry> mikecmpbll: cheers
<dminuoso> zenspider:
<dminuoso> Oh.
<dminuoso> This was not vim.
<zenspider> vim?
<dminuoso> Cant't even <u>ndo things..
pankaj_ has joined #ruby
<dminuoso> Yeah.. I was in weechat but I thought I was in my editor..
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
pankaj_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 268 seconds]
<dminuoso> zenspider: Indeed it looks as if the bugfix introduced the issue.
dionysus69 has joined #ruby
* dminuoso starts compiling ruby
alazred has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Ping timeout: 260 seconds]
Lyubo1 has quit [Ping timeout: 240 seconds]
hanmac has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
jgt3 has quit [Read error: Connection reset by peer]
jusa has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vahe has quit [Quit: Leaving.]
haxrbyte has quit [Remote host closed the connection]
jusa has quit [Ping timeout: 240 seconds]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
<zenspider> 1200 line diff... commit message will be something like "completely reworked to be purely functional, performance is roughly the same"
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
b0mbnet has quit [Remote host closed the connection]
<mikecmpbll> i wish there was a version of `Array#delete` that took a block. like find but removes it from array
oliv_____ has joined #ruby
vifino has quit [Ping timeout: 240 seconds]
vifino has joined #ruby
Archrover has quit [Ping timeout: 240 seconds]
<dminuoso> mikecmpbll: you mean like delete_if ?
Archrover has joined #ruby
<mikecmpbll> dminuoso : delete_if doesn't return the deleted object
<mikecmpbll> (s)
<dminuoso> mikecmpbll: Mutation is bad anyway.
<dminuoso> Go write in Elixir instead.
<mikecmpbll> without mutation, we wouldn't evolve.
* mikecmpbll drops mic
<dminuoso> mikecmpbll: Instead we are completely non-functional!
<zenspider> delete_at + find_index ?
<zenspider> or a plain each will totally work
<mikecmpbll> yo i can do it; i'm just dreaming big, is all.
<dminuoso> Or you can use Fiddle.
<dminuoso> There's virtually no problem that cant be solved adequately wth excessive use of raw pointers.
* zenspider fires dminuoso
<zenspider> mikecmpbll: partition
<mikecmpbll> i was always against it.
<dminuoso> zenspider: Have you ever developed the need to temporarily act as if a module had a different superclass?
<dminuoso> It's easy!
pankaj_ has joined #ruby
<zenspider> why... no
jottr has joined #ruby
<dminuoso> zenspider: Temporarily changing ancestors is a wonderful thing to do, trust me.
PaulePanter has joined #ruby
<zenspider> huh... rubygems deregistered my `un` gem
<dminuoso> W
<dminuoso> What did "un" do?
<zenspider> let you unextend and uninclude
<dminuoso> zenspider: Yeah that one is neat too.
<dminuoso> zenspider: rubyforge seems to be down, how do you deal with the instance variable cache?
<zenspider> cmon... minitest-trump is only at 272 downloads
<zenspider> *shrug* I wrote that shit 9 years ago on a lark
<zenspider> publish evil code for conferences
<zenspider> ok... bed for me
<dminuoso> zenspider: Ohh. Also uses inline, you cheapie!
<zenspider> why wouldn't I use it?
rkazak has quit [Quit: Sleep.....ing....]
jottr has quit [Quit: WeeChat 1.8]
jottr has joined #ruby
<dminuoso> zenspider: https://eval.in/635609
jottr has quit [Client Quit]
<dminuoso> zenspider: I use that instance_variable_set trick to ensure that the iv cache exists (this avoids seg faults when you try to retain ivars after switching the super class to a class that you have had no objects with ivars of before)
jottr has joined #ruby
<dminuoso> That particular snippet is actually used in production code *somewhere*
<dminuoso> Because machinze has an annoying interface :|
agent_white has quit [Quit: bai]
bauruine has quit [Quit: ZNC - http://znc.in]
oliv_____ has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
bauruine has joined #ruby
Lyubo1 has joined #ruby
Tempesta has quit [Quit: See ya!]
andikr has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
Tempesta has joined #ruby
patarr has joined #ruby
<nazar_> One question guys, Does Ruby GC return the allocated memory back to system? I noticed that in my app there are around 817k free slots in heap while only 723k slots in use. Does GC should not return memory to reduce free slots?
nazar_ has quit [Quit: This computer has gone to sleep]
tomphp has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
Seenox has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
jottr has quit [Quit: WeeChat 1.8]
Exhiled has joined #ruby
<dminuoso> nahra: It does, but gradually in small chunks.
quobo has quit [Quit: Connection closed for inactivity]
tomphp_ has joined #ruby
tomphp has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
Nicmavr has quit [Ping timeout: 240 seconds]
jackrandom has joined #ruby
xall has joined #ruby
tomphp_ has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
Nicmavr has joined #ruby
Nicmavr is now known as Guest7184
tomphp has joined #ruby
Burgestrand has joined #ruby
Verity has quit [Remote host closed the connection]
gusrub has quit [Ping timeout: 240 seconds]
hobodave_ has quit [Ping timeout: 272 seconds]
cyphase has quit [Ping timeout: 246 seconds]
hobodave has joined #ruby
<Bish> how would you guys iterate over the weeks of a year?
cyphase has joined #ruby
<tobiasvl> Bish: what do you mean?
<Bish> well, i want a download link for each week in this year
<tobiasvl> OK, but do you just want to find out how many weeks there are in this year (if it's not just 52), and then just iterate 1..52?
<tobiasvl> or do you want to iterate over the dates of the first mondays/sundays in each week
<tobiasvl> or what
olivi____ has joined #ruby
chouhoulis has joined #ruby
<Bish> well, basicially i want a download for each week from now backwards
<Bish> how do i generate a list from those :o
<Bish> beautifully.
<tobiasvl> I still don't understand what you want to generate
olivi____ has quit [Remote host closed the connection]
<Bish> hm, geez.
<tobiasvl> what do you want? an array with what, dates?
oliv_____ has joined #ruby
<Bish> maybe the index of the week as u suggested with 1..52, but i am not even sure if every year has 52 weeks ;;
<Bish> but i would like to have the start date of that week & end, too
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yqt has joined #ruby
jusa has joined #ruby
<adaedra> (Date.parse('2017-01-01')..Date.parse('2017-12-31')).step(7).to_a
chouhoulis has quit [Remote host closed the connection]
Mortomes|Work has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
<Bish> why does taht work :o
<adaedra> You have days separated by a week each (but it may not be the start of the week - you may have to find the first monday for that)
nickjj_ is now known as nickjj
<adaedra> It works because Date#+ moves by day and there are 7 days a week
<Bish> okay, great, wow
<Bish> thats ruby for you
<adaedra> If you're in rails, a `.beginning_of_week` may solve the problem of not being a monday :^)
* Bish hates rails
<adaedra> If you are a sane person for who a week starts the monday, of course.
oliv_____ has quit [Ping timeout: 246 seconds]
chouhoul_ has joined #ruby
<adaedra> If you don't have beginning of week, `date - date.wday + 1` will take you to monday.
ldnunes has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
blackwind_123 has quit [Read error: Connection reset by peer]
Seenox has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
chouhoulis has quit [Ping timeout: 268 seconds]
blackwind_123 has joined #ruby
patarr has joined #ruby
alazred has quit [Ping timeout: 240 seconds]
hays has joined #ruby
gloscombe has joined #ruby
anvor has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
mim1k has joined #ruby
stoffus has quit [Quit: leaving]
patarr has quit [Ping timeout: 268 seconds]
hays has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
bkxd has joined #ruby
VladGh has quit [Remote host closed the connection]
anvor has joined #ruby
ltem has quit [Quit: Leaving]
VladGh has joined #ruby
houhoulis has quit [Ping timeout: 240 seconds]
Archrover has quit [Changing host]
Archrover has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
alazred has joined #ruby
bronson has joined #ruby
jameser has joined #ruby
synthroid has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
jameser has quit [Client Quit]
jameser has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stupidsenpai has joined #ruby
simple_work has joined #ruby
nobitanobi has joined #ruby
stupidsenpai has quit [Client Quit]
simple_work has quit [Client Quit]
<Bish> adaedra: thanks
alazred has quit [Ping timeout: 260 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
mim1k has quit [Ping timeout: 245 seconds]
jameser has quit [Client Quit]
jgt3 has joined #ruby
dragoonis has joined #ruby
anisha has quit [Quit: Leaving]
mohan has joined #ruby
<dragoonis> Hey! I have ruby1.8.7 installed on RHEL and I've just installed chef's InSpec .rpm package .. when I run inspec I get: /opt/inspec/embedded/bin/ruby: /lib53/libc.so.6: version `GLIBC_2.14' not found (required by /opt/inspec/embedded/lib/libruby.so.2.3)
<dragoonis> Can someone help please?
bkxd has quit [Ping timeout: 240 seconds]
mohan has quit [Client Quit]
bkxd has joined #ruby
pankaj_ has quit [Ping timeout: 240 seconds]
qwasz has joined #ruby
<darix> dragoonis: /lib53 sounds just broken
<darix> you are sure it isnt lib64?
<darix> dragoonis: and it might mean it needs a newer glibc than your rhel 6 has
bmurt has joined #ruby
oliv_____ has joined #ruby
<dragoonis> darix, i checked and I have glibc 2.12 installed
<darix> dragoonis: and the inspec package was built with glib 2.14
<darix> dragoonis: so you need rhel7 probably
SteenJobs has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<dragoonis> darix, i can't change the RHEL version. Can I just upgrade glibc ?
jackrandom has quit [Remote host closed the connection]
<darix> dragoonis: i wouldnt do that
<dragoonis> alright
<darix> you will lose your support
qwasz has quit [Quit: Leaving]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
haxrbyte has joined #ruby
qwasz has joined #ruby
eightlimbed has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
bonhoeffer has joined #ruby
oliv_____ has quit [Ping timeout: 246 seconds]
oliv_____ has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
eightlimbed has quit [Ping timeout: 246 seconds]
ericx2x has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
mim1k has joined #ruby
oliv_____ has joined #ruby
jerematic has joined #ruby
ramortegui has joined #ruby
jerematic has quit [Client Quit]
bonhoeffer has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 240 seconds]
marxarelli|afk is now known as marxarelli
KeyJoo has quit [Ping timeout: 255 seconds]
pankaj_ has joined #ruby
eightlimbed has joined #ruby
Burgestr_ has joined #ruby
haxrbyte has joined #ruby
Burgestrand has quit [Ping timeout: 272 seconds]
jeffreylevesque has joined #ruby
KeyJoo has joined #ruby
pankaj_ has quit [Ping timeout: 240 seconds]
fusta has joined #ruby
oliv_____ has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
yogg-saron has joined #ruby
pupsicle has quit [Quit: pupsicle]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
AKPWD has quit [Quit: じゃね。]
mim1k has joined #ruby
AKPWD has joined #ruby
stupidsenpai has joined #ruby
cyclonis has quit [Ping timeout: 268 seconds]
stoffus has joined #ruby
oleo has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Read error: Connection reset by peer]
stupidsenpai has quit [Ping timeout: 245 seconds]
yeticry_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
stupidsenpai has joined #ruby
oliv_____ has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
gusrub has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
stupidsenpai has quit [Ping timeout: 255 seconds]
pankaj_ has joined #ruby
gusrub has quit [Ping timeout: 272 seconds]
stoffus has quit [Read error: Connection reset by peer]
stoffus has joined #ruby
rippa has joined #ruby
chouhoul_ has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
DLSteve has joined #ruby
nazar_ has joined #ruby
jgt3 has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
User458764 has joined #ruby
Mon_Ouie has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
pupsicle has joined #ruby
quobo has joined #ruby
bkxd has joined #ruby
hobodave_ has joined #ruby
rgr has quit [Ping timeout: 245 seconds]
hobodave has quit [Ping timeout: 246 seconds]
b0mbnet has joined #ruby
renchan has quit [Quit: Leaving...]
hays has joined #ruby
marr has quit [Read error: Connection reset by peer]
TvL2386 has quit [Remote host closed the connection]
hays has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
andikr has quit [Remote host closed the connection]
TvL2386 has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
awer_ has joined #ruby
<awer_> Hi, im trying to reinstall ruby rvm 2.3.0 on kali. during compiling i get "Error running '__rvm_make -j4',
stoffus has quit [Ping timeout: 246 seconds]
<awer_> uncommon.mk:203: recipe for target 'build-ext' failed
<awer_> make: *** [build-ext] Error 2
<awer_> any suggestions on this please?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dminuoso> awer_: Look at the log file.
cyclonis has joined #ruby
<awer_> yes i looked at this - https://paste.ee/p/k9jcy -
apparition has joined #ruby
<awer_> dminuoso: sometihing to do with "build-ext"
gizmore|2 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<awer_> dminuoso: I have libssl-dev installed
bronson has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> awer_: Near the bottom another issue is referenced, look at that too.
<awer_> dminuoso: ok thanks ill give it a try
pankaj_ has quit [Ping timeout: 260 seconds]
<awer_> dminuoso: does this work for you? im getting a 404 not found - rvm get branch /bugfix/3862-openssl11-debian
<dminuoso> awer_: I dont use rvm at all because its buggy, annoying and only brings issues.
<dminuoso> And it's highly intrusive and monkey patches shells.
bronson has quit [Ping timeout: 240 seconds]
alazred has quit [Ping timeout: 240 seconds]
<awer_> ah ok. what the alternative. - the goal is to install BeEF
stupidsenpai has joined #ruby
<dminuoso> awer_: You dont need RVM if you just want to run software.
<dminuoso> awer_: The most straight forward solution is either your system ruby or a ruby installed through ruby-install (https://github.com/postmodern/ruby-install)
<awer_> dminuoso: ok thank you
jgt3 has joined #ruby
stupidsenpai has quit [Client Quit]
shinnya has joined #ruby
<uZiel> can I get top n elements from a sorted hash?
__Yiota has joined #ruby
gnufied has joined #ruby
nofxxx has joined #ruby
<dminuoso> uZiel: Enumerator::Lazy
<dminuoso> uZiel: It probably implements Enumerable, so .take(n)
oliv_____ has left #ruby ["Leaving..."]
nofxxxx has quit [Ping timeout: 240 seconds]
<uZiel> :D yup it does
<uZiel> thanks dminuoso
calife has joined #ruby
ski7777 has joined #ruby
haylon has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<awer_> dminuoso: just got to the end and got this message "!!! Unknown ruby: rubinius
dionysus69 has joined #ruby
<dminuoso> awer_: What command did you use?
<awer_> dminuoso: ./setup.sh
<dminuoso> ...
<dminuoso> baweaver
<awer_> dminuoso: ?
dangerousdave has joined #ruby
<dminuoso> awer_: Ohh. Sorry. Dont use that setup.sh
<dminuoso> awer_: It's grossly outdated and probably should be removed.
<awer_> dminuoso: oh ok what should i do?
<awer_> dminuoso: right
<dminuoso> awer_: Look at the "Install" section of that github page.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<awer_> ok thanks
<dminuoso> Once installed, you can just do "ruby-install ruby 2.4.1" for example
dionysus69 has quit [Ping timeout: 260 seconds]
jgt3 has quit [Ping timeout: 246 seconds]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
bkxd_ has joined #ruby
cschneid_ has joined #ruby
nadir has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
haylon has quit [Remote host closed the connection]
haylon has joined #ruby
cschneid_ has quit [Ping timeout: 272 seconds]
patarr has joined #ruby
jgt3 has joined #ruby
ForeignBiscuit has joined #ruby
__Yiota has joined #ruby
chouhoul_ has joined #ruby
__Yiota has quit [Client Quit]
skweek has joined #ruby
theunraveler has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
ornerymoose has joined #ruby
jusa has joined #ruby
<ornerymoose> Having some trouble using Ruby’s CSV force_quotes: false. Doesn’t seem to be consistent. Many of the generated CSVs don’t have quotes at the beginning or end of the CSV (as intended), but some do. Why would that be? Note the data populating the CSV files is coming from SQL Server
cbarratt has joined #ruby
jcao219 has joined #ruby
fusta has quit [Ping timeout: 268 seconds]
<cbarratt> hi guys, im attempting to get connection_pool to play nicely with redis but I can't seem to get it to actually use more than 1 connection (using puma, multiple threads)
jusa has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
__Yiota has joined #ruby
calife has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
oborot_ has joined #ruby
jgt3 has quit [Ping timeout: 268 seconds]
pupsicle has quit [Remote host closed the connection]
pupsicle has joined #ruby
alazred has quit [Ping timeout: 272 seconds]
ForeignBiscuit is now known as AmericanBiscuit
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jgt3 has joined #ruby
AmericanBiscuit is now known as CanadianDunkins
cassianoleal has joined #ruby
fusta has joined #ruby
Ropeney has joined #ruby
tvw has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt3 has quit [Read error: Connection reset by peer]
xall has joined #ruby
<eam> @cbarratt: got code? More details?
bkxd has joined #ruby
synthroid has quit [Remote host closed the connection]
bkxd_ has quit [Ping timeout: 260 seconds]
zepy_aq has joined #ruby
oliv_____ has joined #ruby
hutch34 has joined #ruby
mim1k has quit [Ping timeout: 245 seconds]
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
Burgestr_ has quit [Quit: Closing time!]
Dreamer3 has joined #ruby
Kug3lis has quit [Ping timeout: 255 seconds]
dangerousdave has joined #ruby
<zzxc> How often do people use Prime::prime?
cschneid_ has joined #ruby
vahe has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cassianoleal has quit [Quit: Off to the other side!]
raspado has joined #ruby
conta has quit [Ping timeout: 246 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
mim1k has joined #ruby
ascheel has joined #ruby
psmmr has joined #ruby
<ascheel> I'm attempting to use 'cucumber' and 'aruba' as provided by an instructor for checking the output of assignments. His is set up to be for Ubuntu 16.04 and I'm running that on a server. I'm getting lots of variable not defined errors. I'm guessing that there are version mismatches, but I don't know how to diagnose it since I don't know Ruby. Lines 2-5 are the actual error. How can I diagnose the real issue? https://gist.github.com/ascheel/7659b5f
<ascheel> undefined local variable or method `cmd' for #<Aruba::Processes::SpawnProcess:0x00000003103b98>
Dreamer3 has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
alazred has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
nitric has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
t-recx has joined #ruby
cam27 has joined #ruby
fusta has quit [Ping timeout: 258 seconds]
alazred has joined #ruby
alazred has quit [Changing host]
alazred has joined #ruby
raspado has quit [Quit: Leaving...]
aufi has quit [Quit: Leaving]
synthroid has joined #ruby
raspado has joined #ruby
kegster has quit [Ping timeout: 245 seconds]
jgt3 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kug3lis has joined #ruby
kegster has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
bkxd has joined #ruby
horst_ has joined #ruby
horst has quit [Ping timeout: 260 seconds]
horst_ is now known as horst
__Yiota has joined #ruby
Kug3lis has quit [Ping timeout: 255 seconds]
chouhoul_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli is now known as marxarelli|afk
<baweaver> WHO HAS AWOKEN ME FROM MY SLUM... oh hey dminuoso. What's up?
catphish has joined #ruby
bronson has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
amclain has joined #ruby
haylon has quit [Ping timeout: 246 seconds]
kegster has quit [Read error: Connection reset by peer]
majuk has joined #ruby
fusta has joined #ruby
<catphish> jhass: thanks :)
blackwind_123 has quit [Ping timeout: 245 seconds]
haylon has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
arooni has left #ruby ["WeeChat 1.8"]
pankaj_ has joined #ruby
rakm has joined #ruby
marr has joined #ruby
jgt3 has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
hobodave has joined #ruby
pb122 has joined #ruby
gizmore has joined #ruby
hobodave has quit [Client Quit]
hobodave has joined #ruby
xall has quit [Quit: xall]
Silthias has quit [Ping timeout: 255 seconds]
TomyWork has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
pb122-two has quit [Ping timeout: 268 seconds]
P4f73k has joined #ruby
stupidsenpai has joined #ruby
stupidsenpai has quit [Client Quit]
dangerousdave has joined #ruby
oliv_____ has quit [Quit: Leaving...]
gusrub has joined #ruby
alazred has quit [Ping timeout: 272 seconds]
nowhere_man has quit [Ping timeout: 246 seconds]
dangerousdave has quit [Client Quit]
catphish has left #ruby ["Leaving"]
SeepingN has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme has joined #ruby
haylon has quit [Remote host closed the connection]
Silthias has joined #ruby
haylon has joined #ruby
jusa has joined #ruby
t-recx has quit [Quit: t-recx]
nazar_ has quit [Quit: This computer has gone to sleep]
vahe has quit [Quit: Leaving.]
User458764 has joined #ruby
* adaedra pokes baweaver
BSaboia has joined #ruby
<baweaver> ding
<baweaver> you rang?
<adaedra> Just to poke you.
<baweaver> ah
* baweaver pokes adaedra
jgnagy has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
Guest7184 has quit [Changing host]
Guest7184 has joined #ruby
Guest7184 is now known as Kestrel-029
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
apparition has quit [Ping timeout: 268 seconds]
jeffreylevesque has quit [Ping timeout: 260 seconds]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GGMethos has quit [Ping timeout: 246 seconds]
TomyLobo has joined #ruby
b0mbnet has quit [Remote host closed the connection]
__Yiota has joined #ruby
b0mbnet has joined #ruby
mikecmpbll has joined #ruby
pb122-two has joined #ruby
nowhere_man has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
pb122 has quit [Ping timeout: 246 seconds]
psychicist__ has joined #ruby
armguy has quit [Ping timeout: 260 seconds]
armguy has joined #ruby
<majuk> During compilation, ruby complains 'Following extensions failed to configure' and complains about openssl, zlib and readline. Is there a way to get those extensions pulled in post-compile?
polishdub has joined #ruby
b0mbnet has quit [Remote host closed the connection]
fusta has quit [Ping timeout: 246 seconds]
gothicsouth has joined #ruby
NeoMalachi has joined #ruby
sneakerhax has quit [Ping timeout: 240 seconds]
<majuk> I think I'm googling this with the wrong verbiage, not making any progress.
NingaLeaf has joined #ruby
pupsicle has quit [Quit: pupsicle]
tildes has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nobitanobi has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 268 seconds]
knight33 has joined #ruby
ben______ has quit []
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pb122-two has quit [Quit: Leaving]
haylon has quit [Ping timeout: 240 seconds]
GGMethos has joined #ruby
mochiyoda_ has quit [Quit: Konversation terminated!]
__Yiota has joined #ruby
cam27 has quit [Quit: cam27]
bigkevmcd has quit [Quit: Outta here...]
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
gloscombe has quit [Quit: WeeChat 1.7.1]
gusrub has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
alazred has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
rdw200169__ has quit [Read error: Connection reset by peer]
<darix> majuk: just install the needed development packages for those libraries. the name of the package depends on your distro
rdw200169__ has joined #ruby
muelleme has quit [Ping timeout: 272 seconds]
<majuk> darix: Wish it were that simple.
<majuk> darix: But thanks. I've moved on from that attempt./
gusrub has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
drcode has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
duderonomy has joined #ruby
pankaj_ has quit [Ping timeout: 240 seconds]
ojab has joined #ruby
ojab has left #ruby [#ruby]
u0_a190 has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
u0_a190 has quit [Quit: leaving]
aupadhye has quit [Ping timeout: 260 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
nazar_ has joined #ruby
ben__ has joined #ruby
enterprisey has joined #ruby
montyboy has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrzejku has joined #ruby
ascarter has joined #ruby
pb122 has joined #ruby
cdg has joined #ruby
CanadianDunkins is now known as ResidentBiscuit
chouhoul_ has joined #ruby
bronson has joined #ruby
ojab has joined #ruby
ojab has left #ruby [#ruby]
tomphp has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
tomphp has quit [Ping timeout: 260 seconds]
<ruby[bot]> majuk: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/055a00f7802710bb1699c3423cb0c7cb
<ruby[bot]> majuk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<majuk> Nice. That works.
<majuk> So line 19, it can't find stdio.h. It and all its referenced files are at /usr/include
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stupidsenpai has joined #ruby
<majuk> Any clever ideas how to resolve that issue and get the compiler to look in /usr/include?
minimalism has joined #ruby
<majuk> or maybe somewhere to symlink /usr/include so it can find those headers.
tomphp has joined #ruby
<Mon_Ouie> CFLAGS="-I/usr/include" would cause gcc (and most C compilers) to check that directory, although it would normally be one of the default paths.
jeffreylevesque has joined #ruby
<majuk> Mon_Ouie: Can I pass that in on the command line with gem?
<majuk> I agree I think the compiler should already look there, but I'm willing to hold its hand if it might get me through thise.
<majuk> Here we go
<Mon_Ouie> If you set it as an environment variable, it should apply to the compiler processes spawned by gem
<majuk> gem install RedCloth -- --with-cflags=\"-O2 -pipe -march=native -Wno-unused-but-set-variable\"
cam27 has joined #ruby
planigan has quit [Ping timeout: 245 seconds]
<majuk> Yea, --with-cflags got it
<majuk> exporting that sys variable didn't get it for whatever reason.
<majuk> Mon_Ouie: Thanks for your input, appreciate it.
nofxxx has quit [Ping timeout: 246 seconds]
nofxxxx has joined #ruby
enterprisey has quit [Remote host closed the connection]
ecuanaso has joined #ruby
redaudit has joined #ruby
Ticky has joined #ruby
jgt3 has joined #ruby
bkxd has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
t-recx has joined #ruby
nazar_ has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 255 seconds]
ij has joined #ruby
<Ticky> hello, #ruby, I’ve got a curly one… I’ve got emoji preprocessing going on (to replace it with images on platforms which don’t support it) with Ruby and JavaScript, and I want to keep them consistent. I’ve just updated the JavaScript portion to support Unicode 9.0 emoji, however, the regex I used there checks for high surrogates, and Ruby’s regex implementation thus simply tells me I must be joking. Is there any way around this? The full JS
AlexRussia has joined #ruby
<ij> When might a attr_writer/foo= method be perceived as a local variable declaration?
stupidsenpai has quit [Remote host closed the connection]
<ij> Oh, it should be self.foo = 3, if I want to trigger the #foo=.
tildes has joined #ruby
coredump has quit []
SaschaVoid has quit [Quit: die();]
jenrzzz has quit [Ping timeout: 246 seconds]
ascarter_ has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
tildes has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vivekananda has quit [Quit: Leaving]
ascarter has joined #ruby
ascarter has quit [Client Quit]
User458764 has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
marius has quit [Quit: leaving]
bheesham has joined #ruby
oborot_ has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 268 seconds]
haylon has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
ascarter has quit [Client Quit]
bkxd_ has joined #ruby
ascarter has joined #ruby
dviola has joined #ruby
gnufied has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
haylon has quit [Client Quit]
dviola has quit [Changing host]
dviola has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt3 has quit [Read error: Connection reset by peer]
psmmr has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
jackrandom has joined #ruby
oborot_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
gil_ has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
jackrandom has quit [Remote host closed the connection]
tildes has joined #ruby
Toledo is now known as Toledo-brb
tomphp has joined #ruby
jackrandom has joined #ruby
nofxxx has joined #ruby
ur5us has joined #ruby
hutch34 has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
nofxxxx has quit [Ping timeout: 246 seconds]
dviola has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
PatrikasZvaigzde has quit [Ping timeout: 260 seconds]
dviola has quit [Changing host]
dviola has joined #ruby
futilegames has joined #ruby
grymmjack has joined #ruby
bilal has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
__Yiota has joined #ruby
bilal has quit [Client Quit]
bilal has joined #ruby
<zenspider> Ticky: that regexp IS horrible. I can't blame ruby for hating it
ojab has joined #ruby
PatrikasZvaigzde has joined #ruby
bilal has quit [Remote host closed the connection]
bilal has joined #ruby
bilal has quit [Remote host closed the connection]
bilal has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bilal has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
ascarter has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
uZiel has quit [Ping timeout: 246 seconds]
ascarter has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
_tpavel has joined #ruby
belmoussaoui has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
belmoussaoui has joined #ruby
squaregoldfish has joined #ruby
squaregoldfish has quit [Client Quit]
ij has left #ruby ["WeeChat 1.7.1"]
belmoussaoui has quit [Read error: Connection reset by peer]
<Ticky> zenspider: I mean, if JavaScript’s awful regex engine can handle it…
belmoussaoui has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
<Ticky> if either language just up and supported Unicode 9.0 character properties out of the box I wouldn’t have this problem :P
planigan has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
<elomatreb> Are you sure it doesn't? I think I remember reading somewhere that Ruby was updated for Unicode 9.0
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<elomatreb> (If I knew anything about Unicode I would test it)
bkxd_ has quit [Ping timeout: 246 seconds]
ojab has left #ruby [#ruby]
ojab has joined #ruby
choke has joined #ruby
Toledo-brb is now known as Toledo
ascarter has joined #ruby
gj_ has joined #ruby
ascarter has quit [Client Quit]
jaruga has quit [Quit: jaruga]
grymmjack has quit [Ping timeout: 240 seconds]
gj_ is now known as grymmjack
ascarter has joined #ruby
boringcpg has joined #ruby
<boringcpg> hey
<boringcpg> I'm trying to find a version of Ruby that has UnixSocket on Windows...
<boringcpg> The only one I found is msys2 version.
hobodave_ has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
ecuanaso has joined #ruby
ojab has left #ruby [#ruby]
ahmetkapikiran has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
<zenspider> Ticky: not sure I'm versed well enough... what character properties do you need?
dionysus69 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ticky> zenspider: specifically, these ones https://mathiasbynens.be/notes/es-unicode-property-escapes#emoji
<zenspider> boringcpg: install cygwin or whatever it is called?
<Ticky> (they expand to that big ol’ gnarly regex I pasted above that Ruby doesn’t like)
bronson has quit [Ping timeout: 240 seconds]
<Ticky> (or rather to that plus some extra handling for ZWJ sequences)
futilegames has quit [Quit: futilegames]
pupsicle has joined #ruby
ur5us has joined #ruby
hutch34 has joined #ruby
<zenspider> Ticky: I read that backwarcds and thought "What does Jamie Zawinski have to do with this?" (other than the "now you have two problems" line)
<zenspider> >> /\p{In_Emoticons}/
<ruby[bot]> zenspider: # => /\p{In_Emoticons}/ (https://eval.in/801804)
<zenspider> no clue what that matches tho
OO--OO has joined #ruby
* Ticky zenspider: a very small subset of emoji ¯\_(ツ)_/¯ https://en.wikipedia.org/wiki/Emoticons_(Unicode_block)
<zenspider> that document hints that it does v9 tho... maybe file an issue?
<zenspider> oh. the version on the document is v6... but it has DerivedAges including Age=9.0
<zenspider> so I might be reading too much into it
<Ticky> I suspect that’s reading too much :P
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zenspider> that document you pointed at also hints that our unicode \w is insufficient
knight33 has joined #ruby
<zenspider> const regex = /([\p{Alphabetic}\p{Mark}\p{Decimal_Number}\p{Connector_Punctuation}\p{Join_Control}]+)/gu;
<zenspider> vs: General_Category -- (Letter|Mark|Number|Connector_Punctuation)
ascarter has joined #ruby
<OO--OO> how does one add up the number of True's in a TrueClass?
<zenspider> the issues are pretty up to date tho... file an issue to extend
<zenspider> OO--OO: your question doesn't make sense
redaudit has quit [Quit: Cya]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> try again
<zenspider> short answer: 1 ... but to a totally different question
<Ticky> zenspider: where do you mean? what issues?
<zenspider> Ticky: on Onigmo
hutch34 has quit [Quit: WeeChat 1.5]
ur5us has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<Ticky> oh, right, right
<Ticky> I missed that that’s Ruby’s regex engine! 😃
<OO--OO> under a loop which outputs true/flase values how do you add the number of times 'true' is outputted for example
<ytti> </win 20
<zenspider> I don't know unicode spec enough... but running your horrid regexp through ruby complains about all the codepoints that start w/ D: eg \uDC69 ... I don't know if those are invalid or not
<OO--OO> in a method names abcdef? for example
<zenspider> OO--OO: do you even see how what you just described is NOTHING like your original question?
<Ticky> zenspider: they’re “valid,” they’re just not characters by themselves - they’re high surrogates
<zenspider> blah blah
<zenspider> ?answers OO--OO
<ruby[bot]> OO--OO: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<OO--OO> maybe another person understood it ?
<zenspider> highly doubtful. you suck at asking clear questions
<zenspider> so, read that document. learn how to ask. try again
_tpavel has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
<baweaver> OO--OO - yeah, unclear
<zenspider> Ticky: I dropped your regexp down to the first 2 \u's... repro'd the errors, then tried to convert to \u{.... ....} and at least got fewer errors. :P
<Ticky> haha
<zenspider> also sounds awfully like homework. homework you don't understand in the first place
<Ticky> yeah that might be… part of it, it expects JavaScript’s one-character-at-a-time regex parsing
pupsicle has quit [Quit: pupsicle]
<Ticky> it _might_ be that anywhere it’s not looking for “one of these characters” it should actually be in that format
<Ticky> but honestly I can’t figure out enough about the error Ruby’s giving me to know for sur
benlieb has quit [Quit: benlieb]
jenrzzz has quit [Ping timeout: 260 seconds]
* Ticky takes cover
<zenspider> cool. thanks
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ticky> thanks for pointing me in the right direction 😃
<zenspider> Ticky: if you're feeling adventurous, go hunt down UNICODE_VALID_CODEPOINT_P(c) in the codebase and see what it does
<Ticky> I’m currently looking into whether https://github.com/janlelis/unicode-emoji has equivalent behaviour to what I’m after… if it is I might concede defeat and use that lol
<zenspider> ah... it's in regenc.h
<zenspider> that code looks clean as fuck
<zenspider> except that it uses String#+... that's dumb. but it's for constants so it doesn't matter too much
sepp2k1 has joined #ruby
<marahin> Hello! I seem to have trouble operating on Sequel documentation. Is there a way to define a model that has no primary key (I'm using some stupid auto-generated database for a game engine), but yet be able to call Model.last, Model.first?
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<marahin> I could assume that the order should be defined by 'time' column (which is integer UNIX timestamp), but there can be duplicates.
<Ticky> zenspider: yeah, none of this is very “good” but if it does the thing you need™
<zenspider> no primary key??
<Ticky> zenspider: honestly ideally I wouldn’t be doing emoji replacements at all but with Linux and Windows’ chaotic emoji support levels out there…
<zenspider> hah
<zenspider> marahin: I haven't used Sequel in ages, but the author is very responsive
<zenspider> just ... not to MY issues. :P
sepp2k has quit [Ping timeout: 260 seconds]
<zenspider> not true... he very quickly said no :P
<marahin> zenspider: I feel embarrased to ask such question to the creator himself.
<marahin> Like, honestly. :D
yogg-saron has joined #ruby
<marahin> I will google some more and then just maybe force a primary key into the game schema. Thank you for your answer nonetheless! :-)
<zenspider> that's pretty self-limiting
<zenspider> you might be able to compose some sort of .all.order(...).first... no clue.
ecuanaso has joined #ruby
bkxd_ has joined #ruby
mwlang has quit [Quit: mwlang]
bkxd has quit [Ping timeout: 240 seconds]
andrzejku has joined #ruby
mwlang has joined #ruby
comet23 has joined #ruby
redaudit has joined #ruby
pupsicle has joined #ruby
<marahin> zenspider Death.order(Sequel.desc(:time)) seems to do the job
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ticky> I think I have a solid approach to this emoji stuff, thanks for your input, zenspider 😃 https://github.com/janlelis/unicode-emoji seems to match the behaviour I need!
<zenspider> awesome
<zenspider> take a look at their code and see if they go about it terribly differently or not
boringcp1 has joined #ruby
ecuanaso has joined #ruby
boringcpg has quit [Ping timeout: 246 seconds]
jbeeze_ has joined #ruby
synthroid has quit []
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
ornerymoose has quit [Ping timeout: 255 seconds]
haylon has joined #ruby
<OO--OO> how long until someone can answer my question?
dviola has quit [Quit: WeeChat 1.8]
nobitanobi has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
OO--OO has quit [Quit: ChatZilla 0.9.93 [Firefox 53.0/20170413192749]]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackrandom has quit [Remote host closed the connection]
quuxman has quit [Quit: leaving]
nobitanobi has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
TreyG has quit [Quit: Lost terminal]
<eam> time between asking and answering is potentially unbounded
<zenspider> especially when you don't ask a good question. consider it infinite until you try again
<zenspider> also, that's some seriously entitled bullshit right there...
quobo has joined #ruby
<hxegon> I think they left, but the answer is reduce(Hash.new(0)) { |acc, e| acc.tap { |h| h[e] += 1 } }
mwlang has quit [Quit: mwlang]
<hxegon> also, hi all
mim1k has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
ascarter has joined #ruby
<hxegon> Maybe we should have a !fact that links to this:
quobo has quit [Client Quit]
__Yiota has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
ascarter has quit [Client Quit]
<baweaver> hxegon: best not to feed the vampires
<baweaver> also...
<baweaver> ?answers
<ruby[bot]> How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<hxegon> baweaver: nice
<baweaver> tap isn't needed by the way
<baweaver> just use each_with_object
<baweaver> switch the args though
<baweaver> besides, true/false makes more sense with select/count
<zenspider> hxegon: we do and I did. :P
<baweaver> collection.select { |v| cond }.count
ur5us has joined #ruby
__Yiota has quit [Client Quit]
<zenspider> collection.count { |v| cond }
<zenspider> no memory used
<baweaver> noted
<baweaver> &ri Enumerable#count
<hxegon> I'll add that to the list of ruby's "that takes a block?" methods
<zenspider> not size/length... count. :P
<baweaver> TIL
ascarter has joined #ruby
jcao219 has joined #ruby
ascarter has quit [Client Quit]
dionysus69 has quit [Ping timeout: 260 seconds]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
ramortegui has quit [Remote host closed the connection]
theunraveler has quit []
hobodave_ has quit [Quit: Computer has gone to sleep.]
gothicsouth has joined #ruby
__Yiota has joined #ruby
swills has quit [Excess Flood]
swills has joined #ruby
hobodave has joined #ruby
__Yiota has quit [Client Quit]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
sumobob has joined #ruby
swills has quit [Ping timeout: 255 seconds]
ericx2x has quit [Remote host closed the connection]
nankyokusei has joined #ruby
ascarter has joined #ruby
nitric has quit [Ping timeout: 260 seconds]
swills has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
ascarter has quit [Client Quit]
quobo has joined #ruby
dragoonis has quit [Quit: Leaving]
bheesham has quit [Ping timeout: 240 seconds]
nankyokusei has quit []
jbeeze_ has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
biberu has quit []
quuxman has joined #ruby
bheesham has joined #ruby
Guest80086 has quit [Remote host closed the connection]
BSaboia has joined #ruby
BSaboia has quit [Max SendQ exceeded]
BSaboia has joined #ruby
kegster has joined #ruby
bronson has joined #ruby
milardovich has joined #ruby
bheesham has quit [Ping timeout: 246 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
cyclonis has quit [Ping timeout: 268 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
BSAlb has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
bpmedley has quit [Quit: Textual IRC Client: www.textualapp.com]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 272 seconds]
muelleme has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
BSaboia has quit [Max SendQ exceeded]
BSaboia has joined #ruby
BSAlb has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
hobodave has quit [Ping timeout: 260 seconds]
sumobob has quit [Quit: WeeChat 1.7]
ResidentBiscuit has quit [Read error: Connection reset by peer]
gothicsouth has joined #ruby
Hollyver has joined #ruby
ascarter has joined #ruby
boringcp1 has quit [Ping timeout: 260 seconds]
<Hollyver> hi
<Hollyver> is this a channel for dating?
bheesham has joined #ruby
<elomatreb> no.
<Hollyver> ok
<havenwood> Hollyver: This is a channel for the Ruby programming language.
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<zenspider> dating??
Hollyver has left #ruby [#ruby]
<ytti> believe ruby means something in the gay scene
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bheesham has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
<SeepingN> just because I have a rainbow of nicknames? geez cmon
bkxd has joined #ruby
__Yiota has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
byte512 has joined #ruby
dstrunk has joined #ruby
__Yiota has quit [Client Quit]
npgm has joined #ruby
cschneid_ has quit [Remote host closed the connection]
rakm has joined #ruby
milardovich has quit []
belmoussaoui_ has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
jenrzzz has joined #ruby
boringcpg has joined #ruby
belmoussaoui has quit [Ping timeout: 246 seconds]
alveric2 has joined #ruby
alveric1 has quit [Ping timeout: 246 seconds]
shinnya has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
alveric3 has joined #ruby
Hunter1 has quit [Remote host closed the connection]
Hunter1 has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
marr has quit [Ping timeout: 260 seconds]
alveric2 has quit [Ping timeout: 240 seconds]
cyphase has joined #ruby
mim1k has joined #ruby
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 246 seconds]
oborot_ has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
ur5us has quit [Remote host closed the connection]
gothicsouth has joined #ruby
ascarter has joined #ruby
hplar has joined #ruby
Kestrel-029 has quit [Read error: Connection reset by peer]
majuk has quit [Remote host closed the connection]
bheesham has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DeeJayh has quit [Remote host closed the connection]
ascarter has joined #ruby
DeeJayh has joined #ruby
ur5us has joined #ruby
bheesham has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 268 seconds]
Mon_Ouie has quit [Read error: Connection reset by peer]
bheesham has joined #ruby
minimalism has quit [Ping timeout: 240 seconds]
muhlisbc has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Nicmavr has joined #ruby