<elomatreb>
Another factor you may want to consider is that some of these ways use a subshell to spawn the process, which means you might run into problems if you have user input or weird filenames
<elomatreb>
Some of them (e.g. system and the popen variants) allow you to bypass the shell and execute the process directly if you pass in multiple arguments or an array, check the docs for that
<waveprop>
wow, okay cool
eightlimbed has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
Sparky2 has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
milardovich has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 248 seconds]
millz_ has joined #ruby
Asher has quit [Quit: Leaving.]
cdg has joined #ruby
Technodrome has joined #ruby
John___ has quit [Read error: Connection reset by peer]
s3nd1v0g1us has joined #ruby
ski7777 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
darkmorph is now known as kitsunenokenja
ski7777 has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 248 seconds]
nowhere_man has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
ski7777 has joined #ruby
tamouse__2 has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
Technodrome has joined #ruby
brucebag has quit [Quit: brucebag nipped out]
brucebag has joined #ruby
brucebag has joined #ruby
brucebag has quit [Changing host]
guacamole has joined #ruby
ski7777 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 250 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
kitsunenokenja has quit [Ping timeout: 258 seconds]
memo1 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Read error: Connection reset by peer]
d^sh has quit [Ping timeout: 268 seconds]
d^sh has joined #ruby
houhoulis has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has quit [Quit: ozcanesen]
PaulCape_ has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 240 seconds]
[[thufir]] has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
PaulCapestany has joined #ruby
Technodrome has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
ski7777 has joined #ruby
alfiemax_ has joined #ruby
jrafanie has joined #ruby
milardovich has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
mson has joined #ruby
AxelAlex has joined #ruby
shinnya has joined #ruby
guacamole has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
[[thufir]]1 has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
alex`` has joined #ruby
Technodrome has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
ski7777 has joined #ruby
uZiel has joined #ruby
ski7777 has quit [Ping timeout: 248 seconds]
cloaked1 has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 260 seconds]
<waveprop>
are non-rails ruby programming jobs common?
ski7777 has joined #ruby
<matthewd>
waveprop: I'd say non-web are unusual, but not incredibly rare
<waveprop>
okay.
<waveprop>
i guess devops jobs are like sysadmin with ruby
<waveprop>
on a different note
s3nd1v0g1us has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 1.9.1]
[[thufir]]1 has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
mjolnird has joined #ruby
ski7777 has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
milardovich has joined #ruby
<baweaver>
waveprop: not really
<baweaver>
DevOps is just the new word for SysAdmin
<baweaver>
and Site Reliability Engineer is the same deal
<baweaver>
Now people will swear up and down it's an empowering new philosophy and culture but really it's the same job at the end of the day.
<baweaver>
Ruby and Python are both common in this arena
<waveprop>
hahah it's true
<baweaver>
Chef is one of the big names for Ruby ops work
milardovich has quit [Ping timeout: 248 seconds]
<baweaver>
My last job was writing the deployment pipeline for Playstation, though to be fair we did use Rails a lot for internal tools.
<baweaver>
Now the running joke is that SysAdmin means Perl, DevOps means Ruby, and SRE means Python
<baweaver>
it's not entirely wrong either :P
<baweaver>
That said you probably want to learn a lot about cloud systems like AWS, container systems like Docker and Kubernetes, and a whole lot of other tools
<baweaver>
the warning I would give is that in the wrong org Ops is incredibly unforgiving with little to no recognition unless something goes horribly wrong
<baweaver>
so be careful hunting jobs because a lot of companies are not kind to their Ops.
guacamole has joined #ruby
kculpis has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<waveprop>
baweaver: That's pretty cool you wrote that deployment pipeline
<baweaver>
It was Rails hooked to the AWS SDK and later to the Google Cloud and other services
<baweaver>
be warned that skipping on Rails won't make jobs any easier out there ;)
<waveprop>
Yeah, that's the joke I was referencing. But the version i heard 'DevOps: sysadmins with Ruby. Site Reliability Engineers: sysadmins with go. Sysadmins: sysadmins with perl.'
<baweaver>
DevOps type jobs just mean you need to know a whole lot about Unix systems as well
<baweaver>
Ah, they're saying Go now?
<baweaver>
Makes sense
<baweaver>
Not a big fan of Go myself, but that's rather immaterial.
<waveprop>
Very cool. I have wondered if orgs would move from aws to google
<baweaver>
The main reason we looked into it was cost
<baweaver>
AWS is the entire package
eightlimbed has joined #ruby
<baweaver>
Google was a lot lighter weight which meant all the magic we got from AWS didn't transfer over and we'd have to write it
<baweaver>
Cost isn't always about the $$$
<baweaver>
Often times it's about opportunity cost as well, namely how long does it take our devs to write this themselves?
<baweaver>
and for most shops the answer is painfully long or impossible
<waveprop>
Nice. I worked as a linux sysadmin supporting Apache Cloudstack several years ago and I also have some AWS experience
<baweaver>
Looking for a new gig?
<waveprop>
Very good point. Replicating what AWS does would not be trivial
<baweaver>
depending on where you're at I may know a few people about
milardovich has joined #ruby
<baweaver>
Ironically though the sysadmin type spot I know of at $WORK involves Rails fairly heavily for inventory and they want someone who knows it :P
<waveprop>
baweaver: Yeah. Background is linux admin and then i took a year to grok security, got my OSCP from offsec. Now i'm spending some time trying to get better at Ruby, but my savings are almost gone, so I have to find a gig.
<baweaver>
Mind if I PM?
<waveprop>
Ha. Nice. Yes unfortunately I am not super familiar with rails yet.
tamouse__ has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
[[thufir]] has joined #ruby
cloaked1 has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
troys_ is now known as troys
tamouse__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
memo1 has quit [Ping timeout: 240 seconds]
NightMonkey has quit [Ping timeout: 258 seconds]
NightMonkey has joined #ruby
<Yzguy>
Gooood Evening
ski7777 has joined #ruby
tamouse__ has quit [Read error: Connection reset by peer]
tamouse__ has joined #ruby
milardovich has joined #ruby
tamouse__ has left #ruby [#ruby]
milardovich has quit [Ping timeout: 240 seconds]
JBbanks has quit [Ping timeout: 240 seconds]
ski7777 has quit [Ping timeout: 240 seconds]
ski7777 has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
govg has quit [Quit: leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has quit [Ping timeout: 268 seconds]
zipace has joined #ruby
ski7777 has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
mjolnird has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
[[thufir]] has quit [Ping timeout: 248 seconds]
[[thufir]] has joined #ruby
kryptoz has quit [Remote host closed the connection]
mjolnird has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
govg has joined #ruby
milardovich has joined #ruby
Technodrome has joined #ruby
enterprisey has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
kryptoz has joined #ruby
ziprar has joined #ruby
zipace has quit [Disconnected by services]
kryptoz has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Remote host closed the connection]
Technodrome has joined #ruby
cloaked1 has quit [Quit: Leaving]
milardovich has joined #ruby
troys has quit [Quit: Bye]
Dimik has quit [Ping timeout: 260 seconds]
ski7777 has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
dinfuehr has joined #ruby
ledestin has joined #ruby
tamouse__2 has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
sysadmins were not expected to be programmers 10 years ago, aside from maybe hacking together bash scripts
<RickHull>
they might run the svn/cvs server but rarely made commits
rippa has joined #ruby
iamarun has joined #ruby
jottr has joined #ruby
<RickHull>
most programmers made reasonable-enough sysadmins for the infra they cared about. you could have programmers running their own svn server
<RickHull>
but not the active directory / LDAP for other parts of the org
tamouse__2 has quit [Ping timeout: 248 seconds]
<RickHull>
i look at devops / SRE as the natural fusion that is implied, by people who care about services, operations, uptime
<RickHull>
and people who care about developer productivity, and maybe even some line of business dev on the side
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
some more sysadmin, some more architecture, and some more automation and infrastructure-as-code
uZiel has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
uZiel has quit [Remote host closed the connection]
iamarun has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
ski7777 has quit [Ping timeout: 248 seconds]
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
JsilverT has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 240 seconds]
iamarun has joined #ruby
dinfuehr has joined #ruby
iamarun has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
imode has joined #ruby
milardovich has joined #ruby
marr has joined #ruby
JsilverT has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
muelleme has joined #ruby
ski7777 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ski7777 has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
exhiled has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ski7777 has joined #ruby
ski7777 has quit [Client Quit]
cdg has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
[[thufir]] has joined #ruby
duderonomy has joined #ruby
enterprisey has quit [Remote host closed the connection]
Yzguy has quit [Quit: Cya]
mtkd has joined #ruby
ta_ has quit [Remote host closed the connection]
muelleme has quit [Ping timeout: 248 seconds]
apparition has joined #ruby
ta_ has joined #ruby
uZiel has quit [Remote host closed the connection]
[[thufir]] has quit [Quit: Leaving.]
uZiel has joined #ruby
[[thufir]] has joined #ruby
heftig has quit [Remote host closed the connection]
[[thufir]] has quit [Client Quit]
[[thufir]] has joined #ruby
sunrunner20 has quit [Read error: Connection reset by peer]
alfiemax_ has quit [Ping timeout: 248 seconds]
uZiel has quit [Remote host closed the connection]
alfiemax has joined #ruby
safetypin has quit [Read error: Connection reset by peer]
sunrunner20 has joined #ruby
alveric has joined #ruby
uZiel has joined #ruby
Antiarc has quit [Ping timeout: 250 seconds]
Antiarc has joined #ruby
alfiemax has quit [Remote host closed the connection]
JsilverT has joined #ruby
ur5us has joined #ruby
heftig has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
ziprar is now known as zipace
[[thufir]] has quit [Quit: Leaving.]
yqt has joined #ruby
alfiemax_ has joined #ruby
JsilverT has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
CrazyEddy has quit [Ping timeout: 248 seconds]
imode has quit [Ping timeout: 240 seconds]
tamouse__2 has joined #ruby
claudiuinberlin has joined #ruby
petto has joined #ruby
jottr has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
tamouse__2 has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 240 seconds]
raatiniemi has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
uZiel has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 260 seconds]
raatiniemi has joined #ruby
dhollin3 has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
Freshnuts has quit [Ping timeout: 268 seconds]
dhollinger has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
aces1up has joined #ruby
<aces1up>
anyone know of a cool math gem that can parse language math statements? ex. two plus 5 times six
ShalokShalom_ has joined #ruby
dviola has joined #ruby
conta has joined #ruby
ShalokShalom has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
xco has joined #ruby
tomphp has joined #ruby
michael3 has joined #ruby
r3kz has joined #ruby
michael3 has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
conta has quit [Ping timeout: 240 seconds]
ski7777 has joined #ruby
kapil___ has joined #ruby
aces1up has quit []
milardovich has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
[[thufir]] has joined #ruby
baweaver is now known as baweaver_away
ski7777 has quit [Ping timeout: 250 seconds]
[[thufir]] has quit [Remote host closed the connection]
zautomata has joined #ruby
milardovich has joined #ruby
Ltem has joined #ruby
cdg has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 252 seconds]
nopolitica has quit [Quit: WeeChat 1.9]
ski7777 has joined #ruby
milardovich has joined #ruby
cdg has joined #ruby
ski7777 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 268 seconds]
ski7777 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
zautomata1 has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Client Quit]
zautomata1 has left #ruby [#ruby]
jameser has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
michael3 has joined #ruby
lele has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
Psybur has joined #ruby
tamouse__2 has joined #ruby
ski7777 has quit [Ping timeout: 248 seconds]
lele has joined #ruby
tamouse__2 has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
banisterfiend has quit [Client Quit]
Psybur has quit [Ping timeout: 250 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
ski7777 has joined #ruby
r3kz has left #ruby [#ruby]
aclark has quit [Remote host closed the connection]
rajno has joined #ruby
petto has quit [Remote host closed the connection]
ski7777 has quit [Ping timeout: 248 seconds]
GodFather_ has quit [Read error: No route to host]
GodFather_ has joined #ruby
ta_ has quit [Remote host closed the connection]
JsilverT has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamouse__2 has joined #ruby
apparition has quit [Quit: Bye]
alfiemax has joined #ruby
milardovich has joined #ruby
ski7777 has joined #ruby
kitsunenokenja has joined #ruby
cdg has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JsilverT has quit [Quit: WeeChat 2.0-dev]
milardovich has quit [Ping timeout: 268 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 252 seconds]
minimalism has quit [Quit: minimalism]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
cdg has joined #ruby
ski7777 has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
tamouse__2 has quit [Ping timeout: 240 seconds]
raynold has quit [Quit: Connection closed for inactivity]
milardovich has quit [Ping timeout: 240 seconds]
ski7777 has joined #ruby
cdg has quit [Remote host closed the connection]
sagax has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
Defenestrate has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
jameser has quit [Client Quit]
ski7777 has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
Defenestrate has joined #ruby
nhhc has joined #ruby
nhhc__ has joined #ruby
nhhc_ has joined #ruby
nhhc has quit [Read error: Connection reset by peer]
nhhc_ has quit [Client Quit]
Devalo has joined #ruby
banisterfiend has joined #ruby
michael3 has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
jameser has joined #ruby
vee__ has quit [Ping timeout: 248 seconds]
ski7777 has joined #ruby
jameser has quit [Client Quit]
Devalo has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
alfiemax has joined #ruby
tomphp has joined #ruby
remix2000 is now known as remix2000_
remix2000_ is now known as remix2000
remix2000 is now known as yaaaaaaaaaa
yaaaaaaaaaa is now known as remix2000
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has joined #ruby
Ltem has quit [Quit: bye]
petto has joined #ruby
petto has quit [Remote host closed the connection]
tomphp has joined #ruby
tomphp has quit [Client Quit]
memo1 has joined #ruby
milardovich has joined #ruby
michael3 has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
prutheus has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<prutheus>
Hey. I have a very simple ruby program which want's to reads an image dimensions (works) and then using rmagick to scale it. worked before i have installed nvidia drivers on my archlinux system. now I get a core dump. https://bpaste.net/show/8465cf1f0350
<prutheus>
can somebody help me please. need to fix that fast or the script can't run what would be a big pain for my company
fnord_ has joined #ruby
<prutheus>
fixed by setting env variable to MAGICK_OCL_DEVICE=OFF
prutheus has quit [Quit: Page closed]
conta has joined #ruby
cadillac_ has joined #ruby
CrazyEddy has joined #ruby
tomphp has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
d^sh has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86 has joined #ruby
xco has quit [Quit: xco]
tomphp has joined #ruby
millz has joined #ruby
DLSteve has joined #ruby
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nhhc__ has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
teej has joined #ruby
kitsunenokenja has quit [Ping timeout: 264 seconds]
hackeron_ has quit [Remote host closed the connection]
m27frogy has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
tristanp has quit [Client Quit]
elphe has quit [Ping timeout: 268 seconds]
cadillac_ has joined #ruby
kitsunenokenja has joined #ruby
elphe has joined #ruby
GodFather_ has quit [Ping timeout: 248 seconds]
tristanp has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
dinfuehr has joined #ruby
tristanp has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
PaulCapestany has quit [Read error: Connection reset by peer]
PaulCape_ has joined #ruby
millz has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
jottr_ has joined #ruby
thinkpad has quit [Ping timeout: 268 seconds]
mson has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
michael3 has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
alfiemax has joined #ruby
milardovich has joined #ruby
Devalo has joined #ruby
xco has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
conta has quit [Quit: conta]
uZiel has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
Devalo has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjolnird has quit [Quit: Leaving]
nadir has joined #ruby
Technodrome has joined #ruby
kitsunenokenja has quit [Ping timeout: 258 seconds]
ski7777 has joined #ruby
s3nd1v0g1us has joined #ruby
pragmatism has quit [Ping timeout: 255 seconds]
kryptoz has joined #ruby
Sembei has quit [Ping timeout: 268 seconds]
dviola has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
imode has joined #ruby
qqmash has joined #ruby
kryptoz has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
houhoulis has joined #ruby
nmingotti has joined #ruby
InfinityFye has quit [Quit: Leaving]
uZiel has quit [Ping timeout: 248 seconds]
<nmingotti>
Hi there, I has a simple question, when type a variable in irb pointing to an object whose class I defined I see (1) name of the Class (2) address of the object (3) attributes of the object. I would like not to see by default the attributes. How can I do that ?
<nmingotti>
*have
michael3 has joined #ruby
mavriq has joined #ruby
<mavriq>
I can't seem to start my jekyll serve function, it says 'block in materialize could not find rake 10.4.2' .. can I just simply install that to rid this pain and get coding? / roobynoob
fnord_ is now known as CrazEd
<nmingotti>
I tried "to_s" but it is not working, It gives what i expect with "print" but not in "irb"
CrazEd is now known as Guest11245
swills has quit [Ping timeout: 240 seconds]
mavriq has quit [Quit: Lost terminal]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 248 seconds]
goyox86__ has quit [Quit: goyox86__]
jottr_ has joined #ruby
raynold has joined #ruby
<apeiros>
nmingotti: you can change pry's configuration to use something else than #inspect on the return value
<apeiros>
err, *irb*'s config
<apeiros>
I don't know the config by heart, but I'd google for something like "irb prompt"
jottr_ has quit [Client Quit]
raatiniemi has quit [Ping timeout: 248 seconds]
<apeiros>
it's probably IRB.conf[:INSPECT_MODE]
<apeiros>
hrm, seems you can't provide a custom inspect routine :-(
<apeiros>
switch to pry then :D
Guest11245 is now known as CrazEd
CrazEd is now known as Guest15132
lytol has joined #ruby
houhouli_ has joined #ruby
larcara has joined #ruby
houhoulis has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
milardovich has joined #ruby
Ltem has joined #ruby
millz has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
Technodrome has joined #ruby
ledestin has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
Dimik has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
houhouli_ has quit [Remote host closed the connection]
conta has joined #ruby
hanmac has left #ruby [#ruby]
Asher has joined #ruby
guacamole has joined #ruby
JBbanks has joined #ruby
dreinull has joined #ruby
<dreinull>
I know, it's out of curiosity, how would I go about and create a class name that has a dot in it? like class MyClass.org; end?
<c-c_>
How to get shell to pry running on a daemon?
<tobiasvl>
dreinull: uh, I don't think you can?
<jhass>
dreinull: class MyClass; def name; "MyClass.org"; end; end; :P
<jhass>
* def self.name
<nmingotti>
Somebody answered my question in StackOverflow, I put here the link for reference to other who may be interested. https://goo.gl/xxs9vj
<tobiasvl>
jhass: clever
<nmingotti>
The key is the "inspect" method. bye
<dreinull>
jhass can't create objects with that tho
nmingotti has quit [Remote host closed the connection]
<dminuoso>
dreinull: Let's analyze what class does.
<dminuoso>
dreinull: class Foo; end; is about the same as Foo = Class.new
<dminuoso>
So it just creates a const named "Foo", and assigns it the value of a constructed class.
konsolebox has quit [Ping timeout: 248 seconds]
<dminuoso>
dreinull: So now the question becomes, can constants have "dots" in their name
<dminuoso>
>> Kernel.const_set("F.o", 1)
<ruby[bot]>
dminuoso: # => wrong constant name F.o (NameError) ...check link for more (https://eval.in/898309)
<jhass>
dreinull: MyClass.new sure works
<dminuoso>
Ohh my!
<dminuoso>
jhass: You just gave me an idea.
<jhass>
oh no
<dminuoso>
new = -> (klass, arg) { klass.new(arg) }.curry
<dminuoso>
this should be a thing!
<dminuoso>
In my library
<jhass>
def self.org; self; end ?
<dminuoso>
Or rather
<dminuoso>
new = -> (klass, args) { unapply(klass.new).*(arg) }.curry
selim has quit [Ping timeout: 248 seconds]
<dminuoso>
*apply rather
muelleme has quit [Ping timeout: 248 seconds]
<jhass>
so actually class MyClass; def self.org; self; end; def self.name; "MyClass.org"; end; end; should fake it pretty good
<dminuoso>
Haha
<c-c_>
hehe I guess thats actually a shell question
<dreinull>
jhass dminuoso ha :) that'll do. Great guys!
<jhass>
I don't get it and not even ashamed of that :P
fuzzyhorns has quit [Ping timeout: 268 seconds]
<dreinull>
:)
<dreinull>
never heard of defc
milardovich has joined #ruby
<dminuoso>
jhass: Never wanted to do something like make = Range.new; [[1,2],[3,4]].map(&:make) ?
<dminuoso>
dreinull: Or well rather:
<jhass>
mh. reminds me of java style function references
<dminuoso>
[[1,2],[3,4]].map(&Range.new)
<dreinull>
what's that & do?
<jhass>
but not sure I ever wanted :D
<dminuoso>
dreinull: It's the proc<>block conversion operator
<dreinull>
ok, this is where I'm usually getting lost.
<dminuoso>
dreinull: in parameter position it binds a block to a named proc object, and in argument position it converts a proc to a block
<dreinull>
I have no problem getting my head around weird metaprogramming but procs and blocks ...
<dminuoso>
dreinull: def f(&bar); end just binds incoming blocks to a Proc object, and stuffs it into bar.
<dminuoso>
dreinull: (a proc is just a reified block)
<dminuoso>
This you probably frequently do.
NightMonkey has quit [Ping timeout: 248 seconds]
<dreinull>
yes, but still. Doing and understanding is two different things
<dminuoso>
And when you have another method like Array#map which expects a block (but not a proc argument!), you can convert a proc back into a block by doing: arr.map(&some_proc)
cadillac_ has quit [Ping timeout: 248 seconds]
HTTP_____GK1wmSU has joined #ruby
NightMonkey has joined #ruby
<dreinull>
I need a glas of wine
cadillac_ has joined #ruby
<dminuoso>
dreinull: And & is actually capable of converting anything into a block, as long as it supports to_proc
fuzzyhorns has joined #ruby
<dminuoso>
[1,2,3].map(&:to_s)
HTTP_____GK1wmSU has quit [K-Lined]
<dminuoso>
This works because Symbol has an instance method to_proc (which builds a proc from itself)
<ruby[bot]>
dminuoso: # => /tmp/execpad-500af017e8d0/source-500af017e8d0:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/898326)