mikepack has quit [Remote host closed the connection]
hasimo has quit [Remote host closed the connection]
beneggett has joined #ruby
alanp_ is now known as alanp
megha has joined #ruby
baba has quit [Read error: Operation timed out]
kpshek has joined #ruby
markisonfire has quit [Quit: markisonfire]
huoxito has joined #ruby
gommo has quit [Remote host closed the connection]
io_syl_ has joined #ruby
tylersmith has quit [Quit: tylersmith]
_veer has quit [Ping timeout: 258 seconds]
marr has quit [Ping timeout: 252 seconds]
hasimo has joined #ruby
adr has joined #ruby
<adr>
hi
rickmasta has quit [Read error: Connection reset by peer]
io_syl has quit [Ping timeout: 258 seconds]
io_syl_ is now known as io_syl
rickmasta has joined #ruby
sambao21 has joined #ruby
<adr>
I have an array of elements like this a=["pdf","doc","xls"] and I have the condition: if a.include? b How can I do it no case sensitive ?
cantonic has joined #ruby
chico_chicote has quit [Read error: Connection reset by peer]
<banisterfiend>
adr: if a.include?(b.downcase)
<banisterfiend>
and just ensure a is downcased
<banisterfiend>
which i assume isn't hard to do
<bordicon>
a.map(&:downcase)? (b.map(&:downcase)
<adr>
banisterfiend: you are right
eykosiou_ has quit [Read error: Connection timed out]
<adr>
good idea thankyou
m8 has quit [Quit: Sto andando via]
sambao21 has quit [Client Quit]
eykosioux has joined #ruby
sambao21 has joined #ruby
quazimodo has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
Virunga has quit []
ArchBeOS has quit [Ping timeout: 246 seconds]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
tvw has quit []
c0rn has quit [Ping timeout: 264 seconds]
idkazuma has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 255 seconds]
lewix has joined #ruby
pepper_chico has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
Zai00 has quit [Quit: Zai00]
beneggett has quit [Quit: Computer has gone to sleep.]
dEPy has quit []
lewix_ has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
adr has quit [Quit: leaving]
pepper_chico has joined #ruby
psyprus has joined #ruby
icole has quit [Remote host closed the connection]
lewix has quit [Ping timeout: 258 seconds]
zmanfx has joined #ruby
eykosioux has quit [Read error: Operation timed out]
c0rn has joined #ruby
phantasm66 has joined #ruby
eykosioux has joined #ruby
dougireton has joined #ruby
yshh has joined #ruby
ffranz has quit [Quit: Leaving]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
FullTiltProspect has joined #ruby
jonathanwallace has joined #ruby
MrZYX is now known as MrZYX|off
TheFuzzball has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
hbpoison has quit [Ping timeout: 250 seconds]
bubbajones has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
yshh has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
yshh has joined #ruby
trumpeter2003 has quit [Ping timeout: 272 seconds]
hiroyuki has quit [Read error: Connection reset by peer]
bubbajones has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
_nitti has quit [Ping timeout: 258 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jblack has quit [Quit: Lost terminal]
ahammond has quit [Quit: ahammond]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jerius has joined #ruby
mpfundstein has quit [Remote host closed the connection]
Myconix has quit [Quit: clearing cache... again]
aleph-nu_ has joined #ruby
Myconix has joined #ruby
`brendan has joined #ruby
bigoldrock has quit [Ping timeout: 240 seconds]
dougireton has quit [Quit: Leaving.]
adkron has quit [Ping timeout: 256 seconds]
yshh has quit [Ping timeout: 240 seconds]
subbyyy has joined #ruby
lewix_ has quit [Remote host closed the connection]
aleph-null has quit [Ping timeout: 260 seconds]
twoism has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
mmitchell has joined #ruby
sambao21 has joined #ruby
twoism has joined #ruby
hogeo has joined #ruby
pepper_chico has quit [Ping timeout: 264 seconds]
ephemerian has quit [Quit: Leaving.]
lewix has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
bubbajones has quit [Remote host closed the connection]
pepper_chico has joined #ruby
MehLaptop has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 250 seconds]
eykosioux has quit [Read error: Connection timed out]
nazty has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
mmitchell has quit [Ping timeout: 258 seconds]
Opettaja has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
Dwarf has quit [Ping timeout: 256 seconds]
<end_guy>
In my Ruby gem I have a constructor class that passes some objects that contain new file instances. When I use the constructor class inside my tests and console the file objects are fine. When I include my gem in some other application it's not finding the files. I've determined that it's because it's looking for the directory in the app's directory and not from the gem's directory. Is there a special place I can put these files so that they ar
c0rn has quit [Ping timeout: 252 seconds]
u- has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 252 seconds]
etcetera has quit [Read error: Operation timed out]
RubyHunter has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
daniel_- has joined #ruby
zeade has quit [Quit: Leaving.]
yshh has joined #ruby
<shevy>
thank you _maes_
bonhoeffer has quit [Quit: bonhoeffer]
<_maes_>
sure, np
hbpoison has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
bonhoeffer has joined #ruby
danman has joined #ruby
ctrombley has joined #ruby
angusiguess has joined #ruby
eykosioux has quit [Read error: Connection timed out]
becom33 has quit [Ping timeout: 260 seconds]
jcblitz has joined #ruby
daniel_- has quit [Ping timeout: 258 seconds]
jekotia has quit [Remote host closed the connection]
<end_guy>
In my Ruby gem I have a constructor class that passes some objects that contain new file instances. When I use the constructor class inside my tests and console the file objects are fine. When I include my gem in some other application it's not finding the files. I've determined that it's because it's looking for the directory in the app's directory and not from the gem's directory. Is there a special place I can put these files so that they ar
Mon_Ouie has quit [Ping timeout: 245 seconds]
eykosioux has joined #ruby
pdamer has joined #ruby
danman has quit [Client Quit]
<jcblitz>
Does anyone know of a Ruby library that can request a URL, execute the javascript, and return the DOM that would appear after the load event? Is that even possible?
ukd1 has quit [Ping timeout: 240 seconds]
<havenwood>
end_guy: Can you link to the code? Sounds like maybe you're adding relatively not absolutely to the $LOAD_PATH maybe?
FISH_SOUP has quit [Quit: Leaving]
MehLaptop has joined #ruby
<shevy>
jcblitz not sure... that would require some translation from javascript to ruby or?
<astegman>
end_guy sounds like you're working from the working directory
<astegman>
could try File.expand_path(relative_path, __FILE__)
<havenwood>
end_guy: TL;DR: __FILE__ != $0
<jcblitz>
shevy: I would assume the library would have a javascript engine like therubyracer and would execute scripts it found, then return the DOM.
<end_guy>
havenwood, astegman I believe you're both correct. In the gem i'm doing kml_files = Dir.glob("kml/new/Baldwin*.kml").sort. I then create some objects based on the naming rules of these files, but outside the gem these files are not being found and therefore not creating the objects.
DaltonUS has joined #ruby
DaltonUS has quit [Client Quit]
h4mz1d has joined #ruby
NightCreature is now known as SDr
SDr has quit [Changing host]
SDr has joined #ruby
<end_guy>
works perfectly if I'm in the gem's root directory
<end_guy>
doesn't work if I'm outside of it
<end_guy>
How do I tell my gem they're in the gem's root directory?
wmoxam has joined #ruby
taoru has joined #ruby
<astegman>
so something like Dir[File.expand_path("../kml/new/Baldwin*.kml", __FILE__)] may work
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
DrCode has quit [Remote host closed the connection]
taoru has quit [Remote host closed the connection]
jbueza has quit [Quit: Leaving.]
<astegman>
that will get the absolute path relative to your gem's source file
<end_guy>
havenwood: I think I understand. I've been reading the manuale
<V8Energy>
Hello, I am trying to insert current datetime (DateTime.now) into sqlite3 table. the field datatype is: date. how come it doesn't work? I get the error can't prepare DateTime (RuntimeError)
slainer68 has quit [Remote host closed the connection]
huoxito has quit [Ping timeout: 245 seconds]
<havenwood>
end_guy: The usual way of adding the absolute path of a directory in relation to the current directory to the load path is: $:.unshift(File.expand(File.dirname(__FILE__), '../or/whatever'))
Mattix has joined #ruby
cmyers has joined #ruby
Hanmac has joined #ruby
<end_guy>
$:.unshift <-- that looks funky.. haven't really seen that before
<shevy>
end_guy, $: is just an array
<havenwood>
end_guy: Of if you can rely on having Ruby 2.0.0: $:.unshift(__dir__)
<shevy>
.unshift is a method on Array
<havenwood>
end_guy: $: is same as $LOAD_PATH, and like shevy said, returns an array
<shevy>
the long name of $: is $LOAD_PATH
<cmyers>
dear rubyists: Using ruby 1.9.2, MRI, I have a script which forks off a "producer" thread and a "consumer" thread. It initializes a class (call it FooClient) which it passes to the consumer thread, and only that thread accesses it. THe FooClass instance has a member variable which is a standard Hash. Is there a way concurrency can bite me here, or as long as only that one thread accesses it, I am good?
<V8Energy>
Hellllp
<cmyers>
(I understand that if I up the number of consumer threads, I would *def* have a problem)
<end_guy>
havenwood and shevy: Thanks much. :-D
<end_guy>
havenwood: I wish I could rely on ruby 2.0.0 :)
<end_guy>
but legacy apps...
<havenwood>
end_guy: If you don't care if it is at the front of the load path in 2.0.0: $: << __dir__
pdamer has quit [Quit: pdamer]
chico_chicote has quit [Read error: Connection reset by peer]
<havenwood>
I don't always unshift. Sometimes nice to know if you are jumping in front of something of same name in $:, not hide it!
whowantstolivefo has quit [Ping timeout: 255 seconds]
<end_guy>
ya
becom33 has joined #ruby
<havenwood>
As ugly (arguably) as `$: << __dir__` is, heck of a lot better than `$:.unshift File.expand_path(File... ... ...)
brianpWins has quit [Quit: brianpWins]
mockra has quit [Remote host closed the connection]
<shevy>
I find both ugly
<havenwood>
shevy: Almost looks like hieroglyphs, $: is a bird, << is flying arrows, and __dir__ is the hunter: $: << __dir__
<shevy>
hehehehe
<havenwood>
Future anthropologists: "We believe the 'Rubyists' were a cult of the bird God, based on their extensive use of the $: hieroglyph."
kpshek has quit []
c0rn has quit [Quit: Computer has gone to sleep.]
ukd1 has joined #ruby
joeycarmello has left #ruby ["Leaving..."]
icole has joined #ruby
mneorr has joined #ruby
icole_ has joined #ruby
DrCode has joined #ruby
nari has joined #ruby
<V8Energy>
Anyone?
otherj has joined #ruby
jerius has quit []
huoxito has joined #ruby
eykosioux has quit [Read error: Connection timed out]
Xeago has quit [Remote host closed the connection]
jphpsf has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has joined #ruby
lewix has quit [Ping timeout: 248 seconds]
mksm has quit [Read error: Operation timed out]
allaire has quit []
MehLaptop has quit [Remote host closed the connection]
mockra has joined #ruby
twoism has quit [Remote host closed the connection]
eimajenthat has quit [Quit: eimajenthat]
onetonturd has quit [Quit: leaving]
icole_ has quit [Remote host closed the connection]
mksm has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
TheMoonMaster has quit [Ping timeout: 260 seconds]
slyv has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
justinmcp has quit [Read error: Connection reset by peer]
kofno has joined #ruby
justinmcp has joined #ruby
luckyruby has quit [Remote host closed the connection]
daniel_- has quit [Read error: Operation timed out]
chendo_ has quit [Ping timeout: 258 seconds]
Quebert has joined #ruby
mikepack has joined #ruby
TheMoonMaster has joined #ruby
chendo_ has joined #ruby
zamN has joined #ruby
zamN has quit [Changing host]
zamN has joined #ruby
reset has quit [Ping timeout: 260 seconds]
<zamN>
hey is there a way to be able to interact with a shell command from within a ruby script? Not just running the command but actually sending input (without directly sending to stdin)
cburyta has joined #ruby
<zamN>
i.e. a shell command asks the user to input x and you have to type it in rather than do << "hi"
chrishunt has quit [Quit: ZzZzZz...]
chrishunt has joined #ruby
Ontolog has joined #ruby
<Kovensky>
what's the difference between typing and writing to stdin
<zamN>
none
<zamN>
but i'd rather not send a password through stdin
eykosioux has quit [Read error: Operation timed out]
twoism has joined #ruby
otherj has quit []
zeade has quit [Quit: Leaving.]
Ontolog has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
danman has joined #ruby
eykosioux has joined #ruby
qwerty_ has joined #ruby
happydude has quit [Quit: Leaving]
Takehiro has quit [Remote host closed the connection]
jamesfung14 has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: chrishough]
crackfu has joined #ruby
icole has joined #ruby
reset has joined #ruby
tylersmith has quit [Quit: tylersmith]
a_a_g has joined #ruby
jphpsf has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
qwerty_ has quit [Quit: Bye]
qwerty_ has joined #ruby
qwerty_ has quit [Client Quit]
reset has quit [Client Quit]
uris has quit [Quit: Leaving]
Ontolog has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
crackfu has quit [Remote host closed the connection]
ttt has joined #ruby
aapzak has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
radic has joined #ruby
twoism has quit [Remote host closed the connection]
aapzak has joined #ruby
radic_ has quit [Ping timeout: 260 seconds]
eAlchem__ has joined #ruby
ukd1 has joined #ruby
18VAAUD1K has quit [Read error: Operation timed out]
Ontolog has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 258 seconds]
divout has joined #ruby
worm has joined #ruby
a_a_g has quit [Quit: Leaving.]
<worm>
I was trying to run an IRC bot (kk-irc-bot from github) but that requires ruby. After I installed ruby and gem install bundle I do bundle install, and it said that gem install unf_ext failed and bundle can't continue. What happened?
ukd1 has quit [Ping timeout: 250 seconds]
justsee has quit [Quit: Leaving...]
d2dchat has joined #ruby
<worm>
I also tried to install unf_ext manually, but still failed.ERROR: Failed to build gem native extension
<hemanth>
worm, try to run the same with verbose
<hemanth>
we can get to know the issue in detail
<worm>
No manual entry for bundle. How can I turn verbose on?
<hemanth>
--verbose
robbyoconnor has joined #ruby
justsee has joined #ruby
jphpsf has quit [Read error: Operation timed out]
jphpsf has joined #ruby
hasimo has joined #ruby
luckyruby has joined #ruby
<worm>
OK. the logs are here: An error occurred while installing unf_ext (0.0.6), and Bundler cannot continue.
Beoran_ has quit [Ping timeout: 260 seconds]
<worm>
Make sure that `gem install unf_ext -v '0.0.6'` succeeds before bundling.
eykosioux has quit [Read error: Connection timed out]
<mntzn>
Hi, I got array (or multiple) passed via args, which I then flatten. However when nothing is passed and I do array.inspect it prints [""] and then both array.nil? array.empty? return false
<mntzn>
how can I test for empty, or what am I doing wrong?
eykosioux has joined #ruby
zigomir has joined #ruby
ferdev has quit [Quit: ferdev]
apod has joined #ruby
ukd1_ has joined #ruby
ukd1 has quit [Ping timeout: 252 seconds]
TheFuzzball has joined #ruby
jgrevich has quit [Remote host closed the connection]
mneorr has joined #ruby
wallerdev has quit [Quit: wallerdev]
cha1tanya has joined #ruby
maxmanders has joined #ruby
eAlchemi_ has joined #ruby
monkegjinni has joined #ruby
mengu has joined #ruby
xpen has quit [Remote host closed the connection]
mulinux has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<JonnieCache>
adac: but you shouldnt generally need to do that
<adac>
hoelzro, thanks
<hoelzro>
yeah, you should only do that if you're inspecting the object
adeponte has quit [Ping timeout: 264 seconds]
<hoelzro>
don't dispatch on the class
<apeiros_>
and for the pedants like me - variables don't have a class, the objects they reference have
<JonnieCache>
if you need to interrogate the class of your objects a lot then you should reconsider your application design
<adac>
JonnieCache, hoelzro yeah just need to test something
<JonnieCache>
cool
<apeiros_>
(i.e., it's irrelevant whether you ask an object referenced by a variable, or the result of an expression, or a literal - all objects down the way)
lkba has quit [Ping timeout: 264 seconds]
eAlchemist has joined #ruby
eka has joined #ruby
<JonnieCache>
adac: you can also do object.is_a? Classname and it will tell you if object is a Classname or a *descentdent* of Classname
<JonnieCache>
which is perhaps preferable
vlad_starkov has quit [Remote host closed the connection]
<sedeki>
have you guys heard about a server that runs stuff async? it is called something like b..d
<sedeki>
be…d
<sedeki>
if i have a webserver for instance, and i want to run a script.
<sedeki>
instead of having a cronjob, i post jobs to the server.
butblack has joined #ruby
<apeiros_>
sedeki: resque, sidekiq
<apeiros_>
delayed_job
mneorr has joined #ruby
trichloronitrome has quit [Ping timeout: 264 seconds]
<Hanmac>
apeiros_ some literals are act different from normal objects ... but thats the power of the parser :P
shirokuro11 has joined #ruby
<apeiros_>
Hanmac: um… different in what way?
jjbohn has joined #ruby
<apeiros_>
the only differences I'm aware of are implementation details and don't matter at all with regards to what I said…
<Hanmac>
apeiros_ do you know the difference between "" =~ // and // =~ "" ?
<apeiros_>
Hanmac: other than a) the receiver and b) the named-captures-to-locals thing?
<apeiros_>
Hanmac: ok, that's about the only case where it matters that you have a literal (+ additional restrictions)
baba has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
baba is now known as Guest13870
tvw has joined #ruby
Guest13870 has quit [Client Quit]
nari has joined #ruby
opioids38 has joined #ruby
eAlchemist has quit [Ping timeout: 252 seconds]
dcwu has quit [Read error: Connection reset by peer]
drale2k has joined #ruby
xpen has joined #ruby
brianpWins has quit [Quit: brianpWins]
io_syl has quit [Ping timeout: 252 seconds]
hasimo has quit [Remote host closed the connection]
r0bby_ has joined #ruby
banjara has joined #ruby
m3pow has quit [Remote host closed the connection]
io_syl has joined #ruby
hbpoison has joined #ruby
r0bby has quit [Ping timeout: 252 seconds]
ozgura has joined #ruby
browndawg has left #ruby [#ruby]
Virunga has joined #ruby
jacky- has quit [Excess Flood]
jacky has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
drale2k has quit [Ping timeout: 252 seconds]
khismetix has joined #ruby
fire has joined #ruby
wchun has quit [Quit: Leaving]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
wchun has joined #ruby
banjara has quit [Ping timeout: 276 seconds]
TheFuzzball has quit [Ping timeout: 245 seconds]
eykosioux has quit [Read error: Connection timed out]
eykosioux has joined #ruby
jpcamara has joined #ruby
dogweather has joined #ruby
sonda has joined #ruby
TheFuzzball has joined #ruby
skattyadz has joined #ruby
dawkirst has quit [Remote host closed the connection]
haxrbyte has joined #ruby
francisfish has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
mark9 has joined #ruby
br4ndon has joined #ruby
realDAB has joined #ruby
reset has quit [Quit: Leaving...]
evenix has joined #ruby
vlad_starkov has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
deepinskin has quit [Ping timeout: 264 seconds]
yashshah has quit [Read error: Connection reset by peer]
swoosh has joined #ruby
eAlchemi_ has joined #ruby
yashshah has joined #ruby
evenix has quit [Ping timeout: 258 seconds]
himsin has quit [Ping timeout: 258 seconds]
vlad_starkov has quit [Remote host closed the connection]
oqioi has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
mark9 has left #ruby [#ruby]
vlad_starkov has joined #ruby
wchun has quit [Quit: Leaving]
eAlchemi_ has quit [Ping timeout: 248 seconds]
wchun has joined #ruby
drale2k has joined #ruby
davetherat has quit [Remote host closed the connection]
khismetix has quit [Ping timeout: 255 seconds]
<marwinis1>
Been looking around on the googlemachine, because I am trying to take JSON, and datapoint in that JSON object to a local variable or @variable, any pointers to something specific I can take a look at?
m8 has joined #ruby
davetherat has joined #ruby
<marwinis1>
and EACH datapoint*
haxrbyte has joined #ruby
evenix has joined #ruby
banjara has joined #ruby
postmodern has quit [Quit: Leaving]
<JonnieCache>
JSON.parse(...) will turn json into ruby objects for you
<JonnieCache>
you might need to `require 'json'` first
banisterfiend has joined #ruby
lkba has joined #ruby
julian-delphiki has joined #ruby
dEPy has joined #ruby
haxrbyte has quit [Remote host closed the connection]
xpen_ has joined #ruby
drale2k has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby
yshh has quit [Remote host closed the connection]
haxrbyte has joined #ruby
butblack has quit [Quit: butblack]
xpen has quit [Ping timeout: 252 seconds]
bean has quit [Ping timeout: 245 seconds]
techlife has quit [Ping timeout: 264 seconds]
shirokuro11 has quit [Ping timeout: 272 seconds]
sayan has quit [Ping timeout: 248 seconds]
S1kx has quit [Ping timeout: 252 seconds]
khismetix has joined #ruby
Takehiro has quit [Remote host closed the connection]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
haxrbyte has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
philcrissman has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
MrZYX|off is now known as MrZYX
Xeago has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
tonini has quit [Remote host closed the connection]
ehlu has joined #ruby
oqioi has quit [Quit: Leaving.]
hybris has joined #ruby
wchun has quit [Quit: Leaving]
wchun has joined #ruby
techlife has joined #ruby
willob has joined #ruby
rhinux has quit [Quit: Konversation terminated!]
willob has quit [Max SendQ exceeded]
himsin has joined #ruby
wchun has quit [Client Quit]
wchun has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
willob has joined #ruby
nomenkun_ has quit [Ping timeout: 252 seconds]
WhereIsMySpoon has quit [Disconnected by services]
eAlchemi_ has joined #ruby
wchun has quit [Client Quit]
wchun has joined #ruby
eykosioux has quit [Read error: Connection timed out]
WhereIsMySpoon_ has joined #ruby
eykosioux has joined #ruby
NullableCX has joined #ruby
drale2k has joined #ruby
mikecmpbll has joined #ruby
lemonsparrow has joined #ruby
hybris has quit [Read error: Connection reset by peer]
ryanh has quit [Quit: Computer has gone to sleep.]
sleetdrop has quit [Ping timeout: 264 seconds]
S2kx has joined #ruby
nomenkun has joined #ruby
susrivas has joined #ruby
S1kx has quit [Ping timeout: 255 seconds]
fuzai has quit [Quit: fuzai]
FuzaiDesktop is now known as Fuzai
eAlchemi_ has quit [Ping timeout: 248 seconds]
khismetix has quit [Quit: Computer has gone to sleep.]
hybris has joined #ruby
hogeo has quit [Remote host closed the connection]
banjara has joined #ruby
cool has joined #ruby
im0b has joined #ruby
octarine has joined #ruby
wreckimnaked has quit [Read error: Operation timed out]
fcoury has joined #ruby
beiter has quit [Quit: beiter]
havenwood has quit [Remote host closed the connection]
tk_ has joined #ruby
havenwood has joined #ruby
jonahR has joined #ruby
anderse has joined #ruby
Guedes has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
kofno has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
S3kx has joined #ruby
wchun has quit [Quit: Leaving]
FiXion has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
wchun has joined #ruby
<FiXion>
Using CentOS - require 'rest-client' doesn't work (as root) - even though I have rubygem-rest-client rpm installed :(
wchun has quit [Remote host closed the connection]
<FiXion>
how do I make ruby find stuff in /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/rest-client.rb
<FiXion>
ie. - do some recursive search in /usr/lib/ruby/gems/1.8/gems/ ?
sayan has joined #ruby
wchun has joined #ruby
daniel_- has joined #ruby
<FiXion>
I have googled, and not found anything that makes it work :(
wchun has quit [Remote host closed the connection]
wchun has joined #ruby
<FiXion>
gem env: says /usr/lib/ruby/gems/1.8
<FiXion>
but it seems it doesn't search recursively below that path :(
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
cburyta has joined #ruby
S2kx has quit [Ping timeout: 258 seconds]
xpen_ has quit [Remote host closed the connection]
v0n has joined #ruby
sayan has quit [Read error: Connection reset by peer]
horrror has quit [Quit: horrror]
sayan has joined #ruby
Spooner_ has joined #ruby
wobblini has joined #ruby
jonahR has quit [Quit: jonahR]
66MAAC1RO has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
becom33 has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
Takehiro has joined #ruby
wallcloc_ has joined #ruby
whitedawg has joined #ruby
pskosinski has joined #ruby
m3pow has joined #ruby
eimajenthat has joined #ruby
coaster_ has quit [Read error: Connection reset by peer]
wallclockbuilder has quit [Ping timeout: 258 seconds]
ArchBeOS has joined #ruby
wf2f has quit []
coaster has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
66MAAC1RO has quit [Ping timeout: 245 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
Apocalypse has joined #ruby
jonahR has quit [Quit: jonahR]
drale2k has quit [Quit: Leaving...]
realDAB has quit [Quit: realDAB]
<adac>
i have a string that I split like this: arr = string.split(",") Now I was wondering how can i strip() the splitted element at the same time?
becom33 has joined #ruby
banjara has joined #ruby
mark_locklear has joined #ruby
eykosioux has quit [Read error: Connection timed out]
icole_ has quit [Remote host closed the connection]
eykosioux has joined #ruby
icole has joined #ruby
yshh has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
jpcamara_ has joined #ruby
browndawg has quit [Max SendQ exceeded]
jpcamara has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
tish has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
realDAB has joined #ruby
browndawg has joined #ruby
icole has quit [Ping timeout: 258 seconds]
yshh has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 246 seconds]
tish has quit [Client Quit]
wobblini has quit [Ping timeout: 252 seconds]
e-dard has left #ruby [#ruby]
banjara has quit [Ping timeout: 258 seconds]
Takehiro has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
shuky has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
thebastl has quit [Remote host closed the connection]
timmow_ has quit [Remote host closed the connection]
fermion has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
allahuakbar has joined #ruby
<Xeago>
adac: you want to strip each element of the result of split?
allahuakbar has left #ruby [#ruby]
<Xeago>
string.split(',').map(&:strip)
<Xeago>
or pass map a block
deepinskin has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
deepinskin has quit [Max SendQ exceeded]
geekbri has joined #ruby
deepinskin has joined #ruby
eAlchemi_ has joined #ruby
samphippen has joined #ruby
grn_ is now known as grn
jjbohn has quit [Quit: Leaving...]
deepinskin has quit [Max SendQ exceeded]
<adac>
Xeago, yep that does the trick, thank you!
deepinskin has joined #ruby
Zai00 has joined #ruby
deepinskin has quit [Max SendQ exceeded]
hasimo has joined #ruby
deepinskin has joined #ruby
dawkirst has joined #ruby
dustint has quit [Remote host closed the connection]
ehlu is now known as nicklas
wchun has quit [Quit: Leaving]
nicklas is now known as ehlu
wchun has joined #ruby
slainer68 has quit [Remote host closed the connection]
carloslopes has joined #ruby
deepinskin has quit [Max SendQ exceeded]
<Spooner_>
adac, You could also string.split(/\s*,\s*/)
<Hanmac>
adac, or change the split command so das die teilstrings automatisch gestript werden
deepinskin has joined #ruby
<adac>
Spooner_, Hanmac thanks & danke :)
Ng|Adonixx7148 has quit [Read error: Connection reset by peer]
philcrissman has quit [Remote host closed the connection]
axxT has joined #ruby
<dawkirst>
hi, I'm trying to understand something fundamental: when do I use SQL, when do I use NoSQL, and what is the "de facto" method of data persistence with Ruby. I put de facto in quotes because I realise it's contextual, but where can I find out more about what the logic behind each context is?
<Hanmac>
huch, why does my sentence was switched to german ... i think my locale module is broken ..
tommyvyo has joined #ruby
miso1337 has quit [Quit: afk]
deepinskin has quit [Max SendQ exceeded]
<realDAB>
Hanmac: keine ahnung
whitedawg has quit [Quit: Leaving.]
<Spooner_>
dawkirst, As you say, it depends greatly on your requirements. How much data you have and what format it is in.
deepinskin has joined #ruby
s1n4 has joined #ruby
<Hanmac>
i wonder why all are so against SQL ... from the sql itself its nice
Morkel has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
seneca has joined #ruby
<seneca>
hi
eAlchemi_ has quit [Ping timeout: 264 seconds]
<dawkirst>
Spooner_, are there any guidelines / rules of thumb / underlying logic to this?
uris has joined #ruby
dustint has joined #ruby
xclite has quit [Quit: Leaving]
<Spooner_>
dawkirst, Well, if you have a tiny amount of data, you don't need a true database, so pstore or even just YAML are fine.
<Spooner_>
dawkirst, If you just have key/values, then consider something like redis. Beyond that, you might want a full SQL/noSQL DB.
adkron has joined #ruby
Takehiro has joined #ruby
solidoodlesuppor has joined #ruby
<Hanmac>
you can use Marshal for store data too :P *hides*
banjara has joined #ruby
<Spooner_>
Indeed you can, Hanmac ;)
kristofers has joined #ruby
<Spooner_>
There are plenty of options, but none are universally appropriate.
swoosh has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
apod has quit []
nomenkun has joined #ruby
hbpoison has joined #ruby
<Spooner_>
You could use CSV or JSON or BSON or MsgPack or well...anything ;)
Coolhand_ has quit [Remote host closed the connection]
nkr has quit [Ping timeout: 252 seconds]
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
nkr has joined #ruby
sorcerer066 has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
xpen has joined #ruby
deepinskin has quit [Max SendQ exceeded]
timmow has joined #ruby
timmow has quit [Remote host closed the connection]
deepinskin has joined #ruby
timmow has joined #ruby
_64k has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
jerius has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
divout has quit [Quit: Leaving.]
_64k has joined #ruby
carlyle has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
hasimo has quit [Remote host closed the connection]
eykosioux has quit [Read error: Connection timed out]
pdamer has joined #ruby
invisime has joined #ruby
eAlchemist has quit [Ping timeout: 252 seconds]
eykosioux has joined #ruby
deepinskin has quit [Max SendQ exceeded]
Gue______ has joined #ruby
swoosh has joined #ruby
deepinskin has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
<dawkirst>
(cross-posting this from #coffeescript, in the hope that someone in here can help me) I'm also trying to understand whether a) embedded coffeescript (eco) is logic-less, and if not, what logic-less means
DotMH has quit [Quit: DotMH]
deepinskin has quit [Max SendQ exceeded]
<dawkirst>
nm, got helped in #coffeescript
hasimo has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
deepinskin has joined #ruby
arturaz has joined #ruby
<breakingthings>
dawkirst: for reference, #rubyonrails is rails concerns
deepinskin has quit [Max SendQ exceeded]
<breakingthings>
Also, javascript by definition is a programming language and can contain logic.
seneca has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0.2/20130201190548]]
banjara has joined #ruby
<breakingthings>
there are MVC frameworks for it so yadda yadda yadda do whatcha like.
deepinskin has joined #ruby
<dawkirst>
breakingthings, yup, thanks
deepinskin has quit [Max SendQ exceeded]
Cooler__ has quit [Remote host closed the connection]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
samphippen has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
swex_ has joined #ruby
nyuszika7h has joined #ruby
deepinskin has quit [Max SendQ exceeded]
swex has quit [Ping timeout: 260 seconds]
nyuszika7h has quit [Client Quit]
deepinskin has joined #ruby
ozgura has quit [Read error: Connection reset by peer]
ozgura has joined #ruby
nyuszika7h has joined #ruby
samphippen has quit [Client Quit]
nomenkun_ has joined #ruby
tjbiddle has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
hasimo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
slainer68 has joined #ruby
deepinskin has quit [Max SendQ exceeded]
dustint has quit [Remote host closed the connection]
ozgura has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 264 seconds]
deepinskin has joined #ruby
ozgura has joined #ruby
banjara has quit [Ping timeout: 264 seconds]
dustint has joined #ruby
vlad_starkov has joined #ruby
deepinskin has quit [Max SendQ exceeded]
nomenkun has quit [Ping timeout: 260 seconds]
deepinskin has joined #ruby
hasimo has joined #ruby
crankycoder has quit [Quit: leaving]
deepinskin has quit [Max SendQ exceeded]
<FiXion>
trying to run ruby -I /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/ check_graphite.rb - but then it fails: ..restclient/request.rb:2:in `require': no such file to load -- mime/types (LoadError)
<FiXion>
without the -I - it can't find rest-client :(
Coolhand has joined #ruby
<FiXion>
arghh.
deepinskin has joined #ruby
<FiXion>
why can't ruby on CentOS 6, not find it's plugins :(
<FiXion>
MrZYX: ahh. gist is like pastie/pastebin etc.. :)
shevy has joined #ruby
girija has quit [Ping timeout: 264 seconds]
eykosioux has quit [Read error: Connection timed out]
v0n has joined #ruby
deepinskin has quit [Max SendQ exceeded]
failshell has joined #ruby
anonymuse has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
deepinskin has joined #ruby
eykosioux has joined #ruby
<jrajav>
FiXion: Except much better. Each gist is a fully functional git repository, you can create them associated with your github account, you can have multiple files in a gist, comments, version history, etc etc.
Squarepy has joined #ruby
<jrajav>
Just about the only thing it's missing is running code live like jsbin, codepad, and friends
<jrajav>
Someone should really get on that :P
deepinskin has quit [Max SendQ exceeded]
sambao21 has joined #ruby
eAlchemi_ has joined #ruby
deepinskin has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
hasimo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Alaude has joined #ruby
deepinskin has quit [Max SendQ exceeded]
v0n has quit [Client Quit]
deepinskin has joined #ruby
gyre007 has joined #ruby
tomzx_mac has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
deepinskin has quit [Max SendQ exceeded]
sambao21 has quit [Client Quit]
deepinskin has joined #ruby
dustint has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
cburyta has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
deepinskin has quit [Max SendQ exceeded]
cburyta has joined #ruby
deepinskin has joined #ruby
dogweather has quit [Remote host closed the connection]
sailias has joined #ruby
deepinskin has quit [Max SendQ exceeded]
cburyta has quit [Read error: Operation timed out]
biff_tannen has joined #ruby
deepinskin has joined #ruby
monkegjinni has quit [Remote host closed the connection]
BizarreCake has joined #ruby
nateberkopec has joined #ruby
hasimo has joined #ruby
dustint has joined #ruby
<ArchBeOS>
what is the best method of getting the class that the process is currently in?
monkegjinni has joined #ruby
rburton- has quit [Quit: Leaving...]
gyre007 has quit [Ping timeout: 258 seconds]
<ArchBeOS>
Basically, I want to grab the class name and output where in the program the process is in.
<apeiros_>
self
deepinskin has quit [Max SendQ exceeded]
<apeiros_>
or self.class if you're in an instance of the class
dustint has quit [Remote host closed the connection]
<ArchBeOS>
apeiros_: i think that might be it. let me try that out. thanks
deepinskin has joined #ruby
dustint has joined #ruby
jtharris has joined #ruby
eAlchemi_ has quit [Ping timeout: 252 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
hbpoison has quit [Read error: Connection reset by peer]
<ArchBeOS>
worked like a champ. thanks apeiros_
hbpoison has joined #ruby
deepinskin has quit [Max SendQ exceeded]
rippa has quit [Ping timeout: 240 seconds]
deepinskin has joined #ruby
crankycoder has quit [Quit: leaving]
v0n has joined #ruby
crankycoder has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
phantasm66 has joined #ruby
deepinskin has quit [Max SendQ exceeded]
niklasb has quit [Ping timeout: 246 seconds]
deepinskin has joined #ruby
iaj has quit [Ping timeout: 252 seconds]
sambio has joined #ruby
crankycoder has quit [Client Quit]
deepinskin has quit [Max SendQ exceeded]
kofno has quit [Remote host closed the connection]
joshman_ has quit [Quit: Computer has gone to sleep.]
deepinskin has joined #ruby
Alaude has quit [Quit: Page closed]
nomenkun_ has quit [Ping timeout: 248 seconds]
deepinskin has quit [Max SendQ exceeded]
etcetera has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
niklasb has joined #ruby
deepinskin has joined #ruby
banjara has joined #ruby
gyre007 has joined #ruby
angusiguess has joined #ruby
nomenkun has joined #ruby
sorcerer066 has quit [Quit: Leaving]
deepinskin has quit [Max SendQ exceeded]
jjbohn has joined #ruby
tk_ has quit [Quit: ばいばい]
ner0x has joined #ruby
iaj has joined #ruby
ehlu is now known as nicklas
nicklas is now known as ehlu
deepinskin has joined #ruby
<aedorn>
Indefinite thread locks on InnoDB! yay! *head explodes*
realDAB has joined #ruby
kofno has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
<bw_>
postgresql *cough*
<apeiros_>
KirbyDB *cough*
jmeeuwen has quit [Ping timeout: 256 seconds]
<apeiros_>
what? that's already better than mysql!
hasimo has quit [Remote host closed the connection]
eykosioux has quit [Read error: Connection timed out]
<apeiros_>
bw_: query planning is magic too!
nazty has joined #ruby
frem has joined #ruby
Neandre has quit [Ping timeout: 264 seconds]
V8Energy has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
<aedorn>
I was forced into MySQL because it was "what my boss knew." (Later found out he actually doesn't know SQL and I could have used whatever I wanted)
eykosioux has joined #ruby
noop has quit [Remote host closed the connection]
<apeiros_>
yeah, just say "post-gresql because it's post-mysql!"
<aedorn>
heh
apod has quit []
banjara has quit [Ping timeout: 245 seconds]
carloslopes has quit [Ping timeout: 264 seconds]
<bw_>
aedorn: i feel with you; i had the same kind of boss
carloslopes has joined #ruby
<GeekOnCoffee>
MySQL is what your boss had heard of
rburton- has joined #ruby
neku has joined #ruby
gyre007 has quit [Ping timeout: 276 seconds]
apod has joined #ruby
<bw_>
and all he "knew" about (my)sql was "select * from <tablename>" *sigh*
blaxter has quit [Quit: foo]
<aedorn>
bw_: mine too! I saw him do a select * from <> once! He forgot to do use <database> though so it didn't work.
casheew has quit [Read error: Connection reset by peer]
rburton- has quit [Client Quit]
yekta has joined #ruby
casheew has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
r0bby_ has quit [Ping timeout: 256 seconds]
Neandre has joined #ruby
keyvan has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 258 seconds]
keyvan has joined #ruby
eimajenthat has quit [Quit: bye bye]
carloslopes has quit [Ping timeout: 258 seconds]
cyberarm has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<bw_>
aedorn: at some point i could convince him that i know a little bit more about sql than him so he let me choose the server, as long as it doesn't cost anything :)
<Fuzai>
How would I go looking at the code behind .sample? like [].sample? I'm under the impression that it's supposed to be true random selection from an array and i'm not sure it is
<Spooner_>
csmrfx, You should report that as a bug in Ruby.
realDAB has quit [Quit: realDAB]
deepinskin has joined #ruby
<Fuzai>
You guys say sample is working correctly, i'll drop it
<JonnieCache>
Fuzai: you should fully investigate why youre wrong though. randomness and its strange behaviour is a complex and profound subject
<JonnieCache>
very interesting stuff
deepinskin has quit [Max SendQ exceeded]
hasimo has joined #ruby
deepinskin has joined #ruby
<Hanmac>
csmrfx the code Array.new(10) works as it should
cburyta has joined #ruby
daniel_- has joined #ruby
<JonnieCache>
i think he's upset the bot didnt make him a sandwich
deepinskin has quit [Max SendQ exceeded]
banjara has joined #ruby
deepinskin has joined #ruby
neurone-1337 has joined #ruby
deepinskin has quit [Max SendQ exceeded]
sambao21 has joined #ruby
deepinskin has joined #ruby
daniel_- has quit [Client Quit]
<dEPy>
what's this: lambda do ||
<dEPy>
do || ?
<dEPy>
oh nvm
<dEPy>
empty params
deepinskin has quit [Max SendQ exceeded]
<Hanmac>
... imo they should not be needed
evenix has quit [Remote host closed the connection]
hbpoison has joined #ruby
<dEPy>
just reading trough some unicorn files so not sure :)
sahbeewah has joined #ruby
<csmrfx>
Hanmac: oh yes
BSaboia has joined #ruby
SCommette has joined #ruby
rburton- has joined #ruby
adkron has quit [Ping timeout: 255 seconds]
_maes_ has joined #ruby
jpun has quit [Quit: leaving]
evenix has joined #ruby
fermion has joined #ruby
hasimo has quit [Remote host closed the connection]
kpshek has joined #ruby
bean has joined #ruby
Shrink has quit [Ping timeout: 276 seconds]
banjara has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
eykosioux has quit [Read error: Connection timed out]
josephmartz has quit [Quit: josephmartz]
eykosioux has joined #ruby
geggam__wk has joined #ruby
jpun has joined #ruby
maletor has joined #ruby
<bluenemo>
hi guys, i was wondering how to capture the output of a failing system command (bash) into a variable. my simple approach only works for stdout http://pastebin.com/WgTueRtm
hiroyuki has joined #ruby
raffer__ has joined #ruby
rburton- has quit [Ping timeout: 246 seconds]
troessner has joined #ruby
<bean>
bluenemo: cat foo 2>&1
etcetera has quit []
<bluenemo>
bean, is there no way with ruby itself?
<matti>
bluenemo: Not with ``
<apeiros_>
bluenemo: Process:spawn can
<bean>
considering the way you're doing it is already super hacky, no
<bean>
what they said.
<apeiros_>
it's documented
<bluenemo>
ah ok thank you guys
eAlchemist has joined #ruby
<matti>
Plus, why would you call cat from Ruby? ;p
Qwak has joined #ruby
<apeiros_>
indeed
<bluenemo>
its just an example
<matti>
Ah.
<bluenemo>
;)
danman has joined #ruby
Zai00_ has joined #ruby
deepinskin has joined #ruby
Zai00 has quit [Ping timeout: 246 seconds]
Zai00_ is now known as Zai00
kornnflake_zzz is now known as kornnflake
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
pi3r has joined #ruby
failshell has quit [Remote host closed the connection]
<breakingthings>
I was hoping that the secret would not come out
Squarepy has joined #ruby
<breakingthings>
that I am gunther a cartoon penguin
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<breakingthings>
but my secret is now revealed
<Hanmac>
ha its funny that you know his name :P
dr_bob has quit [Ping timeout: 276 seconds]
<breakingthings>
I've watched the show.
<breakingthings>
S'cool stuff.
<breakingthings>
Cartoons are rad and junk.
FiXion has left #ruby [#ruby]
erry has quit [Ping timeout: 608 seconds]
haxrbyte has quit [Ping timeout: 264 seconds]
atyz has quit [Ping timeout: 245 seconds]
<breakingthings>
But that gif is actually pretty accurate when it comes to me throwing out suggestions on irc about shit I know nothing about that then spontaneously work.
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
lele has quit [Ping timeout: 256 seconds]
banjara has joined #ruby
lele has joined #ruby
haxrbyte has joined #ruby
s1n4 has quit [Quit: leaving]
sahbeewah has quit [Remote host closed the connection]
sirecote has quit [Ping timeout: 272 seconds]
sirecote has joined #ruby
rippa has joined #ruby
erry has joined #ruby
rburton- has joined #ruby
<Hanmac>
breakingthings, i cant wait for episodes with little Marcy ... its a very good tear jerker ... :P
love_color_text has joined #ruby
puppeh has quit [Remote host closed the connection]
rippa has quit [Client Quit]
becom33 has quit [Ping timeout: 258 seconds]
sayan has quit [Read error: Connection reset by peer]
troessner has quit [Quit: Leaving]
etcetera has joined #ruby
eykosioux has quit [Read error: Connection timed out]
samphippen has quit [Ping timeout: 246 seconds]
banjara has quit [Ping timeout: 252 seconds]
etcetera has quit [Client Quit]
alanp_ has joined #ruby
eykosioux has joined #ruby
xpen has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 264 seconds]
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
hbpoison has quit [Ping timeout: 252 seconds]
xpen has joined #ruby
ckrailo has joined #ruby
statarb3 has quit [Ping timeout: 245 seconds]
statarb3 has joined #ruby
angle has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
rismoney has joined #ruby
rburton- has quit [Ping timeout: 252 seconds]
sirecote has quit [Ping timeout: 258 seconds]
andikr has quit [Read error: Connection reset by peer]
LouisRoR has quit [Read error: Connection reset by peer]
trumpeter2003 has quit [Quit: Leaving]
skattyadz has joined #ruby
jankly has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<stetho>
Hi - I'm learning ruby, trying to follow some example things and have got myself stuck. I'm using 1.9.3p0 if it's relevant. The thing I'm following says to create a file in a directory lib - lib/graph - and then in the "main" part I require './lib/graph'. I've tried specifying the full path, path relative to the script, googled a few suggestions such as Dir.chdir but I constantly get /var/lib/gems/1.9.1/gems/backports-3.1.1/lib/backports/tools.rb:328:in `require
<stetho>
cannot load such file -- /root/dashboard/lib/graph (LoadError)
Shrink has quit [Ping timeout: 245 seconds]
atno has quit [Remote host closed the connection]
exdis has joined #ruby
<MrZYX>
oO you're working as root user?
vlad_sta_ has joined #ruby
caveat- has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<stetho>
I'm learning ruby, not playing with a production server.
<MrZYX>
still scary ;P
<bean>
still not really ideal to be root
<bean>
its a bad practice
<stetho>
I can rm -rf / and I'm the only person who would care.
<JonnieCache>
stetho: dont listen to them. live dangerously
<stetho>
But I wouldn't care that much because I'd just vagrant up another machine.
<JonnieCache>
alias rm to rm -f as well
<stetho>
No, I've aliased it to ls
eAlchemi_ has quit [Ping timeout: 258 seconds]
rickmasta has joined #ruby
jpcamara_ has quit [Quit: jpcamara_]
i_s has joined #ruby
<MrZYX>
alias cd [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"
<stetho>
Anyway, enough about my linux test box, more about my `require': cannot load such file -- /root/dashboard/lib/graph (LoadError) please
maletor has joined #ruby
<Hanmac>
not even global warming can unfreeze frozen ruby objects :P
chussenot has quit [Quit: chussenot]
<MrZYX>
Hanmac you tried? Oh, that's why... explains a lot.
danman has quit [Quit: danman]
<stetho>
MrXYZ: Why would you give me a chance? If I can't do my job without changing directory I shouldn't be allowed near a command line.
mneorr has quit [Remote host closed the connection]
girija has quit [Ping timeout: 255 seconds]
alx- has joined #ruby
_emptymag00 has joined #ruby
Zai00 has joined #ruby
daniel_- has joined #ruby
angusiguess has joined #ruby
spider-mario has joined #ruby
Takehiro has quit [Remote host closed the connection]
rburton- has joined #ruby
chussenot has quit [Quit: chussenot]
jamesfung14 has joined #ruby
chussenot has joined #ruby
rburton- has quit [Client Quit]
Virunga has quit [Remote host closed the connection]
kornnflake_zzz is now known as kornnflake
nwertman has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
c0rn has joined #ruby
Virunga has joined #ruby
martynas has joined #ruby
martynas is now known as Guest80370
shirokuro11 has quit [Remote host closed the connection]
hybris has quit [Read error: Connection reset by peer]
ryanf has quit [Quit: leaving]
Clownz has joined #ruby
hbpoison has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby
bricker`1ork is now known as bricker
Radnor_ is now known as Radnor
sayan has quit [Ping timeout: 258 seconds]
yashshah has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
rickmasta has joined #ruby
realDAB has quit [Quit: realDAB]
yashshah has joined #ruby
Neandre has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
brianpWins has joined #ruby
eykosioux has quit [Read error: Connection timed out]
mityaz has joined #ruby
mrbrdo has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
eykosioux has joined #ruby
whitedawg has joined #ruby
danman has quit [Quit: danman]
<mrbrdo>
how could I sanitize a relative path so that it can't be exploited by using stuff like ../ etc in the filename? basically I want the path to be 'something/file.txt' and I want it to be relative to some absolute path but never outside this path
shock_one has quit [Ping timeout: 248 seconds]
ozgura has quit [Remote host closed the connection]
slainer68 has joined #ruby
interactionjaxsn has joined #ruby
<wuest>
mrbrdo - File.expand_path will help. Make sure that the expanded path starts with a given path which you've determined to be the base directory which is to be addressable.
headius has quit [Quit: headius]
angusiguess has quit [Ping timeout: 255 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
_64k has joined #ruby
ML_BMT has joined #ruby
breakingthings has joined #ruby
e-dard has joined #ruby
<mrbrdo>
wuest: thanks, was thinking of that but asked anyway if there way a better way :)
jonahR_ has joined #ruby
j^2 has joined #ruby
<e-dard>
Hi, can someone explain a more idiomatic way to write this spec? http://dpaste.com/1021939/ I'm new to ruby and think maybe I should be using contexts and the let method?
<e-dard>
(I accidentally cut an end off the bottom, and app is required in from elsewhere)
Mo0O has joined #ruby
jtharris has joined #ruby
sonda has quit [Remote host closed the connection]
angusiguess has joined #ruby
<e-dard>
and the context would have been an it block (I got stuck halfway through messing around with it :) )
jonahR has quit [Ping timeout: 255 seconds]
jonahR_ is now known as jonahR
<ahammond>
I'm having the following error while attempting to run bundle on an ubuntu machine: https://gist.github.com/c7eff77fa81237645190 do I need to install some packages or something?
endzyme has quit [Remote host closed the connection]
bean has joined #ruby
jerius has quit []
<e-dard>
ahammond: maybe there are native extensions EventMachine is looking for
apok has joined #ruby
<interactionjaxsn>
e-dard: missing an it block but there isn't much to work with there.
sayan has joined #ruby
<Hanmac>
ahammond: install libssl-dev
Al____ has quit [Ping timeout: 260 seconds]
<wuest>
ahammond: do you have libssl installed? That looks like what it's blowing up on.
sayan has quit [Read error: Connection reset by peer]
<e-dard>
interactionjaxsn: so having local vars in tests is OK?
<ahammond>
Hanmac: wuest, I have libssl-dev and libssl1.0.0 installed and a latest version
threesome has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
<Hanmac>
hm its maybe rvm that fuc*s up ...
<ahammond>
So… rvm implode and then try again?
BaxZzZz has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<interactionjaxsn>
e-dard: depends. if you are running a lot of test that depend on a similar object then you may benefit from doing a before(:each) block or a let { foo = Bar.new }
niftylettuce has joined #ruby
nimred_ has quit [Quit: leaving]
toekutr has joined #ruby
<Hanmac>
ahammond: "The compiler failed to generate an executable file. (RuntimeError)You have to install development tools first." ... so i think for some unknown reason mkmf cant make test files
hbpoison has quit [Ping timeout: 256 seconds]
<e-dard>
interactionjaxsn: and then I will get the same foo for all the tests in the context?
<interactionjaxsn>
e-dard: you're getting warmer
vlad_starkov has joined #ruby
havenwood has joined #ruby
<MrZYX>
doesn't let just defer initialization to the first usage but still resets for each spec?
<ahammond>
so… best guess for next step is… implode and try again?
cburyta has quit [Remote host closed the connection]
wreckimnaked has quit [Ping timeout: 245 seconds]
tspike has quit [Ping timeout: 256 seconds]
cburyta has joined #ruby
akashj87 has joined #ruby
_nitti has quit [Remote host closed the connection]
<MrZYX>
e-dard: I'd probably set subject to your app object, so self inside the the specs becomes that and you can just call parse_yaml(..).should ...
<interactionjaxsn>
MrZYX: good question and i'm not sure exactly.
[Neurotic] has quit [Read error: Operation timed out]
elux has joined #ruby
thejefflarson_ has quit [Ping timeout: 245 seconds]
flowerhack has quit [Ping timeout: 248 seconds]
davidboy has quit [Read error: Operation timed out]
xerxas has quit [Read error: Operation timed out]
<elux>
hello everyone
xerxas has joined #ruby
TheDeadSerious_ has quit [Ping timeout: 252 seconds]
<interactionjaxsn>
MrZYX: if you set subject can't you do it { should eq expected }
rupee has joined #ruby
<MrZYX>
yep
jhowarth has quit [Ping timeout: 260 seconds]
davidboy has joined #ruby
eykosioux has quit [Read error: Connection timed out]
eykosioux has joined #ruby
thejefflarson_ has joined #ruby
sambao21 has joined #ruby
gyre008 has joined #ruby
nimred has joined #ruby
cburyta has quit [Ping timeout: 264 seconds]
nricciar has quit [Ping timeout: 264 seconds]
philcrissman has joined #ruby
<atmosx>
hello
<atmosx>
how can I display the celsius in ruby… my file is utf8 enabled
francisfish has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
aaronmcadam has quit [Quit: Leaving...]
reset has joined #ruby
kapowaz has quit [Ping timeout: 260 seconds]
<Hanmac>
atmosx: i can use it with my keyboard :P
c0rn has joined #ruby
<elux>
does anyone know how i can get the state of a socket's connect? .. im trying to find the socket.getsockopt() constant to help return this but cant locate it.. any tips?
davidboy has quit [Ping timeout: 264 seconds]
guilleiguaran_ has quit [Ping timeout: 260 seconds]
xerxas has quit [Ping timeout: 264 seconds]
ryanh has quit [Quit: Computer has gone to sleep.]
bluehavana has quit [Ping timeout: 245 seconds]
rcsheets has quit [Ping timeout: 245 seconds]
[0x1a] has quit [Ping timeout: 260 seconds]
kornnflake is now known as kornnflake_zzz
joshwines has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
RJ3__ has quit [Ping timeout: 240 seconds]
tonini has joined #ruby
thejefflarson_ has quit [Ping timeout: 248 seconds]
fourq has quit [Ping timeout: 264 seconds]
[diecast] has quit [Ping timeout: 264 seconds]
notbrent has quit [Ping timeout: 264 seconds]
Spaceghost|cloud has quit [Ping timeout: 264 seconds]
<mrbrdo>
elux: when in doubt, look in ruby source :)
<mrbrdo>
if the docs don't cut it that is
akashj87 has quit [Quit: leaving]
Morkel has joined #ruby
ferdev has quit [Quit: ferdev]
gyre008 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
senayar has joined #ruby
xerxas has joined #ruby
chussenot has quit [Quit: chussenot]
akashj87 has joined #ruby
ryanh has joined #ruby
<davidcelis>
I have the unfortunate necessity of undefining a couple of classes in an app I'm working on. I tried Object.send(:remove_const, :ClassName), but the class is nested in a module; I can't seem to get the syntax right
rickmasta has quit [Quit: Leaving...]
arturaz has joined #ruby
_64k has quit [Ping timeout: 252 seconds]
davidboy has joined #ruby
<davidcelis>
oh nevermind
mark_locklear has quit [Remote host closed the connection]
stkowski has joined #ruby
chussenot has joined #ruby
i_s has quit [Quit: i_s]
gyre008 has joined #ruby
Gurpartap has joined #ruby
dpollen has quit [Quit: dpollen]
<elux>
mrbrdo: cool thx
pcarrier has quit []
mmitchell has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 258 seconds]
mmitchell has joined #ruby
atmosx has quit [Quit: And so the story goes…]
skattyadz has quit [Quit: skattyadz]
i_s has joined #ruby
pcarrier has joined #ruby
gyre007 has joined #ruby
Takehiro has joined #ruby
etcetera has quit []
duosrx has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
nricciar has joined #ruby
tonini has quit [Remote host closed the connection]
gyre008 has quit [Ping timeout: 258 seconds]
etcetera has joined #ruby
atmosx has joined #ruby
tdelam has quit [Remote host closed the connection]
endzyme has joined #ruby
BlankVerse has joined #ruby
<Hanmac>
atmosx: you can use "\u2103" in ruby too
reset has quit [Ping timeout: 260 seconds]
<BlankVerse>
any gem for cron jobs in same process in ruby ... like sucker_punch?
<atmosx>
Hanmac: okay, I'll sub-it
thejefflarson_ has joined #ruby
eykosioux has quit [Read error: Connection timed out]
<atmosx>
Hanmac: now I'm trying to make launchd work with rrvm
endzyme has quit [Read error: Operation timed out]
forrest has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
Axsuul has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 258 seconds]
c0rn has joined #ruby
arietis has joined #ruby
cburyta has joined #ruby
[diecast] has joined #ruby
_nitti has joined #ruby
p8952 has joined #ruby
kapowaz has joined #ruby
notbrent has joined #ruby
stnly has quit [Ping timeout: 252 seconds]
tvw has quit []
stnly has joined #ruby
autumn has quit [Ping timeout: 272 seconds]
ozgura has joined #ruby
tspike has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
cburyta has quit [Remote host closed the connection]
kornnflake_zzz is now known as kornnflake
cburyta has joined #ruby
ryanf has joined #ruby
MehLaptop has joined #ruby
hbpoison has joined #ruby
whitedawg has quit [Quit: Leaving.]
otters has quit [Ping timeout: 258 seconds]
icole has joined #ruby
philcrissman has quit [Remote host closed the connection]
_64k has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
davetherat has quit [Remote host closed the connection]
sambao21 has joined #ruby
davetherat has joined #ruby
thomasfedb has quit [Ping timeout: 252 seconds]
cburyta has quit [Ping timeout: 252 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
francisfish has joined #ruby
tspike has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
havenwood has quit [Remote host closed the connection]
stnly has quit [Ping timeout: 245 seconds]
_nitti has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
hbpoison has quit [Ping timeout: 258 seconds]
hbpoison has joined #ruby
ebobby has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
Ankhers has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 258 seconds]
TheFuzzball has quit [Ping timeout: 252 seconds]
tenmilestereo has joined #ruby
atyz has joined #ruby
havenn_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
trewe_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 258 seconds]
jjbohn has joined #ruby
woolite64 has joined #ruby
TheFuzzball has joined #ruby
thone has joined #ruby
maxmanders has joined #ruby
workmad3 has joined #ruby
geekbri has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 255 seconds]
BizarreCake has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
glauco291 has left #ruby [#ruby]
dmerrick_ has joined #ruby
trewe has quit [Ping timeout: 264 seconds]
trewe_ has quit [Ping timeout: 246 seconds]
BSaboia__ has joined #ruby
dmerrick has quit [Ping timeout: 252 seconds]
dmerrick_ is now known as dmerrick
thone_ has quit [Ping timeout: 264 seconds]
krainboltgreene has joined #ruby
BlankVerse has left #ruby [#ruby]
autumn has joined #ruby
skattyadz has joined #ruby
chussenot has quit [Quit: chussenot]
pedropoc has joined #ruby
ferdev has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
kpshek has quit []
thomasfedb has joined #ruby
mall3n has joined #ruby
atmosx has quit [Quit: And so the story goes…]
i_s has quit [Quit: i_s]
carraroj has quit [Quit: Konversation terminated!]
ahammond has quit [Ping timeout: 252 seconds]
stnly has joined #ruby
breakingthings has quit []
atyz has quit [Quit: Leaving...]
marek__ has quit [Ping timeout: 258 seconds]
otters has joined #ruby
BSaboia has quit [Ping timeout: 258 seconds]
<wrench>
What's the difference in declaring a method like: def mymethod and declaring it like: def self.mymethod ?
<mall3n>
hey everybody. serious newbie question but I'd appreciate any help. I'm trying to strip a phrase of its punctuation and save both the character and the index of that character. I'm going to manipulate the text then add the punctuation back in later. what would be the best way to do this? I have 1.9.3.
etcetera has quit []
mulinux has joined #ruby
heliumsocket has joined #ruby
skattyadz has joined #ruby
<yxhuvud>
wrench: the scope the method end up defined in ends up not the same.
_nitti has joined #ruby
skattyadz has quit [Client Quit]
<wrench>
mall3n: maybe get the length of the string and use negative index to pull it out?
<wrench>
yxhuvud: really?
Gurpartap_ has joined #ruby
kpshek has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
c0rn has quit [Ping timeout: 258 seconds]
<yxhuvud>
yes. assuming you are in a class or module context, the first one will define an instance method, and the second one will define a method on the class or module itself.
jrajav has joined #ruby
atyz has joined #ruby
rcsheets has joined #ruby
Gurpartap has quit [Ping timeout: 245 seconds]
Gurpartap_ is now known as Gurpartap
<wrench>
yshh: punctuation = yourstr[yourstr - 1]
Mattix has quit [Quit: Leaving]
francisfish has quit [Remote host closed the connection]
eykosioux has quit [Read error: Connection timed out]
sambao21 has quit [Ping timeout: 258 seconds]
senayar has quit [Ping timeout: 252 seconds]
stkowski has quit [Quit: stkowski]
eykosioux has joined #ruby
_nitti has joined #ruby
krainboltgreene has joined #ruby
anderse has joined #ruby
drumond19 has quit [Remote host closed the connection]
mafolz has quit [Quit: mafolz]
flowerhack has joined #ruby
TheDeadSerious_ has joined #ruby
anderse has quit [Client Quit]
MrZYX is now known as MrZYX|off
jhowarth has joined #ruby
stkowski has joined #ruby
MrZYX|off is now known as MrZYX
mneorr has quit [Ping timeout: 258 seconds]
arturaz has quit [Remote host closed the connection]
Honeycomb has joined #ruby
jaygen has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
<krainboltgreene>
If you like Ruby, give Io (google "io lang") a shot. Lots of similarities, lots of places where it's more reflective, but lacks a community.
Morkel_ has joined #ruby
tjbiddle has quit [Ping timeout: 258 seconds]
nessib has quit []
sambao21 has joined #ruby
tjbiddle_ has quit [Ping timeout: 258 seconds]
Morkel has quit [Ping timeout: 258 seconds]
Morkel_ is now known as Morkel
joshwines has joined #ruby
<thinkclay>
i think i have conflicting gems and bundles.. I originally started with gems for dependencies and then switched to bundler.. but i randomly have missing sources.. my app will run and then crash.. i'll bundle install and it will run again and execute at times and fail others.. All seemingly at randow w/o any updates to my app code.. Any insight as to how i can debug?
eykosioux has quit [Remote host closed the connection]
fourq_ has joined #ruby
Catbuntu has quit [Quit: Leaving]
bitZero__ has joined #ruby
RJ3__ has joined #ruby
axl_ has joined #ruby
[0x1a] has joined #ruby
havenn_ has quit [Remote host closed the connection]
Spaceghost|cloud has joined #ruby
trewe has joined #ruby
Es0teric has joined #ruby
[Neurotic] has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
<Corey>
krainboltgreene: Helo.
sambao21 has quit [Quit: Computer has gone to sleep.]
<krainboltgreene>
corey: Hey beautiful.
rburton- has quit [Read error: Connection reset by peer]
rburton- has joined #ruby
yekta has quit [Read error: Operation timed out]
MehLaptop has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
_64k has quit [Quit: Lost terminal]
mneorr has joined #ruby
<bean>
thinkclay: would prly need error messages to help
enebo has joined #ruby
MrZYX is now known as MrZYX|off
nik_-_ has joined #ruby
ebobby has quit [Ping timeout: 264 seconds]
_huoxito has quit [Quit: Leaving]
MrZYX|off is now known as MrZYX
pcarrier has quit []
rontec76 has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 240 seconds]
nicoulaj has joined #ruby
<thinkclay>
bean: i think i tracked down the issue. Conflicting shortcuts from brew installation of some components vs rvm and gems
axl_ has quit [Ping timeout: 260 seconds]
<bean>
likely
pcarrier has joined #ruby
axl_ has joined #ruby
c0rn has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
predator117 has joined #ruby
v0n has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
etcetera has joined #ruby
axl_ has left #ruby [#ruby]
jjbohn has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
wallclockbuilder has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
averiso has quit [Quit: Computer has gone to sleep.]
<ThePicard>
does anyone know when 2.0 is making it into debian wheezy?
francisfish has joined #ruby
<thinkclay>
okay clean install of ruby. Killed rvm and it solved some of my issues. However now when after i install bundler i dont get the "bundle" command
<thinkclay>
it's in my gem list but command not found
predator117 has quit [Ping timeout: 252 seconds]
chrisja has quit [Ping timeout: 276 seconds]
<thinkclay>
closed terminal, checked my .bash_profile.. nothing there that would be conflicting
<ahammond>
what is the ultra-fast / lightweight way to check if a gem is installed in an rvm?
Zai00 has joined #ruby
crazysim has joined #ruby
<epitron>
ls .rvm/gems/ruby-name/gems/gemname
<epitron>
:D
ryanh has quit [Quit: Computer has gone to sleep.]
pdamer has quit [Quit: pdamer]
<ahammond>
epitron: I've installed rvm system wide, so is that /usr/local/rvm/gems/ruby-1.9.3/gems or something like that?
willob has joined #ruby
<epitron>
sure
willob has quit [Max SendQ exceeded]
pepper_chico has quit [Quit: Computer has gone to sleep.]
woolite64_ has joined #ruby
dougireton has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pedropoc has left #ruby [#ruby]
v0n has quit [Ping timeout: 245 seconds]
jonmilner has left #ruby [#ruby]
Stilo has joined #ruby
geggam_wk has quit [Ping timeout: 256 seconds]
anonymuse has quit [Quit: Leaving...]
skattyadz has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
geggam_wk has joined #ruby
woolite64 has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
johnjohnson has joined #ruby
theRoUS has quit [Read error: Operation timed out]
k3rn3lito has quit [Ping timeout: 252 seconds]
Roa has quit [Ping timeout: 255 seconds]
<krainboltgreene>
ahammond: There should be a way to get the gem path from rvm /cc epitron
alx- has quit [Quit: alx-]
dougireton has quit [Quit: Leaving.]
<ahammond>
krainboltgreene: yeah, but that involves running ruby. which isn't as light as just testing the existance of a file. :)
ner0x has quit [Quit: Leaving]
rh1n0 has joined #ruby
chrishough has quit [Quit: chrishough]
k3rn3lito has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
Clownz has joined #ruby
ThePicard has quit [Ping timeout: 245 seconds]
rh1n0 has quit [Client Quit]
<krainboltgreene>
ahammond: I don't think that involves running ruby. It involves using rvm.
ThePicard has joined #ruby
slyv has joined #ruby
<krainboltgreene>
rvm gemdir
<crazysim>
how about just running ruby -e "require 'bundler'" and checking the exit code?
oposomme has joined #ruby
jpcamara has quit [Quit: jpcamara]
wallcloc_ has joined #ruby
kornnflake_zzz is now known as kornnflake
Nisstyre has quit [Ping timeout: 255 seconds]
<oposomme>
Hi, I have method definition like this def foo=; # do something; end and I want to go to the definition with ctags when I am on MyClass.foo = '' Is it possible with ctags?
wallclo__ has joined #ruby
<shevy>
what is ctags
<Hanmac>
.. that was my question :(
wallclockbuilder has quit [Ping timeout: 245 seconds]
j^2 has quit [Ping timeout: 276 seconds]
<oposomme>
shevy: I should advice you to go to google because I have difficuties to explain it in english. It allows you to jump easily to methid definition like in an IDE
brianpWins has quit [Quit: brianpWins]
becom33 has quit [Ping timeout: 256 seconds]
<oposomme>
It used by Vim and Emacs mostly
<Hanmac>
oposomme so what is your mother language?
<oposomme>
Hanmac french
<Clownz>
Ancient egyptian
<krainboltgreene>
crags is a library that indexes your code.
forced_request has joined #ruby
<krainboltgreene>
That way you can find method definitions and class definitions.
marr has quit [Ping timeout: 258 seconds]
<krainboltgreene>
It's used as a lookup tool.
<Emmanuel_Chanel>
Hello!
<krainboltgreene>
oposomme: Should be.
Astralum has quit [Read error: Connection reset by peer]
rtdp has quit [Ping timeout: 252 seconds]
<epitron>
oposomme: what editor are you using?
<Emmanuel_Chanel>
Is there a way to install ruby 2.0.0 to Debian wheezy system by .deb packages?
<oposomme>
epitron: Vim
<Hanmac>
1) when you define your code like "def foo=; # do something; end" its a instance method, MyClass.foo = '' is a class method 2) ruby is much to dynamic to quess the type of an object
wallcloc_ has quit [Ping timeout: 256 seconds]
<epitron>
oposomme: i bet you can do that :) (i don't use vim)
<atmosx>
epitron: vim
heliumsocket has quit [Quit: heliumsocket]
timonv has quit [Remote host closed the connection]
Astralum has joined #ruby
<epitron>
Hanmac: hmm... that's true.. ctags wouldn't be that smart
codecop has quit [Ping timeout: 264 seconds]
<Hanmac>
Emmanuel_Chanel ... i dont think so ... even ubuntu maybe does not have deb packs for it ... but you could look in sid if something is there
<epitron>
i bet rubymine lets you do that though
<oposomme>
epitron: Yes but the problem is ctags parse a function called foo= and zhen I am on foo it don't know it
<Emmanuel_Chanel>
ok.
<shevy>
Emmanuel_Chanel you could try to compile from source :D
<cmyers>
hey guys... I need a concurrent hashmap. Looking at hamster, but I am wondering if it will be very slow for large hashes (running a benchmark now, but looking for input from you guys too). I plan to have about 1.8 million keys (strings) whose values are themselves regular hashes (but not too deeply nested).
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
angusiguess has quit [Ping timeout: 255 seconds]
piotr___ has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 255 seconds]
geggam_wk has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
mulinux has left #ruby [#ruby]
br4ndon has joined #ruby
forrest has quit [Quit: Leaving]
kornnflake is now known as kornnflake_zzz
tomzx_mac has joined #ruby
kpshek has quit []
pdamer has quit [Quit: pdamer]
razibog has joined #ruby
atmosx has quit [Quit: And so the story goes…]
Davey has quit [Quit: Computer has gone to sleep.]
butblack has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
invisime has quit [Quit: Leaving.]
kornnflake_zzz is now known as kornnflake
krislappy has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
breakingthings has quit []
bitcrave has joined #ruby
nomenkun has quit [Remote host closed the connection]
brianpWins has joined #ruby
jmeeuwen has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
mercwithamouth has joined #ruby
jmeeuwen has joined #ruby
Davey has joined #ruby
nicklas is now known as ehlu
Davey has quit [Client Quit]
endzyme has quit [Remote host closed the connection]
endzyme has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
Washu has joined #ruby
ebobby has joined #ruby
luckyruby has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
ephemerian has joined #ruby
<Washu>
Is it normal to package an interpreter in your binary when distributing a big graphical program?
rdark has quit [Quit: leaving]
interactionjaxsn has quit [Remote host closed the connection]
blacktulip has joined #ruby
ponyofdeath has joined #ruby
<ponyofdeath>
whats a good way to do this in ruby ? awk -F: 'BEGIN{OFS=":"}/root/{gsub(/.*/,"$1$2qTC8ay4$edZ/0.",$2)}1 basically take the second field in the shadow file and replace it
<Hanmac>
Washu depends on the OS
picca3 has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
<Washu>
Hanmac, well even if it has a package manager it would be good to ensure the right version is in use?
spider-mario has quit [Remote host closed the connection]
Davey has joined #ruby
<Hanmac>
hm ... normaly the the programm should work with multible versions ...
bean has quit [Quit: Computer has gone to sleep.]
blacktulip has quit [Ping timeout: 256 seconds]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
<Washu>
yea i suppose
tcstar has joined #ruby
willob has joined #ruby
<Hanmac>
shipping interpreter with program itself is only used with windows where ruby installing might be to difficult for the normal users :P
willob has quit [Max SendQ exceeded]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
<Washu>
ah ok thanks :)
willob has joined #ruby
willob has quit [Max SendQ exceeded]
yacks has joined #ruby
d48 has left #ruby ["Leaving..."]
sambao21 has quit [Quit: Computer has gone to sleep.]
dougireton has quit [Quit: Leaving.]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
nfk has quit [Quit: yawn]
dougireton has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
Choobie has joined #ruby
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
alexim has joined #ruby
dougireton has quit [Client Quit]
ryanh has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
dougireton has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
solidoodlesuppor has quit [Remote host closed the connection]
xbob has quit [Quit: Leaving]
willob has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
willob has quit [Max SendQ exceeded]
headius has joined #ruby
dustint has quit [Quit: Leaving]
pepper_chico has joined #ruby
slainer68 has quit [Remote host closed the connection]
emergion has joined #ruby
blueOxigen has quit [Ping timeout: 276 seconds]
codecop has quit [Read error: Connection reset by peer]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
_nitti has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
kornnflake is now known as kornnflake_zzz
mityaz has quit [Quit: See ya!]
jmeeuwen has quit [Ping timeout: 260 seconds]
heliumsocket has quit [Quit: heliumsocket]
dogweather has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
Davey has quit [Quit: Computer has gone to sleep.]
emergion has quit [Quit: Computer has gone to sleep.]
pcarrier has quit []
tealmage has joined #ruby
willob has joined #ruby
oposomme has quit [Quit: Leaving...]
pavilionXP has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
eAlchemi_ is now known as eAlchemist_
<cr3>
how can I replace $(PACKAGE) in Config::CONFIG variables found in the rbconfig module?
ryanh has quit [Quit: Computer has gone to sleep.]
jmeeuwen has joined #ruby
sambao21 has joined #ruby
r0bby_ is now known as robbyoconnor
huoxito has joined #ruby
luckyruby has joined #ruby
<Hanmac>
cr3 the $("PACKAGE") is parsed as RbConfig::CONFIG["PACKAGE"]
zcreative has quit [Quit: Computer has gone to sleep.]
joshman_ has quit [Ping timeout: 258 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
frem has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Quit: leaving]
blacktulip has joined #ruby
enebo has quit [Quit: enebo]
sambao21 has quit [Quit: Computer has gone to sleep.]
zcreative has joined #ruby
<cr3>
Hanmac: RbConfig::CONFIG["PACKAGE"] = 'foo'; Config::CONFIG['docdir'] still contains '
<cr3>
Hanmac: err, '$(PACKAGE)'
<cr3>
Hanmac: darn, I need to jet. bbl
cr3 has quit [Quit: leaving]
skattyadz has quit [Quit: skattyadz]
blacktulip has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
dogweather has quit [Remote host closed the connection]