dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood>
Mr_Tea: I take it this doesn't work yet? It's something of pseudocode?
<havenwood>
Mr_Tea: Consider making `fontset` a constant with: FONT_SET = ...
<havenwood>
Mr_Tea: In #initialize you define a bunch of local variables, and I suspect you actually want instance variables for at least some of those.
<Mr_Tea>
yeah there's some pseudocode in there
<havenwood>
Mr_Tea: Use `warn` instead of `puts` to print to stderr instead of stdout.
<havenwood>
(And also respect warning flags.)
<havenwood>
I'm not sure what all you're using curses for, but if it's just the screen size and getch from the script you can do it with just IO::Console and no gem.
<Mr_Tea>
I suspect the local variables are why the linter was yelling at me about unused variables
<ruby[bot]>
havenwood: # => Inappropriate ioctl for device (Errno::ENOTTY) ...check link for more (https://eval.in/966170)
<havenwood>
Mr_Tea: yeah, no problem with that
<Mr_Tea>
do I need self.memory and so on if I wanna use instance variables
<havenwood>
Mr_Tea: @memory =
<Mr_Tea>
thanks
<havenwood>
Mr_Tea: From other methods you can access that variable with: @memory
<havenwood>
Mr_Tea: Local variables are local to the method in which they were defined.
orbyt_ has joined #ruby
<Mr_Tea>
ruby is just modern smalltalk I love it
<havenwood>
Mr_Tea: Instance variables are visible from other methods in the same instance.
<havenwood>
Mr_Tea: Indeed! :-D
hahuang61 has quit [Ping timeout: 252 seconds]
cagomez has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Puffball has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
konsolebox has joined #ruby
marxarelli is now known as marxarelli|afk
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
hahuang65 has joined #ruby
Mr_Tea has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bodgix has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bodgix has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
TLAXKIT has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 2.0.1]
marr has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
hahuang65 has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
apparition has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
Yzguy has quit [Read error: Connection reset by peer]
starseed0000 has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
yokel has joined #ruby
LiamW has joined #ruby
<LiamW>
im setlocal_OP__WC__0 what does WC stand for?
konsolebox has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
joe_from_maine has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
konsolebox has joined #ruby
\void has quit [Ping timeout: 252 seconds]
joe_from_maine has quit [Ping timeout: 245 seconds]
jcarl43 has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
DTZUZO has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe has quit [Ping timeout: 276 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kapil___ has quit [Quit: Connection closed for inactivity]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
GotHyper has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GotHyper has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dinfuehr has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dinfuehr_ has quit [Ping timeout: 256 seconds]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
emilford has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
n0m4d1c has joined #ruby
workmad3 has joined #ruby
mikhael_k33hl has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
darkhanb has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
n0m4d1c has quit [Remote host closed the connection]
johnny56 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
kies has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
herbmillerjr has joined #ruby
mikhael_k33hl has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
bigblind has quit [Ping timeout: 265 seconds]
marxarelli|afk is now known as marxarelli
<LiamW>
thanks for all the help...
<mikhael_k33hl>
I'm trying to debug my ruby script which uses concurrent-ruby. I'm setting brekapoints via `binding.pry` but it's gibing me an error "before_session hook failed: ThreadError: can't be called from trap context /usr/share/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb:187:in `lock' (see _pry_.hooks.errors to debug)"
bigblind has joined #ruby
mikhael_k33hl has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sylario has quit [Quit: Connection closed for inactivity]
discopatrick has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
keithy has quit [Quit: keithy]
govg has joined #ruby
hahuang61 has joined #ruby
orbyt_ has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
arescorpio has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
bigblind has quit [Ping timeout: 245 seconds]
joe_from_maine has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
karapetyan has quit [Remote host closed the connection]
soniya29 has joined #ruby
soniya29_ has joined #ruby
kies has joined #ruby
fba has quit [Ping timeout: 268 seconds]
raynold has quit [Ping timeout: 265 seconds]
chromis has quit [Ping timeout: 256 seconds]
nadir has quit [Ping timeout: 256 seconds]
bweston92 has quit [Ping timeout: 252 seconds]
chromis has joined #ruby
bweston92 has joined #ruby
nadir has joined #ruby
raynold has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunarkitty7 has quit [Ping timeout: 240 seconds]
lunarkitty7 has joined #ruby
DTZUZO has joined #ruby
syndikate_ has quit [Ping timeout: 252 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
syndikate has joined #ruby
apparition has quit [Quit: Bye]
TLAXKIT has quit [Quit: Leaving]
joe_from_maine has joined #ruby
bigblind has joined #ruby
shinnya has joined #ruby
joe_from_maine has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
mahlon_ has joined #ruby
ski7777 has joined #ruby
mahlon has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 265 seconds]
konsolebox has joined #ruby
rippa has joined #ruby
xenops has joined #ruby
karapetyan has joined #ruby
joe_from_maine has joined #ruby
Gnut has quit [Ping timeout: 260 seconds]
pastorinni has joined #ruby
arescorpio has quit [Quit: Leaving.]
joe_from_maine has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
joe_from_maine has joined #ruby
mikhael_k33hl has joined #ruby
hahuang61 has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
cdg has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
joe_from_maine has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
logoscoder has quit [Ping timeout: 265 seconds]
joe_from_maine has joined #ruby
starseed0000 has joined #ruby
joe_from_maine has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
joe_from_maine has joined #ruby
jamesaxl has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
DTZUZO has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
Yzguy has quit [Ping timeout: 268 seconds]
bigblind has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
joe_from_maine has joined #ruby
DTZUZO has joined #ruby
joe_from_maine has quit [Ping timeout: 260 seconds]
antoniobeyah has joined #ruby
[reed] has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
nadir has joined #ruby
milardovich has joined #ruby
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
LocaMocha has joined #ruby
joe_from_maine has joined #ruby
soniya29 has quit [Ping timeout: 256 seconds]
_aeris_ has quit [Ping timeout: 255 seconds]
soniya29_ has quit [Ping timeout: 268 seconds]
_aeris_ has joined #ruby
karapetyan has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 240 seconds]
soniya29_ has quit [Remote host closed the connection]
soniya29 has quit [Remote host closed the connection]
starseed0000 has quit [Ping timeout: 265 seconds]
karapetyan has quit [Ping timeout: 265 seconds]
joe_from_maine has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
joe_from_maine has quit [Ping timeout: 256 seconds]
troys has quit [Quit: Bye]
joe_from_maine has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
workmad3 has quit [Ping timeout: 268 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
joe_from_maine has quit [Ping timeout: 240 seconds]
bigblind has joined #ruby
joe_from_maine has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
cadillac_ has quit [Ping timeout: 268 seconds]
conta has joined #ruby
cadillac_ has joined #ruby
hahuang61 has joined #ruby
morfin has joined #ruby
joe_from_maine has quit [Ping timeout: 265 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
joe_from_maine has joined #ruby
oleo has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has joined #ruby
ledestin has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
bijan_ has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
MyMind has joined #ruby
alex`` has joined #ruby
shpoont has joined #ruby
amatas has joined #ruby
mtkd has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 240 seconds]
amatas has quit [Ping timeout: 260 seconds]
bijan_ has joined #ruby
joe_from_maine has joined #ruby
schneider has joined #ruby
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
bigblind has quit [Ping timeout: 265 seconds]
hahuang61 has quit [Ping timeout: 276 seconds]
joe_from_maine has quit [Ping timeout: 256 seconds]
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
Papierkorb has joined #ruby
tomphp has joined #ruby
Gnut has quit [Ping timeout: 248 seconds]
ski7777 has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Remote host closed the connection]
willmichael has quit [Ping timeout: 256 seconds]
wojnar has quit [Remote host closed the connection]
milardovich has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
joe_from_maine has joined #ruby
ski7777 has joined #ruby
conta has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 256 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
keithy has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
banisterfiend has joined #ruby
drewmcmillan has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
hahuang61 has joined #ruby
rwb has quit [Ping timeout: 268 seconds]
goatish has joined #ruby
tcopeland has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
rrutkowski has joined #ruby
karapetyan has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
karapetyan has joined #ruby
sylario has joined #ruby
iNs has quit [Quit: probably fiddling... x)]
iNs has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
iNs has quit [Quit: probably fiddling... x)]
iNs has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
mtkd has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
schneider has joined #ruby
aguestuser has quit [Remote host closed the connection]
jnollette has quit [Read error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Remote host closed the connection]
jnollette has joined #ruby
AJA4350 has joined #ruby
_aeris_ has joined #ruby
fba has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
mtkd has quit []
mtkd has joined #ruby
sameerynho has joined #ruby
rikkipitt has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
keithy has quit [Quit: keithy]
rikkipitt has quit [Client Quit]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
GotHyper has quit [Quit: Leaving]
logoscoder has joined #ruby
prutheus has joined #ruby
Emmanuel_Chanel has joined #ruby
<prutheus>
I want to use talib-ruby .... I am on windows with 64bit ruby .... however, I need to install the talib c bindings first ... so i downloaded sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-msvc.zip/download , extracted it to C:\ta-lib and want to build my ruby gem now with gem install talib_ruby -- --with-talib-include=C:\ta-lib\c\include --with-talib-lib=C:\ta-lib\c\lib
<prutheus>
Problem: I get errors: talib.o:talib.c:(.text+0x43): undefined reference to `TA_CallFunc' (and some more)
<prutheus>
any ideas?
willmichael has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
shpoont has joined #ruby
za1b1tsu has joined #ruby
hahuang61 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
aguestuser has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
bigblind has joined #ruby
prutheus has quit [Quit: Page closed]
John_Ivan has joined #ruby
kapil___ has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
shpoont has joined #ruby
LiamW has left #ruby ["WeeChat 2.0.1"]
willmichael has quit [Ping timeout: 256 seconds]
ts__ has quit [Quit: Leaving]
willmichael has joined #ruby
postmodern has quit [Quit: Leaving]
joe_from_maine has joined #ruby
zapata has quit [Read error: Connection reset by peer]
ams__ has quit [Quit: Connection closed for inactivity]
zapata has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
RougeR has quit [Ping timeout: 260 seconds]
joe_from_maine has quit [Ping timeout: 260 seconds]
memo1 has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
Mike11 has joined #ruby
ta_ has quit [Remote host closed the connection]
amatas_ has joined #ruby
amatas_ has quit [Remote host closed the connection]
memo1 has quit [Ping timeout: 256 seconds]
shpoont has joined #ruby
RougeR has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
karapetyan has quit []
wojnar has joined #ruby
ta_ has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
sammi`_ has joined #ruby
hahuang61 has joined #ruby
drewmcmillan has joined #ruby
milardovich has joined #ruby
konsolebox has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
memo1 has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
sammi` has quit [Quit: Lost terminal]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower has joined #ruby
tomphp has joined #ruby
tomphp has quit [Ping timeout: 256 seconds]
mynameisdebian has quit [Ping timeout: 245 seconds]
n13z has quit [Quit: leaving]
ta_ has quit [Remote host closed the connection]
tomphp has joined #ruby
Mike111 has joined #ruby
zapata has quit [Read error: Connection reset by peer]
Mike111 has quit [Max SendQ exceeded]
Mike11 has quit [Ping timeout: 256 seconds]
zapata has joined #ruby
mtkd has quit []
tomphp has quit [Client Quit]
ta_ has joined #ruby
tomphp has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willmichael has joined #ruby
naftilos76 has joined #ruby
giraffe has joined #ruby
tpendragon has joined #ruby
stormpack has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
Ishido has joined #ruby
sagax has quit [Ping timeout: 256 seconds]
r3m has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 260 seconds]
desperek has quit [Ping timeout: 256 seconds]
<ule>
Hey guys
<ule>
I'm trying to think a way to transoform this: ["A/B/C/", "A/B/D/", "A/B/E/", "A/F/G/"] to "A": {"B": {"C", "D", "E"}, "F": {"G"}}
<ule>
basically, path to tree
workmad3 has joined #ruby
<apeiros>
ule: ok. what code do you have so far?
schneider has joined #ruby
<ule>
The code I have so far makes some magic to create that: ["A/B/C/", "A/B/D/", "A/B/E/", "A/F/G/"]
<ule>
:/
<ule>
I'm trying to think on this next step
<lupine>
I scent recursion
<ule>
lupine: exactly, assuming that my input will change dinamically
<ule>
man, I feel so stupid for getting stuck at algorithms like this. It must be basic stuff from CC courses no?
starseed0000 has joined #ruby
banisterfiend has joined #ruby
<apeiros>
ule: maybe start at how you'd transform "A/B/C" on its own
<lupine>
so you've got a function, f, that takes a hash and a string. it removes the leftmost element from the string and either adds it to the hash, or adds an empty hash to the hash and calls itself with teh remainder, if there is more to do
<apeiros>
also note that {"A": {"B": {"C", "D", "E"}}} is not really ruby. assuming you meant {"A": {"B": ["C", "D", "E"]}}, consider{"A": {"B": {"C": {}, "D": {}, "E":{}}}} as a first step
workmad3 has quit [Ping timeout: 248 seconds]
<apeiros>
so: transform "A/B/C" to {"A" => {"B" => {"C" => {}}}
<ule>
apeiros: right, let me start easy
<ule>
lupine: right
<ule>
I guess I need to group by levels
<ule>
using .split will give me this level, 0,1,2
<ule>
then I need to create this hash based on levels
oroborous has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz>
Hrmph...not sure this is a good idea. bundle install asks for sudo password. However, no idea what is being done with the password if i give it. Running sudo bundle install says bundle shouldn't be run as root.
mtkd has quit []
DTZUZO has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
PMS has quit [Quit: • IRcap • 8.72 •]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<leitz>
And installing 40 some gems that an app now depends on seems shaky.
bigblind has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
<leitz>
And not having a "-y" option to uninstall seems unkind.
<leitz>
Sorry for grumping.
ta_ has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 240 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]