<crazed>
so many ways to do things in ruby, never seen that syntax
Nightmare has joined #ruby
<bhuey>
let me find the object type being passed into that block
Eulipion_ has left #ruby [#ruby]
Nilium has quit [Ping timeout: 264 seconds]
<crazed>
File.readlines('/file/path').each { |line| do_sometihng if line.match(/^SOMETHING/) }
<crazed>
granted readlines will read the file into memory
tylersmith has joined #ruby
<crazed>
so depends on how big the file is
nateberkopec has quit [Quit: Leaving...]
<bhuey>
crazed: It's a String
<bhuey>
It's about a megabyte
yetanotherdave has quit [Ping timeout: 245 seconds]
mr_snowf1ake has quit [Quit: Leaving]
<momomomomo>
there's almost never a good reason to use readlines
<momomomomo>
over a buffer
dekz has joined #ruby
<crazed>
unelss you want the whole file in memory, for like a config
brandon has quit [Remote host closed the connection]
<crazed>
but yeah for text processing over a file, not the best idea
c00kieb0t has quit [Remote host closed the connection]
<bhuey>
crazed: it's a fixed sized file
<bhuey>
albiet large
robscormack has quit [Quit: Leaving]
dbasch has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
GriffinHeart has joined #ruby
<mostlybadfly>
so if i were to do "a".unpack("H*") for example, how do i just get the element from the array to display, i'm looking for a method i can tack on
chrisja has quit [Quit: leaving]
Spami has quit [Quit: This computer has gone to sleep]
<mostlybadfly>
so that i get "61" rather than ["61"}
<mostlybadfly>
["61"]
ddv has quit [Ping timeout: 260 seconds]
<wallerdev>
[0]
lanox has joined #ruby
<bhuey>
crazed: same warning
<wallerdev>
dont need * either
<bhuey>
bah
<wallerdev>
>> ["a"].unpack('H')
<Mon_Robot>
wallerdev: => NoMethodError: undefined method `unpack' for ["a"]:Array (https://eval.in:443/171151)
mikepack has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
phinfonet has quit [Ping timeout: 272 seconds]
agent_wh1te has joined #ruby
phinfonet has joined #ruby
fwaokda has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
agent_white has quit [Ping timeout: 250 seconds]
magic_ has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
startupality has quit [Quit: startupality]
Deele has quit [Ping timeout: 240 seconds]
magic_ is now known as magic
bricker`work has quit [Ping timeout: 240 seconds]
Barrayar has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Channel6 has joined #ruby
benzrf|offline is now known as benzrf
Ankhers has quit [Remote host closed the connection]
bradleyprice has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
Davey is now known as Eomar
kaspergrubbe has quit [Remote host closed the connection]
thams has quit [Quit: thams]
k0m has joined #ruby
macclearich has quit [Quit: Computer has gone to sleep.]
AlexBlomCOM has joined #ruby
macclearich has joined #ruby
thams has joined #ruby
Shidash has quit [Quit: Leaving.]
thams has quit [Client Quit]
ItSAN____ has quit [Quit: Leaving...]
macclearich has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 255 seconds]
robscormack has joined #ruby
robustus has joined #ruby
dbasch has quit [Ping timeout: 245 seconds]
xcesariox has quit [Remote host closed the connection]
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
dbasch has joined #ruby
fgo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
sevenseacat has joined #ruby
troyready has quit [Ping timeout: 256 seconds]
mikepack has joined #ruby
bmurt has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
Zebroid has joined #ruby
maletor has joined #ruby
yfeldblum has joined #ruby
rubyNooby has joined #ruby
absolutezeroff has joined #ruby
hamakn has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 255 seconds]
Bira has joined #ruby
yfeldblu_ has joined #ruby
toastynerd has joined #ruby
phutchins has joined #ruby
nateberkopec has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Bira has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
em0ral has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubyonrailed has quit []
namxam has joined #ruby
ItSANgo has joined #ruby
MatthewsFace has joined #ruby
rp__ has quit [Ping timeout: 260 seconds]
skysploit has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
tokik has joined #ruby
k0m has joined #ruby
mary5030 has joined #ruby
namxam has quit [Ping timeout: 260 seconds]
echooo has quit [Read error: Connection reset by peer]
AlexBlomCOM has quit [Ping timeout: 260 seconds]
echooo has joined #ruby
havenwood has joined #ruby
r_rios has joined #ruby
<rubyNooby>
anyone know how to pass a array of hashes as params in a form? right now when i try to place my array of hashes in a param it is passed as a string with the commas missing.
<j416>
not sure, never used anything but stdlib json
<j416>
try it :)
<j416>
stream-based parser is what you want
<s2013>
thats what it is.. i guess i can make it parse the file locally
<s2013>
maybe im going about it the wrong way. maybe there is a better way to convert a json file into a pg dump or something
<j416>
stream-based parser should do it
<j416>
it'll work like this,
freezey has quit [Ping timeout: 264 seconds]
<j416>
you give it the stream, set something to trigger when the parser has enough data, then use that something to either generate some kind of SQL or what have you or simply insert directly into a database
<j416>
be sure to wrap it in a single transaction or it'll probably be very slow.
<j416>
never used mongodb so not sure how it works in that regard.
<s2013>
not for mongo. for postgres
<j416>
for postgres that's what you'll want to do
<s2013>
mongo has a mongoimport that works with json directly although it keeps saying file too large in my case
<bMalum_>
so we exported the db.. thats just one table.. => other way to Export the DB maybe in an Format for PG?
<s2013>
but i think pg is a better fit for us
<j416>
s2013: you can also see if there is a postgres foreign data wrapper for json
relix has quit [Remote host closed the connection]
<s2013>
i googled. couldnt find much. also might be cause its almost 4 am and i had 4 hrs of sleep last night.. good times
<j416>
not sure if it's designed for 18 GB json files but worth skimming through perhaps
* j416
is off to work o/
SilkFox_ has joined #ruby
<s2013>
cool. thank you very much j416
anarang has joined #ruby
SegFaultAX has quit [Excess Flood]
Bumptious has quit [Remote host closed the connection]
tvw has joined #ruby
Bumptious has joined #ruby
tvw has quit [Client Quit]
<bMalum_>
s2013, yes - was just thinking - what db was the older one
arup_r_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 272 seconds]
sandelius has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
s2013_ has joined #ruby
alexju has joined #ruby
<s2013_>
do you know mongo well? bmalum_
tesuji has joined #ruby
radic has quit [Ping timeout: 240 seconds]
<sandelius>
Anyone know how to document class variables using Yarddoc?
s2013 has quit [Ping timeout: 255 seconds]
radic has joined #ruby
<guardian>
anyone having experiences with Ruby under Windows? Should I go cygwin or RubyInstaller? knowing the gems I'm using require to compile native extensions, e.g. Compass gem
dANOKELOFF has joined #ruby
ebanoid has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
SegFaultAX has joined #ruby
<s2013_>
guardian, install ubuntu or something
<s2013_>
trying to patch things all the time will get tiring real soon
whyy has quit [Remote host closed the connection]
LiohAu has joined #ruby
mary5030 has joined #ruby
j_mcnally_ has quit [Ping timeout: 256 seconds]
e^0 has joined #ruby
mikecmpbll has joined #ruby
Takle has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<guardian>
oh I'm on a Mac
<apeiros>
`git log branch --not master` <3
<sevenseacat>
then why do you care about windows? >_>
<guardian>
but some coworkers aren't and I want to figure out whether it flies for them
mary5030 has quit [Ping timeout: 250 seconds]
<guardian>
it's about compiling our product doc which is built with nanoc
timonv_ has joined #ruby
e^0 has quit [Ping timeout: 255 seconds]
<guardian>
so they need to compile the doc by themselves every now and then
inside has joined #ruby
freezey has joined #ruby
[gmi] has quit [Quit: Leaving]
ndrei has joined #ruby
kaspergrubbe has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
Joulse has joined #ruby
thams has quit [Quit: thams]
St_Marx has quit [Ping timeout: 264 seconds]
freezey has quit [Ping timeout: 256 seconds]
Alina-malina has joined #ruby
ebanoid has joined #ruby
oo_ has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
oo_ has joined #ruby
aaronmcadam has joined #ruby
aaronmcadam has quit [Client Quit]
e^0 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
kmels has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
<apeiros>
cina: you modify the default value there. you never assign a value to the key "k"
<apeiros>
i.e., x["k"] # returns default value
<apeiros>
<< "v" # push "v" to the default value
absolutezeroff has quit [Ping timeout: 260 seconds]
timonv^ has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 272 seconds]
<cina>
apeiros: I still don't get it. What I really want to do is to avoid checking if the value at key is initialized already or not.
<cina>
if x["k"] just returns the default value, why does its value change (it is not ["v"])
<cina>
it is *NOW ["v"]
Poky has joined #ruby
<bMalum_>
Does anyone have a solution for this: I have to add variabel lengh list and values to an table and generate a PDF with Header and so - i had a look at prawn can it do this?
ebanoid has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
<sevenseacat>
it can.
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cina>
apeiros: oh I see, I'm appending to the default value (for all keys)
ebanoid has joined #ruby
<bMalum_>
sevenseacat, is ther a better tutorial or Dokumentation as the Manual with some ticks for headers and so?
<sevenseacat>
the manual is pretty comprehensive.
SilkFox_ has joined #ruby
<cina>
In case anyone is interested, the solution to my query is: >> x[:k] = x[:k] << "v"
claymore has quit [Ping timeout: 240 seconds]
absolutezeroff has joined #ruby
cina has quit [Quit: leaving]
claymore has joined #ruby
e^0 has quit [Ping timeout: 264 seconds]
fgo__ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 255 seconds]
lanox has joined #ruby
cina has joined #ruby
absolutezeroff has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olivier_bK>
somebody know how i can list all operator of channel on irc
<olivier_bK>
this one or another one ?*
Wolland has joined #ruby
<jle`>
olivier_bK: are you asking how to do it with a program?
<olivier_bK>
jle`, no
<jle`>
because my client lists them at the top of the users bar
<apeiros>
cina: sorry, was on the other side of the table. yes, exactly.
<olivier_bK>
you know the command as '/msg etc ...
<olivier_bK>
i know we can list all operator but i cant find how
chth0n has joined #ruby
ra4king has quit [Ping timeout: 250 seconds]
namxam has quit [Remote host closed the connection]
casheew_ has left #ruby [#ruby]
freezey has joined #ruby
casheew has joined #ruby
inside has quit [Ping timeout: 240 seconds]
Karpuragauram has joined #ruby
absolutezeroff has joined #ruby
Alina-malina has joined #ruby
freezey has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
<dopiee>
hey all
<dopiee>
hey Olipro
<dopiee>
olivier_bK,
arup_r has quit [Remote host closed the connection]
Hobogrammer_ has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<olivier_bK>
hay
<olivier_bK>
hey
<olivier_bK>
dopiee, what's up
<dopiee>
nothing much just trying to figure this out
<dopiee>
:)
<dopiee>
ruby ruby ruby
casheew has left #ruby [#ruby]
timonv_ has quit [Remote host closed the connection]
Karpuragauram has quit [Quit: Leaving]
workmad3 has joined #ruby
absolutezeroff has quit [Ping timeout: 256 seconds]
namxam has joined #ruby
timonv_ has joined #ruby
s2013_ has quit [Ping timeout: 255 seconds]
marr has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
Symbiosisz has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
absolutezeroff has joined #ruby
fgo has joined #ruby
sevenseacat has quit [Quit: Leaving.]
jdj_dk has joined #ruby
ebanoid has quit [Ping timeout: 245 seconds]
alexju has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
ebanoid has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
rylev has joined #ruby
Dude007_ has joined #ruby
ra4king has joined #ruby
alem0lars has quit [Quit: Going AFK...]
ebanoid has quit [Ping timeout: 245 seconds]
kaspergr_ has joined #ruby
ebanoid has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
andrewlio has joined #ruby
karupa is now known as zz_karupa
pandaant_ has joined #ruby
St_Marx has joined #ruby
Wolland has quit [Remote host closed the connection]
absolutezeroff has quit [Ping timeout: 245 seconds]
mustermax has joined #ruby
hamakn has quit [Remote host closed the connection]
Dude007_ has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
dopiee has quit [Read error: Connection reset by peer]
dopiee has joined #ruby
kaspergr_ is now known as kaspergrubbe
andrewlio has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
fabrice31 has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Remote host closed the connection]
yacks has joined #ruby
lanox has quit [Remote host closed the connection]
Atttwww has quit [Remote host closed the connection]
Atttwww has joined #ruby
roodee has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
roodee has joined #ruby
roodee is now known as Guest1881
jdj_dk has joined #ruby
ebanoid has quit [Ping timeout: 240 seconds]
flagg0204 has quit [Ping timeout: 256 seconds]
CorpusCallosum has quit [Ping timeout: 256 seconds]
Mongey has joined #ruby
ebanoid has joined #ruby
zenspider has quit [Ping timeout: 272 seconds]
zenspider has joined #ruby
flagg0204 has joined #ruby
Zebroid has joined #ruby
hamakn has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
narcan has quit [Client Quit]
startupality has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Atttwww has quit [Ping timeout: 264 seconds]
sandelius has joined #ruby
Bira has quit [Remote host closed the connection]
hendricius has left #ruby [#ruby]
fgo has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
<mrgrieves>
how can I check the ruby version at runtime i.e. from irb?
beauby has quit [Ping timeout: 245 seconds]
<workmad3>
mrgrieves: RUBY_VERSION constant
fgo has quit [Ping timeout: 250 seconds]
hamed_r has joined #ruby
treehug88 has joined #ruby
<mrgrieves>
workmad3: Cheers!
<arup_r>
How to suppress rails console echo/inspection
yfeldblum has joined #ruby
<arup_r>
in IRB i can do irb --simple-prompt --noecho
Alina-malina has quit [Read error: Connection reset by peer]
<arup_r>
how the same can be done in while starting rails console
Alina-malina has joined #ruby
lanox has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
andrewlio has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
startupality has quit [Quit: startupality]
whyy has quit [Read error: Connection reset by peer]
dekz has quit [Quit: Connection closed for inactivity]
startupality has joined #ruby
whyy has joined #ruby
rylev has quit [Ping timeout: 256 seconds]
duncannz has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
rylev has joined #ruby
Zebroid has quit [Remote host closed the connection]
mbuf has joined #ruby
p0sixpscl has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
beauby has joined #ruby
p0sixpscl has quit [Ping timeout: 250 seconds]
havenwood has quit []
roolo has quit [Quit: Leaving...]
shevy has joined #ruby
ebanoid has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
nfk has joined #ruby
nfk has quit [Read error: Connection reset by peer]
ebanoid has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
banister has joined #ruby
little_fu has quit [Remote host closed the connection]
puppeh has joined #ruby
lanox has quit []
<puppeh>
when I call an object like `obj = Foo.new; obj`
<puppeh>
then it's #inspect method is called?
rylev has quit [Remote host closed the connection]
DivineEntity has quit [Ping timeout: 250 seconds]
DivineEntity has joined #ruby
rylev has joined #ruby
sandelius has joined #ruby
madhu has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
zenspider has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
<madhu>
Hi every one I getting very confuse raise and rescue friends
mr-foobar has quit [Quit: Leaving...]
Duckily has quit [Quit: Duckily]
<madhu>
andrewlio: Hi
Bira has joined #ruby
freezey has joined #ruby
rylev has quit [Ping timeout: 272 seconds]
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
madhu has left #ruby [#ruby]
razorgfx has joined #ruby
nfk has joined #ruby
dumdedum has quit [Quit: foo]
startupality has quit [Quit: startupality]
SilkFox_ has quit [Ping timeout: 245 seconds]
JasmeetQA has quit [Quit: Leaving.]
Ilyas has joined #ruby
Bira has quit [Ping timeout: 245 seconds]
amacou has joined #ruby
Dude007 has joined #ruby
freezey has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
<shevy>
puppeh in irb perhaps, but a sure way to call it is by using p
Takle has quit [Remote host closed the connection]
sandelius has joined #ruby
Lingo has joined #ruby
Lingo has quit [Client Quit]
andrewbredow has joined #ruby
ghr has joined #ruby
tkuchiki has joined #ruby
blasius has quit [Ping timeout: 250 seconds]
chth0n has joined #ruby
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby
jerius has joined #ruby
startupality has quit [Quit: startupality]
freezey has quit [Ping timeout: 245 seconds]
treehug88 has quit [Ping timeout: 245 seconds]
ebanoid has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
deepy- has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
marr has joined #ruby
tvw has quit []
centrx has joined #ruby
Zebroid has joined #ruby
ebanoid has joined #ruby
tvw has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
Zebroid has quit [Read error: Connection reset by peer]
startupality has joined #ruby
Zebroid has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
snath has quit [Ping timeout: 260 seconds]
andrewbredow has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
supergeek has joined #ruby
deepy has joined #ruby
freerobby has quit [Client Quit]
andrewbredow has joined #ruby
deepy is now known as Guest22598
blasius has joined #ruby
supergeek has quit [Client Quit]
kreisys has joined #ruby
blasius has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 272 seconds]
whyy has quit [Ping timeout: 260 seconds]
blasius has joined #ruby
andrewbredow has quit [Client Quit]
andrewbredow has joined #ruby
relix_ has quit [Remote host closed the connection]
relix has joined #ruby
SilkFox_ has joined #ruby
ARCADIVS has joined #ruby
jshultz has joined #ruby
<j416>
I've defined Kernel.log to return an instance of my logger; now I want to automatically prefix each log message with the name of the class/module that wrote the log entry
<j416>
in the def for Kernel.log I'm in the scope of that class/module so it's easy to get ahold of; but I need to pass it on to the logger. Since I'm returning the logger instance itself, the only clean way to do it as I see (which is a bit ugly still) is to set a variable in the logger instance and clear it when the message has been logged
JohnFord has joined #ruby
yfeldblum has joined #ruby
<workmad3>
j416: you could return a wrapped instance of the logger
<j416>
I'm thinking, maybe there is a way to add a hook so that after _any_ method call, it could clear it.. hm
<workmad3>
j416: e.g. LogWrapper.new(logger, class, module)
<j416>
workmad3: hm, that's an idea
<workmad3>
j416: and LogWrapper looks like the logger, but adds the extra formatting on
blasius has quit [Ping timeout: 250 seconds]
<j416>
perhaps it's the cleanest solution
<j416>
creating a class like that is about as expensive as creating a string or so anyway, right?
Guest22598 has quit [Ping timeout: 260 seconds]
<j416>
s/creating a class/instantiating a class/
<workmad3>
j416: the other option would be to use something like binding_of_caller in your log methods to grab that data
<centrx>
Yes, instantiating a class is cheap in the context of a logger
<j416>
I think I'll go that route
<centrx>
unless you're logging from the inside of loops
<centrx>
hotspot loops that is
<j416>
I think we don't want to be logging either way inside of that kind of loop
<workmad3>
centrx: even then, I'd expect the cost of writing the log to most likely dwarf the cost of creating the wrapper :)
dylannorthrup has quit [Read error: Connection reset by peer]
dylannorthrup has joined #ruby
deepy- has joined #ruby
anarang has quit [Quit: Leaving]
itspots has joined #ruby
itspots has joined #ruby
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
thams has quit [Quit: thams]
Doc_X has joined #ruby
axl_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
<jds>
My 2.1.2 Rails app is leaking like crazy, hitting around 800MB per instance after 20 minutes / 800 requests. It's a pretty big app, and I'm struggling to figure out where the leak is
<centrx>
jds, symbol generation?
Ilyas has quit [Read error: Connection reset by peer]
dylannorthrup has quit [Ping timeout: 264 seconds]
kreisys has quit [Quit: Computer has gone to sleep.]
<jds>
I've been using rack-mini-profiler a lot, especially with profile-gc-ruby-head, and it's not actually showing me anything like that much memory. I'm beginning to suspect leakage in C
<jds>
centrx: Don't think so, no. Although I guess it might be worth my trying to monkeypath Symbol#initialize & double-check
<jds>
*patch
<centrx>
jds, Does speed-profiling as opposed to memory-profiling show anything?
<centrx>
jds, You can get down and dirty with memory profiling with valgrind if you want
mikesplain has joined #ruby
Ankhers has joined #ruby
kevind has joined #ruby
ebanoid has quit [Ping timeout: 245 seconds]
deepy- has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
ebanoid has joined #ruby
SilkFox has joined #ruby
aganov has quit [Quit: Leaving]
lmickh has joined #ruby
<j416>
guys
voodoofish1 has quit [Quit: Leaving.]
<j416>
it's elegant and it works very well.
<j416>
workmad3++ centrx++
voodoofish has joined #ruby
<workmad3>
j416: cool :)
oo_ has quit [Remote host closed the connection]
<workmad3>
j416: same principle as a lot of log formatters btw... fairly simple decorator concept :)
<Karunamon>
silly question: what would be the most idiomatic way to represent disk partitions in Ruby code? Right now I'm using a hash, each disk is a symbol keyed to a struct containing the partition details. Looks fine in code, but is a bit hard to understand when dumped out to YAML
philcrissman has quit [Remote host closed the connection]
<centrx>
Karunamon, How so?
<Hanmac>
charliesome: hey, Mon_Ouie did an rewrite/revite of your bot, but there are some options for the evalin mainpage that needto be fixed ... like currently requiring of "bigdecimal" or similar does not work because its C-compiled stdlib stuff
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
Guest28075 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mikesplain has joined #ruby
banister has joined #ruby
ffranz has joined #ruby
banister has quit [Max SendQ exceeded]
Zebroid has joined #ruby
tylersmith has quit [Ping timeout: 255 seconds]
banister has joined #ruby
<cocotton>
I'm trying to match a condition where a string contains "My string" or a single "\n". Is the best way to do it <if string == "\n" or string.include? "My string"> or would there be a better way to do that? (really new to ruby sorry)
sandelius has joined #ruby
aaronmcadam has joined #ruby
<centrx>
cocotton, That's fine and t says what you mean
<centrx>
cocotton, Alternative would probably be regex
<cocotton>
@centrx Ok nice, thx :)
mikesplain has quit [Read error: Connection reset by peer]
mikespla_ has joined #ruby
yfeldblum has joined #ruby
Gooder` has joined #ruby
startupality has joined #ruby
hectorrr has joined #ruby
ebanoid has quit [Ping timeout: 255 seconds]
supermat has joined #ruby
wald0 has quit [Quit: Lost terminal]
ebanoid has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
doev has quit [Ping timeout: 240 seconds]
speakingcode has quit [Remote host closed the connection]
<apeiros>
cocotton: btw., \n is linefeed, not carriage return. \r is carriage return.
moritzs has quit [Ping timeout: 240 seconds]
hectorrr has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: Leaving]
<cocotton>
Oh that makes sense, my bad
doev has joined #ruby
hectorrr has joined #ruby
<centrx>
You'll never make Head Typewriter with a mistake like that
speakingcode has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
toastynerd has quit [Remote host closed the connection]
<cocotton>
Damn :( Typewriters are the future! Some governments around the world are switching to it for security measures!
banister_ has joined #ruby
banister has quit [Ping timeout: 256 seconds]
blurredbits has joined #ruby
<apeiros>
bonus points if you know \v :)
noop has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
mikespla_ has quit [Ping timeout: 240 seconds]
Guest28075 has quit [Ping timeout: 250 seconds]
Guest89068 has joined #ruby
yazgoo has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
SilkFox_ has quit [Ping timeout: 272 seconds]
CaptainJet has joined #ruby
yazgoo has joined #ruby
phantomtiger has joined #ruby
mrgrieves has quit [Quit: leaving]
phantomtiger has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
treehug88 has joined #ruby
Neomex has joined #ruby
GlenK has joined #ruby
mary5030 has quit [Remote host closed the connection]
momomomomo has joined #ruby
mr-foobar has joined #ruby
mary5030 has joined #ruby
snath has joined #ruby
thams has quit [Quit: thams]
rylev has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
rylev has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
Poky has quit [Remote host closed the connection]
sambao21 has joined #ruby
rylev_ has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
razum2um1 has quit [Quit: Leaving.]
kkh has quit [Read error: Connection reset by peer]
amargherio has joined #ruby
asmodlol has joined #ruby
drager has quit [Ping timeout: 256 seconds]
kkh has joined #ruby
apeiros has quit [Remote host closed the connection]
Guest89068 has quit [Read error: Connection timed out]
apeiros has joined #ruby
deepy- has joined #ruby
blasius has joined #ruby
banisterfiend has joined #ruby
jlovick has joined #ruby
dbasch has joined #ruby
banister_ has quit [Ping timeout: 260 seconds]
terrellt has joined #ruby
blasius has quit [Client Quit]
apeiros has quit [Ping timeout: 264 seconds]
yazgoo has quit [Ping timeout: 240 seconds]
lbwski has joined #ruby
VTLob has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
freezey has quit [Read error: Connection reset by peer]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linguini has joined #ruby
wald0 has joined #ruby
Skwallinux has joined #ruby
benzrf is now known as benzrf|offline
memph1s has joined #ruby
mehlah has quit [Quit: Leaving...]
<lagweezle>
Make certain you destroy the ink-tape, though!
bMalum_ has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
<mary5030>
good morning :)
startupality has joined #ruby
chrishough has joined #ruby
IceDragon has joined #ruby
<mary5030>
Question: JSON.parse(e.http_body) returns this: {"status":"500","error":"Internal Server Error"}, now how can I in a next line only get "Internal Server Error" ?
<mary5030>
excuse if this is a trivial question for you :)
<mary5030>
workmad3: sorry to bug you again, but what if in one case i get {"status":"500","error":"Internal Server Error"} and other case i get {"status":"500", "description":"failed some check"}
dANOKELOFF has joined #ruby
<mary5030>
then i couldn't do response["error"]
<workmad3>
mary5030: indeed
s2013 has quit [Ping timeout: 250 seconds]
<mary5030>
how would i would i go about making a case statement here?
<mary5030>
i can't check status code since they are both 500
<mary5030>
any other way?
<workmad3>
mary5030: well, you could just do 'response["error"] || response["description"]'
<TTilus>
response["error"] || response["error"]
<TTilus>
d'oh
<hectorrr>
rubyonrailed: did it worked on the console?
<workmad3>
mary5030: or you could shout at the designer of that API for being inconsistent ;)
<rubyonrailed>
hectorrr: nope
<mary5030>
yes for sure inconsistent
<workmad3>
mary5030: note that the second option will still probably end up with the first option being used anyway... but you get the satisfaction of shouting :)
<canton7>
what did the require return? did it thrown an exception?
<rubyonrailed>
yeah, idk if it has something to do with using ruby 1.8.7
tylersmith has joined #ruby
startupality has quit [Quit: startupality]
<rubyonrailed>
but I was using the console yeseterday and require resolv and it worked fine. It gave the same empty brackets
sambao21 has joined #ruby
deepy has joined #ruby
<TTilus>
rails?
arya_ has joined #ruby
<hectorrr>
can you try in a newer version of ruby?
sputnik13 has joined #ruby
<hectorrr>
1.9.3?
deepy is now known as Guest12899
<TTilus>
iirc require returns array there
<TTilus>
(and i could have that one totally wrong)
mehlah has joined #ruby
<jds>
centrx: you mentioned symbols wrt my memory leak earlier
<rubyonrailed>
hectorr: yeah i'll try outside of 1.8
<jds>
Which I initially dismissed because _obviously_ I'm not dumb enough to go around calling user_input.to_sym all over the place
<workmad3>
jds: hehe
IcyDragon has joined #ruby
<workmad3>
jds: I'm guessing a dumb, younger version of you did just that? :)
<jds>
But thanks for the suggestion, because it turned out we had user_hash.deep_symbolize_keys buried deep somewhere
icarus_ has joined #ruby
<jds>
workmad3: Yeah, way back in 2009
jaequery has joined #ruby
<jds>
It's gone unnoticed for a long time, but seems like our upgrade to ruby 2.1 made the problem way more obvious
jaequery has quit [Max SendQ exceeded]
<rubyonrailed>
hectorr: I tried in 2.1 and it returns true
<mary5030>
workmad3: response.first && response.first["description"] || response["error"] , the first one works but i get " can't convert String into Integer" when the second case happens
jaequery has joined #ruby
<mary5030>
first response = [{\"title\":\"device\",\"description\":\"A device is required\"}]
seph429 has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
adasd has joined #ruby
<adasd>
hey guys
<adasd>
can someone help me ?
<mary5030>
second response = [{\"status\":\"500\",\"error\":\"A device is required\"}]
codeurge has joined #ruby
<workmad3>
mary5030: ok... so take a look at how you're accessing the description and how you're accessing the error
Rainicorn has joined #ruby
<workmad3>
mary5030: and form a hypothesis about how you might need to change things ;)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fifthofwry has joined #ruby
<apeiros>
adasd: no idea. can we?
<mary5030>
so response.first checks if it is a hash but i can't use that for my second case
<workmad3>
mary5030: no, response.first doesn't check if it's a hash
<adasd>
I need a good dev to code something for me
<apeiros>
adasd: hire somebody?
rippa has joined #ruby
<adasd>
yea
IcyDragon is now known as IceDragon
<workmad3>
mary5030: care to take another guess as to what response.first is doing? :)
LadyRainicorn has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
<adasd>
none ?
Vivekananda_y510 has quit [Ping timeout: 255 seconds]
<mary5030>
it is returning true or false
<workmad3>
mary5030: no
<workmad3>
mary5030: it's getting the first item of an array
s2013 has joined #ruby
Zenigor has quit [Remote host closed the connection]
<mary5030>
right sorry meant the &&
<apeiros>
adasd: would you act upon a random dude on irc saying "I have something I want coded!" - and nothing more. would you?
<mary5030>
so if the first item doesn't exist
<mary5030>
it returns false
<workmad3>
mary5030: yeah
<adasd>
can someone help me ? Or Im I wasting my time ?
<mary5030>
so my first one is an array of hash but i don't think my second one is
<workmad3>
mary5030: look at it again ;)
<workmad3>
mary5030: see those '[]' wrapping the json response?
maletor has joined #ruby
<mary5030>
so that was my mistake
Zenigor has joined #ruby
<centrx>
adasd, You need to present yourself in a different manner to get someone to code on your project, including explaining what it is.
<mary5030>
this is the actual error
<adasd>
Im paying them
<mary5030>
[{"title":"Generators::UnprocessableTemplateError","description":"No template could be found"}] for first and {"status":"500","error":"Internal Server Error"} for the second
<centrx>
adasd, That said, I'm not sure how many of these occasions where someone comes in looking for a developer are successful, for either side.
<apeiros>
I somehow have the feeling that he'd be the kind of guy nobody would want to work for
<mary5030>
apeiros: right on
rebelshrug has joined #ruby
jcromartie has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<mary5030>
so workmad3 my bad one is array of hash it appears one is only a hash, not sure a case statement will work then?
deric_skibotn has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
<workmad3>
mary5030: well, the error you got indicated that the second one is also an array
<mary5030>
[{"title":"Generators::UnprocessableTemplateError","description":"No template could be found"}] for first and {"status":"500","error":"Internal Server Error"} for the second
dbasch has joined #ruby
pandaant has quit [Quit: Lost terminal]
<mary5030>
the second one was not wrapped in [] i looked at the logs
Joulse has quit [Quit: Joulse]
<mary5030>
it was my mistake assuming the first time around i think
b00stfr3ak has joined #ruby
<rubyonrailed>
hectorrr: So the api works fine in 2.1, I guess its a version issue. I'm going to talk with postmark support
jaimef has quit [Excess Flood]
nfk has quit [Ping timeout: 256 seconds]
jmbrown412 has quit [Remote host closed the connection]
<hectorrr>
rubyonrailed: it most likely it won't be supported on 1.8.7, can you upgrade the version of ruby?
jmbrown412 has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<rubyonrailed>
I know that it used to be supported, the gem goes back to 1.8.7. And unfortunately not at this time :/
St_Marx has quit [Ping timeout: 264 seconds]
jaimef has joined #ruby
Tricon has joined #ruby
<hectorrr>
=\
St_Marx has joined #ruby
thams has joined #ruby
mattstratton has joined #ruby
xmad has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
jmbrown412 has quit [Ping timeout: 240 seconds]
troyready has joined #ruby
dbasch has quit [Quit: dbasch]
Sleepee has joined #ruby
ndrei has joined #ruby
hydrozen has joined #ruby
acrussell has joined #ruby
<Sou|cutter>
a lot of this -used- to be supported
<Sou|cutter>
s/this/things
chamblin has joined #ruby
flak has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
jdj_dk has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
<craigbowen3>
NCS_One, cornfeedhobo or the object is not enumerable
<cornfeedhobo>
NCS_One: " for #<Array:0x7f8a96c97570>"
cocotton has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
mehlah has quit [Quit: Leaving...]
duke_togo13 has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<Hanmac>
cornfeedhobo: sort_by is defined in Enumerable, sort_by! is only defined in Array
<cornfeedhobo>
version 1.8.7
<cornfeedhobo>
hmmm
cocotton has joined #ruby
<Hanmac>
and you NEED to upgrade your ruby version
<craigbowen3>
heh
<cornfeedhobo>
Hanmac: didnt know that. thanks. but this is still iterating over an array
<cornfeedhobo>
Hanmac: i know. dont get me started about centos. i dont make those types of choices here
<Hanmac>
"centos - still running on stone circles"
<cornfeedhobo>
mmmhm
craigbowen3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bayed has quit [Quit: Connection closed for inactivity]
craigbowen3 has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
jmbrown412 has joined #ruby
mocfive has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 255 seconds]
mocfive has joined #ruby
wald0 has joined #ruby
<apeiros>
NCS_One: a hash doesn't have cols/rows. you can iterate the key/value pairs using .each. You can iterate the keys only using each_key. and values only using each_value.
banjara has joined #ruby
george_mcfly has joined #ruby
<NCS_One>
apeiros: soo I should use an array
jottr has quit [Ping timeout: 260 seconds]
<NCS_One>
apeiros: thanks
<apeiros>
NCS_One: I have no idea what you should use
<apeiros>
you haven't told anything which would allow to make any recommendation
banisterfiend has quit [Quit: Computer has gone to sleep.]
<apeiros>
and arrays don't have cols/rows either
kaspergrubbe has quit [Ping timeout: 240 seconds]
dawkirst has quit [Remote host closed the connection]
Gooder` has quit [Ping timeout: 250 seconds]
lsmola has joined #ruby
<NCS_One>
apeiros: arr[rows][cols]
<apeiros>
you can represent them using arrays of arrays. but same applies for hashes.
<NCS_One>
ohh
ghr has joined #ruby
claymore has quit [Ping timeout: 256 seconds]
Takle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jmbrown412 has quit [Ping timeout: 256 seconds]
doev has quit [Ping timeout: 250 seconds]
jackneill has joined #ruby
<mostlybadfly>
What ate you trying to do exactly
geggam has joined #ruby
mocfive has quit [Ping timeout: 250 seconds]
<mostlybadfly>
If you want just values you can do myhash.values and iterate through that
jrhe has joined #ruby
<apeiros>
mostlybadfly: .each_value is better if you want to iterate them
end_guy has quit [Ping timeout: 264 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mostlybadfly>
Or else do myhash.each { |k ,v| yourcodehere }
<mostlybadfly>
Hard to tell without know exactly what is needed
<mostlybadfly>
Oh right apeiros duh
claymore has joined #ruby
fschuindt has joined #ruby
nanoyak has joined #ruby
maestrojed has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
larsam has joined #ruby
<eam>
values.each has a huge advantage in that you won't blow up if you modify the hash
thnee has quit [Ping timeout: 255 seconds]
k0m has joined #ruby
pietr0 has joined #ruby
qhartman has joined #ruby
thnee has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<NCS_One>
mostlybadfly: I need to itenerate only through the rows
<NCS_One>
not the cols
ebanoid has quit [Quit:
chrishough has quit [Quit: chrishough]
melik has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
<NCS_One>
has apeiros said I need an array of arrays or an hash of hashes
thams has quit [Quit: thams]
<apeiros>
I said no such thing
<NCS_One>
right
<apeiros>
I said those are ways to represent rows/cols. I said nothing about you needing to use them.
<NCS_One>
right
jimms has quit [Ping timeout: 245 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freezey_ has quit [Remote host closed the connection]
jespada_ has joined #ruby
<ruisantos>
exit
<ruisantos>
oops
jespada has quit [Ping timeout: 255 seconds]
axl_ has quit [Ping timeout: 264 seconds]
end_guy has joined #ruby
maestrojed has joined #ruby
axl_ has joined #ruby
Akagi201 has joined #ruby
Takle has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
rylev has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
<lagweezle>
^^
andrewlio has joined #ruby
lw has quit [Quit: s]
jottr has joined #ruby
jdj_dk has quit [Remote host closed the connection]
Brando753 has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
timonv_ has joined #ruby
jdj_dk has joined #ruby
Brando753 has joined #ruby
lw has joined #ruby
<chamblin>
rubyonrailed: If you want to maintain two versions of the whois gem at the same time, you should check out bundler. Otherwise, you should just e.g. gem install whois -v 1.5
SilkFox_ has quit [Ping timeout: 260 seconds]
Akagi201 has quit [Ping timeout: 245 seconds]
NinoScript has quit [Ping timeout: 272 seconds]
troyready has joined #ruby
duke_togo13 has quit [Read error: Connection reset by peer]
<baweaver>
dbasch - give me a sec, I'll shoot a comment on it.
mikecmpbll has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Client Quit]
thams has quit [Quit: thams]
Thermatix has joined #ruby
lw has joined #ruby
<Thermatix>
hello
freezey has joined #ruby
<Maitiu>
FREE PALESTINE
<russ_>
Hey all - I'm looking for a way of visualizing a queue; which order jobs were taken, how long each took, etc. I'm looking to visualize to see patterns and work out what to optimize. Any suggestions welcome! :)
ndrei has quit [Ping timeout: 272 seconds]
<Thermatix>
I have a very simple rails question, I'm building an engine but I need some code to run AFTER the main app has finished initializing, I just want to know if this >> `self.config.after_initialize do` will work for a block that will run after the main app has initialized.
freezey has quit [Read error: Connection reset by peer]
<Thermatix>
hello?
<centrx>
Thermatix, Try #rubyonrails
<Thermatix>
AH
<Thermatix>
thank you
axl__ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
freezey has joined #ruby
<centrx>
Thermatix, You'll have to use a registered/identified nick
<Thermatix>
yeah
<centrx>
to join that channel
<Thermatix>
I just tried it and It said the same thing
axl_ has quit [Ping timeout: 250 seconds]
axl__ is now known as axl_
<Thermatix>
how do I register?
JohnFord has joined #ruby
lw has quit [Ping timeout: 240 seconds]
<centrx>
/nickserv help
jmbrown412 has joined #ruby
<Thermatix>
do I use /user?
<centrx>
no?
sambao21 has joined #ruby
ndrei has joined #ruby
<Thermatix>
oh
<centrx>
I am not familiar with that command
<centrx>
maybe it does, I don't think I've ever seen it used
acrussell has quit [Quit: Leaving.]
Thermatix is now known as thermatix
<seph429>
do /msg nickserv help register
<thermatix>
AH
<thermatix>
thanks, It's been a while since I've been on IRC
<seph429>
not a problem
Port3M5[Work] has quit [Ping timeout: 245 seconds]
freezey has quit [Ping timeout: 245 seconds]
<thermatix>
hmmm my chat pane doesn't scroll
<thermatix>
or it's becuase the printout from commands doesn't scroll it, nvm
Port3M5[Work] has joined #ruby
<thermatix>
thanks for your help
<thermatix>
heh, all this just for a confirmation :P
renderfu_ has quit [Remote host closed the connection]
agjacome_ has joined #ruby
v0n has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
xenomorph is now known as {xenomorph}
dbasch has quit [Ping timeout: 256 seconds]
{xenomorph} is now known as xenomorph
agjacome has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Karunamon>
Here's a puzzle! I'm trying to do some regex, here, and the tool I'm using, http://rubular.com, is giving me different results than my pry shell and I'm not sure why.
jdj_dk has quit [Remote host closed the connection]
dbasch has joined #ruby
<Karunamon>
In this case, ideally i'd get a match back that contains the "pv.02" line
jmbrown412 has joined #ruby
<Karunamon>
Rubular does what I mean, giving me both of them and then letting me grab the last one. Actually in a pry session, though, the last item I get is the pv.01 line
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<Karunamon>
and 2 is nowhere to be found
rezzack has quit [Client Quit]
rezzack has joined #ruby
claymore has quit [Read error: Connection reset by peer]
Rainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
momomomomo has quit [Quit: momomomomo]
xenomorph is now known as {xenomorph}
beseku has joined #ruby
{xenomorph} is now known as xenomorph
yeticry has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Ping timeout: 256 seconds]
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
yeticry has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hectorrr has joined #ruby
sputnik13 has joined #ruby
GlenK has quit []
beseku has quit [Ping timeout: 272 seconds]
codeurge has quit [Quit: Quit.]
benlieb has joined #ruby
VTLob has quit [Quit: VTLob]
Atttwww has joined #ruby
andrewbredow has quit [Remote host closed the connection]
<shevy>
are there any public alternatives to rubygems.org for hosting gems?
<stephenmac7>
apeiros: ENV.fetch works perfectly. Thanks.
<apeiros>
yw
shredding has joined #ruby
yeticry has joined #ruby
bridge has joined #ruby
<existensil>
shevy: if you consider rails-assets.org an alternative...
<existensil>
also, github itself works quite well. Bundler even supports the shorthand: `gem github: "user/repo"`
<existensil>
Accidently left out the name, but that's the idea
Ilyas has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
kyb3r_ has joined #ruby
gimpygoo has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 245 seconds]
Akagi201 has quit [Ping timeout: 250 seconds]
<shevy>
aha, never heard of rails assets before
xaxisx has joined #ruby
jimms has joined #ruby
<shevy>
it would work without bundler too right? I could like add that via: "gem sources --add rails-assets.org" and then "gem install" should also check that URL?
centrx has quit [Quit: Mead error: Connection reset by beer]
yeticry has quit [Ping timeout: 260 seconds]
fold has quit [Ping timeout: 260 seconds]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnmolina has joined #ruby
johnmolina has quit [Remote host closed the connection]
<graft>
hey folks, looking for some advice: I am hacking on this gem which i am using in production on this machine, and i want to be able to build and install a dev version of this gem without messing up the production environment... what's a good way to achieve this?
yeticry has joined #ruby
itspots has quit [Ping timeout: 240 seconds]
MrDoctor has joined #ruby
stephenmac7 has quit []
xaxisx has quit [Quit: xaxisx]
jackneill has quit [Remote host closed the connection]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beseku has joined #ruby
brandonshowers has joined #ruby
shawnjgoff has joined #ruby
larsam has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 255 seconds]
xaxisx has joined #ruby
<shawnjgoff>
I need to make "ab:cd:ef:gh..." turn into "abcd:efgh..."
NinoScript has quit [Ping timeout: 240 seconds]
<shawnjgoff>
Is this the most straightforward way: "ab:ce:ef:gh".split(':').each_slice(2).map { |*a| a.join }.join(":")
<shawnjgoff>
It seems like it should be simpler.
yeticry has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
MrL0ngbowman has joined #ruby
seanosaur has quit [Remote host closed the connection]
<apeiros>
.gsub(/(..):(..)/, '\1\2')
EvanR_ has quit [Ping timeout: 256 seconds]
EvanR_ has joined #ruby
<apeiros>
shawnjgoff: ^
jelera has joined #ruby
NinoScript has joined #ruby
<shawnjgoff>
That works.
<apeiros>
graft: use bundler. use rvm. use a different user. pick one :)
andrewbredow has quit [Quit: Computer has gone to sleep.]
<apeiros>
oh, I forgot: don't install it, use $LOAD_PATH (e.g. via -I flag)
thams has quit [Quit: thams]
beseku has quit [Ping timeout: 272 seconds]
olivier_bK has joined #ruby
andrewbredow has joined #ruby
<apeiros>
last one is what I usually do
MrDoctor has quit [Read error: Connection reset by peer]
NinoScript has quit [Read error: Connection reset by peer]
<existensil>
shevy: I would think so. Never used it that way.
NinoScript has joined #ruby
dawkirst has joined #ruby
bMalum__ has quit [Quit: Computer has gone to sleep.]
bMalum__ has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
EvanR_ has quit [Ping timeout: 256 seconds]
fifthofwry has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 272 seconds]
NinoScript has joined #ruby
asmodlol has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
andrewbredow has quit [Ping timeout: 240 seconds]
thams has joined #ruby
george_mcfly has quit [Quit: leaving]
yeticry has joined #ruby
nateberkopec has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
Ankhers has quit [Ping timeout: 264 seconds]
davedev2_ has quit [Remote host closed the connection]
dbasch has joined #ruby
jelera has quit [Ping timeout: 240 seconds]
MrL0ngbowman has quit [Ping timeout: 272 seconds]
saarinen has quit [Quit: saarinen]
davedev24_ has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: dblessing]
yetanotherdave has joined #ruby
bMalum__ has quit [Ping timeout: 240 seconds]
NinoScript has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
NinoScript has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
doev has joined #ruby
yeticry has joined #ruby
NinoScript has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
MartinCleaver has quit [Quit: MartinCleaver]
NinoScript has joined #ruby
doev has quit [Client Quit]
reset has joined #ruby
namxam_ has quit [Remote host closed the connection]
larsam has joined #ruby
saarinen has joined #ruby
_reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
LordXe-gnu has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
felixjet has joined #ruby
<LordXe-gnu>
I'm trying to install rvm using the install for a single user but it keeps trying to add an "rvm" group via sudo, and I don't have root on the machine in question
<LordXe-gnu>
any way to get around this?
startupality has quit [Quit: startupality]
yeticry has joined #ruby
ghr has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
CodeLicker has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
amargherio has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
nicoulaj has quit [Remote host closed the connection]
larsam has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
bosworth has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
bMalum__ has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
larsam has joined #ruby
davedev24_ has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Read error: Connection reset by peer]
andrewlio has quit [Quit: Leaving.]
toastynerd has quit [Remote host closed the connection]
St_Marx has joined #ruby
kyb3r_ has joined #ruby
yeticry has joined #ruby
olivier_bK has quit [Ping timeout: 256 seconds]
hectorrr has joined #ruby
hectorrr has left #ruby [#ruby]
shredding has quit [Quit: shredding]
sunya7a has joined #ruby
lele has quit [Ping timeout: 256 seconds]
hectorrr has joined #ruby
CodeLicker has quit [Read error: Connection reset by peer]
bosworth has quit [Ping timeout: 255 seconds]
Nahra has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yeticry has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
yeticry has joined #ruby
_reset has quit [Ping timeout: 264 seconds]
thams has quit [Quit: thams]
blackmesa has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
blackmesa has joined #ruby
DeanH has joined #ruby
chrishough has quit [Quit: chrishough]
NinoScript has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 260 seconds]
sunya7a has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
thams has joined #ruby
Nahra has joined #ruby
NinoScript has joined #ruby
Takle_ has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
olivier_bK has joined #ruby
yeticry has joined #ruby
xaxisx has left #ruby [#ruby]
Nahra has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
Nahra has joined #ruby
momomomomo has quit [Quit: momomomomo]
Nahra has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
Wolland has quit [Remote host closed the connection]
Akagi201 has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
Nahra has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 240 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
namxam has joined #ruby
dapz has joined #ruby
renderfu_ has joined #ruby
yeticry has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
Nahra has quit [Remote host closed the connection]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
Akagi201 has quit [Ping timeout: 245 seconds]
phutchins has quit [Ping timeout: 255 seconds]
SilkFox_ has quit [Ping timeout: 250 seconds]
renderful has quit [Ping timeout: 260 seconds]
Nahra has joined #ruby
namxam has quit [Read error: No route to host]
Photism has joined #ruby
namxam has joined #ruby
brandonshowers has joined #ruby
GriffinHeart has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
dbasch has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
Nahra has quit [Remote host closed the connection]
Kache has joined #ruby
yeticry has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
sepp2k has joined #ruby
dbasch has joined #ruby
asdd has joined #ruby
yeticry has joined #ruby
sirene has quit [Ping timeout: 260 seconds]
freezey has quit [Remote host closed the connection]
Nahra has joined #ruby
sirene has joined #ruby
<Kache>
anyone ever see tab completion in irb/rails console add an extra space?
namxam has quit [Ping timeout: 245 seconds]
jaimef has quit [Excess Flood]
lkba has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
hydrozen has joined #ruby
ephemerian has quit [Quit: Leaving.]
beseku has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 250 seconds]
jaimef has joined #ruby
yeticry has joined #ruby
nfk has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
<wallerdev>
maybe its adding a tab
nfk has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
dbasch has joined #ruby
pietr0 has quit [Quit: pietr0]
Nahra has joined #ruby
nanoyak has joined #ruby
<graft>
is it possible to modify Gem.path from within a script?
<graft>
if i unshift a directory onto Gem.path, it doesn't seem to affect how gems load
beseku has quit [Ping timeout: 245 seconds]
<graft>
(although setting GEM_PATH environment variable before loading does)
saarinen has quit [Quit: saarinen]
lele has joined #ruby
chrishough has joined #ruby
kevind has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 272 seconds]
Nilium has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
timonv^ has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nahra has quit [Ping timeout: 260 seconds]
<Kache>
well any whitespace at all after the tab complete is weird
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j_mcnally has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
Nahra has joined #ruby
brandonshowers has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
fantazo has quit [Ping timeout: 260 seconds]
armyriad has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
cocotton has joined #ruby
djbkd has quit [Remote host closed the connection]
armyriad has joined #ruby
yeticry has joined #ruby
djbkd has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Nahra has joined #ruby
crudson has joined #ruby
toastynerd has joined #ruby
<lagweezle>
It is full of awesome.
testcore has joined #ruby
Shidash has quit [Quit: Leaving.]
Sirupsen has joined #ruby
benlieb has quit [Quit: benlieb]
Nahra has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
yeticry has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
jaimef has joined #ruby
yeticry has joined #ruby
tvw has quit []
toastynerd has quit [Ping timeout: 255 seconds]
Nowaker has quit [Remote host closed the connection]
Nahra has joined #ruby
Nowaker has joined #ruby
Channel6 has joined #ruby
kireevco has joined #ruby
namxam has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
ukd1 has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sgeo has joined #ruby
cocotton has quit [Remote host closed the connection]
dbasch has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
jimms has quit [Remote host closed the connection]
amacou has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
amacou has joined #ruby
shawnjgoff has quit [Ping timeout: 256 seconds]
namxam has quit [Ping timeout: 256 seconds]
MCDev has quit [Ping timeout: 250 seconds]
xmad has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
beseku has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
yeticry has joined #ruby
toastynerd has joined #ruby
<ViperChief>
o hai?
banisterfiend has quit [Quit: Computer has gone to sleep.]
beseku has quit [Ping timeout: 250 seconds]
kmels has joined #ruby
dapz has joined #ruby
Wolland has quit [Remote host closed the connection]
crudson has quit [Ping timeout: 260 seconds]
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
chamblin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
Arkaniad|Laptop has quit [Client Quit]
Arkaniad has quit [Max SendQ exceeded]
crudson has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 260 seconds]
e4xit_ has joined #ruby
yeticry has joined #ruby
qhartman has quit [Quit: Ex-Chat]
Takle_ has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
e4xit has quit [Ping timeout: 240 seconds]
e4xit_ is now known as e4xit
davedev24_ has joined #ruby
AlexRussia_w has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
Vivekananda_y510 has joined #ruby
VictorSK has joined #ruby
VictorSK_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
blackmes1 has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 240 seconds]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VictorSK_ has quit [Client Quit]
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<robscormack>
LordXe-gnu, use rbenv.
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
W0rmDr1nk has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
icarus_ has quit [Remote host closed the connection]
VictorSK has quit [Client Quit]
jimbow has joined #ruby
<jimbow>
anyone use sublime?
Zebroid has joined #ruby
jaimef has quit [Excess Flood]
mary5030 has quit [Remote host closed the connection]
fenicks has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #ruby
larsam has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
P-NuT has joined #ruby
<P-NuT>
Hey all, is there a gem for streaming internet radio?
MCDev has joined #ruby
<P-NuT>
...listening to it I mean.
Vivekananda_y510 has quit [Read error: Connection reset by peer]
edgarjs has left #ruby [#ruby]
Vivekananda_y510 has joined #ruby
main has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
_maes_ has quit [Ping timeout: 240 seconds]
crudson has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
jaimef has joined #ruby
ghr has joined #ruby
phinfonet has quit [Ping timeout: 250 seconds]
crudson has joined #ruby
<main>
Hi. I would like ruby to stay in an interactive mode after ending script execution. How can I do it? Tried "irb -r 'script.rb'" but the variables defined in the script do not load to the scope. "irb 'script.rb'" on the other hand exited the shell due to EOF...