<nohonor>
but i'm not sure if it's supportet in ruby
<kamsky>
I do need it for Ruby tho
<nohonor>
what's more, i'm not sure if it's a good idea to do things like that in regexes at all
tyfighter has quit [Quit: tyfighter]
<nohonor>
a pair of corecursive functions should handle it just as well
u89 has joined #ruby
pdswan_ has joined #ruby
brianpWins has left #ruby [#ruby]
rowsdower has joined #ruby
bigmac has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
blazes816 has quit [Quit: blazes816]
scade has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
shiki has joined #ruby
florianchin has joined #ruby
scade has joined #ruby
<kamsky>
hmmm
reset has joined #ruby
florianchin has left #ruby [#ruby]
demet8 has left #ruby [#ruby]
swex has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
icole has quit [Remote host closed the connection]
Trioke has joined #ruby
<Jonah11_>
looking for a compact way to solve this: i have an array of ints. i want to get a count of how many items appear at least twice in the array
Trioke_ has quit [Ping timeout: 240 seconds]
carlzulauf has quit [Ping timeout: 265 seconds]
dfr|work has quit [Ping timeout: 246 seconds]
kiyoura has joined #ruby
pdswan_ has quit [Ping timeout: 256 seconds]
alee has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
alee has joined #ruby
<Jonah11_>
nm found something
<kamsky>
nohonor, quick pm?
davidcelis has quit [Quit: K-Lined.]
Chryson has joined #ruby
sent-hil has joined #ruby
slainer68 has quit [Remote host closed the connection]
mmitchell has joined #ruby
whaley_ has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
jcaudle_ has quit [Quit: jcaudle_]
Takehiro has quit [Remote host closed the connection]
yshh has joined #ruby
havenn has joined #ruby
u89 has quit [Remote host closed the connection]
v0n has joined #ruby
cordoval has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
adeponte has quit [Read error: Connection reset by peer]
cordoval has left #ruby [#ruby]
adeponte has joined #ruby
mrsolo has quit [Quit: Leaving]
nricciar has quit [Read error: Operation timed out]
Guest58426 has quit [Ping timeout: 260 seconds]
TheMoonMaster has quit [Ping timeout: 272 seconds]
dakine has quit [Ping timeout: 260 seconds]
lake has quit [Ping timeout: 260 seconds]
mksm has joined #ruby
mksm is now known as Guest54783
J-_-L has quit [Ping timeout: 255 seconds]
mneorr has joined #ruby
synthetix has quit [Ping timeout: 260 seconds]
sn0wb1rd has joined #ruby
juha_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
treyryan has joined #ruby
SCommette has joined #ruby
apok has quit [Quit: apok]
Edward__ has quit [Ping timeout: 260 seconds]
Experium has quit [Ping timeout: 260 seconds]
erichmenge has quit [Quit: Be back later]
s0ber has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
s0ber has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
xpen has joined #ruby
ryanf has quit [Quit: leaving]
crazymykl has joined #ruby
caleb_io has quit [Quit: caleb_io]
hbpoison has joined #ruby
_nitti has joined #ruby
<maletor>
If I have an array of arrays like [["<$100K", 50_000_00], ["$100-150K", 100_000_00]] and I know the value, what's the best way to get the key?
kbeddingfield has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
jeffreybaird_ has joined #ruby
jeffreybaird has quit [Ping timeout: 240 seconds]
jeffreybaird_ is now known as jeffreybaird
axl_ has quit [Quit: axl_]
okapi has joined #ruby
_nitti has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
kbeddingfield has quit [Ping timeout: 276 seconds]
yekta has joined #ruby
jeffreybaird_ has joined #ruby
yekta has left #ruby [#ruby]
love_color_text_ has quit [Remote host closed the connection]
twopoint718 has quit [Ping timeout: 240 seconds]
dakine has quit [Quit: Leaving]
jeffreybaird has quit [Ping timeout: 264 seconds]
jeffreybaird_ is now known as jeffreybaird
Dreamer3 has quit [Quit: Leaving...]
forced_request has quit [Read error: Connection reset by peer]
BoomCow has joined #ruby
xpen has quit [Remote host closed the connection]
syamajala has quit [Remote host closed the connection]
RJ3000_ has quit []
xpen has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
sertaconay has joined #ruby
shinnya has joined #ruby
earthquake has quit [Quit: earthquake]
awarner has quit [Remote host closed the connection]
dakine has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
sertaconay has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
UberNerdGirl has joined #ruby
elux has quit [Quit: Bye!]
Ruler_Of_Heaven_ has joined #ruby
savage- has quit [Quit: savage-]
pipopopo has quit [Ping timeout: 268 seconds]
ryanf has joined #ruby
savage- has joined #ruby
rakl has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
s0ber_ has joined #ruby
jeffreybaird has quit [Ping timeout: 256 seconds]
savage- has quit [Client Quit]
akem has quit [Read error: Operation timed out]
<Paradox>
Banistergalaxy, you around?
maletor has quit [Quit: Computer has gone to sleep.]
skaczor has quit [Ping timeout: 240 seconds]
s0ber has quit [Ping timeout: 248 seconds]
s0ber_ is now known as s0ber
justinmc_ has quit [Remote host closed the connection]
maletor has joined #ruby
bigmac is now known as i8igmac
<maletor>
Enumerable api#find is good stuff.
jaygen__ has quit [Remote host closed the connection]
jeremywrowe has joined #ruby
jrist-afk has quit [Ping timeout: 246 seconds]
drbawb has joined #ruby
syamajala has joined #ruby
swarley has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
delinquentme has left #ruby ["Leaving"]
moshee has quit [Remote host closed the connection]
<UberNerdGirl>
eeeuuughhhhh the hurricane is making my whole bed and apartment shake and i can't focus on my Ruby!
meinpie has joined #ruby
moshee has joined #ruby
meinpie has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
radic has quit [Disconnected by services]
radic_ has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
slainer68 has joined #ruby
<RubyPanther>
UberNerdGirl: pretend you're stuck in Dwemthy's Array and have to code your way out of the storm
BoomCow has quit [Quit: This computer has gone to sleep]
v0n has joined #ruby
tommyvyo has quit [Ping timeout: 244 seconds]
CaptainJet has quit []
slainer68 has quit [Read error: Operation timed out]
zeromodulus has quit [Ping timeout: 244 seconds]
sent-hil has quit [Remote host closed the connection]
<kamsky>
UberNerdGirl, NY?
tommyvyo has joined #ruby
mduarte has joined #ruby
<UberNerdGirl>
kamsky: yep, manhattan :(
<UberNerdGirl>
RubyPanther: my, that's a fabulous idea!
<kamsky>
me too, I didnt feel anything!
zeromodulus has joined #ruby
<kamsky>
some wind..
<UberNerdGirl>
kamsky: where in manhattan?
<UberNerdGirl>
RubyPanther: Dwemthy knows 'carnal pleasures' that's kind of ominous
justinmcp has joined #ruby
<kamsky>
the Heights
_md has quit [Ping timeout: 265 seconds]
cableray has quit [Quit: cableray]
moshee has quit [Remote host closed the connection]
mduarte has quit [Read error: Operation timed out]
dmiller_ has quit [Remote host closed the connection]
_cheney has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
ffranz2 has quit [Excess Flood]
Ry has quit [Quit: Ry]
Ry has joined #ruby
andynu has quit [Ping timeout: 260 seconds]
ffranz2 has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
darthdeus has quit [Quit: Leaving...]
CodeDroid__ has joined #ruby
justinmcp has joined #ruby
roadt has joined #ruby
<burgestrand>
That stopped happening for me about a year ago. You could try the "Reopen closed tabs" option, Ry.
sn0wb1rd has quit [Quit: I will be right back]
skcin7 has joined #ruby
<Ry>
No idea where to find that, my recently closed list was gone, so yeah, it just 'forgot' :P
haxrbyte has quit [Ping timeout: 255 seconds]
<burgestrand>
Ry: under File I find it (same area where you open new tabs and windows), I just use CMD+SHIFT+T. ^^
maesbn has joined #ruby
rohit has quit [Ping timeout: 260 seconds]
<Ry>
yeh, i assumed you meant the one that says 'reopen X tabs' after a crash, the last tab reopening i know about, but it was greyed out since there was no history :/
arturaz has joined #ruby
sent-hil has quit [Remote host closed the connection]
Tref has quit [Quit: Tref]
Jonah11_ has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
love_col_ has joined #ruby
hotovson has joined #ruby
ericcoleman has joined #ruby
ericcoleman has quit [Client Quit]
keyvan has quit [Ping timeout: 252 seconds]
JonnieCache has joined #ruby
skcin7 has quit []
rohit has joined #ruby
tiripamwe has joined #ruby
CodeDroid__ has quit [Ping timeout: 260 seconds]
JonnieCache has quit [Ping timeout: 276 seconds]
Morkel has joined #ruby
savage- has quit [Quit: savage-]
nilg has joined #ruby
slainer68 has joined #ruby
aganov has joined #ruby
ZubKonst_ has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
UberNerdGirl has quit [Quit: UberNerdGirl]
jlwestsr has quit [Ping timeout: 246 seconds]
ZubKonst has quit [Ping timeout: 260 seconds]
icole has quit [Remote host closed the connection]
icole has joined #ruby
dangerousdave has joined #ruby
rakl has quit [Quit: sleeping]
ryanf has quit [Quit: leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
minijupe has quit [Quit: minijupe]
_nitti has joined #ruby
wallerdev has quit [Quit: wallerdev]
icole has quit [Ping timeout: 248 seconds]
love_col_ has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
abionic has joined #ruby
mahmoudimus has joined #ruby
burgestrand has joined #ruby
rohit has quit [Quit: Leaving]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
elico has joined #ruby
akem has quit [Max SendQ exceeded]
u89 has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
abionic has quit [Read error: Operation timed out]
ABK has quit [Ping timeout: 265 seconds]
zigomir has joined #ruby
icole has joined #ruby
stnly has quit [Quit: Lost terminal]
Morkel_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
Morkel has quit [Read error: Operation timed out]
Morkel_ is now known as Morkel
Voxxit has quit [Ping timeout: 246 seconds]
justinmcp has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
whaley has joined #ruby
eldariof has joined #ruby
dr_bob has joined #ruby
d3vic3 has joined #ruby
justinmcp has joined #ruby
Voxxit has joined #ruby
JohnBat26 has joined #ruby
williamherry has joined #ruby
bluOxigen has joined #ruby
u89 has quit [Remote host closed the connection]
workmad3 has joined #ruby
kil0byte has joined #ruby
timonv has joined #ruby
lupine_86 has joined #ruby
lupine_85 has quit [Ping timeout: 246 seconds]
tiripamwe has quit [Ping timeout: 276 seconds]
anpl has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
MrSamuel has joined #ruby
nemesit has joined #ruby
artOfWar has quit [Ping timeout: 256 seconds]
moeSeth has joined #ruby
slainer68 has joined #ruby
tonini has joined #ruby
slainer68 has quit [Remote host closed the connection]
senny has joined #ruby
u89 has joined #ruby
darthdeus has joined #ruby
Bosox20051 has joined #ruby
moshee has quit [Ping timeout: 268 seconds]
__miha__ has quit [Ping timeout: 245 seconds]
justinmcp has quit [Remote host closed the connection]
mntzn has joined #ruby
anpl has quit [Ping timeout: 255 seconds]
eph3meral has quit [Quit: eph3meral]
jenrzzz has quit [Ping timeout: 264 seconds]
u89 has quit [Remote host closed the connection]
filipe has joined #ruby
dekroning has joined #ruby
hoelzro|away is now known as hoelzro
icole has quit [Remote host closed the connection]
gregorg_taf has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
icole has joined #ruby
caleb_io has joined #ruby
blacktulip has joined #ruby
icole has quit [Ping timeout: 276 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
eph3meral has joined #ruby
asuka has joined #ruby
eph3meral has quit [Client Quit]
nohonor has joined #ruby
kadel has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
kil0byte_ has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
caleb_io has quit [Quit: caleb_io]
GeekOnCoffee has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
Elhu has joined #ruby
bbttxu has joined #ruby
ephemerian has joined #ruby
whaley has quit [Remote host closed the connection]
manizzle has joined #ruby
tchebb has quit [Ping timeout: 260 seconds]
tpe11etier_ has quit [Quit: tpe11etier_]
timonv has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
Proshot_ has joined #ruby
shtirlic has joined #ruby
tvw has joined #ruby
Virunga has joined #ruby
kil0byte has joined #ruby
cezar has joined #ruby
cezar has quit [Read error: Connection reset by peer]
icole has joined #ruby
marius has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
g_bleezy has quit [Remote host closed the connection]
tiripamwe has joined #ruby
jimeh has joined #ruby
Ry_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
<rohrer>
my google-fu is failing me - does anyone know of any good resources for extracting ActiveRecord objects+migrations, etc. into a gem that can be shared between a rails app and other non-rails ruby applications that need to access the same db?
<x2s>
what am I missing here?
<x2s>
Or is this a bug in the Debian package or something?
lupine_86 has quit [Changing host]
lupine_86 has joined #ruby
<burgestrand>
rohrer: I believe the common way to do it is to have a rails generator that generates the migrations. The models are just ruby so you can require those.
lupine_86 is now known as lupine_85
<burgestrand>
x2s: looks like you are missing the amalgalite database driver, if that exists.
<burgestrand>
x2s: what happens if you try to require it?
psycho_one has quit [Remote host closed the connection]
tiripamwe has quit [Ping timeout: 240 seconds]
<x2s>
one moment please
djdb has joined #ruby
<x2s>
require 'sequel/adapters/amalgalite'?
skcin7 has quit []
<burgestrand>
x2s: yeah, something like that. Would expect Sequel to do that for you but why not try.
darthdeus has joined #ruby
<burgestrand>
x2s: no.
awestroke has joined #ruby
<burgestrand>
x2s: never mind, I misread your error message. Have you installed the amalgite gem?
<burgestrand>
x2s: so do the "gem install amalgalite" and try again. How did you install ruby? Using system installation?
<x2s>
burgestrand: yes, I used the Debian package. Normally this works fine...
<x2s>
could be a debian specific bug
<burgestrand>
x2s: alright, was just curious.
<burgestrand>
x2s: why don’t you install the gem?
<burgestrand>
x2s: a missing gem is not a bug.
kil0byte_ has joined #ruby
<x2s>
burgestrand: isn't gem it's own package manager?
irleif has joined #ruby
lupine_85 has joined #ruby
icole has quit [Ping timeout: 260 seconds]
<burgestrand>
x2s: yes, for ruby libraries. Debian cripples the package manager (rubygems) somewhat, but still recognizes it as necessary.
kil0byte has quit [Ping timeout: 240 seconds]
<burgestrand>
I mean, without it you couldn’t use any of the 46,220 gems from http://rubygems.org/ with the debian ruby installation, and that would be annoying.
<x2s>
burgestrand: yes, the debian way is to provide almost everything by apt and dpkg. It's unusual to install your own software.
samphippen has joined #ruby
<x2s>
but I've got to get this working, so it's gem :)
<burgestrand>
x2s: yeah, it inevitably becomes a little bit odd when there are rich libraries available through other package managers that are part of system packages.
<burgestrand>
(e.g. rubygems)
<burgestrand>
Feels like the python package management solution should have a similar experience.
vlad_starkov has joined #ruby
fyolnish has quit [Remote host closed the connection]
kil0byte has joined #ruby
<x2s>
and it shouldn't be to hard to write a wrapper around gem to get debian packages as output.
<JonnieCache>
you would think
sepp2k has joined #ruby
tvw has joined #ruby
<x2s>
ok, the error is still there. But it could be a search path problem
lkba has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
<x2s>
"/var/lib/gems is default in Debian instead of /usr/lib/gems." Hm.
sspiff has joined #ruby
morf has joined #ruby
nari has quit [Ping timeout: 260 seconds]
tiripamwe has joined #ruby
banisterfiend has joined #ruby
noxoc1 has joined #ruby
<x2s>
burgestrand: JonnieCache: Many thanks for your help. It's working now
ssspiff has quit [Ping timeout: 260 seconds]
<burgestrand>
x2s: happy days!
<x2s>
(with a very long RUBYLIBs shell variable ;)
timmow has joined #ruby
Jork1 has joined #ruby
bier has quit [Ping timeout: 252 seconds]
reinaldob has joined #ruby
binaryplease has joined #ruby
x2s has left #ruby ["Many thanks again"]
akem has quit [Ping timeout: 240 seconds]
binaryplease has quit [Client Quit]
Experium has left #ruby ["Leaving"]
baphled has joined #ruby
darthdeus has quit [Quit: Leaving...]
keymone has quit [Quit: keymone]
philcrissman has joined #ruby
codecaster has joined #ruby
bier has joined #ruby
slainer68 has joined #ruby
timonv has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
dross has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
darthdeus has joined #ruby
_nitti has joined #ruby
dross has joined #ruby
niklasb has joined #ruby
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
beiter has joined #ruby
maddog_ has quit [Read error: Operation timed out]
rakunHo has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
_veer has quit [Ping timeout: 260 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: Computer has gone to sleep.]
maddog_ has joined #ruby
Axsuul has quit [Ping timeout: 255 seconds]
daniel_-_ has joined #ruby
apeiros_ has joined #ruby
daniel_- has quit [Read error: Operation timed out]
tonini has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby
cascalheira has joined #ruby
chussenot has quit [Quit: chussenot]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
chussenot has joined #ruby
darthdeus has quit [Quit: Leaving...]
margle has quit [Quit: Computer has gone to sleep.]
g_bleezy has joined #ruby
icole has joined #ruby
samphippen has joined #ruby
Jork1 has quit [Quit: Jork1]
u89 has quit [Remote host closed the connection]
AndChat| has joined #ruby
g_bleezy has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
icole has quit [Ping timeout: 260 seconds]
u89 has joined #ruby
chriskk has quit [Quit: chriskk]
kil0byte_ has joined #ruby
Ruler_Of_Heaven_ is now known as pipopopo
Banistergalaxy has joined #ruby
margle has joined #ruby
robotmay has quit [Read error: No route to host]
robotmay has joined #ruby
chriskk has joined #ruby
fyolnish has joined #ruby
tiripamwe has quit [Ping timeout: 256 seconds]
beiter has quit [Quit: beiter]
kil0byte has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
und3f has joined #ruby
AndChat| has joined #ruby
fir_ed has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
fyolnish has quit [Ping timeout: 244 seconds]
Jork1 has joined #ruby
justinmcp has joined #ruby
robotmay has quit [Ping timeout: 260 seconds]
jipiboily has quit [Quit: Leaving.]
Ry has joined #ruby
robertotauille has joined #ruby
kil0byte has joined #ruby
robotmay has joined #ruby
RudyValencia has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
jprovazn_away has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 260 seconds]
qq123 has left #ruby [#ruby]
chriskk has quit [Quit: chriskk]
psycho_one has quit [Remote host closed the connection]
chriskk has joined #ruby
sebastorama has joined #ruby
UberNerdGirl has joined #ruby
timonv has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
fermion has quit [Ping timeout: 276 seconds]
UberNerdGirl has quit [Client Quit]
daniel_-_ has quit [Quit: WeeChat 0.3.9]
sleetdrop has quit [Ping timeout: 255 seconds]
Vinz_ is now known as Vinz_`
fermion has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
manizzle has quit [Ping timeout: 248 seconds]
daniel_- has joined #ruby
gener1c has joined #ruby
gener1c has quit [Changing host]
gener1c has joined #ruby
slainer68 has joined #ruby
<gener1c>
how do i write a regex to match 2 to 4 digits but not if they have certain chars appended to them?
<gener1c>
i am having issues with the negation part
<gener1c>
/\s{2,4}/ was easy
<gener1c>
\d
<codecaster>
negation is [^chars]
<gener1c>
awsome :)
<gener1c>
thanks
<codecaster>
try /\s{2,4}[^abcde]/
<codecaster>
or whatever chars they are
<codecaster>
you can use ranges
<codecaster>
[^a-z]
<gener1c>
/[^&][^#]\d{2,4}[^;]/
<gener1c>
:D
<codecaster>
try [^&#]
<codecaster>
not sure if you need to escape something there
<gener1c>
yeah but then the are not in that order
<codecaster>
beware ofthat
<codecaster>
ah, ok
<codecaster>
I thought they were interchangeable
<codecaster>
;P
<gener1c>
plus they can be together
<gener1c>
and i think this one is for a single instance
<gener1c>
nah its for xhtml entities
<gener1c>
:D
<codecaster>
then append {1,2}
<codecaster>
well, experiment with that
<codecaster>
html + regexps
<codecaster>
you like living on the edge
<gener1c>
hehe
_nitti has joined #ruby
<gener1c>
fixing adobe's mistakes in epub rendering
larissa has joined #ruby
<apeiros_>
note that [^;] requires a char after your digits
<apeiros_>
e.g. "12" does not match /\d{2,4}[^;]/
failshell has joined #ruby
<chiel>
you could do [^;]? I guess
zmo_ has joined #ruby
<apeiros_>
pointless
<chiel>
but that can cause other nasty issues :D
<apeiros_>
that matches "12;" too
darthdeus has joined #ruby
<chiel>
yeah, true
<failshell>
hello. im writing this script that uses net/ssh. what gem could i use to spawn processes to run in parallel instead of serial?
<chiel>
i must still be sleeping :>
Agis__ has joined #ruby
<apeiros_>
it really depends on what you really want
_nitti has quit [Ping timeout: 260 seconds]
<apeiros_>
negative look-ahead is a way
visof has joined #ruby
<apeiros_>
/\d{2,4)(?!;)/
<gener1c>
i tried that apeiros
<gener1c>
but it resulted in evil stuff on rubular
<apeiros_>
"evil stuff" isn't exactly a useful problem description
<gener1c>
(?!&#)\d{2,4}(?!;)
<apeiros_>
yeah, that won't work
<gener1c>
why not?
kbeddingfield has joined #ruby
<apeiros_>
because (?!&#) is look-ahead
Takehiro has joined #ruby
<gener1c>
ahhh
<gener1c>
so i need
<gener1c>
?<!
<apeiros_>
yes
<gener1c>
(?<!&#)\d{2,4}(?!;)
<apeiros_>
but it might still not be what you want
manizzle has joined #ruby
<apeiros_>
a <- should that match?
<apeiros_>
foo12; <- should that match?
<gener1c>
yeah i want to choose all instances of 2-4 chars that are not serounded by those chars
<apeiros_>
then that regex still won't do
seich has quit [Ping timeout: 246 seconds]
<gener1c>
foo12 can match
<gener1c>
i just want to exclude xhtml entities
<gener1c>
foo12; and ř can match
jslowe has joined #ruby
<apeiros_>
/(?<!&#)\d{2,4}|\d{2,4}(?!;)/
chussenot has quit [Quit: chussenot]
<apeiros_>
this will match "12", "12x", "x12", "#&12foo" and "foo12;" - but not ""
<yalue>
gener1c: Is there a reason why you aren't just using a second regular expression to try to match an xhtml entity?
<Ry>
hey, check out http://rubular.com/ , found it the other day and it's dead handy for regex testing with ruby syntax
<gener1c>
im using it now
<yalue>
Also, you can ask on #regex
slainer68 has quit [Remote host closed the connection]
kbeddingfield has quit [Ping timeout: 256 seconds]
<gener1c>
ok ill use a second regex
seich- has joined #ruby
<gener1c>
that would be smarter :/
a_a_g has quit [Quit: Leaving.]
awestroke has quit [Remote host closed the connection]
<gener1c>
the issue is that this is a huge string
<gener1c>
but its still O(n) if i run over it twise so..
<yalue>
Yeah, you could probably just do a
<yalue>
"huge string".gsub!(/&#[^;];/, "")
<yalue>
To remove the entities, then just scan for the numbers
<gener1c>
i want them there
<gener1c>
i am flipping numbers
<yalue>
Oh, okay...
<gener1c>
i just dont want to harm the entities
samphippen has quit [Quit: Computer has gone to sleep.]
<gener1c>
what if i already have a regex for the entities and im passing it a hash can i use a block for the stuff that doesnt match?
chriskk has quit [Quit: chriskk]
dhruvasagar has quit [Ping timeout: 240 seconds]
<gener1c>
nevermind im just trying to be original and thats a bad thing
v0n has joined #ruby
Virunga has quit [Remote host closed the connection]
Slivka has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
djbpython has quit [Ping timeout: 246 seconds]
<gener1c>
thanks everyone :)
kil0byte_ has joined #ruby
<failshell>
lets say you're running a loop, how can i improve speed by running them in parallel?
rippa has joined #ruby
icole has joined #ruby
chriskk has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
geekbri has joined #ruby
Vinz_` is now known as Vinz_
<apeiros_>
failshell: concurrency isn't a silver bullet. you can't just apply "recipe X" and it'll work. you'll have to be more precise about your problem.
dhruvasa1ar has joined #ruby
irleif has joined #ruby
Takehiro has quit [Remote host closed the connection]
skaczor has joined #ruby
<failshell>
apeiros_: im looping through a list of hosts to connect over ssh to machines to run inventories
<failshell>
obviously, if each one execute after the other, when you have 500 machines, its gonna be long
<failshell>
so id like to parallelize the process
timonv has joined #ruby
icole has quit [Ping timeout: 245 seconds]
<apeiros_>
take a look at the peach gem
darthdeus has quit [Quit: Leaving...]
justinmcp has quit [Remote host closed the connection]
carloslopes has joined #ruby
tiripamwe has joined #ruby
Androidnewbe has quit [Ping timeout: 276 seconds]
CaptainKnots has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
Ry has quit [Ping timeout: 255 seconds]
awestroke has joined #ruby
larissa has quit [Ping timeout: 260 seconds]
darthdeus has joined #ruby
redbull has quit [Read error: Connection reset by peer]
marius has quit []
[Neurotic] has quit [Remote host closed the connection]
redbull has joined #ruby
<failshell>
apeiros_: much simpler
<failshell>
that kind of gem is why i love ruby so much
banisterfiend has quit [Ping timeout: 245 seconds]
<failshell>
helps non-developers like me write nice apps anyway
<JonnieCache>
apeiros_: so many cases are "embarassingly parallel" though so you really can apply a recipe and have it work
fyolnish has joined #ruby
Ry has joined #ruby
<JonnieCache>
theres so much stuff which is needlesly done serially but doesnt have any shared state
<apeiros_>
JonnieCache: yes, but it's not "one recipe that fits it all"
<apeiros_>
the specific case matters.
<apeiros_>
otherwise you're just butting your head into race conditions and state corruption
ij has joined #ruby
ij has quit [Read error: Connection reset by peer]
<JonnieCache>
there is a *lot* of stuff you can just put peach onto without worrying very much though
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
zz_Cidan has quit [Ping timeout: 268 seconds]
mark_locklear has joined #ruby
philcrissman has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 244 seconds]
pkondzior_ has quit [Remote host closed the connection]
zz_Cidan has joined #ruby
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #ruby
tk__ has joined #ruby
<JonnieCache>
but if youre optimizing without benchmarking then youre not optimizing
answer_42 has joined #ruby
Guest69755 has quit [Remote host closed the connection]
visof has quit [Quit: leaving]
chriskk has quit [Quit: chriskk]
slainer68 has joined #ruby
<fir_ed>
Does anyone here have experience with Nokogiri?
<shevy>
Nokogiri
<shevy>
that is the thing that deals with XML
Virunga has quit [Remote host closed the connection]
<shevy>
I declare XML to be dead.
Banistergalaxy has joined #ruby
<shevy>
who is buttering his head apeiros_ ? :)
ij has joined #ruby
<apeiros_>
fir_ed: metaquestions--
bbttxu has quit [Quit: bbttxu]
AndChat| has quit [Ping timeout: 260 seconds]
larissa has joined #ruby
lxsameer has joined #ruby
<fir_ed>
Nokogiri -> I'm HTML parsing a page on the apple website to test it out and learn. I don't understand one of the results. I am getting back a full name that I don't know where it is coming from
<fir_ed>
I just checked the source code, I see the ...'s
codecaster has left #ruby [#ruby]
graeme_ has joined #ruby
<apeiros_>
fir_ed: I assume you used the DOM browser
invisime has joined #ruby
<apeiros_>
which shows you the current state of the dom, not the original
<fir_ed>
How can I access the original?
<apeiros_>
depends on your browser
<fir_ed>
Chrome
<fir_ed>
:P
Agis__ has quit [Quit: Agis__]
<apeiros_>
funny, I haven't even yet installed chrome on this machine as it seems
<fir_ed>
apeiros_, I see what you mean.
<apeiros_>
well, until I have chrome downloaded - "inspect element" = current state of DOM
<fir_ed>
The unedited html page sent to the browser shows it.
kil0byte has joined #ruby
<fir_ed>
Yeah I was using inspect element/dev tools
AndChat| has joined #ruby
<fir_ed>
So I'm guessing the javascript edited the DOM after the html page is sent?
<apeiros_>
that's my assumption, yes
<fir_ed>
Thanks apeiros_, Helped a lot.
niklasb has joined #ruby
<JonnieCache>
fir_ed: when youre parsing html from a site, the DOM browser will often mislead you like that
<JonnieCache>
fir_ed: either disable js, or use the "view source" instead
AndChat- has joined #ruby
<fir_ed>
JonnieCache, Thank you as well for the information.
<fir_ed>
On a sidenote, I'm seeing escape sequences in the returned parse. Is this something to do with unicode?
kil0byte_ has quit [Ping timeout: 255 seconds]
<fir_ed>
Specifically Psy's Gangnam style..
oquidave has joined #ruby
<fir_ed>
since it is in korean.
AndChat| has quit [Read error: Connection reset by peer]
andynu has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<apeiros_>
fir_ed: you mean things like Ӓ ?
Banistergalaxy has joined #ruby
<fir_ed>
(\uAC15\uB0A8\uC2A4\uD0C0\uC77C) <-- stuff like that
zmo_ has quit [Ping timeout: 256 seconds]
<apeiros_>
yes, those are unicode sequences
erichmenge has joined #ruby
Virunga has joined #ruby
<apeiros_>
\uHHHH is a single unicode character
<JonnieCache>
gangnam style is actually in the charts now?
<fir_ed>
It is number one. lol
nilg has quit [Ping timeout: 248 seconds]
* JonnieCache
thinks he shouldnt be programming, he should be selling reheated euro-dance cliches to americans for big $$$
Proshot_ has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
<fir_ed>
americans eat that stuff up
AndChat- has quit [Ping timeout: 246 seconds]
<fir_ed>
But yeah, thanks guys
<JonnieCache>
yes but why are they only eating it up now? why havent they been eating it up for the last decade like the euro kids?
<JonnieCache>
must be the alignment of the planets...
_nitti has joined #ruby
<apeiros_>
americans are a bit slower, have patience with them. maybe in a couple of decades, they'll also have a reconnaisance
Banistergalaxy has quit [Ping timeout: 246 seconds]
Androidnewbe has joined #ruby
<Androidnewbe>
guys do you know how can i chagne a value of environmental variable for ruby
<apeiros_>
Androidnewbe: just the same as for every other executable
<JonnieCache>
a decade isnt even long enough i swear that guetta stuff is like 20 years out of date
<apeiros_>
FOO=bar ruby -e 'p ENV["FOO"]'
<apeiros_>
or good old export
<oquidave>
hello people...
<apeiros_>
headache is odd… I somehow read "hello people" as "old people" - wtf?
<Androidnewbe>
given i have environmeltna varaibel like set BrowserType =0 then i ruby code i do env['BrowserType']= 1 ?
<apeiros_>
eh?
<apeiros_>
I think you misunderstand how env vars work
daniel_hinojosa has joined #ruby
jeffreybaird has joined #ruby
<Androidnewbe>
probably
<apeiros_>
env vars are used by apps, they are not set by them
atmosx has joined #ruby
<apeiros_>
why'd you set an env var in an app?
<Androidnewbe>
because im running cucumber testing and I want to execute cucumber test mulitple times and depending on the evn varaible i will swich the brawser
<Androidnewbe>
so i set the variable in comand line
<oquidave>
am new to ruby...could someone explain what params[:event] means. why isn't it something like params["event"]...what does the :event really imply thanks
d2dchat has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
<Androidnewbe>
like this : set BrawserType =0
<apeiros_>
oquidave: :event.class # => Symbol
<atmosx>
oquidave: it's a symbol
slainer68 has joined #ruby
<apeiros_>
just like 1, "hello", [] - a :foo is a kind of literal value, creating objects of the class Symbol
<apeiros_>
and why'd you prefer Symbols over Strings (or the other way round) is widely documented online, just google "ruby Symbol vs String" or somesuch
<Androidnewbe>
and in the code i can chenck the value and if it's 0 set brawsaer to firefox and change the varialbe to 1 then next time if is 1 change browser to ie and so on
rjsamson has joined #ruby
<oquidave>
apeiros_: thanks
pkondzior_ has joined #ruby
<apeiros_>
Androidnewbe: well, you read the env via ENV
kbeddingfield has joined #ruby
ABK has quit [Ping timeout: 255 seconds]
<apeiros_>
and you set the env for a ruby app the same way as for any other (just as demonstrated)
krz has quit [Quit: krz]
wmoxam has joined #ruby
<Androidnewbe>
but I would like to change its value at run time in the code
<apeiros_>
then why'd you use an env variable?
<apeiros_>
just use a normal variable
v0n has quit [Ping timeout: 240 seconds]
ThaDick has joined #ruby
bbttxu has joined #ruby
noxoc2 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
erichmenge has quit [Quit: Be back later]
x0F_ is now known as x0F
Cultofmetatron has joined #ruby
<Androidnewbe>
because i need to run the test for each browser separately
<Androidnewbe>
Cucumber makes it reall difficult
kbeddingfield has quit [Ping timeout: 252 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
iamvery has joined #ruby
dakine has joined #ruby
aquaranto has joined #ruby
noxoc1 has quit [Ping timeout: 244 seconds]
<Androidnewbe>
i guess I dont understadn how env varaibles work in ruby
aquaranto has quit [Remote host closed the connection]
<oquidave>
apeiros_: i can also read that symbols are immutable while strings are not
<Androidnewbe>
is i change its value in the app and then run app again will the value remian of it will re set
visof has joined #ruby
<invisime>
Androidnewbe: are you using rake to kick off your cucumber tasks?
<Androidnewbe>
no
tiripamwe has quit [Ping timeout: 244 seconds]
<Androidnewbe>
im not sure how rake works
<visof>
how can i check ip address is alive or not ?
<invisime>
if you were, you could simply call your cucumber task multiple times and run the tests for each browser consecutively.
<invisime>
rake is just ruby.
<oquidave>
hello what is the ruby on rails channel? and can i also ask rol qns here? thanks
lxsameer has quit [Quit: Leaving]
<Androidnewbe>
i have like ode day experienec with ruby
<invisime>
oquidave: #rubyonrails
mbk_ has joined #ruby
DrShoggoth has joined #ruby
<Androidnewbe>
invisime do you cucumber ?
<oquidave>
invisime: thanks
<invisime>
Androidnewbe: no, because I couldn't sell the client on BDD. but cucumber is built on top of rspec. which I am using for TDD.
aquaranto has joined #ruby
rjsamson has quit [Remote host closed the connection]
iamvery has quit [Remote host closed the connection]
rjsamson has joined #ruby
iamvery has joined #ruby
<oquidave>
how can i dump an array like (params[:event])
<JonnieCache>
oquidave: dump it to what
<apeiros_>
oquidave: p, pp, y
<oquidave>
JonnieCache: just to see it's contents for debugging
<apeiros_>
(pp needs `require 'pp'`, y needs `require 'yaml'`)
<Androidnewbe>
im quinte lost with all those frameworks im susing selenium cucubmber and capybara and ruby and im completely new to all of it. But my test are running and everything works I just need to find out how can i run same test on multiple browsers.
<apeiros_>
e.g. require 'pp'; pp params[:event]
<oquidave>
JonnieCache: i've a couple of post parameters from a form and i want to see what's being sent for isntance
<JonnieCache>
oquidave: like apeiros_ said theres p, and pp
<JonnieCache>
oquidave: rails prints all its params in the server logs as standard though
rjsamson has quit [Read error: Connection reset by peer]
rjsamson has joined #ruby
<invisime>
Androidnewbe: whichever of those you're using for your top-level task... wrap it with a rake task and call it once per browser, passing in the option each time.
<JonnieCache>
oquidave: also in rails views you can do `debug(params[:events])` and it outputs nicely formatted html for you
<invisime>
aaand I've got a meeting.
<oquidave>
JonnieCache: thanks i'll look at both options
mmitchell has joined #ruby
jcaudle has joined #ruby
kylemcgill has joined #ruby
kylemcgill has quit [Client Quit]
Banistergalaxy has joined #ruby
kylemcgill has joined #ruby
beiter has joined #ruby
AndChat| has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
tiripamwe has joined #ruby
BSaboia has quit [Client Quit]
graeme_ has quit [Quit: graeme_]
oquidave_ has joined #ruby
jcaudle has quit [Remote host closed the connection]
oquidave has quit [Quit: Konversation terminated!]
jcaudle has joined #ruby
BSaboia has joined #ruby
kylemcgill has quit []
<visof>
how can i check ip addredd liks 4.4.4.4 is alive using ruby code ?
`gregorg` has joined #ruby
nanderoo has joined #ruby
kylemcgill has joined #ruby
kylemcgill has quit [Read error: Connection reset by peer]
<visof>
s/addredd/address
Slivka has quit [Read error: Connection reset by peer]
kylemcgill has joined #ruby
gregorg_taf has quit [Read error: Connection reset by peer]
<apeiros_>
ping gem
<apeiros_>
though, some servers disable ping response
xjiujiu_ has joined #ruby
<Xeago>
you could also use system
<Xeago>
tho using the gem is probably more sane as it doesn't require parsing hte output
tiripamwe has quit [Ping timeout: 256 seconds]
ffranz2 has quit [Quit: Leaving]
<JonnieCache>
be a man and send ICMP packets yourself
ffranz has joined #ruby
<JonnieCache>
:)
<apeiros_>
NIH, so manly
<apeiros_>
:-p
chussenot has joined #ruby
<JonnieCache>
agreed
GoGoGarrett has joined #ruby
<JonnieCache>
the use of "be a man" was meant to imply irony but i suppose in this brave new world of brogramming i cant assume that anymore
yeggeps has quit [Quit: yeggeps]
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
deadalus has quit [Quit: Leaving]
mucker has joined #ruby
macabre has joined #ruby
sailias has joined #ruby
ttt has quit [Remote host closed the connection]
daniel_- has quit [Read error: Operation timed out]
carloslopes has quit [Read error: Connection reset by peer]
<visof>
apeiros_: i want to do htto request and check the status code, but i need to do that using ip addresses not url
d2dchat has joined #ruby
carloslopes has joined #ruby
kil0byte_ has joined #ruby
jrajav has joined #ruby
haxrbyte_ has joined #ruby
kylemcgi_ has joined #ruby
atmosx has quit [Quit: quiting...]
<JonnieCache>
visof: you can use an ip address in a url
kil0byte has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
<apeiros_>
it might be that the server refuses to reply, though
<banister_>
and no matter how i try to install libssl libssl-dev it never works, i get errors about not finding the host
<visof>
JonnieCache: it should check if ip is up
<JonnieCache>
visof: it will print the body if the ip sends a 200 response
<banister_>
how should i install openssl in linux such that ruby has openssl support?
<JonnieCache>
visof: but like apeiros_ says a http server may not return the response you expect if it is a server which is normally queried using a domain rather than an ip
pu22l3r has quit [Ping timeout: 260 seconds]
<JonnieCache>
banister_: isnt it openssl-devel you need?
fermion has quit [Ping timeout: 248 seconds]
<JonnieCache>
rather than libssl
Androidnewbe has quit [Ping timeout: 265 seconds]
<banister_>
JonnieCache: that package (openssl-devel) doesnt appear to exist afaict
<banister_>
but i got libssl just by googling around a bit
<banister_>
libssl-dev & frens
<JonnieCache>
im thinking of redhat maybe
<banister_>
got the name i mean, installing it still doesnt work..
pu22l3r has joined #ruby
<JonnieCache>
did you recompile ruby after installing it?
<JonnieCache>
or did you recompile the openssl bits of ruby at least
<banister_>
JonnieCache: that's the thing, i didnt manage to get it to install
<JonnieCache>
lol well maybe you should update the apt cache
<JonnieCache>
because its 404ing when its getting the package. which is mental.
failshell has quit [Quit: Lost terminal]
<banister_>
JonnieCache: trying that now :P
<banister_>
i didnt really read the error message
<banister_>
hopefully this fixes it
kkiero has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
JStoker has joined #ruby
JStoker has quit [Changing host]
JStoker has joined #ruby
<apeiros_>
visof: anyway, if you're only interested in the return status, then don't forget to use a HEAD request instead of a full GET
<JonnieCache>
apeiros_: good call
Progster has joined #ruby
kylemcgi_ has quit [Remote host closed the connection]
kylemcgill has joined #ruby
cdzombak has joined #ruby
hotovson has joined #ruby
mikepack has joined #ruby
fantazo has joined #ruby
<visof>
apeiros_: use equest = Net::HTTP::Head::Get.new uri.request_uri rather than equest = Net::HTTP::Get.new uri.request_uri , or ?
chrisja has joined #ruby
<Xeago>
visof: they differ in semantics
kil0byte_ has quit [Ping timeout: 246 seconds]
tiripamwe has joined #ruby
<visof>
Xeago: how can i use it ?
<Xeago>
though I have to take my statement back, because I have no idea what the namespace Head implies, thought it would be a head request but the Get.new implies different
proshot has joined #ruby
treyryan has joined #ruby
kil0byte has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
elico has quit [Remote host closed the connection]
<kaleido>
head is identical to get except the server mustnt return the body
awestroke has quit [Remote host closed the connection]
sambio has joined #ruby
dmerrick has joined #ruby
c0smic has joined #ruby
d3vic3 has quit [Ping timeout: 240 seconds]
c0smic has left #ruby [#ruby]
kkiero has joined #ruby
postmodern has quit [Quit: Leaving]
_nitti has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby
kylemcgill has quit []
kylemcgill has joined #ruby
reinaldob has quit [Remote host closed the connection]
<apeiros_>
use constants or a different loading mechanism
<banister_>
fir_ed: or you could just accept that locals wont be available
* apeiros_
smacks banister_ over the head with bad style :-p
chussenot has quit [Quit: chussenot]
xcvd`` has quit [Quit: Leaving]
jslowe has joined #ruby
<fir_ed>
banister_: I want a hash in my script to be available after the script. Would the proper way to make the script a class and create an object with it?
visof has quit [Quit: leaving]
Elhu has joined #ruby
jeffreybaird has joined #ruby
<Kovensky>
<apeiros_> fir_ed: local variables are named local variables because they're local <-- there's no dynamic scope? :(
Androidnewbe has joined #ruby
<apeiros_>
Kovensky: ?
jlwestsr has joined #ruby
<hoelzro>
Kovensky: afaik, Ruby does not have dynamic scope in the sense of Perl or Lisp.
<reactormonk>
apeiros_, oh, you're here again? didn't scare you off yet?
<apeiros_>
reactormonk: annoyance levels are back to normal
<reactormonk>
hoelzro, depends, you have object-local variables you can use as dynamic scope - but only barely
chussenot has joined #ruby
mercwithamouth has joined #ruby
rippa has quit [Ping timeout: 268 seconds]
Banistergalaxy has quit [Ping timeout: 276 seconds]
<Kovensky>
hoelzro: it's convenient to have once in a while, and it could potentially help with multithreading (dynamically scoped variables being automatically thread local)
<banister_>
hoelzro: judging by that definition it would seem that constants have dynamic scope
<reactormonk>
... or just go with instance_exec and then you have dynamic scope ;-)
Ry has joined #ruby
<banister_>
hoelzro: (from the wikipedia page)
<Kovensky>
...as long as you don't fork any new threads from inside the dynamic scope
<hoelzro>
the way I look at it, dynamic scope allows a new variable scope to be introduced with a particular activation record
<reactormonk>
banister_, likely, but they suck. you can't rebind them
<hoelzro>
that may not be the academic definition, though
<Androidnewbe>
how can i run cucumber test form rake test file ?
Banistergalaxy has joined #ruby
<reactormonk>
Androidnewbe, isn't this #rubyonrails ?
<banister_>
reactormonk: rebind?
<reactormonk>
hoelzro, I don't think so
_nitti has joined #ruby
<reactormonk>
banister_, well, the stuff hoelzro is talking about
<reactormonk>
Androidnewbe, do you run it in a rails env?
<Androidnewbe>
no
<Androidnewbe>
in standard ruby
darthdeus has joined #ruby
Vinz_ is now known as Vinz_`
ThaDick has joined #ruby
<reactormonk>
banister_, you could also introduce some functions in between, as in (let ((a 3)) (defun hello () (format "~d" a)) (let ((a 30)) (hello)))
u89 has quit [Remote host closed the connection]
<reactormonk>
Androidnewbe, dig the source ;-)
ttt has joined #ruby
juha_ has quit [Ping timeout: 244 seconds]
<Androidnewbe>
im too new
<Androidnewbe>
:(
<banister_>
reactormonk: so would the 'a' in hello be 3 or 30 ?
<Androidnewbe>
dont know anything :(
<Kovensky>
our $var = "foo"; sub a { local $var = "bar"; say $var; } a(); say $var;
<Kovensky>
will print
<Kovensky>
bar
<Kovensky>
foo
u89 has joined #ruby
juha_ has joined #ruby
<Kovensky>
that isn't a good demonstration though since the same thing can be accomplished through 'my' (regular lexical scope) <_<
<reactormonk>
banister_, should be a 30
<Kovensky>
our $var = "foo"; sub a { say $var; } sub b { local $var = "bar"; a() } b(); say $var;
u89 has quit [Remote host closed the connection]
<banister_>
reactormonk: one sec
<Kovensky>
^ is a better demonstration
<Kovensky>
and has the same output as the previous one
Banistergalaxy has quit [Ping timeout: 276 seconds]
<banister_>
reactormonk: so 'a' inside the second let doesn't shadow the prior a it overrides it?
<reactormonk>
banister_, it shadows
apeiros_ has quit [Read error: Connection reset by peer]
jrajav has quit []
ttt has quit [Ping timeout: 240 seconds]
<banister_>
reactormonk: but 'hello' closed over the prior 'a', so surely it should return 3 not 30
freakazoid0223 has joined #ruby
<reactormonk>
banister_, err, lemme correct that
minijupe has joined #ruby
<Kovensky>
at least in perl, 'local' is restricted to only work on globals, not lexicals, precisely because of closures
<Kovensky>
and IIRC in common lisp you have to mark the global as a special var for it to get dynamically scoped
Takehiro has joined #ruby
juha_ has quit [Remote host closed the connection]
quest88 has joined #ruby
vickaita has joined #ruby
Virunga has joined #ruby
joofsh has joined #ruby
elux has joined #ruby
<reactormonk>
Kovensky, yep, you have to - forgot that
<reactormonk>
it's (defvar a)
<reactormonk>
too much elisp :-)
<Kovensky>
heh
<reactormonk>
anyway, fuck it, go with Kovensky's example.
<Kovensky>
I should actually write something in lisp other than my emacs config
<Kovensky>
all I remember of clisp is what I read over a year ago, which I have mostly forgotten <_<=
philcrissman has quit [Remote host closed the connection]
nari has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
Virunga has quit [Remote host closed the connection]
noxoc2 is now known as noxoc
sleetdrop has joined #ruby
SCommette has joined #ruby
baphled_ has joined #ruby
sleetdrop has quit [Remote host closed the connection]
sleetdrop has joined #ruby
baphled has quit [Read error: Connection reset by peer]
psycho_one has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
jrajav has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
<jrajav>
Someone mentioned the bot
kamsky has joined #ruby
<reactormonk>
bot?
<Xeago>
yes I did
<jrajav>
I actually have the vm image on my hard drive, but I keep forgetting to put it up as a torrent when I go home
redbull has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
<Xeago>
please do jrajav
redbull has joined #ruby
<jrajav>
You don't really need it, though, you could set it up on your own. It might take a little longer
<Xeago>
I got multiple nodes ready to suck your bandwidth
<Xeago>
I am not sure how to set up the chroot
<Xeago>
even after the instructions you set up for invisime
<jrajav>
I could forward you the same instructions I sent to Tom Root (he doesn't seem to be able to do it anymore)
Vert has joined #ruby
<jrajav>
I could try just sending you the image first if that's easier for you
<Xeago>
would prefer that
<jrajav>
I'll set an alarm on my phone and hopefully that forces me to remember tonight XD
zodiak has joined #ruby
<Xeago>
what time should I remind you?
Cultofmetatron has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
dekroning has quit [Ping timeout: 256 seconds]
erichmenge has quit [Quit: Be back later]
sepp2k has joined #ruby
<jrajav>
If I'm on IRC, anytime after 17:00-18:00 CST
<reactormonk>
jrajav, what's that in GMT?
awestroke has joined #ruby
<jrajav>
CST is -5:00 or 6:00 depending on DST
Cultofmetatron has joined #ruby
<Xeago>
you us-east?
<jrajav>
Central
<Xeago>
ah ok
Monie has joined #ruby
<jrajav>
Looks like it's currently -5
kamsky has quit [Changing host]
kamsky has joined #ruby
<jrajav>
(I can never keep track of when DST is in effect and whether it's forward or back :P)
kamsky has left #ruby [#ruby]
<jrajav>
DST is the silliest thing ever honestly
<reactormonk>
jrajav, yep.
<Xeago>
clock is the silliest thing ever
<Xeago>
base 12/24/60 in base10
<jrajav>
Agreed
<jrajav>
So are timezones
<reactormonk>
Xeago, it's better than imperial
<reactormonk>
jrajav, timezones are needed somehow...
<Xeago>
reactormonk: nah
juha_ has joined #ruby
<jrajav>
Are they really?
<Xeago>
I want a day to last 100 units
<Xeago>
or 10 units
<jrajav>
Couldn't we just acclimate to different numbers for different times of the day in different areas?
boondox has joined #ruby
<jrajav>
I mean, we already do that, it's just that we all acclimate to the SAME numbers
pu22l3r has quit [Remote host closed the connection]
<jrajav>
But then the burden falls on the conversion
<reactormonk>
jrajav, yep. that's what timezones are for
mahmoudimus has joined #ruby
<reactormonk>
you rarely care about what time it is on another place in the world
<Xeago>
they fail tho
<jrajav>
But why should we arbitrarily understand 12:00 to be the middle of the day or night, what's so special about 12?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<jrajav>
And it's not even the true middle
jlwestsr has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
<reactormonk>
it's an arbitrary middle. good enough ;>
<reactormonk>
but DST still sucks.
<jrajav>
I don't think it would change a lot to have one universal time
<reactormonk>
as do feet an all that shit
kbeddingfield has quit [Ping timeout: 260 seconds]
<jrajav>
I'm fine with the middle of my day falling on 9:54
<reactormonk>
lot of people aren't
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Xeago>
I am not fine with having a time like 9:54
LucidDreamZzZ has quit [Remote host closed the connection]
a_a_g has joined #ruby
boondox has quit [Client Quit]
<jrajav>
Fine, I'm fine with the middle of my day falling on 0.954 :P
chussenot has joined #ruby
<Xeago>
jrajav: define 1.000 :)
<jrajav>
The start of the next day
<Xeago>
and 0.000 ?
<jrajav>
The start of today
djbender has joined #ruby
<Xeago>
wait: .954 for the first half and .046 for the second half?
mahmoudimus has quit [Client Quit]
dekroning has joined #ruby
<jrajav>
A floating point representation of time would be ideal, it's base- and representation-agnostic
yeggeps has joined #ruby
erichmenge has joined #ruby
<invisime>
jrajav: I've just finished moving to a new apartment.
<jrajav>
Xeago: I meant "middle of the day" in the sense of "sun at its highest point"
djbender has quit [Client Quit]
<invisime>
I may be able to get the bot up and running in the next few weeks, but no guarantees.
<jrajav>
Xeago: In the context of having one universal time for the whole world rather than splitting it into timezones; inevitably someone would have to have their time not correspond the the motion of the sun
<jrajav>
invisime: Xeago may be able to
carloslo_ has quit [Remote host closed the connection]
djbender has joined #ruby
<jrajav>
You could both do it and have a bot war :P
<Xeago>
floating points aren't base agnostic
<invisime>
lol.
<Xeago>
jrajav: I'd convert it to a vagrant first
<Xeago>
than that can just be posted on piratebay and on downloads of github
<jrajav>
Xeago: You can represent any real number from 0 to 1 in any base....
<Xeago>
and everyone can vagrant up it and done
<jrajav>
I looked into vagrant, I don't see the benefit of that vs. just distributing my vm image
<Xeago>
easier starting of the vm imo
<jrajav>
You can convert it yourself, or set it up from scratch yourself
<Xeago>
and easier "I want to start clean now"
<jrajav>
It's honestly super easy
<Xeago>
chrooting scares me :<
<jrajav>
Just a vanilla Arch install with a few packages and then the chroot
<banister_>
reactormonk: where let is: def let; yield; end
<jrajav>
Chrooting is basically just mkdir, a few chmod's, a few cp's, and then 'chroot'
<jrajav>
And I can spell out each step
zarubin has quit []
<jrajav>
Sorry, gotta go for now, back in an hour or so
<Xeago>
bai!
tk__ has quit [Quit: ばいばい]
jonathanwallace has joined #ruby
judd7 has joined #ruby
sent-hil has joined #ruby
SCommette_ has joined #ruby
icole has joined #ruby
yshh has quit [Remote host closed the connection]
kiyoura has joined #ruby
samphippen has joined #ruby
quest88 has quit [Quit: quest88]
adeponte has joined #ruby
dekroning has quit [Ping timeout: 265 seconds]
SCommette has quit [Ping timeout: 252 seconds]
SCommette_ is now known as SCommette
treyryan has quit [Quit: treyryan]
iamvery has quit [Remote host closed the connection]
xclite has joined #ruby
davidcelis has quit [Quit: K-Lined.]
icole has quit [Ping timeout: 240 seconds]
dekroning has joined #ruby
c0smic has joined #ruby
<reactormonk>
banister_, that proc syntax still creeps me out
lolmaus has joined #ruby
adeponte has quit [Remote host closed the connection]
<banister_>
reactormonk: i think it's cute
adeponte has joined #ruby
<reactormonk>
and .() is just plain confusing
gener1c_ has quit [Remote host closed the connection]
<reactormonk>
banister_, yep, ruby has some slight dynamic binding as seen in the second example
<reactormonk>
banister_, with a global var, the first example would return 30 as well
<reactormonk>
... or dynamic binding
<reactormonk>
hmm, .() makes some wierd kind of sense
mntzn has quit [Quit: Lost terminal]
Slivka has joined #ruby
erichmenge has quit [Quit: Be back later]
vlad_starkov has joined #ruby
Virunga has joined #ruby
invapid has joined #ruby
dekroning has quit [Ping timeout: 265 seconds]
rasbonics has joined #ruby
larissa has quit [Quit: Leaving]
Progster has quit [Ping timeout: 260 seconds]
banister_ has quit [Remote host closed the connection]
ABK has joined #ruby
ckrailo has joined #ruby
djbender has quit [Quit: djbender]
tomsthumb has joined #ruby
tpe11eti1r has joined #ruby
Progster has joined #ruby
mbk_ has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
geggam has joined #ruby
krawchyk has joined #ruby
dekroning has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
krawchyk has quit [Client Quit]
dnstbr has quit [Quit: Computer has gone to sleep.]
<Androidnewbe>
does anyone know how can i invoke a ruby app multple times in command line in windows
<Androidnewbe>
automatically
Morkel has quit [Quit: Morkel]
<Androidnewbe>
so it will run like 5 tiems in row or something like that
chimkan has joined #ruby
_nitti_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Slivka has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 255 seconds]
Slivka has joined #ruby
Russell^^ has joined #ruby
skaczor has quit [Ping timeout: 244 seconds]
skaczor has joined #ruby
<Xeago>
in macvim
<Xeago>
how to exit fullscreen mode
proshot has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
<burgestrand>
Xeago: CTRL+CMD+F
adeponte has joined #ruby
<Xeago>
why not shiftcmd+f >.<
<burgestrand>
Xeago: if you are using native fullscreen you can also go to top-right corner with the mouse and click the blue little thingy in the menu bar.
<Xeago>
cmd+swift+f is the systemwide standard for fullscreen
carloslopes has joined #ruby
<Xeago>
wops
<Xeago>
apparently not, I take that back
beandip has quit [Ping timeout: 265 seconds]
sebastorama has joined #ruby
baphled has joined #ruby
a_a_g has quit [Quit: Leaving.]
<Xeago>
does homebrew vim have ruby support
rippa has joined #ruby
<Xeago>
so I can command-t in it?
<hoelzro>
Xeago: yes
<hoelzro>
it does
<Xeago>
awesome, any caveats I should look for?
Agis__ has joined #ruby
Ry has joined #ruby
<hoelzro>
which reminds me...I want to add options to that formula
<Agis__>
what's the workflow of updating a gem's version? I've just changed it in the gemspec and run "gem build" again, and now I have these 2 files: hola_agis-0.0.1.gemhola_agis-0.0.2.gem
adeponte has quit [Ping timeout: 256 seconds]
c0smic has left #ruby [#ruby]
<Agis__>
I guess I done something wrong?
tagrudev has quit [Quit: kdopkadow]
kil0byte has joined #ruby
baphled_ has quit [Ping timeout: 248 seconds]
skaczor has quit [Ping timeout: 260 seconds]
zemanel has joined #ruby
<burgestrand>
Xeago: yeah, make sure you compile the command-t with the proper ruby or it will segfault
treyryan has joined #ruby
<burgestrand>
Agis__: one of them is probably from an old build. What are you trying to do>
treyryan has quit [Client Quit]
<Xeago>
burgestrand: I only got 1 ruby at the moment
alexwh has left #ruby [#ruby]
<Agis__>
i'm just playing with rubygems and trying to create my own gem
dnstbr has joined #ruby
<burgestrand>
Agis__: gem build just creates the .gem, if you want to release it push the newly built .gem to rubygems.
<Agis__>
the old build is the first I've made
<Xeago>
tho I am installing 1.9.3 (got 1.8.7 atm) soon
<Xeago>
installing with rbenv
g-ram has joined #ruby
<Agis__>
I know, I just wanted to know if I should remove the old version .gem file
mercwithamouth has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
krawchyk has joined #ruby
<Agis__>
eg. what's the workflow if I want to release another version of my gem?
<burgestrand>
Agis__: once you’ve uploaded the gem to rubygems (or installed the gem directly from the gem), the .gem is no longer needed
<Agis__>
oh
<burgestrand>
Agis__: it’s just a glorified zipfile :)
<Agis__>
I see
kil0byte_ has quit [Ping timeout: 268 seconds]
<burgestrand>
Xeago: macvim used to be aware of multiple ruby versions, but I have a vague memory if it being restricted to ruby 1.8 (or system ruby) recently
skaczor has joined #ruby
<burgestrand>
Xeago: macvim when installed through homebrew, that is
<Xeago>
hoelzro, burgestrand use the formula from homebrew or homebrew-dupes
<Agis__>
so the workflow when creating a gem and releasing new version would be this? I update the version, run "gem build" again to generate the new .gem file. I push it to the servers and then I can just delete it
vlad_starkov has joined #ruby
<hoelzro>
Xeago: that's what I use =)
xpen_ has joined #ruby
ananthakumaran has joined #ruby
<burgestrand>
Agis__: yep
jlwestsr has joined #ruby
arturaz has quit [Remote host closed the connection]
<burgestrand>
Agis__: and update the files in the gem of course, a new version with no changes is kind of useless don’t you think? ;0
sent-hil has quit [Remote host closed the connection]
<burgestrand>
;0 is a very ugly smiley.
<Xeago>
burgestrand: I could also override systemvim with macvim vim according to brew info macvim
<Agis__>
yes sure
<Agis__>
i just want to see how the rubygems API work
vlad_starkov has quit [Remote host closed the connection]
<Agis__>
I try to push and I get this error: Repushing of gem versions is not allowed.
<Agis__>
Please use `gem yank` to remove bad gem releases.
<burgestrand>
Xeago: yeah I used to have that but I switched back for consistency when I ssh into other servers I won’t forget and become confused.
<burgestrand>
Xeago: I do have my $EDITOR set to macvim path though
<Xeago>
hoelzro, burgestrand: which formula there are two >.<
<Agis__>
ah my bad sorry, I accidentally pushed the old .gem file
carloslopes has quit [Ping timeout: 268 seconds]
Rhynn has quit [Ping timeout: 245 seconds]
<Xeago>
$editor is textmate atm, I find tm a bit easier to use with rubies
<burgestrand>
Xeago: two?
<hoelzro>
Xeago: what's the difference between homebrew's and homebrew-dupes'?
pureluck has quit [Ping timeout: 272 seconds]
<JonnieCache>
hoelzro: homebrew-dupes includes stuff thats already part of os x
dakine has joined #ruby
<Xeago>
which is why homebrew shouldn't have it
<Agis__>
so when releasing new versions of a gem, you have to edit the .gemspec each time, right?
<burgestrand>
Agis__: yep!
<hoelzro>
JonnieCache: I know; I meant whats' the difference between the vim formulae present in both
<burgestrand>
Ah, vim formulae, not the macvim one.
vlad_starkov has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
<burgestrand>
Because I only have one macvim formula.
<Xeago>
first of all the version is different
jblack has joined #ruby
proshot has joined #ruby
<Xeago>
and that is it
g-ram has quit [Quit: Computer has gone to sleep.]
sent-hil has joined #ruby
burgestrand has quit [Quit: Leaving.]
beneggett has quit [Ping timeout: 256 seconds]
atmosx has quit [Ping timeout: 276 seconds]
havenn has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
wpaulson has joined #ruby
apok has quit [Quit: apok]
demet8 has joined #ruby
Vinz_` is now known as Vinz_
sspiff has quit [Ping timeout: 260 seconds]
beandip has joined #ruby
margle has joined #ruby
<Xeago>
is there any reason why Homebrew should not be ported to other systems?
reinaldob has joined #ruby
<Xeago>
besides the fact that it would then target 2 systems
<Xeago>
asin, it got completely new formulae for the other system
sspiff has joined #ruby
JLT has joined #ruby
<JLT>
How do I check if a string contains only letters?
<JLT>
a-z in this case.
<JLT>
any foreign characters wont be accepted.
<Xeago>
you could regex it
<JLT>
can be accepted, but ... not needed.
<JLT>
yeah I thought of regex but..
<JLT>
/[a-z]/
kil0byte has quit [Remote host closed the connection]
<JLT>
dunno how to use it lol
headius has joined #ruby
<Xeago>
[a-z] matches a single letter tho
advorak has quit [Quit: Leaving]
<apeiros>
JLT: you have to anchor your regex
<Xeago>
and that is all of my regex knowledge..
<apeiros>
/\A[a-z]*\z/
xpen_ has quit [Remote host closed the connection]
tiripamwe has joined #ruby
<apeiros>
\A matches start of string, followed by any amount (*) of [a-z], followed by end of string
xpen has joined #ruby
<apeiros>
Xeago: before porting it to other systems, it might be an idea to resolve the insanity that is chowning /usr/local to a user
Coolhand has joined #ruby
<JLT>
if str =~ /\A[a-z]*\z/
<JLT>
?
<apeiros>
JLT: for example, yes
<Xeago>
apeiros: yea I read about that, it is a security concern right?
<apeiros>
if you need äöü as well, then you'd use \p{word} instead of [a-z]
theRoUS has quit [Read error: Operation timed out]
<JLT>
thank you, not needed tho :)
kbeddingfield has joined #ruby
treyryan has joined #ruby
Rhynn has joined #ruby
tiripamwe has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
tiripamwe has joined #ruby
Virunga has quit [Remote host closed the connection]
hbpoison has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
jaygen has joined #ruby
davidcelis has joined #ruby
iamvery has joined #ruby
kbeddingfield has quit [Ping timeout: 245 seconds]
<Xeago>
my 'offtopic' questions interfere with no one asking ruby questions, they are still getting answered
<Xeago>
rcassidy just has a difficult question it seems..
nilg has joined #ruby
<csmrfx>
Screw it ruby, I wont massage you into submission - I will just use globals!
chimkan has quit [Quit: chimkan]
keymone has joined #ruby
CaptainKnots has quit [Client Quit]
<csmrfx>
jblack: you mean, add a IO layer to a simple script
<csmrfx>
I want to reduce complexity, not add it
alesguzik has joined #ruby
<shevy>
:)
<jblack>
If you already know what you want, why ask?
<shevy>
that's my man!
<csmrfx>
(I know, dont seem like a big deal, but is to a pea brain like me)
alesguzik has left #ruby [#ruby]
<csmrfx>
jblack: cause I am trying to recall how I used to do it back in 2009
<jblack>
if you want to include a script that has a bunch of global variables (which start with $, btw), have at it my man. It's not like I have to read your code. :)
khakimov has joined #ruby
<shevy>
the problem with globals is that they are available everywhere
kadel has quit [Ping timeout: 240 seconds]
senny has quit [Remote host closed the connection]
<rcassidy>
Xeago: i guess so! haha
<csmrfx>
Pry uses openstruct and accessors
<shevy>
I once set a variable called $TZ in bash. did you know that you can then not compile every program? Because $TZ is reserved... for TIME_ZONE ...
* csmrfx
hates repetition with passion, and accessors mean repeating the varname once
chrishunt has joined #ruby
<shevy>
openstructs have their own problem. can you close an openstruct class at any time?
<Xeago>
csmrfx: rofl
<csmrfx>
I guess ecmascript just got their syntax with objects right
<csmrfx>
no extra cruft, it's all there before your eyes
<csmrfx>
shevy: well, can you close anything in ruby?
<shevy>
I remember I once wanted to use openstruct for a config file
dr_bob has left #ruby [#ruby]
<shevy>
but it annoyed me that I could modify it
_nitti has joined #ruby
<shevy>
(in the phase after I read in the configuration data that is)
omry has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
medik has joined #ruby
apok has joined #ruby
mrsolo has joined #ruby
alvaro_o has joined #ruby
mrsolo has quit [Remote host closed the connection]
apok has quit [Remote host closed the connection]
kil0byte has joined #ruby
_nitti_ has quit [Ping timeout: 240 seconds]
apok has joined #ruby
haxrbyte has joined #ruby
xorigin has quit [Quit: leaving]
erichmeng has joined #ruby
kbeddingfield has joined #ruby
jblack_ has joined #ruby
samphippen has joined #ruby
stkowski has joined #ruby
timonv has quit [Remote host closed the connection]
icole has joined #ruby
mrsolo has joined #ruby
Araxia_ has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
haxrbyte_ has joined #ruby
iamvery has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
ltsstar has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
ThaDick has joined #ruby
erichmeng has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
ThaDick has quit [Client Quit]
erichmeng has joined #ruby
rohrer has quit [Ping timeout: 252 seconds]
jrajav has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
darthdeus has joined #ruby
erichmenge has quit [Ping timeout: 268 seconds]
thisirs has joined #ruby
<apeiros>
JonnieCache: no idea. you'd have to ask the brew author. I'd assume because many tools automatically look in /usr/local, but the same should be achievable by setting the proper env vars
Jork1 has quit [Ping timeout: 252 seconds]
erichmeng is now known as erichmenge
icole has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Read error: Connection reset by peer]
jaygen_ has joined #ruby
<Xeago>
apeiros: some tools have that list hardcoded
kbeddingfield has quit [Remote host closed the connection]
nyrb has quit [Read error: Connection reset by peer]
SleepN0T has joined #ruby
nyrb has joined #ruby
rakl has quit [Quit: sleeping]
slainer68 has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
kbeddingfield has joined #ruby
clj_newb has joined #ruby
cantonic has joined #ruby
slainer68 has quit [Ping timeout: 265 seconds]
nachos_ has quit [Quit: Page closed]
J-_-L has joined #ruby
ThaDick has quit [Quit: I'm outta here!]
tchebb has joined #ruby
nilg has quit [Ping timeout: 248 seconds]
sertaconay has joined #ruby
aces23up has joined #ruby
rohrer has joined #ruby
aces1up has quit [Ping timeout: 268 seconds]
jimeh has quit [Ping timeout: 240 seconds]
savage- has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
J-_-L has quit [Quit: Leaving.]
otters has quit [Ping timeout: 253 seconds]
havenn has joined #ruby
Paradox has quit [Quit: derpderp]
grauwoelfchen has joined #ruby
grauwoelfchen has left #ruby [#ruby]
arietis has joined #ruby
rohrer has quit [Ping timeout: 265 seconds]
Paradox has joined #ruby
Takehiro has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 260 seconds]
headius has joined #ruby
otters has joined #ruby
Andrevan has joined #ruby
Andrevan has quit [Changing host]
Andrevan has joined #ruby
chriskk has quit [Quit: chriskk]
tiripamwe has joined #ruby
nilg has joined #ruby
dekroning has quit [Ping timeout: 255 seconds]
kpshek has quit []
rakl has joined #ruby
adeponte has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
keyvan has quit [Remote host closed the connection]
ebobby has joined #ruby
cakehero has joined #ruby
TheFuzzball has quit [Remote host closed the connection]
Jork1 has joined #ruby
Andrevan has quit []
workmad3 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nobitanobi_ has joined #ruby
timonv has joined #ruby
rakl has quit [Quit: sleeping]
bbttxu has joined #ruby
Andrevan has joined #ruby
Andrevan has quit [Changing host]
Andrevan has joined #ruby
<nobitanobi_>
I have the following: (my_value*20).round/20.0 --> Which I use to round up to the nearest 0.05 . For example: 0.5625 is rounded to 0.55 . My question is..How would I round UP to the nearest 0.05
Jork1 has quit [Client Quit]
<Paradox>
anyone have any good articles explaning the nuances of &:syntax for things like map
<Paradox>
i guess reduce is better
<Paradox>
but same idea
maletor has joined #ruby
kpshek has joined #ruby
djbender has joined #ruby
djbender has left #ruby [#ruby]
<Paradox>
im trying to teach it and cant really remember any of the rules i learned
adeponte has joined #ruby
monkegjinni has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
elux has quit [Quit: Bye!]
adeponte has quit [Remote host closed the connection]
jaygen has joined #ruby
carloslo_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
joephelius has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
catcity has joined #ruby
mklappstuhl has joined #ruby
havenn has joined #ruby
minijupe has quit [Quit: minijupe]
matthewrobbins has joined #ruby
manizzle has quit [Ping timeout: 265 seconds]
Vinz_` is now known as Vinz_
CaptainKnots has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
chriskk has joined #ruby
jblack has quit [Read error: Operation timed out]
havenn has quit [Ping timeout: 252 seconds]
jarred has joined #ruby
<shevy>
Paradox it's just a shortcut
Agis__ has joined #ruby
<Agis__>
would you recommend using bundler to initialize a new gem?
<shevy>
I think to_proc is being called via &
<Agis__>
or rake? or do it by hand?
<shevy>
I? never. bundler stinks. rake also stinks. :)
<shevy>
it depends what you actually need to do
<shevy>
if you only need to generate a .gemspec file then you could write a tiny script yourself in like 10 minutes
<Agis__>
hm why they stink? :P
<shevy>
if you want all the fancified extras then you could well use bundler
<shevy>
Agis__ don't ask me, I didn't write it. I see lots of people run into problems with it. I myself tried the official rails tutorial, i copy pasted the given examples, which used bundler, bundler exploded into my face
mklappstuhl has quit [Read error: Operation timed out]
<Paradox>
shevy, yeah, i know that, but imagine you're a noob again and want to learn about it
<Paradox>
even just a simple blog writeup would help this guy
<shevy>
well Paradox like ...
<shevy>
let me try an example
iamvery has quit [Remote host closed the connection]
<X-Jester>
Agis__: for example, when i write ruby programs, i check to see if __FILE__ == $PROGRAM_NAME, and only run my main() if the prgoram was invoked directly. otherwise, i can actually require the file without calling its main block
<solidus-river>
how do i test if an object is a fixnum
<solidus-river>
is_fixnum?
manizzle has joined #ruby
<shevy>
rking man, my brain *loves* consistency, I need to be uniform about this
<X-Jester>
shevy: i like option 1
<Agis__>
i see
<Agis__>
so when you want to add functionality from to another gem, you re-open that gem's classes and insert your modules-methods etc?
<rking>
shevy: That's some straight OCD stuff in that pastie. Of no objective value.
<shevy>
X-Jester cool, I kinda tend to favour it too. the current use case I had was to wonder whether I could get save one line
<X-Jester>
shevy: i'm even slightly more anal, because i use the formatting similar to your #1, i also give its basic caller syntax
<shevy>
rking not at all! consistency allows me to find things faster
<X-Jester>
shevyt: like myFunction(int, string, CustomClass)
<shevy>
basic caller syntax?
<shevy>
ah you mean before the method/function code?
<X-Jester>
right
_sent-hil has quit []
<shevy>
ok
<shevy>
in this example, it was just a yaml file :) but it is getting larger and larger, so I wanted to have subsections hehe
seanyo has quit [Ping timeout: 260 seconds]
eph3meral has joined #ruby
<X-Jester>
and in the part where you have 'does this and that', i explain on one-argument-per-line what it needs
_sent-hil has joined #ruby
<shevy>
I see!
<X-Jester>
Agis__: yes, something like that
_sent-hil has quit [Client Quit]
_sent-hil has joined #ruby
Andrevan is now known as afader
rjsamson has quit [Ping timeout: 252 seconds]
<maletor>
I need a regex to select all image/ mime types except for tiff
<X-Jester>
Agis__: Also, in theory, as long as the string of things to require is the same in all the files, the interpreter ignores any subsequent requires anyway, so you don't lose very much
<X-Jester>
maletor: i don't think that's working like you think it is
<X-Jester>
maletor: i think that means, image/(anything not T, I, F, F, or .)
daniel_hinojosa has quit [Remote host closed the connection]
<X-Jester>
maletor: admittedly this may not be elegant, but i know it works, you can match for image/(anything), extract (anything) into a group, and check that group for 'tiff'
sent-hil has left #ruby [#ruby]
<rking>
shevy: ctags
<rking>
shevy: And vim folds
rippa has quit [Ping timeout: 265 seconds]
kirun_ has joined #ruby
chriskk has joined #ruby
jaygen has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
<shevy>
viiiiiiiiim
mklappstuhl has joined #ruby
love_color_text has quit [Remote host closed the connection]
<Ry>
shevy: I'd agree with rking , those don't look like they're achieving anything other than additional maintenance if you rename the function or class or whatever
_sent-hi_ has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
kirun has quit [Ping timeout: 244 seconds]
_sent-hil is now known as sent_hil
<shevy>
yeah I could document zero
_sent-hi_ has quit [Client Quit]
darthdeus has quit [Quit: Leaving...]
_sent-hil has joined #ruby
<Ry>
you could give information that isn't already stated, e.g. summarise interfaces input should adhere to and what you're going to output, note any cases you're going to throw exceptions
<shevy>
I found it easier to over-document and then cut down, the opposite to document nothing works only for really small pieces of code
_sent-hil is now known as sent-hil
sguselnikov has quit [Client Quit]
sent-hil has quit [Remote host closed the connection]
rafter has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
tiripamwe has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
omg765 has joined #ruby
havenn has joined #ruby
havenn has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 252 seconds]
dekroning has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
havenn has joined #ruby
Neomex has quit [Quit: Neomex]
ABK has joined #ruby
centipedefarmer has left #ruby ["Leaving"]
Faris has joined #ruby
klaas has joined #ruby
omg765 has quit [Client Quit]
tenmilestereo has quit [Ping timeout: 260 seconds]
u89 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
eph3meral has quit [Quit: eph3meral]
ffranz has quit [Quit: Leaving]
twopoint718 has quit [Read error: Connection reset by peer]
jimeh has joined #ruby
rohrer has quit [Quit: leaving]
<epitron>
oops.. category == "image" and type != "tiff"
x82_nicole has joined #ruby
sailias has quit [Quit: Leaving.]
rburton- has joined #ruby
uris has quit [Quit: Leaving]
<Androidnewbe>
i am tryin to run cucumber from ruby but it does not dispaly the feedback
jcaudle has quit [Quit: jcaudle]
<Androidnewbe>
the green yello red ting in the terminal
<Androidnewbe>
i jsut do #!/bin/env ruby
Takehiro has joined #ruby
<Androidnewbe>
'cucumber'
<Androidnewbe>
in the file
<Androidnewbe>
and run that file
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
<shevy>
Androidnewbe can you start "irb"
<shevy>
when you started it
<shevy>
try
<shevy>
require 'cucumber'
otters has joined #ruby
QKO has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
<Gate>
when using rspec, is there a way to assert that a method included from a module calls super in certain situations, other than checking for the expected result of super?
twopoint718 has joined #ruby
QKO_ has quit [Ping timeout: 256 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
<invisime>
Gate: you might be able to do it with .stub.
cableray has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
robertotauille has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
c0rn_ has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
neku is now known as neku|away
<Gate>
invisime: you mean stub the method I presume? if so, on what?
Servidorv has joined #ruby
<Servidorv>
hey guys
<Servidorv>
how are you
<Servidorv>
??
<Gate>
well, yourself?
<Servidorv>
preatty good
<Servidorv>
building a new api
<Servidorv>
:)
<Servidorv>
hey got a question
<Gate>
ask away
<Servidorv>
im trying to do a pages.each{|page| find_page_best_worst(page['id'])}
JonnieCache has quit [Read error: Operation timed out]
<Servidorv>
but is seems is not working
<burgestrand>
Gate: on the parent class, possibly.
<Sou|cutter>
servidorv: that's not a question
<Gate>
servidorv: I take it pages is a collection of activerecord models? I need more context to understand that line.
<Servidorv>
find_page_best_worst() actualli looks into mongodb and finds for the one best worst
Eplemosen has joined #ruby
<burgestrand>
Gate: parent_class.any_instance.should_receive(…); might work, might not
nazty has joined #ruby
<burgestrand>
Odd thing to test.
haxrbyte has quit [Remote host closed the connection]
Androidnewbe has quit [Quit: irc2go]
<Gate>
It is odd, I agree. Effectively I am building a class which uses numerous strategies failing over when one can't get the required data.
<Servidorv>
sorry, the question is what will be the best way to make a .each and look into the db with the id of each of the .each??
<Gate>
I'm doing this by building each strategy as a module, including it in the class and each module simply calling its predecessor via super
_nitti has quit [Remote host closed the connection]
<Gate>
at the moment I'm testing by looking for the exception thrown by the last strategy
nitti has joined #ruby
<Servidorv>
got it thanks anyway :)
sebastorama has quit [Quit: Computer has gone to sleep.]
<Servidorv>
sorry somethimes ones just need to talk to somebody to get their head straight :)
Araxia has joined #ruby
otters has quit [Ping timeout: 260 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
kpshek has joined #ruby
ryanf has joined #ruby
wchun has quit [Quit: Leaving]
c0rn_ has joined #ruby
wchun has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
manizzle is now known as WeLoveCP
drnfx has joined #ruby
Keva161 has quit [Remote host closed the connection]
Keva161 has joined #ruby
nazty has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
Vinz_ is now known as Vinz_`
ltsstar has joined #ruby
krawchyk has quit [Remote host closed the connection]
Rix is now known as NullByte
WeLoveCP is now known as manizzle_
robertotauille has quit [Quit: Leaving...]
jonathanwallace has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
jonathanwallace has joined #ruby
neku|away is now known as neku
Keva161 has quit [Ping timeout: 260 seconds]
sebastorama has joined #ruby
tenmilestereo has joined #ruby
fgro has joined #ruby
cableray has quit [Quit: cableray]
jaygen has quit [Remote host closed the connection]
rjsamson has joined #ruby
keymone has quit [Ping timeout: 255 seconds]
keymone_ has joined #ruby
awestroke has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 268 seconds]
jaygen has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
invisime has quit [Quit: Leaving.]
chriskk has quit [Quit: chriskk]
jeffreybaird has quit [Quit: jeffreybaird]
eroc has joined #ruby
ablankfield has joined #ruby
jamjam has joined #ruby
mneorr has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
mneorr has joined #ruby
Araxia has quit [Read error: No route to host]
Araxia_ has joined #ruby
glyytchy has quit [Quit: glyytchy]
[Neurotic] has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
matthewrobbins has joined #ruby
neku has quit [Ping timeout: 255 seconds]
vjt has joined #ruby
u89 has joined #ruby
carlyle has quit [Remote host closed the connection]
chriskk has joined #ruby
kbeddingfield has joined #ruby
glyytchy has joined #ruby
jblack has quit [Ping timeout: 260 seconds]
bradleyprice has quit [Remote host closed the connection]
jblack has joined #ruby
guns has joined #ruby
medik has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
hoelzro is now known as hoelzro|away
glyytchy has quit [Client Quit]
Nisstyre has quit [Quit: Leaving]
apok_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has quit [Remote host closed the connection]
Keva161 has joined #ruby
dekroning has joined #ruby
hotovson has quit [Remote host closed the connection]
purpleidea has quit [Ping timeout: 246 seconds]
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
maletor has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
nitti has quit [Remote host closed the connection]
Keva161 has quit [Ping timeout: 252 seconds]
AndChat- has quit [Remote host closed the connection]
Slivka has joined #ruby
jaygen has quit [Remote host closed the connection]
chazu has joined #ruby
Araxia_ has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
Nisstyre has joined #ruby
Takehiro has joined #ruby
irleif has joined #ruby
Slivka has quit [Remote host closed the connection]
cdzombak has quit []
Araxia has joined #ruby
<chazu>
does anyone know how to properly connect a spawned process to a socket in ruby, and to have the output fully buffered? Specifically, I want to hook a ruby Ncurses application up to Eventmachine
fyolnish_ has quit [Remote host closed the connection]
sambio has joined #ruby
fyolnish has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
dmiller has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
nazty has joined #ruby
jrajav has joined #ruby
Servidorv has quit [Quit: If your not living on the edge, you're taking up too much space]
<vjt>
ncurses needs a terminal
otters has joined #ruby
<vjt>
it's way too much work imho
<chazu>
vjt: how do you mean, too much work to hook it up to a socket?
fyolnish has quit [Ping timeout: 265 seconds]
<vjt>
too much work to emulate the tty line for the ncurses application to work correctly
nazty has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
<chazu>
vjt: hrm...the best bet might just be to configure sshd to skip login and run the desired app on connect, then...i'm not sure if thats the canonical way of running TUI apps over a socket, though...
<vjt>
you can use a forced command in an authorized_keys file
c0rn_ has quit [Quit: Computer has gone to sleep.]
<chazu>
vjt: interesting, i hadn't heard of this technique...
<chazu>
thank you
<vjt>
:)\
c0rn_ has joined #ruby
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
jenrzzz has joined #ruby
Ry has quit [Ping timeout: 256 seconds]
macabre has quit [Ping timeout: 255 seconds]
<jrajav>
Dammit where did xeago go :/
Araxia has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
Araxia has joined #ruby
mneorr has joined #ruby
chriskk has quit [Quit: chriskk]
__miha__ has joined #ruby
bapa has quit [Ping timeout: 244 seconds]
afader has quit []
joshman_ has quit [Ping timeout: 252 seconds]
kpshek has quit []
jcaudle has joined #ruby
chriskk has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
otters has quit [Ping timeout: 252 seconds]
jrist is now known as jrist-afk
jimeh has quit [Ping timeout: 265 seconds]
bapa has joined #ruby
jcaudle has quit [Client Quit]
dekroning has quit [Ping timeout: 248 seconds]
SecretAgent has quit [Read error: Operation timed out]
SecretAgent has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
__miha__ has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
Agis__ has quit [Quit: Agis__]
havenn has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
mmitchell has quit [Remote host closed the connection]
headius has quit [Quit: headius]
sailias has joined #ruby
<mr-rich>
rking: ping
theRoUS has quit [Ping timeout: 248 seconds]
instinkt has quit [Quit: Lost terminal]
mklappstuhl has joined #ruby
dekroning has joined #ruby
GoGoGarrett has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
sailias has quit [Ping timeout: 264 seconds]
Cultofmetatron has joined #ruby
chriskk has quit [Quit: chriskk]
Soliah has joined #ruby
carlyle has joined #ruby
ddd1 has joined #ruby
dakine has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 245 seconds]
kirun_ has quit [Quit: Client exiting]
tds has joined #ruby
carlyle has quit [Remote host closed the connection]
ddd1 is now known as ddd
vickaita has quit [Ping timeout: 256 seconds]
Araxia has quit [Ping timeout: 268 seconds]
hiroyuki has joined #ruby
robertotauille has joined #ruby
__miha__ has joined #ruby
swex has quit [Read error: Operation timed out]
robertotauille has quit [Client Quit]
<MarcWeber>
Which pdf library do you recommend in order to create simple prospects containing images and tables whose cells may be joined (colspan,rowspan?)
katherinem13 has joined #ruby
dekroning has quit [Ping timeout: 260 seconds]
jcaudle has joined #ruby
jcaudle has quit [Client Quit]
<chazu>
MarcWeber: try prawn, its fairly easy to pick up
BrianJ has joined #ruby
bapa has quit [Ping timeout: 248 seconds]
cakehero has joined #ruby
jeremywrowe has joined #ruby
vickaita has joined #ruby
yeltzooo has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 260 seconds]
rakm has quit [Ping timeout: 240 seconds]
ewokchewy has joined #ruby
yeltzooo has joined #ruby
sailias has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
reset has joined #ruby
Faris has quit [Ping timeout: 256 seconds]
maletor has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Read error: Connection reset by peer]
maletor has joined #ruby
shtirlic has quit [Remote host closed the connection]
bapa has joined #ruby
Trioke has quit [Read error: Connection reset by peer]
Trioke has joined #ruby
geggam has quit [Read error: Connection reset by peer]
mpereira has quit [Ping timeout: 260 seconds]
thinkdevcode has quit [Remote host closed the connection]
g_bleezy has joined #ruby
nari has joined #ruby
tvw has quit [Remote host closed the connection]
chriskk has joined #ruby
alanp_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Keva161 has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
emaiax has quit [Remote host closed the connection]
und3f has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
SCommette has quit [Quit: SCommette]
Faris has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
joschi has quit [Ping timeout: 272 seconds]
jblack has joined #ruby
ltsstar has quit [Quit: ltsstar]
ewokchewy has quit [Quit: Leaving]
tchebb has quit [Read error: Connection reset by peer]
tomaw has quit [Quit: Quitting]
tomaw has joined #ruby
jcaudle has joined #ruby
joschi has joined #ruby
jenrzzz has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
otters has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
<shevy>
will ruby ever dethrone perl on tiobe
reset has quit [Quit: Leaving...]
chriskk has quit [Quit: chriskk]
DrShoggoth has quit [Quit: Leaving]
noxoc has quit [Read error: Operation timed out]
_Mon_Ouie_ has joined #ruby
headius has joined #ruby
mahmoudimus has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
chriskk has joined #ruby
berserkr has quit [Quit: Leaving.]
g_bleezy has joined #ruby
irleif has joined #ruby
My_Hearing has quit [Ping timeout: 248 seconds]
nazty has quit [Ping timeout: 255 seconds]
nazty has joined #ruby
chimkan has quit [Quit: chimkan]
boodle has joined #ruby
<blazes816>
well, it'll dethrone typescript after typescript dethrones perl
noxoc has joined #ruby
boodle has left #ruby ["WeeChat 0.3.9"]
Bosma has quit [Quit: leaving]
loocorez has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<loocorez>
Hi, I'm obviously doing something obviously wrong but I'm trying to escape apostrophes in a string... I thought it would be something like: puts "won't".gsub(/'/, "\\'") but that ends up with "wontt". Any ideas? Ideally it would be "won\'t".
medik has joined #ruby
JonnieCache has joined #ruby
__miha__ has quit [Read error: Operation timed out]