adeponte has quit [Remote host closed the connection]
steakknife has quit [Quit: Leaving.]
steakknife has joined #ruby
steakknife has quit [Read error: Connection reset by peer]
steakknife has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
bananagram has quit [Ping timeout: 244 seconds]
Guest81709 has quit [Ping timeout: 252 seconds]
resure has joined #ruby
SCommette has quit [Quit: SCommette]
amaya_ has joined #ruby
<null->
There's another tool like RVM that is more lightweight and doesn't do as much for you, what is its name?
<bnagy>
rbenv
<bnagy>
and there's an even lighter one, but I don't see the point of it (and can't remember its name)
resure has quit [Remote host closed the connection]
<null->
bnagy: yeah, rbenv, thank you
<Hanmac>
null-: debian/ubuntu has its own ruby-version-manager its even more lighter than rbenv
austinbv has quit [Ping timeout: 248 seconds]
<Hanmac>
"update-alternatives --config ruby"
<null->
Hanmac: :) - yeah I'm using debian's stock ruby1.9.3 version now
octavio has joined #ruby
<Hanmac>
you maybe need this too: "update-alternatives --config gem"
mikepack has joined #ruby
austinbv has joined #ruby
nari has quit [Ping timeout: 264 seconds]
<null->
Hanmac: using wheezy, the thing with debian is rubygems are better installed through apt-get instead of gem
<_br_>
1;3D/exit
<_br_>
ups ww, sorry
<null->
Hanmac: and gems in the official debian repos can get old
<Hanmac>
yeah the funny thing is that you could install gems with apt-get too ... but the versions are maybe outdated
<null->
Hanmac: right, that's my point
<null->
not that I care much right now, just learning ruby
chimkan has left #ruby [#ruby]
<Hanmac>
i would prefer to install the gems with gem, i only sayd "update-alternatives --config gem" so it find the right gem command (and does not use the 1.8 one)
<Hanmac>
zigomir i think you are in the wrong channel
<zigomir>
hehe, sorry! no i'm not, but i wanted to share this with my coworkers ... yeah, we're still doing php here :(
<Hanmac>
hehe, i can do the same work in C too :P
<zigomir>
;)
rakm has quit [Ping timeout: 246 seconds]
ltsstar has quit [Quit: ltsstar]
igaiga has quit [Remote host closed the connection]
rakm has joined #ruby
cezar has joined #ruby
dhruvasagar has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
noyb has quit [Ping timeout: 260 seconds]
justinmcp has quit [Remote host closed the connection]
cezar has quit [Client Quit]
dangerousdave has joined #ruby
hemanth has quit [Ping timeout: 260 seconds]
maxmmurphy has joined #ruby
dv_ has quit [Ping timeout: 245 seconds]
<Yomero>
.
<Hanmac>
·
maletor has quit [Quit: Computer has gone to sleep.]
<Yomero>
when i have isntalled ruby 1.9.3 and i run ruby example.rb this is using the yarv?
babinho has joined #ruby
sambio has quit []
aganov has joined #ruby
sn0wb1rd has quit [Quit: I will be right back]
<Hanmac>
Yomero, yeah YARV is one of the names for 1.9
maletor has joined #ruby
<Yomero>
then i dont need nothing more for use the virutal machine? with that i already i'm using it?
dv_ has joined #ruby
hemanth has joined #ruby
<Hanmac>
Yomero you dont need to care about how ruby works internal with virtual maschines or not
jgrevich has quit [Quit: jgrevich]
aliljet has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
sonkei has joined #ruby
moshee is now known as Guest45814
dhruvasagar is now known as Guest70059
apok has quit [Quit: apok]
Eplemosen has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
mrdodo has joined #ruby
g_rotbart has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
mbk has joined #ruby
a_a_g has joined #ruby
banisterfiend has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mrdodo has quit [Ping timeout: 246 seconds]
g33k has quit [Quit: Leaving]
Criztian has quit [Remote host closed the connection]
[diecast] has joined #ruby
kroniksenvy has joined #ruby
charliesome has joined #ruby
anildigital_work has joined #ruby
<kroniksenvy>
if i have array ticket = [12, 47, 35] what is the diffirence between these two calls ticket.sort and ticket.sort!
<kroniksenvy>
what does ! i thot it would to a counter reverse rom biggest to smallest but the output is the same
tagrudev has joined #ruby
<Hanmac>
kroniksenvy the second modifies the array itself ... the first makes a copy
<Hanmac>
and the ! is part of the method name
<Yomero>
then now ticket is [12,35,47] ?
LouisGB has joined #ruby
polysics has joined #ruby
<kroniksenvy>
Hanmac: Ah so i can have unordered array can if i need it sorted somewhere and unsorted elsewhere i can just says .sort and it makes a copy meaning i dont have to define a new variable for the copy
<charliesome>
i suppose a replacement bot is needed!
<kroniksenvy>
Man i like ruby more and more
<Hanmac>
when you use "sorted_ticket = ticket.sort" then ticket is still unsorted
<kroniksenvy>
thats pretty neat
hoelzro|away is now known as hoelzro
<kroniksenvy>
oh wow it works with reverse as well
<kroniksenvy>
is there a way to see what a certian variable is
<kroniksenvy>
say i have an array with keys and values is there a way to print it out to see the structure
chrisja has joined #ruby
<kroniksenvy>
similar to var_dump() or print_r() in php
pingfloyd has quit [Quit: pingfloyd]
eldariof has joined #ruby
Asher has quit [Read error: Connection reset by peer]
dkannan has joined #ruby
Asher has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
sspiff has quit [Changing host]
sspiff has joined #ruby
<kitofr>
kroniksenvy give an example... tried inspect?
adambeynon has joined #ruby
<kroniksenvy>
found .inspect yes
ghosTM55 has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
Takehiro_ has joined #ruby
pdelgallego has joined #ruby
ryanf has quit [Quit: leaving]
flype has joined #ruby
kapowaz has joined #ruby
LouisGB has quit []
pngl has joined #ruby
<pngl>
Is there a simple file-based key-value persistent database out there? It's for a toy project and I don't want the overhead of setting up something like mongo.
LouisGB has joined #ruby
elico has joined #ruby
fixl has joined #ruby
<hoelzro>
pngl: BDB?
Takehiro_ has quit [Remote host closed the connection]
sonkei has quit [Quit: Computer has gone to sleep.]
<pngl>
hoelzro: thanks, this looks perfect
specialGuest has joined #ruby
<bnagy>
tokyo cabinet
<bnagy>
much better than bdb
<bnagy>
same concept though
tagrudev has quit [Quit: Me = Awesome]
<bnagy>
also very good ruby wrapper
tagrudev has joined #ruby
haxrbyte has joined #ruby
* hoelzro
checks out TC
chrxn has joined #ruby
Takehiro_ has joined #ruby
mucker has joined #ruby
Criztian has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
Markvilla has joined #ruby
echobravo has quit [Read error: Connection reset by peer]
Takehiro_ has quit [Remote host closed the connection]
c0rn_ has quit []
Takehiro_ has joined #ruby
<pngl>
bnagy: kyoto cabinet today maybe?
Takehiro_ has quit [Remote host closed the connection]
Iszak has quit [Read error: Connection reset by peer]
berserkr has joined #ruby
arturaz has joined #ruby
coolwaters has quit [Remote host closed the connection]
timonv has joined #ruby
lessthanphil has joined #ruby
Criztian has quit [Remote host closed the connection]
Guest70059 has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
dhruvasagar has joined #ruby
luckyruby has quit [Remote host closed the connection]
Hanmac has joined #ruby
<Hanmac>
kroniksenvy: p variable ?
<Hanmac>
@all: NEVER DO "cycle.reverse" or you will pay for that :D
roiko has joined #ruby
qwerxy has joined #ruby
Iszak has joined #ruby
<kroniksenvy>
I am doing ruby online browser tutorial and came to point of creating new classes and just want following confirmed
<kroniksenvy>
For instance i created a class that has attributes title, time, fulltext
Yomero has quit [Ping timeout: 246 seconds]
<kroniksenvy>
now i defined a method initialize which will serve as construstor an in it i say @title = title, is @ similar to this in java
<kroniksenvy>
where @ points to a class attribute and title to method attribute
<Hanmac>
hm yes ... @ tells ruby that the variable is a instance variable
<hoelzro>
kroniksenvy: @title is an instance variable
<Paradox>
i brought some mayonnaise would you like some?
<kroniksenvy>
: P
roiko_ has joined #ruby
<kroniksenvy>
one thing i dont fully understand is blog.each do |entry| what does |entry| represent
<bnagy>
pngl: no, the KC API is much clunkier
<Paradox>
kroniksenvy, blog is a collection
<Paradox>
each iterates over a collection and yields something to its block
<bnagy>
and TC performs more than fine for single threaded stuff
robotmay has joined #ruby
xbayrockx has joined #ruby
<Paradox>
blog.each do |entry| is the same as [1, 2, 3, 4, 5].each do |number|
<kroniksenvy>
Paradox: Ahhh oke i understand
elaptics`away is now known as elaptics
tvw has joined #ruby
roiko has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby
chrxn has quit [Ping timeout: 252 seconds]
<shevy>
kroniksenvy you can use any names within the two |
banisterfiend has joined #ruby
<Paradox>
yeah
<shevy>
"entry" is just a fairly logical name
<Paradox>
you can do %w{herp derp lorp dorp}.each do |blorghlorg|
<kroniksenvy>
shevy: yes understand it assigns each part of teh blog collection to name that is in between ||
<shevy>
:)
zommi has quit [Ping timeout: 265 seconds]
<kroniksenvy>
I like ruby more and more
ly_gs has joined #ruby
ly_gs has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
<kroniksenvy>
I have spent trying to understand and learn how to use php frameworks and its been so dissapointing everything is so complex, outdated, un-supported with almost dead cummunities
<shevy>
hehe
<shevy>
well
<shevy>
that can happen in every language
<kroniksenvy>
then someone said Ruby & RoR i started looking
<kroniksenvy>
and i was like wow
<Hanmac>
kroniksenvy assign is maybe not the right word ... its more like a shadowing ...
asshopo has quit [Ping timeout: 260 seconds]
<Paradox>
kroniksenvy, you can pair that line down to "I have spent trying to understand and learn how to use php and its been so disappointing and almost dead"
<shevy>
I use ruby, but not ruby on rails for instance. I would not know how the rails community is
<workmad3>
shevy: we're wonderful
asshopo has joined #ruby
<Paradox>
shevy, you know that part of a venn diagram where they overlap?
justsee has quit [Quit: Leaving...]
<workmad3>
shevy: join us... :D
<shevy>
PHP is awful
<Paradox>
i used to draw boobs there in highschool
<shevy>
Paradox, I dont even know what a venn diagram is :)
<JonnieCache>
so we dont have to go over it again ;)
<shevy>
that is still one thing PHP does better than ruby actually... because so many companies use it
banisterfiend has quit [Ping timeout: 260 seconds]
<shevy>
yeah that is a good page
<Xeago>
of all the company's I applied at for my internship, none were safe
<shevy>
" A good carpenter can drive in a nail with either a rock or a hammer, but how many carpenters do you see bashing stuff with rocks?" <-- epic
<Hanmac>
i know a good point for php ...
<Hanmac>
its better than swig :P
<kroniksenvy>
lol
banisterfiend has joined #ruby
chussenot has quit [Ping timeout: 260 seconds]
chussenot_ is now known as chussenot
pdelgallego has quit [Quit: pdelgallego]
ly_gs has joined #ruby
<shevy>
lol
<workmad3>
Hanmac: PHP is also marginally better than brainfuck
<hoelzro>
haha, marginally
<kroniksenvy>
One thing i dislike about PHP is naming convention for methods its just horrible i mean i know C, C++, Java, Python i mean C has better named methods than PHP and other is build upon another
<Hanmac>
workmad3 did you know about "Turing complete"?
<kroniksenvy>
PHP was not a OOP language from start Classes were added later and in a very un thought way
pdelgallego has joined #ruby
<kroniksenvy>
thats prolly why most of MVC based Frameworks end up looking so horrible
<kroniksenvy>
_$App()_::$app->users->getName -.- Is better than say Users.getName
Eplemosen has joined #ruby
<workmad3>
kroniksenvy: as a slight spanner in that reasoning... Python MVC frameworks don't look horrible
<workmad3>
or at least, not as horrible as PHP :)
<kroniksenvy>
I use Python right now im implementing a TFTP i love it
<kroniksenvy>
but i have never used Django
<workmad3>
kroniksenvy: python had OO concepts added to the language after the fact too ;)
<kroniksenvy>
or Python itself for web
<kroniksenvy>
I think language build for desktop software development should stay there
<kroniksenvy>
: ) like java
tomaw_ has joined #ruby
<workmad3>
java wasn't built for desktop software dev
fermion has joined #ruby
<workmad3>
it was originally meant for set-top boxes and, because it was meant for embedding like that, was then pushed for web applets and server programming
<kroniksenvy>
hm
robustus has joined #ruby
cascalheira has joined #ruby
<amaya_>
flash is more and more popular.
<workmad3>
similarly, ruby wasn't originally created with web development in mind (how could it be? it was created in the mid 90's, when 'web development' didn't exist)
<Hanmac>
java was (maybe) a good idea ... but oracle drive it against a tree
eykosioux has quit [Read error: Connection reset by peer]
<workmad3>
Hanmac: it's the whole ecosystem that drives me crazy with java... and the language itself is stilted
<kroniksenvy>
flash is not a language
<workmad3>
amaya_: flash is getting less popular, not more, because of issues with mobile devices
<kroniksenvy>
Java is awsome simply awsome for everything desktop/mobile in mind
<workmad3>
kroniksenvy: haha
<Hanmac>
flash will be dead too because adobe dont want support it anymore ...
<kroniksenvy>
its easy to learn and understand and looks good
<workmad3>
kroniksenvy: it's nice to find someone that still drinks that kool-aid
<workmad3>
aid? ade?
<hoelzro>
aid.
zommi has quit [Ping timeout: 265 seconds]
<kroniksenvy>
workmad3: i use it for all my desktop apps only limitations is the OS due to JVM
<workmad3>
hoelzro: heh :) they need to bring kool-aid over here more
<kroniksenvy>
but hey portability
<kroniksenvy>
everything at a price
<workmad3>
kroniksenvy: good for you
tomaw- has joined #ruby
<JonnieCache>
the jvm is pretty amazing tech you cant knock it
<workmad3>
yeah, the JVM is awesome
s1n4 has joined #ruby
<workmad3>
java... not so much
pskosinski has joined #ruby
roiko_ has quit [Quit: quit]
s1n4 has quit [Client Quit]
<kroniksenvy>
One thing Java did for me that i will be forever thankfull is teach me about OOP and MVC patterns
<hoelzro>
workmad3: where's here for you?
<workmad3>
and for all it's awesomeness, the JVM still doesn't really solve portability issues... it's still quite easy to get tied in with non-portable code that only runs on specific JVM versions and sometimes only specific OS/JVM combos
<workmad3>
hoelzro: UK
<JonnieCache>
too much internet we all speak in americanisms now :(
matrixise has joined #ruby
<kroniksenvy>
llol
<workmad3>
kroniksenvy: be prepared to relearn OO principles with ruby then ;)
<hoelzro>
workmad3: ah ha...I wouldn't say you're missing much in the realm of kool-aid, then =)
<hoelzro>
it's sugar + water
<JonnieCache>
yeah now you can use actual OO without bullshit primitives
<workmad3>
hoelzro: I've had some before... I quite like it (that said, I think I use half the amount of sugar that the packet says to use)
<hoelzro>
haha
libryder has left #ruby [#ruby]
tomaw- is now known as tomaw
<workmad3>
hoelzro: I especially like grape flavour... for some reason, grape has never been a particularly big flavour in the UK, and even when I've found some it tastes nothing like american versions
<hoelzro>
interesting...
<hoelzro>
I can't find "American" grape flavor here at all (NL)
<JonnieCache>
GRAPE DRANK
<workmad3>
it's only in recent years I've started seeng grape flavours in the UK at all
<workmad3>
*seeing
<hoelzro>
haha, grape drink
<hoelzro>
sugar + water + purple
<workmad3>
hoelzro: don't knock the purple
Eplemosen has quit [Read error: Connection reset by peer]
Eplemosen has joined #ruby
pvh has joined #ruby
tonini has quit [Remote host closed the connection]
loves_color_text has quit [Remote host closed the connection]
tomaw_ has quit [Ping timeout: 604 seconds]
Eplemosen has quit [Ping timeout: 260 seconds]
zommi has joined #ruby
dotemacs_ has joined #ruby
xpen_ is now known as xpen
<shevy>
workmad3 how is beer in the UK?
matrixise has quit [Read error: Operation timed out]
<shevy>
hoelzro, yeah... I am going to asian shops ... korean drinks... was heavily overpriced. I like the japanese calpico/calpis though
<JonnieCache>
beer in the UK is pretty great
<JonnieCache>
we have ale
<matti>
Ale.
<matti>
Ale.
<JonnieCache>
its like beer but with bits of wood and beard in it
<JonnieCache>
its great
<matti>
Not a huge fan of ale myself.
<Xeago>
and beard, wtf JonnieCache
<shevy>
beer with wood??
<shevy>
hmm I dont think I know ale... only beer
<JonnieCache>
lol thats just a reference to the stereotypical ale drinker
<JonnieCache>
tbh you have to line up a lot of ducks in a row to make the attack work
<JonnieCache>
but its still a very serious bug
<bnagy>
I think it's too early to say
cantonic_ has joined #ruby
<JonnieCache>
yeah i guess so
<bnagy>
they haven't even presented it yet, this is just people guessing
pdelgallego has quit [Quit: pdelgallego]
<JonnieCache>
well colin percival seemed pretty sure of himself on HN last night
<JonnieCache>
and i trust that guy
<bnagy>
I know both of those guys, and when the padding attack came out it was actually more serious than it sounded
nilg has quit [Remote host closed the connection]
fcoury has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<Xeago>
when did they publish that it exists?
<Xeago>
e.g. not the prove or contents of the bug
<JonnieCache>
there have been rumours building for some time
<JonnieCache>
its not actually published yet
pdelgallego has joined #ruby
s1n4 has quit [Quit: leaving]
<Xeago>
but has the researching party claimed it exists?
<JonnieCache>
but google have put a patch into chrome that disables certain ssl features, and the bug description is marked as SECRET or something
s1n4 has joined #ruby
<JonnieCache>
thats what got people really excited last night
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
<shevy>
cool
<shevy>
secret bugs
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<JonnieCache>
most security bugs are secret
<JonnieCache>
this one is probably worth $50k or more. or it would be if it was still a secret
<JonnieCache>
actually maybe not that much. windows code execution 0days are reportedly worth that
<Xeago>
chromium supposedly put a commit in more then a month ago
<JonnieCache>
is that worse than SSL hijacking? i dunno
<Xeago>
ssl is more widespread
amaya_ has quit [Ping timeout: 252 seconds]
<Xeago>
imo ssl > windows code execution
guns has joined #ruby
<bnagy>
some bugs are worth hell of a lot more than $50k
nilg has joined #ruby
<JonnieCache>
yeah? thats just a number i saw someone quoting. they were probably being taciturn so as not to appear too blackhat :)
<JonnieCache>
what would be a really expensive sploit then?
nohonor has joined #ruby
swarley has joined #ruby
<shevy>
something that hijacks the computer
<shevy>
"Doomsday" bugs
<Xeago>
e.g. click link, get control
matrixise has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
<JonnieCache>
yeah those arent worth *that* much
<bnagy>
JonnieCache: most I've ever heard quoted is 250
<JonnieCache>
whats that for, DOD specced firewalls or something?
<bnagy>
most I have solid knowledge of is about half that
<bnagy>
as in something that has actually been sold as opposed to asking prices
<JonnieCache>
ah right
<shevy>
blackmail industry!!!
chadaw has joined #ruby
<bnagy>
but there are definitely bugs that would go for that
<JonnieCache>
its a fucking wildwest in the world of computer security. i kindof regret not getting into it
<bnagy>
a perfect ios bug for example
<JonnieCache>
but id inevitably get myself into trouble. especially if id got into it a few years ago
S1kx has quit [Read error: Connection reset by peer]
<Xeago>
I would love to get into that
<JonnieCache>
ah yes code execution on ios via 802.11x beacon packets would be a valuable bug
<Xeago>
but lack calculus atm
<bnagy>
JonnieCache: that's a bit too local
love_color_text has joined #ruby
<JonnieCache>
hmm surely that would be valuable in itself though?
<bnagy>
Xeago: I'm not sure how calculus applies :)
Takehiro has joined #ruby
<Xeago>
without calculus good luck explaining diffie hellman
<bnagy>
wtf are you talking about?
<bnagy>
diffie hellman is modular arithmetic
<JonnieCache>
thats the reason ive not got into it. i can do sqli, i can do bits of reversing occasionally, etc etc but ive done absolutely no mathematics since i was 16. i can barely do simple algebra
kitofr has left #ruby [#ruby]
NimeshNeema has joined #ruby
<bnagy>
trust me, you almost never need advanced maths to find bugs
Criztian has quit [Remote host closed the connection]
<bnagy>
at the most some linear algebra / discrete maths
<bnagy>
crypto is a whole different field
<Xeago>
wait, isn't modular arithmetic part of calculus?
<bnagy>
no, not really
<Xeago>
blrugh, bad dictionary!
<JonnieCache>
hmmm they do say the security industry finds it impossible to recruit
<JonnieCache>
maybe ill just smash this web development thing for a few more years then branch out
<bnagy>
if you want to get into appse, as in finding exploiting bugs then you want to start asap
<bnagy>
ime reversing / exploits are a young man's game
<JonnieCache>
hmm yeah well im still only 25
<bnagy>
*appsec
<bnagy>
5 years too old then :)
<JonnieCache>
yeah exactly :(
<Xeago>
only 20 :3
<Xeago>
perfect age!
<Xeago>
right?
<JonnieCache>
i am kinda worried about being on the scrapheap at 40 that is going to suck
<bnagy>
holy crap I was doing security literally since before you were born
<JonnieCache>
i guess i need to own the shop by then
<bnagy>
I think I'll go and get drunk and play some pool :<
<shevy>
\o/
fmcgeough has quit [Quit: fmcgeough]
<bnagy>
night chaps
<JonnieCache>
lol have fun
<Xeago>
poor bnagy..
<Xeago>
don't forget, ale!
<shevy>
why do they call it ale and not beer?
<Xeago>
ale != beer
<Xeago>
ale is a beer
<JonnieCache>
beer is the top level of the hierarchy
<shevy>
hehe
<JonnieCache>
ale is a beer, the stuff most people call beer is lager
<JonnieCache>
then there is the Stout category, which includes things like guinness
<Xeago>
I love stout imo
<Xeago>
best beer ever
* hoelzro
initially read that as "I love stdout imo"
<Xeago>
lal
kvirani has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
<quazimodo>
with regards to scope
seoaqua has quit [Ping timeout: 245 seconds]
frogprince_mac has joined #ruby
<quazimodo>
variables introduced within a block dont exist outside it right
<quazimodo>
since the block is like almabda func
xpen has quit [Remote host closed the connection]
Morkel has joined #ruby
<quazimodo>
but variables outside the block do exist within it
TechCel has quit [Remote host closed the connection]
<Xeago>
tbh
fcoury_ has joined #ruby
<Xeago>
I have no idea how your methods works from line10 downwards
pvh_ has joined #ruby
kapowaz_ has joined #ruby
fr0gprince_ has joined #ruby
EPIK has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<Xeago>
apply the refactoring suggested here (minmax_by, and return if .empty?, both twice)
<Xeago>
and gist it
WhereIsMySpoon_ has joined #ruby
<Xeago>
this english a bit acceptable: "Mentors obtain a basis of understanding by getting feedback early and often about the work performed and it's result. This feedback contains concise, coherent information." ?
cakehero has joined #ruby
diegovio1a has joined #ruby
JC_SoCal_ has joined #ruby
larissa has joined #ruby
<hoelzro>
Xeago: its, not it's
fyolnish has joined #ruby
<Xeago>
what's the theory behind that
parus_ has joined #ruby
<hoelzro>
and I would probably say "results" instead of "result"
rcj__ has joined #ruby
<hoelzro>
Xeago: it's -> it is
crankyco1er has joined #ruby
mucker_ has joined #ruby
<JonnieCache>
TIL carl sagan smoked weed his whole life
lorn_ has joined #ruby
<JonnieCache>
that explains a lot
<hoelzro>
its -> in the possession of it
bnagy_ has joined #ruby
maddog__ has joined #ruby
<Xeago>
oky
Gate_ has joined #ruby
<hoelzro>
other than that, looks good =)
heftig_ has joined #ruby
ihme-TTilus has joined #ruby
mksm has joined #ruby
<Xeago>
imo, anything can only have 1 result, which is an array of effect
<Xeago>
s
Freijo has joined #ruby
babinho_ has joined #ruby
tommyvyo has joined #ruby
<Xeago>
the result of life is death
LouisGB has quit [Ping timeout: 252 seconds]
lggr_ has joined #ruby
<Xeago>
dno what I was saying
<Xeago>
ignore that
mksm is now known as Guest52127
saispo has joined #ruby
Neurotic has joined #ruby
kvirani has quit [Remote host closed the connection]
Neurotic has quit [Excess Flood]
thunderstrike has joined #ruby
<Xeago>
hoelzro: why results instead of result
<hoelzro>
I have no idea
<Xeago>
or should I just say outcomes or effects instead of result(s)?
<hoelzro>
it just sounds better, imo
<hoelzro>
I'd stick with results
<Xeago>
ty
<hoelzro>
np
<quazimodo>
upon getting coffee
yosafbridge` has joined #ruby
pradeept` has joined #ruby
fyolnish has quit [Ping timeout: 240 seconds]
<quazimodo>
Hanmac: you so clever!
Neurotic has joined #ruby
dmiller has quit [Remote host closed the connection]
baphled has joined #ruby
fcoury has quit [*.net *.split]
JC_SoCal has quit [*.net *.split]
cantonic has quit [*.net *.split]
eykosioux has quit [*.net *.split]
Progster has quit [*.net *.split]
kapowaz has quit [*.net *.split]
pvh has quit [*.net *.split]
adambeynon has quit [*.net *.split]
mucker has quit [*.net *.split]
babinho has quit [*.net *.split]
gogiel has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
stillEPIK has quit [*.net *.split]
maesbn has quit [*.net *.split]
Nisstyre-laptop has quit [*.net *.split]
frogprince has quit [*.net *.split]
heftig has quit [*.net *.split]
diegoviola has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
mikalv has quit [*.net *.split]
cespare has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
TheShadowFog has quit [*.net *.split]
parus has quit [*.net *.split]
cout has quit [*.net *.split]
Guedes has quit [*.net *.split]
pradeepto has quit [*.net *.split]
lggr has quit [*.net *.split]
crankycoder has quit [*.net *.split]
tris has quit [*.net *.split]
TTilus has quit [*.net *.split]
maddog_ has quit [*.net *.split]
Gate has quit [*.net *.split]
Guest41231 has quit [*.net *.split]
lorn has quit [*.net *.split]
mfridh has quit [*.net *.split]
{^_^}__ has quit [*.net *.split]
Fraeon has quit [*.net *.split]
simao has quit [*.net *.split]
rcj_ has quit [*.net *.split]
bnagy has quit [*.net *.split]
rcj__ is now known as rcj_
cantonic_ is now known as cantonic
eykosioux_ is now known as eykosioux
lggr_ has quit [Ping timeout: 260 seconds]
ltsstar has quit [Quit: ltsstar]
kapowaz_ is now known as kapowaz
<quazimodo>
Hanmac: how you get so smark?
ihme-TTilus is now known as TTilus
<Hanmac>
i read the docs :P
simao has joined #ruby
<hoelzro>
smarkiness is a key attribute of a Ruby developer!
beneggett has quit [Quit: Computer has gone to sleep.]
locriani_ has joined #ruby
<jrajav>
invisime: If you're really up to it email me and I'll send you back instructions on getting it set up. Like I said in the gist it really is pretty simple - You just need a chroot, Ruby, and a few libraries
jasonLaster has joined #ruby
<jrajav>
Cinch takes care of most of the magic
{^_^}____ has quit [Ping timeout: 248 seconds]
asv has joined #ruby
<invisime>
jrajav: I've got a headless server at home that doesn't do much and has fairly reasonable uptime.
<jrajav>
Sounds ideal
savage- has quit [Remote host closed the connection]
<Xeago>
is it possible to put it on heroku, as a worker dyno?
<invisime>
Xeago: possible, yes. free, no.
rakl has joined #ruby
<jrajav>
No, it relies pretty heavily on chroot permissions
<Xeago>
1 dyno is free
<Xeago>
aight
<jrajav>
The scaling wouldn't be an issue if it could be done purely in code, true
hoelzro is now known as hoelzro|away
<jrajav>
But good luck messing with Ruby sandboxes
hoelzro|away is now known as hoelzro
Takehiro has quit [Remote host closed the connection]
ken_barber has joined #ruby
<invisime>
oh, right. I originally logged in to ask a question today.
<Xeago>
wow :D
passbe has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<invisime>
how do I make bundler use a local version of a gem that has native extensions that need to be built?
<invisime>
the --path directive doesn't do what I want it to do.
lggr has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
tomku has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
<invisime>
err, that is, I want to use the --path vendor/bundle directive prior to copying over a file system to the production appliance, but my gemfile has a c extension gem with a local path. and when bundler copies the gem over, it doesn't compile the gem.
xpen has quit [Remote host closed the connection]
jrist-mtg is now known as jrist
the_jeebster has joined #ruby
xpen has joined #ruby
philcrissman has quit [Remote host closed the connection]
GraemeLion has joined #ruby
rippa has joined #ruby
gaahrdner has joined #ruby
<shevy>
good old bundler
Zespre has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
sambio has joined #ruby
sambio has quit [Client Quit]
sambio has joined #ruby
Zespre has joined #ruby
joshman_ has joined #ruby
Xeago_ has joined #ruby
Takehiro has joined #ruby
philcrissman has joined #ruby
fbernier has joined #ruby
clj_newb has joined #ruby
andrewvos has joined #ruby
andrewvos has quit [Client Quit]
andrewvos has joined #ruby
andrewvos has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
chadaw has quit [Ping timeout: 245 seconds]
asteve has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
Vert has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
seanyo has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
CarlB_the_great has joined #ruby
stopbit has joined #ruby
xpen_ has joined #ruby
Goles has joined #ruby
Choclo has quit [Quit: Leaving.]
kroniksenvy has quit [Quit: Page closed]
a_a_g has quit [Quit: Leaving.]
arkiver has quit [Quit: Leaving]
xpen has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 260 seconds]
jrajav has quit [Quit: Leaving]
<GraemeLion>
How do you purge all gems from rvm?
CodeFriar has joined #ruby
Cache_Money has joined #ruby
jasonLaster has quit [Remote host closed the connection]
<gilesw>
I think netaddr will be able to do addrandmask2cidr
luckyruby has joined #ruby
<gilesw>
so i'll have a crack at using that
<workmad3_>
hoelzro: as in 'from the ridiculous to the sublime' :)
goraxe has joined #ruby
bigmeow has joined #ruby
<hoelzro>
change lines 2-15 to 'pass'?
<hoelzro>
=P
lggr has quit [Ping timeout: 268 seconds]
limon7 has quit [Remote host closed the connection]
limon7 has joined #ruby
dhruvasagar has joined #ruby
jjbohn has joined #ruby
<gaahrdner>
lol
senny has joined #ruby
baroquebobcat has joined #ruby
heisenmink has quit [Remote host closed the connection]
ken_barber has quit [Ping timeout: 244 seconds]
asv has joined #ruby
BiHi has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
BiHi_ has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
rjsamson has joined #ruby
<shevy>
gilesw yeah it will only modify when that file is loaded
<gilesw>
ta shevy
<gilesw>
i'm going to try netaddr instead as it looks to be better maintained
dekroning has quit [Ping timeout: 268 seconds]
senny has quit [Remote host closed the connection]
verto is now known as verto|off
ken_barber has joined #ruby
rburton- has joined #ruby
ken_barber has quit [Remote host closed the connection]
ken_barber has joined #ruby
<lupine_85>
I'm using mocha to test an object that implements Enumerable, and I want to stub the "contents" of the object - such that each/collect/any? etc all do the expected thing
<lupine_85>
anyone know how to do this, offhand?
<Hanmac>
lupine_85: you could check: "object.is_a?(Enumerable)" or "object.respond_to?(:each)"
limon7 has quit [Quit: limon7]
Takehiro has joined #ruby
lggr has joined #ruby
<lupine_85>
I'm testing a second-order thing - I have methods that call collect {|element| do_something_with(element) } - and want that collect call to successively yield test data and act like a normal collect
sailias has joined #ruby
Yomero has joined #ruby
<hoelzro>
lupine_85: you can't create the object with the correct contents?
<lupine_85>
it consults a directory tree to determine the contents. In other tests, I create the directory tree and work from that, but I don't want to do that in this particular set of tests
deryl1 is now known as deryl
chrishunt has joined #ruby
alek_b has joined #ruby
fyolnish has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
fyolnish has joined #ruby
<hoelzro>
what about separating the logic that loads directory entries from the logic that manipulates them?
mbk has joined #ruby
<lupine_85>
unnecessary if the stubbing abilities I desire exist ^^, hence the asking
<hoelzro>
well, you *could* add a singleton method for :each
<JonnieCache>
well all the other methods in enumerable call each, thats the key method
machty has quit [Ping timeout: 260 seconds]
pricees has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
fyolni___ has joined #ruby
<JonnieCache>
so you can just patch that
<hoelzro>
but I think it's probably a better design to separate logic
answer_42 has joined #ruby
<JonnieCache>
indeed. good code is easily testable
maletor has quit [Quit: Computer has gone to sleep.]
jkary has joined #ruby
rakl has quit [Quit: sleeping]
lggr has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
fyolni___ has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
Eplemosen has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
punkrawkR has joined #ruby
CarlB_the_great has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
emanu has joined #ruby
axl_ has joined #ruby
timonv has quit [Remote host closed the connection]
xpen_ has quit [Remote host closed the connection]
kpshek has joined #ruby
m_3 has joined #ruby
xpen has joined #ruby
Takehiro has quit [Remote host closed the connection]
qwerxy has joined #ruby
daniel_hinojosa has joined #ruby
fbernier has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
Choclo has joined #ruby
philcrissman has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
supergiantrobot_ has joined #ruby
fyolnish has joined #ruby
br4ndon has quit [Ping timeout: 264 seconds]
jrist is now known as jrist-afk
lggr has joined #ruby
seanyo has quit [Ping timeout: 260 seconds]
yshh has quit [Remote host closed the connection]
pskosinski has joined #ruby
mikepack has joined #ruby
br4ndon has joined #ruby
SCommette_ has joined #ruby
Cache_Money has quit [Ping timeout: 260 seconds]
fyolnish has quit [Ping timeout: 246 seconds]
emanu has quit [Quit: emanu]
SCommette has quit [Ping timeout: 245 seconds]
SCommette_ is now known as SCommette
xpen_ has joined #ruby
paolooo has quit [Quit: Page closed]
Morkel has quit [Quit: Morkel]
diegoviola has joined #ruby
Guest45814 is now known as moshee
sspiff has quit [Remote host closed the connection]
moshee has quit [Changing host]
moshee has joined #ruby
Fraeon has joined #ruby
Agis__ has joined #ruby
kvirani has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
xpen has quit [Ping timeout: 240 seconds]
mdpatrick has joined #ruby
Nathandim has quit [Remote host closed the connection]
<Xeago_>
why can't I delete in pry
<Xeago_>
it inserts a ~ instead
<hoelzro>
it probably uses its own readline-like implementation
josefrichter__ has left #ruby [#ruby]
<banisterfiend>
Xeago_: it should work
<banisterfiend>
Xeago_: what plugins do u have installed ?
skluss has joined #ruby
samflores has joined #ruby
<JonnieCache>
im guessing its the intersection of the OSX terminal.app and readline
<JonnieCache>
half of the keyboard doesnt work out of the box
moeSeth_ has quit [Remote host closed the connection]
dnyy__ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
cool has quit [Remote host closed the connection]
Dr4g_ has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
JC_SoCal_ has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
dotemacs_ has quit [Remote host closed the connection]
NimeshNeema has quit [Remote host closed the connection]
patricksroberts has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
dekz has quit [Read error: Connection reset by peer]
kapowaz has quit [Write error: Broken pipe]
lectrick has quit [Write error: Broken pipe]
fcoury_ has quit [Write error: Broken pipe]
ctevie has quit [Write error: Broken pipe]
diegoviola has quit [Ping timeout: 248 seconds]
bapa_ has quit [Ping timeout: 252 seconds]
Monie has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
bluOxigen_ has quit [Ping timeout: 245 seconds]
Eldariof18-ru has quit [Read error: Operation timed out]
xpen_ has quit [Remote host closed the connection]
sonkei has quit [Quit: Computer has gone to sleep.]
<skluss>
Hello, I'm having trouble with the gem "SNMP". i can't seem to load MIBs, the error output reads "/usr/lib/ruby/gems/1.8/gems/snmp-1.1.0/lib/snmp/mib.rb:157:in `[]': odd number of arguments for Hash (ArgumentError)". I can't find any online reference to this issue. I'm running CentOS 5.7, Ruby 1.8.6, rubygems 1.3.7, rubygem snmp 1.10. Does anyone have any insight here?
<nat2610>
yeah I'd like to call Time.utc(args) and provide in args
<nat2610>
all the arguments that the method takes
<nat2610>
right now it's an array
<invisime>
iocor: by default, the default value of a Hash (that is, the value returned when you access it with a non-key) is nil. in which case those are equivalent. however, the default can be set to other things.
<nat2610>
but ruby doesn't like it
<samflores>
you can call Time.utc(*args)
peregrine81 has joined #ruby
<nat2610>
tanks !
<nat2610>
thanks
jrist-afk is now known as jrist
<nat2610>
that was my mistake
<nat2610>
I imagine that there was a different type of array for arguments
<iocor>
invisime: are they the same if options is a hash?
lggr has joined #ruby
<invisime>
iocor: they are the same if options is a hash that hasn't had its default value changed.
<iocor>
ok
[diecast] has joined #ruby
anildigital_work has joined #ruby
andrebras has left #ruby [#ruby]
dkannan has joined #ruby
billyoc has joined #ruby
kapowaz has joined #ruby
pvh_ has joined #ruby
dotemacs_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
Bosma has joined #ruby
philcrissman has quit [Remote host closed the connection]
dekz has joined #ruby
moeSeth_ has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
jasonkuhrt has joined #ruby
lessthanphil has quit [Quit: lessthanphil]
roadt has quit [Ping timeout: 246 seconds]
xclite has quit [Ping timeout: 272 seconds]
philcrissman has joined #ruby
davidcelis has joined #ruby
Takehiro has joined #ruby
maletor has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 240 seconds]
luxurymode has joined #ruby
Choclo has quit [Quit: Leaving.]
Nathandim has joined #ruby
peanuts___ has quit [Quit: peanuts___]
soulcutter has quit [Changing host]
soulcutter has joined #ruby
echobravo has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
philcrissman has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
jenrzzz has joined #ruby
<amacgregor_osx>
if I have class variable that I want to make accessible for class instances inheriting from the parent class do I have to define an attr_accessor ?
mdpatrick has quit [Quit: mdpatrick]
xclite has joined #ruby
shawn-p has joined #ruby
skluss has left #ruby [#ruby]
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
ltsstar has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ngoldman has joined #ruby
senny has joined #ruby
adeponte has joined #ruby
jkary has quit [Quit: Leaving.]
adelcampo has joined #ruby
carloslopes has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 273 seconds]
emptyflask has joined #ruby
und3f1 has quit [Remote host closed the connection]
<Mon_Ouie>
amacgregor_osx: Class variables are always inherited
eykosioux has joined #ruby
<banisterfiend>
Mon_Ouie if you were a class variable would you prefer to be @@mon_ouie or @@kilian
lggr has joined #ruby
clj_newb has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
@@mon_ouie
eykosioux has quit [Client Quit]
macan has quit [Ping timeout: 264 seconds]
<Mon_Ouie>
It would be rather silly to not pick the nickname you prefer, wouldn't it?
sneakyness_wk has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Ping timeout: 272 seconds]
pricees has quit [Ping timeout: 246 seconds]
machty_ has quit [Read error: Connection reset by peer]
machty has joined #ruby
cakehero has joined #ruby
rcsheets has joined #ruby
Guest77929 is now known as Hardcore
Hardcore has quit [Changing host]
Hardcore has joined #ruby
patricksroberts has joined #ruby
davidboy has joined #ruby
<shevy>
hmm
Dr4g_ has joined #ruby
<shevy>
I am going to suggest the introduction of @@@foo
bigmeow has quit [Ping timeout: 244 seconds]
<vectorshelve>
shevy: I needed to get some public pasties off from pastie.org and the only way to get them off was to mail reportabuse@pastie.org with the links and reasons.. I did that but I am not sure if he will delete them ASAP... need to get them down at the earliest..
a_a_g has quit [Read error: Connection reset by peer]
<banisterfiend>
Mon_Ouie: i dont know --- embodying yourself in a clas variable is kind of a big deal and i thought you might prefer to use your real name. Who knows, in 10 years time you might think "mon ouie" was an adolescent indulgence, but it's more rare to get sick of your own real name
<shevy>
vectorshelve!!!
<shevy>
don't paste sensitive info on the www
a_a_g has joined #ruby
kjellski has quit [Quit: Leaving]
<shevy>
your girlfriend will find it eventually
Phibs_ is now known as Phibs
goraxe has quit [Ping timeout: 240 seconds]
dnyy__ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
fcoury_ has quit [Remote host closed the connection]
dotemacs_ has quit [Remote host closed the connection]
Dr4g_ has quit [Read error: Connection reset by peer]
JC_SoCal_ has quit [Read error: Connection reset by peer]
kapowaz has quit [Remote host closed the connection]
davidboy has quit [Write error: Broken pipe]
patricksroberts has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
moeSeth_ has quit [Remote host closed the connection]
cool has quit [Read error: Connection reset by peer]
NimeshNeema has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
ltsstar has quit [Ping timeout: 248 seconds]
<vectorshelve>
shevy: yeah.. my bad.. were just error logs but had few sensitive info along with it.. so need to get them off.. github was too fast.. I mailed them and they deleted it in two minutes..
pu22l3r_ has quit [Remote host closed the connection]
<vectorshelve>
shevy: not got any reply from pastie.. so far.. I hope they do it :(
adamos has quit [Quit: Leaving]
pu22l3r has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
sailias has joined #ruby
ltsstar has joined #ruby
Russell^^ has joined #ruby
mahmoudimus has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<canton7>
hrm, it's looking like you can only edit "replies" on pastie.org now
<canton7>
it used to be everything, which is why I liked them
lggr has joined #ruby
tewecske has joined #ruby
tewecske has quit [Max SendQ exceeded]
bbttxu has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
hadees has joined #ruby
Yomero has quit [Ping timeout: 248 seconds]
shadoi has joined #ruby
<vectorshelve>
canton7: I dont know whay that guy doesnt give an option to delete pasties.. :(
ncr100 has joined #ruby
<shevy>
dunno
<shevy>
perhaps it was changed
<shevy>
pastie was down for a few weeks
macan has joined #ruby
<canton7>
yeah, might be that
lggr has quit [Ping timeout: 260 seconds]
<vectorshelve>
shevy: and you know something
CodeFriar has quit [Quit: Leaving...]
carloslopes has joined #ruby
<vectorshelve>
shevy: all questions and answers and data in stackoverflow.com is getting added to http://efreedom.com/. I have no idea about this site.. but I had want my questions to be removed from it since I already removed them from Stackoverflow due to specific reasons.
maxmmurphy has joined #ruby
havenn has joined #ruby
ltsstar has quit [Ping timeout: 272 seconds]
<shevy>
hmm interesting
<vectorshelve>
shevy: and a guy said
<vectorshelve>
shevy: When you posted your questions to SO you made them available under CC-BY-SA. Anyone adhering to those terms (attribution of the original author, linking back to SO, making content available under the same license) can redistribute the content freely.
br4ndon has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
fmcgeough has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
nga4 has joined #ruby
sonkei has joined #ruby
fmcgeough has joined #ruby
voodoofish430 has joined #ruby
nga4 has quit [Read error: Connection reset by peer]
nga4 has joined #ruby
<Hanmac>
shevy: when you posted your question to #ruby you made them available for Hanmac :P (because he is logging)
clj_newb has joined #ruby
br4ndon has quit [Ping timeout: 244 seconds]
nighthwk1 has quit [Remote host closed the connection]
supergiantrobot_ has quit [Quit: supergiantrobot_]
schwap has quit [Ping timeout: 268 seconds]
br4ndon has joined #ruby
a_a_g1 has joined #ruby
kn330 has joined #ruby
joofsh has joined #ruby
qwerxy has quit [Quit: offski]
joofsh has quit [Client Quit]
a_a_g has quit [Ping timeout: 255 seconds]
a_a_g1 has quit [Read error: Connection reset by peer]
[diecast] has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
a_a_g has joined #ruby
elico has joined #ruby
Bosox20051 has joined #ruby
doomMonkey has joined #ruby
anildigital_work has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
macan has quit [Ping timeout: 260 seconds]
troessner has joined #ruby
manolo has quit [Remote host closed the connection]
skrewler has joined #ruby
dkannan has joined #ruby
sagax has joined #ruby
lggr has joined #ruby
kapowaz has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
<shevy>
a very big intake due to rails, then also a big drop afterwards :(
pvh_ has joined #ruby
<Hanmac>
i dont think that i am helping ... my ruby stuff count as C++ code :P
apok has joined #ruby
<amacgregor_osx>
I'm having trouble doing properly class inheritance, I have a parent class that has a instance variable(@results) and a function that set those values .... I have multiple classes that should inhering from that parent class but I'm, unable to set or access @results from my children classes
dkr has left #ruby ["Leaving"]
jrist-mtg is now known as jrist
<amacgregor_osx>
child = MyGem::ParentClass.new
clj_newb has quit [Ping timeout: 272 seconds]
<amacgregor_osx>
child.results returns nil
<banisterfiend>
amacgregor_osx basically u dont understand how inheritance works in ruby and u should buy a book :D
dotemacs_ has joined #ruby
<shevy>
that does not help
manizzle has quit [Ping timeout: 272 seconds]
<shevy>
what people would do in this case is to put up their code on something like pastie.org
<shevy>
in general, you tend to subclass like so:
<shevy>
class Foo < ParentClassHere
eldariof has joined #ruby
<shevy>
def initialize
<shevy>
super
<Muz_>
>> class Parent; def initialize; @penis = true; end; end; class Child < Parent ; attr_reader :penis; end; a = Child.new; a.penis
limon7 has quit [Quit: limon7]
<banisterfiend>
shevy "buy book" is the best advice when someone has the wrong mental model of a fundamental language feature
<Muz>
Either, put it on the child if you only want them to be readable in such a manner on the child, or on the parent if you want that accessibility on both the parent and child.
RichieEvan has joined #ruby
sambio has quit [Ping timeout: 248 seconds]
GenghisKen has quit [Ping timeout: 244 seconds]
bigdc1 has joined #ruby
ckrailo has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
thatRD has joined #ruby
GenghisKen has joined #ruby
macan has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
kenneth has joined #ruby
<kenneth>
hey, so i have a question about launching a sub-process in ruby
manizzle has joined #ruby
bigmeow has joined #ruby
<kenneth>
i'd like to launch a command (with bash), get its its status code, and its stdout & stderr
<kenneth>
it seems like i can do the first part with system() and the second with IO.popen
<joofsh>
I'm learning ruby for the first time and am going through pickaxe. This example (directly from the book) isn't working for me. Could anyone please advise me on what i'm doing wrong? This example is on how to use an ampersand with a method paramater to create a Proc. Thank you https://gist.github.com/3717218
lggr has joined #ruby
kpshek has joined #ruby
rubious has quit [Quit: Leaving...]
eldar has quit []
<Mon_Ouie>
joofsh: You made a typo. @bock -> @block
<joofsh>
aww man
<joofsh>
thank you
niklasb_ has quit [Read error: Connection reset by peer]
<joofsh>
sorry :*(
h4mz1d has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
<joofsh>
it kept saying the error was in the get_tax method, so I kept looking over that, and not the initialize
<shevy>
joofsh \o/ always remember the first time with ruby
sambio has joined #ruby
<shevy>
yeah, some errors can be dumb
<shevy>
def intialize
<shevy>
where is the error!!!
<joofsh>
lol
a_a_g has quit [Quit: Leaving.]
ilyam has joined #ruby
krawchyk has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
asobrasil has left #ruby [#ruby]
evilsushi has quit [Quit: Lost terminal]
lggr has joined #ruby
s0ber has joined #ruby
dmiller has joined #ruby
sailias has quit [Quit: Leaving.]
Synthead has joined #ruby
chessguy has joined #ruby
samflores is now known as samflores|away
sonkei has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
samflores|away is now known as samflores
Juul has joined #ruby
stephenjudkins has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
linoj has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Remote host closed the connection]
emmanuelux has joined #ruby
fmcgeough_ has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough_ is now known as fmcgeough
lggr has quit [Ping timeout: 240 seconds]
zommi has quit [Quit: Leaving.]
Jake232 has joined #ruby
aespinosa_ch has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
jnoob22 has joined #ruby
smw_ has joined #ruby
aespinosa_ch has quit [Quit: Bye]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<smw_>
hi all, I have some code: def redis; @redis ||= Redis.connect(options); end. What does this do? Specifically, the ||=. But why is the "def" needed too?
<smw_>
is it a function?
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<davidcelis>
it's a method definition
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<davidcelis>
@redis ||= Redis.connect(options) means, if @redis is already set to something that isn't falsey (nil or false), then set it to Redis.connect(options)
<davidcelis>
otherwise it's left alone
sonkei has joined #ruby
Axsuul has joined #ruby
bananagram has joined #ruby
<smw_>
davidcelis, so if someone calls "module.redis", it will run @redis ||= Redis.connect(options) if redis is not false?
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
seich- is now known as seich
xxi is now known as ixx
<blazes816>
if will run Redis.connection(options) of @redis is falsy
LouisGB has quit [Ping timeout: 255 seconds]
<blazes816>
basically, it let's you use 'redis' instead of @redis, and not have to worry about if it's been initialized or not
<smw_>
blazes816, thanks, one last question. Lets say I wanted to set redis to false so it would reset. Any way to do that from outside the module. Break the "protected" keyword
<samflores>
gems do not put binaries at /usr/bin
<nico103>
in ~/.gem there's a spec for it
chessguy has quit [Remote host closed the connection]
<nico103>
but it's not executable
Drewch has joined #ruby
<samflores>
are you using rbenv/rvm?
<nico103>
samflores: aha, so, where?
<smw_>
blazes816, it looks like I need to fork this gem to get what I want done, but I just thought I would ask anyways :-)
<blazes816>
smw_: you could write a def redis= method
asteve has quit []
<blazes816>
then, module.redis = false
<samflores>
run `gem env` and look at "EXECUTABLE DIRECTORY"
<nico103>
samflores: assume I know nothing about ruby -- I'm just trying to run slideshow; I don't know what rbenv/rvm are
chessguy has joined #ruby
Eiam has joined #ruby
<smw_>
blazes816, that would require me modifying this file anyways, right?
<nico103>
/var!
<smw_>
blazes816, so I will just fork it, thanks!
<nico103>
really?! executables in /var?!
<smw_>
blazes816, your help is saved me a great deal of time :-)
<samflores>
WHAT?
<nico103>
I guess it has to be so given the gem model
<shevy>
/var/lib/gems/1.8/bin is a violation of the FHS
<samflores>
neither do I
<shevy>
(actually, it is /System/Executables, but I use symlinks to switch between versioned directories)
<Hanmac>
my EXECUTABLE DIRECTORY: /usr/local/bin
<joofsh>
if not ubunut, what version of linux do you prefeR?
<joofsh>
ubuntu** god i suck at typing
<nico103>
using /var for executables is so... yeah, it works but... it's... wrong (unless we're talking, maybe, about dynamically-generated executables, but gems aren't that)
<nico103>
joofsh: odd question, that
<shevy>
joofsh my favourite one was gobolinux until it died. these days I am stuck with LFS, compiling from source, always trying to see that programs can be installed in an app-dirs like fashion
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
<nico103>
joofsh: I'd think the question should be "what OS?"
<drPoggs>
It may be a violation of a standard, but if it works, that's what many people care about
<nico103>
:)
lggr has quit [Ping timeout: 244 seconds]
<nico103>
but, I didn't come here to get into a flamewar
<shevy>
yeah but
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy>
debian changes things
<nico103>
I came here to get an answer to my question, I got it, and I thank you much
<shevy>
they should ask them :)
<joofsh>
nico103: why odd? i'm curious, i use ubuntu, but i'd switch if there was a drastically better alternative
<samflores>
:D
<Hanmac>
nico103: do "apt-get install ruby1.9.1-full" & "update-alternatives --config ruby" & "update-alternatives --config gem" & reinstall your gems
<nico103>
joofsh: odd because you assume that Linux is what one ought to run
<nico103>
;)
<shevy>
"You can install both Ruby 1.8.7 and 1.9.3 alongside each other and switch between them effortlessly."
<nico103>
hanmac: ah, thanks
<shevy>
havenn, yeah. that is what gobolinux did 10 years ago too
<shevy>
debian seems to use /etc/alternatives as their symlink-repo
<joofsh>
nico103: haha, I certainly don't assume it, but you said you had no love for ubuntu specifically, rather than linux more generally. Which iimplied there was a version you did like
<havenn>
shevy: Debian Ruby has been shabby, but I hope better soon!
<nico103>
I have no love for Linux
maxmande1s is now known as maxmanders
<nico103>
;)
<joofsh>
okay, there we go :)
lggr has joined #ruby
imbric has quit [Quit: imbric]
chessguy has quit [Remote host closed the connection]
<shevy>
nico103 linux is not so bad
pdtpatrick has quit [Ping timeout: 246 seconds]
<havenn>
posix is lovely.
<nico103>
sure, not so
<shevy>
you need to use the good bits, and kill the idiots who make things worse
<nico103>
POSIX has some ugly corners, but yeah
<nico103>
I'm a Solaris kinda guy
jasonLaster has quit [Ping timeout: 260 seconds]
rakunHo has joined #ruby
<nico103>
but I love some aspects of Windows (SIDs)
<nico103>
shevy: you said it
<shevy>
does ruby even work on solaris?
<shevy>
:D
rubious has joined #ruby
chessguy has joined #ruby
<nico103>
har, sure
<nico103>
and there you can even use DTrace on it
tarwich1 has joined #ruby
<nico103>
while I'm here, and to get back on topic...
<nico103>
what's the deal with Ruby and Unicode nowadays?
<nico103>
still a disaster?
LeandroSales has joined #ruby
<Mon_Ouie>
Not a disaster since 1.9
<nico103>
(to be fair, Unicode is really hard to handle well in any language, and some other HLLs do a very poor job of it, like, say, ECMAScript)
<nico103>
Mon_Ouie: oh? what's the deal with it now?
<nico103>
I recall JRuby handled it properly from day one
notbrent has joined #ruby
LeandroSales has left #ruby [#ruby]
<Mon_Ouie>
Well, it's just supported transparently. Except for combined characters/normalizations that aren't there AFAIK.
pdtpatrick has joined #ruby
<nico103>
but IIRC Ruby encouraged mutating strings, which is one of those things that's hard to do efficiently with Unicode
<nico103>
well, most of the time normalization is a non-issue
<nico103>
sometimes it matters greatly
<maxmanders>
New to Ruby, and OSX - having trouble installing the ruby-shadow gem. Suspecting I'm missing some devel libs but not sure how to proceed https://gist.github.com/3717602
hadees has quit [Quit: hadees]
<maxmanders>
Any pointers welcome - can't seem to find libshadow or libshadow-devel via brew - scouring Google just now...
mark_locklear has quit [Quit: Leaving]
<nico103>
Mon_Ouie: like, since most OSes/terminals produce pre-composed Unicode in close to NFC form, it mostly doesn't matter, but then there's HFS+ -- HFS+ decomposes to NFD on create
geekbri has quit [Remote host closed the connection]
Juul has quit [Ping timeout: 260 seconds]
<nico103>
so on OS X, if you use non-ASCII Unicode in filenames and you handle directory listings in your app then you'll want normalization-aware code
<nico103>
ok, thanks all
nico103 has left #ruby [#ruby]
<havenn>
maxmanders: Have you installed Xcode / Command Line Tools, Homebrew, etc?
snearch has quit [Quit: Verlassend]
<havenn>
maxmanders: nevermind, you said brew
<Mon_Ouie>
maxmanders: Have you searched for just shadow?
<maxmanders>
havenn: yeah - all installed.
<havenn>
maxmanders: Have you done: gem install ruby-shadow
haxrbyte has joined #ruby
<maxmanders>
havenn: noep - nothing for that
<havenn>
maxmanders: Gems get installed by gem, not brew. >.>
<maxmanders>
havenn: yeah - gem install ruby-shadow is what is giving me the errors - and my hunch (from Linux work) is that some equiv of libshadow is missing that is needed to build against
gaahrdner has quit [Remote host closed the connection]
hadees has joined #ruby
<maxmanders>
Well this is all because I'm using Chef - which would suggest that I can't use passwords with the Chef user resource if my Chef workstation if on OSX - I'll prod more in the #chef channel
cantonic has quit [Quit: cantonic]
lggr has joined #ruby
<maxmanders>
joofsh: fwiw I'm also a long time Linux user ;-) - I'll fire up my VM
ngoldman has quit [Remote host closed the connection]
<Hanmac>
maxmanders: hm, change: have_library("shadow" to have_library("crypt"
<joofsh>
:)
_marvin_ has joined #ruby
<maxmanders>
Hanmac: I'm afraid I'll need the baby steps - noob - change it where?
timonv has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<maxmanders>
Hanmac: I gotcha - I'll give it a go - just a sec...
jnoob22 has quit [Quit: Leaving]
joofsh has quit [Ping timeout: 245 seconds]
poeks has quit [Quit: poeks]
snorkdude has joined #ruby
carloslopes has quit [Quit: Leaving.]
<bricker88>
What would be the proper name for these modules? Validations::ContentValidations, Validations::GlobalValidations, etc? Validations is just for the namespace, and ContentValidations would be a module getting mixed into several classes. Should it be Validations::Content? Validations::ContentValidation? Am I way over-thinking this?
<maxmanders>
Hanmac: sudo gem install crypt (succeeeded)... then ruby extconf.rb shows among other things checking for getspent() in -lcrypt... no
jkary has quit [Quit: Leaving.]
<maxmanders>
So looks like -lcrypt is as bad as -lshadow in this case
<bricker88>
>> __FILE__
iamjarvo has joined #ruby
<Hanmac>
:/
<Mon_Ouie>
The bot isn't here. Anyway, it would say "__eval__", nothing useful.
<bricker88>
oh, I was just curious
<davidcelis>
wheres bot
<bricker88>
on break
<Hanmac>
<<
<davidcelis>
i'll be your bot, paste ruby code
kvirani has quit [Remote host closed the connection]
Takehiro has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
<bricker88>
davidcelis:
<bricker88>
oops
<bricker88>
um
<bricker88>
hi
<davidcelis>
NameError: undefined local variable or method `hi' for main:Object
im0b has joined #ruby
cj3kim has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
cj3kim has quit [Changing host]
cj3kim has joined #ruby
samflores is now known as samflores|away
haxrbyte_ has joined #ruby
<shevy>
maxmanders haha I broke my computer too... can't find -lcrypt... even though a libcrypt.so is in my /usr/lib ...
Bosox20051 has quit [Quit: Leaving]
<maxmanders>
shevy: well if I get anywhere I'll give you a shout... learning new things is cool - but frustrating at times :-P
internet_user has quit [Remote host closed the connection]
<shevy>
I think it's wasting a lot of time :(
machty has joined #ruby
<Drewch>
is there a way to exclude transitive dependencies in a gem file?
jhowarth has joined #ruby
<maxmanders>
Even editing extconf.rb to swap shadow with crypt still leaves dependency checks later in the file for Shadow:: modules - I don't think shadow and crypt have the same API
<shevy>
Drewch hmm good question... I would say other than changing the .gemspec... there is not
nari has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
joshman_ has quit [Read error: Operation timed out]
sr___ has joined #ruby
samflores|away has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 244 seconds]
luxurymode has quit [Quit: Computer has gone to sleep.]
fixl has joined #ruby
rakunHo has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
TheLZA has joined #ruby
TheLZA has quit [Excess Flood]
Foxandxss has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
sendoushi has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
sendoushi has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
cakehero has quit [Quit: Computer has gone to sleep.]
<Drewch>
thanks
williamcotton has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
gfontenot has quit []
Xeago_ has quit [Remote host closed the connection]
tvw has joined #ruby
mark06 has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
<mark06>
how do I access an attribute whose name is stored in a variable?
pricees has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
chrisja has quit [Quit: leaving]
NimeshNeema has quit []
<Mon_Ouie>
See Object#send or #instance_variable_get
daniel_hinojosa has quit [Ping timeout: 248 seconds]
Jake232 has quit [Quit: Computer has gone to sleep.]
<atmosx>
I have an array which has the word 'title' in position.. sometimes 3rd others 4th
kuzushi has joined #ruby
<atmosx>
how I extract it ? .. it's a group of arrays
tvw has quit [Ping timeout: 272 seconds]
chrismcg is now known as zz_chrismcg
<atmosx>
I'm thinking of a way, iterating the content of the array until I match with =~ the keyword but… is there a more direct way?
<davidcelis>
array[array.index('title')]
ejnahc_ has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ejnahc has joined #ruby
stopbit has quit [Quit: Leaving]
chessguy has quit [Remote host closed the connection]
chessguy has joined #ruby
bbttxu has quit [Quit: bbttxu]
Juul has joined #ruby
clj_newb has quit [Quit: Changing server]
<Mon_Ouie>
davidcelis: It isn't always allowed to add/delete new keys while iterating over an array
sendoushi has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
<Mon_Ouie>
(well add new* or delete old*)
nateberkopec has joined #ruby
GoHuyGo has joined #ruby
lggr has joined #ruby
shurizzle has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
the_jeebster has quit [Quit: Leaving.]
rjsamson has quit [Remote host closed the connection]
xnm has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
adeponte has quit [Remote host closed the connection]
kvirani has joined #ruby
explody has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Jake232 has joined #ruby
recycle has quit [Remote host closed the connection]
jason_lee1 has joined #ruby
fixl has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
doomMonkey has quit [Ping timeout: 252 seconds]
cakehero has joined #ruby
[Neurotic] has joined #ruby
havenn has quit [Remote host closed the connection]
wang_ is now known as wang
reset_ has joined #ruby
awarner has quit [Remote host closed the connection]
jrist is now known as jrist-afk
reset has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
pu22l3r_ has joined #ruby
mercwithamouth has joined #ruby
<cj3kim>
hi
Nathandim has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
<cj3kim>
if i set a class variable as a hash and call it later without setting cattr_accessor, why am I returned a array when I call the class variable on the Class?
<cj3kim>
instead of a hash?
Takehiro has quit [Ping timeout: 246 seconds]
answer_42 has quit [Quit: WeeChat 0.3.8]
kpshek has quit []
haxrbyte has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
vitor-br has joined #ruby
<kenneth>
can a module have variables?
<kenneth>
for internal use
<kenneth>
like globals, but only global to the module
justinmcp has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
banseljaj is now known as imami|afk
lggr has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
An instance variable on the module itself would have that effect
jason_lee1 has left #ruby [#ruby]
<Mon_Ouie>
cj3kim: Well, it was set to be an array somewhere
ephemerian has quit [Ping timeout: 240 seconds]
chrishunt has quit [Ping timeout: 264 seconds]
Tref has joined #ruby
josh^ has joined #ruby
lggr has joined #ruby
specialGuest has quit [Ping timeout: 272 seconds]
Guedes0 has joined #ruby
SCommette has quit [Quit: SCommette]
bier has quit [Ping timeout: 252 seconds]
randym has joined #ruby
Russell^^ has quit [Quit: Russell^^]
sepp2k has quit [Read error: Connection reset by peer]
<rubious>
Is there a way to insert variable values into a string wrapped in single quots?
<rubious>
quotes*
hashpuppy has quit [Ping timeout: 255 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
<rubious>
Like #{} would behave in double quotes?
SQLStud has quit [Quit: Leaving]
explody has joined #ruby
<Mon_Ouie>
Just use double quotes if you need string interpolation
<Mon_Ouie>
(You could use String#+, but use string interpolation)
johnlcox has quit [Quit: Computer has gone to sleep.]
GenghisKen has quit [Ping timeout: 248 seconds]
stkowski has quit [Quit: stkowski]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<rubious>
Mon_Ouie: I'm interpolating into a string that contains single quotes inside of a string with double quotes. I was just hoping there was a cleaner way than just constructing each string individually and then concatenating.
<Mon_Ouie>
There also are %-style strings
<Mon_Ouie>
%{#{"this".capitalize} is magic!}
<rubious>
Oh my god that's awesome
lggr has quit [Ping timeout: 252 seconds]
swarley has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
lggr has joined #ruby
mbk has quit [Ping timeout: 268 seconds]
_love_color_text has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
havenn has joined #ruby
bier has joined #ruby
maletor has quit [Ping timeout: 244 seconds]
kiyoura has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
SeoxyS has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
jgarvey has quit [Quit: Leaving]
smw_ has quit [Remote host closed the connection]
Agis__ has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
Companion has quit [Ping timeout: 268 seconds]
wataken44 has quit [Remote host closed the connection]