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
<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]
<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…]
<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]
__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.
<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
<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.
<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?
<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]
<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>
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.
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?
<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`
<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
<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