nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeade has quit [Ping timeout: 276 seconds]
brianpWins has quit [Quit: brianpWins]
nanoxd has joined #ruby
fsck3r has joined #ruby
nari has quit [Ping timeout: 256 seconds]
cloke_ has joined #ruby
cloke has quit [Ping timeout: 245 seconds]
cloke_ is now known as cloke
mlpinit has joined #ruby
mlpinit has quit [Remote host closed the connection]
the_hack has quit [Quit: Leaving...]
mary5030 has joined #ruby
wmoxam has joined #ruby
khushildep has quit [Quit: khushildep]
mmitchell has joined #ruby
Ripp__ has quit [Quit: Ripp__]
amacgregor_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
ehc has quit [Quit: ehc]
zodiak has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
MarcWeber has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<MarcWeber>
I have a problem installing a gem (ncursesw and ncursesw-sup): When "make install" gets run it tries to install lib/ncursesw.rb to lib/ncursesw.rb which fails due to "same file"
c0rn has quit [Ping timeout: 245 seconds]
<shevy>
hmmm
<MarcWeber>
I'm using the gem -i command
<MarcWeber>
Well - its still ruby 1.8.7, maybe I should try more recent version
cloke has quit [Quit: cloke]
hogeo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
zarubin has quit [Ping timeout: 246 seconds]
<MarcWeber>
Same with 1.9.3
<shevy>
you did: "gem install ncurses" ?
sarkis has quit [Ping timeout: 264 seconds]
<MarcWeber>
No, I'm using nixos with custom code. Each gem gets installed into its own directory.
<MarcWeber>
And the package with fails is ncursesw-sup
<shevy>
cool
<shevy>
other gems work on nixos?
<shevy>
that's even one step further than gobolinux went
<MarcWeber>
and ncursesw
<MarcWeber>
shevy: Yes, Eg xapian-ruby etc are fine.
<shevy>
I dont have much luck with ncurses either
<shevy>
form_wrap.c:1126:38: error: 'struct RArray' has no member named 'len'
<shevy>
make: *** [form_wrap.o] Error 1
argentum has joined #ruby
bleubeard has quit [Remote host closed the connection]
<MarcWeber>
shevy: ncurses*w* and ncurses*w-sup*
<shevy>
hmm
<shevy>
emi ncursesw-sup
<shevy>
Fetching: ncursesw-1.2.4.3.gem (100%)
<shevy>
Building native extensions. This could take a while...
zodiak has quit [Ping timeout: 276 seconds]
<shevy>
Installing ri documentation for ncursesw-1.2.4.3
<shevy>
1 gem installed
DanKnox is now known as DanKnox_away
dodosan has joined #ruby
tyfighter has quit [Ping timeout: 245 seconds]
dankest has joined #ruby
<shevy>
and ncursesw-sup-1.3.1.3.gem too
<shevy>
I think both installed fine... let me try to test them
bklane has joined #ruby
malcolmva has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
malcolmva has joined #ruby
<MarcWeber>
shevy: can you try with -i /tmp/target ?
<shevy>
require.rb:45:in `require': cannot load such file -- ncurses (LoadError)
<shevy>
yeah, perhaps it attempts to use the local one
Levin_22_ has joined #ruby
Akuma has joined #ruby
<shevy>
you could remove it perhaps and try again
Megtastique has joined #ruby
<shevy>
huh
<MarcWeber>
shevy: nixos is about reproducing builds, thus there are special fixed output builds using the internet to download files, and other builds using those results to compile results ..
<shevy>
I use an ancient ruby version
marsLantern has quit [Quit: marsLantern]
Levin_22 has quit [Ping timeout: 256 seconds]
Levin_22_ is now known as Levin_22
<shevy>
nixos is cool
<shevy>
I'd just wish it would also have a gobolinux-like structure on top of the 8vf8lib4gs85j19d7dicz3sbr2nv68sv dirs
i_s has quit [Ping timeout: 264 seconds]
<MarcWeber>
shevy: To do what?
<MarcWeber>
You have "profiles".
arooni-mobile has quit [Ping timeout: 246 seconds]
<MarcWeber>
You install the /nix/store/hash-name stuff into a profile which is used to augment PATH.
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MarcWeber>
So there is no need to use those cryptic names usually.
m8 has quit [Read error: Connection reset by peer]
Kabaka has quit [Remote host closed the connection]
eka has joined #ruby
robbyoconnor has quit [Excess Flood]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
robbyoconnor has joined #ruby
<shevy>
hmm
mrsolo has joined #ruby
nari has joined #ruby
ewnd9 has joined #ruby
fsck3r has quit [Quit: Leaving...]
x1337807x has quit [Read error: Connection reset by peer]
<shevy>
/nix/store/dz9pvnjmvnhikfwyf624zzkj3cv7mbqi-coreutils-8.21/bin/install: './lib/ncursesw.rb' and '/nix/store/8vf8lib4gs85j19d7dicz3sbr2nv68sv-ncursesw-sup-1.3.1.3/gems/ncursesw-sup-1.3.1.3/lib/ncursesw.rb' are the same file
huevon has quit [Quit: WeeChat 0.4.1]
burlyscudd has joined #ruby
<shevy>
they seem to use different paths
<MarcWeber>
shevy: Retrying with your version now.
<shevy>
or are there symlinks?
IceDragon has quit [Quit: Space~~~]
<MarcWeber>
shevy: depends on what current directory is.
Kabaka has joined #ruby
<shevy>
well perhaps that is why ... a check to look at symlinks, and the script assumes it is the same file
Rym has quit [Quit: Rym]
eka has quit [Client Quit]
snovak has quit [Ping timeout: 248 seconds]
mwmnj has quit [Ping timeout: 264 seconds]
stoffus has joined #ruby
ryandeus_ has joined #ruby
stoffus has quit [Client Quit]
Akuma has quit [Quit: So long sukkas!]
mansi has quit [Ping timeout: 240 seconds]
ryandeussing has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
JimmyNeutron has joined #ruby
b00stfr3ak has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
Akuma has joined #ruby
brennanMKE has joined #ruby
eka has joined #ruby
<MarcWeber>
no symlinks
<MarcWeber>
So it must be that install and build directory are the same
<palaenkar>
i know it's something simple like class<<class
<pipecloud>
palaenkar: Depends on what you need.
browndawg has joined #ruby
<zendeavor>
that is the same as exporting the var
<pipecloud>
zendeavor: No it isn't.
<zendeavor>
for this purpose, it is
<pipecloud>
There's no reason to export it.
apeiros has quit [Ping timeout: 260 seconds]
<zendeavor>
so we'd like to assume, i agree
palaenkar has quit [Read error: Connection reset by peer]
<pipecloud>
Let me rephrase, dont' export unless you have reason to.
<zendeavor>
both ways are going to put the var in bundle's env
<zendeavor>
he's already said it "doesn't work"
<pipecloud>
I don't know what you mean by bundle's env with regard to shell variables.
Desert_eagle has quit [Read error: Operation timed out]
<pipecloud>
Perhaps "doesn't work" sucks as a response to our suggestions. :)
manyoo has joined #ruby
Domon has joined #ruby
<zendeavor>
export foo=bar; bundle exec ... # foo=bar bundle exec ...; # will have the same result, as far as `bundle' is concerned.
<zendeavor>
whether the var should be in the shell's process environment is another matter entirely
<zendeavor>
picky picky
lyanchih has joined #ruby
r4nd0m1 has quit []
<pipecloud>
I'd be impressed to find that it doesn't work unless someone is doing something funny that unsets variables or doesn't inherit environment from the parent process (the shell)
<pipecloud>
bnj: Care to help us help you figure out this, or do you got this?
<zendeavor>
without seeing the script, no one will ever know.
<pipecloud>
Don't forget to set -x
<zendeavor>
no, please don't set -x anything
<pipecloud>
what
<zendeavor>
just show me the script
<zendeavor>
it's so much simpler
Desert_eagle has joined #ruby
<pipecloud>
Whatever.
altamic has joined #ruby
altamic has left #ruby [#ruby]
Bio has quit [Ping timeout: 245 seconds]
palaenkar has joined #ruby
zoee has joined #ruby
<bnj>
oops sorry for the delay, I was trying some stuff
staafl_alt has joined #ruby
<palaenkar>
sorry, whenever i shut my laptop and open it back up in ubuntu for some reason my screen won't turn back on, i don't know how to fix it
<palaenkar>
but anyways, is there a way i can make a class use the same method from another class
dodosan has joined #ruby
zets has joined #ruby
<bnj>
zendeavor, pipecloud: the script is pretty simple: |export ENVVAR=value; bundle exec rake namespace:task|
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnj>
the only issue is that the Rakefile delegates to other Rakefiles
kobain has quit []
<zendeavor>
it should still inherit as it goes
dankest has joined #ruby
staafl has quit [Ping timeout: 240 seconds]
<zendeavor>
start print debugging, or turn on some debug shit in the rakefiles, or whatever you can do to see where the env var gets lost
sayan has quit [Ping timeout: 260 seconds]
<pipecloud>
bnj: Do the other rakefiles look for this shell env variable?
druonysuse has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<bnj>
pipecloud: yep
<pipecloud>
bnj: Hm, interesting. This would mean that these other Rakefiles aren't inheriting the process's current environment. Are you doing anything like fork+exec or env -i?
<bnj>
pipecloud: so I just checked, the ENV variable is correct in these files too (debug printing FTW)
<bnj>
in particular, it precompiles assets and these assets are supposed to use the env variables as local variables
<bnj>
might be something wrong related to the "asset compiler"
<pipecloud>
bnj: Curiouser and curiouser.
ner0x has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
snovak has joined #ruby
robonerd has quit [Quit: ...]
ayaz has joined #ruby
palaenkar has quit [Quit: Leaving]
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
<bnj>
looks like a cache problem actually
snovak has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
lyanchih has joined #ruby
siera08_ has joined #ruby
<pipecloud>
Ah, is someone nil-guarding?
<bnj>
pipecloud: not sure to see what do you mean by that?
huoxito has quit [Quit: Leaving]
Evixion has quit [Read error: Connection reset by peer]
siera08 has quit [Ping timeout: 264 seconds]
<pipecloud>
bnj: @my_env_var ||= SOMECONSTANT || ENV['MYENVVAR'] or something.
<pipecloud>
The ||= is a nil-guard
siera08_ is now known as siera08
manyoo has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 240 seconds]
<bnj>
pipecloud: yes! everywhere!
Matriks has joined #ruby
<pipecloud>
bnj: They might be the source of things perhaps!
Evixion has joined #ruby
zachrab has quit [Remote host closed the connection]
intuxicated has joined #ruby
rickmasta has joined #ruby
vlad_starkov has joined #ruby
zachrab has joined #ruby
pranny has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 264 seconds]
gmar1k has joined #ruby
gmar1k has left #ruby [#ruby]
robbyoconnor has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
pranny has quit [Client Quit]
pranny has joined #ruby
siera08_ has joined #ruby
robbyoconnor has joined #ruby
pranny has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
pranny has joined #ruby
siera08 has quit [Ping timeout: 245 seconds]
siera08__ has joined #ruby
siera08__ is now known as siera08
iliketur_ has quit [Quit: zzzzz…..]
intuxicated has quit [Ping timeout: 264 seconds]
BizarreCake has joined #ruby
dash_ has joined #ruby
dodosan has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
d45h has joined #ruby
siera08_ has quit [Ping timeout: 245 seconds]
vince_prignano has joined #ruby
vlad_starkov has joined #ruby
Megtastique has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<zendeavor>
well i don't blame you for finding it hard to track
<zendeavor>
try some introspection
robonerd has left #ruby [#ruby]
<pipecloud>
I'd say to look at finding the source_location and perhaps redefining included on the module.
<pipecloud>
You can probably find where it's included from.
<bnj>
pipecloud: interesting. So I modified the erb file so as to print the variable, and this file got recompiled and then showed the correct variable
<bnj>
I guess sprockets uses some kind of cache
<bnj>
using the last modification timestamp of the file, or something like this
<pipecloud>
Well, ejs wouldn't be able to understand ENV because ejs is just erb-style templating for javascript.
<pipecloud>
Try .ejs.erb
druonysuse has quit [Read error: Operation timed out]
druonysuse has joined #ruby
agjacome has joined #ruby
razi has joined #ruby
<bnj>
is there a way to clear the sprockets cache?
tyfighter has joined #ruby
diegoviola has joined #ruby
cj3kim has quit [Remote host closed the connection]
<diegoviola>
hi
<pipecloud>
bnj: The cached files?
love_color_text has quit [Read error: Connection reset by peer]
Domon has quit [Remote host closed the connection]
<pipecloud>
diegoviola: How do you manage to keep trying to contribute when a good portion of your work isn't accepted? I often get discouraged.
<bnj>
pipecloud: yes, the cached files compiled by sprockets (I can't just |rake assets:clobber| for some reason)
Domon has joined #ruby
<pipecloud>
bnj: Is this a rails app?
freeayu has quit [Ping timeout: 246 seconds]
<bnj>
pipecloud: I think so
<sevenseacat>
#rubyonrails is thataway --->
<pipecloud>
If your asset directory is configured as the default then just rm -r public/assets
<jrobeson>
pipecloud, why isn't it accepted ?
<diegoviola>
pipecloud: what do you mean?
<pipecloud>
jrobeson: I don't keep a log of all of the stuff, but it's mostly on the mailing list.
freeayu has joined #ruby
apeiros has joined #ruby
<pipecloud>
diegoviola: I typically get tired of trying after a short while. It's interesting to see you keep at it and continually put the effort forward.
<zendeavor>
mailing lists in my experience are very nice
<zendeavor>
no serious user of an ML likes gross signatures or html mail
ahawkins has joined #ruby
<pipecloud>
If you're being srs on the internet, chances are that you take other things too seriously.
<pipecloud>
That being said, IRC is serious.
jonahR has quit [Quit: jonahR]
<zendeavor>
threads that go ignored are usually justly dismissed
<zendeavor>
they tend to be from users who didn't read a word of documentation and got their instructions from some how-to blog
kevinykchan has joined #ruby
Domon has joined #ruby
Quashie has quit [Ping timeout: 264 seconds]
<pipecloud>
Or just rather difficult questions no one is willing to expose their ignorance about in order to help debugging or sorting out.
Quashie_ has joined #ruby
<zendeavor>
those are very rare
<pipecloud>
Pretty much every one I send that goes unanswered typically is.
<pipecloud>
I just contact maintainers and core directly afterwards if I know they're nice and friendly.
<rubino123>
any octopress users in?
<zendeavor>
cc them from the ML so there's a public record or you're doing it wrong
<zendeavor>
unless you update your thread in the ml personally
<pipecloud>
Naw, would rather not directly contact them upon sending the ML an email.
<pipecloud>
Seems rood.
<zendeavor>
you cc on followup
<pipecloud>
zendeavor – Learn you how to email right proper, he will.
<zendeavor>
this is proper
Alina-malina has quit [Quit: Leaving]
<zendeavor>
this is why mailing lists are archived
<pipecloud>
I value your ability to form opinions, but I disagree with your preference.
snovak has joined #ruby
<zendeavor>
you're equally rude for contacting the maintainer directly, whether you cc from a followup on the ML or not
<pipecloud>
Lol.
<zendeavor>
that's a stone cold truth, brother
end_guy has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<pipecloud>
Not really. I typically contact people who're quite nice. They're welcome to ignore that email or not, but they don't.
* zendeavor
boggle
kevinykchan has quit [Read error: Connection reset by peer]
<zendeavor>
CCing the core maintainer from this thread
<pipecloud>
I think that whatever culture you keep doesn't coincide with mine entirely. It might very well be rude, but I don't email you about your projects, so it's a win there. The people who I do email about it are people I've typically conversed with before.
<zendeavor>
that's the status quo
workmad3 has joined #ruby
andikr has joined #ruby
<pipecloud>
No reason to do that at all.
rickmasta has joined #ruby
<zendeavor>
public record is a very valid reason
<pipecloud>
Let's not devolve into aspie-hour about how to email.
<sevenseacat>
lol
<zendeavor>
that's the most mature way to say "im rite ur rong shutup" i've ever heard
Bry8Star{T2 has joined #ruby
<pipecloud>
You're just being an argumentative grump.
<sevenseacat>
settle, children.
<pipecloud>
sevenseacat: Too bad can't !popcorn2
<sevenseacat>
its ok, i'm popcorn2'ing on the inside.
<pipecloud>
sevenseacat: That makes me feel moist... in a bad way.
kevinykchan has joined #ruby
Megtastique has quit [Quit: Megtastique]
<pipecloud>
on the positive side, the tears I shed on the inside would be great for salting the popcorn2.
<jrobeson>
i don't want to be mailed directly unless i aks you to..
<jrobeson>
i do think it is rude..
snovak has quit [Ping timeout: 276 seconds]
<zendeavor>
it's okay, he knows them personally
<pipecloud>
Good, I won't, and I'll likely not use or endorse your projects either.
<zendeavor>
totally different scenario
<jrobeson>
ah yes
Es0teric has joined #ruby
<pipecloud>
so it's a win on both sides then.
end_guy has joined #ruby
<pipecloud>
I'd personally rather not be in contact with someone who wouldn't be interested in receiving email about highly technical questions about their projects. Doesn't seem like the sort of project worth my time to deal with.
marr has joined #ruby
lotherk has joined #ruby
codecop has joined #ruby
Astralum has joined #ruby
lemonsparrow has quit [Ping timeout: 250 seconds]
camilasan has joined #ruby
ahawkins has left #ruby [#ruby]
beneggett-alt has joined #ruby
gtissus_ has joined #ruby
gtissus_ has quit [Client Quit]
Weems is now known as unattractive
gtissus has joined #ruby
zombiebit has joined #ruby
jan1337zZz is now known as jan1337z
jan1337z is now known as Jan
<gtissus>
Hi, how do I run command on a remote server over ssh? I would like to run a mysqldump for example
Jan is now known as Guest87762
argentum has quit [Quit: argentum]
cj3kim has joined #ruby
<Olipro>
gtissus: there's an SSH gem
<Olipro>
or you could just invoke ssh off the commandline
_bart_ has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
jbpros has quit [Quit: jbpros]
myu has left #ruby ["Leaving"]
sevenseacat has quit [Quit: Leaving.]
beneggett-alt has quit [Quit: beneggett-alt]
mercwithamouth has joined #ruby
orionstein_away is now known as orionstein
jibi has quit [Quit: .]
bean has joined #ruby
anderson has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
noopq has joined #ruby
razi has quit [Ping timeout: 245 seconds]
shaunbaker has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
aryaching has joined #ruby
Guest55216 is now known as jan1337zZz
Fire-Dragon-DoL has joined #ruby
orionstein is now known as orionstein_away
shaunbak_ has joined #ruby
platzhirsch has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<platzhirsch>
Throw me a cool class name for a class that creates compressed JSON dumps
aryaching has joined #ruby
<shevy>
platzhirsch class Muellhalde
<platzhirsch>
shevy: no hipster recommendations
<shevy>
or JsonMuellhalde
<platzhirsch>
^^
<shevy>
class JsonToilet
aryaching has quit [Client Quit]
<shevy>
class JsonDumpster
<shevy>
class JsonDump
<MrZYX>
class JsonSchrottplatz
<platzhirsch>
JsonHardDriveAmbassador
aryaching has joined #ruby
<shevy>
haha
greenysan has joined #ruby
<shevy>
I like "Schrottplatz"
<shevy>
platzhirsch, I think that is too long
adeponte has joined #ruby
ssvo has joined #ruby
<shevy>
platzhirsch how about... JsonArchive(r)
<platzhirsch>
Archiver, beautiful
<shevy>
I have a class that is called Extracter and it's sole purpose is to extract things
<platzhirsch>
sold to shevy
<shevy>
but I also have classes that have longer names and I rarely like these :(
<platzhirsch>
maybe you should change the editor font then to display the camelcase more nicely
<shevy>
class WebpageForImages
<shevy>
creates a webpage with images...
<shevy>
but I dont like the name
<platzhirsch>
ImageWebpage ?
<shevy>
hmm let me think ...
<MrZYX>
ImagePage ?
ezotrank has joined #ruby
<platzhirsch>
PicSheet
ggordan has joined #ruby
ezotrank has quit [Client Quit]
ebouchut has joined #ruby
fgo has joined #ruby
ebouchut has quit [Remote host closed the connection]
mbuf has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
adeponte has quit [Ping timeout: 256 seconds]
lyanchih has joined #ruby
VTLob has joined #ruby
ndrei has joined #ruby
m8 has joined #ruby
fatmandown has joined #ruby
<mbuf>
if I have a sorted array such as b = ["1-X-alpha", "1-alpha", "2-X-alpha", "2-alpha"], how can I re-arrange such that 1-alpha comes before 1-X-alpha, and 2-alpha comes before 2-X-alpha?
<MrZYX>
I think sort_by won't help because you can't override the comparison
snovak has quit [Read error: Operation timed out]
buzzybron has joined #ruby
<mbuf>
MrZYX: okay
nari has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
lockweel has joined #ruby
lkba has joined #ruby
jan1337zZz is now known as jan1337z
jan1337z is now known as Jan
Jan is now known as Guest29640
aryaching has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
amacgregor_ has joined #ruby
camilasa_ has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
rickmasta has joined #ruby
filipe has joined #ruby
agjacome has quit [Quit: leaving]
ebouchut has joined #ruby
ebouchut has quit [Remote host closed the connection]
timonv has joined #ruby
fatmandown has left #ruby ["Leaving"]
kaspergrubbe has quit [Remote host closed the connection]
zathras has joined #ruby
thepreacher has joined #ruby
maveonair has joined #ruby
cj3kim has joined #ruby
varfoo has quit [Quit: Leaving]
ismlages has joined #ruby
moofish has joined #ruby
noname001 has joined #ruby
rickmasta has quit [Quit: Leaving...]
tvw has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
khushildep has joined #ruby
ebouchut has joined #ruby
JDHankle has joined #ruby
ebouchut has quit [Client Quit]
<andrein_>
Hi, I'm having some weird issues with a ruby script. I'm using RMagick to watermark some images. On my workstation it works fine, but on the server where it's supposed to be deployed the workers freeze at line 114. I've tried running the same snippet of code in irb on the server and it works as expected. Any ideas how to troubleshoot this further?
niceguyjames has quit [Quit: Computer has gone to sleep.]
ssvo has quit [Ping timeout: 248 seconds]
jleishman has joined #ruby
buzzybron has left #ruby [#ruby]
devoldmx has joined #ruby
S0da has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
tapioca_ has quit [Ping timeout: 246 seconds]
bronson_ has quit [Quit: bronson_]
Domon has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
Domon has joined #ruby
pranny has quit [Read error: Connection reset by peer]
pranny has joined #ruby
tapioca has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
lyanchih has quit [Ping timeout: 264 seconds]
swordsmanz_ has joined #ruby
whowantstolivef1 has quit [Read error: Connection reset by peer]
swordsmanz has quit [Ping timeout: 264 seconds]
swordsmanz_ is now known as swordsmanz
whowantstolivef1 has joined #ruby
endash has quit [Quit: endash]
yfeldblum has joined #ruby
Domon has quit [Ping timeout: 260 seconds]
thepreacher has quit [Quit: Leaving]
ebouchut has joined #ruby
hit is now known as cosmin
St_Marx has quit [Quit: Ex-Chat]
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
pweems has quit [Ping timeout: 240 seconds]
intuxicated has joined #ruby
JohnE has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
kevinykchan has joined #ruby
jaredlevitz has quit [Quit: Leaving.]
postmodern has joined #ruby
browndawg has quit [Quit: Leaving.]
Neomex has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
eregon has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
maz-dev has quit [Remote host closed the connection]
snovak has joined #ruby
eregon has joined #ruby
Neomex has quit [Quit: Neomex]
corehook has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
guiocavalcanti has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Remote host closed the connection]
foofoobar has joined #ruby
binaryplease has joined #ruby
ndrei has quit [Read error: Operation timed out]
mklappstuhl has joined #ruby
kalin has joined #ruby
kalin has left #ruby [#ruby]
<foofoobar>
Hi. Before I reinstalled my system, octopress worked without any problem. Now I get: You have already activated rake 10.0.4, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.
<foofoobar>
What can I do now? "bundle exec" gives me: bundle exec needs a command to execute
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
postmodern has quit [Quit: Leaving]
ebouchut has quit [Quit: This computer has gone to sleep]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest29640 is now known as jan1337zZz
vlad_starkov has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
Guest43753 has quit [Quit: Computer has gone to sleep.]
d45h has quit [Quit: d45h]
maveonair has quit [Ping timeout: 260 seconds]
dash_ has joined #ruby
kalin has joined #ruby
kalin has left #ruby [#ruby]
ssvo has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Wildhoney has quit [Quit: Wildhoney]
IceyEC has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
niceguyjames has joined #ruby
eightbitraptor has joined #ruby
hamed_r has quit [Ping timeout: 276 seconds]
Wildhoney has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
mlpinit has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
krz has quit [Quit: krz]
freeayu__ has quit [Remote host closed the connection]
<zendeavor>
give it a ruby command to execute
realDAB has quit [Quit: realDAB]
devoldmx3 has joined #ruby
shadoi1 has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
f3rsportas has joined #ruby
<f3rsportas>
All go to dbz-heroes.wu.lt
f3rsportas has quit [Killed (idoru (Spam is off topic on freenode.))]
devoldmx has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
aryaching has joined #ruby
RantriX has quit [Remote host closed the connection]
<Mon_Ouie>
Because those two cases happen less often than wanting to interpolate a string
alexs__ has joined #ruby
snovak has joined #ruby
<andrein_>
Hi, I've got a ruby daemon. What's the best way to print the number of iterations of its main loop every minute/hour?
<shevy>
chase it down with the holy inquisition!
zombiebit has quit [Remote host closed the connection]
<shevy>
perhaps run a separate Thread.new as proc ... and .call on it every n seconds where n is your delay?
s00pcan has quit [Remote host closed the connection]
<wuest>
andrein_: File#write seems logical? Really though, your question is a bit vague. If that sort of data was desired, a counter to track iterations over a time period and a Thread which slept for n time, printed the counter to your log, and reset the counter is the quick and dirty solution which comes to mind.
kaspergrubbe has quit [Remote host closed the connection]
jprovazn has joined #ruby
fgo has joined #ruby
catphish has joined #ruby
thebastl has joined #ruby
<catphish>
does ruby support poll()?
wallerdev has joined #ruby
<catphish>
i've read varying and conflicting reports about the dangers of select()
<catphish>
and i'm not entirely clear on how to proceed
jonathanwallace has quit [Ping timeout: 264 seconds]
filipe has quit [Ping timeout: 245 seconds]
aedorn has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
kvirani has joined #ruby
mansi has joined #ruby
sambao21 has joined #ruby
huoxito has joined #ruby
<lotherk>
haven't posted anything in this channel yet. I'm very new to ruby (not to programming, coming from perl, bash, etc). this shall be my first post: i f*cking start to love ruby. :)
brennanMKE has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
dknight has joined #ruby
baroquebobcat has joined #ruby
duggiefresh has joined #ruby
BrianJ has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
atyz has joined #ruby
optimusprimem has joined #ruby
MrZYX is now known as MrZYX|off
<catphish>
yes, ruby is pretty great
zathraz has quit [Ping timeout: 240 seconds]
<dknight>
how can I find out http version used by net http module ?
__maes_ has joined #ruby
_maes_ has joined #ruby
Dreamer3 has joined #ruby
echevemaster has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
lucazi has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
dangerousdave has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
ahg has joined #ruby
zodiak has joined #ruby
<arooni-mobile>
is there a better JSON parsing library than 'json' ? i'm getting a bunch of intermittant parsing errors
zodiak has quit [Read error: Connection reset by peer]
sayan has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
sambao21 has joined #ruby
mengu has joined #ruby
rhys__ has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
kpshek has quit []
blaxter has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
|PiP| has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
fgo has joined #ruby
camilasan has joined #ruby
tjad has joined #ruby
|PiP| has quit [Client Quit]
cookiemonsta has quit [Ping timeout: 264 seconds]
<pipecloud>
multijson
camilasan has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
camilasan has joined #ruby
wolcanus has joined #ruby
Lewix has joined #ruby
quazimodo has quit [Ping timeout: 248 seconds]
<waxjar>
oj is superfast
kpshek has joined #ruby
bluenemo has quit [Remote host closed the connection]
braoru has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 256 seconds]
fgo has quit [Ping timeout: 260 seconds]
poga has quit [Ping timeout: 264 seconds]
anonymuse has joined #ruby
kek has quit [Quit: kek]
vlad_starkov has joined #ruby
ezra has joined #ruby
ezra is now known as Guest13305
cjs226 has joined #ruby
Guest13305 is now known as ezra
ezra has quit [Changing host]
ezra has joined #ruby
pipework has joined #ruby
shaunbaker has joined #ruby
sarkis has joined #ruby
shredding has joined #ruby
aedorn has joined #ruby
lucazi has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
lyoko1 has joined #ruby
mary5030 has joined #ruby
axl_ has joined #ruby
giarc has left #ruby [#ruby]
<lyoko1>
Hi, how can I turn an array such as [[a, b, c], [d, e, f], ...] into [[a, (b + c)], [d, (e + f)], ...] ?
brennanMKE has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
bklane has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
mrsolo has joined #ruby
argentum has joined #ruby
siera08_ has joined #ruby
goganchic has joined #ruby
mary5030 has joined #ruby
persand has quit [Quit: persand]
siera08_ has quit [Client Quit]
<kaspergrubbe>
lyoko1: Try this, not the most nice code, but you get the idea
<kaspergrubbe>
a = [ [1,2,3], [4,5,6] ]
<kaspergrubbe>
a.map! { |a| [a[0], a[1]+a[2] ] }
<kaspergrubbe>
=> [[1, 5], [4, 11]]
siera08 has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
<andrein_>
wuest: sorry for the late reply, went to a meeting. I was asking about a way to compute the number of iterations. I also thought about the quick and dirty method using a thread and a counter. I guess that's the way to go :)
brennanMKE has joined #ruby
[Goodoog] has quit [Quit: probabile che mi riconnetta fra qualche secondo]
Davey has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
cjs226 has quit [Quit: cjs226]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
YaNakilon has joined #ruby
sjltaylor has joined #ruby
razi has quit [Ping timeout: 260 seconds]
<sjltaylor>
what is the error?
shredding has quit [Quit: shredding]
fsck3r has joined #ruby
yogsototh has joined #ruby
yogsototh has left #ruby [#ruby]
kobain has joined #ruby
Guest5471 is now known as jan1337zZz
fgo has joined #ruby
newUser1234 has quit [Remote host closed the connection]
dhruvasagar has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
Vicmaste_ has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
soba has quit [Ping timeout: 264 seconds]
ewnd9 has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
jlast has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jonathanwallace has quit [Read error: Operation timed out]
Coolhand has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
say_ has joined #ruby
sporkbomb has joined #ruby
monkegjinni has joined #ruby
Coolhand has joined #ruby
snath has joined #ruby
Jake232 has joined #ruby
Zai00 has joined #ruby
tvw has quit []
zoee has quit [Quit: zoee]
quazimodo has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1234 has joined #ruby
cj3kim has joined #ruby
p0hl has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
fgo has quit [Ping timeout: 246 seconds]
shoumikhin has joined #ruby
p0hl has quit [Read error: Connection reset by peer]
caju has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
camilasa_ has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
nari has quit [Ping timeout: 276 seconds]
aeontech has quit [Quit: aeontech]
newUser1234 has joined #ruby
Voodoofish430 has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
zorg24 has joined #ruby
jocellyn has joined #ruby
kpshek has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Quit: duggiefresh]
tyfighter has joined #ruby
dodosan has joined #ruby
Xeago has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
tjad has quit [Ping timeout: 240 seconds]
allanm has quit [Ping timeout: 264 seconds]
ehaliewicz has joined #ruby
burlyscudd has quit [Quit: Leaving.]
aaronmcadam has quit [Ping timeout: 240 seconds]
<mostlybadfly>
Hi guys a question if I may
allanm has joined #ruby
danbeck has joined #ruby
<shevy>
lol
<shevy>
you need to ask the question
adambeynon has joined #ruby
<mostlybadfly>
Why is it that during a loop the variable keeps decreasing? In the statement while var > 0
<mostlybadfly>
I know that it's a loop
shaunbaker has joined #ruby
<mostlybadfly>
But why is it if I do puts var.to_s + (var -= 1).to_s
<mostlybadfly>
It remembers to decrease var by one in the next loop?
mklappst_ has quit [Remote host closed the connection]
goganchi1 has joined #ruby
36DABBX4Z has quit [Remote host closed the connection]
haxrbyte has joined #ruby
kaspergrubbe has joined #ruby
snath has quit [Read error: Operation timed out]
zeade has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
goganchic has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
burlyscudd has joined #ruby
Ripp__ has quit [Quit: Ripp__]
<mostlybadfly>
Oh crap that's wrong aorry
<mostlybadfly>
Sorry
atyz has joined #ruby
danbeck has quit [Quit: danbeck]
thebastl has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 248 seconds]
atyz has quit [Read error: Connection reset by peer]
helvete has joined #ruby
catphish has quit [Quit: Leaving]
ssvo has quit [Quit: Lost terminal]
maxmanders has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
sleetdrop has joined #ruby
<mostlybadfly>
shevy: OK sorry. var = 10; while var > 1; puts var.to_s + ' minus 1 is ' + (var -= 1).to_s; end
<shevy>
I hate while loops
danbeck_ has joined #ruby
<mostlybadfly>
How does it know to start the next line with 9? If it still calls var
ghr has quit [Quit: Computer has gone to sleep.]
<mostlybadfly>
Is there a better way to write that?
<shevy>
var = 10; loop { puts var.to_s+' minus 1 is '+(var -=1).to_s; break if var == 0 }
mansi has quit [Remote host closed the connection]
<mostlybadfly>
Oh cool
senayar has joined #ruby
noname001 has quit [Ping timeout: 276 seconds]
<mostlybadfly>
I don't know if I'm there yet just based on what I've seen so far but I totally understand it
mansi has joined #ruby
lucazi has quit []
danbeck_ has quit [Client Quit]
<shevy>
here with formatting
<shevy>
var = 10; loop { printf '%3d'+' minus 1 is '+(var -=1).to_s+"\n", var+1; break if var == 0 }
<shevy>
or you could use "#{var}"
shaunbaker has quit [Remote host closed the connection]
<havenwood>
10.downto(1) { |n| puts "#{n} minus 1 is #{n - 1}" }
lucazi has joined #ruby
<shevy>
mostlybadfly (var -= 1) is the same as: var = var - 1
blaxter has quit [Quit: foo]
<mostlybadfly>
Ah ok
<mostlybadfly>
Makes sense
<shevy>
so you do the down-counting in your own code already
<mostlybadfly>
I was trying to write 99 bottles of beer song lol
<shevy>
then why start at 10!!!
senayar_ has quit [Ping timeout: 245 seconds]
<digital-ghost>
lol
kaldrenon has quit [Remote host closed the connection]
<digital-ghost>
10 bottles is < 99 bottles for sure.
Guest78657 has quit [Remote host closed the connection]
<mostlybadfly>
Lol I know I just wanted to give an example
<mostlybadfly>
Mine was super long
<digital-ghost>
Are you reading Learning Rails by .. oh whats his face.
mansi has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 246 seconds]
<digital-ghost>
I read some book a month or two ago where 99 bottles was one of the first examples.
<digital-ghost>
Had to re-write it like 5 times over. Got more and more complex, but less code each time.
fridim__ has quit [Read error: Connection reset by peer]
dodosan has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
tjad has joined #ruby
Xeago has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
<mostlybadfly>
var 99; loop{puts var.to_s + ' bottles of beer on the wall, ' + var.to_s + ' bottles of beer. Take 1 down, pass it around, ' (var -= 1).to_s + ' bottles of beer on the wall.'; break if var == 0
obs has quit [Quit: Konversation terminated!]
brennanMKE has joined #ruby
scarolan has quit [Ping timeout: 245 seconds]
srji_ has joined #ruby
orionstein_away is now known as orionstein
caju has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 240 seconds]
srji has quit [Ping timeout: 264 seconds]
ExxKA has quit [Quit: Leaving]
poga has joined #ruby
Megtastique has quit [Quit: Megtastique]
tvw has joined #ruby
leonardorb has joined #ruby
leonardorb has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
leonardorb has joined #ruby
lockweel has quit [Ping timeout: 264 seconds]
newUser1234 has quit [Remote host closed the connection]
<mfilipe>
is there some plugin for Sublime Text para o ruby-debug?
<mfilipe>
sorry
<mfilipe>
ahahaha
<banisterfiend>
mfilipe mixing up languages? :P
<mfilipe>
is there any plugin for Sublime Text for ruby-debug?
<mfilipe>
banisterfiend: yep! hahahah... I mixed english and portuguese
<banisterfiend>
mfilipe hehe, cool
<apeiros>
portlish or enguese?
rupee has joined #ruby
iliketur_ has joined #ruby
ffio has joined #ruby
vlad_starkov has joined #ruby
Krajsnick has joined #ruby
Senjai has joined #ruby
Krajsnick has quit [Remote host closed the connection]
<digital-ghost>
Anyone have any experience with jira-ruby gem?
hasrb has joined #ruby
khushildep has quit [Quit: khushildep]
|PiP| has quit [Quit: |PiP|]
kaldrenon has joined #ruby
Wildhoney has quit [Quit: Wildhoney]
cj3kim has joined #ruby
spider-mario has joined #ruby
duggiefresh has joined #ruby
browndawg has joined #ruby
bronson_ has joined #ruby
i_s has joined #ruby
duggiefresh is now known as Guest93803
Monie has joined #ruby
nfisher has joined #ruby
jocellyn has quit [Ping timeout: 240 seconds]
i_s has quit [Remote host closed the connection]
twoism has joined #ruby
troessner has quit [Quit: Leaving]
infecto has quit [Quit: Leaving.]
tbjers has joined #ruby
tyfighter has quit [Ping timeout: 256 seconds]
cj3kim has quit [Ping timeout: 264 seconds]
echevemaster has quit [Ping timeout: 248 seconds]
Warlock_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
tkuchiki has joined #ruby
interactionjaxsn has joined #ruby
jocellyn has joined #ruby
newUser1234 has joined #ruby
brianpWins has quit [Quit: brianpWins]
aganov has quit [Quit: aganov]
vlad_starkov has quit [Read error: Connection reset by peer]
sarkis has quit [Quit: leaving]
GeekOnCoffee has quit [Ping timeout: 276 seconds]
gyre007 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tyfighter has joined #ruby
tyfighter has quit [Client Quit]
i_s has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Quit: Leaving.]
randomautomator has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
timonv has joined #ruby
goganchi1 has quit [Quit: leaving]
mbreedlove has joined #ruby
fbernier has joined #ruby
goganchic has joined #ruby
daniel_hinojosa has joined #ruby
goganchic has quit [Client Quit]
tbjers has quit [Quit: tbjers]
tylersmith has joined #ruby
c0rn has quit [Client Quit]
ebobby has joined #ruby
nfisher has quit [Quit: Good-bye all!]
c0rn has joined #ruby
syed_ has quit [Ping timeout: 264 seconds]
fsck3r has joined #ruby
c0rn has quit [Client Quit]
r4nd0m1 has joined #ruby
altamic has joined #ruby
timonv has quit [Remote host closed the connection]
Squarepy has joined #ruby
altamic has left #ruby [#ruby]
cody-- has joined #ruby
maxmanders has joined #ruby
Targen has joined #ruby
poga has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorg24 has quit [Ping timeout: 246 seconds]
poga has joined #ruby
c0rn has joined #ruby
beneggett has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
beneggett has quit [Client Quit]
Megtastique has joined #ruby
Xeago has joined #ruby
relix has joined #ruby
devoldmx3 has joined #ruby
elaptics is now known as elaptics`away
sleetdrop has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has quit [Read error: Operation timed out]
marr has quit [Ping timeout: 260 seconds]
wolcanus has quit [Remote host closed the connection]
BizarreCake has joined #ruby
wolcanus has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
noname-shaggy has left #ruby [#ruby]
fsck3r has quit [Read error: Connection reset by peer]
fsck3r has joined #ruby
kidoz has joined #ruby
b00stfr3ak has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
kirun has joined #ruby
wolcanus has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
BRMatt has quit [Ping timeout: 248 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby
maxmanders has joined #ruby
Waka_Flocka_Flam has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
adeponte has joined #ruby
apok has joined #ruby
tbjers has joined #ruby
Astralum has joined #ruby
Aloysius1 has joined #ruby
lyanchih has quit [Quit: lyanchih]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
_adeponte has joined #ruby
timonv has joined #ruby
mansi has joined #ruby
hiroyuki has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
XenoWolf has quit [Ping timeout: 276 seconds]
|PiP| has joined #ruby
awwaiid has quit [Ping timeout: 268 seconds]
carraroj has joined #ruby
blackmesa has joined #ruby
Dreamer3 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
shnee has joined #ruby
nowthatsamatt has joined #ruby
dangerousdave has quit [Quit: Leaving...]
endash has joined #ruby
seggy has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
threeturn has joined #ruby
Megtastique has quit [Quit: Megtastique]
<shevy>
ruby rocks the world
brennanMKE has quit [Read error: Connection reset by peer]
Guest65923 is now known as yebyen
brennanMKE has joined #ruby
mwmnj has joined #ruby
<yebyen>
anyone use the sequel gem to join a table to itself?
newUser1234 has quit [Remote host closed the connection]
fsck3r has quit [Quit: Leaving...]
rezzack has joined #ruby
syed_ has joined #ruby
Diranged has joined #ruby
brianpWins has joined #ruby
chrisja has quit [Quit: leaving]
<Diranged>
Im leveraging a ruby gem from someone else, and I really want to be able to access the @root instance variable in each object thati create.. ie my_obj = NewObject() … then puts my_obj.root
<Diranged>
that syntax obviously doesnt work.. but i was wondering if theres a way to inspect the object and get the value of an instance variable inside a ruby object?
<Aloysius1>
Style question: I have a line of code "if !go? | (!record = next_record)" where I want to simultaneous set a local variable to the result of a function (next_record) and test to see if it's nil.
<pietr0>
Diranged: you can use #instance_variable_get
<Aloysius1>
I could also do this as "if !go? | begin !record = next_record end" but that doesn't really seem better.
<Aloysius1>
"if !go? | !{record=next_record}" might read better but syntactically, the curly braces would be interpreted as a hash, I think.
devoldmx3 has quit [Read error: Connection reset by peer]
<Xeago>
Aloysius1: neither seem good, but I would go with parentheses
<Aloysius1>
any thoughts?
Megtastique has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Xeago>
Aloysius1: can't you apply demorgan laws and use unless?
jefflyne has joined #ruby
<Xeago>
unless go && (record=next_record)
Monie has joined #ruby
<apeiros>
IMO don't do side-effect in &&
<apeiros>
use normal `if` for side effect
<Aloysius1>
Yeah--that's probably better but still has the side-effect--right.
<Xeago>
apeiros: how is it different with if/unless?
<apeiros>
it's less surprising
Zai00 has quit [Quit: Zai00]
sambao21 has joined #ruby
<apeiros>
it's generally considered a smell when a condition contains side-effects
<Aloysius1>
I mean, I could do: "record = next_record; unless go && record"
c0rn has quit [Quit: Computer has gone to sleep.]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
<Xeago>
return unless end_loop && (record=next); more code
<Xeago>
still ugly yes
<Xeago>
but from what he said he was looking for something in 1 line
<shevy>
ack
<Xeago>
it would be nice to have more context when answering these questions Aloysius1
<Aloysius1>
Well, it doesn't HAVE to be one line...but if it can be done in one line elegantly, that'd be good.
bookmage has joined #ruby
jlebrech has joined #ruby
tommyvyo_ has joined #ruby
<Aloysius1>
Xeago: I'm popping a record off a queue, but the queue is being populated in a different thread.
bnj has left #ruby [#ruby]
wmoxam has joined #ruby
<Aloysius1>
The "go" and "next_record" routines both synchronize with the thread that's pulling records.
jlebrech has quit [Client Quit]
syed_ has quit [Ping timeout: 260 seconds]
thillux has joined #ruby
tommyvyo has quit [Ping timeout: 256 seconds]
<Aloysius1>
If "go" is false, that means there are more records to be read before processing can begin.
end_guy has quit [Ping timeout: 240 seconds]
<Aloysius1>
If next_record is nil, that means there aren't any records left in the queue.
tbjers has quit [Quit: tbjers]
carraroj has quit [Read error: Operation timed out]
jlebrech has joined #ruby
<Xeago>
I don't really understand go
axeman- has quit [Remote host closed the connection]
<Xeago>
you wait until you have enough records in your queue to start processing?
altamic has joined #ruby
<Xeago>
I would put this logic in your queue
<Xeago>
so you can just call record=queue.pop()
<Xeago>
which waits, synchronizes and everything
scarolan has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
end_guy has joined #ruby
threeturn has quit [Quit: threeturn]
cj3kim has joined #ruby
devoldmx has joined #ruby
intuxicated has joined #ruby
alvaro_o has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<Aloysius1>
I can't start processing until I have the earliest record, and the server call gives the most recent.
<Aloysius1>
So I make consecutive calls until I get the oldest record I haven't processed yet.
altamic has quit [Read error: Connection reset by peer]
awwaiid has joined #ruby
XenoWolf has joined #ruby
Ripp__ has joined #ruby
Diranged has left #ruby [#ruby]
<Aloysius1>
(Starting with the newest and going backwards creates a whole mess of problems.)
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
<Aloysius1>
I didn't know queue was thread-safe, though. It wouldn't change the above code much, tho'.
altamic has left #ruby [#ruby]
ebobby has left #ruby [#ruby]
<Aloysius1>
"if !go | (record = @queue.shift())"
monkegjinni has joined #ruby
threeturn has joined #ruby
<Aloysius1>
Wait, it's not a queue, sorry. It's just an array. :-P
syed_ has joined #ruby
<Aloysius1>
I'm using "queue" generically, rather than referring to a particular class.
ggordan has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
r0bglees0n has quit [Ping timeout: 256 seconds]
huoxito has quit [Quit: Leaving]
alex__c2022 has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
wolcanus has joined #ruby
threeturn has quit [Client Quit]
devoldmx has joined #ruby
burlyscudd1 has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
thillux has quit [Read error: Operation timed out]
greenysan1 has joined #ruby
wmoxam has joined #ruby
dodosan has quit [Remote host closed the connection]
greenysan has quit [Read error: Operation timed out]
Megtastique has quit [Quit: Megtastique]
carraroj has joined #ruby
Megtastique has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
huoxito has joined #ruby
<Aloysius1>
I'm not sure I get why side-effects are okay in "if"s but not "unless"es (setting aside my particular situation).
DanKnox_away is now known as DanKnox
Ripp__ has quit [Quit: Ripp__]
giarc has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
razi has quit [Ping timeout: 276 seconds]
greenysan1 has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
hamakn_ has quit [Remote host closed the connection]
hamakn has joined #ruby
tommyvyo_ is now known as tommyvyo
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
brianpWins has quit [Quit: brianpWins]
maxmanders has joined #ruby
spider-mario has quit [Ping timeout: 245 seconds]
endash has quit [Quit: endash]
starfox21 has quit [Quit: starfox21]
hamakn has quit [Ping timeout: 245 seconds]
aeontech has joined #ruby
Notte has joined #ruby
brianpWins has joined #ruby
helvete has quit [Quit: Leaving...]
Ripp__ has joined #ruby
kpshek has joined #ruby
|PiP|_ has joined #ruby
Ripp__ has quit [Client Quit]
ixti has quit [Ping timeout: 245 seconds]
thillux has joined #ruby
|PiP| has quit [Ping timeout: 240 seconds]
atno has quit [Remote host closed the connection]
kidoz has quit [Quit: Ухожу я от вас]
cj3kim has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
syed_ has quit [Ping timeout: 240 seconds]
jbpros has joined #ruby
|PiP|_ has quit [Ping timeout: 264 seconds]
moted has quit [Quit: moted]
shnee has quit [Remote host closed the connection]
moted has joined #ruby
syed_ has joined #ruby
tommyvyo has joined #ruby
sparq_ has joined #ruby
pweems has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
senayar has joined #ruby
thillux has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
threeturn has joined #ruby
s2013 has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
devinus has joined #ruby
<devinus>
is there a way to override a global function within the context of a module?
<devinus>
including all functions the module calls out to?
dhruvasagar has joined #ruby
ixti has joined #ruby
arooni-mobile has quit [Ping timeout: 264 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ColKurtz has joined #ruby
Ripp__ has joined #ruby
<apeiros>
method
<apeiros>
there are no real global methods, they seem to be, but they're just inherited
<apeiros>
hence: yes, you can. just override it.
sambao21 has quit [Quit: Computer has gone to sleep.]
dodosan has joined #ruby
rickmasta has joined #ruby
sparq_ has quit [Ping timeout: 276 seconds]
senayar has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
Neomex has joined #ruby
labrat__ has joined #ruby
ArchBeOS has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
mansi has joined #ruby
<devinus>
apeiros: i see. where are all global methods then?
Neomex has quit [Client Quit]
<apeiros>
in Kernel as module_function
<devinus>
Kernel?
<devinus>
i see
<devinus>
thank you
<apeiros>
so you can call them as Kernel.foo and just foo
hackingoff has quit [Ping timeout: 264 seconds]
Thav has left #ruby [#ruby]
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
Megtastique has quit [Quit: Megtastique]
kaspergrubbe has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
<shevy>
apeiros, do you write mostly rails-related ruby code these days or do you still have active projects where you use ruby, but which have little to do with rails / your job?
ebouchut has joined #ruby
<apeiros>
shevy: I barely write code which isn't job related atm
mneorr_ has joined #ruby
<apeiros>
my last project is iso-iban to generate iban account numbers
geekbri has quit [Remote host closed the connection]
<apeiros>
it's released as a gem and available on github
devoldmx has joined #ruby
geekbri has joined #ruby
timonv has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
zavier has quit [Quit: WeeChat 0.4.0]
threeturn has quit [Quit: threeturn]
zavier has joined #ruby
pweems has quit [Ping timeout: 248 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
carraroj has quit [Ping timeout: 264 seconds]
cortexman1 has joined #ruby
devoldmx3 has joined #ruby
cortexman1 has quit [Max SendQ exceeded]
cortexman1 has joined #ruby
timonv has quit [Remote host closed the connection]
mary5030 has joined #ruby
sambao21 has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
cortexman has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
sambao21 has quit [Client Quit]
workmad3 has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
Coolhand has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
devoldmx has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 264 seconds]
gildo has quit [Remote host closed the connection]
newUser1234 has joined #ruby
wallerdev has joined #ruby
XenoWolf has quit [Ping timeout: 248 seconds]
marr has joined #ruby
awwaiid has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
Xeago has joined #ruby
jprovazn has quit [Quit: Odcházím]
Coolhand has joined #ruby
r0bglees0n has joined #ruby
Fire-Dragon-DoL has joined #ruby
geekbri has quit [Remote host closed the connection]
ebouchut has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
awwaiid has joined #ruby
sambao21 has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
<devinus>
is there a way to override a Kernel method for everything that happens within a module?
<eka>
Perl would be Voodoo - An incomprehensible series of arcane incantations that involve the blood of goats and permanently corrupt your soul. Often used when your boss requires you to do an urgent task at 21:00 on friday night.
burlyscudd1 has quit [Quit: Leaving.]
Coolhand has quit [Read error: Connection reset by peer]
mark_locklear has quit [Quit: Leaving]
XenoWolf has joined #ruby
<shevy>
eka in 1995 :P
ratanasv has joined #ruby
<apeiros>
devinus: as said, override the method. as of ruby 2.0, refinements would also be an option.
Es0teric has joined #ruby
ratanasv has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tvw has quit [Ping timeout: 256 seconds]
ratanasv has joined #ruby
jleishman has quit [Remote host closed the connection]
ratanasv has quit [Remote host closed the connection]
ratanasv has joined #ruby
rickmasta has quit [Quit: Leaving...]
mary5030 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
mary5030 has joined #ruby
ratanasv has quit [Remote host closed the connection]
maz-dev has quit [Remote host closed the connection]
ratanasv has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
maz-dev has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Notte has quit [Write error: Broken pipe]
ntus1017 has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
axeman- has joined #ruby
Ripp__ has quit [Quit: Ripp__]
hamakn has joined #ruby
brbcoding has quit [Ping timeout: 245 seconds]
_maes_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
JDHankle has quit [Remote host closed the connection]
Krajsnick has joined #ruby
Squarepy has quit [Quit: Leaving]
shoumikhin has quit [Ping timeout: 248 seconds]
iliketur_ has quit [Quit: zzzzz…..]
leonardorb has joined #ruby
allsystemsarego has quit [Quit: Leaving]
dv_ has quit [Read error: Operation timed out]
Tuxist has joined #ruby
ravster has joined #ruby
geggam has quit [Remote host closed the connection]
terinjokes has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
dv_ has joined #ruby
<havenwood>
And as of 2.1 it wont whine at you when you use refinements. :)
rickmasta has joined #ruby
Spami has joined #ruby
<terinjokes>
i'm using Ruby 2.0.0 and RubyGems 2.0.3 on Ubuntu. For whatever reason, if I install something with gem it gets a binstub of /usr/local/bin/ruby1.8
<terinjokes>
ruby1.8 is not installed on this system
<terinjokes>
I'm using gems installed alongside Ruby 2.0.0-p247
carraroj has joined #ruby
geggam has joined #ruby
srji_ has quit [Quit: leaving]
guiocavalcanti has quit [Read error: No route to host]
guiocavalcanti has joined #ruby
arooni-mobile has joined #ruby
dodosan has quit [Remote host closed the connection]
wargasm has joined #ruby
akells``_ has joined #ruby
<havenwood>
terinjokes: Mmm debian... what do you get for: update-alternatives --list ruby
<shevy>
why do they install into /usr/local
akells`` has quit [Read error: Connection reset by peer]
<shevy>
that is a violation of the FHS
<terinjokes>
update-alternatives: error: no alternatives for ruby.
<havenwood>
shevy: It is a remnant it appears of where debian puts system Ruby. Why it is happening, dunno.
<shevy>
yeah
<shevy>
terinjokes, you must have had another ruby before
<terinjokes>
which -a bundle; # /home/terin/.gem/ruby/2.0.0/bin/bundle and /usr/local/bin/bundle
<terinjokes>
shevy: this is a new VM
sporkbomb has joined #ruby
<havenwood>
terinjokes: Ah, so its listing the location where chruby properly installed the gem, and then another false-positive relating to system Ruby location.
musl has quit [Quit: WeeChat 0.4.1]
<havenwood>
terinjokes: The `bundle` you're actually using is in the proper location, right?: command -v bundle
<terinjokes>
havenwood: yes, even if I call the chruby/ruby-install version, i still get the error
solrize_ has joined #ruby
hasrb has quit [Remote host closed the connection]
JadedEvan has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
iliketur_ has joined #ruby
<terinjokes>
ok, great news
devoldmx has joined #ruby
<terinjokes>
i axed ~/.gem/ and reinstalled and it's happy now
<havenwood>
terinjokes: w00t
<eka>
"did you try to turn it off and on again"
<havenwood>
eka: hehe
<terinjokes>
i have no idea what was misconfigured in there, or how it got that way
<terinjokes>
eka: no, but uninstalled and reinstalled bundler and ruby several tiems
<havenwood>
terinjokes: Good question, that is the first I've heard of that particular one.
<eka>
terinjokes: that's the problem though…
<eka>
:)
<terinjokes>
havenwood: there was no .gem when i started, and my .gemrc doesn't mess with any paths or anything
<zacts>
they have a few ruby tutorials, so I thought I would ask here..
sporkbomb has quit [Ping timeout: 246 seconds]
musl has joined #ruby
<havenwood>
zacts: Yeah, great stuff. A similar thing for (mostly) just Ruby is RubyTapas.
i_s has joined #ruby
pweems has joined #ruby
newUser1234 has joined #ruby
aeontech has joined #ruby
jbpros has joined #ruby
terinjokes has left #ruby [#ruby]
ebouchut has quit [Client Quit]
GeissT has quit [Read error: Connection reset by peer]
mupkoo has quit [Remote host closed the connection]
cortexman has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Emiils has joined #ruby
hasrb has joined #ruby
cortexman1 has quit [Ping timeout: 245 seconds]
<apeiros>
axisys: I don't think that's proper ERB
vlad_starkov has joined #ruby
<apeiros>
axisys: it should be Hello <%= user %>
newUser1234 has quit [Remote host closed the connection]
<Eiam>
banisterfiend: what was that alternative to pry-nav yo mentioned
<apeiros>
pry-debugger ?
<Eiam>
no
<Eiam>
it was like..
<Eiam>
some 5 letter word
casheew has quit [Quit: Lost terminal]
<banisterfiend>
Eiam what ruby version are you on?
<Eiam>
2
<Eiam>
p247
<banisterfiend>
Eiam pry-byebug
<Eiam>
byebug!
<Eiam>
okay so pry-byebug vs pry-debugger
<Eiam>
whats the deal?
blackmesa has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<existensil>
byebug is debugging for ruby2 it looks like
<existensil>
looks cool. THIS is why I idle here.
sambao21 has joined #ruby
lukec has joined #ruby
|PiP| has joined #ruby
arooni-mobile has joined #ruby
kpshek has joined #ruby
akells`` has quit [Remote host closed the connection]
yfeldblum has joined #ruby
dr_ick has quit [Quit: Ex-Chat]
* apeiros
wonders too about pry-nav vs. pry-debugger vs. pry-byebug
caveat- has quit [Ping timeout: 245 seconds]
* apeiros
pokes banisterfiend
Spami has quit [Quit: This computer has gone to sleep]
<banisterfiend>
apeiros first, i didn't create them ;) they're 3rd party plugins…but the relationship is this
<apeiros>
SO WHAT! YOU'RE MR PRY!!!!!!1!1!! :-D
anonymuse has quit [Remote host closed the connection]
bronson_ has joined #ruby
<banisterfiend>
pry-nav is pure ruby, it uses set_trace_func, so as a result is a little slow (and i think has a couple of bugs related to step vs next)
defaultro has left #ruby [#ruby]
caveat- has joined #ruby
anonymuse has joined #ruby
<banisterfiend>
apeiros pry-debugger is built on top of 'debugger' which works great for 1.9.* but due to changes in ruby 2.0, it also has some occasional weird behaviour related to step vs next
<banisterfiend>
apeiros pry-byebug is ruby 2.0 only and fixes the step/next issue (it makes use of new 2.0 debugging APIs)
<apeiros>
aha!
<apeiros>
thanks for the explanation
<banisterfiend>
pry-byebug is built on top of the byebug 2.0 debugger
<zacts>
I'm still at a newbie level of ruby, but eventually want to check those out
<banisterfiend>
apeiros i should probably sit down sometime and make the whole thing less complicated and weird (like merging them all into a single gem with different code paths)
<zacts>
I learn really well with videos
<apeiros>
banisterfiend: or poke them to document that :)
Guest00000 has joined #ruby
<Guest00000>
hello
<apeiros>
I mean it's the same 3 lines in all 3 gems' Readme
sailias has quit [Quit: Leaving.]
<existensil>
zacts: pry is a fantastic replacement for irb, the ruby console, which you'll probably use a ton while learning
andikr has quit [Remote host closed the connection]
<Guest00000>
im running a geminabox gem source and im wondering if i can use names for my gems that collide with gems on rubygems which i am not going to use
<Guest00000>
all the simple names are taken, basically
<Guest00000>
can i shadow them somehow
<existensil>
hahaha. all the simple names are not taken
<apeiros>
Guest00000: probably not a good idea
Coolhand has joined #ruby
<apeiros>
even if possible
ixti has joined #ruby
<Guest00000>
hmm.
<apeiros>
just use a prefix
<existensil>
yes, you can. in your Gemfile just do something like "gem_name", git: "https://your.repo/"
<Guest00000>
ok
<apeiros>
guest0000000000000-mygem
<existensil>
or something similar
<apeiros>
existensil: that's bundler, not rubygems
Spami has joined #ruby
hasrb has quit [Remote host closed the connection]
<existensil>
your right. still a good pitfall to be aware of if you are using bundler
<existensil>
*you're
<Guest00000>
im using two source lines in the Gemfile
burlyscudd has quit [Quit: Leaving.]
<Guest00000>
it just does not care about my gems if i name them the same as something on rubygems, regardless of the order i put them in
<existensil>
Guest00000: if your gem line points to the location of your gem (using :git or :path options) it should take precedence over rubygems after a bundle install
_honning_ has joined #ruby
<existensil>
does two source lines work? are you attempting to run your own private gem server?
<Guest00000>
i dont want to have to repeat the source over and over for each gem
<apeiros>
it's actually not really precedence as simply rubygems not being the instance dealing with it
rickmasta has joined #ruby
<apeiros>
(rubygems has no concept of gems on github e.g.)
<Guest00000>
existensil: yes
<apeiros>
Guest00000: Gemfile is ruby code. use a variable.
<Guest00000>
x = foo
<existensil>
Guest00000: so abstract it. you can def a function right in your Gemfile that makes `my_gem "gem_name"` add the path
<Guest00000>
still repeating x over and over
<apeiros>
Guest00000: oh my, cry me a river
<apeiros>
you're repeating `gem` all over too.
v0n has quit [Ping timeout: 245 seconds]
<existensil>
Guest00000: if you have your own gemserver you could also just use that as a source and copy the specific versions of the gems you plan to use there, whether yours or not
<apeiros>
srsly, the time you take here to whine over it is about 100x more than it'd have taken you to simply copy & paste the source.
rbento has joined #ruby
<Guest00000>
yeah i can homebrew whatever just trying to find something more conventional
<Guest00000>
apeiros: im just going to name them something else and not do that
<existensil>
Guest00000: then call the method `mg` and your "my gem" gem lines will actually be shorter than the regular ones!
<existensil>
how is that repeating?
IceyEC has quit [Quit: IceyEC]
<Guest00000>
its not repeating, but its less conventional
intuxicated has quit [Quit: Leaving]
axeman- has quit [Remote host closed the connection]
hasrb has joined #ruby
visof has quit [Ping timeout: 245 seconds]
<Guest00000>
existensil: good call on copying gems to the private server
<Guest00000>
and cool about the git command with block
mando has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
<Guest00000>
i think im going to switch to that
<Guest00000>
its a lot easier to lock down a git repo than the geminabox app
|PiP| has quit [Quit: |PiP|]
jlast has quit [Ping timeout: 245 seconds]
yalue has quit [Quit: Leaving]
bronson_ has quit [Quit: bronson_]
|PiP| has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
Deele has quit [Ping timeout: 240 seconds]
aeontech has quit [Quit: aeontech]
kaldrenon has quit [Remote host closed the connection]
<mfilipe>
which string method can I use for replace a hash for another? for examplo: "Mon, 19 Aug 2013 18:07".method_to_replace({'Mon' => 'Seg', 'Wed' => 'Qua'})
<mfilipe>
or something like that
bronson_ has joined #ruby
newUser1234 has joined #ruby
burlyscudd has joined #ruby
<mfilipe>
examplo = example
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
newUser1234 has quit [Read error: No route to host]
fyz1x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eiam>
zacts: putting off incorporating pry was one of my biggest ruby mistakes
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1234 has joined #ruby
<Eiam>
its made me almost not care about compiled languages and static analyzers
<Eiam>
almost!
IceyEC has joined #ruby
nanoxd has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
visof has joined #ruby
ratanasv has quit [Remote host closed the connection]
<banisterfiend>
Eiam show-source / show-doc / cd / ls ?
<Eiam>
I know pry does a lot more, like the source code browsing & so on, but I've already got my source code setup on a 27" display with a 4x grid thats laid out for all my source viewing
<Eiam>
banisterfiend: yeah.. I know its there.. just usually have that stuff already available elsewhere
Liquid-- has quit [Ping timeout: 264 seconds]
<Eiam>
I have 4 displays on my machine
zodiak has joined #ruby
<Eiam>
so displays have specific areas dedicated to showing information like that
<Eiam>
(outside of pry)
<banisterfiend>
4 displays?
<Eiam>
yeah
<banisterfiend>
like 4 monitors?
<Eiam>
yes
<banisterfiend>
the fuck..
<banisterfiend>
that's normal at your work place?
<Eiam>
well in my office I have 7 total displays
<Eiam>
4 on one machine, 3 on the other
<apeiros>
comfy
<banisterfiend>
i feel fancy having just 2 monitors :)
newUser1234 has quit [Remote host closed the connection]
<Eiam>
hm, I guess it depends on the person. I've always had quite a few displays in my tenure.. some people like to use laptops with extended displays, or just one external with a clamshell
<digital-ghost>
Most devs have 3 here
<Eiam>
I also rotate 2 of the displays
<banisterfiend>
Eiam how big is each monitor?
<argentum>
I cannot use more than one, myself
endash has joined #ruby
<argentum>
now, the one I use has to be at least 27-inch
<digital-ghost>
I use two, wish I had a third 8)
cmarques has joined #ruby
<Eiam>
banisterfiend: I have 2x27", 3x24" 2x20"
<MarcWeber>
Is anybody willing to run 'gem install -i /tmp/target ncursesw-sup' after creating /tmp/target and tell me whether you succeed? ruby near version 1.9.3-p429 would be perfect
<banisterfiend>
Eiam which editor do you use?
<Eiam>
the 24 & 20 are rotated
<Eiam>
banisterfiend: sublime text. its full screen on the 27" with a grid view (so 4 views into code)
<banisterfiend>
Yeah, i use emacs with split windows when i'm on a large monitor
tvw has joined #ruby
<banisterfiend>
on my baby 11" MBA just one window (at most 2) full-screen
<Eiam>
i do dev at home on my retina macbook pro
<Eiam>
and it drives me nuts =)
<Eiam>
I feel like I can't see anything
<Eiam>
lol
<banisterfiend>
but 11" is too small for Xcode dev, i need two monitors at least for that (or one enormous one)
snearch has joined #ruby
ratanasv has quit [Remote host closed the connection]
Guest93803 has quit [Quit: Guest93803]
<Eiam>
I should just embrace spaces or what not, but I guess I've always been big on multiple displays
duggiefresh_ has joined #ruby
vlad_starkov has joined #ruby
<banisterfiend>
osx full screen + multiple monitors is a joke
<banisterfiend>
i wish they would fix that
dankest has quit [Quit: Peace]
ratanasv has joined #ruby
<apeiros>
banisterfiend: afaik they do in 10.9
<apeiros>
finally menu bar on all monitors you wish
<banisterfiend>
cool
<Eiam>
yeah.. I'm on 10.9
failshell has quit [Ping timeout: 245 seconds]
<Eiam>
on both of the machines with all the displays
<Eiam>
but previously i had this setup on 10.8 and 10.7 and 10.6..
<Eiam>
was fine =p
<Eiam>
and 10.5 and 10.4 and 10.3
ratanasv has quit [Remote host closed the connection]
wolcanus_ has joined #ruby
<Eiam>
well back then i had 2, not 4 =)
s0ber_ has joined #ruby
ratanasv has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
<banisterfiend>
Eiam do you have really expensive apple monitors?
duggiefresh_ has quit [Client Quit]
fsck3r has joined #ruby
wolcanus_ has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 248 seconds]
s0ber_ is now known as s0ber
wolcanus has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
Emiils has joined #ruby
ldnunes has quit [Quit: Leaving]
jocellyn has quit [Quit: Leaving.]
nowthatsamatt has quit [Quit: nowthatsamatt]
<jrobeson>
Eiam, how did you integrate pry
<jrobeson>
i haven't really done anything with it other than install it and use the console yet
<Eiam>
jrobeson: put it in my gemfile
<Eiam>
binding.pry to debug in padrino
apeiros has quit [Remote host closed the connection]
<banisterfiend>
Eiam i want you to use pry-rescue
<banisterfiend>
and pry-stack_explorer
wolcanus_ has quit [Ping timeout: 248 seconds]
<Eiam>
stack explorer sounds good
apeiros has joined #ruby
MrThePlague has quit [Remote host closed the connection]
<Eiam>
oh yes i want this
<Eiam>
_
Wildhoney has joined #ruby
Emiils has quit [Ping timeout: 245 seconds]
<Eiam>
banisterfiend: I used to have two 30" apple cinema displays
<Eiam>
but i changed teams & left those behind
<Eiam>
banisterfiend: only two of them are "expensive 27" apple displays"
lyanchih has joined #ruby
blizzow has joined #ruby
Nisstyre has quit [Quit: Leaving]
mneorr_ has quit [Remote host closed the connection]
zorg24 has joined #ruby
ratanasv has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
wallerdev has quit [Quit: wallerdev]
codecop has quit [Remote host closed the connection]
jdenen has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
bronson_ has quit [Quit: bronson_]
<blizzow>
I have a ruby module (sinatra) which requires a gem called rack protection. The rack protection gem has a .rb file called frame_options.rb. frame_options.rb sets some headers to disallow iframe embedding of pages served by sinatra. How can I disable the headers or de-fang the frame_options.rb?
giarc has quit [Quit: Leaving.]
bronson_ has joined #ruby
<falten>
Eiam: using a macpro for >1 monitor?
<Eiam>
falten: nope, imac's =)
<falten>
ah
<Eiam>
with SSDs
newUser1234 has joined #ruby
ratanasv has joined #ruby
<falten>
I'm running external off my macbook atm, would love a second monitor to work natively :/
<Eiam>
banisterfiend: hmm how do I pickup the show-stack plugin?
bookmage has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
io_syl has quit [Quit: io_syl]
rafacv has joined #ruby
ratanasv has quit [Remote host closed the connection]
baordog has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
FastestMilkman has quit [Client Quit]
duggiefresh has joined #ruby
ratanasv-bot has joined #ruby
duggiefresh is now known as Guest13694
baroquebobcat has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Computer has gone to sleep.]
Wildhoney has joined #ruby
mary5030 has quit [Remote host closed the connection]
FastestMilkman has joined #ruby
rickmasta has quit [Quit: Leaving...]
Guest00000 has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
iliketur_ has joined #ruby
dominikh has quit [Remote host closed the connection]
ShapeShifter499 has quit [Remote host closed the connection]
dominikh has joined #ruby
OffTheRails has joined #ruby
newUser1234 has joined #ruby
randomdrake has joined #ruby
ratanasv-bot has quit [Remote host closed the connection]
aeontech has joined #ruby
_adeponte has quit [Remote host closed the connection]
ratanasv-bot has joined #ruby
adeponte has joined #ruby
Guest13694 has quit [Quit: Guest13694]
ratanasv-bot has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
<whowantstolivefo>
hi
newUser1234 has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
<randomdrake>
I've gone through and enjoyed TryRuby. The next tutorials in the CodeSchool line seem to be video-based, which I'm not a fan of. Can someone recommend a good next tutorial that is up to date and not video-based?
<eka>
randomdrake: you see the video then you take the test
<eka>
randomdrake: interactive test
ratanasv-bot has joined #ruby
arooni-mobile has quit [Read error: Connection reset by peer]
<randomdrake>
eka: right, I would rather not have to listen to a video so I can go at my own pace so I was curious if there were non-video suggestions.