baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
n0m4d1c has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
alfiemax has quit [Ping timeout: 240 seconds]
paraxial has quit [Quit: Ping timeout (120 seconds)]
paraxial has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jp is now known as picle
picle is now known as pickle
pickle is now known as jp
pharma_joe has joined #ruby
marr has quit [Ping timeout: 260 seconds]
kmurphy4 has quit [Quit: kmurphy4]
ramfjord has quit [Ping timeout: 255 seconds]
pharma_joe has quit [Client Quit]
jenrzzz_ has quit [Ping timeout: 264 seconds]
iMadper has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
regedit has quit [Quit: Connection closed for inactivity]
banisterfiend has joined #ruby
gnufied has quit [Remote host closed the connection]
dcunit3d has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 250 seconds]
cagomez has joined #ruby
chris349 has quit [Quit: Leaving]
houhoulis has joined #ruby
ryzokuken has quit [Remote host closed the connection]
alfiemax has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
sameerynho has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
kmurphy4 has joined #ruby
crankharder has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
crankharder has quit [Ping timeout: 250 seconds]
postmodern_ has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
postmodern has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
psychicist__ has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
dogweather has quit [Remote host closed the connection]
crankharder has joined #ruby
alfiemax has joined #ruby
kapil___ has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
Apocalypse has quit [Quit: Input/Output Error]
nickjj has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
ramfjord has joined #ruby
exchgr has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
exchgr has joined #ruby
<havenwood> leah2: Your question in a roundabout way resulted in a patch to TruffleRuby: https://twitter.com/eregontp/status/994326685817458693
MeXTuX has joined #ruby
namidark has joined #ruby
namidark_ has joined #ruby
namidark__ has joined #ruby
namidark___ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
namidark____ has joined #ruby
namidark has quit [Ping timeout: 256 seconds]
dogweather has joined #ruby
namidark has joined #ruby
namidark_ has quit [Ping timeout: 256 seconds]
Apocalypse has joined #ruby
namidark__ has quit [Ping timeout: 246 seconds]
namidark___ has quit [Ping timeout: 246 seconds]
namidark_ has joined #ruby
dcunit3d has joined #ruby
namidark____ has quit [Ping timeout: 246 seconds]
dogweather has quit [Ping timeout: 255 seconds]
namidark__ has joined #ruby
namidark has quit [Ping timeout: 256 seconds]
namidark has joined #ruby
namidark_ has quit [Ping timeout: 260 seconds]
namidark has quit [Client Quit]
namidark__ has quit [Ping timeout: 255 seconds]
dinfuehr- has joined #ruby
houhoulis has quit []
dinfuehr_ has quit [Ping timeout: 250 seconds]
vee_ has quit [Ping timeout: 255 seconds]
aether has joined #ruby
aether has quit [Client Quit]
ccrow has joined #ruby
safetypin has joined #ruby
namidark has joined #ruby
safetypin has quit [Client Quit]
gizmore|2 has joined #ruby
namidark_ has joined #ruby
namidark has quit [Disconnected by services]
AJA4350 has quit [Quit: AJA4350]
gizmore has quit [Ping timeout: 240 seconds]
namidark has joined #ruby
houhoulis has joined #ruby
namidark1 has joined #ruby
namidark2 has joined #ruby
vee_ has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
namidark_ has quit [Ping timeout: 250 seconds]
namidark_ has joined #ruby
namidark has quit [Ping timeout: 246 seconds]
namidark1 has quit [Ping timeout: 250 seconds]
namidark2 has quit [Ping timeout: 246 seconds]
namidark has joined #ruby
matcouto has joined #ruby
namidark_ has quit [Ping timeout: 246 seconds]
MeXTuX has left #ruby [#ruby]
ccrow has quit [Quit: Ex-Chat]
namidark_ has joined #ruby
namidark1 has joined #ruby
namidark has quit [Ping timeout: 250 seconds]
namidark_ has quit [Ping timeout: 260 seconds]
dogweather has joined #ruby
namidark has joined #ruby
n0m4d1c has quit [Ping timeout: 240 seconds]
namidark1 has quit [Ping timeout: 240 seconds]
matcouto has quit []
namidark_ has joined #ruby
dogweather has quit [Ping timeout: 250 seconds]
dcunit3d has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
jenrzzz has joined #ruby
namidark has quit [Ping timeout: 255 seconds]
namidark has joined #ruby
namidark has quit [Client Quit]
dogweather has joined #ruby
namidark_ has quit [Ping timeout: 250 seconds]
namidark has joined #ruby
namidark has quit [Client Quit]
dogweather has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
skweek has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 240 seconds]
dcunit3d has joined #ruby
namidark has joined #ruby
namidark has quit [Client Quit]
variable has joined #ruby
namidark has joined #ruby
namidark has quit [Client Quit]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yxhuvud has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
houhoulis has quit [Remote host closed the connection]
namidark has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
cadillac_ has quit [Quit: I quit]
namidark_ has joined #ruby
namidark has quit [Disconnected by services]
Yxhuvud has quit [Client Quit]
namidark_ has quit [Client Quit]
namidark has joined #ruby
Yxhuvud has joined #ruby
dviola has joined #ruby
alfiemax has joined #ruby
namidark_ has joined #ruby
namidark has quit [Disconnected by services]
namidark_ has quit [Client Quit]
namidark has joined #ruby
eckhardt has joined #ruby
dcunit3d has quit [Ping timeout: 246 seconds]
alfiemax has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
putolov has joined #ruby
<putolov> Hallo, I am trying to install Ruby on my Mac OS Sierra Hight using Terminal but I have problem
<Radar> putolov: what's the problem?
<putolov> after I type 'rbenv install 2.5.1' I got an error
<Radar> putolov: what's the error?
<putolov> clang: error: unable to remove file: Operation not permitted
<putolov> dtrace: failed to compile script probes.d: Preprocessor failed to process input program
<Radar> putolov: seems to be a known issue: https://github.com/rbenv/ruby-build/issues/1061
dogweather has joined #ruby
<Radar> RUBY_CONFIGURE_OPTS="--disable-dtrace" rbenv install 2.5.1
<Radar> This might work for you
orbyt_ has joined #ruby
kmurphy4 has joined #ruby
cagomez has joined #ruby
variable has quit [Quit: /dev/null is full]
<putolov> Radar: you mean just type RUBY_CONFIGURE_OPTS="--disable-dtrace" rbenv install 2.5.1 in Terminal and that is
<Radar> Sure.
<Radar> Read the github issue for more info
dogweather has quit [Ping timeout: 250 seconds]
<putolov> Radar: I am reading. I have typed on Terminal this and now waiting what is gonna hepend.
kapil___ has quit [Quit: Connection closed for inactivity]
shakes has joined #ruby
ta_ has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 2.1]
alfiemax has joined #ruby
<putolov> Radar: It works now! Thx
<Radar> putolov: yay :)
alfiemax has quit [Ping timeout: 250 seconds]
gix has joined #ruby
MzrE has joined #ruby
gix- has quit [Ping timeout: 250 seconds]
jokke1 has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
ta_ has quit [Ping timeout: 246 seconds]
Yxhuvud has joined #ruby
ryzokuken has joined #ruby
MzrE has quit [Read error: Connection reset by peer]
miah has quit [Ping timeout: 260 seconds]
miah has joined #ruby
<putolov> Radar: one more help
<putolov> I have successfuly insalled all from this tutorial
<putolov> on final steps after I have installed rails and 'rails new test_app -d mysql'
<putolov> I have go to: cd test_app and got the message: Required ruby-2.5.1 is not installed. To install do: 'rvm install "ruby-2.5.1"'
<putolov> But I have installed ruby 2.5.1
<Radar> putolov: it seems like you have both rvm and rbenv installed.
<putolov> YES
<Radar> putolov: rvm implode --force
<putolov> Radar: OK, this will delete rvm ?
za1b1tsu_ has joined #ruby
claw has quit [Ping timeout: 276 seconds]
RougeR has quit [Ping timeout: 260 seconds]
sylario has quit [Quit: Connection closed for inactivity]
shakes has quit [Quit: Leaving]
claw has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dogweather has joined #ruby
<putolov> OK, now I have to configure yml file to connect with localhost. I have installed mysql with brew mysql ...
anisha_ has joined #ruby
<putolov> It works, it works. ;)
<Radar> great :)
zenspider has quit [Ping timeout: 255 seconds]
zenspider has joined #ruby
za1b1tsu_ has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 255 seconds]
kentnl has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
kent\n has joined #ruby
<putolov> Radar: Thanks a lot, it was really helpful. I have spend last 4 days to make it works.
dogweather has quit [Ping timeout: 255 seconds]
putolov has quit []
dogweather has joined #ruby
psmolen has joined #ruby
marius has quit [Quit: baj]
marius has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
pilne has quit [Quit: Leaving]
jp has quit [Disconnected by services]
jp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cagomez has quit [Remote host closed the connection]
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 240 seconds]
eam has quit [Ping timeout: 240 seconds]
eam has joined #ruby
venmx has joined #ruby
uptime is now known as democracytime
venmx has quit [Ping timeout: 250 seconds]
venmx has joined #ruby
Liothen has quit [Ping timeout: 276 seconds]
sauvin has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
dogweather has quit [Remote host closed the connection]
Tempesta_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tempesta has quit [Ping timeout: 246 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
dogweather has joined #ruby
govg has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
Sonar1 has quit [Read error: Connection reset by peer]
Sonar1 has joined #ruby
dogweather has quit [Ping timeout: 255 seconds]
<b100s> Hi2all! I try to calculate sha256 on fly for file and got out of memory. How can I read ny chunks and avoid keep all file in memory? My gist is here: https://gist.github.com/b10s/3bdfee3cbf52de1c2dcec645ea2be1e3
dogweather has joined #ruby
alfiemax has joined #ruby
eckhardt has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
howdoi has joined #ruby
eckhardt has quit [Client Quit]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
<havenwood> >> require 'digest/sha2'; sha2 = Digest::SHA2.new; sha2 << 'b1'; sha2 << '00s'; sha2.hexdigest == Digest::SHA256.hexdigest('b100s')
<ruby[bot]> havenwood: # => true (https://eval.in/1001880)
amatas has joined #ruby
<b100s> havenwood, thanks, what about Tempfile, can I avoid using it in my webserver?
ARCADIVS has quit [Ping timeout: 246 seconds]
<b100s> I would like to not rely on disk and just calculate everything on fly
<havenwood> b100s: Where does the tempfile come into it? I'm not quite following.
<b100s> in gist : )
<havenwood> b100s: If you need to read a file, you can use File.open to avoid the whole file in memory at once, and feed it to the digest in pieces.
<b100s> havenwood, everything in the gist file; I do not know other way to upload files in ruby
konsolebox has quit [Ping timeout: 264 seconds]
<havenwood> b100s: Typically if you want a file, but in memory, you'd use StringIO
dogweather has quit [Ping timeout: 250 seconds]
<b100s> So, I need to create File and somehow get stream from sinatra?
konsolebox has joined #ruby
amar has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bsartek has joined #ruby
ta_ has joined #ruby
bsartek has quit [Client Quit]
dogweather has joined #ruby
znz_jp has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
amar has quit [Ping timeout: 256 seconds]
voxxit has quit [*.net *.split]
<havenwood> b100s: I guess the tempfile pattern is to avoid having the thing all in memory at once anyways. Reading lines or bytes from a tempfile and shoving them onto a digest keeps it low mem.
znz_jp has joined #ruby
<b100s> havenwood, heh, you can try on your local and be sure it is not : )
<b100s> I mean my gist
dogweather has quit [Ping timeout: 240 seconds]
<havenwood> try what about it?
aupadhye|food has joined #ruby
<havenwood> b100s: someone else might spot what you mean more easily - it's been a while since i've used sinatra and i'm distracted atm
<b100s> havenwood, yeah, don't worry
dogweather has joined #ruby
Junaos_ has joined #ruby
Junaos has quit [Ping timeout: 256 seconds]
amatas has quit [Quit: amatas]
ramfjord has joined #ruby
<havenwood> b100s: I get a: Bad request content body
<b100s> havenwood, How did you run app and how did you send request?
<havenwood> b100s: `ruby app.rb` and the curl command in your gist
<havenwood> b100s: except i put the port in
cschneid has quit [Ping timeout: 260 seconds]
<havenwood> b100s: ah, actually seem to work generating the dat a second time
alfiemax has joined #ruby
<havenwood> Content-Length: 69, err
<b100s> havenwood, sorry, try 'curl -v -F "file=@/tmp/output3.dat" localhost:4567/save_image'
<b100s> I didn't put port
ramfjord has quit [Ping timeout: 250 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
<havenwood> b100s: my issue might be with trying to port your dd command to bsd flags
<havenwood> i'll try on linux
<b100s> then try any random existed file : )
<havenwood> b100s: how big?
<b100s> few gigs to fill how app eat mem
roamingdog has joined #ruby
<b100s> s/fill/feel/
<b100s> s/eat/eats/
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> b100s: here's just over 1G
dogweather has quit [Ping timeout: 250 seconds]
<havenwood> b100s: that's with straight .read and a single hexdigest
<havenwood> i'll try a huge one
<b100s> and try to looks at out of ps during the uploading
<havenwood> i'm sure it'll be large - but not if you do it incrementally instead of reading the whole tempfile into memory
conta has joined #ruby
<b100s> yeah, it will
<b100s> and last thing which I would like to avoid is saving to the disk temp file
dogweather has joined #ruby
<havenwood> b100s: file.each_byte { |byte| sha2 << byte }
<havenwood> b100s: or: file.each_line ...
<havenwood> b100s: i dunno about that one, because it'll mean it being in memory, right?
roamingdog has quit [Remote host closed the connection]
<havenwood> b100s: shovelling it byte-by-byte or line-by-line from the tempfile should keep it out of memory
roamingdog has joined #ruby
<baweaver> lazy is an option.
<b100s> I belive you can read stream without keep it in mem
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<b100s> havenwood, reading stream byte-by-byte or line-by-line allow us do not save it to disk and do not keep it in mem
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
roamingdog has joined #ruby
<b100s> baweaver, what do you mean by lazy ?
<havenwood> b100s: i just mean proceeding from what you've shown - sure you don't need a tempfile if you never create one
roamingdog has quit [Remote host closed the connection]
cschneid has joined #ruby
<b100s> havenwood, do you know how to avoid creating ? : )
roamingdog has joined #ruby
x0f_ has quit [Ping timeout: 255 seconds]
tuskkk___ has joined #ruby
roamingdog has quit [Remote host closed the connection]
Haradani has quit []
roamingdog has joined #ruby
cthulchu_ has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
venmx has joined #ruby
plexigras has joined #ruby
alfiemax has joined #ruby
cthulchu has quit [Ping timeout: 255 seconds]
schleppel has joined #ruby
alfiemax has quit [Ping timeout: 246 seconds]
<havenwood> b100s: write rack middleware to hijack it before it gets to the tempfile
jenrzzz has quit [Ping timeout: 250 seconds]
<havenwood> b100s: you might have buffering issue, I'm not sure
<havenwood> b100s: they haven't made it simple for you to handle the stream yourself
<havenwood> b100s: what's simple, is to pull bytes or lines off the tempfile
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<havenwood> b100s: Rack is working as intended, and Sinatra is happy with a tempfile. ¯\_(ツ)_/¯
pelegreno has quit [Ping timeout: 265 seconds]
pragmatism has quit [Ping timeout: 265 seconds]
pragmatism has joined #ruby
pelegreno has joined #ruby
amar has joined #ruby
shynoob has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
Sonar1 has quit [Ping timeout: 240 seconds]
<shynoob> alright brothers and sisters.. I am new to the language.. suggest me.. the nononsense way to efficiently learn ruby! thanks
<baweaver> Check the channel topic
<baweaver> There's a book list up there
ciscam has joined #ruby
<havenwood> shynoob: How new to Ruby are you? Do you know another programming language?
<havenwood> I guess you answered the first one. You're new to Ruby.
<shynoob> a little bit of C
dogweather has quit [Remote host closed the connection]
<havenwood> shynoob: I'd suggest jumping right into tryruby.org, then look at baweaver's book list
<havenwood> shynoob: if you need a refresher, Chris Pine's Learn to Program is accessible - or baweaver is writing a book
<havenwood> shynoob: REPLs are really handy for quick feedback while learning. Ruby ships with IRB or you can install the Pry gem.
<havenwood> ?irb
<ruby[bot]> irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<havenwood> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<havenwood> shynoob: Try the tryruby.org examples in irb by typing from your terminal: irb
epochwolf|2 has joined #ruby
<shynoob> oh I see.. thanks a lot.. I was thinking about trying Codecademy.. but well.. tryruby it is
<baweaver> (it's still very much a WIP)
dogweather has joined #ruby
<havenwood> shynoob: Try Ruby doesn't take too long to finish. Excercism.io is particularly good for community feedback, once you get started.
<havenwood> shynoob: Feel free to ask here if you get stuck or want code feedback or ideas!
<shynoob> alright
<shynoob> I'll be here most of the time then
emilford has joined #ruby
ryzokuken has quit [Remote host closed the connection]
DTZUZO_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
reber has joined #ruby
aufi has joined #ruby
democracytime is now known as uptime
dogweather has quit [Read error: Connection timed out]
neuraload has joined #ruby
shynoob has quit [Remote host closed the connection]
suukim has joined #ruby
dogweather has joined #ruby
syndikate_ has quit [Remote host closed the connection]
jp has quit [Disconnected by services]
jp has joined #ruby
alfiemax has joined #ruby
syndikate has joined #ruby
syndikate has quit [Remote host closed the connection]
syndikate has joined #ruby
amatas has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
RedNifre has joined #ruby
emilford has quit [Ping timeout: 255 seconds]
RedNifre has quit [Ping timeout: 260 seconds]
amatas has quit [Quit: amatas]
<b100s> havenwood, thanks, will check it
mikecmpbll has joined #ruby
dionysus69 has joined #ruby
dogweather has joined #ruby
marr has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
kriskropd has quit [Ping timeout: 265 seconds]
alex`` has joined #ruby
hurricanehrndz has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
kapil___ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
kriskropd has joined #ruby
amar has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
emilford has joined #ruby
cschneid_ has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
amatas has joined #ruby
ta_ has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
ramfjord has quit [Ping timeout: 256 seconds]
voxxit has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
nfsnobody has quit [Ping timeout: 255 seconds]
nfsnobody has joined #ruby
amatas has quit [Quit: amatas]
jamesaxl has joined #ruby
KevinMGranger has quit [Ping timeout: 256 seconds]
aviraldg has quit [Ping timeout: 256 seconds]
nullmoose[m] has quit [Ping timeout: 260 seconds]
zalipuha[m] has quit [Ping timeout: 260 seconds]
redlegion[m] has quit [Ping timeout: 260 seconds]
torarne has quit [Ping timeout: 260 seconds]
turt2live has quit [Ping timeout: 240 seconds]
haylon_ has quit [Ping timeout: 240 seconds]
jonjits[m] has quit [Ping timeout: 240 seconds]
Giphy[m] has quit [Ping timeout: 269 seconds]
failednoose[m] has quit [Ping timeout: 269 seconds]
iceskins[m] has quit [Ping timeout: 269 seconds]
Hanma[m] has quit [Ping timeout: 269 seconds]
velu_aon[m] has quit [Ping timeout: 269 seconds]
venmx has quit [Ping timeout: 250 seconds]
WebDawg has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
luna_x[m] has quit [Ping timeout: 276 seconds]
intheclouddan has quit [Ping timeout: 276 seconds]
WebDawg has joined #ruby
nowhere_man has joined #ruby
karapetyan has joined #ruby
Guest9989 has quit [Ping timeout: 250 seconds]
nfsnobody has quit [*.net *.split]
voxxit has quit [*.net *.split]
clemens3 has joined #ruby
tomphp has joined #ruby
amar has joined #ruby
anisha_ has quit [Read error: Connection reset by peer]
b100s has quit [Remote host closed the connection]
yohji has joined #ruby
ur5us has joined #ruby
amar has quit [Ping timeout: 260 seconds]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha_ has joined #ruby
chmurifree is now known as chmuri
ta_ has quit [Ping timeout: 246 seconds]
TomyLobo has joined #ruby
Beams has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
amar has quit [Remote host closed the connection]
voxxit has joined #ruby
nfsnobody has joined #ruby
ryzokuken has joined #ruby
chmuri has quit [Excess Flood]
chmurifree has joined #ruby
KeyJoo has joined #ruby
aufi_ has joined #ruby
phaul has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
intheclouddan has joined #ruby
tomphp has joined #ruby
amatas has joined #ruby
biberu has joined #ruby
amatas has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
amatas has joined #ruby
dionysus69 has quit [Quit: dionysus69]
vondruch has joined #ruby
dionysus69 has joined #ruby
NL3limin4t0r has joined #ruby
tomphp has joined #ruby
nickjj has joined #ruby
tomphp has quit [Client Quit]
RougeR has quit [Ping timeout: 256 seconds]
conta has quit [Ping timeout: 250 seconds]
piixal has joined #ruby
venmx has joined #ruby
postmodern_ has quit [Quit: Leaving]
marr has quit [Ping timeout: 255 seconds]
za1b1tsu_ has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
aviraldg has joined #ruby
luna_x[m] has joined #ruby
failednoose[m] has joined #ruby
torarne has joined #ruby
jonjits[m] has joined #ruby
iceskins[m] has joined #ruby
Hanma[m] has joined #ruby
turt2live has joined #ruby
Giphy[m] has joined #ruby
haylon_ has joined #ruby
redlegion[m] has joined #ruby
KevinMGranger has joined #ruby
nullmoose[m] has joined #ruby
zalipuha[m] has joined #ruby
velu_aon[m] has joined #ruby
kliq has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
maufart__ has joined #ruby
roamingdog has joined #ruby
aufi_ has quit [Ping timeout: 260 seconds]
conta has joined #ruby
DoubleMalt has joined #ruby
neuraload has quit [Quit: Leaving]
DoubleMalt has quit [Remote host closed the connection]
roamingdog has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
agent_white has quit [Quit: bbl]
roamingdog has joined #ruby
tomphp has joined #ruby
amatas has quit [Quit: amatas]
amatas has joined #ruby
brianpWins has joined #ruby
apparition has joined #ruby
tomphp has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
amatas_ has joined #ruby
suukim has quit [Quit: Konversation terminated!]
amatas has quit [Ping timeout: 264 seconds]
amatas_ is now known as amatas
kurko_ has joined #ruby
hfp_work has quit [Quit: bye]
marr has joined #ruby
mostlybadfly has joined #ruby
hfp_work has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
ur5us has quit [Remote host closed the connection]
ta_ has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
Azure has joined #ruby
piixal has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
ramfjord has joined #ruby
piixal has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
piixal has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
rikkipitt has joined #ruby
Cavallari has joined #ruby
AJA4350 has joined #ruby
RougeR has joined #ruby
nowhere_man has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
shynoob has joined #ruby
shynoob has quit [Client Quit]
dionysus69 has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
ciscam has quit [Ping timeout: 255 seconds]
ARCADIVS has quit [Quit: WeeChat 2.0.1]
ciscam has joined #ruby
<NL3limin4t0r> >> [{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}].map { |hash| hash[:a] }
<ruby[bot]> NL3limin4t0r: # => [1, 3, 5] (https://eval.in/1002026)
houhoulis has joined #ruby
<NL3limin4t0r> Is there a cleaner way to map a certain key of an array of hashes?
<NL3limin4t0r> I was looking for the more object oriented style `.map(&:a)`, but that obviously doesn't work.
ldnunes has joined #ruby
<NL3limin4t0r> >> swp = ->(method, *args, object) { method.to_proc.call(object, *args) }; [{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}].map(&swp.curry(3)[:[], :a])
<ruby[bot]> NL3limin4t0r: # => [1, 3, 5] (https://eval.in/1002029)
<NL3limin4t0r> But that's just more messy.
tomphp has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
houhouli_ has joined #ruby
alfiemax has joined #ruby
rikkipitt has quit [Quit: Leaving...]
tomphp has joined #ruby
houhoulis has quit [Ping timeout: 276 seconds]
<NL3limin4t0r> Guess the cleanest way is to use open structs.
tomphp has quit [Client Quit]
<NL3limin4t0r> >> require 'ostruct'; [{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}].map(&OpenStruct.method(:new)).map(&:a)
<ruby[bot]> NL3limin4t0r: # => [1, 3, 5] (https://eval.in/1002031)
<dminuoso> 13:34 NL3limin4t0r | Is there a cleaner way to map a certain key of an array of hashes?
<dminuoso> wat
ta_ has quit [Remote host closed the connection]
<dminuoso> But yes. The solution is called lenses.
<apeiros> NL3limin4t0r: baweaver has a lib which helps with that
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
houhoulis has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
houhouli_ has quit [Ping timeout: 260 seconds]
<NL3limin4t0r> dminuoso: ty, I'll look into it.
houhouli_ has joined #ruby
ta_ has joined #ruby
VladGh has quit [Quit: Lost terminal]
VladGh has joined #ruby
houhoulis has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
petems has quit [Quit: Connection closed for inactivity]
Liothen has quit [Remote host closed the connection]
G has quit [Remote host closed the connection]
duderonomy has joined #ruby
ta_ has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
Liothen has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
anisha_ has joined #ruby
ta_ has joined #ruby
variable has joined #ruby
ferr has joined #ruby
fyrril has joined #ruby
matled has joined #ruby
chocoelho has joined #ruby
alfiemax has quit [Remote host closed the connection]
ruby549 has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
DTZUZO_ has joined #ruby
uptime has quit [Ping timeout: 240 seconds]
houhouli_ has quit [Remote host closed the connection]
Beams_ has joined #ruby
Beams has quit [Ping timeout: 256 seconds]
samosaphile has joined #ruby
<konsolebox> NL3limin4t0r: [{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}].map{ |hash| hash[:a] } is already the cleanest. you make it too complicated.
ta_ has quit [Remote host closed the connection]
* apeiros had Enumerable#map_aref in his utils for some time
<apeiros> i.e. ary.map_aref :a
awx has joined #ruby
ellcs has joined #ruby
<konsolebox> i'm not a fan of this, but the next "clean" solution for me would be `.map(&:[], :a)`. Someone can prepend modules to Array and Enumerable and enhance map.
<apeiros> that'd require patching rubys syntax itself
<apeiros> since block is only valid as last argument
ciscam has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
ciscam has joined #ruby
<konsolebox> `.map(:a, &:[])` then
ta_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 256 seconds]
Cavallari has quit [Quit: Cavallari]
<apeiros> konsolebox: how about htis:
<apeiros> *this
<apeiros> >> class Array; def to_proc; proc { |ele| ele[*self] }; end; end; [{a: 1}, {a: 2, b: 3}, {c: 4, a: 5}].map(&[:a])
<ruby[bot]> apeiros: # => [1, 2, 5] (https://eval.in/1002079)
<apeiros> it's relatively in line with .map(&:property)
<konsolebox> apeiros: would that concept work with methods that accepts more than 1 argument?
<apeiros> not sure what you're asking for. methods can't take more than one block
<apeiros> and it always invokes #[]
<apeiros> if your #[] accepts multiple arguments, it works too:
<apeiros> >> class Array; def to_proc; proc { |ele| ele[*self] }; end; end; [[1,2,3,4,5]].map(&[2,2])
<ruby[bot]> apeiros: # => [[3, 4]] (https://eval.in/1002085)
ozzloy has quit [Ping timeout: 264 seconds]
<konsolebox> apeiros: i see
ozzloy has joined #ruby
epochwolf|2 has quit [Quit: freenode]
chmurifree is now known as chmuri
jcalla has joined #ruby
minimalism has quit [Quit: minimalism]
eikobear has joined #ruby
karapetyan has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
jcalla has quit [Ping timeout: 265 seconds]
<apeiros> I also liked Integer#to_proc & Range#to_proc; I have it in my pryrc
<apeiros> basically ary.map(&0) is the same as ary.map(&:first)
nertzy has joined #ruby
apparition has quit [Quit: Bye]
ryzokuken has quit [Remote host closed the connection]
banisterfiend has joined #ruby
bmurt has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
uptime has joined #ruby
jcalla has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
<konsolebox> apeiros: your method requires having the argument convert itself to a proc. here's what i meant about my solution:
<konsolebox> >> module ArrayExt; def map(*args, &blk); super(){ |e| blk.call(e, *args) }; end; end; class Array; prepend ArrayExt; end; [{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}].map(:a, &:[])
<ruby[bot]> konsolebox: # => [1, 3, 5] (https://eval.in/1002137)
<RougeR> anyone got a clue why this is happening
<RougeR> not_null constraints failing on timestamps
<konsolebox> with magic, we can even a unified extension module both for Enumerable and Array. i think there's a way for the module to know its "includer".
<konsolebox> *even have
k0mpa has joined #ruby
<apeiros> RougeR: rails covers AR better than ruby, hence you should ask in #rubyonrails
<apeiros> oh, cross-poster
<apeiros> ?crossposting RougeR
<ruby[bot]> apeiros: I don't know anything about crossposting
<apeiros> meh
<apeiros> ?crosspost RougeR
<ruby[bot]> RougeR: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<RougeR> sorry apeiros
<RougeR> ill bear that in mind going forward
<apeiros> thank you
<RougeR> sorted it
<RougeR> im an idiot :)
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
duderonomy has joined #ruby
ryzokuken has joined #ruby
jottr has joined #ruby
<apeiros> baweaver: I think your libraries can do that too already, what would be the equivalents with them? https://eval.in/1002145
<apeiros> though for .map(&:values_at.with(:a, :c)) I actually prefer Enumerable#pluck(:a, :c)
<NL3limin4t0r> apeiros & konsolebox thanks for your input. I like how apeiros adds the Array#to_proc method, I hadn't thought about that.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<dminuoso> Woah you dont need that much crazy stuff :|
<dminuoso> All you really need is Proc#* and thats it
<dminuoso> As a poor mans solution:
<NL3limin4t0r> RougeR: You forgot to add the attributes to Gym object in the #create, but I guess you already figgered that out.
<RougeR> NL3limin4t0r: yeah, i was being dumb. staring at a screen too long
<dminuoso> Oh well I cant be arsed :|
ta_ has quit [Ping timeout: 268 seconds]
<apeiros> dminuoso: that's not a poor man's solution, that's a broke man's solution ;-p
<dminuoso> apeiros: the main problem is
<dminuoso> apeiros: he's abusing map the completely wrong way
<apeiros> btw., I have most of this stuff in my pryrc because it makes transforming csv's quite concise
<dminuoso> map should preserve the structure
<apeiros> he? or me?
<dminuoso> or is it
<dminuoso> oh
<dminuoso> wait
<dminuoso> nvm
<dminuoso> NL3limin4t0r: https://eval.in/1002159
jforceBEE has joined #ruby
duderonomy has joined #ruby
aupadhye|food has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
Asher has quit [Ping timeout: 260 seconds]
duderonomy has quit [Client Quit]
stairmast0r has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 248 seconds]
<samosaphile> anyone have experience building a simple web crawler using curl? (ideally looking for spoon-feeding / hand-holding, just being honest)
Rapture has joined #ruby
stairmast0r has joined #ruby
<jforceBEE> samosaphile Just curious, why are you asking for advice on curl in a ruby chat?
<jforceBEE> One idea off the top of my head is that you will need to use bash or soemthing to create some kind of loop to crawl a web site
jottr has joined #ruby
orbyt_ has joined #ruby
<samosaphile> dunno, was just wondering, maybe some knows or offer some kind of guidance, you never know without trying ... #curl chat is always pretty much dead, so i won't even try there
<samosaphile> ok
<samosaphile> someone*
<NL3limin4t0r> dminuoso: That's a nice example example, but 1. You changed the structure of the array from: [{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}] to [{a: [1,2]}, {a: [3,4]}, {a: [5,6]}], 2. By changing the stucture you made it more complicated, having the `at = -> i, o { o[i] }.curry` would have been enough. Good solution though.
<jforceBEE> makes sense. Honestly writing a crawler with curl sounds like a headache. Have you tried scrapy? Python library
jottr has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
solocshaw has joined #ruby
<samosaphile> yeh, but trying to avoid using something like scrapy, it's just too big and heavy. it has all this extra baggage and functionality but for me is unecessary as what im trying to crawl is quite simple (or so i believe it to be)
<apeiros> why do you care about the unnecessary baggage?
<samosaphile> but maybe i'll just use it if no other option...
<apeiros> I mean, just don't use the parts you don't need.
<jforceBEE> Could just be too noisy
<apeiros> and crawling nowadays is anything but simple
<jforceBEE> You can search for "ruby web crawler" and there are some tuts that pop up for writing a simple web crawler. Maybe you can check them out and write one in ruby that is more lightweight
<apeiros> unless you're crawling sites from the last millenium, you need an engine which can actually understand the dom and let js manipulate it
<samosaphile> apeiros: even crawling something like this is not simple? http://gentool.net/data/zh/
<jforceBEE> And if you go with ruby, nokogiri is a great library for parsing DOM
<samosaphile> cuz that is all i need one for...
Asher has quit [Ping timeout: 264 seconds]
<apeiros> if you just want to mirror a relatively static site, wget iirc has a direct command for that
<apeiros> either --archive or --mirror or somesuch
<apeiros> and curl probably too
<jforceBEE> or httrack will also clone a website really good
<apeiros> just google for "archive website" or "mirror website"
<apeiros> and throw curl/wget into the mix. you should find something.
<jforceBEE> apeiros: good call with the mirroring. Gets the entire site at once
solocshaw has quit [Client Quit]
ferr has quit [Quit: WeeChat 2.1]
lucasb has joined #ruby
samosaphile has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samosaphile has joined #ruby
kmurphy4 has joined #ruby
mikecmpb_ has joined #ruby
dogweather has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 264 seconds]
dogweather has joined #ruby
tomphp has joined #ruby
cschneid_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby
tomphp has quit [Client Quit]
dcunit3d has joined #ruby
synthroid has joined #ruby
dogweather has quit [Ping timeout: 264 seconds]
kmurphy4 has quit [Quit: kmurphy4]
rippa has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby549 has quit [Quit: Page closed]
ferr has joined #ruby
dogweather has joined #ruby
ellcs has joined #ruby
maufart__ has quit [Ping timeout: 276 seconds]
cagomez has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
Liothen has quit [Remote host closed the connection]
Liothen has joined #ruby
jinie has quit [Ping timeout: 255 seconds]
Liothen has quit [Changing host]
Liothen has joined #ruby
dogweather has quit [Ping timeout: 256 seconds]
chocoelho has quit [Quit: Konversation terminated!]
mostlybadfly has quit [Quit: Connection closed for inactivity]
jinie has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
tdy has joined #ruby
ramfjord has joined #ruby
schleppel has quit [Ping timeout: 250 seconds]
dogweather has joined #ruby
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
variable has quit [Ping timeout: 276 seconds]
ciscam has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
ciscam has joined #ruby
hgost has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
cschnei__ has joined #ruby
RedNifre has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
\void has joined #ruby
karapetyan has joined #ruby
banisterfiend has joined #ruby
coriander has joined #ruby
banisterfiend has quit [Client Quit]
roamingdog has joined #ruby
tomphp has joined #ruby
<coriander> Hello! I'm trying to run rspec on Ubuntu 16.04 with ruby 2.3.1, but it gives the message "/usr/bin/env: ‘ruby2.1’: No such file or directory". Any Idea of how I fix this?
Silthias has joined #ruby
guille-moe has joined #ruby
oleo has quit [Remote host closed the connection]
banisterfiend has joined #ruby
oleo has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Client Quit]
oleo has quit [Remote host closed the connection]
oleo has joined #ruby
banisterfiend has joined #ruby
blackmesa has joined #ruby
<havenwood> coriander: What command are you runnin gto run rspec?
KeyJoo has quit [Read error: Connection reset by peer]
<havenwood> coriander: It sounds like you don't have that command installed, or at least in front of your path, for Ruby 2.3.
blackmesa has quit [Client Quit]
<havenwood> coriander: Check the shebang of the command you're running, for example if it's rspec: head -n1 "$(command -v rspec)"
<havenwood> #=> #!/usr/bin/env ruby
<havenwood> coriander: Sanity check which rspec gem you're using: command -v rspec
<havenwood> coriander: gem which rspec
guille-moe has quit [Ping timeout: 260 seconds]
schleppel has joined #ruby
RougeT430 has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
rippa has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
<coriander> command -v rspec: /usr/local/bin/rspec
GodFather has quit [Ping timeout: 260 seconds]
<coriander> havenwood: command -v rspec: /usr/local/bin/rspec
<havenwood> coriander: and what's the first line of that file?: head -n1 "$(command -v rspec)"
<coriander> heavenwood: it looks empty, it just gives ">" like a prompt
<havenwood> coriander: wierd
<havenwood> coriander: which -a rspec
<havenwood> coriander: how many are there?
RougeR has quit [Ping timeout: 268 seconds]
<havenwood> coriander: `ruby -v` and `gem -v` are as you'd expect?
<havenwood> coriander: Is rspec installed on the RubyGems you're currently using?
<coriander> heavenwood: which rspec /usr/local/bin/rspec
<havenwood> coriander: gem which rspec
<havenwood> coriander: which -a rspec
<havenwood> coriander: add the -a
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> coriander: I'm just trying to get at which Rubies have rspec installed. And whether the current rubygems has rspec installed.
<coriander> havenwood: which -a rspec /usr/local/bin/rspec
<havenwood> oh, so just one?
<coriander> havenwood: yeah
<havenwood> coriander: Is this a project with a Gemfile?
<havenwood> coriander: gem install bundler && bundle
<coriander> havenwood: yes it has a gemfile
<havenwood> coriander: Run: gem install bundler && bundle
<havenwood> coriander: (Make sure Bundler is actually installed with the current Ruby, then install the gems in the Gemfile.lock.)
<coriander> havenwood: gem install bundler && bundle ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
<baweaver> apeiros / NL3limin4t0r: Mf does: [hashes].map(&Mf[:a]) - https://github.com/baweaver/mf
<havenwood> coriander: How'd you install Ruby? Does `ruby -v` return the Ruby you're wanting to use?
GodFather has joined #ruby
<coriander> havenwood: I think so
<havenwood> coriander: which -a ruby
<havenwood> coriander: what all rubies do you have installed?
<havenwood> coriander: it's odd that the current gem can't find bundler
<coriander> havenwood: I believe I did apt install ruby
<havenwood> coriander: then: sudo gem install bundler
<baweaver> >> class Mf;def self.[](v)->t{t[v]}end;end; [{a: 1}, {a: 2, b: 3}, {c: 4, a: 5}].map(&Mf[:a]) # This is basically how it works
<ruby[bot]> baweaver: # => [1, 2, 5] (https://eval.in/1002257)
<havenwood> coriander: apt does a system RubyGems location by default, so you need sudo
<coriander> havenwood: which -a ruby /usr/bin/ruby
<havenwood> coriander: And?: ruby -v
<havenwood> coriander: how about?: command -v bundle
<baweaver> The trick is in currying the query, so + would be: def self.+(b) -> a { a + b } end
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<coriander> havenwood: sudo gem install bundler [sudo] password for coriander: ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
Rapture has quit [Ping timeout: 256 seconds]
<baweaver> Speaking of, infix operators are fun because they bind _before_ to_proc gets run
<havenwood> coriander: what is your gem source set to?: sudo gem sources
<coriander> havenwood: ruby -v ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
<havenwood> coriander: okay, so that's the Ruby you're meaning to use
<havenwood> coriander: what's the gem source?: sudo gem sources
synthroid has quit [Remote host closed the connection]
<havenwood> coriander: It should be: https://rubygems.org/
<coriander> havenwood: command -v bundle /usr/bin/bundle
<baweaver> >> class Mf;def self.+(b)->a {a + b} end;end; [1,2,6,10].map(&Mf + 5) # So you can totally do this
<ruby[bot]> baweaver: # => [6, 7, 11, 15] (https://eval.in/1002258)
<coriander> havenwood: sudo gem sources *** CURRENT SOURCES ***
eckhardt has joined #ruby
<havenwood> coriander: then no sources?
<coriander> havenwood: looks empty
<havenwood> coriander: welp, that's why it can't find any gems!
<havenwood> coriander: sudo gem sources --add https://rubygems.org/
<havenwood> coriander: then: sudo gem install bundler
RedNifre has quit [Ping timeout: 260 seconds]
<coriander> sudo gem install bundler ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
<havenwood> coriander: check the source got added?: sudo gem sources
dionysus69 has quit [Ping timeout: 264 seconds]
Asher has joined #ruby
<havenwood> coriander: You can add the source as an install flag, but I'd for sure get the default working. (How'd it get removed, I wonder?)
<baweaver> apeiros: I may have to grab values_at and other hashy functions for Xf.
chocoelho has joined #ruby
<havenwood> coriander: You could also try: sudo gem install bundler --source https://rubygems.org
<havenwood> coriander: but yeah, get the source added
<coriander> havenwood: sudo gem sources --add https://rubygems.org/ seems to hang
<havenwood> coriander: something funky is going on...
<coriander> havenwood: yes
rouget430__ has joined #ruby
clemens3 has quit [Read error: Connection reset by peer]
<coriander> havenwood: sudo gem sources --add https://rubygems.org/ Error fetching https://rubygems.org/: timed out (https://api.rubygems.org/specs.4.8.gz)
mzo has joined #ruby
<havenwood> coriander: assuming you'll get the same with: sudo gem install bundler --source https://rubygems.org
<havenwood> coriander: does the internet work otherwise?
Asher has quit [Ping timeout: 276 seconds]
<coriander> havenwood: I'm having trouble sending email through thunderbird, it might be related
<havenwood> coriander: seems like a networking issue going on
Silthias has left #ruby [#ruby]
RougeT430 has quit [Ping timeout: 246 seconds]
jforceBEE has quit [Quit: Leaving]
<coriander> havenwood: do you know where i might go for networking help?
clemens3 has joined #ruby
LunEyx has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
Asher has joined #ruby
NL3limin4t0r has quit [Ping timeout: 255 seconds]
yohji has quit [Remote host closed the connection]
RougeT430 has joined #ruby
RougeT430 has quit [Read error: Connection reset by peer]
RougeR has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
Rapture has joined #ruby
karapetyan has quit [Remote host closed the connection]
jcarl43 has joined #ruby
karapetyan has joined #ruby
jinie has joined #ruby
Sembei has quit [Ping timeout: 256 seconds]
coriander has left #ruby [#ruby]
rouget430__ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
Sembei has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
NL3limin4t0r has joined #ruby
banisterfiend has joined #ruby
kmurphy4 has joined #ruby
kmurphy4 has quit [Client Quit]
RedNifre has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
emilford has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LunEyx has quit [Quit: Textual IRC Client: www.textualapp.com]
variable has joined #ruby
Sonar1 has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
brodul has quit [Remote host closed the connection]
variable has quit [Ping timeout: 275 seconds]
banisterfiend has joined #ruby
mohsen_1 has joined #ruby
piixal has joined #ruby
lytol has joined #ruby
orbyt_ has joined #ruby
tomphp has joined #ruby
eckhardt has joined #ruby
raynold has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
RougeT430 has joined #ruby
amatas has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
ciscam has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amatas has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 240 seconds]
amar has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
kirun has joined #ruby
nima_m has joined #ruby
emilford has joined #ruby
conta has quit [Ping timeout: 276 seconds]
dogweather has quit [Ping timeout: 264 seconds]
piixal has quit [Quit: Leaving...]
alfiemax has joined #ruby
RougeT430 has quit [Ping timeout: 250 seconds]
Beams_ has quit [Quit: .]
dcunit3d has joined #ruby
dogweather has joined #ruby
mzo has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
n0m4d1c has joined #ruby
govg has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
blackmesa has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
Cavallari has joined #ruby
dogweather has quit [Read error: Connection timed out]
skweek has quit [Read error: Connection reset by peer]
<TomyLobo> there's attr_accessor to save me writing accessors. is there something to save me writing a constructor that just fills all the fields from parameters?
dogweather has joined #ruby
anisha_ has joined #ruby
<dminuoso> TomyLobo: There's Struct
<dminuoso> >> a = Struct.new(:name, age); a.new("Isaac Newton", 21)
<ruby[bot]> dminuoso: # => undefined local variable or method `age' for main:Object (NameError) ...check link for more (https://eval.in/1002282)
<dminuoso> >> a = Struct.new(:name, :age); a.new("Isaac Newton", 21)
<ruby[bot]> dminuoso: # => #<struct name="Isaac Newton", age=21> (https://eval.in/1002283)
emilford has joined #ruby
Janky has joined #ruby
postmodern has joined #ruby
dcunit3d has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
dcunit3d has joined #ruby
synthroid has joined #ruby
skweek has joined #ruby
<TomyLobo> dminuoso, i did want my own methods though ^^
<TomyLobo> and yeah i know i can hack those in as well, but i was hoping for something like "attr_constructor :name, :age"
alex`` has quit [Quit: WeeChat 2.1]
ldepandis has joined #ruby
RedNifre has quit [Ping timeout: 240 seconds]
<dminuoso> TomyLobo: Huh?
<dminuoso> TomyLobo: Struct.new(:name, :age) do def some_method; blah; end; end;
Zaab1t1 has joined #ruby
<dminuoso> TomyLobo: But if you really want an attr_constructor, you could also write that.
<TomyLobo> ah i see. this is for a tiny script though and i really want less code, not more :)
<dminuoso> TomyLobo: https://eval.in/1002285
Asher has quit [Ping timeout: 256 seconds]
<dminuoso> Struct is perfect for you then.
sameerynho has joined #ruby
<TomyLobo> possibly
jinie has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TomyLobo> >>> (LB=Struct.new(:id)).new.class
<TomyLobo> >> (LB=Struct.new(:id)).new.class
<ruby[bot]> TomyLobo: # => LB (https://eval.in/1002288)
dcunit3d has quit [Ping timeout: 250 seconds]
<TomyLobo> ok how does it know it's LB?
<dminuoso> >> A = Struct.new(:a); A.method(:new).owner
<ruby[bot]> dminuoso: # => #<Class:A> (https://eval.in/1002289)
donofrio_ has joined #ruby
cliq has joined #ruby
<dminuoso> asm>> class Foo; end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1002290
<dminuoso> asm>> Foo = Class.new
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1002291
NL_3limin4t0r has joined #ruby
ciscam_ has joined #ruby
<TomyLobo> asm>> A = Struct.new(:a)
<ruby[bot]> TomyLobo: I have disassembled your code, the result is at https://eval.in/1002292
<dminuoso> TomyLobo: That wont help. Struct is deeply C magical.
ciscam has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby
Asher has joined #ruby
<dminuoso> I dont know.
sepp2k has quit [Ping timeout: 260 seconds]
<TomyLobo> >> (AAA=BBB=Struct.new(:id)).new.class
<ruby[bot]> TomyLobo: # => BBB (https://eval.in/1002294)
lucasb has quit [Ping timeout: 240 seconds]
mostly-harmless has quit [Ping timeout: 260 seconds]
<TomyLobo> >> puts (AAA=BBB=Struct.new(:id)).new.class; puts AAA.new.class
<ruby[bot]> TomyLobo: # => BBB ...check link for more (https://eval.in/1002296)
mostly-harmless has joined #ruby
RedNifre has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
kliq has quit [Ping timeout: 240 seconds]
sunya7a__ has quit [Ping timeout: 240 seconds]
<dminuoso> Actually let me take that back what I just said
RougeT430 has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
NL3limin4t0r has quit [Ping timeout: 260 seconds]
tris has quit [Ping timeout: 260 seconds]
eblip has quit [Ping timeout: 260 seconds]
volix has quit [Ping timeout: 260 seconds]
<dminuoso> asm >> (AAA=BBB=Struct.new(:a)
<dminuoso> asm>> (AAA=BBB=Struct.new(:a)
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1002297
<apeiros> TomyLobo: there are a couple of gems which do what you ask for
skweek has joined #ruby
<dminuoso> asm>> AAA=BBB=Struct.new(:a)
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1002298
<apeiros> iirc one's name was fattr
volix has joined #ruby
lucasb has joined #ruby
<TomyLobo> >> puts def foo(x) x.new.class end; foo(Struct.new(:id)).new.class
<ruby[bot]> TomyLobo: # => foo ...check link for more (https://eval.in/1002299)
<TomyLobo> heh, i broke it
sunya7a has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
<dminuoso> TomyLobo: Well it's the usual Ruby hacks
tris has joined #ruby
sammi` has joined #ruby
eblip has joined #ruby
<dminuoso> TomyLobo: My best guess is some japanese developer thought it would be cool if classes inspected in some intuitive fashion.
<dminuoso> And did some hacks
BTRE has quit [Remote host closed the connection]
<TomyLobo> ^^
lucasb has quit [Client Quit]
sauvin has quit [Remote host closed the connection]
alex`` has joined #ruby
emilford has joined #ruby
ta_ has joined #ruby
dcunit3d has joined #ruby
<havenwood> TomyLobo: With 2.5.1 you can also do keyword argument structs. Coupling by name is often nicer than by position.
alfiemax_ has joined #ruby
<havenwood> You just add the: keyword_init: true
<apeiros> anything beyond 2 arguments should be by name. and often even already with 2.
<havenwood> ^
alfiemax has quit [Ping timeout: 265 seconds]
<apeiros> and sometimes even the first already - or would you for example know what the false means in some_obj.methods(false)? (and that's a ruby core method)
<havenwood> apeiros: i totally agree - if it's not clear what the one-and-only argument is, a name is far preferable
<havenwood> some_obj.methods private_only: true
<havenwood> so much better
<havenwood> it's easier to write code than to read it
<apeiros> yupp
<apeiros> but I have to admit, I have to force myself too to do it properly
anisha_ has quit [Quit: This computer has gone to sleep]
<havenwood> aye, pre-kwarg habits are hard to break for me too
<apeiros> but true keyword args made it a lot more bearbale to me
<havenwood> i have to keep reminding myself
<apeiros> *bearable
* apeiros goes back to js without either kwargs, nor even syntax sugar for hashmap passing - and even less so block passing *sob*
<apeiros> js syntax, sooo tedious. at least they've ... and ()=>{} now.
BTRE has joined #ruby
psychicist__ has joined #ruby
<apeiros> biggest fuckup though is "assign without explicit scope? you've got a global now, yaaaay!"
emilford has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.1]
kmurphy4 has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
facest has quit [Read error: Connection reset by peer]
facest has joined #ruby
minimalism has joined #ruby
<dminuoso> havenwood: Ultimately the real problem is lack of a type system.
eikobear has quit [Ping timeout: 240 seconds]
amatas has quit [Quit: amatas]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
bmurt has joined #ruby
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
emilford has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
Zaab1t1 is now known as Zaab1t
eikobear has joined #ruby
tomphp has joined #ruby
MzrE has joined #ruby
mostlybadfly has joined #ruby
kmurphy4 has joined #ruby
chouhoul_ has joined #ruby
<TomyLobo> havenwood, interesting, but cant Struct just generate both?
<TomyLobo> possibly a performance thing ^^
chouhoulis has quit [Ping timeout: 268 seconds]
RougeT430 has quit [Quit: Leaving]
RougeR has joined #ruby
<apeiros> TomyLobo: you mean at the same time?
tomphp has quit [Read error: Connection reset by peer]
<apeiros> that'd be a problem since how'd you distinguish between the first argument being a hash, or them being keyword args?
tomphp has joined #ruby
<TomyLobo> uh isnt that what **kwargs is for or am i confusing that with python now?
<TomyLobo> i probably am
<apeiros> that does not help
<apeiros> due to the very sad decision that foo(bar: 1, baz: 2) is a syntactical equivalent to foo({bar: 1, baz: 2})
n0m4d1c has quit [Remote host closed the connection]
<apeiros> ruby can literally not distinguish your intention in this case.
<TomyLobo> i think that's called cutting yourself with occams razor
<apeiros> I think it was just a terrible choice.
<apeiros> intended as a stop-gap, not realizing how it'd backfire (or rather limit disambiguity) in the future.
jottr has joined #ruby
<apeiros> *limit ambiguity
n0m4d1c has joined #ruby
MzrE has quit [Remote host closed the connection]
Mike11 has joined #ruby
Mike11 has quit [Max SendQ exceeded]
synthroid has quit []
n0m4d1c has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
n0m4d1c has joined #ruby
roamingdog has joined #ruby
RedNifre has quit [Ping timeout: 268 seconds]
alfiemax_ has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
eikobear has quit [Ping timeout: 260 seconds]
chmuri has quit [Excess Flood]
nofxx has joined #ruby
karapetyan has quit [Remote host closed the connection]
chmurifree has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
n0m4d1c_ has joined #ruby
n0m4d1c has quit [Read error: Connection reset by peer]
emilford has quit [Ping timeout: 256 seconds]
<dminuoso> asm>> foo(bar: 1, baz: 2)
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1002362
<dminuoso> asm>> foo({bar: 1, baz: 2})
samosaphile has quit [Quit: Page closed]
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/1002363
<apeiros> dminuoso: does it match your expectation?
<dminuoso> I had none to begin with
chouhoul_ has quit [Remote host closed the connection]
iceden has quit [Remote host closed the connection]
chouhoulis has joined #ruby
kmurphy4 has quit [Quit: kmurphy4]
nima_m has quit [Quit: Connection closed for inactivity]
jrafanie has joined #ruby
za1b1tsu_ has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
mohsen_1 has quit [Quit: Connection closed for inactivity]
Guest27 has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chongtxtx has joined #ruby
vee_ has quit [Ping timeout: 255 seconds]
<claw> hello i am having encoding fun on windows
<claw> irb(main):001:0> `echo öööööö`
<claw> => "\x94\x94\x94\x94\x94\x94\n"
<claw> chcp for cmd is CP850
<claw> Encoding.default_external is also CP850
<dminuoso> claw: default_external is irrelevant here
<apeiros> dminuoso: um, no, it's not
<apeiros> ``.encoding will be cp850 due to default_external
<apeiros> anyway, I'll wait for the actual question :)
<claw> apeiros: the actual question is how to get the "ö" back into irb
<apeiros> claw: that depends. what encoding does your terminal application use?
<claw> CP850 as `chcp` says
<dminuoso> apeiros: What about __ENCODING__ ?
<apeiros> claw: try puts
<apeiros> as in: puts `echo ööööö`
<claw> __ENCODING__ == CP850
Guest27 is now known as arup_r
<claw> apeiros: well puts works somehow
<apeiros> claw: what you're looking at is String#inspect
<apeiros> I'm not quite sure on String#inspect's decision making on when to print bytes as hex escape sequences and when as their actual value. puts however will always print the value
arup_r has quit [Remote host closed the connection]
<claw> nicht if i do `echo öööö > file` ; puts File.read("./file") its broken again
<apeiros> apparently with your current setting, it decides that \x94 (ö) is not (or may not be) a printable character and hence shows its escape sequence instead.
<claw> *nicht=now
arup_r has joined #ruby
arup_r is now known as Guest39642
<apeiros> what's Encoding.default_internal ?
<apeiros> also, what's File.read("file").encoding ?
<apeiros> and last but not least "broken" is not a usable description. what happens?
GodFather has quit [Ping timeout: 248 seconds]
<apeiros> (I'll refrain from asking why on earth you're using anything but a unicode encoding like utf-8)
Guest39642 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<claw> i think i've catched the problem
<claw> its powershell
Zaab1t has quit [Quit: Zaab1t]
<apeiros> *it's
chouhoulis has joined #ruby
vee_ has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
n0m4d1c_ has quit [Remote host closed the connection]
ta_ has joined #ruby
chouho___ has joined #ruby
alfiemax has quit [Remote host closed the connection]
orbyt_ has joined #ruby
<claw> also cmd. if i echo directly from cmd and the read from irb it gets messed up. when i echo from irb it works
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 268 seconds]
amar has quit [Ping timeout: 265 seconds]
schleppel has quit [Quit: Konversation terminated!]
chouhou__ has joined #ruby
Mondongo has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 268 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
jcalla has quit [Quit: Leaving]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
Cavallari has quit [Quit: Cavallari]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 268 seconds]
chouhou__ has joined #ruby
Mondongo has quit [Quit: Textual IRC Client: www.textualapp.com]
chouho___ has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Remote host closed the connection]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
_aeris_ has joined #ruby
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
chouhou__ has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 248 seconds]
jp is now known as pickleboat
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
pickleboat is now known as jp
chouhoul_ has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
chouhoul_ has joined #ruby
karapetyan has joined #ruby
chouh____ has joined #ruby
chouhou__ has quit [Ping timeout: 256 seconds]
clemens3_ has joined #ruby
dogweather has quit [Remote host closed the connection]
chouho___ has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
coderphive has joined #ruby
chouho___ has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
chouh____ has quit [Ping timeout: 260 seconds]
eikobear has joined #ruby
chouh____ has joined #ruby
TomyLobo has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
dcunit3d has quit [Ping timeout: 256 seconds]
kapil___ has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
chouhoul_ has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
chouh____ has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
plexigras has quit [Ping timeout: 268 seconds]
eikobear has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.1]
chouh____ has joined #ruby
chouhou__ has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 240 seconds]
chouho___ has quit [Ping timeout: 240 seconds]
chouhou__ has joined #ruby
kirun has quit [Quit: Konversation terminated!]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
chouhoul_ has joined #ruby
chouh____ has quit [Ping timeout: 240 seconds]
amar has joined #ruby
chouh____ has joined #ruby
chouhou__ has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 255 seconds]
TinkerT has quit [Read error: Connection reset by peer]
dogweather has quit [Remote host closed the connection]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
TinkerT has joined #ruby
chouh____ has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
NL_3limin4t0r has quit [Quit: WeeChat 1.9]
dogweather has joined #ruby
chouh____ has joined #ruby
chouhou__ has quit [Ping timeout: 256 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 260 seconds]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
chouh____ has quit [Ping timeout: 260 seconds]
twe4ked has quit [Ping timeout: 246 seconds]
chouh____ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhou__ has quit [Ping timeout: 268 seconds]
RougeR has quit [Ping timeout: 248 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 260 seconds]
chouho___ has joined #ruby
twe4ked has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
cliq has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
BTRE has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
chouh____ has quit [Ping timeout: 256 seconds]
k0mpa has quit [Remote host closed the connection]
RougeR has joined #ruby
chouhou__ has quit [Ping timeout: 240 seconds]
chouhou__ has joined #ruby
chouh____ has joined #ruby
chouho___ has quit [Ping timeout: 256 seconds]
skweek has quit [Ping timeout: 260 seconds]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
cliq has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Ping timeout: 250 seconds]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
chouh____ has quit [Ping timeout: 240 seconds]
chouh____ has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
ellcs has joined #ruby
chouhoul_ has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 248 seconds]
dipnlik has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
chouh____ has quit [Ping timeout: 248 seconds]
chouho___ has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 260 seconds]
cliq has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
GodFather has joined #ruby
twe4ked has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
twe4ked has joined #ruby
biberu has quit []
ta_ has joined #ruby
karapetyan has joined #ruby
reber has quit [Remote host closed the connection]
coderphive has quit [Quit: coderphive]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
cagomez has joined #ruby
alfiemax has joined #ruby
sanscoeur has quit [Ping timeout: 255 seconds]
dogweather has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
spiette has quit [Quit: ZNC 1.6.6 - http://znc.in]
Tempesta_ has joined #ruby
apeiros__ has joined #ruby
AJA4351 has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
Sembei has quit [Read error: Connection reset by peer]
alfiemax_ has joined #ruby
blackmesa1 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
armando has quit [Quit: ZNC 1.7.x-nightly-20171128-66897057 - https://znc.in]
Sembei has joined #ruby
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
armando has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Tempesta has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
ohcibi has joined #ruby
spiette has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
octomancer has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
aaronm04 has quit [Ping timeout: 240 seconds]
VladGh has quit [Ping timeout: 240 seconds]
clemens3 has quit [Read error: Connection reset by peer]
VladGh has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
SeepingN has quit [Excess Flood]
blackmesa1 has quit [Quit: WeeChat 2.1]
orbyt_ has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
SeepingN has joined #ruby
regedit has joined #ruby
phoo1234567 has quit [Ping timeout: 240 seconds]
phoo1234567 has joined #ruby
nibbo_ has quit [Ping timeout: 260 seconds]
nibbo has joined #ruby
cschnei__ has quit [Remote host closed the connection]
octomancer has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
apeiros__ is now known as apeiros
karapetyan has quit [Remote host closed the connection]
alfiemax_ has quit [Ping timeout: 256 seconds]
mostlybadfly has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
aaronm04 has joined #ruby
pb122 has joined #ruby
n0m4d1c has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
n0m4d1c_ has joined #ruby
n0m4d1c has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
sonne has joined #ruby
zautomata has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
n0m4d1c_ has quit [Remote host closed the connection]
ciscam_ has quit [Ping timeout: 255 seconds]
n0m4d1c has joined #ruby
ciscam has joined #ruby
c_my_nick has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
MyMind has joined #ruby
duderonomy has joined #ruby
Sembei has quit [Ping timeout: 256 seconds]
n0m4d1c has quit [Ping timeout: 256 seconds]
gil_ has quit [Ping timeout: 246 seconds]
<c_my_nick> does anyone know if there a plugin for rails similar to this one for django? https://github.com/groveco/django-sql-explorer
<c_my_nick> ive got someone claiming such a plugin exists in one of our legacy applications and i am looking for a place to start
clemens3 has quit [Ping timeout: 240 seconds]
clemens3_ has quit [Ping timeout: 240 seconds]
<audy> c_my_nick: blazer
<audy> I love it. It's one of my favorite gems
<c_my_nick> thanks, know of any others?
<audy> c_my_nick: heroku has dataclips
<audy> those are the only ones I know of
<c_my_nick> hm, dont see either of those referenced in the repo...
<audy> c_my_nick: what about config/routes.rb ?
<audy> hmm maybe they're running blazer separately
dogweather has joined #ruby
<c_my_nick> maybe
kapil___ has quit [Quit: Connection closed for inactivity]
anjen has joined #ruby
<c_my_nick> would dataclips be referenced within the application code, though?
zautomata has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
anjen has quit [Client Quit]
dogweather has quit [Ping timeout: 256 seconds]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
n0m4d1c has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
amar has quit [Ping timeout: 256 seconds]
<audy> c_my_nick: no that's part of heroku
<c_my_nick> ok, thats what i thought