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
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
<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
<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>
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
<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 :|
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…]
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…]
<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)
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]
<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!]
<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>
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
<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)
<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>
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
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?