havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: 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
milardovich has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
lagweezle is now known as lagweezle_away
bronson has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Ping timeout: 246 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 260 seconds]
amirite has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
cagomez has quit [Remote host closed the connection]
jphase has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
cagomez has joined #ruby
fmcgeough has joined #ruby
bronson has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
ramfjord has joined #ruby
jameser has joined #ruby
nicolai86 has quit [Remote host closed the connection]
amirite has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
amirite has joined #ruby
marr has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
jenrzzz has quit [Ping timeout: 240 seconds]
sylario has quit [Quit: Connection closed for inactivity]
PettanShoutaKun has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gusrub_ has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PettanShoutaKun> I have an array object thing.... I'm trying to iterate over it and set a variable for the number the object is in the array on the thing... I'm currently trying to do this https://gist.github.com/BustyLoli-Chan/04a38119c88df09f067d0899871bfd5a but I notice if I do a puts in the middle there it runs through each of my entries like 5 total times... as in 5 * 5 entries for 25 entries in total. Am I doing something dumb?
bruno- has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
nopolitica has joined #ruby
<matthewd> PettanShoutaKun: In general, avoid `for`.. but that sounds fine at a glance
gusrub has quit [Ping timeout: 258 seconds]
fmcgeough has quit [Quit: fmcgeough]
<PettanShoutaKun> what's the best way to loop where I can still get an index number?
<PettanShoutaKun> I am like super new to ruby
<matthewd> each_with_index
cdg has joined #ruby
jameser has joined #ruby
<elomatreb> @steps.each.with_index(1) {|step, index| step.order_number = index } would be idiomatic Ruby
imode has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
fmcgeough has joined #ruby
jameser has quit [Client Quit]
herbmillerjr has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
fmcgeough has quit [Client Quit]
amirite has quit [Ping timeout: 240 seconds]
<PettanShoutaKun> I thought my array had 5 things in it... but looping through it with a each_with_index I end up getting https://gist.github.com/BustyLoli-Chan/335749fafbcfb2a1b399102a504e6b1f
amirite has joined #ruby
<PettanShoutaKun> so does this mean I've somehow accidentally created a multi-dimensional array?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<matthewd> PettanShoutaKun: I think it means your debug code isn't doing what you think it is, or the whole loop is being invoked multiple times
dviola has joined #ruby
<matthewd> Note it keeps counting 0 to 4, not going higher
<matthewd> Show more code?
<PettanShoutaKun> the thing that throws me off is the different hex locations at the end... doesn't that mean all of those things are stored in different memory locations?
<matthewd> Oh, didn't notice that. Then yeah, this will be a loop somewhere much further up in your program: they're each looping over different arrays, of different elements.
ramfjord has quit [Ping timeout: 248 seconds]
nicolai86 has joined #ruby
<PettanShoutaKun> give me a second and I'll post this code... I'm very unfamiliar with it. I'm essentially working with what I've been handed, but I do believe there is an error here
bronson has quit [Remote host closed the connection]
milardovich has joined #ruby
coderphive has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 240 seconds]
webnanners has quit [Ping timeout: 240 seconds]
amirite has quit [Ping timeout: 240 seconds]
<PettanShoutaKun> https://gist.github.com/BustyLoli-Chan/47074b0cd1668632c9b64149d367e868 so this is working with selenium to try to get html elements of varyingly similar structure and parse them into fruit types we have test methods for
Cohedrin_ has joined #ruby
enterprisey has joined #ruby
<PettanShoutaKun> at first I thought the recursive function thing was my problem, but I noticed that even if I changed reattempt to 3 or something it would still create a 5,5 multi-dimensional array
<elomatreb> Well, for starters, you apparently do the same thing twice in lines 35-39, are you sure you didn't forget to remove old code?
<elomatreb> Oh, you don't assign, nevermind.
webnanners has joined #ruby
<PettanShoutaKun> yeah, most of that is code I've recently added anyway
rakm has joined #ruby
<PettanShoutaKun> the assignment was the only thing I was really trying to achieve. The thing above is just me printing out the array to see if I'm insane or if this has indeed become multi dimensional
scottj has quit [Quit: leaving]
<elomatreb> For debugging the Kernel#p method is probably more useful than building a loop like that
<PettanShoutaKun> I didn't think about that to be honest.
<matthewd> I think you'll find configure_fruits, and thus get_fruits, is getting called a bunch (🤓) of times
greenbagels has quit [Ping timeout: 258 seconds]
webnanners has quit [Ping timeout: 248 seconds]
<PettanShoutaKun> do you see where? Or does that mean you don't really see an issue with anything in the code so it must be elsewhere?
<matthewd> get_fruits isn't called at all here
<PettanShoutaKun> yeah it's called from elsewhere outside of this class
<matthewd> The code is overall deeply unidiomatic, so I'm not sure I'd go so far as "no issues", but I see nothing here that will loop
<matthewd> Add a puts at the top of get_fruits, and see how many times it gets called
<PettanShoutaKun> seems you are correct.... I did just that and It printed 9 times
<matthewd> Then find the [elsewhere] method that calls it, add one there, repeat
webnanners has joined #ruby
Guest97372 has quit [Ping timeout: 258 seconds]
jameser has joined #ruby
cdg has joined #ruby
webnanners has quit [Ping timeout: 248 seconds]
apparition has joined #ruby
webnanners has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
juggler has joined #ruby
ozcanesen has joined #ruby
jameser_ has joined #ruby
jameser has quit [Ping timeout: 248 seconds]
greenbagels has joined #ruby
Fraeon has quit [Ping timeout: 240 seconds]
wnd has quit [Ping timeout: 260 seconds]
flips has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
flips has joined #ruby
nankyoku_ has joined #ruby
wnd has joined #ruby
byte512 has quit [Ping timeout: 240 seconds]
shaman42 has quit [Ping timeout: 260 seconds]
Didac has quit [Ping timeout: 240 seconds]
shaman42 has joined #ruby
webnanners has quit [Ping timeout: 258 seconds]
Yxhuvud has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 276 seconds]
Yxhuvud has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
byte512 has joined #ruby
Didac has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wald0 has joined #ruby
<PettanShoutaKun> how do I tell an array to drop all it's contents?
webnanners has joined #ruby
<PettanShoutaKun> actually even if this thing loops 9 times in the get_fruits class it does @fruits = [] ...does that not purge the old array and make a new one?
<matthewd> Yes it does, which is why you only ever have the 5 elements
<PettanShoutaKun> I GET IT
<PettanShoutaKun> yeah!
<PettanShoutaKun> it's just recreated 5 times
<PettanShoutaKun> it's not multidimensional at all
<PettanShoutaKun> which means something else in my for loop is jacked up because it's only ever sets fruit_number to 1
<PettanShoutaKun> for some reason
<matthewd> Change your loop to set every element to 9 (say)
<matthewd> i.e., is the 1 actually coming from there, or somewhere else?
tvw has quit [Ping timeout: 264 seconds]
<PettanShoutaKun> good questions! I will try it next
webnanners has quit [Ping timeout: 240 seconds]
<matthewd> I'd be tracking down what's calling the whole thing more often than you expect, first, though.. just because otherwise that could be the cause of all sorts of surprises
<matthewd> Not least, the fact it is, as you noted, recreating and repopulating the array each time -- so any other manipulation of those elements will be lost
<PettanShoutaKun> that's other legacy code framework. I asked the department about to whom it may be an issue. It's certainly bizarre, but it's probably only something they would have the answer to
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
d^sh_ has joined #ruby
<PettanShoutaKun> I changed my approach to "@fruits.each.with_index { |val, index| val.fruit_number = index }" and they ended up as 0 index+1 and they ended up as 1 set it to 9 and it is indeed 9....
<PettanShoutaKun> so why do they end up as the same number
<PettanShoutaKun> am I using index+1 incorrectly? or something?
quobo has quit [Quit: Connection closed for inactivity]
shinnya has quit [Ping timeout: 248 seconds]
webnanners has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 258 seconds]
juggler has quit [Ping timeout: 240 seconds]
webnanners has quit [Ping timeout: 248 seconds]
<PettanShoutaKun> so a guy told me to add "attr_accessor :fruit_number" to my FruitElement class, which is what I thought I've been setting this whole time. I have a line in initialize that says @fruit_number = fruit_number but going through and doing puts on fruit_number @fruit_number and @fruit_number even after @fruit_number = fruit_number seems to show that fruit_number is always nil? It just doesn't print anything.
webnanners has joined #ruby
<PettanShoutaKun> but if I reference it elsewhere in code like in other methods as "#{@fruit_number}" works.
alfiemax has joined #ruby
<PettanShoutaKun> I say works... but it's still only ever one value?
<adam12> PettanShoutaKun: Can you show some code?
<adam12> Make a gist of your class and what you're working on.
<PettanShoutaKun> yeah, give me a little bit
<matthewd> ^ there's really a limit to how much we can debug by guessing
gizmore|2 has joined #ruby
<PettanShoutaKun> I understand... this is also just a huge object oriented framework and I have to obfuscate everything, because I'm my employer would not like my handing out the source code. Even if the people on IRC are more competent than some if not most of my fellow employees e.e
webnanners has quit [Ping timeout: 255 seconds]
<matthewd> I'd also note that unless the fruits are missile silos, it seems unlikely that the actual nouns from your business domain are likely to be secret-worthy.. but as long as you ensure your anonymization definitely isn't introducing/fixing any issues, it's obviously your call ¯\_(ツ)_/¯
alfiemax has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 240 seconds]
<adam12> matthewd: plot twist, the software is for grocery store inventory management :P
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
webnanners has joined #ruby
nankyoku_ has quit [Ping timeout: 258 seconds]
kriskropd has quit [Ping timeout: 260 seconds]
<PettanShoutaKun> so I think the thing I'm confused about is... how do I get that fruit_number and use it from inside the fruit class? I thought I would get it with like puts "#{@fruit_number}" but is that not correct?
<adam12> just call `fruit_number`
<adam12> Although `@fruit_number` should exist.
<PettanShoutaKun> so what is the difference between the two of those?
greenbagels has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 255 seconds]
HashNuke has quit [Ping timeout: 255 seconds]
zzak has quit [Ping timeout: 255 seconds]
chamunks has quit [Ping timeout: 255 seconds]
zzak has joined #ruby
meinside has quit [Ping timeout: 255 seconds]
gbailey has quit [Ping timeout: 255 seconds]
Kilo`byte has quit [Ping timeout: 255 seconds]
twe4ked has quit [Ping timeout: 255 seconds]
afisher has quit [Ping timeout: 255 seconds]
<adam12> PettanShoutaKun: One's an instance variable, one's a method call defined by attr_accessor that gets the instance variable
chamunks has joined #ruby
SegFaultAX has quit [Ping timeout: 255 seconds]
olivierjanss has quit [Ping timeout: 255 seconds]
mistym has quit [Ping timeout: 255 seconds]
ircmaxell has quit [Ping timeout: 255 seconds]
ndrst has quit [Ping timeout: 255 seconds]
ggherdov has quit [Ping timeout: 255 seconds]
Bilge has quit [Ping timeout: 255 seconds]
Matt[m]2 has quit [Ping timeout: 255 seconds]
KevinMGranger has quit [Ping timeout: 255 seconds]
mistym has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
greenbagels has joined #ruby
webnanners has quit [Ping timeout: 255 seconds]
gf3 has quit [Ping timeout: 255 seconds]
eblip has quit [Ping timeout: 255 seconds]
davic has quit [Ping timeout: 255 seconds]
dman[m] has quit [Ping timeout: 255 seconds]
CustosLimen has quit [Ping timeout: 255 seconds]
sparr has quit [Ping timeout: 255 seconds]
lipoqil has quit [Ping timeout: 255 seconds]
miah has quit [Ping timeout: 255 seconds]
olblak has quit [Ping timeout: 255 seconds]
<PettanShoutaKun> so if I have a class that inherits Fruit will it also be able to access #{fruit_number} ?
<PettanShoutaKun> that worked :O
synstack has quit [Ping timeout: 255 seconds]
russt has quit [Ping timeout: 255 seconds]
lupine has quit [Ping timeout: 255 seconds]
camilasan has quit [Ping timeout: 255 seconds]
DEac- has quit [Ping timeout: 255 seconds]
<PettanShoutaKun> that took like 3 hours to figure that out. Thank you, you are a gentle(wo)man and a scholar!
ircmaxell has joined #ruby
olivierjanss has joined #ruby
olblak has joined #ruby
afisher has joined #ruby
camilasan has joined #ruby
jphase has joined #ruby
lupine has joined #ruby
ELLIOTTCABLE has quit [Ping timeout: 255 seconds]
crayfishx has quit [Ping timeout: 255 seconds]
<adam12> cheers.
Caius has quit [Ping timeout: 260 seconds]
soahccc has quit [Ping timeout: 260 seconds]
DEac- has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
webnanners has joined #ruby
jinie has quit [Ping timeout: 260 seconds]
gf3 has joined #ruby
lipoqil has joined #ruby
tsglove2 has joined #ruby
arvindsaik has quit [Ping timeout: 240 seconds]
tatey has quit [Ping timeout: 240 seconds]
peteretep_ has joined #ruby
pmarreck_ has joined #ruby
Guest42469_ has joined #ruby
graingert_ has joined #ruby
[diecast]_ has joined #ruby
mattwc_ has joined #ruby
wsmoak_ has joined #ruby
doesntbyte_ has joined #ruby
foamz__ has joined #ruby
Tony-St4rk_ has joined #ruby
contradictioned_ has joined #ruby
cttttt_ has joined #ruby
jinie has joined #ruby
bokayio has joined #ruby
ELLIOTTCABLE has joined #ruby
nahra` has joined #ruby
heftig_ has joined #ruby
dinfuehr has joined #ruby
kspencer_ has joined #ruby
Caius has joined #ruby
Caius has joined #ruby
Caius has quit [Changing host]
arvindsaik has joined #ruby
Kilo`byte has joined #ruby
davic has joined #ruby
baweaver has joined #ruby
tatey has joined #ruby
cdg has quit [Remote host closed the connection]
Bilge has joined #ruby
baweaver is now known as Guest33209
synstack has joined #ruby
CustosLimen has joined #ruby
twe4ked has joined #ruby
gbailey has joined #ruby
pelegreno_ has joined #ruby
KevinMGranger has joined #ruby
kspencer has quit [Ping timeout: 255 seconds]
doesntbyte has quit [Ping timeout: 255 seconds]
amitchellbullard has quit [Ping timeout: 255 seconds]
maciuszek has quit [Ping timeout: 255 seconds]
mattwc has quit [Read error: Connection reset by peer]
Guest42469 has quit [Ping timeout: 255 seconds]
foamz_ has quit [Read error: Connection reset by peer]
graingert has quit [Read error: Connection reset by peer]
cttttt has quit [Read error: Connection reset by peer]
pmarreck has quit [Read error: Connection reset by peer]
[diecast] has quit [Read error: Connection reset by peer]
peteretep has quit [Read error: Connection reset by peer]
wsmoak has quit [Read error: Connection reset by peer]
Technaton has quit [Ping timeout: 255 seconds]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
Tony-St4rk has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: No Ping reply in 180 seconds.]
Danielss89 has quit [Ping timeout: 255 seconds]
fullstack has quit [Ping timeout: 255 seconds]
lel has quit [Ping timeout: 255 seconds]
ricer2 has quit [Ping timeout: 255 seconds]
dminuoso has quit [Ping timeout: 255 seconds]
ikopico has quit [Ping timeout: 255 seconds]
Scient has quit [Ping timeout: 255 seconds]
edward_ has quit [Ping timeout: 255 seconds]
nahra has quit [Remote host closed the connection]
adaedra has quit [Ping timeout: 255 seconds]
znz_jp has quit [Ping timeout: 255 seconds]
haylon has quit [Ping timeout: 255 seconds]
sorah___ has quit [Ping timeout: 255 seconds]
gremax has quit [Ping timeout: 255 seconds]
justizin has quit [Ping timeout: 255 seconds]
caw__ has quit [Ping timeout: 255 seconds]
tsglove has quit [Ping timeout: 255 seconds]
doesntbyte_ is now known as doesntbyte
kspencer_ is now known as kspencer
pmarreck_ is now known as pmarreck
pelegreno has quit [Remote host closed the connection]
Danielss89_ has joined #ruby
mattwc_ is now known as mattwc
peteretep_ is now known as peteretep
miah has joined #ruby
wsmoak_ is now known as wsmoak
cttttt_ is now known as cttttt
Tony-St4rk_ is now known as Tony-St4rk
[diecast]_ is now known as [diecast]
graingert_ is now known as graingert
SegFaultAX has joined #ruby
lel has joined #ruby
amitchellbullard has joined #ruby
webnanners has quit [Ping timeout: 248 seconds]
sorah___ has joined #ruby
soahccc has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
justizin has joined #ruby
russt has joined #ruby
Scient has joined #ruby
caw__ has joined #ruby
ndrst has joined #ruby
fullstack has joined #ruby
Technaton has joined #ruby
ikopico has joined #ruby
dminuoso has joined #ruby
ndrst is now known as Guest7085
bokayio has quit [Ping timeout: 240 seconds]
redondos has quit [Ping timeout: 240 seconds]
drcode has quit [Ping timeout: 240 seconds]
bogdanteleaga has quit [Ping timeout: 240 seconds]
sparr has joined #ruby
clamstar has quit [Ping timeout: 260 seconds]
eblip has joined #ruby
arvindsaik has quit [Ping timeout: 240 seconds]
Matt[m]2 has joined #ruby
crayfishx has joined #ruby
SCHAPiE has quit [Ping timeout: 240 seconds]
adaedra has joined #ruby
gremax has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
dman[m] has joined #ruby
haylon has joined #ruby
bokayio has joined #ruby
arvindsaik has joined #ruby
bogdanteleaga has joined #ruby
webnanners has joined #ruby
ramfjord has joined #ruby
PettanShoutaKun has quit [Ping timeout: 260 seconds]
Silthias has quit [Read error: No route to host]
AlexRussia has joined #ruby
SCHAPiE has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
webnanners has quit [Ping timeout: 240 seconds]
stephenh has quit [Read error: Connection reset by peer]
stephenh has joined #ruby
clamstar has joined #ruby
abhi__ has joined #ruby
wendinho33 has joined #ruby
wendinho33 has quit [Client Quit]
webnanners has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
<abhi__> i am getting syntax error with this https://gist.github.com/anonymous/8d7670dba208ffa22041e0275ca62139 i have tried to figure out what's wrong, but nothing seems to work. can anybody help me figuring out the error
uneeb has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
stephenh_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ptx0_ has joined #ruby
zzxc_ has joined #ruby
webnanners has quit [Ping timeout: 248 seconds]
<matthewd> abhi__: That's... some unusual code layout. Why are those bits all the way over there?
webnanners has joined #ruby
stephenh has quit [Ping timeout: 255 seconds]
cajone has quit [Ping timeout: 255 seconds]
zzxc has quit [Ping timeout: 255 seconds]
haylon has quit [Ping timeout: 255 seconds]
zacts has quit [Ping timeout: 255 seconds]
ryotarai has quit [Ping timeout: 255 seconds]
Matt[m]2 has quit [Ping timeout: 255 seconds]
__main__ has quit [Ping timeout: 255 seconds]
ptx0 has quit [Ping timeout: 255 seconds]
Cork has quit [Ping timeout: 255 seconds]
stephenh_ is now known as stephenh
ryotarai_ has joined #ruby
_main_ has joined #ruby
ryotarai_ is now known as ryotarai
<abhi__> matthewd: Sorry for that, I will paste it properly. Somehow copy did not work as expected
haylon has joined #ruby
<matthewd> If that isn't the problem, then it would probably help to share the error too. The interpreter gives you rather a lot of information about what's going wrong.
Matt[m]2 has joined #ruby
cajone has joined #ruby
zzxc_ has quit [Ping timeout: 260 seconds]
arvindsaik has quit [Ping timeout: 260 seconds]
SCHAPiE has quit [Ping timeout: 240 seconds]
psmolen has quit [Ping timeout: 260 seconds]
zacts has joined #ruby
__Yiota has joined #ruby
_main_ is now known as __main__
gbailey has quit [Ping timeout: 260 seconds]
arvindsaik has joined #ruby
zzxc has joined #ruby
psmolen has joined #ruby
gbailey has joined #ruby
<abhi__> matthewd: here it is https://ideone.com/3qgyrS
Cork has joined #ruby
clamstar has quit [Ping timeout: 240 seconds]
pelegreno_ has quit [Excess Flood]
pelegreno_ has joined #ruby
webnanners has quit [Ping timeout: 240 seconds]
<matthewd> abhi__: The line numbering shows that the newlines are missing here too. As does clicking 'fork'.
webnanners has joined #ruby
<abhi__> matthewd: sorry, forgot to update, it's correct now
SCHAPiE has joined #ruby
ozcanesen has joined #ruby
<matthewd> Have you run it again? The output doesn't seem to have changed.
clamstar has joined #ruby
<abhi__> No, when I run it it gives me syntax error. That's what I am trying to figure out. I can't seem to figure out what's wrong with the code
<matthewd> Fix the newlines in your local code, then run it, then gist me a new copy of your local code, and the error you're actually seeing
bronson has joined #ruby
milardovich has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
<abhi__> matthewd: I did fixed the indentation in the code(and ruby code shouldn't give error based on indentation, right?).Here is the code - https://gist.github.com/anonymous/8c199f0e01f9745c20613ba7d5a9e4c3 with error and proper indentation.
<matthewd> Well now you're lying, and I'm losing interest. The line numbers in those errors don't even slightly match the code you claim to be running.
milardovich has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 255 seconds]
<abhi__> The line numbers are from previous ideone. Sorry, if you think I am wasting your time. I will try to solve it myself then.
<matthewd> I said "gist me [..] the error you're actually seeing", and you chose not to. Therefore yes, you are wasting my time.
emulator3 has joined #ruby
A124 has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
webnanners has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 248 seconds]
webnanners has joined #ruby
zautomata has joined #ruby
gix has joined #ruby
webnanners has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
vee__ has joined #ruby
webnanners has joined #ruby
ramfjord has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
greenbagels has joined #ruby
nopolitica has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
webnanners has quit [Ping timeout: 248 seconds]
spt0 has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
webnanners has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
coderphive has quit [Quit: coderphive]
abhi__ has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
webnanners has quit [Ping timeout: 260 seconds]
coderphive has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
webnanners has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
greenbagels has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spt0 has joined #ruby
uneeb has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 260 seconds]
maxmanders has quit [Ping timeout: 248 seconds]
TheMoonMaster has quit [Ping timeout: 246 seconds]
nug has quit [Ping timeout: 260 seconds]
maxmanders has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
maxmanders is now known as Guest5847
nug- has joined #ruby
TheMoonMaster has joined #ruby
bronson has joined #ruby
mtkd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
imode has joined #ruby
meinside has joined #ruby
HashNuke has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
maciuszek has joined #ruby
ggherdov has joined #ruby
ElDoggo has joined #ruby
ahrs has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.9.1]
ahrs has joined #ruby
coderphive has quit [Quit: coderphive]
cdg has joined #ruby
ramfjord has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
bambanx has joined #ruby
bambanx has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShekharReddy has joined #ruby
tamouse__ has joined #ruby
nug- is now known as nug
amirite has joined #ruby
mim1k has joined #ruby
ElDoggo has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 248 seconds]
RushPL has joined #ruby
amirite has quit [Ping timeout: 248 seconds]
ozcanesen has quit [Quit: ozcanesen]
milardovich has joined #ruby
soyeomul has joined #ruby
neuraload has joined #ruby
<soyeomul> hello
<soyeomul> it could put list in regexp?
<RickHull> how do you mean? can you paste an example? use a paste site like gist.github.com
milardovich has quit [Ping timeout: 248 seconds]
<soyeomul> that was python code. i am doing remake to ruby
<soyeomul> currently i have ruby 1.8.7
<soyeomul> in ubuntu
<RickHull> to summarize, you have 1. file contents as a string 2. a regex and you want to get a list of matching substrings
<RickHull> matching, according to the regex
<RickHull> is that right?
<soyeomul> whow RickHull you are nice guy
<soyeomul> yes it is
<RickHull> i'm not sure of the solution off the top of my head, but look here https://ruby-doc.org/core-2.4.2/Regexp.html
govg has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
<RickHull> >> /ow/.match 'how now brown cow'
<ruby[bot]> RickHull: # => #<MatchData "ow"> (https://eval.in/874825)
rwb has joined #ruby
<soyeomul> Oh RickHull there is MULTILINE as like pyhthon, thank you very much!!!
<RickHull> (stopped at the first match)
milardovich has joined #ruby
cgfbee has joined #ruby
<soyeomul> i will remark that web page. thanks RickHull
<RickHull> >> /.ow/.match 'how now brown cow'
<ruby[bot]> RickHull: # => #<MatchData "how"> (https://eval.in/874826)
<RickHull> not sure how to do the ruby equivalent of python's findall
jphase has quit [Remote host closed the connection]
zautomata has quit [Ping timeout: 260 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
<soyeomul> It is enough with MULTILINE, thanks RickHull
<soyeomul> i go
soyeomul has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<RickHull> cheers :)
milardovich has quit []
<tamouse__> RickHull: look at String#scan perhaps?
<RickHull> yes, that sounds right. but not for me, for our departed friend
<tamouse__> i missed most of the convo
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ricer2 has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
apparition has quit [Quit: Bye]
coderphive has joined #ruby
nopolitica has joined #ruby
guardianx has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
Guest7085 is now known as ndrst
ndrst has quit [Changing host]
ndrst has joined #ruby
apparition has joined #ruby
jinie has quit [Ping timeout: 248 seconds]
dminuoso_ has joined #ruby
jinie has joined #ruby
biberu has joined #ruby
biberu has quit [Client Quit]
aupadhye has joined #ruby
postmodern has quit [Quit: Leaving]
Bock has joined #ruby
DTZUZO has joined #ruby
bronson has joined #ruby
anisha has joined #ruby
ryandevilla has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
snickers has joined #ruby
ryandevilla has quit [Ping timeout: 258 seconds]
anisha has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
coderphive has quit [Quit: coderphive]
minimalism has quit [Quit: minimalism]
neuraload has joined #ruby
edwardly has quit [Ping timeout: 248 seconds]
drcode has joined #ruby
rabajaj has joined #ruby
mgorbach has quit [Ping timeout: 240 seconds]
danguita has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
mgorbach has joined #ruby
anisha has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
troys_ is now known as troys
guardianx has quit [Remote host closed the connection]
coderphive has joined #ruby
neuraload has quit [Ping timeout: 246 seconds]
neuraload has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
jenrzzz has joined #ruby
conta has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
cyberRodent has quit [Ping timeout: 240 seconds]
nopolitica has joined #ruby
cyberRodent has joined #ruby
ramfjord has joined #ruby
harfangk has joined #ruby
nopolitica has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
zautomata has joined #ruby
iamdevnul has quit [Read error: Connection reset by peer]
iamdevnul has joined #ruby
danguita has joined #ruby
<akkad> ok finished CL to ruby port, now to compile it to a static binary
r7c has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
anisha has quit [Ping timeout: 240 seconds]
neuraload has quit [Quit: Leaving]
Burgestrand has joined #ruby
idiocrash has joined #ruby
tpendragon has quit [Quit: ZNC - http://znc.in]
Guest21598 has quit [Quit: ZNC - http://znc.in]
Cohedrin_ has joined #ruby
dminuoso_ has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
anisha has joined #ruby
<RickHull> does ruby make static binaries?
dionysus69 has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest43993
troys has quit [Quit: Bye]
tpendragon has joined #ruby
aufi has joined #ruby
nchambers has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
nchambers has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
ana_ has joined #ruby
biberu has joined #ruby
milardovich has joined #ruby
sysvalve has joined #ruby
heftig_ is now known as heftig
nir0 has joined #ruby
<nir0> hello guys, after upgrading to high sierra i cannot install ruby 1.9.3
<nir0> syntax error in syslog.h
<ruby[bot]> nir0: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/47f1185e01e199f63d4c1873d7e3608e
<ruby[bot]> nir0: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<RickHull> nir0: why 1.9.3? that is dead and buried
<nir0> old project
<RickHull> i would suggest a VM
<nir0> hmm
<RickHull> like ubuntu 12.x or something
<nir0> i'll try to run that project on ruby2
<nir0> thanks a lot
vondruch has joined #ruby
claudiuinberlin has joined #ruby
imode has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
troulouliou_div2 has joined #ruby
ta has quit [Remote host closed the connection]
mark_66 has joined #ruby
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 255 seconds]
nopolitica has joined #ruby
nopolitica has quit [Ping timeout: 248 seconds]
phaul has joined #ruby
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
snickers has joined #ruby
guardianx has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
<pwnd_nsfw> is it possible to have, say, IntelliJ on my windows desktop, however use my ruby installation on my linux box?
<pwnd_nsfw> for running code, blah blah
Dimik has quit [Ping timeout: 246 seconds]
<pwnd_nsfw> I already ssh to the box and run commands manually that way
<RickHull> i think IntelliJ runs its own interpreter
<RickHull> (it must, right?)
milardovich has quit [Read error: Connection reset by peer]
<RickHull> how much of the interpreting functionality do you want to happen remotely?
<RickHull> for like, IDE functionality?
<pwnd_nsfw> I want all running of ruby code to happen remotely
milardovich has joined #ruby
<pwnd_nsfw> as it would me running commands via SSH
<RickHull> keep in mind, I know nothing of IntelliJ
<pwnd_nsfw> I don't know how you mean "it's own interpreter" though... that wouldn't make sense for JetBrains to come up with their own ruby interpreter with the availability of the ones currently
snickers has quit [Ping timeout: 255 seconds]
<teatime> pwnd_nsfw: if intelliJ has open-remote-file-over-ssh or sshfs capability, that + also have a shell open and manually run after saving, might be easiest way
<pwnd_nsfw> rofl
<RickHull> pwnd_nsfw: i mean that intellij has an embedded ruby interpreter
<RickHull> like MRI or whatever
<teatime> I don't use or know anything about intellij but would assume that what you ask for is maybe possible but a huge PITA
<pwnd_nsfw> word, I already use winsshfs which allows me to mimic my ssh file sharing to appear as just another drive letter on my windows install
<pwnd_nsfw> Yeah, I'm sure it is
<RickHull> your best bet is probably to use IntelliJ for what it's good at, and save your files to the remote machine
<pwnd_nsfw> RickHull, that would be silly too.
<RickHull> and just execute what you want there
<teatime> I mean most IDE's let you configure per-project what the "run" command does
FahmeF has joined #ruby
<pwnd_nsfw> IntelliJ is an IDE... which means running commands outside of the IDE would make it not being used for what it's good at lol
<teatime> you can just make it "ssh user@remotehost path/to/script" if you want
<pwnd_nsfw> being an integrated environment
<teatime> + have ssh key auth
<pwnd_nsfw> that is true
<pwnd_nsfw> good call
<pwnd_nsfw> Thanks
<teatime> this is why I like vim :)
<teatime> I spent all my time in remote text terminals
<RickHull> nah, emacs ftw
<teatime> yeah whichever
<RickHull> but yes, step 1. ssh
<pwnd_nsfw> In reality, it would really only enable me to not have to change windows heh
quobo has joined #ruby
<pwnd_nsfw> I wish I had picked up on emacs or vim earlier when I was just getting into programming
<teatime> pwnd_nsfw: even if my main editor is an IDE, I imagine I'd like having the separate shell
<pwnd_nsfw> Hell, I opted to just use notepad when doing java
<pwnd_nsfw> Does ruby even have proper linting yet anyways?
<RickHull> yet? when did you last check?
<pwnd_nsfw> A good while I suppose
<teatime> dunno what that means. for almost every language, linting is at the very least choosing one of several third-party tools
<RickHull> what is proper linting? do you just mean indentation conventions?
<pwnd_nsfw> Last I checked, there was like... some half-assed solutions
<RickHull> what is the test for proper linting?
bronson has joined #ruby
<pwnd_nsfw> nah, like... making sure you're referencing things properly, using correct functions of objects, that the method signature was correct
Silthias1 has joined #ruby
<pwnd_nsfw> basically finding all of the pre-runtime errors
<RickHull> those are features of static languages. ruby is dynamic
<pwnd_nsfw> Which can be difficult with such a language as ruby
<RickHull> that is not the conventional meaning of linting, BTW
<pwnd_nsfw> it's also an interpreted language
<teatime> was gonna say, sounds like stuff that makes a lot more sense for a static-typed language
<matthewd> Yeah, that sounds more like a compiler than a linter
milardovich has quit [Ping timeout: 248 seconds]
<pwnd_nsfw> indentation conventions is?
<RickHull> yeah, code formatting basically
Silthias has quit [Read error: Connection reset by peer]
<pwnd_nsfw> anyways
<matthewd> Much as I might have Opinions about its specific choices, rubocop fits pretty well into my definition of a reasonably comprehensive linter
mikecmpbll has quit [Quit: inabit. zz.]
<pwnd_nsfw> Right, but having it integrated into your development environment
<RickHull> easy to do
<pwnd_nsfw> like, the editor highlighting those things as you code
<pwnd_nsfw> as opposed to running the command each time to get the feedback
<matthewd> Yeah, my vim does that
ramfjord has joined #ruby
unsymbol has quit [Quit: cheerio]
<pwnd_nsfw> I know that doesn't come out of the box, so what gives vim the ability to do that?
<RickHull> I added rubocop to one of my gems. I had to override a couple things. probably won't add it to all of my gems
<teatime> well vim has syntax /highlighting/ out of the box
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
<pwnd_nsfw> Right, but that's not what I'm asking
<teatime> presumably you're talking about more, like maybe completion, quickfix, IDE features
<teatime> there're plugins. I don't use a lot of them, I am happy having mostly just a text editor.
<RickHull> ruby defies static analysis, unlike java
<pwnd_nsfw> syntax highlighting is one of the most trivial functions of an editor/IDE next to opening the file... heh
<matthewd> The syntastic syntax-checking plugin has built-in support for rubocop (and ruby -c)
<pwnd_nsfw> I know it's a plugin
<pwnd_nsfw> I'm asking which
<pwnd_nsfw> there we go
<pwnd_nsfw> Thanks matthewd
<pwnd_nsfw> RickHull, where there's a will, there's a way
<RickHull> define_method(ENV['USER_METHOD']) do ...
<RickHull> i hope your IDE can keep up...
<pwnd_nsfw> Metaprogramming would make it harder, sure
<pwnd_nsfw> doesn't mean impossible lol
<RickHull> obj.send(ENV['USER_TEXT'])
ramfjord has quit [Ping timeout: 240 seconds]
<RickHull> which method did I just call?
<pwnd_nsfw> Most IDEs don't really pay attention to that anyways
<pwnd_nsfw> You're giving send a string argument
<pwnd_nsfw> that's all it cares about
blackmesa has joined #ruby
<RickHull> the problem is that send calls the method named by the string
<RickHull> and your IDE can't track it
<pwnd_nsfw> I'm wondering why all of these things are being supplied through the ENV variable. Seems pretty ... insecure really
ur5us has quit [Remote host closed the connection]
<RickHull> just an example of stuff the IDE can't be aware of
mim1k has joined #ruby
<pwnd_nsfw> RickHull, it's not a full on debugger. It essentially just checks syntax
<pwnd_nsfw> christ
<RickHull> sorry to burst your bubble. just trying to explain things
<pwnd_nsfw> Explain what though?
<teatime> well it's a valid point; how can an IDE give you a dropdown of method calls on a variable if it has no idea what the type is of teh variable
<matthewd> It's not about hard calls like send. The problem is `foo.bar` -- which #bar is that?
<teatime> ruby is lightweight and straightforward, there's no compilation etc.; what do you really need the IDE to do for you
<pwnd_nsfw> Well, considering EVERYTHING in ruby is an object
<pwnd_nsfw> that does help
ur5us has joined #ruby
<teatime> I mean I try not to have a strong opinion on tools and stuff, different strokes for different folks
<matthewd> (unless there happens to only be one #bar defined, project-wide)
mikecmpbll has joined #ruby
<pwnd_nsfw> lol, quite
<teatime> for me though, an editor, a command-line, various command-line tools, and API documentation in another window, works great.
<pwnd_nsfw> I really don't need it. It's only a convenience.
Silthias has joined #ruby
<teatime> sure
<RickHull> ruby is like swiss cheese. surf the cheese part as far as you can, but the holes can solve some tricky problems
<RickHull> but those holes make tooling difficult
<pwnd_nsfw> That also makes assisted refactoring difficult
<RickHull> yup
<pwnd_nsfw> But, that's what automated tests are for
<RickHull> yup -- discover problems at runtime
<RickHull> it's a bit of a curse
<teatime> I'm probably limiting myself by staying unfamiliar w/ IDEs and such. it seems I rarely find use for stuff like automated refactoring.
<RickHull> but there are blessings in disguise
<RickHull> teatime: I've made a career of it :)
<teatime> it looks cool in demos, but I feel like I get by just fine on regexes and stuff, the rare times I do something like that
mim1k has quit [Ping timeout: 240 seconds]
<RickHull> teatime: that is, remaining on the emacs/grep program; but i am leaning more towards typing these days. something like Crystal or Elixir
<RickHull> i think Ctags have been used to good effect in some Ruby codebases
<teatime> I am unfamiliar w/ both of those
Silthias1 has quit [Ping timeout: 264 seconds]
<teatime> ctags is one of those useful PITAs, heh
<pwnd_nsfw> I've found it hard for me to really give two shits about programming anymore. But my life is simply complex in that my problems leave me totally unmotivated to solve someone else's problems through programming lol
<RickHull> in a reasonable codebase, you can probably cover 99% of the bases with grep and something like ctags. and testing covers the rest. but what about unreasonable codebases that land in your lap?
<pwnd_nsfw> the simple aspect of my life leaves me no problems of my own to solve
<RickHull> pwnd_nsfw: that seems highly improbable from here ;)
<RickHull> teatime: these days, I place a higher value in absolute certainty. like I **know** there are no mysteries here (e.g. with this changeset)
<pwnd_nsfw> Well, monitoring how much money I spend on drugs is a problem worth solving, then..
<pwnd_nsfw> lol
<RickHull> wew lad, it's late
<pwnd_nsfw> You've said it. 5am is the next hour to hit
ramfjord has joined #ruby
<pwnd_nsfw> rails has becoming boring in it's own right too
<pwnd_nsfw> web development in general, really.
<pwnd_nsfw> I think I'm more mad with the front end of things
<RickHull> are you kidding? what's boring about learning a brand new nodejs framework every 6 months?
<pwnd_nsfw> lol
<pwnd_nsfw> Not even that far. Even with frameworks, HTML and CSS are so unpredictable....
<RickHull> I'm going to stick with Angulembereactflux, once and for all
<pwnd_nsfw> Especially since for some reason half of my code works when I transfer it over to my rails project
ramfjord has quit [Ping timeout: 248 seconds]
<teatime> I don't even "know ruby", only been messing with it for a couple weeks or so
<RickHull> teatime: what came before ruby?
<teatime> I can answer 50% of questions here either by 1) googling the person's query almost verbatim, or 2) looking up the obvious documentation for whatever method they're having trouble with
<RickHull> teatime: well you should write a bot then ;)
milardovich has joined #ruby
mim1k has joined #ruby
<teatime> RickHull: immediately before Ruby and continuing to now I've been most interested in Perl6 :)
<teatime> in the past I've done C, portable sh, some JS but avoid it, Lua, in the distant past I knew Perl 5 very well, some Python
<teatime> I'm more of a *nix sysadmin than a professional developer
<RickHull> i've written some perl5 in anger about 15 years ago and been following perl6 since roughly then
<RickHull> "following"
<teatime> Perl 5 has been made less relevant by, well, Python and Ruby, but the hate for it is not deserved.
<teatime> especially for its era, it's a very nice language to work in that become cool to talk badly about.
<RickHull> i graduated uni in 2002 and perl5 was a relief compared to writing CGI scripts in C or whatever
<RickHull> doing command line programs, text processing
<teatime> sure
<RickHull> but it is pretty gnarly for writing nice libraries and apps
<RickHull> at least according to modern conventions
<teatime> yeah that seems pretty true to me, although I don't do any perl5 anymore
<RickHull> quite postmodern :)
<teatime> that jives with what I see from the sidelines
someuser has joined #ruby
<RickHull> i remember when parrotvm was going to do perl, ruby, python, php (even?)
<teatime> have been enjoying Ruby a lot
<RickHull> ruby is so much cleaner and more consistent
<teatime> also Ruby strikes me as a good choice for a language for teaching people programming
guille-moe has joined #ruby
<teatime> matthewd: any thoughts on that ^^ ?
<RickHull> very much so. it's programmer friendly
<pwnd_nsfw> when people get to strict typing though
<pwnd_nsfw> They'll freak out
<RickHull> better later than sooner
ThomasQM has quit [Read error: Connection reset by peer]
<pwnd_nsfw> I learned Java initially
<pwnd_nsfw> I think that's a good first
<teatime> well, like, example: it has a really straightforward syntax for objects, class variables, instance variables, no extraneous boilerplate stuff "just put this in don't worry about why" like w/ C++ or Java
morfin has joined #ruby
<morfin> hello
<RickHull> pwnd_nsfw: sure, you did it the hard way. everyone should do it the hard way, natch
<pwnd_nsfw> sup morfin
<pwnd_nsfw> lol
<teatime> my uni taught C++ for the first 'intro to programming' CS classes; that's probably a terrible choice
<pwnd_nsfw> but forealz, Java lays out OOP, data types, and is p straight forward for the most part
cadillac_ has quit [Read error: Connection reset by peer]
<pwnd_nsfw> well, "back then" it was
<pwnd_nsfw> I haven't used it in years
<teatime> then they switched to Java, which, I have never done Java. but doubt it's much of an improvement.
<pwnd_nsfw> I know a lot has changed
<RickHull> in my mind, it takes a whole lot of context and experience to understand and appreciate the benefits of type theory
mikecmpbll has quit [Quit: inabit.]
<morfin> i have question about testing... i have one database and upload data to it using CLI to avoid hitting code i test and then i need to query some stuff etc
<pwnd_nsfw> Java is much of an improvement, mostly because you dont' have to worry about managing memory so much
<RickHull> java is a terrible learning language IMHO
<morfin> any idea how do i do this?
<pwnd_nsfw> But there's rust now
nopolitica has joined #ruby
<RickHull> java is cargo cult programming, for the most part, for beginners
<pwnd_nsfw> so, instead of using fixtures or factories, morfin ?
<pwnd_nsfw> wait
mikecmpbll has joined #ruby
<pwnd_nsfw> testing shouldn't fux with your production database anywho
<morfin> it's not trivial database )
<pwnd_nsfw> I'm confused though.
<pwnd_nsfw> With your question.
alfiemax has joined #ruby
<RickHull> what is the question? can you rephrase?
<pwnd_nsfw> Maybe use.. external database manager?
<pwnd_nsfw> like.. phpmyadmin or some ish
<morfin> i need something like "fixtures" for testing
<pwnd_nsfw> That's where fixtures are .. in your test suite
cadillac_ has joined #ruby
<morfin> in first test i create uid(metrics) and look for response, but in other tests i should not depend on functionality i test(it's opentsdb thing)
coderphive has quit [Quit: coderphive]
<pwnd_nsfw> I think you're looking for stubbing out
<pwnd_nsfw> methods
<pwnd_nsfw> what are you using for your testing software?
greenbagels has quit [Read error: Connection reset by peer]
<pwnd_nsfw> if you don't say rspec
nopolitica has quit [Ping timeout: 255 seconds]
<pwnd_nsfw> I can't really help lol
ramfjord has joined #ruby
<morfin> i use "real" database instead of stubbing
greenbagels has joined #ruby
<RickHull> your tests should strive to be independent. a later test should not depend on state set up by a prior test
<pwnd_nsfw> which is why stubbing works
<pwnd_nsfw> you should try to not hit the database during tests anyways, like, as much as you can anyways
<morfin> well, this is very special case)
<RickHull> that's what they all say ;)
<pwnd_nsfw> lel
<pwnd_nsfw> I wish Atom wasn't so slow
<teatime> wouldn't you only want to stub things that are very hard to have just working normally? if it's easy enough to run a local database and load test data in it, for example, you wouldn't want to stub database-interaction
<morfin> that's a question - how i load data
<pwnd_nsfw> you want to stub all things that take time..
<matthewd> If you're qualified to determine that your needs are unique and require a unique solution, you're qualified to implement it without advice from us.
milardovich has quit [Ping timeout: 255 seconds]
Guest5847 is now known as maxmanders
<teatime> I'm just saying, it's added work + added complexity = additional places for mistakes to creep in / coverage to be accidentally poor
<pwnd_nsfw> matthewd, that's a bit much to say lol
ramfjord has quit [Ping timeout: 248 seconds]
<pwnd_nsfw> morfin, seed data
<teatime> so avoid until needed / has significant benefits?
Beams has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
<matthewd> It's XY's uglier cousin: "I'm wilfully choosing an extraordinary approach to solve my problem.. but while I've decided it's the only solution for me, I don't actually know how to do it, so please help"
jenrzzz has joined #ruby
<morfin> well, i need somehow load data before tests with rspec
claudiuinberlin has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
<matthewd> At least a true XY is an accidental fixation, not deliberate
<morfin> nothing else
<Burgestrand> morfin there's a `before(:suite)` (:all?) option that allows you to modify to your hearts content
<Burgestrand> morfin if you ensure that all your tests run within a transaction you can be fairly confident in that you don't leak between your tests
<matthewd> So, fixtures
<morfin> as i said i clean database before every test
milardovich has quit [Ping timeout: 260 seconds]
<morfin> data + all metrics, tagk, tagv
jenrzzz has quit [Ping timeout: 255 seconds]
<Burgestrand> morfin Is the data different for every test?
<morfin> yes
<matthewd> Factories, then
tvw has joined #ruby
<morfin> but how would i load data with factories?
ramfjord has joined #ruby
<matthewd> You create the records you need in one of the before blocks
<morfin> hmm
<morfin> i think i would need custom factory
<Burgestrand> morfin there are gems to help you, I've used machinist in the past, I know factory_girl is common too
ramfjord has quit [Ping timeout: 248 seconds]
greenbagels has joined #ruby
<morfin> i was thinking what if i import "dump" instead since there is no need to access "separate" record
alfiemax has quit [Remote host closed the connection]
<matthewd> A separate dump for each spec? :/
<Burgestrand> That's a lot of dump!
<Burgestrand> … perhaps even a number of dumplings!
alfiemax has joined #ruby
rfoust has quit [Remote host closed the connection]
<morfin> maybe i can use same data instead of different
blackmesa has joined #ruby
<morfin> hmm
rfoust has joined #ruby
Guest33209 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
<matthewd> The key difference in the approaches is that with fixtures, you build a small but representative database, then use that content for as much of your tests as you can; with factories, each spec builds just the handful of objects it actually needs to make its assertion pass
<morfin> basically there is few methods to test - suggest, exp, delete, query, store, create_uid and request(raw request) and maybe some more(but mostly used are query, exp and store).
GodFather has joined #ruby
marr has joined #ruby
jphase has joined #ruby
Bish has joined #ruby
<Bish> why is | a special char in regex?
<Bish> oh its the fukin or in ()
<Bish> sorry.
<teatime> | is alternation
<teatime> () does grouping, which is useful for alternation; it also does capturing. you can do non-capturing grouping if you only want the grouping for | and the capturing part is messing you up.
<morfin> if you need just | use \|
ramfjord has joined #ruby
<Bish> yeah doesnt quite work, yet
<Bish> i want to parse
<Bish> x || y, and sometimes x | y
<Bish> /([A-z]+)(?:\s*)(|){1,2}([^|]+)/
<Bish> currenct aproach
ur5us has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 258 seconds]
troulouliou_div2 has quit [Quit: Leaving]
<Bish> >> "test||yopigogagigu".scan(/([A-z]+)(?:\s*)(||)(?:\s*)(.*)/)
<Bish> >> "test||yopigogagigu".scan(/([A-z]+)(?:\s*)(||)(?:\s*)(.*)/)
<ruby[bot]> Bish: # => [["test", "", "||yopigogagigu"]] (https://eval.in/875031)
<teatime> you need \| is all
<teatime> also you probably want [A-Za-z] instead of [A-z]
<Bish> yes, looks like it, but the (\|){1,2} didnt work :/
<Bish> why doesnt it?
<Bish> >> "test||yopigogagigu".scan(/([A-z]+)(?:\s*)(\|){1,2}(?:\s*)(.*)/)
<ruby[bot]> Bish: # => [["test", "|", "yopigogagigu"]] (https://eval.in/875035)
<morfin> as i said if want character | use \|
<Bish> im doing that. as you can see
<matthewd> Bish: You want (\|{1,2})
<Bish> oh, okay.
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 258 seconds]
<Bish> thanks, is there a difference between A-z and A-Za-z
<morfin> >> "test||yopigogagigu".scan(/([A-z]+)(?:\s*)(\|{1,2})(?:\s*)(.*)/)
<matthewd> There are a bunch of ASCII characters between Z and a, so yes
<ruby[bot]> morfin: # => [["test", "||", "yopigogagigu"]] (https://eval.in/875041)
<matthewd> You might just want something like \w though -- or use a-z and /i
<morfin> if i use same data but several times should i seed before every test?
<teatime> >> "test||yopigogagigu".match(/^(\w+)\s*(\|{1,2})\s*(\w+)$/)
<Bish> its not a beginning of the lin
<Bish> e
<morfin> as example when i test removal of data etc i alter database
<teatime> ok well even so, your non-capturing groups are not doing anything just extra chars
<teatime> and what matthewd said about \w maybe being what you want
<morfin> so i will need to start over from blank test database
<matthewd> morfin: If you use fixtures, they should get loaded automatically, and automatically reset to the initial state for each test
<morfin> hmm
Burgestrand has quit [Quit: Closing time!]
<morfin> i do not understand how write fixtures for such database
blackmesa has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
<morfin> because i just need to delete everything and import dump before every test
<Bish> what does \w actually include
<Bish> "googles"
<matthewd> I would hope that whatever your DB interface layer is, would take care of that for you. But maybe I'm expecting too much of it :/
<morfin> take care of what?
<morfin> there is no transactions
<matthewd> Fixture management, however that's best implemented against the relevant datastore
claudiuinberlin has joined #ruby
<morfin> what i do right now: http://paste.ubuntu.com/25684917/
<Bish> matthewd: sorry, didnt listen, take care of what?
<matthewd> Bish: Sorry, that was for morfin
<Bish> i know, just wanted to know, ORMs are my passion
<Bish> because i hate sql
alfiemax has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
<morfin> it's not SQL thing, opentsdb as i said stores timestamp, value, values are assigned to metrics, also they can has one or multiple tagk(key) and tagv(value)
ramfjord has joined #ruby
<matthewd> Fixtures & OpenTSDB
<morfin> i don't think that would work )
<Bish> i do not even know what that is :D
<matthewd> morfin: So yeah, this is the sort of thing I would hope you didn't need to do manually. But if you do, then so be it ¯\_(ツ)_/¯
<Bish> i see more and more russians in irc
<Bish> how does that come :o
<Bish> morfin: you are russian right?
<morfin> idk, i was here a long time )
<morfin> yeah
<Bish> haha, your ) gave it away
<morfin> ...
* morfin remembers somebody told me that before
<Bish> not even kidding smiley without )) ⇒ 99% russian
<Bish> without :*
cdg has joined #ruby
<morfin> OpenTSDB works on top of HBase
<Bish> gotta google that up
<morfin> it just provide functionality to organize values in HBase using timestamps/metrics/tags
nopolitica has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
ferr has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
nopolitica has quit [Ping timeout: 248 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> matthewd, so just load data, clean after test and that's it?
<matthewd> Yeah, I guess so. It's not gonna be fast, though.
guille-moe has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has quit [Read error: Connection reset by peer]
kies has joined #ruby
adlerdias has joined #ruby
claudiuinberlin has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
charliesome has quit [Client Quit]
adlerdias has left #ruby [#ruby]
bruno- has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
ta has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
FahmeF_ has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
FahmeF has quit [Ping timeout: 246 seconds]
FahmeF has joined #ruby
rgr_ has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
FahmeF_ has quit [Ping timeout: 258 seconds]
rgr has quit [Ping timeout: 258 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
Silthias1 has joined #ruby
workmad3 has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
_aeris_ has quit [Remote host closed the connection]
rrichardsr3 has quit [Quit: He who dares .... wins.]
ta has joined #ruby
_aeris_ has joined #ruby
ramfjord has joined #ruby
ta has quit [Remote host closed the connection]
uZiel has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
quobo has joined #ruby
nopolitica has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
tcopeland has quit [Quit: tcopeland]
FahmeF has quit [Remote host closed the connection]
Burgestrand has joined #ruby
ur5us has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aufi has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
tsglove2 has quit [Ping timeout: 260 seconds]
guille-moe has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
ur5us has quit []
claudiuinberlin has joined #ruby
nowhereman has quit [Ping timeout: 255 seconds]
aufi has joined #ruby
jphase has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
apparition47 has joined #ruby
<Bish> ĥow would u parse something like
<Bish> ((1,2,3),(1,2),(3,4))
<Bish> n-tuples array
<Bish> so to say.
<teatime> support arbitrary nesting?
ltd has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
GodFather_ has joined #ruby
ltd has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 255 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltd has quit [Quit: leaving]
ltd has joined #ruby
nopolitica has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
adlerdias has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
nopolitica has quit [Ping timeout: 255 seconds]
adlerdias has quit [Client Quit]
tcopeland has joined #ruby
adlerdias has joined #ruby
rgr_ has quit [Quit: rgr_]
GodFather__ has joined #ruby
ltd has quit [Ping timeout: 248 seconds]
ltd has joined #ruby
ta has joined #ruby
eb0t is now known as def_jam
eblip is now known as eb0t
ldnunes has joined #ruby
GodFather_ has quit [Ping timeout: 246 seconds]
ElDoggo has joined #ruby
ta has quit [Remote host closed the connection]
rahul_bajaj has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ltd has quit [Client Quit]
ltd has joined #ruby
rabajaj has quit [Ping timeout: 255 seconds]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
kristofferR has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ta has joined #ruby
TomyLobo has joined #ruby
rabajaj has joined #ruby
ta has quit [Remote host closed the connection]
rahul_bajaj has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
<Bish> teatime: no it wont get more complicated than that
<Bish> an array of tuples
<Bish> n-tuples
<Bish> no nesting
<Bish> so no tuple in a tuple
greenbagels has quit [Read error: Connection reset by peer]
<morfin> hmm
<morfin> replace all ( with [ and ) with ] and parse JSON?
<morfin> *some stupid idea*
greenbagels has joined #ruby
<Bish> morfin: just had that idea too :D
<Bish> well the numbers might be strings.. that would not make it impossible to have it as json
<Bish> but still i wouldve to add "
bronson has joined #ruby
mim1k has joined #ruby
<tamouse__> something weird like pipe it out to python for interpretation as actual tuples then back in as a ruby array of arrays..... nevermind
<morfin> >> JSON.parse("((1,2,3), (6,7))".gsub(/[()]/, '(' => '[', ')' => ']'))
<ruby[bot]> morfin: # => uninitialized constant JSON (NameError) ...check link for more (https://eval.in/875214)
<morfin> zzz
<morfin> >> require 'json'; JSON.parse("((1,2,3), (6,7))".gsub(/[()]/, '(' => '[', ')' => ']'))
<ruby[bot]> morfin: # => [[1, 2, 3], [6, 7]] (https://eval.in/875215)
bronson has quit [Ping timeout: 255 seconds]
<morfin> i assume you may need map over array to map over inner arrays to to_i
<Bish> i could write a neural network that figures out how to built ruby arrays(in memory) with brainfuck
mim1k has quit [Ping timeout: 240 seconds]
<tamouse__> weekend is coming up, Bish
<morfin> i have 3 hours until my workday ends
<Bish> im a slave
<morfin> lol
<Bish> but i play stellaris at work
<Bish> so thats okay
<Bish> what would be another approach without json?
snickers has joined #ruby
<Bish> tokenize and walk over it recursively?
<morfin> probably
tsglove2 has joined #ruby
<morfin> use LisP?
tsglove3 has joined #ruby
<tamouse__> elegant weapons for a more civilised age
jphase has joined #ruby
<Bish> i like lisp but well im in ruby here.
<Bish> also ruby is not really a language
<Bish> eahh lisp
<Bish> its just.. brackets
<Bish> kinda like what i am trying to parse
<tamouse__> every language devolvs to lisp anyway
<tamouse__> might as well embrace it
<Bish> what do you mean "devolvs"
rabajaj has quit [Quit: Leaving]
<tamouse__> nothing
<Bish> eh?
tsglove2 has quit [Ping timeout: 240 seconds]
<tamouse__> i'm looking for the quote
mim1k has joined #ruby
tsglove3 has quit [Ping timeout: 248 seconds]
tsglove3 has joined #ruby
<tamouse__> greenspun's tenth rule: any sufficiently complicated C or Fortran program contains an ad hoc informally-specified bug-ridden slow implementation of half of Common Lisp.
<morfin> Bish, look at this
mim1k has quit [Ping timeout: 240 seconds]
<morfin> >> "((1,2,3),(6,7))".split('),').collect{|x| x.gsub(/[()]/, '').split(',').map(&:to_i)}
<ruby[bot]> morfin: # => [[1, 2, 3], [6, 7]] (https://eval.in/875236)
<morfin> no idea how do i get rid of ( and )
<morfin> so i just removed them )
hs366 has quit [Quit: Leaving]
<Bish> wow thats good morfin
<Bish> thanks
<Bish> NO ITS NOT
<Bish> or wait. is it?
<Bish> that smean
<Bish> i thought it was good
<Bish> nvm, wait what.
<Bish> that really works
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nopolitica has joined #ruby
chouhoulis has joined #ruby
mim1k has joined #ruby
truenito has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
rwb has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
niklasb has left #ruby [#ruby]
adlerdias has left #ruby [#ruby]
claudiuinberlin has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
mim1k has quit [Ping timeout: 248 seconds]
<tamouse__> >> "( (a, b, c), (d , e), (1, 2) ) ".scan(/\(([^\(\)]+)\)/).flatten.map{|x| x.split(/,/).map(&:strip)}
<ruby[bot]> tamouse__: # => [["a", "b", "c"], ["d", "e"], ["1", "2"]] (https://eval.in/875242)
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShalokShalom_ has joined #ruby
bmurt has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
greenbagels has joined #ruby
guardian has joined #ruby
<guardian> hello, I have a beginner question
<guardian> I have foo(*bars) that takes an undefined number of parameters
<guardian> and I found myself trying to do def foo(*bars, params = {})
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<guardian> which obviously doesn't work
<guardian> what's the usual way to solve this?
ShalokShalom has quit [Ping timeout: 240 seconds]
<Bish> guardian: def foo(*bar,**s)
<guardian> I don't think I understand what it does
<Bish> you can have the named parameters in a keyword hash
mson has joined #ruby
<Bish> guardian: do you know the "name:" calling convention?
bokayio has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
<guardian> yep starting with Ruby 2.3 right?
<guardian> but foo(*bar, **s) I don't get it
<Bish> yes, if youre using that one.. you can get an hash of those
<Bish> with **something
<Bish> just like you get *args with a single *
fmcgeough has joined #ruby
<Bish> and btw, why shouldnt what you do work?
<Bish> it does.. just tested
nopoliti1 has joined #ruby
<guardian> SyntaxError: (irb):7: syntax error, unexpected '=', expecting ')'
<guardian> when trying to def foo(*bar, params = {})
nopolitica has quit [Ping timeout: 248 seconds]
<guardian> running ruby 2.4.2
<guardian> p198
<tamouse__> guardian: `def foo(*bars, **params)`
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tamouse__> if you don't pass any keyworded args, params ends up as {}
ramfjord has joined #ruby
<guardian> so def foo(*bars, **params) is the new Ruby 2.3 syntax right?
<tamouse__> yes
<guardian> and there's no way if targetting Ruby < 2.3 correct?
<tamouse__> there is a way to get something similar prior to that
<tamouse__> you check if the last *bars is a Hash, pop it off and treat it as **params
<guardian> k
<guardian> I prefer the new way obviously
<tamouse__> so say we all
<guardian> so likely, post Ruby 2.3 people don't write params = {} style anymore?
<tamouse__> not if you're splatting args
<morfin> huh?
<tamouse__> if you're using explicit args, you can still do that just fine
claudiuinberlin has joined #ruby
harfangk has quit [Ping timeout: 255 seconds]
<Bish> guardian: i tried def z(*a,b={})
<Bish> and it works like a charm
<morfin> hm weird
<Bish> if i give it 1,2,3,{test:3} as parameter
ramfjord has quit [Ping timeout: 240 seconds]
<morfin> ruby bot can't handle PM?
<Bish> it just works :o
<morfin> :(
<Bish> oh it seems like you cannot give default values then
<Bish> >> def z(*a,b);p [a,b];end;z(1,2,3)
<ruby[bot]> Bish: # => [[1, 2], 3] ...check link for more (https://eval.in/875258)
<Bish> >> def z(*a,b=4);p [a,b];end;z(1,2,3)
<ruby[bot]> Bish: # => /tmp/execpad-92bef5413852/source-92bef5413852:2: syntax error, unexpected '=', expecting ')' ...check link for more (https://eval.in/875260)
<Bish> odd
<Bish> looks like you cannot have default values after *args
<Bish> because of the ambiguity maybe
ltd has quit [Quit: Changing server]
<morfin> why not use syntax
workmad3 has quit [Ping timeout: 255 seconds]
<morfin> >> def test(*args, foo: "bar") puts *args.to_s + " " + foo end test 1,2,3
<ruby[bot]> morfin: # => /tmp/execpad-ad1955a36738/source-ad1955a36738:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/875272)
<morfin> oops
ltd has joined #ruby
<morfin> >> def test(*args, foo: "bar") puts *args.to_s + " " + foo end; test 1,2,3
<ruby[bot]> morfin: # => [1, 2, 3] bar ...check link for more (https://eval.in/875273)
<morfin> >> def test(*args, foo: "bar") puts *args.to_s + " " + foo end; test 1,2,3, foo: "baz"
<ruby[bot]> morfin: # => [1, 2, 3] baz ...check link for more (https://eval.in/875274)
ryandevilla has joined #ruby
<morfin> see?
<tamouse__> how would you do that if you didn't have explicit keywords?
<morfin> what do you mean?
<tamouse__> i think that ends up being just `def foo(*args, **keyword)`
<tamouse__> doesn't it?
alfiemax has joined #ruby
ryandevilla has quit [Ping timeout: 240 seconds]
ta has joined #ruby
<tamouse__> effectively, it's something like: `def foo(args=[], keywords={})`
<tamouse__> just easier calling syntax
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
mim1k has joined #ruby
cdg_ has joined #ruby
simmaniac has joined #ruby
tamouse__ has quit [Ping timeout: 255 seconds]
naftilos76 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
greenbagels has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
sysvalve has quit [Ping timeout: 240 seconds]
greenbagels has joined #ruby
workmad3 has joined #ruby
John___ has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
nowhereman has joined #ruby
simmaniac is now known as sysvalve
nowhereman has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
alfiemax has quit [Remote host closed the connection]
rwb has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
ltd has quit [Quit: leaving]
DLSteve_ has joined #ruby
ltd has joined #ruby
ltd has quit [Client Quit]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
John___ has quit [Read error: Connection reset by peer]
ltd has joined #ruby
ltd has quit [Client Quit]
ltd has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
greenbagels has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
greenbagels has joined #ruby
ltd has quit [Quit: leaving]
ltd has joined #ruby
aupadhye has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
yeticry_ has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
ltd has quit [Quit: leaving]
ltd has joined #ruby
ryandevilla has joined #ruby
ryandevilla has quit [Client Quit]
mim1k has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
orbyt_ has quit [Client Quit]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
jrafanie has joined #ruby
rippa has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
Rapture has joined #ruby
Rapture has quit [Client Quit]
smelnicki has joined #ruby
__Yiota has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
AgentVenom has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
claudiuinberlin has joined #ruby
orbyt_ has joined #ruby
ptx0_ is now known as ptx0
naftilos76 has quit [Ping timeout: 240 seconds]
conta has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
conta2 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
cpruitt has quit [Quit: cpruitt]
claudiuinberlin has quit [Client Quit]
ResidentBiscuit has joined #ruby
claudiuinberlin has joined #ruby
npgm has joined #ruby
podman[USC] is now known as podman
ana_ has quit [Quit: Leaving]
sylario has joined #ruby
ElDoggo has joined #ruby
mim1k has joined #ruby
ta has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 255 seconds]
ElDoggo has quit [Remote host closed the connection]
coderphive has joined #ruby
cpruitt has joined #ruby
coderphive has quit [Client Quit]
sepp2k has joined #ruby
Technaton has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
ElDoggo has joined #ruby
Technaton has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
r7c has quit [Quit: Leaving]
nofxx has joined #ruby
ElDoggo has quit [Remote host closed the connection]
FahmeF has joined #ruby
ta has quit [Ping timeout: 258 seconds]
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
FahmeF has quit [Ping timeout: 248 seconds]
shakes has joined #ruby
holgerdanske has joined #ruby
phaul has quit [Ping timeout: 248 seconds]
<holgerdanske> Any of you rubyists familiar with a time clock gem that would be relatively easy to tell to populate a Quickbooks database with time stamp entries?
govg has quit [Ping timeout: 255 seconds]
nofxx has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 240 seconds]
greenbagels has quit [Ping timeout: 255 seconds]
nowhere_man has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
bwilson has quit [Quit: bwilson]
claudiuinberlin has joined #ruby
FrostCandy has joined #ruby
phaul has joined #ruby
nofxx has joined #ruby
Neptu has quit [Quit: ZNC - http://znc.in]
ElDoggo has joined #ruby
claudiuinberlin has quit [Client Quit]
greenbagels has joined #ruby
claudiuinberlin has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
shakes has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
jinie has quit [Ping timeout: 255 seconds]
nopoliti1 has quit [Ping timeout: 240 seconds]
greenbagels has joined #ruby
jinie has joined #ruby
gizmore|2 is now known as gizmore
conta2 has quit [Ping timeout: 248 seconds]
andikr has quit [Remote host closed the connection]
cschnei__ has joined #ruby
phaul has quit [Ping timeout: 255 seconds]
spt0 has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
cagomez has joined #ruby
shakes has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamouse__ has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
spt0 has joined #ruby
claudiuinberlin has joined #ruby
tamouse__ has quit [Ping timeout: 258 seconds]
John___ has joined #ruby
ozcanesen has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Remote host closed the connection]
simmaniac has joined #ruby
milardovich has joined #ruby
spt0 has quit [Ping timeout: 258 seconds]
zautomata has quit [Quit: WeeChat 1.4]
sysvalve has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby
^mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
nankyokusei has quit []
nadir has quit [Quit: Connection closed for inactivity]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
milardovich has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.9.1]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
rrichardsr3 has joined #ruby
ta has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
_aeris_ has quit [Write error: Connection reset by peer]
_aeris_ has joined #ruby
nofxx has joined #ruby
apparition47 has quit [Quit: Bye]
cdg has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Leaving]
claudiuinberlin has joined #ruby
Neptu has joined #ruby
bwilson has joined #ruby
cdg has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eroux has joined #ruby
claudiuinberlin has quit [Client Quit]
smelnicki has quit [Remote host closed the connection]
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
nankyokusei has joined #ruby
__Yiota has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
claudiuinberlin has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
nopoliti1 has joined #ruby
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #ruby
bwilson has quit [Quit: bwilson]
nofxx has joined #ruby
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
selim has quit [Ping timeout: 240 seconds]
nopoliti1 has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
selim has joined #ruby
PettanShoutaKun has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
<PettanShoutaKun> is there away in ruby to do like... do_the_thing if conditional
<PettanShoutaKun> like with the if statement after thhe fact?
<go|dfish> yes
SeepingN has joined #ruby
<PettanShoutaKun> nice!
phaul has joined #ruby
orbyt_ has joined #ruby
amirite has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
thomasv314 has joined #ruby
raynold has joined #ruby
theRealGent has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
Beams has quit [Quit: .]
gusrub has joined #ruby
jtdowney has quit [Ping timeout: 252 seconds]
gusrub has quit [Client Quit]
mikecmpbll has joined #ruby
gusrub has joined #ruby
dionysus69 has joined #ruby
lagweezle_away is now known as lagweezle
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
troys has joined #ruby
RickHull has joined #ruby
nankyokusei has quit []
newcoder has joined #ruby
newcoder has left #ruby [#ruby]
thinkpad has quit [Ping timeout: 258 seconds]
agimenez has joined #ruby
mark_66 has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
milardovich has joined #ruby
simmaniac has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
emulator4 has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
emulator3 has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
motstgo has quit [Ping timeout: 240 seconds]
moei has joined #ruby
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
fmcgeough has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
fmcgeough has joined #ruby
milardovich has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
eckhardt has joined #ruby
jenrzzz has joined #ruby
coderphive has joined #ruby
nopoliti1 has joined #ruby
coderphive has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
nopoliti1 has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
rakm has joined #ruby
someuser has quit [Ping timeout: 240 seconds]
PettanShoutaKun has quit [Ping timeout: 260 seconds]
shakes has quit [Ping timeout: 240 seconds]
Sembei has joined #ruby
mim1k has joined #ruby
Guest97372 has joined #ruby
blackmesa has joined #ruby
wald0 has joined #ruby
Pisuke has quit [Ping timeout: 258 seconds]
Luyt_ has joined #ruby
Luyt has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
bronson has joined #ruby
DTZUZU has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby
charliesome has quit [Ping timeout: 246 seconds]
zachk has joined #ruby
gusrub has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Neptu has quit [Quit: ZNC - http://znc.in]
kies has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
amirite has quit [Remote host closed the connection]
amirite has joined #ruby
imode has joined #ruby
ShalokShalom_ is now known as ShalokShalom
__Yiota has joined #ruby
ta has joined #ruby
ivanskie has joined #ruby
ta has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
nopoliti1 has joined #ruby
simmaniac has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cschnei__ has quit [Remote host closed the connection]
nofxx has joined #ruby
cschneid_ has joined #ruby
Cohedrin_ has joined #ruby
claudiuinberlin has joined #ruby
nopoliti1 has quit [Ping timeout: 255 seconds]
holgerdanske has quit [Remote host closed the connection]
agimenez has quit [Ping timeout: 255 seconds]
tamouse__ has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
nb_bez_______ has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
tamouse__ has quit [Ping timeout: 264 seconds]
theRealGent has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
nadir has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
MyMind has joined #ruby
Bock has quit [Ping timeout: 248 seconds]
Sembei has quit [Ping timeout: 255 seconds]
ta has joined #ruby
ta has quit [Client Quit]
rakm has joined #ruby
SubaruSVX has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kies has joined #ruby
zarubin has quit [Ping timeout: 248 seconds]
zarubin has joined #ruby
nofxx has joined #ruby
jenrzzz has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
DTZUZO has joined #ruby
amirite has quit [Ping timeout: 240 seconds]
amirite has joined #ruby
ta has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
chouhoulis has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa1 has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
blackmesa has joined #ruby
jphase has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
nofxx has quit [Read error: Connection reset by peer]
nopoliti1 has joined #ruby
nofxx has joined #ruby
cschneid_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
John___ has quit [Ping timeout: 248 seconds]
ta has quit [Quit: Leaving...]
nopoliti1 has quit [Ping timeout: 255 seconds]
sagax has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
truenito has quit [Remote host closed the connection]
troys is now known as troys_
Didac has quit [Changing host]
Didac has joined #ruby
truenito has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Luyt_ has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
Luyt has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
cagomez has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
oetjenj has quit [Client Quit]
bak1an has joined #ruby
imode has quit [Quit: WeeChat 1.9.1]
John___ has joined #ruby
wald0 has quit [Quit: Lost terminal]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 240 seconds]
tamouse__ has joined #ruby
amirite has quit [Ping timeout: 260 seconds]
Danishman has joined #ruby
bronson has quit [Remote host closed the connection]
tamouse__ has quit [Quit: Lost terminal]
bronson has joined #ruby
tcopeland has quit [Quit: tcopeland]
jphase has quit [Remote host closed the connection]
weaksauce has joined #ruby
edward_ has joined #ruby
tcopeland has joined #ruby
dionysus69 has joined #ruby
mostlybadfly has joined #ruby
truenito has quit [Ping timeout: 240 seconds]
nopoliti1 has joined #ruby
phaul has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
nopoliti1 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkali has joined #ruby
rrichardsr3 has joined #ruby
sepp2k has quit [Quit: Leaving.]
kliq has joined #ruby
__Yiota has joined #ruby
phaul has joined #ruby
enterprisey has joined #ruby
bronson has quit [Remote host closed the connection]
mkali has left #ruby [#ruby]
nb_bez_______ has quit [Quit: Connection closed for inactivity]
jphase has joined #ruby
agent_white has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
rakm has joined #ruby
dinfuehr has joined #ruby
cagomez has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
jphase has quit [Ping timeout: 258 seconds]
rwb has quit [Ping timeout: 248 seconds]
ResidentBiscuit has quit [Ping timeout: 255 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
eckhardt has joined #ruby
coderphive has joined #ruby
mson has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
coderphive has quit [Ping timeout: 248 seconds]
_aeris_ has quit [Remote host closed the connection]
cadillac__ has joined #ruby
sepp2k has joined #ruby
cadillac_ has quit [Ping timeout: 255 seconds]
cadillac__ is now known as cadillac_
troulouliou_div2 has joined #ruby
kliq has quit [Quit: Leaving]
_aeris_ has joined #ruby
kliq has joined #ruby
FrostCandy has quit []
dionysus69 has quit [Ping timeout: 240 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> soliciting feedback on https://github.com/rickhull/ballistics -- particularly if you have strong opinions regarding C extensions
Joufflu has joined #ruby
kliq has quit [Ping timeout: 240 seconds]
<teatime> RickHull: hmm, interesting for sure.
<RickHull> the README needs a lot of fleshing out, but poke around examples/ then lib/ and test/
<RickHull> oh, and ext/ of course
<teatime> one small question; you vendor gnu_ballistics.h, how come you don't just include whatever one is installed on the system ?
<RickHull> interesting question -- it's almost certainly nonexistent on any given system
<teatime> oh wait... is the whole library in the .h ?
<RickHull> yeah, i'm working on that bit -- I inherited that decision
<teatime> oh, well ok then
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<teatime> I was thinking there was a .o/.so expected to be installed
<RickHull> my plan is to keep function declarations in the .h, along with one-liner function definitions
<RickHull> there are many things I don't like about the C stuff, but I'm also relatively uninformed about the proper way to do C stuff
<teatime> any examples?
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<teatime> I know slightly more about C than I do about Ruby lol
<RickHull> it would be the blind leading the blind, I fear
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
<teatime> lol
<RickHull> what I inherited was a the C lib defined entirely in a .h file
<teatime> lucky for you it's only 500 lines
<RickHull> plus the ext portion, which is the bridge to ruby land
thomasv314 has joined #ruby
<RickHull> interestingly, the ext portion included significant functionality, not just wrapping
<RickHull> and I think it was somewhat of a duplication of the underlying C lib functionality
<RickHull> I believe this was in order to return a ruby-like-C-object
<RickHull> and I'm not sure it was the right approach
<teatime> have you considered a pure ruby port? :)
<RickHull> if you go back to my first commit, it was the original ballistics gem, as copied into an empty git repo
<RickHull> I'm interested in a pure ruby port academically, but this is heavy maths stuff which deserves a more performant basis
<teatime> perhaps
<RickHull> I would probably use Crystal for a pure port
<RickHull> I'm also interested if mruby would be useful for pure port
thomasv3_ has joined #ruby
morfin has quit []
simmaniac is now known as sysvalve
jenrzzz has quit [Ping timeout: 240 seconds]
thomasv314 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparr has quit [Changing host]
sparr has joined #ruby
rwb has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
kliq has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
sepp2k has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasv3_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
biberu has quit []
amirite has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
mim1k has joined #ruby
tcopeland has quit [Quit: tcopeland]
mim1k has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
John___ has quit [Ping timeout: 240 seconds]
sysvalve has quit [Quit: Leaving]
John___ has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
gnufied has quit [Ping timeout: 255 seconds]
ta has joined #ruby
mjolnird has quit [Quit: Leaving]
ta has quit [Client Quit]
blackmesa has joined #ruby
phaul has quit [Ping timeout: 255 seconds]
ycyclist has joined #ruby
nofxx has quit [Disconnected by services]
nofxxx has joined #ruby
enterprisey has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
rakm has joined #ruby
nopoliti1 has joined #ruby
iszak has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
nopoliti1 has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has joined #ruby
charliesome has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
DTZUZO has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
amirite has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
tcopeland has joined #ruby
ldnunes has quit [Quit: Leaving]
troulouliou_div2 has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
amirite has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
kliq has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
foxxx0 has quit [Quit: WeeChat 1.9.1]
foxxx0 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
guille-moe has quit [Ping timeout: 248 seconds]
thomasv314 has joined #ruby
pecan_ has joined #ruby
<pecan_> Is it a good idea using rvm as sudo?
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> pecan_: No, not usually.
<havenwood> pecan_: What are you trying to do?
troys_ is now known as troys
<pecan_> havenwood: I want to install Vagrant on Gentoo
<havenwood> pecan_: RVM ships a `rvmsudo` command.
<havenwood> Plain `sudo` will drop env and bork RVM but the `rvmsudo` command preserves RVM env
jenrzzz has quit [Ping timeout: 260 seconds]
<pecan_> I've installed rvm and system Ruby. Is it proper?
<havenwood> pecan_: It's fine to have both. I don't know if you actually need both.
<pecan_> System Ruby is required to working some of packages.
<pecan_> vim uses system Ruby
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
<matthewd> I would expect there to be a Vagrant package you could install, and completely ignore what language Vagrant is allegedly written in
<RickHull> yes, vagrant install should not require rvm
nopoliti1 has joined #ruby
<pecan_> I want to install Vagrant on Gentoo
<RickHull> on debian it was `apt install vagrant`
<pecan_> Vagrant shouldn't be installed through package managers
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> based on?
jenrzzz has joined #ruby
<pecan_> Look at "Caveats"
<pecan_> I'm unsure if compiling from sources Vagrant and installing it by "bundle install" on Gentoo is a good idea
nerium has joined #ruby
<RickHull> I would start with the Gentoo version of vagrant, i.e. native package
<RickHull> if you run into issues, doubtful, then consider the nuclear option
<teatime> pecan_: to answer your original question, I don't think you have any reason to want to run any of those tools as root
<RickHull> those caveats make sense from hashicorp's perspective -- they can't support gentoo's version
<matthewd> I think you want #vagrant
<RickHull> yeah, check with #vagrant
<pecan_> They supports CentOS, Debian, Mac OS X and Windows
<RickHull> in general, if you are installing "by hand", you would want to do all your building as non-root, then just copy the needed binaries into place with root privileges as necessary
<pecan_> #vagrant channel is empty
<RickHull> it's a mistake to run the whole build pipeline as root, just because the binaries want to live in a privileged dir
<teatime> RickHull: I don't think that applies in this situation at all
<pecan_> Nothing traffic on #vagrant
<matthewd> That doesn't make us any more capable of providing support for their software
<RickHull> teatime: i am talking about the equivalent of `make; sudo make install`
thinkpad has joined #ruby
gma has joined #ruby
<pecan_> I've error http://paste.asie.pl/rbN1
<RickHull> but yeah, I'm kind of stabbing :)
<teatime> RickHull: there's not build so much as 1) setup an install of a recent version of ruby, in your homedir, 2) install a bunch of gems or whatever, in your homedir / in the rvm "virtualenv" or whatever it calls it
<teatime> and eventually N) run the application, as your user
<RickHull> i don't think you need or want root at all, in that case
eckhardt has joined #ruby
<RickHull> but if you want vagrant installed "on your system" you do need to copy to a privileged dir
<RickHull> I still suggest to use Gentoo's vagrant, and only escalate from there as needed
<teatime> pecan_: religiously *not* running tools like rvm, gem, bundle, pip, npm, etc. is a handy way to ensure they don't bork anything about your system-installed $language, which you generally want to keep under the management of your distro's package management instead
<teatime> </experienced-sysadmin-but-ruby-n00b-speaking
__Yiota has joined #ruby
<teatime> oh + "as root"
<RickHull> yeah, there are 2 basic approaches: 1. build and install in unprivileged userland 2. install a package as root
<RickHull> these are generally reliable and uncontroversial. (1) is preferred if it meets your use case, where you don't have other system users who require the installed functionality
ramfjord has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<teatime> ugh at one point I had a really nice dev environment setup that routed all of the gems, python packages, npm crap, perl libs, etc. to the correct places, in general and for per-project libs, and now I have pretty much forgotten all the details of the env vars etc. etc whatever for each tool, and will eventually have to start over on that
<matthewd> We support ruby developers working on ruby code. We do not, and cannot, support full applications that just happen to be written in ruby. (Just as ##c won't help you install Apache.)
eckhardt has joined #ruby
nopoliti1 has quit [Ping timeout: 240 seconds]
<teatime> pecan_: there's quite a bit of relevant stuff in the rvm documentation
Danishman has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
nopoliti1 has joined #ruby
bronson has joined #ruby
<pecan_> I still have error http://paste.asie.pl/rbN1
<pecan_> I emerged vagrant
bwilson has joined #ruby
selim has quit [Ping timeout: 248 seconds]
bwilson has quit [Client Quit]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bwilson has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
Joufflu has quit [Ping timeout: 255 seconds]
selim has joined #ruby
<RickHull> the PKGBUILD (sp?) for vagrant should include that gem, checkpoint
bwilson has quit [Client Quit]
<matthewd> That's probably running the other one you installed earlier. But again, we are not here to support this.
<RickHull> and yeah, you have to be careful about which set of ruby tools is first in PATH
amirite has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> or takes precedence. this can be hairy
thomasv314 has joined #ruby
zachk has quit [Quit: zzz]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
wald0 has joined #ruby
thomasv314 has quit [Client Quit]
mim1k has joined #ruby
thomasv314 has joined #ruby
ta has joined #ruby
MacMeep has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
thomasv314 has quit [Client Quit]
MacMeep has quit [Client Quit]
<pecan_> Is it proper: ruby --version shows ruby 2.2.8p477 (2017-09-14 revision 59906) [x86_64-linux]
<pecan_> but I've /usr/lib64/ruby/site_ruby/2.2.0/rubygems
<pecan_> 2.2.0 and 2.2.8p477 - different versions
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
serhart has quit [Quit: serhart]
serhart has joined #ruby
orbyt_ has joined #ruby
moei has quit [Quit: Leaving...]
ta has quit [Quit: Leaving...]
eckhardt has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
serhart has quit [Client Quit]
serhart has joined #ruby
dviola has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
John___ has quit [Remote host closed the connection]