havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: 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
trelos has quit [Quit: Leaving]
montanonic has joined #ruby
Pumukel has joined #ruby
testuser1 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
roshanavand has joined #ruby
tubuliferous has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
spectrum has quit [Ping timeout: 248 seconds]
dunpeal has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dunpeal> How does RSpec know how many times a method was called, i.e. how does foo.should.receive(:foo) work?
<dunpeal> Also, can I somehow introspect the arguments with which a method was called during testing?
_defk0n_ has quit [Quit: Its been real!]
_defk0n_ has joined #ruby
_defk0n_ has quit [Remote host closed the connection]
<zenspider> dunpeal: "introspect the arguments" ?
<zenspider> what does that mean to you?
<dunpeal> zenspider: Ideally, get a list of all arguments the method was called with.
<dunpeal> For example, if foo.bar was called with [[1, 2], [1, 3]]
<dunpeal> means it was called twice, first time as bar(1, 2), second as bar(1, 3)
CloCkWeRX has left #ruby [#ruby]
<zenspider> why?
<dunpeal> zenspider: I'm trying to trace a bug, and need to figure out why a particular external method gets called.
<dunpeal> and how.
<zenspider> much cleaner/quicker: class ExternalClass; def external_method; raise "no"; end; end
<zenspider> you can even alias the old impl to the side and call it under most circumstances
<dunpeal> "you can even alias the old impl to the side and call it under most circumstances" > not sure I understand this?
TomyLobo has quit [Ping timeout: 250 seconds]
<dunpeal> also, I'm sort of generally curious about how `foo.should.receive` works under the hood, but not a big deal.
<zenspider> foo.should returns a monad. receive stores off an expectation in the monad. actual calls to foo are wrapped ... it's a whole bunch of bullshit magic.
<zenspider> for the alias thing...
<zenspider> class ExternalClass; alias old_external_method external_method; def external_method(arg); if arg==42 then raise "no" else old_external_method; end; end; end
<dunpeal> zenspider: ah, thanks.
nankyokusei has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
_ZerGabriel_ has quit []
nankyokusei has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
bronson has joined #ruby
arescorpio has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
spectrum has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
enyo has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h1fuelcell has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
sneakerhax has quit [Read error: Connection reset by peer]
h1fuelcell has quit [Ping timeout: 258 seconds]
Fridtjof has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
ruid_ has joined #ruby
sdwrage has joined #ruby
Pumukel has joined #ruby
zipace has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
sspreitz has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
milardovich has quit []
Eiam has quit [Ping timeout: 268 seconds]
sspreitz has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
ajsharma has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
Dimik has joined #ruby
nofxxx has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
Illianthe3 has joined #ruby
elevan_ has joined #ruby
Illianthe2 has quit [Remote host closed the connection]
elevan has quit [Remote host closed the connection]
sspreitz has quit [Ping timeout: 258 seconds]
marr has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
bronson has joined #ruby
sspreitz has joined #ruby
LoneHermit has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
h1fuelcell has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
h1fuelcell has quit [Ping timeout: 260 seconds]
bogi has joined #ruby
SeepingN has joined #ruby
johnzorn has joined #ruby
Pumukel has joined #ruby
unreal has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
blackbombay has quit [Ping timeout: 248 seconds]
blackbom1 has joined #ruby
Yacker has joined #ruby
unreal_ has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h1fuelcell has joined #ruby
Pumukel has joined #ruby
troys_ is now known as troys
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
d^sh_ has joined #ruby
bogi has quit [Quit: Leaving]
xall has joined #ruby
nullobject has joined #ruby
harai_ has joined #ruby
aremaref has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
d^sh has quit [Ping timeout: 264 seconds]
cratchet311 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
enyo has joined #ruby
arescorpio has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
enyo has quit [Ping timeout: 250 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
SeepingN has joined #ruby
Yacker has joined #ruby
bronson has joined #ruby
d34th4ck3r has joined #ruby
LoneHermit has joined #ruby
charliesome has joined #ruby
lune is now known as z64
bronson has quit [Ping timeout: 245 seconds]
kies has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
ResidentBiscuit has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
<DTZUZU> hi anyone know the regex to check a string to see if it contains a url text like... http://www.google.com/image.jpg and then if it does, transform it to .. <img src="http://google.com/image.jpg"> .. ? any help would be much appreciated
optiz0r has quit [Ping timeout: 260 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
cratchet311 has quit [Remote host closed the connection]
ChubbyBreakfast1 has left #ruby [#ruby]
libastral has quit [Ping timeout: 268 seconds]
pilne has quit [Quit: Quitting!]
houhoulis has quit [Remote host closed the connection]
libastral has joined #ruby
Illianthe2 has joined #ruby
Illianthe3 has quit [Ping timeout: 246 seconds]
skweek has quit [Ping timeout: 260 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
AliG1000 has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
<d34th4ck3r> Hi Everyone!
<adam12> o/
SeepingN has quit [Read error: Connection reset by peer]
<d34th4ck3r> I am facing folllowing issue: http://stackoverflow.com/questions/41338527/ruby-http-400-bad-request (not sure if it’s okay to post a stackoverflow link) and I couldn’d find any fault in my ruby script. Any ideas?
<AliG1000> I am installing a script from Github. I get as far as 'bundle install'. It fails with a message " **** 'extconf.rb failed **** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details." Which of the 5 mkmf.log files would be a good place to start looking?
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
<adam12> d34th4ck3r: If I understand this right, even the curl command fails?
ruid_ has quit [Ping timeout: 246 seconds]
<d34th4ck3r> It does.
<adam12> AliG1000: Any idea what dependency it fails on?
<d34th4ck3r> I made sure that my JSON is valid so I’m really not sure why is it a bad request.
<adam12> d34th4ck3r: Kind of hard to debug without having the other endpoint. Why the gsub of "=" to "" ?
<d34th4ck3r> just to make sure if that’s not an issue. I doesn’t work either way.
hsagar has joined #ruby
<d34th4ck3r> I don’t have server side access unfortunately.
<adam12> I see. This is a capture the flag challenge or something?
<adam12> This isn't technically a Ruby issue if the curl command is failing
GodFather has quit [Remote host closed the connection]
<d34th4ck3r> Kinda like that.
<d34th4ck3r> Yeah! That’s what I’m thinking, but I’m not even sure if it isn’t ruby that’s causing the problem then what else could it possibly be
<d34th4ck3r> !JSON & !Ruby
<adam12> I mean, it could be.
<adam12> I don't know anything about the TOTP implementation.
ur5us has quit [Read error: Connection reset by peer]
<AliG1000> The start of the message is: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
ur5us has joined #ruby
hanmac has joined #ruby
nullobject has quit [Quit: WeeChat 1.5]
<adam12> d34th4ck3r: I found a Python solution that is different than yours. Uses HMAC-SHA-512 (which TOTP gem doesn't use), and can specify T0 (whatever that is)
<adam12> AliG1000: What operating system? and if linux, what distro? and how did you install Ruby?
<adam12> d34th4ck3r: Nevermind. I thought you were using totp gem, not rotp.
skweek has joined #ruby
houhoulis has joined #ruby
<d34th4ck3r> adam12: If you’re into Pythong then I found this one too: https://github.com/yodalee/HDEchallenge/blob/master/mission3.py ? I tried modifying it to point to my url with my credentials too but I got 400 on this one too.
AliG1000 has quit [Read error: Connection reset by peer]
<adam12> So maybe the endpoint is broken?
AliG1000 has joined #ruby
<adam12> AliG1000: What operating system? and if linux, what distro? and how did you install Ruby?
<AliG1000> I used Digital Ocean's one click app to install Ruby on Rails 2.2.1 on Ubuntu 14.04
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
<AliG1000> This is my error message: http://pastebin.com/RaYH3rXw
<ruby[bot]> AliG1000: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5a16dffe18da35d685ff9ab09200c999
<ruby[bot]> AliG1000: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
HBurks1618 has joined #ruby
camilasan has quit [Remote host closed the connection]
<d34th4ck3r> I tried talking to the admin and they confirmed that their logs are perfect and everything seems to be working fine from their end.
astrobunny has joined #ruby
JoshS has joined #ruby
camilasan has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
<adam12> AliG1000: What's the source of the Gemfile for this project? I suspect it has `debugger` in it, which is unsupported on that version of Ruby.
<AliG1000> This is what I am trying to install: https://github.com/boonrs/transitmix/
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> Are you running the `bundle install` command yourself?
<AliG1000> yes - as per the instructions on that website
<adam12> AliG1000: try changing your bundle install command to: bundle install --without test
enilsen16 has quit [Quit: enilsen16]
<AliG1000> running it now
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<AliG1000> Bundle complete!
<AliG1000> It gets stuck on the next command: rake db:create db:migrate but I will see what I can find on the internet first
<adam12> AliG1000: Good luck.
<AliG1000> adam12 - thank you!
astrobunny has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
h1fuelcell has joined #ruby
testuser1 has quit [Quit: Leaving.]
bronson has quit [Ping timeout: 246 seconds]
troys has quit [Quit: Bye]
kies has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jtdoncas has joined #ruby
jtdoncas has quit [Client Quit]
newbie1 has quit [Ping timeout: 265 seconds]
arescorpio has quit [Quit: Leaving.]
blackbom1 has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 256 seconds]
blackbom1 has joined #ruby
enilsen16 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
minimalism has quit [Ping timeout: 265 seconds]
koldbrutality has quit [Ping timeout: 252 seconds]
blackbom1 has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
tubuliferous has joined #ruby
enyo has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hsagar has quit [Quit: hsagar]
minimalism has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
hsagar has joined #ruby
enyo has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
koldbrutality has joined #ruby
optiz0r has joined #ruby
astrobunny has joined #ruby
braincrash has joined #ruby
nankyokusei has joined #ruby
Rodya_ has joined #ruby
harfangk has joined #ruby
dionysus69 has joined #ruby
hsagar has quit [Quit: hsagar]
HBurks1618 has quit [Quit: HBurks1618]
nankyokusei has quit [Ping timeout: 258 seconds]
gix has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hink has quit [Quit: quit from client]
bronson has joined #ruby
oaklndr1 has quit [Ping timeout: 245 seconds]
gix has joined #ruby
hsagar has joined #ruby
charliesome has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
marchelzo has joined #ruby
eizua has joined #ruby
Hink has joined #ruby
Ohga has left #ruby [#ruby]
Rodya_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Pumukel has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Pumukel has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
blackbom1 has joined #ruby
ur5us has joined #ruby
houhoulis has quit [Remote host closed the connection]
QualityAddict has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
blackbom1 has quit [Ping timeout: 250 seconds]
<al2o3-cr> DTZUZU: you can extract links with URI.extract
Pumukel has joined #ruby
saneax-_-|AFK is now known as saneax
dionysus69 has quit [Ping timeout: 258 seconds]
blackbom1 has joined #ruby
<zenspider> one thing I'm really liking about racket's doco is that they say at the bottom when something was added / changed... I read about things like URI.extract and go "when in the fuck did I miss that?!?!"
audibleblink has quit [Read error: No route to host]
audibleblink has joined #ruby
marchelzo has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
dviola has quit [Quit: WeeChat 1.6]
roshanavand has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd_ has quit [Ping timeout: 246 seconds]
blackbom1 has quit [Ping timeout: 245 seconds]
h1fuelcell has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
testuser1 has joined #ruby
tuxaddicted has joined #ruby
xall has joined #ruby
tubuliferous has joined #ruby
conta has joined #ruby
xall has quit [Ping timeout: 260 seconds]
hsagar has quit [Quit: hsagar]
tubuliferous has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
anna` has left #ruby ["-"]
dionysus69 has joined #ruby
pawnbox has joined #ruby
bronson has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
CloCkWeRX has joined #ruby
Pumukel has joined #ruby
xall has joined #ruby
ResidentBiscuit has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
tuxaddicted has quit [Ping timeout: 250 seconds]
ResidentBiscuit has quit [Ping timeout: 245 seconds]
NeverTired has joined #ruby
pawnbox has quit [Remote host closed the connection]
aidalgol has joined #ruby
lszhu has joined #ruby
aidalgol is now known as Guest15168
pawnbox has joined #ruby
hsagar has joined #ruby
johnzorn has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
johnzorn has joined #ruby
Guest15168 is now known as aidalgol
Pumukel has joined #ruby
SeepingN has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
Pumukel has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
yfeldblum has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
iMadper|eat is now known as iMadper|Qiong
iMadper|Qiong is now known as iMadper|penniles
iMadper|penniles is now known as Madper|Penniless
Pumukel has quit [Ping timeout: 246 seconds]
d0nn1e has joined #ruby
agent_white has quit [Quit: agent_white]
h1fuelcell has joined #ruby
roshanavand has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
woodruffw has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 252 seconds]
cyphase has joined #ruby
ur5us has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
hanmac has joined #ruby
Pumukel has joined #ruby
CloCkWeRX has joined #ruby
tau has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 264 seconds]
woodruffw has quit [Quit: And then he took off.]
nankyokusei has joined #ruby
Macaveli has joined #ruby
anisha has joined #ruby
elevan_ has quit [Ping timeout: 245 seconds]
biox has quit [Quit: brb servers are ded]
biox has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Quit: Leaving.]
Macaveli has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
eizua has quit [Quit: Leaving]
woodruffw has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 245 seconds]
x0f has joined #ruby
hsagar has quit [Quit: hsagar]
Radar_ is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
millerti has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
Symbiosisz has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
dnicole_ has joined #ruby
x0f_ has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
x0f_ has quit [Ping timeout: 246 seconds]
sanych has joined #ruby
rippa has joined #ruby
sanych has quit [Client Quit]
paranoicsan has joined #ruby
ponga has joined #ruby
lacour has quit [Quit: Leaving]
h1fuelcell has joined #ruby
xall has quit [Ping timeout: 246 seconds]
paranoicsan has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jenrzzz has joined #ruby
ur5us has joined #ruby
dionysus69 has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
zipace has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
xall has joined #ruby
paranoicsan has joined #ruby
tubuliferous has joined #ruby
walterheck has joined #ruby
paranoicsan has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
paranoicsan has joined #ruby
Macaveli has joined #ruby
nowz has joined #ruby
kassav has joined #ruby
Pumukel has joined #ruby
tubuliferous has quit [Ping timeout: 268 seconds]
x0f has joined #ruby
oaklndr1 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
montanonic has joined #ruby
mscs has joined #ruby
pawnbox has quit [Remote host closed the connection]
vuoto has joined #ruby
ferr1 has joined #ruby
yeticry_ has joined #ruby
SpiffTR has joined #ruby
bronson has joined #ruby
yeticry has quit [Ping timeout: 268 seconds]
SpiffTR has quit [Client Quit]
skweek has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
jaiks has quit [Ping timeout: 245 seconds]
tuxaddicted has joined #ruby
Pumukel has joined #ruby
enilsen16 has quit [Quit: enilsen16]
bronson has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
SesMan has joined #ruby
testuser1 has quit [Quit: Leaving.]
Pumukel has quit [Ping timeout: 250 seconds]
wugy has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
jaiks has joined #ruby
conta has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
Pumukel has joined #ruby
ledestin has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
dasher00 has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
_defk0n_ has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
Pumukel has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
yfeldblum has joined #ruby
d34th4ck3r has joined #ruby
enyo has joined #ruby
h1fuelcell has joined #ruby
_defk0n_ has quit [Quit: Its been real!]
teclator_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
teclator has quit [Ping timeout: 260 seconds]
agit0 has quit [Quit: zzzZZZ….]
h1fuelcell has quit [Ping timeout: 248 seconds]
yasm has joined #ruby
oaklndr1 has quit [Ping timeout: 258 seconds]
dasher00 has joined #ruby
aupadhye has joined #ruby
benlieb has joined #ruby
pytuger has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
iwmrby has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
nofxxx has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
pwnd_nsfw has joined #ruby
agit0 has joined #ruby
xall has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
benlieb has quit [Quit: benlieb]
montanonic has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
bronson has joined #ruby
xall has joined #ruby
walterheck has quit [Ping timeout: 248 seconds]
pytuger has joined #ruby
Pumukel has joined #ruby
biberu has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
SpiffTR has quit [Quit: Leaving.]
yasm has quit [Quit: Leaving.]
ur5us has quit [Remote host closed the connection]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
SpiffTR has joined #ruby
montanonic has joined #ruby
ta has quit [Remote host closed the connection]
ishe_ua has joined #ruby
Madper|Penniless is now known as Madper|BRB
d34th4ck3r has quit [Quit: d34th4ck3r]
tk__ has quit [Quit: ばいばい]
aremaref has quit [Ping timeout: 264 seconds]
eggshke has joined #ruby
iwmrby has quit [Quit: WeeChat 1.6]
Jackneill has joined #ruby
Pumukel has joined #ruby
ur5us has joined #ruby
aidalgol has quit [Quit: Using Circe, the loveliest of all IRC clients]
Madper|BRB is now known as Madper
Pumukel has quit [Ping timeout: 246 seconds]
h1fuelcell has joined #ruby
Pumukel has joined #ruby
kassav has quit [Read error: Connection reset by peer]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 245 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
lemonsparrow has joined #ruby
<lemonsparrow> amazing tech talk on eventloop.. https://www.youtube.com/watch?v=JoAo_cet3x8 explains eventloop so effortlessly and clearly :)
CloCkWeRX has joined #ruby
Fernando-Basso has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
lemonsparrow has left #ruby [#ruby]
<zenspider> clearly? the audio is terrible
Pumukel has joined #ruby
SpiffTR has quit [Quit: Leaving.]
djbkd has quit [Quit: Leaving...]
kassav has joined #ruby
astrobunny has quit [Remote host closed the connection]
Madper is now known as Madper|Penniless
astrobunny has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
ruby-lang696 has joined #ruby
SpiffTR has joined #ruby
ruby-lang696 has quit [Client Quit]
astrobunny has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
blackbom1 has joined #ruby
frozengeek has joined #ruby
bronson has joined #ruby
milardovich has joined #ruby
pwnd_nsfw` has joined #ruby
kahvi has joined #ruby
nowz has quit [Remote host closed the connection]
<kahvi> hello. does ruby have maximum for return value on call stack?
<kahvi> is there a limit on how much can you return. or is it arbitrarly
<dminuoso> kahvi: You can return exactly one object.
<dminuoso> ;-)
<kahvi> lets say you return :symbol, string
<kahvi> and string is 3k
<zenspider> yeah... not really
<dminuoso> kahvi: So your question is whether symbols and strings have a maximum object size?
<dminuoso> Then yes.
nowhere_man has quit [Ping timeout: 258 seconds]
<dminuoso> It has nothing to do with returning, returning basically just returns a reference to an object
<kahvi> my question is will something happen to a string if it is too big
<zenspider> you can return multiple values and the size of the values doesn't matter
<dminuoso> Mostly.
<kahvi> hm ok
<zenspider> kahvi: no, it's fine. you're only really limited by memory
<dminuoso> kahvi: Ruby strings are limited to 2**31 -1 or 2**63 - 1 in length.
<dminuoso> (depending on your target platform)
pwnd_nsfw has quit [Ping timeout: 264 seconds]
<dminuoso> kahvi: Is that long enough for you?
<kahvi> ok.thanks guys
<kahvi> I guess I'll keep on debugging
GeekOfflineNL has joined #ruby
<zenspider> kahvi: what are you actually dealing with?
<GeekOfflineNL> good morning
bronson has quit [Ping timeout: 256 seconds]
<kahvi> I write some file do some postprocessing with external program then read it in a string and return it via function after postprocessing
<zenspider> kahvi: is this all in pure ruby?
<kahvi> and for some reason one of top level functions returns shorter string
<kahvi> no half is java
<kahvi> but lower level func returns ok
<dminuoso> kahvi: Everything in Ruby is pass-by-value, and the values are always references (think pointers). So effectively you are just passing and returning pointers around.
<dminuoso> It really does not matter how large your objects are
<kahvi> ok. thanks I guess I am missing something more obvious
<zenspider> kahvi: what type of post-processing? and are encodings involved?
Caius has quit [Ping timeout: 250 seconds]
<kahvi> java part is actually making an excel from json dumped from ruby via apache poi
<zenspider> and is windows involved? (line endings can differ too)
<kahvi> then ruby reads that excel
<kahvi> no only linux
<zenspider> kk. how are you reading it?
<kahvi> name.read
<kahvi> not sure if there is encoding issue here
<zenspider> probably not? but who knows... you have so many variables at play
<kahvi> hm I might check out encodings actually
<zenspider> are you calling out to external java or are you using jruby to call internally?
<kahvi> I am using system("LC_ALL=fi_FI.UTF-8 java javathing this and that")
<kahvi> so it is actually setting specific encoding before java thing
<zenspider> if it is xlsx, then it SHOULD be utf8, so reading and writing should be fine (assuming ruby >=2)
<kahvi> but then low level functions returns ok
<zenspider> *nod*
<zenspider> can you gist any code?
<kahvi> no.. it's not mine
<kahvi> thanks guys
lenwood has joined #ruby
TomyLobo has joined #ruby
Caius has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
<GeekOfflineNL> on the risk of starting an endless discussion.... question about the use of ruby/rails?
<GeekOfflineNL> next year i have a project with an intern
<GeekOfflineNL> he/she needs to write a website to let authorised people make offers and download pdf's with details
<GeekOfflineNL> there is a complex database structure behindf it, with lots of items depend on selection of other items
<GeekOfflineNL> different pricing depending on login
astrobunny has joined #ruby
<GeekOfflineNL> there most also be a wizard to make selection of the right solution items
<GeekOfflineNL> someone suggested ruby/rails to me.
<GeekOfflineNL> So the project could be easily maintained in the future by other people then just the creator
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<GeekOfflineNL> right or wrong to go with ruby/rails
<dminuoso> or..
<dminuoso> I guess it fits here.
<herwin> I don't think there is a real right or wrong here
marr has joined #ruby
kahvi has quit [Ping timeout: 260 seconds]
<dminuoso> GeekOfflineNL: I would say avoid rails for such an internship.
NeverTired has quit [Quit: Connection closed for inactivity]
<dminuoso> Also when I hear people "complex database structure" I think they are overexaggerating.
<dminuoso> Too many times I have heard the phrase "I have this big table" and it turns out they had only a few hundred thousand rows.
<GeekOfflineNL> dminuoso, that could be.
pawnbox has quit [Remote host closed the connection]
<GeekOfflineNL> no it is not the big table. It is more an offer has about 20 diffirent items. But most of them can not be used toghether , while others must be used togheter or it will not work
pawnbox has joined #ruby
<GeekOfflineNL> also there is different setup, depending on the "wizard" question
<GeekOfflineNL> currently it is a large XLS, but this is no longer maintainable :-)
<GeekOfflineNL> to much dependancies, and each version has more "bugs" when released for the first time
<matthewd> IMO Rails is the best choice, because if you have a relatively inexperienced developer creating something that will then be handed on for others to maintain, the natural railroading towards The Rails Way will be valuable
<GeekOfflineNL> but, curious..... why not rails ? as a person completely new to ruby, i thought this was kind of needed to do websites?
<zenspider> GeekOfflineNL: I say rails is fine. Easy to pick up someone to maintain it later if need be
<havenwood> GeekOfflineNL: It's not needed but it's the most popular choice.
<herwin> it would depend on how the company works too. if you already use python for everything, rails would probably be a terrible option
<GeekOfflineNL> zenspider, it will need to be maintained about 2 or 3 times a year
<GeekOfflineNL> database will be updated monthly, but that's only the data not the structure
<matthewd> Regardless of whether the Rails Way is the set of decisions a given experienced developer would make (and granting, I have a bias that they're pretty good, overall), I'd much rather have a project that makes predictable design choices
<GeekOfflineNL> the intern will be HBO (higher ICT education). and it will be his/her end project
koldbrutality has quit [Ping timeout: 245 seconds]
<zenspider> GeekOfflineNL: rails will be one of the easier choices wrt immediate development and for future maintenance. Lots of resources available.
nowz has joined #ruby
<GeekOfflineNL> ah oke. My concern was mostly if ruby/rails could do the math, work with multiple connections, and produce the output
h1fuelcell has joined #ruby
<GeekOfflineNL> i myself used to work mostly with c#/VStudio. But haven't done much work the last few years
tuxaddicted has quit [Ping timeout: 256 seconds]
<GeekOfflineNL> as i read to tutorials/online resources almost all of them where avout blogs/forum example. But that's most certainly not what i am looking for
koooge has quit [Quit: Leaving...]
koldbrutality has joined #ruby
h1fuelcell has quit [Ping timeout: 252 seconds]
<zenspider> GeekOfflineNL: I've been doing a bunch of client work in finance in rails... it's fine
<GeekOfflineNL> thnx zenspider
Chair has joined #ruby
Chair is now known as Couch
manjaro-kde5_ has joined #ruby
djbkd has joined #ruby
djbkd has quit [Client Quit]
trif has left #ruby [#ruby]
lenwood has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
aryaching has joined #ruby
roshanavand has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
pawnbox has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nankyokusei has joined #ruby
czerasz has joined #ruby
<GeekOfflineNL> thnx guys, im off now
GeekOfflineNL has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
tubuliferous has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 248 seconds]
conta has joined #ruby
aupadhye has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
xen0fon has quit [Remote host closed the connection]
bronson has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
jenrzzz has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
czerasz has quit [Ping timeout: 256 seconds]
SHyx0rmZ has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
yasm has joined #ruby
yasm has quit [Client Quit]
manjaro-kde5_ has joined #ruby
xen0fon has joined #ruby
iwmrby has joined #ruby
pandaant has joined #ruby
djbkd has joined #ruby
nowhere_man has joined #ruby
_sfiguser has joined #ruby
anisha has quit [Quit: Leaving]
toretore has joined #ruby
CloCkWeRX has joined #ruby
alem0lars__ has joined #ruby
alem0lars__ has quit [Client Quit]
x00r__ has joined #ruby
izaac has quit [Ping timeout: 252 seconds]
izaac has joined #ruby
djbkd has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
xall has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
pawnbox has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
kassav has quit [Read error: No route to host]
GodFather has joined #ruby
kassav has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 248 seconds]
kassav has quit [Quit: kassav]
kassav_ has joined #ruby
kassav_ is now known as kassav
milardovich has quit []
eggshke has quit [Remote host closed the connection]
Pumukel has joined #ruby
pragmaticus has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
cyphase has joined #ruby
prestorium has joined #ruby
eggshke has joined #ruby
pandaant has quit [Remote host closed the connection]
yasm has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
mradmach1 has quit [Quit: WeeChat 1.4]
anisha has joined #ruby
mradmacher has joined #ruby
Macaveli has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
TomyLobo has quit [Disconnected by services]
vicbtmpefczkdnva has joined #ruby
vicbtmpefczkdnva is now known as fwjxoiqgnaxpueqw
fwjxoiqgnaxpueqw is now known as TomyLobo
xall has joined #ruby
kassav has quit [Quit: kassav]
AndroUser12 has joined #ruby
<AndroUser12> hello
<AndroUser12> can someone help me
<AndroUser12> gem install unf_ext -v '0.0.7.2'
<AndroUser12> cant install
<AndroUser12> says headers or something is missing
<AndroUser12> failed to compile
atomicTrue has joined #ruby
<matthewd> AndroUser12: Everything shown in the error message is there because someone thinks it will be helpful in diagnosing the problem. Abbreviating that to "or something" is unlikely to produce a very informative answer.
<ruby[bot]> AndroUser12: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/308d5ff639047ae59dd2bc5a2ab09839
<ruby[bot]> AndroUser12: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<matthewd> I'm a little surprised there was nothing before that.. but let's do what it says, and check the mkmf.log
yasm has quit [Changing host]
yasm has joined #ruby
<matthewd> AndroUser12: Okay, my suggestion would be to use a chruby/rbenv managed ruby instead of system ruby
<AndroUser12> hmm
<matthewd> AndroUser12: But your immediate problem is that you don't have everything installed that was present/used to compile your current ruby; you can fix it by installing whatever's missing
<AndroUser12> i have to delete
<AndroUser12> reinstall?
<matthewd> rpm has a "which package provides this file" command, doesn't it?
<AndroUser12> yes
<matthewd> If you can find what contains this redhat-hardened-cc1, you should be able to install that
<matthewd> But yeah, if you're setting up an environment for substantial rubying, I'd suggest switching to a non-system ruby instead
<AndroUser12> why
<AndroUser12> installing rpm config
enyo has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
CloCkWeRX has joined #ruby
yasm has quit [Quit: Leaving.]
MrBismuth has quit [Ping timeout: 248 seconds]
<AndroUser12> haha thanks man
<AndroUser12> its working :)
yasm has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
<AndroUser12> now cant install gem install nokogiri -v '1.6.8'
<AndroUser12> lol
lolmaus_ has quit [Quit: Connection closed for inactivity]
spectrum has quit [Ping timeout: 265 seconds]
Robtop__ has joined #ruby
cyphase has joined #ruby
yasm has quit [Quit: Leaving.]
<matthewd> At least you know where to start investigating now :)
h1fuelcell has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
prestorium has quit [Ping timeout: 265 seconds]
<AndroUser12> hardened cc1
<AndroUser12> but i just installed it
<AndroUser12> so you recommend chruby
<AndroUser12> ?
<AndroUser12> i need to remove ruby or?
<matthewd> I personally use rbenv, but that's mostly because I chose it before chruby existed, and I've had no impetus to reconsider. chruby does seem to be a bit more popular these days.
prestorium has joined #ruby
<AndroUser12> ok
<AndroUser12> do i need to uninstall ruby first
<AndroUser12> or?
<matthewd> Either of them will work with a separately installed/compiled ruby in your home directory, so won't care whether there's a system-installed ruby as well
h1fuelcell has quit [Ping timeout: 248 seconds]
<AndroUser12> it removed all my scripts
<AndroUser12> !!!!!!!!!!!!!!!!
<AndroUser12> tf lol
<AndroUser12> its good i had it all backed up
<matthewd> I'm not sure what "it" or "scripts" are in that context
<AndroUser12> should i remove some gem files
<AndroUser12> in lib64
<AndroUser12> that werent removed
<AndroUser12> ?
atomicTrue has left #ruby [#ruby]
Ishido has joined #ruby
minimalism has quit [Quit: minimalism]
<AndroUser12> no chruby found
tjikkun has joined #ruby
<tjikkun> say I have arrays a = ['a','b'] and b = ['c', 'd'] and I would like from that input to get output array c = ['a:c', 'a:d', 'b:c', 'b:d'], what would by ruby code need to be?
AndroUser12 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<matthewd> tjikkun: What do you have so far?
Pumukel has joined #ruby
nankyokusei has joined #ruby
<tjikkun> matthewd: I have a.map {|x| b.each{|y| x + ":" + y} }.join(' ')
<matthewd> Okay, that looks like a reasonable start. What's the difference between map and each?
<tjikkun> but I am missing something. Also full disclosure: I am a sysadmin that neeeds this in puppet, not a very good programmer :)
<go|dfish> a.product b
<tjikkun> ah duh, needs 2 maps
<tjikkun> matthewd: thanks, a.map {|x| b.map{|y| x + ":" + y} }.join(' ') does what I want
<lupine> a.zip(b).map {|*parts| parts.join(":") }
<lupine> or something like that
<lupine> although I wouldn't want to guess which is more efficient
Pumukel has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
<tjikkun> or actually: a.map {|x| b.map{|y| x + ":" + y} }.flatten()
<matthewd> flat_map could help you there
<dminuoso> tjikkun: Just on a sidenote, are you trying to generate JSON?
<dminuoso> It's just a hunch.
<dminuoso> anyway. [a,b].transpose.map { |ary| ary.join(":") }
<dminuoso> just for the giggles
tubuliferous has joined #ruby
blackbombay has joined #ruby
<herwin> go|dfish, dminuoso: it requires a carthesian product, you solutions don't offer that
blackbom1 has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
<matthewd> herwin: You mean lupine and dminuoso; go|dfish's does
<go|dfish> well, that's why i suggested .product? a.product(b).map { |pair| pair.join(':') }
<tjikkun> (a.product b).map {|x| x.join(":") }
<dminuoso> herwin: ah
<tjikkun> yeah, that one looks nice to me
mguezuraga has joined #ruby
<dminuoso> tjikkun: Yeah. :)
<lupine> ah, whoops
<herwin> matthewd: yes, i meants lupine instead of go|dfish
<herwin> sorry go|dfish ;)
<dminuoso> tjikkun: It also is very self explanatory in what it does
<tjikkun> thanks guys!
<dminuoso> nested maps with string manipulations rarely are :)
Robtop__ has quit [Ping timeout: 260 seconds]
<dminuoso> tjikkun: For readability you could also use (a ** b)
<dminuoso> depending on what you prefer
tubuliferous has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
<tjikkun> well, it needs to work on ancient ruby
manjaro-kde5_ has joined #ruby
<dminuoso> Oh wait nevermind that. Thats not what I meant.
<dminuoso> Looked at the wrong documentation
<dminuoso> :)
bronson has joined #ruby
rwb has quit [Ping timeout: 246 seconds]
<tjikkun> well I'll just go with go|dfish's suggestion, but nice to see lot's af friendly help, and kudo's to matthewd for not spoonfeeding ;)
toretore has quit [Ping timeout: 265 seconds]
xall has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pwnd_nsfw has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 265 seconds]
czerasz has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
blackbom1 has joined #ruby
milardovich has joined #ruby
<mguezuraga> Anybody with a bit of experience with OpenSSL::Cipher::Cipher? I'm trying to understand how a key of 40 bytes gets 'truncated' to 32 bytes
blackbombay has quit [Ping timeout: 265 seconds]
pytuger has quit [Quit: "be back later"]
SpiffTR has joined #ruby
symm- has quit [Quit: Leaving...]
czerasz has quit [Ping timeout: 265 seconds]
blackbom1 has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
byte512 has joined #ruby
enyo has joined #ruby
sdwrage has joined #ruby
cyphase has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 258 seconds]
lenwood has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
cyphase has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 252 seconds]
rykou has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
gajus has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
nowz has quit [Quit: Leaving]
h1fuelcell has joined #ruby
conta has quit [Ping timeout: 248 seconds]
AlexRussia has joined #ruby
sdothum has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
eggshke has quit []
minimalism has joined #ruby
conta has joined #ruby
conta has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
RedFromage has joined #ruby
SesMan has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
anisha has quit [Read error: Connection reset by peer]
d34th4ck3r has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tdy1 has quit [Ping timeout: 256 seconds]
klaas has quit [Ping timeout: 264 seconds]
rwb has joined #ruby
pragmaticus has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
RedFromage has quit [Ping timeout: 256 seconds]
pwnd_nsfw` has joined #ruby
siddart has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
tubuliferous has quit [Ping timeout: 268 seconds]
vadjo has joined #ruby
bronson has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
vuoto has quit [Ping timeout: 256 seconds]
h1fuelcell has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
pawelb has joined #ruby
h1fuelcell has joined #ruby
paranoicsan has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
_sfiguser has quit [Ping timeout: 246 seconds]
pawelb` has joined #ruby
vadjo has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
_sfiguser has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
Pumukel has joined #ruby
pawelb has quit [Ping timeout: 265 seconds]
tyang has joined #ruby
pragmaticus has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<manveru> mguezuraga: your sample doesn't work
cyphase has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
exchgr has quit [Quit: ZNC - http://znc.in]
<manveru> mguezuraga: SHA1 returns 40 bytes
exchgr has joined #ruby
gnufied has joined #ruby
exchgr has quit [Client Quit]
cyphase has joined #ruby
<mguezuraga> manveru: correct, however, see that @cipher.key_len is 32
pwnd_nsfw has joined #ruby
<manveru> you should get an exception before already
<manveru> what ruby version do you use?
<mguezuraga> this is ruby 2.0.0p648
exchgr has joined #ruby
<manveru> OpenSSL::Cipher::Cipher is deprecated in 2.4
x00r__ has quit [Ping timeout: 252 seconds]
SesMan has joined #ruby
<mguezuraga> in favor of ?
pwnd_nsfw` has quit [Ping timeout: 265 seconds]
modin has quit [Ping timeout: 246 seconds]
pmodin has joined #ruby
pmodin is now known as modin
aef has joined #ruby
yehowyada has joined #ruby
cyphase has quit [Ping timeout: 264 seconds]
jokke has quit [Remote host closed the connection]
dviola has joined #ruby
x00r__ has joined #ruby
aef has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
polysics has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<mguezuraga> manveru: you're right, 2.4.0 says: 'key must be 32 bytes'. In the end, I'm just wondering how 2.0 is doing to truncate it to 32, since my production systems are running that version
symm- has joined #ruby
cyphase has joined #ruby
<manveru> good question...
Devalo has joined #ruby
<mguezuraga> I can assume it's taking the 32 first characters, but I want to be sure
jokke has joined #ruby
<herwin> try using the first 32 chars of the 40 as key
<herwin> it should have the same result if it does that internally
GodFather has quit [Ping timeout: 246 seconds]
<mguezuraga> good point, will try it
pawnbox has joined #ruby
saslam has joined #ruby
<manveru> that's the 2.0 implementation
milardovich has quit []
brendan- has joined #ruby
<manveru> it only checks if the key is too short and passes the key to EVP_CipherInit_ex
<manveru> so it depends on what openssl does
<mguezuraga> my test confirms it just takes the first 32 chars
nankyokusei has joined #ruby
emilkarl has joined #ruby
<mguezuraga> thanks herwin for the suggestion
<mguezuraga> will update the gist just for readability
saneax is now known as saneax-_-|AFK
h1fuelcell has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
GodFather has joined #ruby
polysics has quit [Remote host closed the connection]
jhack has joined #ruby
cyphase has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
polishdub has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
harfangk has joined #ruby
astrobunny has joined #ruby
raz has quit [Changing host]
raz has joined #ruby
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous has joined #ruby
Devalo has quit [Remote host closed the connection]
cyphase has joined #ruby
Devalo has joined #ruby
astrobunny has quit [Ping timeout: 250 seconds]
<soahccc> Is there a way for a ruby script to both be able to accept piped input and receive input from the terminal client? I think this doesn't work? I had a somewhat working solution with curses but the user input was delayed by seconds (I guess curses multiplexes the stdin somehow?)
DLSteve has joined #ruby
<ytti> arent they both the same
<ytti> reading from STDIN
pawnbox has quit [Remote host closed the connection]
bkxd has joined #ruby
<raldu_> soahccc: what exactly is the use case for such a need? just curious
tubuliferous has quit [Ping timeout: 258 seconds]
Devalo has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
<mguezuraga> updated my gist. Thanks manveru!
<soahccc> raldu_: I wrote a script that parses our access logs and detects malicious clients based on some heuristics and softbans them (like googles "your network blabla, captcha blabla"). I need some way to control the script (esp. in development) and currently I rely on file based instructions (read a file in the loop and look for instructions)
cyphase has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
<soahccc> ytti: well they kinda do that but in the code it's ARGF vs STDIN
symm- has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 265 seconds]
<manveru> same thing, basically
<manveru> once your stdin is connected to a pipe, you'd have to switch it back
bronson has quit [Ping timeout: 245 seconds]
<soahccc> I don't know how curses was able to do that but I guess it does that behind the scenes, that's why there is the delay
<ytti> soahccc, what, no
<ytti> soahccc, ARGF either parses argument as file to open or reads STDIN
<manveru> if you're parsing logfiles, why don't you pass the logfile as argument?
<soahccc> ytti: what i mean is that curses was able to get user input while it was reading from the pipe
<raldu_> soahccc: perhaps it read from stderr?
skydiver has joined #ruby
bkxd has joined #ruby
<soahccc> manveru: yeah I was thinking about that. currently we grep out 90% of the requests which I could do with ruby but this will increase the regexing load by a few times :)
djbkd has joined #ruby
cyphase has joined #ruby
<soahccc> raldu_: stderr is output?
<manveru> hm ok
<manveru> lemme see if i can figure it out, sounds like fun :)
bkxd has quit [Client Quit]
<manveru> you possibly can use a named pipe
<soahccc> Unfortunately I scrapped my curses solution (was trying it manually but got the "Errno::ENOTTY: Inappropriate ioctl for device" problem)
<manveru> well, a pipe is no tty
<ytti> soahccc, i think i understand what you mean, and it has nothing to do with ARGF
jenrzzz has quit [Ping timeout: 264 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 256 seconds]
synthroid has quit [Ping timeout: 245 seconds]
saslam has quit [Ping timeout: 268 seconds]
lightstalker has quit [Ping timeout: 260 seconds]
<manveru> soahccc: i think i got it
<manveru> but not sure how cross-platform it is
lenwood has joined #ruby
synthroid has joined #ruby
lightstalker has joined #ruby
<manveru> soahccc: your piped file is IO.for_fd(11), and the terminal is IO.for_fd(0)
ferr1 has quit [Quit: WeeChat 1.6]
SpiffTR has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
<soahccc> manveru: where did you get those magic numbers from? :D
<manveru> /proc
Illianthe has joined #ruby
<manveru> yeah, that's not working
Illianthe2 has quit [Ping timeout: 250 seconds]
<manveru> i'll figure out a better solution :)
<manveru> my test was with <(echo hi) pipe, but depending on the file, the fd changes
lenwood has quit [Remote host closed the connection]
lenwood has joined #ruby
pawnbox has joined #ruby
creat has quit [Ping timeout: 258 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<manveru> soahccc: made a little script to figure out wtf is going on
<manveru> basically, fd 0 changes depending on the thing being piped
<manveru> if something is piped, /dev/pts/0 moves to fd 1
gajus has quit [Quit: Connection closed for inactivity]
<manveru> soahccc: so i think i got it
dionysus69 has quit [Quit: dionysus69]
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
<manveru> you don't need the sleep, but otherwise i'd have to pipe massive files to try it
<manveru> i'm sure relying on the fd numbers is a bad pattern, but i'm not sure what better way there is
<soahccc> manveru: I just realized that curses didn't do shit. I just randomly reads a character from the log input every so often (3-10 seconds) :(
Fernando-Basso has joined #ruby
<manveru> yeah
<manveru> curses would treat your file as someone typing in the console if you're unlucky...
<manveru> also curses is dead, you mean ncurses?
lenwood has quit [Quit: Konversation terminated!]
manjaro-kde5- has joined #ruby
<manveru> anw, hope my script helps you, it should do everything you need :)
<manveru> should be fairly safe as long as you run it only on linux
manjaro-kde5- has quit [Client Quit]
manjaro-kde5- has joined #ruby
h1fuelcell has joined #ruby
<soahccc> manveru: the gem is just called curses, I guess it's the old one :) I try your solution in a sec
AliG1000 has quit []
Rutix has quit []
mikeXsh has joined #ruby
dionysus69 has joined #ruby
<soahccc> manveru: hmm I guess it works, I'm on OS X and with tty it breaks, I used your debug code at the top but how did you indentify the correct one?
gajus has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
<manveru> which fd points to pts 0?
dionysus69 has quit [Ping timeout: 246 seconds]
pwnd_nsfw` has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
<manveru> does osx have /proc?
<manveru> i'd have to dig out my macbook to try it there
<apeiros> manveru: no
<manveru> oh well :|
<soahccc> hmm :/
<manveru> anw, if you have tty, you have no piped file
<manveru> in that case you just use $stdin
pwnd_nsfw has quit [Ping timeout: 265 seconds]
<soahccc> I'm thinking about spinning up a webserver and control it that way :<
Azure has joined #ruby
<manveru> the code should work if you pipe a file in, no?
<manveru> even on osx
chouhoulis has joined #ruby
<soahccc> yes, well at least it doesn't raise :) I yet have to read from those
<soahccc> (terminal works, but pipe I haven't tested)
<manveru> it reads a line every second from your piped file and from the terminal if you type something
cyphase has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
<gizmore|2> unfreeze a frozen obj :)
Jackneill has quit [Quit: Leaving]
<herwin> ``tricks you should do if you want the whole world to hate you''
Jackneill has joined #ruby
bronson has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
d34th4ck3r has joined #ruby
Jackneill has quit [Remote host closed the connection]
Jackneill has joined #ruby
Jackneill has quit [Remote host closed the connection]
newbie1 has joined #ruby
Jackneill has joined #ruby
pytuger has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Robtop__ has joined #ruby
insanedreamer has joined #ruby
solocshaw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
insanedreamer has left #ruby [#ruby]
djbkd has joined #ruby
GodFather has joined #ruby
Robtop__ has quit [Ping timeout: 258 seconds]
mrwn has joined #ruby
nadir|mobile has quit [Quit: Connection closed for inactivity]
djbkd has quit [Ping timeout: 268 seconds]
Pumukel has joined #ruby
Jackneill has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
LoneHerm_ has joined #ruby
coetry has joined #ruby
benlieb has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 248 seconds]
benlieb has quit [Client Quit]
Jackneill has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
MrBismuth has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
Mother has joined #ruby
<Mother> which javascript book is best suited for ruby?
<Mother> beginner point of view
<Mother> for rails i mean
<Mother> ?
kirun has joined #ruby
emilkarl has quit [Quit: emilkarl]
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mguezuraga has quit [Quit: Leaving.]
cyphase has quit [Ping timeout: 258 seconds]
astrobunny has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
Mother has quit [Ping timeout: 260 seconds]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
ishe_ua has quit [Remote host closed the connection]
solocshaw has quit [Quit: solocshaw]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrwn has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
synthroid has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 240 seconds]
cats has quit [Quit: BURN HIS HOUSE DOWN]
cats has joined #ruby
benlieb has joined #ruby
polysics has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
GodFather has joined #ruby
Lord_of_Life has quit [Excess Flood]
Pumukel has joined #ruby
enilsen16 has joined #ruby
Lord_of_Life has joined #ruby
jhack has quit [Quit: jhack]
xall has quit [Ping timeout: 264 seconds]
coetry_ has joined #ruby
wugy has quit []
gusrub has joined #ruby
amclain has joined #ruby
SpiffTR has quit [Quit: Leaving.]
millerti has joined #ruby
bronson has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
aef has joined #ruby
pawnbox has quit [Remote host closed the connection]
LuckyABA has joined #ruby
pawnbox has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
xall has joined #ruby
IceDragon has joined #ruby
IceDragon is now known as Guest5991
<biox> quit
Guest5991 is now known as IceDragon
GodFather has quit [Ping timeout: 246 seconds]
enilsen16 has quit [Quit: enilsen16]
kus has joined #ruby
SpiffTR has joined #ruby
enyo has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
milardovich has joined #ruby
oaklndr1 has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
GodFather has joined #ruby
frozengeek has quit [Quit: frozengeek]
emilkarl has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lolmaus_ has joined #ruby
emilkarl has quit [Client Quit]
tau has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
Couch has quit [Ping timeout: 250 seconds]
agit0 has quit [Ping timeout: 260 seconds]
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
symm- has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
yeticry has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
emilkarl has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
emilkarl has quit [Client Quit]
Macaveli has joined #ruby
braincrash has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pwnd_nsfw has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Remote host closed the connection]
learning has joined #ruby
_sfiguser has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
xall has quit [Ping timeout: 256 seconds]
milardovich has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
SpiffTR has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
webopsx has joined #ruby
<c-c> I have some problems with file-io bound processes
<lupine> faster discs?
<c-c> - or, basically a process that keeps on failing because certain files have not hit the disk yet
<c-c> So my question:
<c-c> Whats the correct way to loop until file A and file B exist?
<Papierkorb> naive way: `sleep 1 until File.exist?("a") && File.exist?("b")`
<Papierkorb> smarter way: Some gem which listens to filesystem changes, may not be portable
learning has quit []
<lupine> inotify > *
<c-c> Basically its a Dir.mkdir, and two system mkfifo calls. For some reason these return before the open("/dir/fifo/", "r") can open them, so it returns Errno::EINTR
dunpeal has quit [Quit: leaving]
<lupine> that sounds posix-violate-y
<c-c> So, the resulting behaviour the sequence fails about 70% of the time
manjaro-kde5- has quit [Ping timeout: 248 seconds]
<c-c> *is, that the sequence...
<c-c> - I assume that Errno::EINTR means that the dir & fifo -files have not been fully created
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<c-c> * lib/ui.rb:36:in `initialize': Interrupted system call @ rb_sysopen - /tmp/spyops/so_ui_eng.pipe (Errno::EINTR)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
<al2o3-cr> c-c: there is File.mkfifo you could use
aremaref has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c-c> al2o3-cr: not on this 2.1
ta has joined #ruby
<al2o3-cr> ah, yeah 2.3 :(
<c-c> anyway, the call "system('dir/fifoname')" should be blocking by all reason
<c-c> uh, system('mkfifo dir/fifoname')
symm has joined #ruby
<c-c> - Also, the sequence works every time if there are pre-created Dir and fifo-files
<c-c> (ie. no cleanup from the previous attempt)
symm- has quit [Ping timeout: 258 seconds]
<c-c> - Also, the two different class instances in two different daemonized processes give the (Errno::EINTR) randomly, so I'm pretty sure its disk io thing
* c-c saves 20 microseconds per request over a socket, lose 2 days debugging this
<al2o3-cr> c-c: just rescue then retry
bronson has joined #ruby
milardovich has joined #ruby
SpiffTR has quit [Quit: Leaving.]
LoneHermit has joined #ruby
SpiffTR has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
bronson has quit [Ping timeout: 248 seconds]
enyo has joined #ruby
<c-c> Testing for File.exists? does not help with Errno::EINTR when open("dir/fifofile", "w"). (or "r")
LoneHermit has quit [Ping timeout: 258 seconds]
tyang_ has joined #ruby
Devalo has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
enyo has quit [Ping timeout: 245 seconds]
tyang_ has quit [Read error: Connection reset by peer]
tyang_ has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 252 seconds]
pilne has joined #ruby
pwnd_nsfw has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<c-c> Ok, now have it working
Fernando-Basso has quit [Ping timeout: 246 seconds]
pwnd_nsfw` has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<c-c> The fifo idea: pfifo='/path/name.fifo'; system(pfifo); p = fork do; begin; rd = open(pfifo, 'r'); rescue Interrupt, Errno::EINTR; retry; end; puts rd.gets while !rd.closed?; end; wr = open(pfifo, "w"); pw.puts Time.now while !pw.closed?
LuckyABA has quit [Quit: Textual IRC Client: www.textualapp.com]
pwnd_nsfw has quit [Ping timeout: 264 seconds]
<c-c> Who knows, maybe even wrap the second open in a begin-rescue!
LuckyABA has joined #ruby
Devalo has quit [Ping timeout: 268 seconds]
xall has joined #ruby
h1fuelcell has joined #ruby
last_staff has joined #ruby
Fernando-Basso has joined #ruby
dar123 has joined #ruby
tyang__ has joined #ruby
yasm has joined #ruby
xall has quit [Ping timeout: 256 seconds]
yasm has quit [Client Quit]
h1fuelcell has quit [Ping timeout: 264 seconds]
yasm has joined #ruby
Talltree has quit [Quit: Talltree]
ur5us has joined #ruby
tyang_ has quit [Ping timeout: 268 seconds]
Talltree has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
dunpeal has joined #ruby
<dunpeal> I have a `puts "foo"` line inside a spec test. When I run it via rspec, "foo" never gets printed, even though other puts calls in methods executed by the spec do get printed normally. What's up?
GodFather has quit [Remote host closed the connection]
<matthewd> dunpeal: Probably the same thing that caused you to add the line in the first place. Describe that problem instead?
nankyokusei has quit [Ping timeout: 260 seconds]
<c-c> dunpeal: a process usually has stdin, stdout and stderr - perhaps spec redirects these someplace other than your controlling terminal
pragmaticus has quit [Ping timeout: 250 seconds]
<dunpeal> matthewd: nothing. I'm putting a bunch of puts calls in that spec to check why it's not exposing a bug.
<dunpeal> there was no problem with puts to begin with.
<dunpeal> c-c: any idea where?
kobain has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<matthewd> dunpeal: Code please
tildes has joined #ruby
jhack has joined #ruby
rippa has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<dunpeal> thanks, I found the issue.
<dunpeal> and yes, rspec doesn't automatically redirect stdout. I was confusing it with some popular Python test runners that do.
Pumukel has joined #ruby
Macrobiotic has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
troulouliou_div2 has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Talltree has quit [Quit: Talltree]
Talltree has joined #ruby
tyang__ has quit [Read error: Connection reset by peer]
tyang_ has joined #ruby
Pumukel has joined #ruby
pawnbox has quit [Remote host closed the connection]
kristofferR has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
pragmaticus has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
milardovich has joined #ruby
coetry_ has quit [Ping timeout: 260 seconds]
coetry has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
yasm has quit [Quit: Leaving]
Chrish_ has joined #ruby
coetry has joined #ruby
pawnbox has joined #ruby
<Chrish_> Good evening everyone. I am trying to package my ruby scripts into an executable using OCRA, but I am running into some trouble with RMagick2. What my application does is generate some graphs using the Gruffy gem, which relies on rmagick.
<Chrish_> When the application is run on another machine it gives the error that RMagick2.so could not be found.
tildes has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
<Chrish_> How do I go about including the .so file, should I even do so?
cratchet311 has joined #ruby
moei has quit [Quit: Leaving...]
SpiffTR has joined #ruby
Lord_of_Life has quit [Excess Flood]
lacour has joined #ruby
Lord_of_Life has joined #ruby
walterheck has joined #ruby
tildes has quit [Ping timeout: 258 seconds]
[Butch] has joined #ruby
lightstalker has quit [Ping timeout: 258 seconds]
kus has quit [Quit: Konversation terminated!]
<Chrish_> Google searches don't turn up much, the OCRA docs don't seem to mention it either.
agit0 has joined #ruby
tyang_ has quit [Quit: Leaving]
tyang has joined #ruby
ruid_ has joined #ruby
h1fuelcell has joined #ruby
SpiffTR has quit [Quit: Leaving.]
lightstalker has joined #ruby
agit0 has quit [Client Quit]
blackbombay has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
doubleemms has quit []
coetry has quit [Ping timeout: 265 seconds]
ResidentBiscuit has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
ta has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
GodFather has joined #ruby
blackbombay has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
siddart_ has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
frozengeek has joined #ruby
agit0 has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
siddart has quit [Ping timeout: 256 seconds]
troulouliou_div2 has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 250 seconds]
blackbombay has joined #ruby
xall has joined #ruby
LoneHerm_ has joined #ruby
agit0 has quit [Ping timeout: 260 seconds]
enyo has joined #ruby
doubleemms has joined #ruby
LoneHerm_ has quit [Ping timeout: 245 seconds]
<Chrish_> Is anyone alive in this channel?
<dminuoso> No.
hahuang65 has joined #ruby
SpiffTR has joined #ruby
emilkarl has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
<Chrish_> dminuoso: I am confused, is this not the channel where one can ask for help on Ruby matters?
milardovich has joined #ruby
byte512 has quit [Ping timeout: 258 seconds]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
Asher has quit [Quit: Leaving.]
<havenwood> Chrish_: It's a Holiday lull.
coetry has joined #ruby
<havenwood> Chrish_: But this is the right place!
Asher has joined #ruby
<havenwood> Chrish_: Also, library-specific questions typically take longer to get an answer.
djbkd has joined #ruby
pwnd_nsfw has joined #ruby
kus has joined #ruby
oaklndr1 has quit [Quit: Leaving]
d34th4ck3r has quit [Quit: d34th4ck3r]
manjaro-kde5- has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
oaklndr1 has joined #ruby
Asher has quit [Client Quit]
Asher has joined #ruby
Asher has quit [Client Quit]
Asher has joined #ruby
millerti has joined #ruby
djbkd has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
elementaru has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
nadir|mobile has joined #ruby
sdwrage has joined #ruby
gajus has quit [Quit: Connection closed for inactivity]
synthroi_ has joined #ruby
jobingo has joined #ruby
symm has quit [Quit: Leaving...]
hightower3 has quit [Ping timeout: 245 seconds]
synthroid has quit [Ping timeout: 258 seconds]
<jobingo> Good evening everyone! I have wasted whole post-Christmas day because of Rubygems: I wonder if anyone had some problems with SSL certificates and couldn't install any gems from HTTPS source?
<havenwood> jobingo: What version of Ruby?
<jobingo> ruby 2.1.10p492 (2016-04-01 revision 54464); gem -v #=> 2.6.8
<Chrish_> havenwood: alright thanks for the response.
<jobingo> Error message redirects me to http://bit.ly/ruby-ssl I tried everything
<jobingo> My rubygems version is recent enough to have updated SSL certificates
<havenwood> jobingo: What version of RubyGems?
<Chrish_> jobingo: yeah, I had the same issue. Iirc this fixed it for me. https://gist.github.com/luislavena/f064211759ee0f806c88
<jobingo> rubygems version: 2.6.8
<havenwood> jobingo: As you probably know, Ruby 2.1 is no longer maintained with bug fixes including new certs and only receives security updates until february
hightower3 has joined #ruby
<jobingo> Chrish_: I tried everything from this page. The weird thing is I am on Ubuntu and I shouldn't have any problem
<jobingo> I have had the same problem with Ruby 2.3.3, via rvm
prestorium has quit [Quit: Leaving]
<havenwood> jobingo: The best option would be to update to the latest Ruby 2.2, 2.3 or 2.4. Try installing the ca-certificates package.
<havenwood> jobingo: sudo apt-get install ca-certificates
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
<jobingo> Tried it also, it is already fresh: ca-certificates is already the newest version (20160104ubuntu1).
<jobingo> Interesting thing is that setting `:ssl_verify_mode: 0` to .gemrc didn't do anything.
<Chrish_> havenwood: do you know if OCRA has its own IRC channel?
<havenwood> jobingo: Gist the results of?: openssl s_client -showcerts -connect api.rubygems.org:443
<Chrish_> I've tried searching for it to no avail
pawnbox has quit [Remote host closed the connection]
<havenwood> Chrish_: I don't know of an OCRA channel. Other options you might want to look at are Releasy and Traveling Ruby
<Chrish_> yeah I need to check out releasy, it seemed a bit more complicated than OCRA where you can just do "ocra script.rb" and it builds a .exe
elementaru has quit [Read error: Connection reset by peer]
<jobingo> havenwood: https://gist.github.com/anonymous/a6e3f3eb01c4a514ce50d22d3f060672 Sorry for taking so long
<Chrish_> Oh hey, I had not found traveling ruby yet, thanks! :)
djbkd has joined #ruby
webopsx has joined #ruby
<jobingo> Looks like "certificate is not yet valid". Can I somehow spoof certificate?
webopsx has quit [Max SendQ exceeded]
enilsen16 has joined #ruby
djbkd_ has joined #ruby
<havenwood> Chrish_: Traveling Ruby is nice! It's more than one line to get going but it has great support for packaging extensions.
<havenwood> jobingo: Yeah, that's suspicious, as it should be returning: Verify return code: 0 (ok)
manjaro-kde5- has quit [Ping timeout: 268 seconds]
<havenwood> jobingo: You might show that gist in the #rubygems channel as well.
ur5us has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
<jobingo> Thank you for pointing this direction, havenwood. It is definetly closer now to resolve that mystery.
djbkd has quit [Ping timeout: 245 seconds]
hightower2 has joined #ruby
pwnd_nsfw` has joined #ruby
hightower3 has quit [Ping timeout: 245 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
hightower3 has joined #ruby
d0nn1e has quit [Ping timeout: 252 seconds]
coetry has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Quit: Leaving]
Fernando-Basso has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
d0nn1e has joined #ruby
enilsen16 has quit [Quit: enilsen16]
Jackneill has quit [Remote host closed the connection]
Yacker has joined #ruby
nankyokusei has joined #ruby
<Nicmavr> Hi, can someone tell me how you can call a method from another class in Ruby as you would with Java?
<jhass> Nicmavr: SomeClass.method
<jhass> some_instance_of_some_class.method
<Chrish_> Yeah some more info would be nice, do you mean how you can call a static method in a java class?
bijan_ has joined #ruby
* dminuoso pokes jhass
nankyokusei has quit [Ping timeout: 265 seconds]
hightower2 has joined #ruby
<Nicmavr> Chrish_, kind of yes
* jhass stabs dminuoso
<jhass> you at 33c?
hightower3 has quit [Ping timeout: 268 seconds]
x00r__ has quit [Read error: Connection reset by peer]
<Nicmavr> jhass, the first class doesnt find the second class, is there anything more to it than how you described?
<Nicmavr> the 2 classes are in the same directory
frozengeek has quit [Quit: frozengeek]
<jhass> please show a minimal reproducing example on eval.in :)
<tobiasvl> include?
<Chrish_> Nicmavr: did you require the file inside the other?
<Chrish_> require_relative 'classname'
<Chrish_> if it's in the same folder
<bijan_> What is the sentiment towards Elixir? During the Holidays I started to read about it + Phoenix for webdev-
<lupine> I'd probably just use straight erlang if I had a usecase for the runtime
frozengeek has joined #ruby
pragmaticus has quit [Ping timeout: 258 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
<bijan_> lupine: why?
<lupine> it's a perfectly fine language
gee has joined #ruby
gee is now known as Guest79281
[Butch] has quit [Read error: Connection reset by peer]
bronson has joined #ruby
pwnd_nsfw has joined #ruby
dgee has joined #ruby
Guest79281 has quit [Client Quit]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has joined #ruby
hightower3 has joined #ruby
Dimik has joined #ruby
loechel has joined #ruby
tdy1 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
hightower2 has quit [Ping timeout: 252 seconds]
hightower2 has joined #ruby
coetry has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
machinewar has joined #ruby
loechel has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
unreal_ has joined #ruby
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 250 seconds]
h1fuelcell has joined #ruby
synthroi_ has quit [Ping timeout: 245 seconds]
tdy1 is now known as tdy
[Butch] has joined #ruby
xen0fon has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 258 seconds]
coetry has quit [Ping timeout: 252 seconds]
coetry has joined #ruby
manjaro-kde5- has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
h1fuelcell has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
<havenwood> bijan_: I think Elixir is quite nice. Try making a Phoenix app!
ruid_ has quit [Ping timeout: 258 seconds]
<bijan_> yeah I will give it a try :D even though I don't think it will be as productive as rails.. but we will see
<havenwood> bijan_: Here's a just-for-fun implementation of some of the Elixir stdlib in Ruby: https://github.com/havenwood/elixir.rb#examples
benlieb has quit [Quit: benlieb]
<bijan_> whoa how meta. elixir is inspired by ruby and now this is rebuilds elixirs stdlib in ruby!? :D cool
gizmore has quit [Read error: Connection timed out]
gizmore has joined #ruby
<bijan_> havenwood: had some fun implementing this there, right? :)
<havenwood> bijan_: yup :-D
hightower2 has quit [Ping timeout: 264 seconds]
<bijan_> good way to learn about the language I guess
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonjoe has joined #ruby
xen0fon has joined #ruby
jonjoe has quit [Client Quit]
h1fuelcell has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
h1fuelcell has quit [Remote host closed the connection]
tyang_ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
tyang has quit [Ping timeout: 248 seconds]
LoneHermit has joined #ruby
tyang_ has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
enyo has joined #ruby
nyuszika7h has quit [Ping timeout: 245 seconds]
Devalo has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
Devalo has joined #ruby
LoneHermit has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
h1fuelcell has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Disconnected by services]
dionysus69 has quit [Ping timeout: 260 seconds]
enyo has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
h1fuelcell has joined #ruby
sepp2k1 has quit [Ping timeout: 245 seconds]
jshjsh has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
gee_ has joined #ruby
dgee has quit [Quit: Leaving]
JoshS has quit [Ping timeout: 258 seconds]
synthroid has quit []
coetry has quit [Ping timeout: 250 seconds]
ecksit has joined #ruby
Gasher has joined #ruby
gee_ has quit [Ping timeout: 258 seconds]
coetry has joined #ruby
dunpeal has quit [Ping timeout: 260 seconds]
Pisuke has quit [Read error: Connection reset by peer]
HBurks1618 has joined #ruby
Pisuke has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Chrish_ has quit [Ping timeout: 260 seconds]
rwb has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
sdothum has joined #ruby
pytuger has quit [Ping timeout: 265 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
bijan_ has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UserJosh has joined #ruby
TomyLobo has joined #ruby
mello has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
dtzu has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
jshjsh has quit [Ping timeout: 268 seconds]
mrwn has joined #ruby
Ishido has quit [Remote host closed the connection]
kirun has quit [Quit: Konversation terminated!]
vedu has quit [Quit: ZNC - http://znc.in]
tvw has joined #ruby
tyang has joined #ruby
pry0cc has joined #ruby
<pry0cc> Hey masterrace!
<pry0cc> Is everybody having a beautiful day?
polishdub has quit [Quit: Leaving]
<pry0cc> is anybody alive?
<havenwood> !troll pry0cc
pry0cc was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
DTZUZU has joined #ruby
JoshS has joined #ruby
oaklndr1 has quit [Remote host closed the connection]
Illianthe has quit [Remote host closed the connection]
tyang_ has joined #ruby
oaklndr1 has joined #ruby
coetry has quit [Ping timeout: 294 seconds]
crayfishx has quit [Excess Flood]
foption has quit [Remote host closed the connection]
crayfishx has joined #ruby
UserJosh has quit [Ping timeout: 266 seconds]
matp has quit [Excess Flood]
lenwood has joined #ruby
rykou has quit [Quit: WeeChat 1.6]
Pisuke has quit [Max SendQ exceeded]
manjaro-kde5- has quit [Write error: Broken pipe]
tyang has quit [Ping timeout: 245 seconds]
aidalgol has joined #ruby
ibouvousaime has joined #ruby
nettoweb has joined #ruby
Pisuke has joined #ruby
HBurks1618 has left #ruby [#ruby]
emilkarl has quit [Quit: emilkarl]
siddart_ has quit [Quit: WeeChat 1.4]
Yacker has joined #ruby
symm- has joined #ruby
ruid_ has joined #ruby
jobingo has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 246 seconds]
walterheck has quit [Ping timeout: 260 seconds]
blackbombay has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
unreal has joined #ruby
<machinewar> gst
unreal_ has quit [Ping timeout: 264 seconds]
<manveru> gnu smalltalk?
<havenwood> generalized suffix tree?
<machinewar> lol 'git status'
<machinewar> in wrong input
<manveru> :)
* apeiros had that aliased to `gs` until ghostscript got installed…
<manveru> mine's `g st`
<machinewar> at least it wasn't an accidental vim command
<apeiros> that'd open the bookmark named 'st'
<machinewar> that usually throws coworkers off
pry0cc has joined #ruby
<pry0cc> Hello! Er. Friends.
<pry0cc> Is anybody here a Mechanize pro?
kus has quit [Quit: Konversation terminated!]
nettoweb has quit [Ping timeout: 260 seconds]
nettoweb1 has joined #ruby
<manveru> how about you just asking your problem, higher chance of people responding :)
<manveru> i'd never answer if someone asked for a pro electrician, but i can change a lightbulb nonetheless
<pry0cc> Okay! So I am writing a very simple script to clone a website. And one of the things it does is call a random url to get the 404 page. The issue however with 404 and Mechanize, is that it throws a Net::HTTPNotFound error, but I want to load that page regardless of whether its a 404 or not. Any suggestions?
<pry0cc> is there a "mechanize.ignore404" kind of option?
benlieb has quit [Quit: benlieb]
nankyokusei has joined #ruby
<manveru> that's if you use the Net::HTTP client with mechanize
blackbombay has joined #ruby
<pry0cc> manveru: so how would I do it differently?
<pry0cc> can i specify another http client?
<manveru> well, you should actually get a Mechanize::ResponseCodeError
<manveru> did you try rescuing it?
<manveru> http://docs.seattlerb.org/mechanize/Mechanize/ResponseCodeError.html says it has a page method, which should return you the contents of that 404 page
<pry0cc> I didn't... I thought it would just ignore the page
<pry0cc> i'll give that a go
nankyokusei has quit [Ping timeout: 252 seconds]
h1fuelcell has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yacker has quit [Quit: Textual IRC Client: www.textualapp.com]
<pry0cc> as I suspected, it doesn't even load the html
ecksit has quit [Read error: Connection reset by peer]
MrBismuth has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
<manveru> i see something different
_defk0n_ has joined #ruby
machinewar has quit []
h1fuelcell has quit [Ping timeout: 248 seconds]
prawnzy has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
sdothum has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<manveru> if you care for the html itself, call ex.page.body
<pry0cc> ex.page.body? ex being?
<manveru> you looked at my paste?
<pry0cc> ohh sorry xD
<pry0cc> thank you i'll give it a blast.
ibouvousaime has quit [Ping timeout: 250 seconds]
pawelb` has quit [Ping timeout: 245 seconds]
<pry0cc> manveru: so it seems I'm not getting a mechanize response code error
<pry0cc> i'm getting a HTTPNotFound error
<manveru> my code doesn't work for you?
<pry0cc> don't be offended xD
<manveru> with mechanize 2.7.5 and ruby 2.3.3?
<pry0cc> I actually modified my current script
<pry0cc> could be my problem
ruby[bot] has joined #ruby
<manveru> no worries, just trying to see how our setup differs
gnufied has joined #ruby
bronson has joined #ruby
<manveru> if you share your code instead i could try that
<pry0cc> Hmm i'd rather not, got creds and stuff in there.
<pry0cc> thanks though.
<pry0cc> ok so I ran your script. as it was, it worked.
<pry0cc> I modified it to ex.page.html
<pry0cc> error.
<manveru> ex.page.body
h1fuelcell has joined #ruby
<pry0cc> SUCCESS
<manveru> there's a html_body method too, but i don't think that's what you want
<pry0cc> manveru: thank you
<manveru> plus that's private method :)
_defk0n_ has quit [Quit: Its been real!]
<manveru> you're welcome
juanda has joined #ruby
saneax-_-|AFK is now known as saneax
<pry0cc> whoop whoop
<manveru> that's the sound of the police
h1fuelcell has quit [Remote host closed the connection]
Macrobiotic has quit [Quit: Connection closed for inactivity]
blackbom1 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
blackbombay has quit [Ping timeout: 265 seconds]
h1fuelcell has joined #ruby
Pumukel has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
aidalgol has quit [Quit: Using Circe, the loveliest of all IRC clients]
h1fuelcell has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 250 seconds]
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 258 seconds]
CloCkWeRX has joined #ruby
LoneHerm_ has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
blackbom1 has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has joined #ruby
enyo has joined #ruby
hahuang65 has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 260 seconds]
montanonic has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Ping timeout: 265 seconds]
ruid_ has quit [Ping timeout: 252 seconds]
enyo has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
hightower2 has joined #ruby
biberu has quit []
symm- has joined #ruby
Devalo has joined #ruby
alan_w has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
jshjsh has joined #ruby
ur5us has quit [Remote host closed the connection]
hightower3 has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
Devalo has quit [Ping timeout: 246 seconds]
hightower2 has quit [Ping timeout: 256 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
GodFather has joined #ruby
milardovich has quit []
koooge has joined #ruby
ascarter_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
enilsen16 has joined #ruby
h1fuelcell has joined #ruby
jhack has quit [Quit: jhack]
coetry has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
doubleemms has quit [Remote host closed the connection]
astrobunny has joined #ruby
hightower2 has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
hightower3 has quit [Ping timeout: 245 seconds]
skweek has joined #ruby
millerti has joined #ruby
hightower3 has joined #ruby