<fragtastic>
clorisu, looks like you don't have autoconf installed
babblebre has joined #ruby
aclearman037 has quit [Ping timeout: 240 seconds]
<fragtastic>
probably safe to say it needs it. sudo apt install autoconf
<clorisu>
fixed it fragtastic. thanks. for future reference: does 'command not found' basically translate to 'program not installed'?
<fragtastic>
clorisu, basically :P
nettoweb has joined #ruby
marcdel has quit [Ping timeout: 246 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
<fragtastic>
clorisu, if i'm doing any dev stuff i usually just `sudo apt install git build-essential autoconf libtool automake bison` since they're often required
<clorisu>
saved :)
marcdel has joined #ruby
jenrzzz has joined #ruby
wjimenez5271_ has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 252 seconds]
poerror has joined #ruby
<fragtastic>
clorisu, never used rbenv but if it's anything like python env then you need to activate it. see if there's an 'activate' file in your /home/adam/.benv/versions/2.0.0-dev folder
<fragtastic>
otherwise you're just calling ruby from the system installation
houhoulis has quit [Remote host closed the connection]
babblebre has quit [Quit: Connection closed for inactivity]
whippythellama has joined #ruby
whippythellama has quit [Client Quit]
pawnbox has joined #ruby
freerobby has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<Ox0dea>
clorisu: Your system still thinks you have Ruby 1.8 installed, but I don't know why or how to convince it otherwise. :/
<Ox0dea>
Do you know how to start a fire?
haxrbyte has joined #ruby
<clorisu>
i think it was a dpkg issue
<clorisu>
i mightve sorted it out, one moment
haxrbyte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 248 seconds]
<Ox0dea>
Well, the problem is more likely in update-alternatives; I guess you confused it when you installed so many unnecessary Rubies. :P
haxrbyte has joined #ruby
<clorisu>
im guessing so too :P
<clorisu>
ah yes
<clorisu>
sqlite installed
<clorisu>
lets run bundle install again..
<clorisu>
success !
<clorisu>
rails server - success !
<clorisu>
phew
rrrepsaj has quit [Remote host closed the connection]
<clorisu>
okay, so im guessing 80% of the problem was the fact i was trying to run the server on an old Gemfile installed with old ruby before I updated
<clorisu>
silly me
<Ox0dea>
\o/
<Ox0dea>
Glad you got it sorted.
<clorisu>
thanks :)
<Ox0dea>
Sure thing. :)
<clorisu>
hopefully i can get around to trying to learn rails soon~
<bougyman>
hopefully not
<clorisu>
o.O? :P
<clorisu>
why not bougyman ?
rrrepsaj has joined #ruby
<bougyman>
not a fan.
<clorisu>
why not?
<bougyman>
because i've had to bail too many companies out of rails woes.
liquid-silence has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
<clorisu>
:o hehe
<clorisu>
what sort?
<clorisu>
the twitter sort ?
_djbkd has joined #ruby
liquid-silence has joined #ruby
liquid-silence has joined #ruby
treaki__ has joined #ruby
moos3 has joined #ruby
Chagel has joined #ruby
krz has joined #ruby
Asher has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
Uber|Dragon has joined #ruby
treaki_ has quit [Ping timeout: 240 seconds]
_djbkd has quit [Ping timeout: 250 seconds]
ericn81 has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
freerobby has quit [Quit: Leaving.]
jackjackdripper has quit [Quit: Leaving.]
Asher has quit [Quit: Leaving.]
RegulationD has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
achamian has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
`tim` has joined #ruby
mistermocha has quit [Remote host closed the connection]
achamian has quit [Client Quit]
moei has joined #ruby
rhg135 is now known as gelatobot
gix has quit [Ping timeout: 264 seconds]
gelatobot is now known as rhg135
mr_robot_ has joined #ruby
gix has joined #ruby
last_staff has joined #ruby
rvchangue has joined #ruby
vdamewood has quit [Quit: Life beckons.]
`tim` has quit [Ping timeout: 268 seconds]
last_staff has quit [Client Quit]
jeer has quit [Quit: Leaving.]
jeer has joined #ruby
jeer has quit [Client Quit]
htmldrum has joined #ruby
edwinvdgraaf has joined #ruby
norc__ has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
Chagel has joined #ruby
Asher has quit [Client Quit]
hxegon has quit [Quit: BRB]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
Uber|Dragon has quit [Ping timeout: 246 seconds]
Asher has joined #ruby
bluntman has left #ruby ["WeeChat 1.2"]
eljimmy has quit [Quit: Leaving]
Chagel_ has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
Asher has quit [Quit: Leaving.]
tvon has quit [Remote host closed the connection]
arescorpio has quit [Remote host closed the connection]
tvon has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
tvon has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
Asher has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 268 seconds]
hxegon has joined #ruby
frustrum has quit [Ping timeout: 260 seconds]
adgtl has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
<p1k>
how can I use extend the ClassMethods module of one module with another set of ClassMethods
<p1k>
it seems to work immedietly in included, but it doesn't seem to stick :o
aNoble has quit [Quit: aNoble]
aNoble has joined #ruby
aNoble has left #ruby [#ruby]
govg has joined #ruby
krz has quit [Ping timeout: 250 seconds]
arlek_ has quit [Ping timeout: 244 seconds]
Guest34101 has joined #ruby
saneax is now known as saneax_AFK
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]]
astrobun_ has quit [Remote host closed the connection]
Prominent has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
adgtl has quit [Client Quit]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
User458764 has joined #ruby
rkazak_ has joined #ruby
saneax_AFK is now known as saneax
rkazak has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
rkazak_ has quit [Ping timeout: 250 seconds]
krz has joined #ruby
fullofcaffeine has joined #ruby
moos3 has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
frustrum has joined #ruby
mr_robot_ has joined #ruby
auzty has quit [Quit: Leaving]
frustrum has quit [Ping timeout: 240 seconds]
p1k has quit [Ping timeout: 252 seconds]
rubie has quit [Remote host closed the connection]
skade has joined #ruby
astrobun_ has joined #ruby
djbkd_ has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
LoneHermit has joined #ruby
govg has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nando293921 has quit [Ping timeout: 260 seconds]
rkazak_ has joined #ruby
Chagel has quit [Remote host closed the connection]
Rinalds has joined #ruby
Rinalds has quit [Client Quit]
rkazak has quit [Ping timeout: 260 seconds]
rkazak_ is now known as rkazak
RegulationD has quit [Ping timeout: 250 seconds]
Prominent has quit [Read error: Connection reset by peer]
LoneHermit has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
Xeago has joined #ruby
Chagel has joined #ruby
yakbrown has joined #ruby
darkf has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
intrigueD has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
BtcBen_ has joined #ruby
armyriad has quit [Quit: Leaving]
tomphp has joined #ruby
BtcBen has quit [Ping timeout: 268 seconds]
BtcBen_ is now known as BtcBen
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has quit [Ping timeout: 244 seconds]
solars has joined #ruby
bqscott_ has joined #ruby
klaas_ has joined #ruby
kenichi_ has joined #ruby
icedp has joined #ruby
rkazak_ has joined #ruby
pjaspers_ has joined #ruby
mattpatt_ has joined #ruby
shortdudey123_ has joined #ruby
Junaos_ has joined #ruby
jrod_ has joined #ruby
console has joined #ruby
raldu_ has joined #ruby
peterhu_ has joined #ruby
svkurowski_ has joined #ruby
bogdanteleaga_ has joined #ruby
sonOfRa_ has joined #ruby
rkazak has quit [Ping timeout: 244 seconds]
rkazak_ is now known as rkazak
TakumoKatekari has joined #ruby
TakumoKatekari has quit [Changing host]
TakumoKatekari has joined #ruby
bahar_ has joined #ruby
Abrin_AWAY has quit [Ping timeout: 244 seconds]
bqscott has quit [Disconnected by services]
bqscott_ is now known as bqscott
andikr has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FastJack_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Eaven has joined #ruby
code_[BNC] has joined #ruby
quarcu_ has joined #ruby
tomaw_ has joined #ruby
df- has joined #ruby
julie_harshaw has joined #ruby
<shevy>
is there a release cycle or policy for new ruby versions? like every 2 months or something? I only know of mandatory xmas releases :P
martinbjeldbak_ has joined #ruby
e has quit [*.net *.split]
hinbody has quit [*.net *.split]
davee_ has quit [*.net *.split]
reaVer has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
Cork has quit [*.net *.split]
sauvin has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
Ox0dea has quit [*.net *.split]
icey_ has quit [*.net *.split]
flopsec has quit [*.net *.split]
darix has quit [*.net *.split]
kies has quit [*.net *.split]
wnd has quit [*.net *.split]
glcx has quit [*.net *.split]
forgot has quit [*.net *.split]
genpaku has quit [*.net *.split]
svkurowski has quit [*.net *.split]
_br___ has quit [*.net *.split]
callumacrae has quit [*.net *.split]
djellemah has quit [*.net *.split]
Rasi has quit [*.net *.split]
axisys has quit [*.net *.split]
hogetaro_ has quit [*.net *.split]
RTG` has quit [*.net *.split]
decaff has quit [*.net *.split]
aibot has quit [*.net *.split]
bogdanteleaga has quit [*.net *.split]
timonv1 has quit [*.net *.split]
pjaspers has quit [*.net *.split]
jzigmund has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
spacemud has quit [*.net *.split]
DrCode has quit [*.net *.split]
jtoy_ has quit [*.net *.split]
_ko1 has quit [*.net *.split]
ericwood_ has quit [*.net *.split]
ahuman has quit [*.net *.split]
mhb has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
torarne has quit [*.net *.split]
FastJack has quit [*.net *.split]
Guest96677 has quit [*.net *.split]
eregon has quit [*.net *.split]
mattpatt has quit [*.net *.split]
IceDragon has quit [*.net *.split]
varesa has quit [*.net *.split]
df has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
peterhu has quit [*.net *.split]
Junaos has quit [*.net *.split]
bahar has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
quarcu has quit [*.net *.split]
code_ has quit [*.net *.split]
kenichi has quit [*.net *.split]
raldu has quit [*.net *.split]
jrod has quit [*.net *.split]
edulix_ has quit [*.net *.split]
john2 has quit [*.net *.split]
inukshuk has quit [*.net *.split]
zeroXten has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
lucas has quit [*.net *.split]
philtr_ has quit [*.net *.split]
cscheib_ has quit [*.net *.split]
tomaw has quit [*.net *.split]
Helheim has quit [*.net *.split]
chrisarcand has quit [*.net *.split]
jsaak has quit [*.net *.split]
ryotarai has quit [*.net *.split]
Takumo has quit [*.net *.split]
Raboo has quit [*.net *.split]
bakingbread has quit [*.net *.split]
ltd_ has quit [*.net *.split]
klaas has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hypnosb has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
jrod_ is now known as jrod
davee__ has joined #ruby
bogdanteleaga_ is now known as bogdanteleaga
icey has joined #ruby
shortdudey123_ is now known as shortdudey123
Ox0dea_ has joined #ruby
timonv1 has joined #ruby
djellemah has joined #ruby
decaff has joined #ruby
AlexRussia has joined #ruby
guardian has joined #ruby
hinbody has joined #ruby
reaVer has joined #ruby
genpaku has joined #ruby
_br___ has joined #ruby
IceDragon has joined #ruby
forgot has joined #ruby
_ko1 has joined #ruby
john2 has joined #ruby
kies has joined #ruby
DrCode has joined #ruby
wnd has joined #ruby
torarne has joined #ruby
eregon has joined #ruby
axisys has joined #ruby
spacemud has joined #ruby
mhb has joined #ruby
varesa has joined #ruby
aibot has joined #ruby
lucas has joined #ruby
ericwood_ has joined #ruby
Guest96677 has joined #ruby
callumacrae has joined #ruby
philtr_ has joined #ruby
RTG` has joined #ruby
ahuman has joined #ruby
glcx has joined #ruby
xMopxShell has joined #ruby
Ariadeno has joined #ruby
chrisarcand has joined #ruby
KillerFox has joined #ruby
jtoy_ has joined #ruby
Helheim has joined #ruby
jsaak has joined #ruby
cscheib_ has joined #ruby
Raboo has joined #ruby
zeroXten has joined #ruby
ryotarai has joined #ruby
jzigmund has joined #ruby
edulix_ has joined #ruby
hypnosb has joined #ruby
hogetaro_ has joined #ruby
mame3 has joined #ruby
kallisti5 has joined #ruby
ltd_ has joined #ruby
inukshuk has joined #ruby
sauvin has joined #ruby
Rasi has joined #ruby
sauvin has quit [Client Quit]
callumacrae has quit [Max SendQ exceeded]
Ariadeno has quit [Max SendQ exceeded]
genpaku has quit [Max SendQ exceeded]
Helheim has quit [Max SendQ exceeded]
yakbrown has quit [Ping timeout: 252 seconds]
Ariadeno has joined #ruby
TheBrayn has joined #ruby
ohaibbq has quit [Quit: Leaving...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
Cork has joined #ruby
sauvin has joined #ruby
Guest13710 has joined #ruby
Ariadeno is now known as Guest75813
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Helheim has joined #ruby
pawnbox has quit [Remote host closed the connection]
flopsec has joined #ruby
chandlerbing has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
darix has joined #ruby
Ox0dea_ is now known as Ox0dea
agit0 has quit [Quit: zzzZZZ….]
callumacrae has joined #ruby
intrigueD has quit [Remote host closed the connection]
tvon has joined #ruby
saneax is now known as saneax_AFK
Chagel has quit [Remote host closed the connection]
phredus has joined #ruby
tristanp has joined #ruby
tvon has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
hxegon has quit [Quit: BRB]
Chagel has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
_djbkd has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
firstdayonthejob has joined #ruby
<manveru>
shevy: no
SenpaiSilver has quit [Ping timeout: 244 seconds]
ta__ has quit [Remote host closed the connection]
ta_ has joined #ruby
<manveru>
bougyman: right now i
<manveru>
i'm having fun bailing them out of not-knowing-sql woes :P
_djbkd has quit [Ping timeout: 260 seconds]
<manveru>
who would've known that replacing O(n5) queries with joins and such speeds your app up by a few factors
Tempesta has quit [Ping timeout: 260 seconds]
SenpaiSilver has joined #ruby
Tempesta has joined #ruby
niksrc has joined #ruby
saneax_AFK is now known as saneax
ta_ has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
ziyadb has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
codecop has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
skade has joined #ruby
mhoungbo has joined #ruby
pawnbox has quit [Remote host closed the connection]
jas02 has joined #ruby
pawnbox has joined #ruby
AlexJakeGreen has joined #ruby
moeabdol2 has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
AlexJakeGreen has quit [Client Quit]
lxsameer has joined #ruby
biberu has joined #ruby
msg31 has quit [Remote host closed the connection]
moeabdol2 has quit [Ping timeout: 260 seconds]
bjpenn has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
steffkes has joined #ruby
Abrin_AWAY has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has joined #ruby
Guest13710 has quit [Quit: WeeChat 1.4]
emesa has joined #ruby
moos3 has joined #ruby
roshanavand has joined #ruby
moos3 has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
gagrio has joined #ruby
Chagel has joined #ruby
Don_John has quit [Quit: Later]
chandlerbing has joined #ruby
<adaedra>
Hello
agit0 has joined #ruby
pawnbox has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
anisha has joined #ruby
aganov has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
jaruga has joined #ruby
vondruch has joined #ruby
tvon has joined #ruby
roshanavand has joined #ruby
maner has joined #ruby
terlar has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
frustrum has joined #ruby
aufi has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
tvon has quit [Ping timeout: 244 seconds]
igam has joined #ruby
LoneHermit has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
jaiks has joined #ruby
frustrum has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Quit: Leaving]
anisha has quit [Quit: This computer has gone to sleep]
<manveru>
adaedra: welcome
djbkd_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 240 seconds]
elifoster has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 246 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
<Ox0dea>
Is there a workaround for `load '/dev/fd/0'` not doing The Right Thing?
<Ox0dea>
It's true enough that it's technically not a file, but it still feels like that should be possible.
skade has joined #ruby
Couch has joined #ruby
mark2 has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
<Mon_Ouie>
Is eval a good enough work around?
elaptics`away is now known as elaptics
Guest34101 has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
futilegames has joined #ruby
<Ox0dea>
Ah, well, the only valid use case that comes to mind is demonstrating a #load patch on sites like eval.in, but that's precisely the situation in which I find myself.
ur5us has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mdw has joined #ruby
Spami has joined #ruby
andikr has quit [Remote host closed the connection]
ta_ has joined #ruby
futilegames has left #ruby [#ruby]
sarbs has joined #ruby
rdark has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
lxsameer has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
poerror has joined #ruby
sarbs has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
roshanavand has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
rkazak has quit [Quit: Sleep.....ing....]
TakumoKatekari is now known as Takumo
duncannz has quit [Remote host closed the connection]
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
clorisu has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
bry4n_ has joined #ruby
drptbl has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
borther is now known as Snowy
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 260 seconds]
mr_robot_ has joined #ruby
bry4n_ has quit [Ping timeout: 260 seconds]
mr_robot_ has quit [Client Quit]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
emilkarl[away] has quit [Read error: Connection reset by peer]
_mak has left #ruby [".."]
emilkarl has joined #ruby
mfaeh has joined #ruby
adgtl has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
DanyC has joined #ruby
whatever has joined #ruby
whatever has quit [Client Quit]
agit0 has joined #ruby
bahar_ has quit [Ping timeout: 248 seconds]
<DanyC>
Hi all, i'm a newbie on Ruby hence please bear with me. Anyone has any ideas on how can i find from a given gem pkg all the dependencies it requires ? I'm not looking only after the dem dependencies but also from the rpm side. The use case is simple: i had on a CentOS to install a gem pkg which failed because there were some missing rpms/ libs hence i'd like to find out all the req before installing it
<Ox0dea>
Very few gems use that field, and even fewer fill it with machine-readable values.
tomphp has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<Ox0dea>
I suppose you could delegate to Arch or Gentoo packages for external dependency lists, but that'd be rather brittle.
kohvihoor has quit [Quit: WeeChat 1.0.1]
frustrum has quit [Ping timeout: 240 seconds]
trinaldi has joined #ruby
mikar has joined #ruby
ldnunes has joined #ruby
tomphp has joined #ruby
_djbkd has joined #ruby
arlek_ has quit [Ping timeout: 244 seconds]
<ujjain->
return s['lifeCycleState']
<ujjain->
return s['state']
<ujjain->
how can I make this return as an array?
ujjain- is now known as ujjain
tomphp has quit [Max SendQ exceeded]
LoneHerm_ has joined #ruby
<DanyC>
Ox0dea: indeed very few use it ...hmmm, i guess there is no other option ?
tomphp has joined #ruby
Phage has joined #ruby
Phage has left #ruby ["WeeChat 1.4"]
_djbkd has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
<Ox0dea>
DanyC: I reckon it's on the CentOS crowd to ensure their dependency lists are correct. :/
rodfersou has quit [Read error: Connection reset by peer]
ljames has quit [Ping timeout: 276 seconds]
bricker has joined #ruby
maner has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 252 seconds]
<DanyC>
Ox0dea: well yes, but i was coming from a different angle. A dev says - i need to install gem x but when i do install i mis some CentOS libraries/ rpm hence me thinking how to know what to pull from CentOS w/o waiting to fail 1st
<Ox0dea>
DanyC: We've established that there's simply no way to ensure that programmatically; you'll just have to do your research.
nixmaniack has quit [Remote host closed the connection]
mfaeh has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
nixmaniack has joined #ruby
tvon has quit [Ping timeout: 276 seconds]
poerror has joined #ruby
duckpuppy has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
sepp2k has joined #ruby
sunslide has joined #ruby
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<sunslide>
hi guys, this is a long shot but I'm trying to support TLS 1.2 on Ruby 1.9 where it is not supported (support for this was introduced on Ruby 2.0) *without* recompiling ruby (I have tons of workstations and most of them are Windows-based), ANY way I could do this?
<hanmac>
normally i do not care about tiobe, but now i point and laugh at php ;P
mary5030 has quit [Ping timeout: 240 seconds]
<shevy>
haha
merida has joined #ruby
tulak has quit []
<shevy>
the only mildly depressing thing is that ruby isn't higher there
Prominent has quit [Ping timeout: 268 seconds]
bry4n_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
merida has quit [Remote host closed the connection]
mary5030_ has quit [Ping timeout: 246 seconds]
merida has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
jyaworski has joined #ruby
aryaching has joined #ruby
<crime>
its just a measure of backlinks. it doesnt actually mean anything
mallu has joined #ruby
bjpenn has joined #ruby
myntcake has joined #ruby
fullofcaffeine has joined #ruby
Linell has joined #ruby
krz has joined #ruby
xaxisx has quit [Quit: xaxisx]
<Linell>
I'm working on an image uploading web service. When I get the image file, it's a string. How can I check the file type from that? Like png vs jpeg?
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
frustrum has quit [Quit: WeeChat 1.2]
jottr_ has quit [Quit: WeeChat 1.4]
Prominent has joined #ruby
chouhoulis has joined #ruby
xaxisx has joined #ruby
govg has quit [Quit: leaving]
mary5030_ has joined #ruby
<shevy>
on linux I tend to just ask "file"
<shevy>
if you want to have it even more primitive, you could use File.extname :D
bjpenn has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
<Linell>
Well I've tried making the string into a file and it gives an error because of a null byte
<Linell>
Doing something like File.new('test', file_string)
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
momomomomo has joined #ruby
steffkes has quit [Read error: No route to host]
gbgdev has quit [Remote host closed the connection]
frustrum has joined #ruby
momomomomo has quit [Client Quit]
freakcoder has joined #ruby
xaxisx_ has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
xaxisx has quit [Ping timeout: 240 seconds]
xaxisx_ is now known as xaxisx
nixmaniack has joined #ruby
pawnbox has joined #ruby
failshell has quit [Remote host closed the connection]
<TomyLobo>
I have an url and I want to retrieve whatever comes from that url and store it in a file on disk and write it as a response in a sinatra app. All of this without having the entire thing in memory at some point and without having the sinatra app's client time out while waiting for the download to finish.
tvon has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TomyLobo>
also i dont want to write the copy loop myself. I found IO.copy_stream, now i probably need a stream multiplexer of some kind
axl_ has joined #ruby
tvon has joined #ruby
<TomyLobo>
i.e. an output stream that writes to two output streams when it's written to
binaryplease has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
aclearman037 has joined #ruby
lxsameer has quit [Quit: Leaving]
whippythellama has joined #ruby
Mon_Ouie has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
_djbkd has joined #ruby
<TomyLobo>
is there such a thing?
xaxisx has quit [Quit: xaxisx]
tvon has quit [Ping timeout: 244 seconds]
treehug88 has joined #ruby
speakingcode has joined #ruby
xaxisx has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
_djbkd has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby
trosborn has joined #ruby
bjpenn has joined #ruby
bricker has joined #ruby
frustrum has quit [Quit: WeeChat 1.2]
frustrum has joined #ruby
trosborn has quit [Client Quit]
frustrum has quit [Client Quit]
frustrum has joined #ruby
mary5030_ has joined #ruby
LoneHerm_ has joined #ruby
RegulationD has joined #ruby
ariel_17 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
boogibugs has joined #ruby
_joes__ has joined #ruby
krz has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
synthroid has joined #ruby
nofacade has joined #ruby
bjpenn has quit [Ping timeout: 268 seconds]
bricker has quit [Ping timeout: 248 seconds]
eurialo has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
mistermocha has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
pawnbox has quit [Remote host closed the connection]
mallu has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tvon has joined #ruby
tomphp has joined #ruby
aegis3121 has quit [Ping timeout: 268 seconds]
avenj has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
Xeago has joined #ruby
momomomomo has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
aegis3121 has joined #ruby
aegis3121 has quit [Client Quit]
bricker has joined #ruby
nanoz has joined #ruby
weemsledeux has joined #ruby
pzula has joined #ruby
rkazak has joined #ruby
krz has joined #ruby
mostlybadfly has joined #ruby
htmldrum has joined #ruby
crowell has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
freakcoder has quit [Quit: Leaving.]
maner has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
nofacade has quit [Ping timeout: 276 seconds]
mfb2 has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
crowell has joined #ruby
mfb2 has joined #ruby
ta_ has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 276 seconds]
uglybandersnatch has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
failshell has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has joined #ruby
rubie has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
merida has quit [Remote host closed the connection]
tvon has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
tvon has joined #ruby
merida has joined #ruby
mfb2 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
mfb2 has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
zotherstupidguy has joined #ruby
pawnbox has joined #ruby
x77686d has joined #ruby
ItSANgo has joined #ruby
fostertheweb has joined #ruby
momomomomo has quit [Quit: momomomomo]
bricker has joined #ruby
DmitryBochkarev has joined #ruby
andrewvos has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
dionysus69 has joined #ruby
bMalum has quit [Ping timeout: 276 seconds]
digitalcakes has joined #ruby
<ujjain>
hanmac , thanks, values_at is great, sorry, I'm still fairly new
Linell has left #ruby [#ruby]
momomomomo has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
momomomomo has quit [Client Quit]
shaman42 has quit [Ping timeout: 268 seconds]
boogibugs has quit [Remote host closed the connection]
bleh has joined #ruby
<bleh>
Hey there, I'd like to download all the gems from Rubygems, any magic command ? Thanks
astrobun_ has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
slawrence00 has joined #ruby
Xeago has joined #ruby
astrobun_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
Scriptonaut has joined #ruby
<Scriptonaut>
Hey guys, I'm sending a json object that contains a nested array to my rack server with ajax. I end up with a hash, that contains another hash with numbers as the keys (strings). How can I make it give me an actual array?
<Scriptonaut>
so, for example, the object that I send is: { layout: my_array }, and on the server side I do: request.params["layout"], and then from there if I want the first row, I do: request.params["layout"]["1"]
amundj has joined #ruby
<Scriptonaut>
how do I make that: request.params["layout"][0]
<shevy>
bleh weird... I have an old snippet here: Gems.gem("") but this no longer seems to work.. or perhaps it never worked. If you can obtain a list of all gems, you can batch-install them
mallu has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
<shevy>
on the commandline it would be "gem list --remote"
mfb2 has quit []
Jackneill has joined #ruby
<bleh>
shevy: I have their name using gem list --remote, how do I batch download them now ? (no need to install, just download)à
naftilos76 has joined #ruby
<adaedra>
why would you do that
dhollinger has joined #ruby
podman_ is now known as podman
<shevy>
bleh first you get the name, e. g. split on "\n", then split the array on ' '. now you have an array with names... the command to install a gem would be "gem install NAME_HERE"... not sure what the fetch-only option is hmm
<shevy>
bleh ah it is "gem fetch"
theunraveler has joined #ruby
solars has quit [Ping timeout: 248 seconds]
AlexJakeGreen has quit [Quit: Leaving]
jyaworski has quit [Quit: jyaworski]
shaman42 has joined #ruby
Xeago has quit [Remote host closed the connection]
crime has quit [Ping timeout: 252 seconds]
n008f4g_ has joined #ruby
tvon has quit [Remote host closed the connection]
<the_drow>
Hi, how do I get the value of the nth item in an array or nil instead of an exception?
sergey_makagon has quit [Ping timeout: 244 seconds]
<andrewvos>
you're probably using something evil like rvm. Maybe open a new terminal and try rake in there
<andrewvos>
or jiggle your ruby version manager
melter has quit [Quit: Client exiting]
Uber|Dragon has quit [Ping timeout: 246 seconds]
<ivki>
already tried
_djbkd has joined #ruby
melter has joined #ruby
kies has joined #ruby
<ivki>
thanks for the help anyway
ramortegui has quit [Quit: Ex-Chat]
pietr0 has joined #ruby
mhoungbo has joined #ruby
sandstrom has joined #ruby
<shevy>
weaksauce lookie!!! ^^^ evil! bundler and debian I assume
boogibugs has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
krz has quit [Ping timeout: 268 seconds]
P1ro has left #ruby [#ruby]
rasalghul has joined #ruby
Xeago has quit [Remote host closed the connection]
binaryplease has joined #ruby
LoneHerm_ has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
crowell has quit [Ping timeout: 260 seconds]
treehug88 has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
treehug88 has joined #ruby
skade has joined #ruby
<boogibugs>
Hi, can someone help with a query about how ruby modules work. I dont use it a lot myself but I am using a vagrant repo from github and it keeps giving me 2 errors depending on what i comment out from the .rb file: unintilised Message: NameError: uninitialized constant VagrantPlugins::ProviderVirtualBox::Action::ShareFolders, NameError: uninitialized constant Vagrant::Action::Builtin::NFS. I have installed a vagrant plugin called bindfs which
<boogibugs>
should deal with this part but it never works and if i comment out both then the second server doesn't run as it needs shared folders somehow. I have tried searching online and most of the results say install the bindfs plugin which I already had. I have tried asking over in vagrant channel, no answer there.
stannard has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Xeago has joined #ruby
elaptics is now known as elaptics`away
chouhoulis has joined #ruby
armyriad has joined #ruby
<shevy>
the constant names seem weird
n008f4g_ has joined #ruby
<shevy>
you have a base Vagrant, and a separate VagrantPlugins?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
LoneHerm_ has quit [Ping timeout: 240 seconds]
<boogibugs>
shevy, thats the issue I am not sure what should or shouldnt work. I ca nfidn some of those mdules i nrb file i nthe repo and then some of them in the /usr/share/vagrant folder but not sur eof difference
sesquipedalian has joined #ruby
sdothum has joined #ruby
<boogibugs>
basically if i comment out those 2 constants the fist machine will build but the second wont as it uses sharedfolders.
<shevy>
is your keyboard also broken :P
Xeago has quit [Remote host closed the connection]
<shevy>
I don't know how vagrant is setup
Xeago has joined #ruby
<boogibugs>
yeah sorry... dyslexic fingers... :P
rkazak has joined #ruby
<shevy>
but the error just seems off; Vagrant should be the base namespace right? so it would make no sense to have a second namespace called VagrantPlugins
<shevy>
more logical would be Vagrant::Plugins
_djbkd has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<boogibugs>
Vagrant:: and VagrantPlugins:: arementioned
tacit7 has joined #ruby
<shevy>
wow that is pretty awful
krz has joined #ruby
rkazak_ has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
rkazak_ is now known as rkazak
Guest38 has joined #ruby
<shevy>
the author is not using ruby a lot right?
SCHAAP137 has quit [Remote host closed the connection]
<boogibugs>
well you can tell me that I dont know ruby very well myself
skade has quit [Quit: Computer has gone to sleep.]
sneakerhax has joined #ruby
fryguy has joined #ruby
FooMunki has joined #ruby
<boogibugs>
basically i just want to see how razor works...this has been the best so far most of the repos on github fail to install or are all very old ones
<shevy>
I dunno, it just seems so weird
<shevy>
a toplevel array constant MIDDLEWARE that gathers some other constant names that are named inconsistently like Vagrant::Action::Builtin::SetHostname and then VagrantPlugins::ProviderVirtualBox::Action::CheckGuestAdditions
crowell has joined #ruby
<fryguy>
I just upgraded to openssl 1.0.2g and now my ruby builds fail with ossl_ssl.c:137:27: error: ‘SSLv3_method’ undeclared here (not in a function). specifically 2.1.0, but other versions as well. Is there a known patch around for compiling against the latest openssl?
ascarter has joined #ruby
kies has quit [Ping timeout: 252 seconds]
<boogibugs>
shevy, so are those valid or not or just bad coding?
<shevy>
the ultimate authority over the validity of code is the ruby parser
Macaveli has joined #ruby
fmcgeough has joined #ruby
liquid-silence has quit [Read error: Connection reset by peer]
d0nn1e has quit [Ping timeout: 276 seconds]
<shevy>
boogibugs from your error, let's ignore Vagrant for a moment, a given .rb file (if you can call/use it) should specify all its required dependencies, by pulling in the respective files at hand
<boogibugs>
shevy, package name ruby-lint or something along those lies?
symm- has joined #ruby
<boogibugs>
ok
<shevy>
you can get an uninitialized constant error only if you did not define that constant before; in the context of vagrant, you must not have loaded/required the file where these constants are defined
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
I don't know where these files are defined... does vagrant not tell you how to load addons? I could not imagine that you could get an error like you showed above if you would pull in the required files/constants in these files
rkazak has quit [Ping timeout: 244 seconds]
zworks has joined #ruby
tomchapin has joined #ruby
treehug88 has quit [Ping timeout: 248 seconds]
d0nn1e has joined #ruby
dionysus69 has joined #ruby
<boogibugs>
shevy, I think its down to having vagrant plugins installed, all the ones mentioned in the git repo readme, i have installed
<zworks>
I wrote a script in ruby with nokogiri to extract data from a website, but the process gets killed at the middle due to memory shortage
emesa has joined #ruby
frustrum has joined #ruby
<zworks>
if i use functions to do the process , will the objects inside the functions will be freed at the end of the function ?
<boogibugs>
all the vbox ruby files i can find are here: /usr/share/vagrant/plugins/providers/virtualbox/
nettoweb has joined #ruby
djbkd has quit [Remote host closed the connection]
<havenwood>
fryguy: So 2.1.8 in the case of Ruby 2.1.
dionysus69 has quit [Remote host closed the connection]
<havenwood>
fryguy: Any Ruby that came out after that OpenSSL will do, but use the latest anyways.
djbkd has joined #ruby
<shevy>
boogibugs no real idea how vagrant loads up these files sorry
nettoweb has quit [Max SendQ exceeded]
frustrum has joined #ruby
<shevy>
zworks hmm something must hog up memory in your code
jottr has joined #ruby
frustrum has quit [Client Quit]
nettoweb has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
shredding has quit [Ping timeout: 248 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
xaxisx has left #ruby [#ruby]
helpa has joined #ruby
norc__ has joined #ruby
<boogibugs>
shevy, ok thanks for your time.
<havenwood>
zworks: You can see how many times garbage has been collected with `GC.count` or trigger a collection yourself with `GC.start` to increment the count.
frustrum has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
kies has joined #ruby
mjuszczak has joined #ruby
Xeago has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<havenwood>
zworks: Or look at the count of objects and such with ObjectSpace.
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
andikr has quit [Read error: Connection reset by peer]
bollullera has quit [Excess Flood]
failshell has quit [Remote host closed the connection]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
frustrum has quit [Client Quit]
<boogibugs>
how about a ruby parser tool i can use on this code to check sanity or it?
<zworks>
havenwood: where i can put that code?
freakcoder has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
<boogibugs>
s/or/of
<havenwood>
zworks: In your REPL. Put `require 'pry'` in a file then at the part you're curious about put a `binding.pry`. It'll jump out to the REPL, where you can look at the GC and ObjectSpace.
aufi has quit [Ping timeout: 252 seconds]
<havenwood>
?pry zworks
<ruby[bot]>
zworks: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
davedev24 has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
B3rg3lm1r has quit [Remote host closed the connection]
B3rg3lm1r has joined #ruby
govg has quit [Quit: leaving]
tacit7 has joined #ruby
tvon has joined #ruby
poerror has joined #ruby
nofxx has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
govg has joined #ruby
jottr_ has joined #ruby
tenlittleniggreb has quit [Quit: Page closed]
govg has quit [Client Quit]
govg has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
poerror has quit [Ping timeout: 260 seconds]
intrigueD has joined #ruby
sesquipedalian has quit [Ping timeout: 252 seconds]
forgot has quit [Quit: Lost terminal]
B3rg3lm1r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Blaguvest has quit []
Prominent has joined #ruby
arlek_ has joined #ruby
shakes has joined #ruby
baweaver has joined #ruby
poerror has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
jottr has joined #ruby
niksrc has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 240 seconds]
fryguy has left #ruby [#ruby]
poerror has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 244 seconds]
B3rg3lm1r has joined #ruby
mhoungbo has quit [Ping timeout: 244 seconds]
<alexherbo2>
Hi
evie_hammond has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Client Quit]
troulouliou_dev has joined #ruby
User458764 has joined #ruby
<alexherbo2>
How capture stdout of system command?
B3rg3lm1r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
alexherbo2 popen
<alexherbo2>
(I need a TTY to run my editor in the terminal)
uglybandersnatch has quit [Ping timeout: 252 seconds]
<adaedra>
multiple ways
jenrzzz has joined #ruby
<alexherbo2>
shevy: I will look at thanks
<adaedra>
You have popen, you have IO.open
merqlove has joined #ruby
B3rg3lm1r has joined #ruby
<shevy>
also result = `ls` and result = `ls 2>&1`
<shevy>
\o/
trosborn has quit [Quit: trosborn]
endash has joined #ruby
sepp2k has joined #ruby
ascarter has joined #ruby
<alexherbo2>
shevy: `` will no work I need stdout as a tty
Felix444 has joined #ruby
<alexherbo2>
`kak`
<alexherbo2>
or `vim`
joonty has joined #ruby
<adaedra>
ah, this is completely different here
<adaedra>
alexherbo2: what are your trying to do here?
reaVer has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jenrzzz has quit [Ping timeout: 264 seconds]
Prominent has quit [Read error: Connection reset by peer]
<shevy>
he is up to no good!
Prominent has joined #ruby
<alexherbo2>
adaedra: a file editor which reads on stdin.
KnownSyntax has quit [Ping timeout: 240 seconds]
<adaedra>
alexherbo2: but why do you need to capture the output? What will you do with this output?
<alexherbo2>
find . | fe sed s/' '/_/g
<alexherbo2>
rename all files with space by _
joonty has quit [Ping timeout: 268 seconds]
<alexherbo2>
`fe` run sed which reads stdin, i need capture its output
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<alexherbo2>
I would `fe` works interactively too
<alexherbo2>
with my editor
<alexherbo2>
find . | fe kak
<alexherbo2>
Kakoune can read on stdin and output to stdout juste like sed
tomphp has joined #ruby
<adaedra>
I don't see where the editor comes to play here
<alexherbo2>
`kak` it the editor
<endash>
Is there a way to skip ahead with a lazy enumerator? Lazy::Enumerator#drop still calculates the value before throwing it away, which is potentially very expensive
<alexherbo2>
xD
<alexherbo2>
is*
<adaedra>
ah
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<adaedra>
endash: that would go against Enumerator
<adaedra>
because in the first, you don't capture output, so it uses ruby's output, which is your current terminal
govg has quit [Quit: leaving]
<alexherbo2>
How deal with that?
govg has joined #ruby
<adaedra>
I'm still not sure what you're trying to do, sorry
<adaedra>
you have an editor which takes some input?
<alexherbo2>
yes
<adaedra>
or are you trying to create a command which takes input and inject it into your editor?
intrigueD has quit [Remote host closed the connection]
baweaver has joined #ruby
<alexherbo2>
not sure to understand xD
<alexherbo2>
I want simply do
Ishido has joined #ruby
<alexherbo2>
find . | fe kak
<alexherbo2>
kak reads stdin
<adaedra>
what's fe
tvw has quit [Ping timeout: 246 seconds]
<alexherbo2>
`fe` is the script I try to write
<adaedra>
if kak reads stdin, why not just do `find . | kak` ?
<alexherbo2>
kak reads stdin in a buffer
<alexherbo2>
then when :write
Prominent has quit [Quit: Leaving]
<alexherbo2>
it output
<alexherbo2>
to stdout
jrafanie has quit [Ping timeout: 260 seconds]
<alexherbo2>
when :quit
krz has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
<alexherbo2>
I want capture kak output
SenpaiSilver has joined #ruby
<adaedra>
all output?
<alexherbo2>
yes why?
SenpaiSilver has quit [Client Quit]
krz has joined #ruby
<adaedra>
to do what with it? You realize that output will be pretty messed up if your program is a full featured editor like vim is?
<finisherr>
I have a method with a yield statement in the center. Serves as kind of a sandwich. Is there any way for me to get the variables in the method to get passed to the block scope of the yield?
<adaedra>
(you'll have to name your proc parameter)
<finisherr>
Thanks for the tip
anisha has joined #ruby
reaVer has joined #ruby
<alexherbo2>
adaedra: I do not realise no :(
<tubbo>
haha is that ascii clippy?
<tubbo>
hilarious
<alexherbo2>
yes
<alexherbo2>
lol
<adaedra>
alexherbo2: yep, output will be rather messed up and unusable directly, as it will contain terminal control sequences
poerror has joined #ruby
intrigueD has joined #ruby
<alexherbo2>
I could use a tempfile but I want avoid :/
<tubbo>
this dude made a whole new editor just so he could use clippy in vim?
jrafanie has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
<adaedra>
alexherbo2: just to see what you'll end with, run `script /tmp/out kak`, do some edits in your editor, quit it, and open /tmp/out.
merida has quit [Remote host closed the connection]
<alexherbo2>
tubbo: Kakoune is not a Vim clone
Mon_Ouie has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
<adaedra>
(yes, btw, the `script` command seems to be exactly what you're trying to achieve, if I understood correctly)
Mon_Ouie has joined #ruby
steffkes has quit [Ping timeout: 252 seconds]
<alexherbo2>
adaedra: yes
<adaedra>
yes to what
<alexherbo2>
`script` to capture its output
<adaedra>
so what `script` does is what you're trying to do?
<alexherbo2>
I would like kak could be used interactively :/
<alexherbo2>
wait
adgtl has quit [Remote host closed the connection]
adgtl_ has joined #ruby
reaVer has quit [Remote host closed the connection]
Ishido has quit [Remote host closed the connection]
wzy has joined #ruby
baweaver has quit [Remote host closed the connection]
<alexherbo2>
adaedra: re
<alexherbo2>
find . | fe kak
<adaedra>
alexherbo2: otherwise, if your goal is just to create a buffer in your editor with stdin as source, you can (at least for vim) use - as filename, i.e. `ls | vim -`
<alexherbo2>
I would like to use as well non interactive commands like sed as filter, than my favorite editor
<shevy>
is this madness
polishdub has quit [Quit: Leaving]
<adaedra>
alexherbo2: so your goal is to create a tool that runs commands on files given as stdin?
<alexherbo2>
yes
spider-mario has joined #ruby
<alexherbo2>
give stdin to my command
<alexherbo2>
sed or kak
graffix has left #ruby [#ruby]
<alexherbo2>
capure its output
ascarter has quit [Ping timeout: 276 seconds]
<alexherbo2>
then rename/delete/link files
rdark has quit [Ping timeout: 244 seconds]
<alexherbo2>
by default it renames
<adaedra>
so your editor is a step where you'll make edits in your file?
<alexherbo2>
but you can add directives like [link]
Hammy_Work has joined #ruby
juanfra_ has quit [Quit: juanfra_]
<adaedra>
ah, I think I get it
<alexherbo2>
like with git rebase --interactive there is drop, etc. directives
<adaedra>
this
ascarter has joined #ruby
<adaedra>
do like git, hg, sudo and other tools using $EDITOR do: save input to a tempfile, run the editor on this file, read tempfile
<alexherbo2>
it would be so cool for mass renaming @_@
reaVer has joined #ruby
jaruga has joined #ruby
<alexherbo2>
adaedra: impossible otherwise?
juanfra has joined #ruby
<adaedra>
alexherbo2: did you try running your editor in `script` like I told you to see what "output" you'd have?
<alexherbo2>
yes
boogibugs has quit [Quit: Leaving]
<adaedra>
and is the output usable according to you?
<alexherbo2>
> stdout is not a tty
mikar has quit [Quit: Connection closed for inactivity]
<adaedra>
er.
<adaedra>
what did you run?
<alexherbo2>
`kak`
<adaedra>
no
<adaedra>
run, in your terminal, the following command: script /tmp/out kak
<adaedra>
then, in your terminal, write a small file, and quit it
maner has quit [Remote host closed the connection]
<adaedra>
then, open the /tmp/out file
<alexherbo2>
no outpout
<adaedra>
> then, in your terminal, write a small file, and quit it – in your editor*
<adaedra>
no output?
<alexherbo2>
yes
<alexherbo2>
it’s empty
<adaedra>
k
<adaedra>
i'll do one myself
<adaedra>
alexherbo2: here, I made a file like in your gist, opened it in vim, made the edits you described, closed it, and recorded all output through script, here is the result: https://gist.github.com/adaedra/194e1f0e7d95f004dd18
Guest34101 has joined #ruby
<adaedra>
(mh, gist removed the '\e's tho)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
seriously, the tmpfile solution with a simple `system 'kak'` is the most sensible, easier, and widespread solution. Interpreting terminal output is pure madness, and there's already so many reasons why it would be wrong without looking for them
ascarter has joined #ruby
<adaedra>
git does it, hg does it, sudo does it
bjpenn has quit [Ping timeout: 248 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SegFaultAX>
Sure thing. I guess it's worth also noting that you can use this fact to make a hash meaningfully mappable: {a: 1, b: 2}.map { |k, v| [k.to_s, v] }.to_h
<SegFaultAX>
There might even already be a nicer form for that.
Sucks has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 264 seconds]
arlek has joined #ruby
<alexherbo2>
I like it
<alexherbo2>
and for Object#tap?
<alexherbo2>
is there a functional equivalent?
binaryplease has joined #ruby
futilegames has quit [Quit: futilegames]
hxegon has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
<SegFaultAX>
What do you mean?
<askhat>
Hey crew. Lets say I have a hash `{foo: {bar: 'hello'}}` and a string var = 'bar', so is it possible somehow to make kinda interpolation like `foo.#{var}` to get the 'hello'?
B3rg3lm1r has quit [Ping timeout: 268 seconds]
<SegFaultAX>
askhat: h[:foo][var]
<SegFaultAX>
askhat: h[:foo][var.to_sym] I guess
<askhat>
SegFaultAX much obliged, I'm obviously a newbie =)
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
norc__ has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freakcoder has quit [Quit: Leaving.]
mdw_ has quit [Ping timeout: 240 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
dukedave__ has quit []
dukedave__ has joined #ruby
dukedave__ has quit [Client Quit]
dukedave has joined #ruby
ni291187 has joined #ruby
ni291187 has left #ruby [#ruby]
atmosx has quit [Quit: This is aparting message!]
baweaver has quit [Remote host closed the connection]
devbug has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
tomphp has joined #ruby
Felix444 has quit [Ping timeout: 244 seconds]
marr has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
mhoungbo has quit [Ping timeout: 250 seconds]
haylon has quit [Quit: WeeChat 1.4]
Uber|Dragon has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
Mattx has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
uglybandersnatch has quit [Ping timeout: 244 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
chocoelho is now known as [afk]chocoelho
<Mattx>
How would you calculate the diff between two arrays, keeping an element if it's repeated? Example: ["a", "a", "b"] - ["a", "b", "c"] == ["a", "b"]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 260 seconds]
bry4n_ has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Quit: Leaving...]
<havenwood>
Mattx: You want the intersection of the two Arrays?
<Mattx>
not the intersaction, the difference. I want to remove from the first array all elements of the second array, keeping elements if they're repeated
pawnbox has quit [Ping timeout: 248 seconds]
<Mattx>
I'm looking for an efficient solution, please don't do it with .each, I already have that :P
digitalcakes has quit [Quit: Leaving.]
skade has joined #ruby
<baweaver>
that word, I do not think it means what you think it means
juanca_ has quit [Remote host closed the connection]
<Mattx>
it does, why not?
<aegis3121>
So you only want to delete once?
<Mattx>
the only difference with the "-" operator is that I want to keep repeated elements
ziyadb has quit [Quit: Connection closed for inactivity]
<workmad3>
you may also want to do (second.delete_at(idx); true) instead of just second.delete_at(idx) to account for when you have an array of bools or nils and want to correctly deal with them too :)
<havenwood>
second.each { |n| first.delete_at first.index n }; first
roshanavand has quit [Quit: This computer has gone to sleep]
<workmad3>
havenwood: delete_at borks if you pass it nil :)
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
<havenwood>
second.each { |n| index = first.index n; first.delete_at index if index }; first
<havenwood>
workmad3: good point
htmldrum has joined #ruby
zenlot has joined #ruby
poerror has quit [Ping timeout: 248 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
bjpenn_ has quit [Ping timeout: 260 seconds]
merqlove has quit [Quit: Connection closed for inactivity]
zenlot6 has quit [Ping timeout: 248 seconds]
tvon has quit [Ping timeout: 268 seconds]
tvon has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
BtcBen has quit [Ping timeout: 268 seconds]
Eaven has joined #ruby
wzy has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
axl__ has joined #ruby
digitalcakes has joined #ruby
wzy has joined #ruby
jottr has joined #ruby
poerror has joined #ruby
<Mattx>
Out of curiosity, how slow is using rescue in case of error?
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
roshanavand has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
tacit7 has joined #ruby
bjpenn has joined #ruby
queequeg1 has joined #ruby
[afk]chocoelho is now known as chocoelho
juanca_ has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 264 seconds]
<Mattx>
(I bet using rescue is faster actually)
axl__ has joined #ruby
juanca_ has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
lemur has joined #ruby
<workmad3>
Mattx: don't count on it... exception handling is frequently quite a slow feature
<workmad3>
Mattx: best thing to do would be to profile both options
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
jottr has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
<workmad3>
Mattx: also you'll want to compare against a version of `delete_if` that doesn't find the item in `second` twice (such as doing `(idx = second.index(item)) ? second.delete_at(idx) : false`
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3_ has joined #ruby
_joes__ has quit [Quit: Connection closed for inactivity]
failshell has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
workmad3 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
pawnbox has joined #ruby
mdw has joined #ruby
moos3 has joined #ruby
weemsledeux has joined #ruby
binaryplease1 has joined #ruby
binaryplease1 has quit [Client Quit]
binaryplease1 has joined #ruby
stannard has joined #ruby
binaryplease1 has quit [Client Quit]
pawnbox has quit [Ping timeout: 244 seconds]
binaryplease1 has joined #ruby
nerium has joined #ruby
binaryplease1 has quit [Client Quit]
binaryplease1 has joined #ruby
binaryplease1 has quit [Client Quit]
juanca_ has quit [Ping timeout: 264 seconds]
binaryplease1 has joined #ruby
moos3 has quit [Ping timeout: 244 seconds]
binaryplease has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
binaryplease1 has quit [Client Quit]
stannard has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
binaryplease has joined #ruby
devbug has quit [Read error: Connection reset by peer]
TheMoonMaster has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
devbug has joined #ruby
moos3 has quit [Ping timeout: 240 seconds]
TheMoonMaster has joined #ruby
dfockler has quit [Ping timeout: 244 seconds]
toretore has joined #ruby
theunraveler has quit []
last_staff has quit [Quit: last_staff]
s2013 has joined #ruby
workmad3_ is now known as workmad3
skade has quit [Quit: Computer has gone to sleep.]
ur5us has quit [Remote host closed the connection]
statelesscode has joined #ruby
DLSteve has joined #ruby
bronson has joined #ruby
devbug has quit [Ping timeout: 244 seconds]
kies has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 240 seconds]
binaryplease has quit [Quit: WeeChat 1.4]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chocoelho is now known as [afk]chocoelho
safe has joined #ruby
Mattx has quit [Quit: Leaving]
crowell has quit [Ping timeout: 248 seconds]
paperhouse has joined #ruby
chouhoulis has quit [Remote host closed the connection]
binaryplease has joined #ruby
jottr_ is now known as jottr
juanfra has quit [Ping timeout: 248 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
Abrin_AWAY has quit [Quit: Nettalk6 - www.ntalk.de]
LoneHerm_ has joined #ruby
crowell has joined #ruby
icarus has joined #ruby
cdg_ has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
juanfra has joined #ruby
dikaio has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Abrin_AWAY has joined #ruby
cdg_ has quit [Remote host closed the connection]
dikaio has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 250 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avahey has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 260 seconds]
paperhouse has quit [Quit: Leaving]
<Ox0dea>
workmad3: There's gotta be a better way to do it in O(n), right? https://eval.in/536444
RegulationD has joined #ruby
ariedler has joined #ruby
axl_ has quit [Quit: axl_]
<workmad3>
Ox0dea: I'm not sure there is when dealing with general arrays... probably the best you can manage is O(m*n)
<workmad3>
Ox0dea: pretty sure you could achieve O(n) with sorted arrays though :)
eurialo has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
<Ox0dea>
workmad3: Right, mine's technically O(m*n), but that's still much better than exponential.
firstdayonthejob has quit [Ping timeout: 244 seconds]
a11 has joined #ruby
<workmad3>
Ox0dea: ah, I thought you were asking if I knew an O(n) way :)
bricker has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
<Ox0dea>
Aye, I think that's probably infeasible without sorted inputs.
<ariedler>
more of a general programming question but consider:
<ariedler>
Foo.transaction do .... end; (and after the after_commit are ran)
<ariedler>
Is there a name for this type of thing in a more general sense ? as a programming pattern?
mary5030 has joined #ruby
<Radar>
It's a block
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
siaw has joined #ruby
icarus has quit [Ping timeout: 268 seconds]
<ariedler>
Radar: a little more than that to it in this case; the pattern being that things inside the block add data to the yielder, and run the 'callbacks' at the end