havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Sweetlie has joined #ruby
m13io has quit [Remote host closed the connection]
soloscshaw has joined #ruby
raspado has joined #ruby
raspado has quit [Client Quit]
raspado has joined #ruby
milardovich has joined #ruby
vali has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 258 seconds]
soloscshaw has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
AndrewIsHere has quit []
m13io has joined #ruby
JoshS has quit [Quit: Leaving]
Channel6 has joined #ruby
Evesy has quit [Ping timeout: 260 seconds]
Evesy has joined #ruby
Rodya_ has joined #ruby
charliesome has joined #ruby
marr has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 260 seconds]
quuxman has joined #ruby
Channel6 has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<quuxman> Has anybody used Rails Admin? I'm trying to add a link to a foo_id field to the corresponding object in the views, and can't even figure out how to modify a view at all
AndBobsYourUncle has joined #ruby
username1 has quit [Ping timeout: 260 seconds]
unshadow has quit [Ping timeout: 260 seconds]
Guest96 has quit [Remote host closed the connection]
Channel6 has joined #ruby
brent__ has quit [Remote host closed the connection]
Guest96 has joined #ruby
brent__ has joined #ruby
duderonomy has joined #ruby
aguynamedben has quit [Ping timeout: 246 seconds]
HoierM_ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
HoierM has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aguynamedben has joined #ruby
rfoust has joined #ruby
Lucky_ABA has joined #ruby
<havenwood> quuxman: I don't know Rails Admin. You might want to ask in the #RubyOnRails channel.
cfec0b8d has quit [Ping timeout: 240 seconds]
<havenwood> quuxman: It's popular enough there'll likely be some folk there using it.
quobo has quit [Quit: Connection closed for inactivity]
t-recx has quit [Quit: t-recx]
Rodya_ has quit [Remote host closed the connection]
SeepingN has quit [Ping timeout: 252 seconds]
adgtl has quit [Ping timeout: 255 seconds]
Lord_of_Life has quit [Ping timeout: 255 seconds]
milardovich has quit [Remote host closed the connection]
Koshian____ has quit [Quit: Tiarra 0.1: SIGTERM received; exit]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
xall has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
soloscshaw has joined #ruby
JoshS has joined #ruby
Rodya_ has joined #ruby
Vile` has joined #ruby
amclain has quit [Quit: Leaving]
soloscshaw has quit [Ping timeout: 240 seconds]
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xco has joined #ruby
<xco> hi for those familiar with Rails on this line https://gist.github.com/siaw23/7318f46ae3f81bf9555c379af11b34bd#file-job-rb-L12 can i do ImageResponse.find(params[:’#{id}’]) because i do want the id from #process to be passed into the param. is this “acceptable”?
bronson has joined #ruby
<baweaver> xco: have you tried running that yet?
<baweaver> Also, #RubyOnRails may be a better channel
<baweaver> You seem to have a misunderstanding of what params are.
dhollin3 is now known as dhollinger
<xco> baweaver: well obviously. i came up with this one ImageResponse.find(params["{id}".to_sym]) instead
<baweaver> Line 11 passes an id
<xco> i just know params are part of a url sent by a user
<baweaver> anyways, skipping to Rails
hutch34 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
gsilva has quit [Ping timeout: 240 seconds]
cam27 has quit [Read error: Connection reset by peer]
SleepySensei has joined #ruby
cam27 has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
auv5 is now known as auv
brent__ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
m13io has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 260 seconds]
petruff has quit [Ping timeout: 260 seconds]
Lord_of_Life has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 260 seconds]
redpants has joined #ruby
leito has joined #ruby
redpants has quit [Client Quit]
redpants has joined #ruby
m13io has joined #ruby
redpants has quit [Client Quit]
guybohner has joined #ruby
jusa has joined #ruby
raspado has quit [Remote host closed the connection]
jusa has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
charliesome has joined #ruby
libastral has quit [Ping timeout: 260 seconds]
libastral has joined #ruby
yehowyada has joined #ruby
yehowyada has quit [Client Quit]
yehowyada has joined #ruby
binaryplease has quit [Ping timeout: 252 seconds]
soloscshaw has joined #ruby
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
soloscshaw has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
catbusters has quit [Quit: Connection closed for inactivity]
latemus has joined #ruby
latemus has quit [Client Quit]
SleepySensei has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
SleepySensei has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
auzty has joined #ruby
AndBobsYourUncle has joined #ruby
SleepySensei has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 240 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
adgtl has quit [Ping timeout: 255 seconds]
houhoulis has joined #ruby
pilne has quit [Quit: Quitting!]
SleepySensei has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
marxarelli is now known as marxarelli|afk
jameser has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
AndBobsYourUncle has joined #ruby
HoierM_ has quit [Ping timeout: 240 seconds]
SleepySensei has quit [Quit: Textual IRC Client: www.textualapp.com]
TreyG has quit [Ping timeout: 240 seconds]
TreyG has joined #ruby
milardovich has joined #ruby
shortdudey123 has quit [Ping timeout: 240 seconds]
m13io has quit [Remote host closed the connection]
shortdudey123 has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
Coldblackice has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Remote host closed the connection]
PorcoRex has joined #ruby
bam__ has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
bam__ has quit [Quit: leaving]
Silthias has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
cam27 has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
soloscshaw has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
milardovich has quit [Remote host closed the connection]
soloscshaw has quit [Ping timeout: 260 seconds]
xall has joined #ruby
m13io has joined #ruby
bam__ has joined #ruby
patarr has joined #ruby
Tempesta has quit [Quit: See ya!]
Rodya_ has joined #ruby
hugo_dc has joined #ruby
twistedpixels_ has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
leito has quit [Quit: Saliendo]
bam__ has left #ruby [#ruby]
Vile` has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
pickle_ has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
gnufied has quit [Ping timeout: 255 seconds]
hutch34 has quit [Quit: WeeChat 1.5]
cam27 has quit [Quit: cam27]
Lord_of_Life has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
bam__ has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
Lord_of_Life has joined #ruby
armyriad has joined #ruby
bam__ has quit [Client Quit]
__bam has joined #ruby
Koshian has joined #ruby
claw has quit [Ping timeout: 252 seconds]
__bam has quit [Quit: leaving]
hndk has joined #ruby
gusrub has quit []
jusa has joined #ruby
claw has joined #ruby
gix has quit [Ping timeout: 255 seconds]
twistedpixels_ has joined #ruby
enterprisey has quit [Quit: Leaving]
gix has joined #ruby
brent__ has joined #ruby
Channel6 has quit [Quit: Leaving]
jusa has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
milardovich has quit []
soloscshaw has joined #ruby
m13io has quit [Remote host closed the connection]
m13io has joined #ruby
mim1k has joined #ruby
soloscshaw has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
hugo_dc has quit [Remote host closed the connection]
pickle_ has quit [Remote host closed the connection]
pickle_ has joined #ruby
raspado has quit [Ping timeout: 268 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
nofxxx has joined #ruby
mooser has joined #ruby
ger0 has joined #ruby
nofxxxx has quit [Ping timeout: 260 seconds]
hndk has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
mooser has quit [Ping timeout: 252 seconds]
renchan has joined #ruby
guybohner has quit [Quit: Page closed]
__Yiota has joined #ruby
ger0 has quit [Quit: Leaving]
<dminuoso> apeiros: Oh interesting.
<dminuoso> apeiros: I have never seen that syntax before. :o
<dminuoso> ast>> { **b }
<ruby[bot]> dminuoso: I have parsed your code, the result is at https://eval.in/782175
dionysus69 has joined #ruby
m13io has quit [Remote host closed the connection]
m13io has joined #ruby
m13io has quit [Remote host closed the connection]
m13io has joined #ruby
m13io has quit [Remote host closed the connection]
m13io has joined #ruby
brent__ has joined #ruby
nanoz has joined #ruby
m13io has quit [Remote host closed the connection]
m13io has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
lassemaster has joined #ruby
Bock has joined #ruby
LACampbell has joined #ruby
<LACampbell> I want to write a command line app that's cross platform. no gui, runs in the background. what are the options for deploying?
<dminuoso> LACampbell: What does command line mean?
<LACampbell> is this a trick question?
<dminuoso> No.
<dminuoso> Does it need any initial interactions? Or is it "start and forget" ?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<LACampbell> right! start and forget
<dminuoso> LACampbell: Is there chance of failure?
<dminuoso> Like, do you need a manager that restarts the service if need be?
<LACampbell> I haven't really thought about that
xall has quit [Quit: WeeChat 1.7.1]
<LACampbell> well everything can fail
<dminuoso> LACampbell: until you do, https://github.com/thuehlinger/daemons this could be a viable option
<LACampbell> that looks cool
<LACampbell> but my concern is stuff like - interacting with the file system. I realise you have to pick and choose your own extensions
<dminuoso> LACampbell: What do you mean by that?
<LACampbell> well I only ever use ruby on unix like envrionments
<LACampbell> I actually have no idea how it works on windows
toretore has joined #ruby
cgfbee has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 1.7]
brent__ has quit [Remote host closed the connection]
<baweaver> Surprisingly just about the same
JoshS has joined #ruby
soloscshaw has joined #ruby
muelleme_ has joined #ruby
lassemaster has quit [Quit: Going offline, see ya! (www.adiirc.com)]
soloscshaw has quit [Ping timeout: 240 seconds]
muelleme_ has quit [Ping timeout: 240 seconds]
sspreitzer has joined #ruby
sspreitzer has joined #ruby
sspreitzer has quit [Changing host]
brent__ has joined #ruby
latemus has joined #ruby
<havenwood> LACampbell: Are you wanting to ensure that folk without Ruby can run your command line app?
<havenwood> LACampbell: Or just worried an appropriate Ruby might not be available?
sspreitz has quit [Ping timeout: 246 seconds]
<havenwood> LACampbell: I couldn't tell if your query was service manager related or if it was about proper Rubies being available to run the app
<havenwood> LACampbell: Anyhow, if you're looking to distribute Ruby with your app take a look at Traveling Ruby: https://phusion.github.io/traveling-ruby/
<havenwood> LACampbell: it's well done
<dminuoso> Listen to havenwood.
<dminuoso> They have not shared their booze cabinet with me, but travelingn ruby is pretty nifty stuff.
<dminuoso> Also I have no clue how these two are related.
<LACampbell> havenwood: all of the above! I will check it out right now
Rodya_ has joined #ruby
<LACampbell> this looks amazing (assuming it works)
jusa has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
metoo606 has joined #ruby
<metoo606> hi
<metoo606> any one here
<havenwood> metoo606: yes
<havenwood> ?metasploit metoo606
<ruby[bot]> metoo606: Please join #metasploit for help with it.
<dminuoso> LACampbell: It does, depending on your dependencies it can be a bit of work to set up a bundle though.
<dminuoso> I had some difficulties with nokogiri, nothing major though.
<LACampbell> dminuoso: I'd expect anything with native extensions to be a pain
<metoo606> ok bro i wanna know how handler work in metaspliiy
<metoo606> metasploit
<havenwood> metoo606: The #metasploit channel is best for Metasploit-related questions. Please hang out or visit us again when you have a Ruby-specific question.
<dminuoso> LACampbell: It's just that the prepackaged versions are not exactly up-to-date, so if you have some dependencies on relatively new packages it means extra work. But it's not a show stopper by any means.
Rodya_ has quit [Ping timeout: 255 seconds]
<metoo606> but metasploit create by ruby
<metoo606> bro im ask this q in metasploit channel just now but no reply
<havenwood> metoo606: Ruby is a language. Metasploit is one of millions of programs written in Ruby. It has it's own channel, #metasploit.
<dminuoso> Millions!
<dminuoso> Literally millions!
<havenwood> dminuoso: I guess literally more than that. I'm not sure the unit.
pickle_ has quit [Read error: Connection reset by peer]
soloscshaw has joined #ruby
<havenwood> Maybe just billions?
pickle_ has joined #ruby
SleepySensei has joined #ruby
<havenwood> Unsure.
<dminuoso> We should count them.
<LACampbell> billions seems high
<dminuoso> You start, Ill take over when you reach half.
oleo has quit [Quit: Verlassend]
<metoo606> ok bro
<havenwood> LACampbell: I have thousands. There are millions of Ruby programmers. I dunno.
<metoo606> bye but will back
metoo606 has left #ruby [#ruby]
<LACampbell> you've made thousnads of ruby programs? that's quite a lot
<LACampbell> are you counting scripts?
<dminuoso> A "script" *is* a program.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> havenwood: Well I've made 10s of thousands
* dminuoso points out the success rate of baweaver products
* baweaver puts down hammer slowly
<LACampbell> dminuoso: well sure technically. but when I think program, I don't think of some sub 100 line thing I did in a rush
chouhoulis has quit [Remote host closed the connection]
<havenwood> baweaver: I'd bet more. I'm sure you've written over 100k scripts.
<baweaver> If we're counting Nagios and Sensu checks as individual apps that probably boosts it a bit
<dminuoso> LACampbell: It doesn't matter whether we agree on a definition, but that we use the same one when talking about it.
<havenwood> Do we count each statement? Or need it be a file?
<dminuoso> LACampbell: So really the question becomes: What is your own definition of a program?
<baweaver> One contiguous piece of code with a single purpose
<baweaver> with *at least a single purpose
<LACampbell> it's not a real program until it's disappointed someone other than yourself
<dminuoso> LACampbell: A definition based on a line count seems overly arbitrary.
<havenwood> It's a program when it starts dreaming of one day responding to email.
beauby has quit [Ping timeout: 260 seconds]
<baweaver> It's crossing the line dminuoso
<dminuoso> baweaver: What is?
<baweaver> line count that is
<baweaver> :D
<dminuoso> Oh.
<dminuoso> Dat pun.
* baweaver rolls out of chair laughing
<dminuoso> I hope you hit your head.
electrostat has quit [Quit: uwotm8]
<havenwood> "Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can." ~Zawinski's Law
<dminuoso> You know make me jealous that I dont know LISP. :(
<dminuoso> I should start with clojure or something
<baweaver> Only in LISP can you be a Schemer and a Racketeer and still expect Clojure
<dminuoso> :|
<dminuoso> :||
<dminuoso> So regarding that axe I mentioned..
<dminuoso> Any chance you will be visiting Germany any time soon?
brent__ has quit [Remote host closed the connection]
electrostat has joined #ruby
<baweaver> Du hast Axt, ich habe Hammer.
<havenwood> it's fun you can use Clojure STM from JRuby
cgfbee has joined #ruby
<baweaver> Gehen Sie vor und machen Sie meinen Tag
<havenwood> <3 Rich Hickey talks
<LACampbell> havenwood: what do you love about them?
<dminuoso> baweaver: Is that from google translate?
<baweaver> Nein
<LACampbell> If he didn't have such thick lucious hair no one would listen to him
<havenwood> LACampbell: Clear thinking and reflection upon elegant design.
<baweaver> Nur mein schlechtes deutsches
<dminuoso> Haha.
<dminuoso> I should print that line out and pin it to the wall.
<baweaver> Sehr schlecht deutsch :D
<baweaver> It makes apeiros cry
<baweaver> and scared jhass off for months
<dminuoso> Speaking of which, where did jhass disappear to?
<dminuoso> Haven't seen him around in a few months
<havenwood> LACampbell: I like that they seldom apply only to the language at hand.
<baweaver> !since jhass
<baweaver> ...
<havenwood> dminuoso: He has popped in and out in the last weeks.
<dminuoso> havenwood: Oh cool.
<LACampbell> havenwood: he doesn't get objects, and he wrote a derivative lisp. he's a good talker I guess
<dminuoso> havenwood: Guess his new gig in Berlin must keep him busy
mooser has joined #ruby
SleepySensei has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pickle_ has quit [Ping timeout: 245 seconds]
nanoz has quit [Ping timeout: 252 seconds]
mooser has quit [Ping timeout: 258 seconds]
exchgr has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 260 seconds]
exchgr has joined #ruby
Kilo`byte has quit [Ping timeout: 255 seconds]
Kilo`byte has joined #ruby
Ishido has quit [Ping timeout: 258 seconds]
SleepySensei has joined #ruby
arvindsaik has quit [Ping timeout: 260 seconds]
arvindsaik has joined #ruby
zapata has joined #ruby
mim1k has joined #ruby
muelleme_ has joined #ruby
mooser has joined #ruby
SleepySensei has quit [Read error: Connection reset by peer]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
Mortomes|Work has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 255 seconds]
<foxmask> bonjello
mooser has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
vali has joined #ruby
conta has joined #ruby
govg has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ineb> test
<ineb> sorry
Guest96 has quit [Remote host closed the connection]
m13io has quit [Read error: Connection reset by peer]
padi_ has joined #ruby
Guest96 has joined #ruby
osliusar has joined #ruby
twistedpixels_ has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
cschneid_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
olehsliusar has joined #ruby
last_staff has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
PorcoRex has quit [Quit: Leaving]
mim1k has joined #ruby
muelleme_ has quit [Ping timeout: 258 seconds]
jamesaxl has joined #ruby
govg has joined #ruby
andikr has joined #ruby
biberu has joined #ruby
mooser has joined #ruby
jaruga has joined #ruby
twistedpixels_ has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
padi_ has quit []
olehsliusar has quit [Quit: Leaving]
osliusar has quit [Quit: Leaving]
osliusar has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
aufi has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
antgel has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
govg has quit [Ping timeout: 245 seconds]
mim1k has joined #ruby
mooser has joined #ruby
Rodya_ has joined #ruby
minimalism has quit [Quit: minimalism]
rgr_ has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
mooser has quit [Ping timeout: 240 seconds]
govg has joined #ruby
osliusar has quit [Ping timeout: 255 seconds]
mark_66 has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
Sembei has quit [Ping timeout: 240 seconds]
marr has joined #ruby
anisha has joined #ruby
lhambley has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
osliusar has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Sembei has joined #ruby
Qchmqs has joined #ruby
aedorn_ has joined #ruby
tw1sted has joined #ruby
nishiki_ has joined #ruby
ejnahc_ has joined #ruby
pavelz has quit [Write error: Broken pipe]
gigetoo has quit [Write error: Broken pipe]
brendan- has quit [Excess Flood]
fedruantine_ has quit [Excess Flood]
tw1sted_ has quit [Quit: No Ping reply in 180 seconds.]
aedorn has quit [Quit: No Ping reply in 180 seconds.]
ejnahc has quit [Remote host closed the connection]
seggy has quit [Remote host closed the connection]
gigetoo has joined #ruby
pavelz has joined #ruby
fedruantine has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
sagax_ has joined #ruby
sagax has quit [Ping timeout: 260 seconds]
nishiki has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
anisha has quit [Ping timeout: 255 seconds]
olehsliusar has joined #ruby
muelleme_ has joined #ruby
osliusar has quit [Quit: Leaving]
olehsliusar has quit [Client Quit]
osliusar has joined #ruby
osliusar has quit [Client Quit]
osliusar has joined #ruby
osliusar has quit [Client Quit]
osliusar has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
muelleme_ has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Arpanet69 has joined #ruby
ferr has joined #ruby
seggy has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
cgfbee has quit [Remote host closed the connection]
osliusar has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
lel has quit [Ping timeout: 260 seconds]
lel has joined #ruby
mooser has joined #ruby
burger-time has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
cgfbee has joined #ruby
mooser has quit [Ping timeout: 252 seconds]
Silthias1 has joined #ruby
jenrzzz has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
Doow has joined #ruby
blackmesa has joined #ruby
jsrn_ has joined #ruby
burger-time has quit [Quit: Konversation terminated!]
aufi has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
mjora7 has joined #ruby
Guest96 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Burgestrand has joined #ruby
Guest96 has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
plantigrade has quit [Quit: WeeChat 1.0.1]
Rodya_ has quit [Ping timeout: 245 seconds]
avelldiroll has joined #ruby
govg has quit [Remote host closed the connection]
govg has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
nishiki_ is now known as nishiki
osliusar has joined #ruby
axel_ has joined #ruby
cschneid_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
naftilos76 has joined #ruby
dionysus69 has joined #ruby
naftilos76 has quit [Client Quit]
aufi has joined #ruby
morfin has joined #ruby
<morfin> hello
<morfin> if i get emails using imap.uid_search(['UNSEEN'] why can i get EOF?
pickle_ has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
DARPA has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
hui has joined #ruby
flying has joined #ruby
hui has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 252 seconds]
binaryplease has joined #ruby
pickle_ has quit [Remote host closed the connection]
pickle_ has joined #ruby
pickle_ has quit [Remote host closed the connection]
osliusar is now known as olehsliusar
olehsliusar is now known as oleh_sliusar
patarr has joined #ruby
oleh_sliusar is now known as osliusar
xenops has joined #ruby
osliusar is now known as olehsliusar
pickle_ has joined #ruby
_sfiguser has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
olehsliusar has quit [Quit: Leaving]
osliusar has joined #ruby
osliusar has quit [Client Quit]
nobitanobi has joined #ruby
soloscshaw has quit [Ping timeout: 240 seconds]
eregon has joined #ruby
mim1k_ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
mim1k_ is now known as mim1k
mim1k has quit [Quit: Reconnecting]
mim1k has joined #ruby
unshadow has joined #ruby
TreyG has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
BTRE has joined #ruby
al2o3-cr has joined #ruby
lxsameer has joined #ruby
jusa has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
sonOfRa has quit [Quit: Bye!]
postmodern has quit [Quit: Leaving]
yogg-saron has joined #ruby
sonOfRa has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
yogg-saron has quit [Client Quit]
yogg-saron has joined #ruby
govg has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
cgfbee has quit [Remote host closed the connection]
blackmesa has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
govg has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
_bet0n has joined #ruby
_bet0n has left #ruby [#ruby]
cgfbee has joined #ruby
bkxd has joined #ruby
_bet0n has joined #ruby
nobodyzxc has joined #ruby
<_bet0n> Hello folks! String manipulation question coming.
<_bet0n> Is it somehow possible to move part of the string matched by regexp to another position in the same string? The position is not fixed but on it's start there is always "- "
<_bet0n> Example:
<_bet0n> 254Z One Two Three - Not Important
<_bet0n> One Two Three - 254Z Not Important
<_bet0n> And I want to move it so the result will look like:
<_bet0n> Regexp matches the "254Z"
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
binaryplease1 has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
Silthias1 has quit [Ping timeout: 260 seconds]
pickle_ has quit [Read error: Connection reset by peer]
Silthias1 has joined #ruby
<universa1> gsub(/(\d+Z)(.+) - (.+)/, '\2 - \1 \3') ?!
Silthias has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
soloscshaw has joined #ruby
pickle_ has joined #ruby
binaryplease1 is now known as binaryplease
jameser has quit [Ping timeout: 255 seconds]
soloscshaw has quit [Ping timeout: 260 seconds]
Guest96 has quit [Remote host closed the connection]
<_bet0n> universa1: Thank you. :) Let me try it :)
Guest96 has joined #ruby
govg has quit [Ping timeout: 240 seconds]
bathtub_shark has quit [Quit: WeeChat 1.7.1]
bathtub_shark has joined #ruby
hanmac has joined #ruby
Silthias has joined #ruby
<_bet0n> universa1: Just for clarification, you use parenthesis to group parts of the string and then you just change the order right?
Silthias1 has quit [Ping timeout: 260 seconds]
<elomatreb> parentheses capture their content, and the backslashes with the number in the second pattern are the contents of the parentheses (capture group) with that index
pickle_ is now known as apikey
<_bet0n> Thank you. It works like a charm :)
rgtk has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
HoierM_ has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
psychicist__ has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
schickung has joined #ruby
GodFather has joined #ruby
blackmesa has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
mradmacher has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
Bratishka has joined #ruby
aupadhye has joined #ruby
<Bratishka> Hi Guys
<Bratishka> The Ruby Way - is good book for beginner with some Python (without OOP) knowledge?
lamerz has joined #ruby
Arpanet69 has joined #ruby
patarr has joined #ruby
<lamerz> Hi, I have a question: I'm trying to find out where self.simple.client.symlink() (in particular, this symlink function) comes from in this code: https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/admin/smb/samba_symlink_traversal.rb
DARPA has quit [Ping timeout: 260 seconds]
<lamerz> ...oh
<lamerz> Right.
<lamerz> I found it, haha. Not familiar with ruby
<balo> i guess it's lib/rex/proto/smb/client.rb#1786
<lamerz> Yup
<lamerz> Now it seems to be throwing out a null terminator after it's done
<balo> you were lucky it was not something dynamically defined :P
nadir has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
<lamerz> Now I'm trying to figure out how this would work if I were to send it myself
soloscshaw has joined #ruby
<lamerz> Not sure if the null terminator is required per the spec, or if the exploit itself calls that
<lamerz> I suppose, maybe, I can reproduce it in python. shrug
nobitanobi has quit [Remote host closed the connection]
eb0t has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
soloscshaw has quit [Ping timeout: 260 seconds]
muelleme_ has joined #ruby
GodFather_ has joined #ruby
petruff has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Verity has joined #ruby
BTRE has quit [Ping timeout: 255 seconds]
lirammr has joined #ruby
<lirammr> hi
<lirammr> V
<lirammr> can I write this in python instead ?
<lirammr> sorry I don't know ruby ?
<lirammr> but can I ?
<lirammr> A vry simple question
<lirammr> I think I will get confused if I learn both python and ruby as they are very similar
muelleme_ has quit [Ping timeout: 260 seconds]
<lirammr> is anyone here?
<lirammr> comeon a ruby channel, and so fewe people ? How come
<lirammr> On python there are active users all the time
<lirammr> sheessh
jusa has joined #ruby
nofxxx has quit [Remote host closed the connection]
bkxd has joined #ruby
Bratishka has quit []
BTRE has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
<starmix> well, yes you can
blackmesa has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
<herwin> how would anyone know the answer to ``Can I'' ?
oliv_____ has joined #ruby
<starmix> maybe #python know the answer
oliv_____ has quit [Remote host closed the connection]
axel_ is now known as axellj
ldnunes has joined #ruby
apikey has quit [Remote host closed the connection]
apikey has joined #ruby
bkxd_ has joined #ruby
jameser has joined #ruby
dasher^0_o has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<lirammr> so anything that I do in ruby, can be done in python too ?
<lirammr> anythingk ?
apikey has quit [Remote host closed the connection]
<lirammr> most things can't be done in C, as there are no good librarires for some things ?
<lirammr> herwin: starmix
<lirammr> and others too
apikey has joined #ruby
apikey has quit [Remote host closed the connection]
cam27 has joined #ruby
<balo> lirammr: you are confusing two things: being able to do something (you can do anything in C) versus how easy or practical to do it
sepp2k has joined #ruby
morfin has quit [Read error: Connection reset by peer]
<balo> anything you can do in ruby it's possible to do it in every other language. but you might need to write more code or implement things differently. python also has several web frameworks which can be a good start (django or flask for example). ask in the python channel for help, really
blackmesa has quit [Ping timeout: 240 seconds]
BTRE has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
lirammr has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lamerz has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
Silthias1 has joined #ruby
Ishido has joined #ruby
morfin has joined #ruby
<morfin> is there "proper" JSON library in Ruby
<morfin> default one can't even parse 'null'
bweston92 has joined #ruby
<morfin> when JSON.parse('null') in JS could do that, and JSON.parse('3.1415') would generate number etc
cam27 has quit [Quit: cam27]
Silthias has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
millerti has joined #ruby
olivi____ has joined #ruby
<SpComb> morfin: JSON.parse() and JSON.load() behave differently. JSON.parse expects a JSON object, whereas JSON.load will also parse scalars
<SpComb> not that the stdlib docs would actually tell you that
olivi____ has quit [Remote host closed the connection]
<SpComb> JSON.load() uses load_default_options which includes `quirks_mode: true`, and indeed, `JSON.parse('1', quirks_mode: true) => 1`
<SpComb> (the quirks_mode option is also undocumented in the stdlib docs)
soloscshaw has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
BTRE has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 255 seconds]
haypo has joined #ruby
soloscshaw has quit [Ping timeout: 260 seconds]
govg has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
_sfiguser has joined #ruby
dlitvak has joined #ruby
Abhijit has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
TorMan[m] has joined #ruby
<TorMan[m]> .
TorMan[m] has left #ruby [#ruby]
jameser has joined #ruby
schickung has quit [Quit: schickung]
LACampbell has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
t-recx has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
BTRE has quit [Ping timeout: 258 seconds]
j2k has joined #ruby
<xco> can this method be more elegant? https://gist.github.com/siaw23/ae6f6d874058a379a64e0d88c3a90ab9 i feel it’s too verbose
j2k has quit [Client Quit]
blackmesa has joined #ruby
jphase has quit [Remote host closed the connection]
xco has quit [Remote host closed the connection]
jphase has joined #ruby
soahccc has quit [Read error: Connection reset by peer]
houhoulis has joined #ruby
chouhoulis has joined #ruby
Ishido has quit [Ping timeout: 258 seconds]
jphase has quit [Ping timeout: 258 seconds]
cschneid_ has joined #ruby
houhoulis has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
__urux__ has joined #ruby
<starmix> would that do the job https://gist.github.com/anonymous/b6257729f306a87c7c1ca7c251a8f6ce? Supposing that you can change TYPES
<starmix> altough the usage of a hash here might be overkill
HoierM_ has quit [Quit: Leaving]
HoierM has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
anisha_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
brent__ has joined #ruby
hashrocket has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
ramortegui has joined #ruby
schickung has joined #ruby
soloscshaw has joined #ruby
am55 has joined #ruby
haypo has left #ruby [#ruby]
cajone has quit [Ping timeout: 245 seconds]
soloscshaw has quit [Ping timeout: 252 seconds]
jackrandom has joined #ruby
millerti has joined #ruby
cajone has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
Abhijit has quit [Quit: Bye.]
rfoust has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
BTRE has joined #ruby
jackrandom has quit [Remote host closed the connection]
bkxd has joined #ruby
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jusa has joined #ruby
xpitr has joined #ruby
beauby has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
mwlang has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
<xpitr> hi. this is pretty useless but i'm wondering: you can define arbitrary method names, using characters and their combinations not normally allowed. But can you call those methods without using send? eg. define_method(:"()))"){ }
<xpitr> how would you call such method? any way to abuse ruby to allow me calling it directly? :)
Rodya_ has joined #ruby
arooni has quit [Quit: ZNC - http://znc.in]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
DLSteve has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
valentinul has joined #ruby
Rodya_ has joined #ruby
cajone has quit [Ping timeout: 255 seconds]
vali has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
cajone has joined #ruby
DARPA has joined #ruby
cschneid_ has joined #ruby
arooni has joined #ruby
__urux__ has quit [Read error: Connection reset by peer]
valentinul has quit [Ping timeout: 240 seconds]
<darix> xpitr: i think send will be the only way
Ishido has quit [Ping timeout: 268 seconds]
gnufied has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
oleo has joined #ruby
oleo has joined #ruby
oleo has quit [Changing host]
cschneid_ has quit [Ping timeout: 240 seconds]
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
jrafanie has joined #ruby
GodFather_ has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 240 seconds]
hogetaro has quit [Ping timeout: 255 seconds]
nekomune has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
mwlang has quit [Ping timeout: 258 seconds]
mwlang has joined #ruby
noark9 has joined #ruby
<xpitr> hmh i was thinking of overriding symbol's to_s and then call it as: :"()))" (which will call send()) but maybe there is something better
cdg has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chrisseaton> Why can't we define finalisers for symbols, now that symbols are subject to garbage collection?
VladGh has quit [Remote host closed the connection]
<chrisseaton> And why can't we define finalisers for large (heap allocated) integers?
VladGh has joined #ruby
patarr has joined #ruby
soloscshaw has joined #ruby
noark9 has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
<darix> chrisseaton: why do you need it?
<chrisseaton> I'm doing some interop with native code, and want a native handle to refer back to symbols. I can't use _id2ref, as I want JRuby compatibility. So I build a map of object to handle, and I want to remove the entry in the map when the object is collected.
ferr has quit [Quit: WeeChat 1.7]
<chrisseaton> Ah! Maybe I should be use a weak reference instead.
<chrisseaton> Nope, you can't have weak references to symbols. Can't see why that is a rule either.
soloscshaw has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
VladGh_ has joined #ruby
GodFather_ has joined #ruby
GodFather has joined #ruby
griff has joined #ruby
__Yiota has joined #ruby
VladGh has quit [Ping timeout: 260 seconds]
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
negatifze has joined #ruby
unshadow has quit [Quit: leaving]
duckpuppy has quit [Quit: WeeChat 1.7.1]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
beauby has quit [Ping timeout: 258 seconds]
Toledo has joined #ruby
Toledo is now known as croberts
jameser has joined #ruby
mikecmpbll has joined #ruby
jameser has quit [Client Quit]
DocWinter has joined #ruby
haylon has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
antoniobeyah has joined #ruby
mzo has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
sepp2k has joined #ruby
chouhoulis has quit [Remote host closed the connection]
TomyLobo3 has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: inabit. zz.]
TomyLobo3 has joined #ruby
theunraveler has joined #ruby
babblebre has joined #ruby
auzty has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 260 seconds]
patarr_ has joined #ruby
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
noark9 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
negatifze has joined #ruby
patarr has quit [Ping timeout: 245 seconds]
raul782_ has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Xiti]
rippa has joined #ruby
skweek has joined #ruby
patarr_ has quit [Ping timeout: 268 seconds]
KevinMGranger has quit [K-Lined]
velu_aon[m] has quit [K-Lined]
jonjits[m] has quit [K-Lined]
testnick[m] has quit [K-Lined]
dman[m] has quit [K-Lined]
M107262[m] has quit [K-Lined]
el_ocho[m] has quit [K-Lined]
travisr has quit [K-Lined]
daveyboi[m] has quit [K-Lined]
zenspider[m] has quit [K-Lined]
jakebriggs[m] has quit [K-Lined]
Giphy[m] has quit [K-Lined]
heftig has quit [K-Lined]
thulsa_legume[m] has quit [K-Lined]
aviraldg has quit [K-Lined]
bascht1 has quit [K-Lined]
Tagami[m] has quit [K-Lined]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahrs has quit [Remote host closed the connection]
Xiti has joined #ruby
mfaeh has joined #ruby
blackmes1 has joined #ruby
ahrs has joined #ruby
cschneid_ has joined #ruby
<herwin> finalizers/weakrefs don't work on frozen objects, and symbols are frozen
<herwin> stumbled upon it last week
boombox_ has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
pupsicle has quit [Remote host closed the connection]
choke has joined #ruby
tomphp has joined #ruby
pupsicle has joined #ruby
raul782_ has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
raul782 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
soloscshaw has joined #ruby
beauby has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
bascht1 has joined #ruby
gsilva has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
impermanence has joined #ruby
<impermanence> Obviously I need to read more on 'next', but I'm confused as to why this never hits the last if statement (see below 'Current'): https://gist.github.com/jonassteinberg1/ddfc2a615392759b55d8d3efdbbe3667
soloscshaw has quit [Ping timeout: 260 seconds]
boombox_ has quit [Remote host closed the connection]
<impermanence> counter is initialized outside the loop statement. that was left out of the gist.
<impermanence> counter = 0.
vali has joined #ruby
__urux__ has joined #ruby
<herwin> this is the version with syntax hilighting
<havenwood> impermanence: I'm pretty sure we've answered this exact question days ago.
<herwin> which makes the difference between lines 5 and 6 obvious
patarr has joined #ruby
<havenwood> impermanence: Still, `writer != 'writer'`.
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<impermanence> I wasn't referring to that.
<impermanence> Maybe I'm confused.
<impermanence> If you look below, I was actually referring to a different Gist.
<impermanence> It was recommended to me to not start a new Gist for every question I have.
<impermanence> So now I just have a line that says "Current", lol.
<impermanence> And yes the open('writer', '') question was answered days ago.
<havenwood> impermanence: Aha. Yeah, it's best to start a new Gist for each question, but only one per question. You can edit a single Gist or add each file pertaining to the question.
<starmix> oh you can create a new file in that gist, could be less confusing I reckon :)
<havenwood> You aren't limited to a single file per Gist.
<impermanence> ah. I get the gist :)
negatifze has joined #ruby
negatifze has quit [Client Quit]
<havenwood> impermanence: You'll have to define counter before you check its modulo.
mim1k has quit [Ping timeout: 260 seconds]
statelesscode has quit [Ping timeout: 252 seconds]
negatifze has joined #ruby
<impermanence> havenwood: I left the initialized counter variable out of the Gist. But let me update it because I guess this is the problem.
heftig has joined #ruby
thulsa_legume[m] has joined #ruby
Tagami[m] has joined #ruby
KevinMGranger has joined #ruby
daveyboi[m] has joined #ruby
M107262[m] has joined #ruby
Giphy[m] has joined #ruby
aviraldg has joined #ruby
jakebriggs[m] has joined #ruby
zenspider[m] has joined #ruby
dman[m] has joined #ruby
jonjits[m] has joined #ruby
travisr has joined #ruby
el_ocho[m] has joined #ruby
velu_aon[m] has joined #ruby
testnick[m] has joined #ruby
mim1k has joined #ruby
<havenwood> impermanence: That will print 1s and 0s. Is that not what you want?
<impermanence> havenwood: why doesn't it stop when counter == 10? It just goes forever, lol.
<apeiros> impermanence: because you skip the last part
<havenwood> impermanence: You're `next`ing if it's even.
<havenwood> impermanence: 10 is even.
<apeiros> next stops executing the loop and starts from the beginning of the loop again
statelesscode has joined #ruby
<impermanence> I think I'm nexting if it's odd, right?
<apeiros> yes
<apeiros> 9 is odd
<apeiros> then you add 1
<apeiros> then you next
<herwin> is there any specific reason that there is a next in that piece of code?
<impermanence> herwin: I mean I'm just learning so the book I'm reading is going over control flow and they introduce next as well. Each time I write my own code and much of the time its very newb. That's all.
flying has quit []
outreachdan has joined #ruby
shinnya has joined #ruby
<apeiros> impermanence: I think herwin understands that it's newb code. but even when you're new, you probably thought something when you put a piece of code somewhere. and that's what herwin is asking for.
<apeiros> understanding your thought process helps us helping you
GodFather has quit [Ping timeout: 240 seconds]
GodFather_ has quit [Ping timeout: 260 seconds]
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<herwin> and you learn a lot more from it than if we'd just fix your code without any explanation
<impermanence> apeiros: heh. k. All I was trying to do was use next to go back to loop beginning on odd.
<impermanence> herwin: totally.
* apeiros afk
Burgestrand has quit [Quit: Closing time!]
negatifze has joined #ruby
haylon_ has joined #ruby
binaryplease has joined #ruby
DroidBurgundy has joined #ruby
brent__ has joined #ruby
synthroi_ has joined #ruby
haylon has quit [Ping timeout: 240 seconds]
username1 has joined #ruby
mwlang has quit [Quit: mwlang]
soloscshaw has joined #ruby
juggler has joined #ruby
crazyphil has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
conta has quit [Ping timeout: 252 seconds]
<crazyphil> ok, I'm trying to process a stream of json, and my issue is that the timestamp of each group of json is nested in one level, under a top level name that changes (there are about 100 top level names), is there some way I can "wildcard" the top level to extract my nested timestamp field without needing to know the top level field name?
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<baweaver> You have a sample of the JSON you could put in a gist?
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<crazyphil> yes I do, let me dump some
chouhoulis has joined #ruby
amclain has joined #ruby
raspado has joined #ruby
<crazyphil> so I put two sample json items in there
<crazyphil> each with different top level names
<crazyphil> but you can clearly see the nested timestamp field I'm trying to access
nadir has joined #ruby
Beams has quit [Quit: .]
<crazyphil> there are minimally 100 or so different top level field names
andikr has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
<baweaver> my_json.map { |hash| top_level = hash.find { |k,v| v.is_a?(Hash) }; top_level ? top_level['timestamp'] : default_value }
<crazyphil> ok
<baweaver> ah, not quite right
yeticry has joined #ruby
GodFather_ has joined #ruby
<crazyphil> that's close, I just wasn't sure how to figure out the top level, without knowing the top level
GodFather has joined #ruby
mfaeh has quit []
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry_ has quit [Read error: Connection reset by peer]
Arpanet69 has joined #ruby
<baweaver> [{a: {v:3}}, {b: 3}].map { |hash| top_level = hash.find { |(k,v)| v.is_a?(Hash) }; top_level&.last }
marxarelli has joined #ruby
<toretore> if you're certain that the keys will always be ['@version', 'type', x] then you can just discard the first two
<baweaver> ...
<baweaver> >> [{a: {v:3}}, {b: 3}].map { |hash| top_level = hash.find { |(k,v)| v.is_a?(Hash) }; top_level&.last }
<ruby[bot]> baweaver: # => [{:v=>3}, nil] (https://eval.in/782587)
tercenya has quit [Remote host closed the connection]
sagax_ is now known as sagax
<baweaver> &. being the lonely op only usable in Ruby 2.4+
tercenya has joined #ruby
<baweaver> otherwise just use a ternary like the previous example to check it
<crazyphil> those will be the only 3 fields every time, type, @version, and some random top level field name
haylon has joined #ruby
DARPA has quit [Ping timeout: 260 seconds]
<crazyphil> thank you baweaver
haylon_ has quit [Ping timeout: 246 seconds]
DARPA has joined #ruby
gusrub has joined #ruby
Rodya_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
Vingador has joined #ruby
tlaxkit has joined #ruby
Arpanet69 has quit [Ping timeout: 245 seconds]
__Yiota has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
cbyrda has quit [Ping timeout: 268 seconds]
jsrn_ has quit [Quit: Leaving]
sandroqz has joined #ruby
sandroqz has quit [Client Quit]
renchan has quit [Quit: Leaving...]
tlaxkit has quit [Quit: tlaxkit]
DARPA has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 264 seconds]
muelleme_ has joined #ruby
Qchmqs has quit [Ping timeout: 240 seconds]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lagweezle_away is now known as lagweezle
SeepingN has joined #ruby
mwlang has joined #ruby
pifon has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
skweek has joined #ruby
TeddySmoker has joined #ruby
DroidBurgundy has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
cdg_ has joined #ruby
gusrub has joined #ruby
mim1k has joined #ruby
cdg_ has quit [Ping timeout: 245 seconds]
cdg has quit [Ping timeout: 268 seconds]
gusrub has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 245 seconds]
cdg has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
wkoszek2 has joined #ruby
DroidBurgundy has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
pilne has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
wkoszek2 has quit [Quit: Mutter: www.mutterirc.com]
synthroid has joined #ruby
blackmesa has joined #ruby
mim1k has joined #ruby
mjuszczak has joined #ruby
synthroi_ has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 240 seconds]
juggler has quit [Quit: Leaving]
noark9 has quit [Remote host closed the connection]
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
Hobbyboy has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
pupsicle has quit [Quit: pupsicle]
pupsicle has joined #ruby
<morfin> IMAP is so bad
cdg has joined #ruby
<morfin> i think only SMTP is worse
skweek has joined #ruby
jaruga has joined #ruby
DroidBurgundy has quit []
jusa has joined #ruby
grymmjack has joined #ruby
Vingador has quit [Remote host closed the connection]
grymmjack has quit [Quit: Going offline, see ya! (www.adiirc.com)]
schickung has quit [Quit: schickung]
__urux__ has quit [Remote host closed the connection]
grymmjack has joined #ruby
Hobbyboy has joined #ruby
Alina-malina has quit [Ping timeout: 258 seconds]
tvw has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
grymmjack has quit [Client Quit]
TeddySmoker has quit [Quit: Leaving]
grymmjack has joined #ruby
grymmjack has quit [Client Quit]
grymmjack has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
GodFather_ has quit [Ping timeout: 260 seconds]
grymmjack has quit [Client Quit]
grymmjack has joined #ruby
gsilva has quit [Ping timeout: 240 seconds]
cseder has joined #ruby
Alina-malina has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
username1 has quit [Quit: Lost terminal]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
<hurricanehrndz> havenwood: Where you ever able to complete a pull request for the zypper support? PS Thank you so much for building that for me last time.
synthroi_ has joined #ruby
<havenwood> hurricanehrndz: You're welcome. Yeah, I just need to get an openSUSE VM up so I can test each Ruby engine.
<havenwood> Maybe I can do that today.
<hurricanehrndz> havenwood: awesome, thank you so much
<havenwood> no prob
gusrub has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
synthroid has quit [Ping timeout: 264 seconds]
lhambley has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
jaruga has quit [Quit: jaruga]
anisha has quit [Quit: Leaving]
lhambley has joined #ruby
__Yiota has joined #ruby
grymmjack is now known as grymmjack^AFK
synthroid has joined #ruby
minimalism has quit [Client Quit]
nobodyzxc has quit [Quit: leaving]
jaruga has joined #ruby
synthroi_ has quit [Ping timeout: 255 seconds]
patarr has quit [Ping timeout: 246 seconds]
gsilva has joined #ruby
brent__ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
brent__ has joined #ruby
al2o3-cr is now known as gr33n7007h
wkoszek2 has joined #ruby
<morfin> Net::IMAP after connecting does not update message uids?
unshadow has joined #ruby
wkoszek2 has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
Guest96_ has joined #ruby
oliv_____ has joined #ruby
Bock has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
Guest96 has quit [Ping timeout: 240 seconds]
<apeiros> crazyphil: an alternative: `my_json.keys.map { |key| my_json.dig(key, 'timestamp') }` (add .compact if there's keys without a timestamp field)
wkoszek2 has joined #ruby
tercenya has quit [Remote host closed the connection]
minimalism has joined #ruby
davidmichaelkarr has joined #ruby
tercenya has joined #ruby
jaruga has quit [Quit: jaruga]
cagomez has joined #ruby
mist_ has joined #ruby
mist_ has quit [Quit: leaving]
oliv_____ has quit [Ping timeout: 240 seconds]
SleepySensei has joined #ruby
brent__ has quit [Remote host closed the connection]
<cagomez> I'm trying to test a controller in rspec. I can test to see if a variable is assigned using `expect(assigns(:foo)).to not_be_nil` or similar. but how do I test the instance variables for `foo`? like `expect(:foo.somevar).to eq(1)`
wkoszek2 has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
<apeiros> baweaver just informed me that some top level values are not hashes. in that case:
<apeiros> data.values.grep(Hash).map { |v| v['timestamp'] }
vali has quit [Quit: vali]
dionysus69 has joined #ruby
tomphp has joined #ruby
nobitanobi has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<pskosinski> Anyone experienced that issue with pronto? https://paste.fedoraproject.org/paste/LgYlS7Fww0QG4RkzfKyUkF5M1UNdIGYhyRLivL9gydE=
SleepySensei has quit [Ping timeout: 245 seconds]
antgel has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
Guest26966 has joined #ruby
wkoszek2 has joined #ruby
unshadow_ has joined #ruby
patarr has joined #ruby
unshadow has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
JoshS has quit [Ping timeout: 258 seconds]
wkoszek2 has quit [Remote host closed the connection]
gsilva has quit [Ping timeout: 264 seconds]
rgtk has joined #ruby
jrafanie has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
mim1k has joined #ruby
brent__ has quit [Remote host closed the connection]
synthroi_ has joined #ruby
brent__ has joined #ruby
tomphp has joined #ruby
mustmodify has joined #ruby
cdg_ has joined #ruby
<mustmodify> Fun fact of the day. I just wrote a method `seems_somewhat_legit?(params)`
gusrub has joined #ruby
<t-recx> can you more or less use it confidently?
<mustmodify> somewhat
<Papierkorb> maybe
<mustmodify> I mean, it solves the current issue. :)
tomphp has quit [Client Quit]
<Papierkorb> 30% of the times, it works 100% of the times
<mustmodify> the next step would be to use captcha, but the users would not react well to that. So a basic check will have to do. :)
<Papierkorb> mustmodify: Although the method name does sound like it does some kind of unsufficient input validation..
synthro__ has joined #ruby
tomphp has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
patarr has quit [Ping timeout: 245 seconds]
cdg has quit [Ping timeout: 255 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 264 seconds]
patarr has joined #ruby
yogg-saron has joined #ruby
postmodern has joined #ruby
synthroi_ has quit [Ping timeout: 240 seconds]
whathappens has joined #ruby
gusrub has quit [Remote host closed the connection]
rakm has joined #ruby
negatifze has quit [Read error: Connection reset by peer]
mjuszczak has quit []
teotwaki has quit [Read error: Connection reset by peer]
BSAlb has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
kith has quit [Ping timeout: 268 seconds]
ski7777 has quit [Ping timeout: 258 seconds]
jusa has quit [Ping timeout: 264 seconds]
soloscshaw has quit [Ping timeout: 240 seconds]
grymmjack^AFK is now known as grymmjack^AFK^AF
mjuszczak has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackrandom has joined #ruby
d10n-work has joined #ruby
jaruga has joined #ruby
rakm has joined #ruby
jaruga has quit [Client Quit]
mim1k has quit [Ping timeout: 245 seconds]
KCmetro has joined #ruby
rakm has quit [Ping timeout: 245 seconds]
olivi____ has joined #ruby
cfec0b8d has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
gusrub has joined #ruby
rakm has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
unshadow has joined #ruby
grymmjack^AFK^AF is now known as grymmjack^AFK
synthroid has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 246 seconds]
petruff has quit [Ping timeout: 260 seconds]
unshadow_ has quit [Ping timeout: 264 seconds]
skweek has quit [Ping timeout: 240 seconds]
synthro__ has quit [Ping timeout: 245 seconds]
patarr has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
LACampbell has joined #ruby
mzo has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
_sfiguser has quit [Quit: Leaving]
qba73 has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
gix has quit [Ping timeout: 255 seconds]
klaas has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grymmjack^AFK is now known as grymmjack^AFK^AF
mjuhl has quit [Ping timeout: 240 seconds]
phansch has quit [Ping timeout: 255 seconds]
Cohedrin has joined #ruby
phansch has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
pupsicle has quit [Quit: pupsicle]
mjuhl has joined #ruby
patarr has joined #ruby
gix has joined #ruby
whathappens has quit [Remote host closed the connection]
ski7777 has joined #ruby
quuxman has left #ruby [#ruby]
dhollinger has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
oliv_____ has joined #ruby
mim1k has joined #ruby
pupsicle has joined #ruby
lele has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
A124 has quit [Quit: '']
cagomez has quit [Remote host closed the connection]
Verity has quit [Remote host closed the connection]
A124 has joined #ruby
morfin has quit []
nobitanobi has joined #ruby
JoshS has joined #ruby
lxsameer has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
chouhoul_ has joined #ruby
soloscshaw has joined #ruby
LACampbell has quit [Ping timeout: 260 seconds]
chouhou__ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
oliv_____ has joined #ruby
KCmetro_ has joined #ruby
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 240 seconds]
jolamb has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jenrzzz has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
soloscshaw has quit [Ping timeout: 260 seconds]
KCmetro has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 258 seconds]
<jolamb> with ruby-mri, can I specify a line of code to execute before the programfile? e.g. I have a script that's not using bundler, and which has a weird json requirement, so I'd like to run `gem 'json'
<jolamb> er
<jolamb> `gem 'json', '< 2.0'` that is
dhollinger has joined #ruby
skweek has joined #ruby
qba73 has quit []
patarr has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
mim1k has joined #ruby
mwlang has quit [Quit: mwlang]
<jhass> you could just init a Gemfile somewhere and bundle exec ruby it
patr0clus has joined #ruby
gusrub has joined #ruby
<jolamb> jhass: huh, good point
quobo has joined #ruby
patarr has joined #ruby
quobo has quit [Client Quit]
mim1k has quit [Ping timeout: 252 seconds]
<jolamb> thanks
dhollinger has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
mjuszczak has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mjuszczak has quit [Client Quit]
jenrzzz has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mim1k has joined #ruby
synthroi_ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Chymaster has joined #ruby
synthroid has quit [Ping timeout: 258 seconds]
haylon_ has joined #ruby
rgtk has quit [Ping timeout: 245 seconds]
Chymaster has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mim1k has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
haylon has quit [Ping timeout: 245 seconds]
patarr has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
rgr has joined #ruby
cdg has joined #ruby
muelleme_ has quit [Ping timeout: 245 seconds]
patarr has quit [Ping timeout: 258 seconds]
rgr_ has quit [Ping timeout: 240 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
jenrzzz has joined #ruby
dhollinger has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
synthroi_ has quit [Ping timeout: 240 seconds]
tercenya has quit [Remote host closed the connection]
oliv_____ has joined #ruby
tercenya has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
oliv_____ has quit [Ping timeout: 258 seconds]
Verity has joined #ruby
<Verity> does anyone know how to get packetfu working on windows?
<Verity> or should I switch to linux
gusrub_ has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
<havenwood> Verity: If you're on Windows 10 the Windows Subsystem for Linux works great with Ruby.
<Verity> win7
<Verity> I get all errors
<havenwood> Verity: I just walked someone through installing ruby-install/chruby then Rails on Win 10 and it went without a hitch.
<Verity> trying to install with gem
<Verity> ruby itself is ok but this gem is having issues
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub_ has quit [Remote host closed the connection]
<havenwood> I'd like to say stick with Windows, since changing OSes can be jarring, but you'll have a better time on Linux or something unixy.
jusa has joined #ruby
<Verity> would it be as simple as gem install packetfu
<Verity> several checks fail on that
nowhereman has quit [Ping timeout: 240 seconds]
<Verity> I don't understand all of the errors
gusrub has joined #ruby
<Verity> I think I'll switch to opensuse
soloscshaw has joined #ruby
<havenwood> Verity: Use the latest master of ruby-install for openSUSE support. :-)
<havenwood> hurricanehrndz: ^
<havenwood> hurricanehrndz: Thanks for helping me test. Tweaked the packages so each engine works and merged. :-)
jusa has quit [Ping timeout: 240 seconds]
biberu has quit []
soloscshaw has quit [Ping timeout: 240 seconds]
<Verity> havenwood, any idea on a fix? I'd like to stick with windows if its possible but I'll switch if I have to. http://pastebin.com/WnJ0p3gq
<ruby[bot]> Verity: as I told you already, please use https://gist.github.com
synthroid has quit []
<Verity> I think Im making protgress
<Verity> need a developer kit
<havenwood> Verity: It looks like you already have Dev Kit installed: "Temporarily enhancing PATH to include DevKit..."
<Verity> thats the ruby dev kit, I thionk I also needed the winpcap dev kit
<Verity> got it!!!!
<Verity> going to try packetfu again
<havenwood> Verity: aha
<Verity> it worked!!!!!
<Verity> =D
<Verity> now I just need to explain to my professor that I wont be using C# or C++, but instead ruby for this
rakm_ has joined #ruby
eindoofus has joined #ruby
<eindoofus> hi, is it a bad idea to learn Ruby with this book? i should mention i already have an intermediate skills in Java:
rakm_ has quit [Client Quit]
rakm has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
grymmjack^AFK^AF is now known as grymmjack^AFK
<baweaver> eindoofus see the channel topic
<baweaver> I put a book list up there :)
<baweaver> Ruby Way is a tome style, more for reference
<baweaver> you probably want something more like Eloquent Ruby which is entirely geared towards teaching programmers how to ruby like ruby people.
<eindoofus> thanks baweaver
marxarelli is now known as marxarelli|afk
<eindoofus> baweaver, looks like Eloquent Ruby is from 2011, is that ok? not sure how much has been added since
<baweaver> Yeah, it's still fine
<baweaver> There are some features added since then, but that book is more for the style of it than the fine details of syntax and new bits
<baweaver> really as long as you're reading against Ruby 2.x+ you'll be fine.
beauby has quit [Ping timeout: 255 seconds]
grymmjack^AFK has quit [Quit: Going offline, see ya! (www.adiirc.com)]
cagomez has joined #ruby
aryaching has joined #ruby
duderonomy has joined #ruby
oliv_____ has joined #ruby
cam27 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
<cagomez> def some_method(a, b, c=25); end;
bernd27 has joined #ruby
<cagomez> if I have ^, can I call `some_method(a: 1, b:2)` and have c be the default value?
<baweaver> Look up kwargs in ruby
ldnunes has quit [Quit: Leaving]
<baweaver> It'd actually be: method(a:,b:,c:25)
jackrandom has quit [Ping timeout: 245 seconds]
justicefries has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
haylon_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
workmad3 has joined #ruby
mjuszczak has quit []
eindoofus has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has quit [Quit: WeeChat 1.5]
KCmetro has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chouhou__ has quit [Remote host closed the connection]
pifon has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
patarr has joined #ruby
KCmetro_ has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
KCmetro_ has joined #ruby
bernd9000 has joined #ruby
KCmetro has quit [Ping timeout: 258 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
bernd27 has quit [Ping timeout: 258 seconds]
dopamean_ has joined #ruby
DocWinter has quit [Quit: WeeChat 1.7]
impermanence has joined #ruby
bernd9000 has quit [Remote host closed the connection]
impermanence has quit [Client Quit]
patarr has quit [Ping timeout: 258 seconds]
rgtk has joined #ruby
<rizonz> I have some thing strange, in an if
<rizonz> !paste
bsartek has joined #ruby
<rizonz> !pastie
<rizonz> damn where does it want a paste again ?
<havenwood> rizonz: gist.github.com
patarr has joined #ruby
<rizonz> that, how can that happen
Immune has joined #ruby
rgr_ has joined #ruby
quobo has joined #ruby
rgr has quit [Remote host closed the connection]
<rizonz> is than an ruby issue ?
cam27 has quit [Quit: cam27]
soloscshaw has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
pupsicle has quit [Quit: pupsicle]
<rizonz> havenwood: do you have a clue ?
soloscshaw has quit [Ping timeout: 240 seconds]
<hxegon> rizonz: have you tried making the <% a <%= on line 3?
last_staff has quit [Quit: last_staff]
mjuszczak has joined #ruby
<rizonz> hxegon: yes does error
<baweaver> Why the - in there?
<rizonz> baweaver: to test if it did matter :)
<baweaver> fair.
<rizonz> I'm always fair
<baweaver> Try making a new block of `if true` and see if that behaves
<havenwood> rizonz: What is?: @host.architecture.class
<havenwood> Is it a String?
<baweaver> may also have a newline or space in it
<havenwood> rizonz: p @host.architecture
<rizonz> let me check if I can parse that
<rizonz> p ?
bronson has quit [Ping timeout: 260 seconds]
<baweaver> essentially object.tap { |v| puts v.inspect }
<havenwood> rizonz: For debugging, rather than: puts #host.architecture.inspect # like baweaver said
<rizonz> I get Architecture out of that class
<baweaver> well, was more of saying that that was what `p` was doing behind the scenes
patarr has quit [Ping timeout: 268 seconds]
<rizonz> p gives me the same
<rizonz> ah ok
<havenwood> rizonz: And what is?: @host.architecture.to_s
patarr has joined #ruby
<havenwood> rizonz: Take a look in Pry. You might want to `ls @host.architecture` and try various methods to see what the object has to say for itself.
<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
<rizonz> havenwood: same, but there is a space behind it
<baweaver> aha!
<baweaver> cookie is mine today havenwood
<havenwood> ?cookie baweaver
<ruby[bot]> baweaver: here's your cookie: 🍪
* rizonz cookies havenwood baweaver
lele has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
<rizonz> guys I like to be hugged now like doggies do
* rizonz tries to get his cookies back
dlitvak has joined #ruby
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
brent__ has quit [Remote host closed the connection]
mjuszcza_ has joined #ruby
brent__ has joined #ruby
KCmetro_ has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
mjuszczak has quit [Read error: Connection reset by peer]
tvw has joined #ruby
theunraveler has quit []
KCmetro has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
rgtk has joined #ruby
brent__ has joined #ruby
mjuszcza_ has quit []
jenrzzz has quit [Ping timeout: 260 seconds]
lagweezle is now known as lagweezle_away
esObe_ has quit [Read error: Connection reset by peer]
KCmetro has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
olivi____ has quit [Ping timeout: 260 seconds]
patr0clus has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
patr0clus has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
mjuszczak has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
KCmetro has joined #ruby
volty has joined #ruby
mjuszczak has joined #ruby
volty has quit [Quit: Konversation terminated!]
KCmetro has quit [Ping timeout: 258 seconds]
KCmetro has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
gsilva has joined #ruby
marxarelli|afk is now known as marxarelli
patarr has joined #ruby
KCmetro has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
mices has joined #ruby
soloscshaw has joined #ruby
jusa has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
soloscshaw has quit [Ping timeout: 260 seconds]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has quit []
patarr has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
tvw has quit []
olivi____ has joined #ruby
Doow_ has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
<mices> how do i get a hash key from the known value
gains has joined #ruby
Doow has quit [Ping timeout: 255 seconds]
Pierreb|home has quit [Ping timeout: 240 seconds]
<gr33n7007h> mices: h.invert[v]
<mices> ty
<gr33n7007h> h.key v
Cohedrin has quit [Read error: Connection reset by peer]
<gr33n7007h> i forget about Hash#key
mikecmpbll has quit [Quit: inabit. zz.]
<cagomez> I have an array of structs . what's a good way to search through my array for a struct with a specific attribute equaling a value i'm looking for?
<Radar> cagomez: Do you have an example of what these structs look like?
whiteline has quit [Ping timeout: 264 seconds]
<cagomez> Radar: `DateAttr = Struct.new (:day, :foo)`. So I have an array of [DateAttr, DateAttr] and I need to find one such that DateAttr.foo = somevalue
Cohedrin has joined #ruby
<Radar> cagomez: To get the value of `foo` you'd just do DateAttr#foo, so if you have an array of DateAttrs...
<SeepingN> DateAttr.select {|x| x.foo == "value"} ?
<Radar> SeepingN: close
<SeepingN> heh
<cagomez> find()?
whiteline has joined #ruby
<SeepingN> will there only be 1?
<cagomez> yes SeepingN
<Radar> DateAttr is the struct, not the array
dcunit3d has joined #ruby
<Radar> >> DateAttr = Struct.new(:day, :foo); attrs = [DateAttr.new(1,2), DateAttr.new(3,4)]; attrs.detect { |a| a.foo == 4 }
<ruby[bot]> Radar: # => #<struct DateAttr day=3, foo=4> (https://eval.in/782744)
<SeepingN> er, yeah that
<gr33n7007h> neat thing with find/detect you can actually pass it a proc too
cschneid_ has quit [Remote host closed the connection]
patarr has joined #ruby
cschneid_ has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
brent__ has quit [Ping timeout: 268 seconds]
mjuszczak has joined #ruby
Rodya_ has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
jenrzzz has joined #ruby
griff has joined #ruby
gsilva has quit [Remote host closed the connection]
nowhereman has joined #ruby
Hobbyboy has quit [Ping timeout: 255 seconds]
beauby has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
gsilva has joined #ruby
kith has joined #ruby
minimalism has quit [Quit: minimalism]
jarred_ has joined #ruby
soloscshaw has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
Hobbyboy has joined #ruby
soloscshaw has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Vile` has joined #ruby
cagomez has quit [Remote host closed the connection]
cschneid_ has joined #ruby
cagomez has joined #ruby
friday has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
friday has joined #ruby