apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
ic3 has joined #ruby
ic3 has left #ruby [#ruby]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
adr has quit [Remote host closed the connection]
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]
dallasm has joined #ruby
Dwarf has joined #ruby
the_jeebster has quit [Quit: Leaving.]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
skattyadz has quit [Quit: skattyadz]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
cyro has joined #ruby
<cyro> How do you use form_for with a namespaced nested resource?
<cyro> I have a campaign model
<cyro> and a transactions::sponsorship model
<cyro> and I want the path to look like /campaigns/:id/sponsorships
<cyro> ?
eykosioux has quit [Read error: Operation timed out]
pepper_chico has quit [Quit: Computer has gone to sleep.]
<dallasm> cyro: that's a rails thing, maybe try the rails irc room
fasta has joined #ruby
cyong has quit [Quit: Leaving.]
<havenwood> cyro: #RubyOnRails is probably the place to ask.
<cyro> k
<cyro> thanks
eykosioux has joined #ruby
cyong has joined #ruby
fasta_ has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
cyro has left #ruby [#ruby]
cyong has quit [Client Quit]
eka has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
nari has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby
chipotle_ has quit [Quit: cya]
joshman_ has quit [Ping timeout: 256 seconds]
duosrx has joined #ruby
predator117 has joined #ruby
pdamer has joined #ruby
cmarques has quit [Ping timeout: 264 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
bonhoeffer has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
<shevy> is there a way to type something
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> hmmm
s1n4 has joined #ruby
duosrx has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
<shevy> and not display that while typing?
SDr has quit [Read error: Connection reset by peer]
NightCreature has joined #ruby
adeponte has quit [Remote host closed the connection]
<_maes_> you mean something like password prompt
<_maes_> ?
chipotle_ has joined #ruby
<shevy> _maes_ yeah kinda
<shevy> but not display *** instead
<shevy> just nothing
<shevy> with $stdin.gets everything is display
mneorr has quit [Read error: Connection reset by peer]
astegman has joined #ruby
chico_chicote has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
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]
icole has quit [Ping timeout: 250 seconds]
eykosioux has joined #ruby
<V8Energy> I've been googling forever, no answer
pepper_chico has joined #ruby
astegman has quit [Quit: Not paying attention]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
<V8Energy> i get the error: s can't prepare datetime (Runtime error)
apok has quit [Quit: apok]
FullTiltProspect has quit [Quit: FullTiltProspect]
Ohga has quit [Read error: Connection reset by peer]
<bnagy> that doesn't really mean anything without knowing what DB you're using
emmanuelux has quit [Quit: emmanuelux]
<V8Energy> sqlite3
<bnagy> but it sounds like it doesn't like DateTimes
<bnagy> try it as a string or something
<V8Energy> but the field is datetime
kpshek has joined #ruby
<bnagy> *shrug*
sambao21 has quit [Quit: Computer has gone to sleep.]
<bnagy> providing a little more useful info might help
fllr has joined #ruby
sambao21 has joined #ruby
<fllr> Hey guys. I've just installed sass using gem, but when I type which sass, I get nothing back. What could be the problem?
<V8Energy> what else would you like to know?
williamcotton has joined #ruby
freezey has joined #ruby
danman has joined #ruby
kpshek has quit [Client Quit]
<bnagy> fllr: gems don't show up as shell commands
squidBits has quit [Quit: whoops]
dmiller1 has quit [Quit: WeeChat 0.3.9.2]
<bnagy> open irb and try require 'sass'
rickmasta has quit [Quit: Leaving...]
<fllr> bnagy: Well, it usually works out of the box when I'm on ubuntu (I'm on osx right now)...
<fllr> bnagy: thing is, I need the command line to work, so I can work on a django project with it :P
<bnagy> V8Energy: http://www.sqlite.org/datatype3.html are you sure you shouldn't be using something that's not an instance of DateTime?
rickmasta has joined #ruby
<bnagy> not that I know sqlite, it was a pile of shit when I used it
dmiller has joined #ruby
ArchBeOS is now known as PhilHendrie
Domon has joined #ruby
<fllr> bnagy: Got it to work. I had to relink ruby, which I had installed using homebrew! :) thanks, anyways!
fllr has quit [Quit: leaving]
<bnagy> woo
PhilHendrie has left #ruby ["Leaving"]
<shevy> wow
<V8Energy> bnagy: what should i use then?
williamcotton has quit [Remote host closed the connection]
<bnagy> V8Energy: looks like strings or ints, personally I'd probably go ints because they're easier to compare
endzyme has quit [Remote host closed the connection]
<V8Energy> how would that work? 3 ints? for day, month, year?
BoogShloog has quit [Quit: Bye]
<bnagy> o_0
<bnagy> just a single int
apalmblad has quit [Quit: apalmblad]
wmoxam has quit [Ping timeout: 250 seconds]
<V8Energy> hmm as a Julian date format or something?
jamesfung14 has quit [Ping timeout: 260 seconds]
<V8Energy> It sucks that I cannot find an example
<V8Energy> DateTime.now.to_i ?
<bnagy> nah seems not, I was just boggling at that
tylersmith has joined #ruby
<bnagy> you can go to_time.to_i
<bnagy> but if they didn't give you a to_i method it was probably for a reason
samphippen has quit [Quit: Computer has gone to sleep.]
bigmac has quit [Quit: Leaving]
gratseeeh has joined #ruby
drumond1_ has quit [Read error: Connection reset by peer]
<bnagy> V8Energy: http://www.sqlite.org/lang_datefunc.html ahh maybe you should just be using an iso string
<bnagy> which you get from to_s
freeayu has joined #ruby
etcetera has joined #ruby
drumond19 has joined #ruby
justsee has quit [Quit: Leaving...]
Voodoofish430 has quit [Quit: Leaving.]
<bnagy> then you can use sqlite datetime()
kpshek has joined #ruby
gratseeeh has quit [Client Quit]
pdamer has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Remote host closed the connection]
jgrevich has joined #ruby
banisterfiend has joined #ruby
danman has quit [Quit: danman]
fermion has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
eykosioux has quit [Read error: Connection timed out]
kofno has joined #ruby
jonahR has quit [Quit: jonahR]
eykosioux has joined #ruby
{b_d} has quit [Ping timeout: 246 seconds]
DrCode has joined #ruby
d2dchat has quit [Remote host closed the connection]
s1n4 has left #ruby ["leaving"]
<V8Energy> how do i get an iso string?
fermion has joined #ruby
kpshek has quit []
lupinstien has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
s1n4 has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
ukd1 has quit [Ping timeout: 248 seconds]
jamesfung14 has joined #ruby
BRMatt has quit [Ping timeout: 246 seconds]
_wtw_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
onetonturd has joined #ruby
deepinskin has joined #ruby
<aedornm> Go is making my head hurt... Where is the "fun" part people speak of?
<havenwood> V8Energy: greeting = 'Hello'.force_encoding 'ISO-8859-1'; greeting.encoding; #=> #<Encoding:ISO-8859-1>
s1n4 has quit [Quit: leaving]
<havenwood> Why you no UTF-8?
ttt has joined #ruby
<bnagy> havenwood: that's not even remotely related to the question
drumond19 has quit [Read error: Connection reset by peer]
drumond1_ has joined #ruby
miso1337 has joined #ruby
aleph-nu_ has quit [Remote host closed the connection]
wmoxam has joined #ruby
s1n4 has joined #ruby
<havenwood> bnagy: Oh, he looking for time?
<havenwood> bnagy: Had no coffee today, that is my only excuse. :P
<bnagy> :) I'm just on my second cup
Ontolog_ has quit [Remote host closed the connection]
etcetera has quit []
hasimo has quit [Remote host closed the connection]
HecAtic has joined #ruby
chipotle_ has quit [Quit: cya]
hasimo has joined #ruby
hasimo has quit [Remote host closed the connection]
hasimo has joined #ruby
adeponte has joined #ruby
rickmasta has quit [Quit: Leaving...]
bordicon has quit [Ping timeout: 252 seconds]
jacktrick has joined #ruby
phantasm66 has quit [Quit: *poof*]
dhruvasagar has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
croutongaleux has joined #ruby
jcblitz has quit [Quit: jcblitz]
drumond1_ has quit [Read error: Connection reset by peer]
drumond19 has joined #ruby
eykosioux has quit [Read error: Connection timed out]
casheew has quit [Read error: Connection reset by peer]
croutongaleux has left #ruby [#ruby]
casheew has joined #ruby
eykosioux has joined #ruby
chrishough has joined #ruby
jphpsf has quit [Ping timeout: 245 seconds]
jphpsf has joined #ruby
happydude has joined #ruby
brandon has joined #ruby
brandon is now known as Guest44762
pdamer has quit [Quit: pdamer]
h4mz1d has quit [Ping timeout: 264 seconds]
jankly has joined #ruby
pdamer has joined #ruby
Hanmac1 has joined #ruby
Hanmac2 has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
s1n4 has quit [Quit: leaving]
dallasm has quit [Remote host closed the connection]
tommyvyo has joined #ruby
Vert has quit [Remote host closed the connection]
bubbajones has joined #ruby
rezzack has quit [Quit: Leaving.]
rhinux has joined #ruby
Liothen has joined #ruby
rhinux is now known as rhinux_
rhinux_ is now known as rhinux
Takehiro has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
Hien has joined #ruby
cburyta_ has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
brianpWins has joined #ruby
cburyta has joined #ruby
emocakes has quit [Quit: emocakes]
<shevy> bnagy you addicted you!
<shevy> after the second comes the third
pdamer has quit [Quit: pdamer]
<shevy> after the third the fourth fifth and sixth
<shevy> aedornm I think it is more like "google supports it so it must be awesome"
endzyme has joined #ruby
dagnachew has quit [Quit: Leaving]
cburyta has quit [Ping timeout: 252 seconds]
_veer has joined #ruby
lewix has quit [Remote host closed the connection]
aryasam has joined #ruby
dustint has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
aryasam has quit [Client Quit]
HecAtic has quit [Quit: Àá¼ö]
Xeago has joined #ruby
chendo_ has quit [Ping timeout: 264 seconds]
chendo_ has joined #ruby
beneggett has joined #ruby
_veer has quit [Ping timeout: 258 seconds]
lewix has joined #ruby
lewix_ has joined #ruby
agjacome has quit [Quit: leaving]
DrCode has quit [Quit: ZNC - http://znc.in]
notbrent_ is now known as notbrent
DrCode has joined #ruby
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
Caelum has quit [Ping timeout: 250 seconds]
gtc has quit [Ping timeout: 250 seconds]
jphpsf has joined #ruby
nwertman_ has quit [Ping timeout: 264 seconds]
Caelum has joined #ruby
<Kovensky> but anything you send to a program goes through stdin
gtc has joined #ruby
<Kovensky> anything you type at the keyboard goes through stdin too
<Kovensky> even if you turn off shell echo
<Kovensky> s/shell/terminal/
rismoney has quit [Read error: Connection reset by peer]
<Kovensky> anyway, bed time :S
seich- has quit [Quit: See you guys later]
mmitchell has joined #ruby
dcwu has joined #ruby
seich- has joined #ruby
lewix_ has quit [Remote host closed the connection]
rupee has quit [Ping timeout: 256 seconds]
jphpsf has quit [Ping timeout: 248 seconds]
lancepantz is now known as lancepantz_
_veer has joined #ruby
cburyta has quit [Ping timeout: 252 seconds]
Ontolog has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 252 seconds]
ttt has quit [Remote host closed the connection]
Ontolog has joined #ruby
mmitchell has quit [Remote host closed the connection]
hasimo has quit [Remote host closed the connection]
hasimo has joined #ruby
philcrissman has joined #ruby
_wtw_ has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 252 seconds]
ebobby has joined #ruby
pepper_chico has quit [Quit: I'm Quitting.]
MehLaptop has joined #ruby
pepper_chico has joined #ruby
_nitti has joined #ruby
freezey has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
dhruvasagar has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
hasimo has quit [Remote host closed the connection]
pyx has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
pyx has quit [Client Quit]
freeayu has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
philcrissman has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
MehLaptop has quit [Remote host closed the connection]
jphpsf has joined #ruby
mikepack has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 264 seconds]
angle has joined #ruby
h4mz1d has joined #ruby
angle has quit [Read error: Connection reset by peer]
joshman_ has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
beneggett has quit [Ping timeout: 276 seconds]
eykosioux has quit [Read error: Connection timed out]
dhruvasagar has joined #ruby
eykosioux has joined #ruby
aquaman has joined #ruby
sayan has joined #ruby
zeade has joined #ruby
lewix has joined #ruby
Adys_ is now known as Adys
ddd has quit [Ping timeout: 245 seconds]
madb055 has quit [Ping timeout: 260 seconds]
cheese1756_ has quit [Quit: ZNC - http://znc.in]
cheese1756 has joined #ruby
ddd has joined #ruby
FullTiltProspect has joined #ruby
Opettaja has joined #ruby
mneorr has joined #ruby
jphpsf has quit [Read error: Operation timed out]
jacktrick has quit [Quit: Leaving]
hbpoison has joined #ruby
FullTiltProspect has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
Honeycomb has joined #ruby
Honeycomb has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 260 seconds]
Honeycomb has joined #ruby
eimajenthat has joined #ruby
justsee has joined #ruby
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.
xpen has joined #ruby
Beoran_ has joined #ruby
cyong has joined #ruby
rboyd has joined #ruby
h4mz1d has quit [Ping timeout: 248 seconds]
nwertman has joined #ruby
generalissimo has joined #ruby
<hemanth> worm, mkmf is missing
<hemanth> worm, sudo aptitude install ruby1.9.1-dev #is you are on debina
<hemanth> *debian
banjara has joined #ruby
mneorr has joined #ruby
banjara has quit [Client Quit]
<hemanth> or just sudo apt-get install ruby-dev
Nisstyre-laptop has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
<worm> I am doing so... Thanks.
Opettaja has quit [Remote host closed the connection]
yashshah has joined #ruby
butblack has joined #ruby
butblack has left #ruby [#ruby]
Takehiro has joined #ruby
gothicsouth has quit [Quit: leaving]
gothicsouth has joined #ruby
Emplitz has joined #ruby
nwertman has quit [Ping timeout: 245 seconds]
himsin has quit [Remote host closed the connection]
Opettaja has joined #ruby
himsin has joined #ruby
<worm> And it works. Thanks a lot!
sambao21 has quit [Quit: Computer has gone to sleep.]
<hemanth> worm, np enjoy
nopper` has quit [Ping timeout: 252 seconds]
ryanf has quit [Quit: leaving]
angusiguess has joined #ruby
divout has quit [Quit: Leaving.]
h4mz1d has joined #ruby
freeayu has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
Domon has quit [Remote host closed the connection]
Caelum has quit [Ping timeout: 252 seconds]
Caelum has joined #ruby
ukd1 has joined #ruby
ebobby has quit [Ping timeout: 264 seconds]
jphpsf has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
evenix has joined #ruby
nopper has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest60317
kofno has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
jurassic has joined #ruby
worm has quit [Quit: leaving]
etcetera has joined #ruby
markalanevans has quit [Ping timeout: 252 seconds]
divout has joined #ruby
evenix has quit [Ping timeout: 250 seconds]
guyz has quit [Ping timeout: 272 seconds]
averiso has joined #ruby
etcetera has quit [Client Quit]
h4mz1d has quit [Ping timeout: 250 seconds]
danman has quit [Quit: danman]
rboyd has quit [Quit: rboyd]
ukd1 has quit [Ping timeout: 246 seconds]
jphpsf has joined #ruby
sambao21 has joined #ruby
eimajenthat has quit [Quit: eimajenthat]
ckrailo has joined #ruby
sambao21 has quit [Client Quit]
ozgura has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
mneorr has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 252 seconds]
jurassic has quit [Quit: jurassic]
chendo_ has joined #ruby
a_a_g has joined #ruby
leo2007 has quit [Quit: rcirc on GNU Emacs 24.3.1]
Nisstyre-laptop has joined #ruby
whitedawg has joined #ruby
SCommette has joined #ruby
girija has joined #ruby
rippa has joined #ruby
havenwood has joined #ruby
jurassic has joined #ruby
ttt has quit [Remote host closed the connection]
murthyteja has joined #ruby
one has joined #ruby
thejefflarson_ is now known as thejefflarson
<murthyteja> exit
murthyteja has quit [Client Quit]
thejefflarson is now known as thejefflarson_
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
v0n has joined #ruby
ukd1 has joined #ruby
Domon has joined #ruby
jphpsf has quit [Ping timeout: 245 seconds]
cha1tanya has joined #ruby
rtdp has joined #ruby
xraay has joined #ruby
daemoen has quit [Quit: WeeChat 0.4.0]
<xraay> Hey bundle is silently failing to install native files
<xraay> OSX Mountain Lion
FuzaiDesktop has quit [Ping timeout: 260 seconds]
chrishunt has quit [Quit: ZzZzZz...]
maletor has joined #ruby
<xraay> Oh it appears to be hella confused about home the name of my home directory has a space in it
<xraay> Ok thank you
mneorr has joined #ruby
ukd1 has quit [Read error: Operation timed out]
shock_one has joined #ruby
jphpsf has joined #ruby
SCommette has quit [Quit: SCommette]
Opettaja has quit [Quit: Leaving]
rgbdev has joined #ruby
mockra has quit [Remote host closed the connection]
xraay has quit [Ping timeout: 260 seconds]
v0n has quit [Ping timeout: 260 seconds]
wallclockbuilder has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
hbpoison has quit [Ping timeout: 250 seconds]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mikepack has joined #ruby
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
lewix_ has joined #ruby
wallcloc_ has joined #ruby
bean__ has joined #ruby
V8Energy has quit [Ping timeout: 250 seconds]
ahammond has joined #ruby
gothicsouth has quit [Quit: Leaving]
wallclockbuilder has quit [Ping timeout: 264 seconds]
lewix has quit [Ping timeout: 260 seconds]
Choobie has quit [Remote host closed the connection]
ryanf has joined #ruby
daemoen has joined #ruby
eykosioux has quit [Read error: Connection timed out]
eykosioux has joined #ruby
yacks has joined #ruby
jurassic has quit [Quit: jurassic]
whitedawg1 has joined #ruby
ananthakumaran has joined #ruby
ezkl has joined #ruby
reset has joined #ruby
whitedawg has quit [Ping timeout: 248 seconds]
cantonic has quit [Quit: cantonic]
chendo_ has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
aderyabin has joined #ruby
FuzaiDesktop has joined #ruby
generalissimo has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby
kofno has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
icole has quit [Remote host closed the connection]
ukd1 has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
artofraw has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
wallcloc_ has quit [Ping timeout: 258 seconds]
icole has joined #ruby
artofraw has quit [Remote host closed the connection]
reset_ has joined #ruby
reset has quit [Read error: Connection reset by peer]
whitedawg1 has quit [Quit: Leaving.]
ukd1 has quit [Ping timeout: 264 seconds]
jphpsf has quit [Quit: Leaving]
kofno has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
Takehiro has quit [Remote host closed the connection]
brianpWins has joined #ruby
noop has joined #ruby
xraay has joined #ruby
Takehiro has joined #ruby
dmiller has joined #ruby
Astralum has joined #ruby
browndawg has joined #ruby
Astral_ has quit [Ping timeout: 250 seconds]
mneorr_ has joined #ruby
chendo_ has joined #ruby
daemoen has quit [Quit: WeeChat 0.4.0]
endzyme has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 252 seconds]
daemoen has joined #ruby
tanmay has joined #ruby
_adeponte has joined #ruby
adeponte has quit [Ping timeout: 246 seconds]
rocket has joined #ruby
ahammond has quit [Quit: ahammond]
cburyta has joined #ruby
hashmal has joined #ruby
adeponte has joined #ruby
banjara has joined #ruby
goganchic has joined #ruby
goganchic has quit [Remote host closed the connection]
aderyabin has quit [Quit: Textual IRC Client: www.textualapp.com]
goganchic has joined #ruby
whitedawg has joined #ruby
Quebert has quit [Ping timeout: 250 seconds]
az7ar has joined #ruby
etcetera has joined #ruby
ttt has joined #ruby
_adeponte has quit [Ping timeout: 252 seconds]
ping-pong has quit [Ping timeout: 240 seconds]
justin1 has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
carraroj has joined #ruby
ocnam has joined #ruby
_adeponte has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
ping-pong has joined #ruby
az7ar has quit [Remote host closed the connection]
yashshah has quit [Read error: Connection reset by peer]
mneorr_ has quit [Read error: Connection timed out]
yashshah has joined #ruby
stkowski has quit [Quit: stkowski]
adeponte has quit [Ping timeout: 258 seconds]
ttt has quit [Ping timeout: 256 seconds]
marwinism has quit [Ping timeout: 252 seconds]
quazimodo has joined #ruby
mneorr has joined #ruby
marwinis1 has joined #ruby
Schmidt has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
etcetera has quit []
Schmidt has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
ukd1 has joined #ruby
<bnagy> is it OK to use RbConfig::CONFIG['ruby_install_name'] to work out if you need to invoke ruby vs jruby?
cburyta has quit [Ping timeout: 260 seconds]
<bnagy> jruby doesn't set up a symlink... usually I do it myself, but in this instance that's inelegant
shock_one has quit [Ping timeout: 264 seconds]
<bnagy> also, TIL you have to require 'rbconfig' on 1.9.2, weird
ukd1 has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
JohnBat26 has joined #ruby
huoxito has quit [Quit: Leaving]
<Hanmac> bnagy: could you run RbConfig::CONFIG.each_key.select {|k|RbConfig::CONFIG[k] =~ /java/i }
JohnBat26 has quit [Read error: Connection reset by peer]
u- has joined #ruby
ocnam has quit [Quit: Quit: Textual IRC Client: http://www.textualapp.com/]
jacky has quit [Excess Flood]
<Mekkis> is File.write blocking?
timonv has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
<Hanmac> Mekkis you mean currenty or normaly?
<Mekkis> normally
ttt has joined #ruby
<Mekkis> there's a difference?
nga4 has joined #ruby
yashshah has joined #ruby
sambio has quit []
<Hanmac> hm i hope not :P
<Hanmac> Mekkis: you could look at syswrite ... maybe this is was you are looking for
tonini has joined #ruby
ocnam has joined #ruby
pyrac has joined #ruby
<bnagy> Hanmac: RbConfig::CONFIG.values.grep(/java/).any? :P
timonv has quit [Remote host closed the connection]
<bnagy> but checking explicitly for java is a bit less pretty than trying to find the name of the interpreter primarily
d2dchat has quit [Remote host closed the connection]
<Hanmac> bnagy no, i wanted to look in what values java is
<Hanmac> but yours could work to
codecop has joined #ruby
<bnagy> well to make them equivalent you just drop the .any? no? Apart from your case insensitive?
tanmay has quit [Quit: Konversation terminated!]
<lewix_> I'm looking for a good api to play with as I'm still learning
<Hanmac> bnagy yeah but i also want to know the keys
<bnagy> ahhh
lemonsparrow has quit [Quit: Page closed]
mneorr has quit [Read error: Connection timed out]
<bnagy> lewix_: api to do what?
mneorr has joined #ruby
francisfish has quit [Remote host closed the connection]
lemonsparrow has joined #ruby
<Hanmac> lewix_ what kind of api? some ruby gem or some C(++) extension?
lewix_ has quit [Remote host closed the connection]
yashshah has quit [Read error: Connection reset by peer]
reset_ has quit [Quit: Leaving...]
yashshah has joined #ruby
xpen has quit [Remote host closed the connection]
subbyyy has quit [Quit: none 0.3.9.2]
reset has joined #ruby
eykosioux has quit [Read error: Connection timed out]
Clownz has quit [Ping timeout: 252 seconds]
eykosioux has joined #ruby
ukd1 has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
MehLaptop has joined #ruby
becom33 has quit [Read error: No route to host]
Nisstyre-laptop has quit [Quit: Leaving]
tagrudev has joined #ruby
mneorr has quit [Read error: Connection timed out]
cyong has quit [Quit: Leaving.]
mneorr has joined #ruby
ukd1 has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
dhruvasagar has joined #ruby
xraay has left #ruby [#ruby]
puppeh has joined #ruby
bordicon has joined #ruby
lewis has joined #ruby
lewis has quit [Changing host]
lewis has joined #ruby
Hanmac has quit [Quit: Leaving.]
Ontolog has joined #ruby
Es0teric has joined #ruby
zamN has quit []
Neandre has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
rippa has quit [Ping timeout: 240 seconds]
Villadelfia has quit [Ping timeout: 250 seconds]
Bry8Star has quit [Ping timeout: 276 seconds]
SeySayux has quit [Ping timeout: 252 seconds]
cheez0r has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
SeySayux has joined #ruby
workmad3 has joined #ruby
Villadelfia has joined #ruby
mneorr has quit [Read error: Connection timed out]
apeiros_ has quit [Remote host closed the connection]
mneorr has joined #ruby
vlad_starkov has joined #ruby
cburyta has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
nwertman has joined #ruby
himsin has quit [Ping timeout: 252 seconds]
xardas has joined #ruby
Morkel has joined #ruby
Hanmac has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
girija has quit [Read error: Connection reset by peer]
cheez0r has joined #ruby
girija has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
cburyta has quit [Ping timeout: 240 seconds]
nwertman has quit [Ping timeout: 252 seconds]
mattb has quit [Ping timeout: 272 seconds]
zigomir has joined #ruby
<Hanmac> bnagy are you still there?
<Hanmac> bnagy i think the best way would be to use: RbConfig::CONFIG["arch"] =~ /java/
Bry8Star has joined #ruby
threesome has joined #ruby
banjara has quit [Quit: Leaving.]
ukd1 has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
drale2k has joined #ruby
wallclockbuilder has quit [Remote host closed the connection]
MehLaptop has quit [Remote host closed the connection]
hbpoison has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
ukd1 has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
filipe has joined #ruby
<lewis> Hanmac: best way for?
rgbdev has quit [Quit: rgbdev]
<Hanmac> lewis he wants to check if jruby is used or not
<lewis> oh
Banistergalaxy has joined #ruby
<lewis> knowing sinatra does not make you marketable at all it seems :/
<lewis> rails or die trying lol
bluOxigen has joined #ruby
ukd1 has joined #ruby
mneorr has quit [Read error: Connection timed out]
xpen has joined #ruby
mafolz has joined #ruby
atyz has joined #ruby
mneorr has joined #ruby
Ontolog has quit [Remote host closed the connection]
dr_bob1 has joined #ruby
sahbeewah has quit [Ping timeout: 260 seconds]
goganchic has quit []
KevinSjoberg has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
jprovazn has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
threesome has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
whitedawg has quit [Quit: Leaving.]
security has joined #ruby
aapzak has joined #ruby
megha has quit [Ping timeout: 252 seconds]
eykosioux has quit [Read error: Connection timed out]
eykosioux has joined #ruby
eAlchem__ has quit [Remote host closed the connection]
eAlchemist has joined #ruby
pyrac has quit [Quit: pyrac]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 260 seconds]
sahbeewah has joined #ruby
pyrac has joined #ruby
pyrac has quit [Client Quit]
haxrbyte_ has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
eAlchemist has quit [Ping timeout: 250 seconds]
lemonsparrow has quit [Ping timeout: 245 seconds]
Bry8Star has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
ephemerian has joined #ruby
Bry8Star has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
haxrbyte_ has quit [Ping timeout: 248 seconds]
cha1tanya has quit [Ping timeout: 245 seconds]
jacky- has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ocnam has quit [Quit: Quit: Textual IRC Client: http://www.textualapp.com/]
ozgura has joined #ruby
hbpoison has joined #ruby
jimeh has joined #ruby
DotMH has joined #ruby
lolmaus has joined #ruby
thebastl has joined #ruby
dr_bob1 is now known as dr_bob
zigomir has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 260 seconds]
mntzn has joined #ruby
justin1 has joined #ruby
sepp2k has joined #ruby
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]
duosrx has joined #ruby
e-dard has quit [Quit: ZNC - http://znc.in]
Mattix has quit [Read error: Connection reset by peer]
cha1tanya has quit [Ping timeout: 258 seconds]
lkba has joined #ruby
e-dard has joined #ruby
Mattix has joined #ruby
Vektur has quit [Ping timeout: 245 seconds]
hasimo has quit [Remote host closed the connection]
apeiros_ has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
eAlchemi_ has quit [Ping timeout: 276 seconds]
m3pow has quit [Read error: Connection reset by peer]
banjara has joined #ruby
mpfundstein has joined #ruby
lewis has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 246 seconds]
Axsuul has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
evenix has joined #ruby
sayan_ has joined #ruby
sayan_ has quit [Client Quit]
ferdev has joined #ruby
evenix has quit [Read error: Operation timed out]
noop has quit [Ping timeout: 245 seconds]
banjara has quit [Ping timeout: 248 seconds]
Shrink has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
JohnBat26 has joined #ruby
chussenot has joined #ruby
blacktulip has joined #ruby
security has quit [Ping timeout: 255 seconds]
nomenkun has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
nomenkun_ has joined #ruby
yashshah has joined #ruby
threesome has joined #ruby
trumpeter2003 has joined #ruby
hoelzro|away is now known as hoelzro
Al____ has joined #ruby
bricker`LA is now known as bricker
bricker is now known as bricker`LA
security has joined #ruby
timonv has quit [Remote host closed the connection]
adambeynon has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
marr has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
jankly has quit [Ping timeout: 258 seconds]
hemanth has joined #ruby
love_color_text has joined #ruby
marr has quit [Client Quit]
hasimo has joined #ruby
Shrink has joined #ruby
dcwu has quit [Quit: Leaving.]
chendo_ has quit [Ping timeout: 264 seconds]
_adeponte has quit [Remote host closed the connection]
noop has joined #ruby
love_color_text has quit [Remote host closed the connection]
chendo_ has joined #ruby
love_color_text has joined #ruby
mulinux has quit [Quit: mulinux]
duosrx has quit [Remote host closed the connection]
monkegjinni has joined #ruby
timmow has joined #ruby
m3pow has joined #ruby
eAlchemi_ has joined #ruby
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
rdark has joined #ruby
rburton- has joined #ruby
m4rtijn has joined #ruby
eka has joined #ruby
skattyadz has quit [Quit: skattyadz]
mneorr has joined #ruby
LouisRoR has joined #ruby
timmow_ has joined #ruby
kwatz has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
ukd1_ has quit [Ping timeout: 250 seconds]
eAlchemi_ has quit [Ping timeout: 250 seconds]
banjara has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
bordicon has quit [Ping timeout: 260 seconds]
daniel_- has joined #ruby
kwatz is now known as destructure
destructure has quit [Changing host]
destructure has joined #ruby
beiter has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
eykosioux has quit [Read error: Connection timed out]
xpen has joined #ruby
duosrx has joined #ruby
eykosioux has joined #ruby
blacktulip has quit [Remote host closed the connection]
wreckimnaked has joined #ruby
blacktulip has joined #ruby
monkegjinni has quit [Remote host closed the connection]
rocket has quit [Ping timeout: 250 seconds]
wallclockbuilder has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
khismetix has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Vainoharhainen has joined #ruby
Ng|Adonixx7148 has joined #ruby
r0bby has joined #ruby
jetblack_ has joined #ruby
icole_ has joined #ruby
Atrophius_ has joined #ruby
FDj_ has joined #ruby
razibog has joined #ruby
husimon___ has joined #ruby
nanothief_ has joined #ruby
marcgg_ has joined #ruby
moos3_ has joined #ruby
Morkel_ has joined #ruby
sedeki has joined #ruby
niklasb has joined #ruby
BRMatt has joined #ruby
wallclockbuilder has quit [Read error: Connection reset by peer]
jayne_ has joined #ruby
ananthakumaran1 has joined #ruby
<sedeki> I need to run a job async with PHP in fact. I've heard that there is a server written in ruby to do this?
<sedeki> forgot its name
lolmaus has quit []
fuzai_ has joined #ruby
diego_k has joined #ruby
monkegjinni has joined #ruby
wallclockbuilder has joined #ruby
statarb3 has joined #ruby
Bish has joined #ruby
babinho_ has joined #ruby
kaffepan1a has joined #ruby
csmrfx_ has joined #ruby
pietr0_ has joined #ruby
crankycoder has joined #ruby
matrixis1 has joined #ruby
Radnor_ has joined #ruby
alexhanh has joined #ruby
nimred_ has joined #ruby
Blue_Ice_ has joined #ruby
sharpobj1ct has joined #ruby
lusory_ has joined #ruby
russfran1 has joined #ruby
coaster_ has joined #ruby
love_color_text has quit [Quit: Leaving...]
nwertman has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
hasimo has quit [Remote host closed the connection]
love_color_text has joined #ruby
wchun has left #ruby ["Leaving"]
p8952 has joined #ruby
yasu__ has joined #ruby
xpen has quit [Ping timeout: 258 seconds]
love_color_text is now known as keyvan
wchun has joined #ruby
lolmaus has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Banistergalaxy has joined #ruby
mosheee has joined #ruby
brjannc has joined #ruby
bjeanes- has joined #ruby
p8952 has quit [Client Quit]
p8952 has joined #ruby
moos3 has quit [*.net *.split]
jayne has quit [*.net *.split]
ananthakumaran has quit [*.net *.split]
icole has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
Morkel has quit [*.net *.split]
pasties has quit [*.net *.split]
matrixise has quit [*.net *.split]
fuzai has quit [*.net *.split]
huismon has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
diegok has quit [*.net *.split]
marcgg has quit [*.net *.split]
FDj has quit [*.net *.split]
Bish_ has quit [*.net *.split]
alexhanh_ has quit [*.net *.split]
russfrank has quit [*.net *.split]
goraxe has quit [*.net *.split]
coaster has quit [*.net *.split]
csmrfx has quit [*.net *.split]
mr-rich has quit [*.net *.split]
jetblack has quit [*.net *.split]
kaffepanna has quit [*.net *.split]
octarine has quit [*.net *.split]
babinho has quit [*.net *.split]
lusory has quit [*.net *.split]
pietr0 has quit [*.net *.split]
Atrophius has quit [*.net *.split]
moshee has quit [*.net *.split]
axxT has quit [*.net *.split]
nanothief has quit [*.net *.split]
Radnor has quit [*.net *.split]
crankyco1er has quit [*.net *.split]
pigoz has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
jacobw has quit [*.net *.split]
im0b has quit [*.net *.split]
nimred has quit [*.net *.split]
fcoury has quit [*.net *.split]
cool has quit [*.net *.split]
sharpobject has quit [*.net *.split]
bjeanes has quit [*.net *.split]
randym has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
yasu has quit [*.net *.split]
jeekl has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
brjannc| has quit [*.net *.split]
moos3_ is now known as moos3
Morkel_ is now known as Morkel
fuzai_ is now known as fuzai
wookiehangover has joined #ruby
Zai00 has joined #ruby
nwertman has quit [Ping timeout: 248 seconds]
pepper_chico has quit [Quit: Computer has gone to sleep.]
wf2f has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
eAlchemist has joined #ruby
techlife has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
hasimo has joined #ruby
<Hanmac> noo we are under 800 ...
hasimo has quit [Remote host closed the connection]
timonv has joined #ruby
hasimo has joined #ruby
hasimo has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
mneorr has joined #ruby
maveonair has joined #ruby
mr-rich has joined #ruby
skattyadz has joined #ruby
hasimo has joined #ruby
pigoz has joined #ruby
hasimo has quit [Read error: Connection reset by peer]
jeekl has joined #ruby
goraxe has joined #ruby
jacobw has joined #ruby
techlife has joined #ruby
sleetdrop has joined #ruby
Morkel has quit [Quit: Morkel]
backjlack has joined #ruby
Mission-Critical has joined #ruby
hasimo has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
eAlchemist has quit [Ping timeout: 255 seconds]
banjara has joined #ruby
ExxKA has joined #ruby
atmosx has joined #ruby
drale2k has quit [Quit: Leaving...]
jurassic has joined #ruby
tay11 has quit [Ping timeout: 248 seconds]
skattyadz has quit [Quit: skattyadz]
chipotle_ has joined #ruby
slainer68 has joined #ruby
Mission-Critical is now known as MissionCritical
jurassic has quit [Client Quit]
rkj has quit [Ping timeout: 240 seconds]
daniel_- has quit [Read error: Operation timed out]
Banistergalaxy has quit [Ping timeout: 258 seconds]
one has quit [Ping timeout: 276 seconds]
banjara has quit [Ping timeout: 258 seconds]
ozgura has quit [Remote host closed the connection]
chipotle_ has quit [Quit: cya]
hbpoison has quit [Ping timeout: 246 seconds]
shuky has quit [Ping timeout: 264 seconds]
rkj has joined #ruby
dcwu has joined #ruby
mattb has joined #ruby
atmosx has quit [Quit: And so the story goes…]
bonhoeffer has joined #ruby
berserkr has joined #ruby
aaronmcadam has joined #ruby
keyvan has quit [Remote host closed the connection]
wallclockbuilder has quit [Ping timeout: 248 seconds]
horrror has joined #ruby
horrror_ has joined #ruby
himsin has joined #ruby
wallclockbuilder has joined #ruby
adeponte has joined #ruby
cantonic has joined #ruby
tms has joined #ruby
tms has left #ruby [#ruby]
gyre007 has joined #ruby
angusiguess has joined #ruby
nkr has joined #ruby
randym has joined #ruby
adac has joined #ruby
dawkirst has joined #ruby
horrror has quit [Ping timeout: 260 seconds]
horrror_ is now known as horrror
<adac> how to find out which kind of object a 'variable' is?
<hoelzro> adac: variable.class
<hoelzro> >> 3.class
<eval-in> hoelzro => Fixnum (http://eval.in/12582)
<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?
<sedeki> apeiros_ thanks
<Hanmac> its b)
sedeki has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
blaxter has joined #ruby
p8952 has quit [Quit: Leaving]
security has quit [Quit: WeeChat 0.4.0]
<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 ;)
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
<Spooner_> Or you could email it to yourself :D
angle has joined #ruby
yshh has joined #ruby
<dawkirst> Spooner_, thanks
<Hanmac> or send it to the EA server :P
<dawkirst> Spooner_, how is redis different from a "full" noSQL DB?
<aedorn> Love calls at 5am that wake me up about some database issue. Nothing wakes you up quite like MySQL crapping all over itself!
browndawg has quit [Ping timeout: 252 seconds]
eykosioux has quit [Read error: Connection timed out]
apod has joined #ruby
eykosioux has joined #ruby
<Spooner_> dawkirst, redis is just key/value. noSQL contains data in a full tree structure (which presents itself as JSON).
<Spooner_> I'm no expert on DBs though, so I'm sure people can give better definitions.
<aedorn> Spooner_: no, that sounds good.
samphippen has quit [Quit: Computer has gone to sleep.]
banjara has quit [Ping timeout: 255 seconds]
_64k has joined #ruby
deepinskin has quit [Quit: Leaving]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
deepinskin has joined #ruby
wreckimnaked has joined #ruby
<dawkirst> Spooner_, thanks a lot
workmad3 has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
blueOxigen has joined #ruby
deepinskin has quit [Max SendQ exceeded]
<JonnieCache> use postgresql
<JonnieCache> it has a key value store built in
<JonnieCache> its absolutely brilliant
deepinskin has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
deepinskin has quit [Max SendQ exceeded]
kpshek has joined #ruby
deepinskin has joined #ruby
realDAB has quit [Quit: realDAB]
Honeycomb has quit [Quit: Leaving.]
yasu__ is now known as yasu
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
slainer68 has joined #ruby
cupakromer has joined #ruby
wmoxam has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
eAlchemist has joined #ruby
deepinskin has quit [Max SendQ exceeded]
browndawg has joined #ruby
deepinskin has joined #ruby
Neomex has joined #ruby
deepinskin has quit [Max SendQ exceeded]
deepinskin has joined #ruby
Neomex has quit [Client Quit]
breakingthings has joined #ruby
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]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
deepinskin has joined #ruby
deepinskin has quit [Max SendQ exceeded]
krawchyk has joined #ruby
deepinskin has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
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 :(
crankycoder has joined #ruby
<FiXion> it's rubygems that is
<MrZYX> maybe gist the output of `gem env`
<FiXion> gist ?
<MrZYX> pastebin, link whatever
haxrbyte has joined #ruby
Grieg has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
<Hanmac> FiXion did you require "rubygems" first?
deepinskin has quit [Max SendQ exceeded]
Grieg has left #ruby [#ruby]
deepinskin has joined #ruby
<FiXion> Hanmac: I'm using https://github.com/obfuscurity/nagios-scripts/blob/master/check_graphite - I'll try to add require rubygems first
drewrawitz has joined #ruby
rippa has joined #ruby
deepinskin has quit [Max SendQ exceeded]
drewrawitz has left #ruby [#ruby]
swoosh has quit [Quit: Textual IRC Client: www.textualapp.com]
<FiXion> if I add require "rubygems" - it fails with http://pastie.org/6471162
jrajav has joined #ruby
<FiXion> ahh - my bad
<FiXion> I think that worked
deepinskin has joined #ruby
Mohan has joined #ruby
<FiXion> perfect
jpfuentes2 has joined #ruby
<FiXion> Hanmac: thank you for the tip.
<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!
dmiller1 has joined #ruby
dmerrick has joined #ruby
deepinskin has quit [Max SendQ exceeded]
kpshek has quit []
dmiller has quit [Ping timeout: 252 seconds]
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 :)
jmeeuwen has joined #ruby
aaronmcadam has quit [Quit: Linkinus - http://linkinus.com]
casheew has joined #ruby
<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
jjbohn has quit [Quit: Leaving...]
yashshah has joined #ruby
mikecmpbll has joined #ruby
sambao21 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jerius has quit [Ping timeout: 260 seconds]
eAlchemist has joined #ruby
marr has joined #ruby
a_black_develope has joined #ruby
interactionjaxsn has joined #ruby
Gue______ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
casheew has quit [Read error: Connection reset by peer]
NiteRain has joined #ruby
casheew has joined #ruby
<geekbri> Fuzai: are you using the MRI?
<Fuzai> I'm not sure what that is
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
joshman_ has joined #ruby
<Fuzai> i've got a bot that spits out a saying randomly from a list
keyvan has quit [Read error: Connection reset by peer]
<Fuzai> but i seem to see the same 20 sayings for a majority of the time
<Fuzai> i built a simple test in irb
<geekbri> Fuzai: sorry ok, its pretty safe to assume youre using the MRI as long as you aren't using like Jruby or rubinius
deepinskin has joined #ruby
<Fuzai> no i'm not using jruby
<geekbri> FunkySayu: if so you should be able to just view the source here, https://github.com/ruby/ruby
atno has quit [Remote host closed the connection]
neku has quit [Quit: Linkinus - http://linkinus.com]
jjbohn has joined #ruby
<geekbri> Just make sure you view the correct Tag for whatever version you are using :)
<Fuzai> I made a test in irb, and it seems that there are two patterns
<apeiros_> Fuzai: there is no such thing as "true random"
nateberkopec has joined #ruby
<apeiros_> Fuzai: ruby afaik uses a common mersenne twister algorithm for PRN generation
<Fuzai> i understand that
_nitti has joined #ruby
deepinskin has quit [Max SendQ exceeded]
<Fuzai> My brain seems to see a pattern
atno has joined #ruby
<Fuzai> of a high set of numbers
<Fuzai> and a low set of numbers
nfk has joined #ruby
<heftig> don't trust your brain
<apeiros_> either you're rainman, or your brain is wrong
<Fuzai> i took 1..100 and sampled it 1000 times
<heftig> it's very good at detecting patterns where there are none. it's called illusion
<apeiros_> or of course you fucked up and e.g. used srand
deepinskin has joined #ruby
<apeiros_> heftig: I think seeing patterns where there are none has its own name
jerius has joined #ruby
Flex has joined #ruby
<heftig> probably, but it's an illusion
haxrbyte has joined #ruby
destructure has quit [Quit: Lost terminal]
<geekbri> It's like how people think ipod shuffle is broken :)
<heftig> apophenia
<apeiros_> Fuzai: google birthday paradox
tcstar has joined #ruby
<apeiros_> anything else - sample, group, count
deepinskin has quit [Max SendQ exceeded]
codecop has quit [Quit: Išeinu]
deepinskin has joined #ruby
<heftig> would you say "OXXXOXXXOXXOOOXOOXXOO" is random?
<JonnieCache> heftig: mu
<Fuzai> yea but birthdays i think more have to do with holidays then randomness
josephmartz has joined #ruby
tomzx_mac has quit [Ping timeout: 258 seconds]
<Fuzai> it seems that everytime i meet a bunch of people that have similar birthdays, i can go back 9 months and find the holiday weekend
kwatz has joined #ruby
kwatz is now known as destructure
eykosioux has quit [Read error: Connection timed out]
destructure has quit [Changing host]
destructure has joined #ruby
<JonnieCache> Fuzai: definitely true
<apeiros_> >> a = [*1..100]; Array.new(100_000) { a.sample }.group_by { |x| x }.map { |x,vs| [x, vs.size] }.minmax
<eval-in> apeiros_ => [[1, 1018], [100, 1061]] (http://eval.in/12586)
sahbeewah has quit [Ping timeout: 258 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros_> oh, stupid…
<Fuzai> here let me pastie my irb output
eykosioux has joined #ruby
deepinskin has quit [Max SendQ exceeded]
<apeiros_> >> a = [*1..100]; Array.new(100_000) { a.sample }.group_by { |x| x }.map { |x,vs| [x, vs.size] }.minmax_by { |x,c| c }
<eval-in> apeiros_ => [[61, 938], [28, 1079]] (http://eval.in/12587)
<Fuzai> i'm sure you guys are right, it just looks weird to me
jlast has joined #ruby
jgarvey has joined #ruby
deepinskin has joined #ruby
miso1337 has joined #ruby
<JonnieCache> clumping is actually one of the things they test for when they (mathematicians and engineers) are looking for randomness
eAlchemist has quit [Ping timeout: 264 seconds]
<apeiros_> so the max. deviation from the expected average of 1000 is ±80, quite ok and somewhat expected
<Fuzai> clumping would be a good term for what i think i'm seeing
<csmrfx_> clusters
<apeiros_> um, that code… how does that even work…
<apeiros_> sample_array = Array # <-- this is wrong to begin with
<Fuzai> it's just a variable name
<apeiros_> ah…
deepinskin has quit [Max SendQ exceeded]
<apeiros_> no dude, your code complained about it :-p
<apeiros_> but you corrected it and forgot not to paste that part
<Fuzai> if you look lower i recalled it with []
csmrfx_ is now known as csmrfx
deepinskin has joined #ruby
chrishunt has joined #ruby
<apeiros_> yeah, you should not paste code-parts which were broken and you fixed later ;-)
<JonnieCache> Fuzai: this bbc podcast is a discussion on randomness and pseudorandomness with some academics. it explains all the different concepts: http://downloads.bbc.co.uk/podcasts/radio4/iots/iots_20110113-1055c.mp3
<csmrfx> >> Array
<eval-in> csmrfx => Array (http://eval.in/12588)
<apeiros_> Fuzai: Hash.new(0)
<JonnieCache> all 150 of the science based episodes are here: http://www.bbc.co.uk/podcasts/series/iots/all
<JonnieCache> highly reccommended
<apeiros_> then you can do += on any member
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<Fuzai> ty JonnieCache
johnjohnson has joined #ruby
<apeiros_> Fuzai: there's so much broken code… if you repaste code which *actually works* I'll read it. but this is pain.
<csmrfx> >> random_sandwich = Array; random_sandwich.new(10)
<eval-in> csmrfx => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] (http://eval.in/12589)
<csmrfx> 8( why no sammich
deepinskin has quit [Max SendQ exceeded]
* csmrfx goes to get sammich
<Fuzai> *sigh*
<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]
nari has quit [Ping timeout: 248 seconds]
deepinskin has quit [Max SendQ exceeded]
hoelzro is now known as hoelzro|away
<pi3r> Anyone knows how reach the guys behind http://www.ruby-doc.org/ ?
deepinskin has joined #ruby
freq47 has joined #ruby
<pi3r> the link for the Ruby vulnerability is broken
<breakingthings> pi3r: "Questions? Problems? Praise? Suggestions? Write to suggestions@ruby-doc.org"
<breakingthings> Right at the bottom of the homepage.
Shrink has joined #ruby
Xeago has quit [Remote host closed the connection]
huoxito has joined #ruby
dmiller1 has quit [Ping timeout: 260 seconds]
deepinskin has quit [Max SendQ exceeded]
Xeago has joined #ruby
<pi3r> breakingthings: ah I found his twitter
<freq47> what is a good eay to convert xml data to activerecord to get persisted
deepinskin has joined #ruby
<pi3r> breakingthings: thanks anyway, sorry to bother :D
<Hanmac> freq47 wrong channel
<breakingthings> pi3r: that's alright. :)
samphippen has joined #ruby
<pi3r> freq47: join #RubyOnRails to get help on ActiveRecord
eAlchemist has quit [Ping timeout: 245 seconds]
asobrasil has left #ruby [#ruby]
<freq47> can
freeayu has quit [Remote host closed the connection]
deepinskin has quit [Max SendQ exceeded]
<freq47> can't use activerecord without rails?
<Hanmac> you can, but the rails ones still may know more about
<freq47> ok
<freq47> thanks
deepinskin has joined #ruby
<breakingthings> freq47: one would imagine that you will have to write a parsing class that can take an XML and prep a model with it's values.
hiroyuki has quit [Read error: Connection reset by peer]
adkron has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
deepinskin has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
<breakingthings> freq47: also, a google search reveals a few results, one of which being http://www.wayne-robinson.com/journal/2006/5/1/ruby-on-rails-activerecordbuild_from_xml-function.html
deepinskin has joined #ruby
<breakingthings> there you are.
<breakingthings> that thing. right thar.
tjbiddle_ has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
<breakingthings> Hanmac: basically yes
<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]
rtdp has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
chrishough has joined #ruby
sirecote has joined #ruby
eykosioux has quit [Remote host closed the connection]
ryanh has joined #ruby
eAlchemi_ has joined #ruby
aganov has quit [Quit: aganov]
wallcloc_ has quit [Ping timeout: 264 seconds]
eykosioux has joined #ruby
girija has joined #ruby
br4ndon has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
wallclockbuilder has joined #ruby
samphippen has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
SCommette has quit [Quit: SCommette]
Davey has joined #ruby
rgbdev has joined #ruby
rgbdev has quit [Client Quit]
ttt has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
freq47 has quit [Quit: Page closed]
vlad_starkov has joined #ruby
sambao21 has joined #ruby
Vektur has joined #ruby
xpen has quit [Read error: Connection reset by peer]
nwertman has joined #ruby
dpollen has joined #ruby
xpen has joined #ruby
cr3 has joined #ruby
daig0ro has joined #ruby
hiroyuki has joined #ruby
daig0ro has quit [Client Quit]
xpen has quit [Remote host closed the connection]
eAlchemi_ has quit [Ping timeout: 240 seconds]
<cr3> what syntax is preferable: a = (b or 'foo'); or: a = b ? b : 'foo'
xpen has joined #ruby
<pi3r> cr3: I prefer the old school ternary :D
asdfqwer has joined #ruby
<Hanmac> a = b || 'foo'
<dominikh> a = b || "foo"
<breakingthings> ^
<cr3> pi3r: I just discovered that || is not the same as "or", so a = b || 'foo' also works and is also "old school"
<dominikh> oh god dammit Hanmac :P
<breakingthings> no need for parens or semicol tho
nomenkun has quit [Ping timeout: 258 seconds]
jgrevich has joined #ruby
<breakingthings> cr3: it's not the same, but it works in this scenario i believe.
wuest has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
<Hanmac> in most of the cases, you dont even need spaces :P
<breakingthings> then again I still forget the caveat between the two.
<breakingthings> spaces are good for the soul
xpen_ has joined #ruby
<breakingthings> let my eyes breathe thanks
<pi3r> cr3: I never used 'or' in ruby :(
daig0ro has joined #ruby
<breakingthings> pi3r: s'good stuff
<breakingthings> but careful use is important
hoelzro|away is now known as hoelzro
jonahR has joined #ruby
<pi3r> breakingthings: yep
philcrissman has quit [Remote host closed the connection]
xpen has quit [Read error: Connection reset by peer]
<pi3r> I use `and` a lot
kornnflake is now known as kornnflake_zzz
kojul has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
philcrissman has joined #ruby
<cr3> breakingthings: you need parens with 'or', not with '||'
<cr3> pi3r: odd how you use 'and' but not 'or'...
<breakingthings> cr3:
<breakingthings> >>a = false or 'butts'
<eval-in> breakingthings => "butts" (http://eval.in/12627)
<breakingthings> no parens
<breakingthings> hard mode
mikepack has joined #ruby
<breakingthings> i have the most points
jbueza has joined #ruby
<pi3r> cr3: I prefer to use if/unless instead of or
endzyme has joined #ruby
adambeynon has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
Spooner_ has quit [Remote host closed the connection]
<cr3> breakingthings: print the value of a though
<pi3r> But I will try to think about it in the future :D
hiroyuki_ has joined #ruby
<breakingthings> >>a = false or 'butts'; puts a
<eval-in> breakingthings => false
<eval-in> nil (http://eval.in/12628)
* breakingthings gasps
j^2 has joined #ruby
<breakingthings> mmm
<cr3> breakingthings: yeah, took me by surprise too
failshell has joined #ruby
<breakingthings> wait a sec...
<cr3> breakingthings: I thought 'or' and '||' were essentially the same
<breakingthings> hmm
<breakingthings> well alrighty then
dougireton has joined #ruby
pasties has joined #ruby
<breakingthings> I guess it's because it's treating it as (a = false) or ('butt')
Ontolog has joined #ruby
br4ndon has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<breakingthings> which I guess makes sense
<breakingthings> plays back into the precedence thing
<breakingthings> so in that case yeah || is better
banjara has joined #ruby
* breakingthings breaks things
sepp2k has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
hiroyuki has quit [Ping timeout: 252 seconds]
dougireton has left #ruby [#ruby]
jprovazn has quit [Quit: Leaving]
hiroyuki_ has quit [Read error: Connection reset by peer]
bluenemo has quit [Remote host closed the connection]
piotr__ has joined #ruby
<ArchBeOS> where in the ruby docs can i find `self` info?
hiroyuki has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
<GeekOnCoffee> ArchBeOS: what are you looking to know?
otters has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
m8 has quit [Ping timeout: 264 seconds]
<ArchBeOS> i want to make sure self.method_name is what i need to figure out which method my process is currently in.
stetho has joined #ruby
hbpoison has joined #ruby
<ArchBeOS> trying not to create my own get_mname hack
rburton- has joined #ruby
Ontolog has quit [Remote host closed the connection]
eykosioux has quit [Read error: Connection timed out]
hasimo has joined #ruby
zeade has joined #ruby
chen_767 has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
<Hanmac> ArchBeOS you may search for "method_missing"
Beoran__ has joined #ruby
otters has joined #ruby
eykosioux has joined #ruby
whitedawg has joined #ruby
mercwithamouth has joined #ruby
Beoran_ has quit [Read error: Operation timed out]
chenwei767 has joined #ruby
<apeiros_> ArchBeOS: get_mname?
monkegjinni has joined #ruby
a_a_g has quit [Quit: Leaving.]
havenwood has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
deepinskin has quit [Ping timeout: 245 seconds]
<interactionjaxsn> ArchBeOS: are you looking for Object.public_methods or Object.respond_to?
lolmaus has quit []
hasimo has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Remote host closed the connection]
<ArchBeOS> apeiros_: it's an old hack to figure out which method you are in. used it in 1.8.7. didnt know if 1.9.3 or 2 have something new for it
whitedawg has left #ruby [#ruby]
<ArchBeOS> interactionjaxsn: i'll look into those. i basically just need to know which method my object is in.
nga4 has quit [Ping timeout: 245 seconds]
<interactionjaxsn> ArchBeOS: what about using pry?
wallclockbuilder has quit [Remote host closed the connection]
<apeiros_> ArchBeOS: __method__
chen_767 has quit [Ping timeout: 264 seconds]
<apeiros_> unless you're stuck with ancient ruby
<apeiros_> alternatively `caller`, which works across all rubies
<ArchBeOS> apeiros_: this is what i needed. thanks. :)
<ArchBeOS> thanks interactionjaxsn and Hanmac as well
rippa has joined #ruby
* apeiros_ hopes this is only for debugging :-p
adac has quit [Quit: Leaving]
<interactionjaxsn> ArchBeOS: thanks for asking. helped me learn something
yashshah has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: zigomir]
* Hanmac uses __method__ often with to_enum
<apeiros_> yeah, enum_for snippet is acceptable
* apeiros_ off, brb
apeiros_ has quit [Remote host closed the connection]
rburton- has quit [Ping timeout: 245 seconds]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<ArchBeOS> interactionjaxsn: aren't we all scholars in here?
xpen has joined #ruby
jpfuentes2 has joined #ruby
<interactionjaxsn> ArchBeOS: don't you dare use your two dollar words in here ;)
<ArchBeOS> lol
<ArchBeOS> fine. we's all smrt
atyz has joined #ruby
eAlchemi_ has joined #ruby
wallerdev has joined #ruby
yashshah has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
* interactionjaxsn stands on soapbox
xpen_ has quit [Ping timeout: 276 seconds]
tspike has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
parus has quit [Read error: Operation timed out]
carlyle has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
jmeeuwen has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
parus has joined #ruby
d2dchat has joined #ruby
imami|afk is now known as banseljaj
thibauts has quit [Ping timeout: 252 seconds]
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.
carlyle_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
etcetera has joined #ruby
matrixis1 is now known as matrixise
eAlchemist has joined #ruby
exdis has left #ruby ["WeeChat 0.3.7"]
shirokuro11 has joined #ruby
bigoldrock has joined #ruby
<JonnieCache> Hanmac: that evil.rb thing can unfreeze frozen objects
<JonnieCache> stetho: its probably to do with the load path
<JonnieCache> stetho: "." used to be in the ruby load path by default, it got removed in 1.9
<JonnieCache> to this day i cannot remember what the best practice is surrounding this
khismetix has joined #ruby
<JonnieCache> but you can do $LOAD_PATH.unshift(File.dirname(__FILE__))
<JonnieCache> or something like that
<stetho> So this is an old example :-( - I've found 'require_relative' while googling but it produced the same error.
apod has quit []
khismetix has left #ruby [#ruby]
<JonnieCache> yeah that line i pasted above does the job
<JonnieCache> require_relative is a bad idea
atno has joined #ruby
Shrink has joined #ruby
banjara has joined #ruby
<Hanmac> Cache: yeah but its the evilist form of black magic :P
<wuest> For dev purposes $:.unshift("/root/dashboard/lib") should do it for you.
alx- has joined #ruby
<JonnieCache> yeah that kind of shit. theres lots of permutations on it. wish i could remember which was agreed to be the sensible one
<JonnieCache> Hanmac: well the method is called freeze for a reason
<JonnieCache> although in reality frozen things can thaw i suppose
etcetera has quit []
etcetera has joined #ruby
eykosioux has quit [Read error: Connection timed out]
tylersmith has joined #ruby
Blue_Ice_ is now known as Blue_Ice
eykosioux has joined #ruby
aaronmcadam has joined #ruby
<Hanmac> there should be other "cold" methods like #deep_freeze, #thaw, #deep_thaw and an #eternal_freeze #deep_eternal_freeze #eternal_frozen? ;P
eykosioux has quit [Client Quit]
BizarreCake has joined #ruby
eykosioux has joined #ruby
<JonnieCache> of course hanmac thats what ruby stdlib needs, more confusingly varied method names!
filipe has quit [Read error: Operation timed out]
shock_one has joined #ruby
a_black_develope has quit [Remote host closed the connection]
__Big0__ has joined #ruby
neurone-1337 has quit [Ping timeout: 246 seconds]
<Hanmac> or a cold_temperature attribute that tells how much an object is frozen :D
m4rtijn has quit [Remote host closed the connection]
thibauts has joined #ruby
ukd1 has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
statarb3 has quit [Ping timeout: 251 seconds]
adeponte has joined #ruby
apeiros_ has joined #ruby
rburton- has joined #ruby
babykosh has joined #ruby
banisterfiend has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
<banisterfiend> Hanmac: you here?
lewis has joined #ruby
lewis has joined #ruby
lewis has quit [Changing host]
<Hanmac> not for long, why?
angusiguess has quit [Ping timeout: 255 seconds]
Voodoofish430 has joined #ruby
chenwei767 has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 258 seconds]
Flex has quit [Remote host closed the connection]
<banisterfiend> Hanmac: can i ask you a question in private
_nitti has quit [Remote host closed the connection]
blaxter has joined #ruby
mntzn has quit [Quit: Lost terminal]
ukd1 has quit [Read error: Operation timed out]
Banistergalaxy has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
_nitti has joined #ruby
nwertman has joined #ruby
chrisja has joined #ruby
havenwood has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
rburton- has quit [Ping timeout: 248 seconds]
dougireton has joined #ruby
filipe has joined #ruby
ttt has joined #ruby
kristofers has quit []
rippa has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
dougireton has quit [Client Quit]
neurone-1337 has joined #ruby
krawchyk_ has joined #ruby
rippa has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
Ontolog has quit [Remote host closed the connection]
jerius_ has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
artofraw has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
geggam__wk is now known as geggam_wk
jgrevich_ has joined #ruby
Stilo has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
samphippen has quit [Quit: Computer has gone to sleep.]
jerius has quit [Read error: Connection reset by peer]
jerius_ is now known as jerius
Hanmac has quit [Ping timeout: 264 seconds]
ukd1 has joined #ruby
cmarques has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
krawchyk has quit [Ping timeout: 245 seconds]
_nitti has quit [Remote host closed the connection]
eykosioux has quit [Read error: Connection timed out]
eykosioux has joined #ruby
atno has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
jonathanwallace has joined #ruby
Grieg has joined #ruby
Grieg has left #ruby [#ruby]
chussenot has joined #ruby
akhet has joined #ruby
mneorr has joined #ruby
d48 has joined #ruby
lewis has quit [Remote host closed the connection]
baba has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
atno has joined #ruby
fire has quit [Ping timeout: 255 seconds]
jdunck has joined #ruby
nga4 has joined #ruby
lewis has joined #ruby
dhruvasagar has joined #ruby
_nitti has joined #ruby
hoelzro is now known as hoelzro|away
Morkel has quit [Quit: Morkel]
mockra has joined #ruby
sts has joined #ruby
<sts> hello folks. Can anybody please provide me with a code example to log via syslog in 1.8.7?
Banistergalaxy has quit [Ping timeout: 246 seconds]
<banisterfiend> sts: 1.8.7 is dead
asobrasil has joined #ruby
banjara has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
<sts> banisterfiend: well, i need to code something on a legacy platform. But I'd be happy with a 1.9.x example as welll.
<shock_one> Zed's dead baby, Zed's dead.
mpfundstein has quit [Remote host closed the connection]
baba has quit [Quit: WeeChat 0.4.0]
twoism has joined #ruby
<banisterfiend> shock_one: do you own a dashcam
<onewheelskyward> It's not a motorcycle baby, it's a chopper.
sambao21 has joined #ruby
Atrophius_ is now known as Atrophius
<shock_one> banisterfiend, I don't have a dash, to mount the dashcam to.
jpcamara has joined #ruby
mityaz has joined #ruby
sambao21 has quit [Client Quit]
dougireton has joined #ruby
sts has left #ruby [#ruby]
vlad_sta_ has quit [Remote host closed the connection]
BaxZzZz has joined #ruby
samphippen has joined #ruby
Zai00 has quit [Ping timeout: 248 seconds]
<shock_one> I'm not sure the previous sentence has a meaning I planned. I don't have a car.
_64k has quit [Ping timeout: 255 seconds]
atyz has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
atmosx has joined #ruby
mityaz_ has joined #ruby
banisterfiend has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
sambao21 has joined #ruby
rippa has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
jonahR has quit [Quit: jonahR]
Emmanuel_Chanel has quit [Quit: Leaving]
rburton- has joined #ruby
banjara has quit [Read error: Connection reset by peer]
philcrissman has quit [Remote host closed the connection]
Axsuul has joined #ruby
arturaz has quit [Ping timeout: 260 seconds]
mityaz has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
sepp2k has joined #ruby
kornnflake_zzz is now known as kornnflake
fmcgeough has joined #ruby
_emptymag00 has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Operation timed out]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
adeponte has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
alx- has quit [Quit: alx-]
c0rn has joined #ruby
ArchBeOS has left #ruby ["Leaving"]
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
ahammond has joined #ruby
marr has quit []
c0rn has quit [Client Quit]
tay1 has joined #ruby
brianpWins has joined #ruby
tylersmith has quit [Quit: tylersmith]
_nitti has quit [Remote host closed the connection]
tylersmith has joined #ruby
mityaz_ has quit [Quit: See ya!]
Ankhers has joined #ruby
chrishough has joined #ruby
glauco291 has joined #ruby
<glauco291> hi
banjara has joined #ruby
<glauco291> hi
rburton- has quit [Ping timeout: 256 seconds]
<glauco291> how can I enter a postgres password in shell via ruby?
dougireton has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
brianpWins has quit [Client Quit]
Propelol has joined #ruby
filipe has quit [Remote host closed the connection]
breakingthings has quit []
shovon has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
xbob has joined #ruby
mosheee has quit [Ping timeout: 264 seconds]
_nitti has joined #ruby
realDAB has joined #ruby
marek__ has joined #ruby
<shock_one> glauco291, system('shell command')
slainer68 has quit [Ping timeout: 245 seconds]
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
volte has joined #ruby
moshee has joined #ruby
FDj_ is now known as FDj
francisfish has joined #ruby
<glauco291> system "pg_dump -U #{db_config['username']} -h #{db_config['host']} #{db_config['database']} > tmp/mydump.sql"
<glauco291> it prompts for password
Propelol has left #ruby [#ruby]
<glauco291> shock_one: how can I enter password via ruby?
gyre007 has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<shock_one> pf_dump --password pass
threesome has quit [Ping timeout: 245 seconds]
jonahR has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
kornnflake is now known as kornnflake_zzz
bean has quit [Quit: Computer has gone to sleep.]
shovon 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 has quit [Remote host closed the connection]
mmitchell has joined #ruby
<glauco291> it does not worki shock_one
headius has joined #ruby
atno has quit [Remote host closed the connection]
<shock_one> Oh, sorry, this argument just forces the password prompt to show. Try to read pg_dump --help
eykosioux has quit [Read error: Connection timed out]
<glauco291> I have read shock_one
<shock_one> -w doesn't work neither?
eykosioux has joined #ruby
<glauco291> not
eldariof has joined #ruby
daig0ro has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has joined #ruby
atno has joined #ruby
pi3r has quit [Quit: Leaving]
Ontolog has joined #ruby
Eiam has joined #ruby
markalanevans has joined #ruby
<shock_one> try to `export PGPASSWORD=pass`
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Catbuntu has joined #ruby
tjbiddle_ has joined #ruby
asdfqwer has quit [Ping timeout: 258 seconds]
Ontolog_ has joined #ruby
seejohnrun has joined #ruby
atyz has joined #ruby
marek__ has quit [Ping timeout: 258 seconds]
tjbiddle has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
rdo_ is now known as rdo
Ontolog has quit [Ping timeout: 258 seconds]
tjbiddle_ has quit [Ping timeout: 264 seconds]
marek__ has joined #ruby
havenwood has joined #ruby
danman has joined #ruby
alvaro_o has joined #ruby
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
<Hanmac> atmosx: you mean like "32°C" ?
<atmosx> yeah
<atmosx> but I don't know how to use it
<atmosx> not a big deal but would be neat
c0rn has quit [Ping timeout: 264 seconds]
gyre007 has quit [Ping timeout: 258 seconds]
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
<atmosx> tricker than I thought
trewe has joined #ruby
tspike has joined #ruby
eykosioux has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
c0rn has quit [Quit: Computer has gone to sleep.]
Stilo has joined #ruby
codecop has joined #ruby
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]
atmosx has joined #ruby
<wrench> oops
<wrench> punctuation = yourstr[yourstr.length - 1]
tylersmith has quit [Read error: Connection reset by peer]
<mall3n> well if there are commas in between that becomes an issue
timonv has joined #ruby
tylersmith has joined #ruby
endzyme has joined #ruby
thomasfedb has quit [Ping timeout: 252 seconds]
autumn has quit [Ping timeout: 258 seconds]
<wrench> yxhuvud: ah that makes sense - -thanks
seejohnrun has left #ruby [#ruby]
c0rn has joined #ruby
Assurbanipal has joined #ruby
<wrench> I'm still trying to wrap my mind around when to put code in modules and when to just put it in a class
eykosioux has quit [Remote host closed the connection]
marek__ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
rtdp has joined #ruby
<yxhuvud> wrench: do note that it also would work the same way if self is an object that is not a class or module:
tylersmith has joined #ruby
monkegjinni has quit [Remote host closed the connection]
otters has quit [Ping timeout: 252 seconds]
stnly has quit [Ping timeout: 252 seconds]
<yxhuvud> x = "foobar"; def x.foo; puts self; end; x.foo
monkegjinni has joined #ruby
tjbiddle has joined #ruby
francisfish has joined #ruby
<Hanmac> its also possible to store constants into a objects :P
autumn has joined #ruby
banisterfiend has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<Gurpartap> morning
<Gurpartap> Hanmac:
<Gurpartap> banisterfiend:
<banisterfiend> Gurpartap: y do u highlight me
trewe_ has joined #ruby
<Gurpartap> shevy:
jerius has joined #ruby
<banisterfiend> Gurpartap: stop
francisfish has quit [Remote host closed the connection]
otters has joined #ruby
waxjar has joined #ruby
<Gurpartap> banisterfiend: let me type :/
thomasfedb has joined #ruby
<banisterfiend> Gurpartap: you're not typing anything, you're just pinging people randomly
<banisterfiend> it's annoying
<wrench> yxhuvud: hrmm thanks for the example
<mall3n> is there a method for mapping a matched part of a string and its index into a hash?
<Gurpartap> banisterfiend: btw, i'm trying to remember the github project i knew you from :/
<wrench> I need to do some more reading before my dull brain can get it I thinks
<Gurpartap> or ruby gem
<banisterfiend> Gurpartap: pry?
marek__ has quit [Ping timeout: 252 seconds]
<Gurpartap> right. thanks
carraroj has quit [Quit: Konversation terminated!]
thinkclay has joined #ruby
<Gurpartap> banisterfiend: alright. apologies for the ping.
eAlchemist has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
stnly has joined #ruby
eAlchemi_ has joined #ruby
ahammond has joined #ruby
<Gurpartap> i'm looking for some eyeballs on my gem code at https://github.com/Gurpartap/cognizant so i can learn improve
<Gurpartap> learn and improve*
Emmanuel_Chanel has joined #ruby
<Hanmac> mall3n i think yes
atyz has quit [Ping timeout: 258 seconds]
etcetera has joined #ruby
ndngvr has quit [Ping timeout: 260 seconds]
thinkclay has quit [Client Quit]
kpshek has quit []
thinkclay has joined #ruby
<mall3n> hanmac any idea where to look?
Clownz has quit [Ping timeout: 246 seconds]
gyre007 has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
breakingthings has joined #ruby
eldariof has quit []
jpfuentes2 has joined #ruby
m8 has joined #ruby
mneorr has joined #ruby
<Hanmac> mall3n: like:
<Hanmac> >> Hash["abcdedcba" =~ /[de]/,$& ]
<eval-in> Hanmac => {3=>"d"} (http://eval.in/12634)
kornnflake is now known as kornnflake_zzz
averiso has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
francisfish has joined #ruby
berserkr has quit [Quit: Leaving.]
jtharris has quit [Read error: Connection reset by peer]
_nitti_ has joined #ruby
averiso has joined #ruby
<mall3n> hanmac thanks a lot
jtharris has joined #ruby
banjara has quit [Remote host closed the connection]
johnjohnson has quit [Ping timeout: 276 seconds]
eykosioux has joined #ruby
angusiguess has joined #ruby
krainboltgreene has quit [Quit: Computer has gone to sleep.]
<Gurpartap> i wish someone had the patience and time for me :/
<Gurpartap> anyways, i'll try some other forum
_nitti has quit [Ping timeout: 246 seconds]
_nitti__ has joined #ruby
anderse has quit [Quit: anderse]
akashj87 has quit [Ping timeout: 248 seconds]
headius has joined #ruby
kpshek has joined #ruby
dhruvasagar has joined #ruby
atyz has joined #ruby
ephemerian has quit [Read error: No route to host]
niklasb has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Ping timeout: 255 seconds]
yacks has quit [Quit: Leaving]
_nitti_ has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
Fuzai has quit [Ping timeout: 256 seconds]
headius has quit [Ping timeout: 252 seconds]
mall3n has left #ruby [#ruby]
headius has joined #ruby
banisterfiend has joined #ruby
ctrombley has quit []
wuest has quit [Quit: :q]
bluehavana has joined #ruby
razibog has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
neurone-1337 has quit [Ping timeout: 256 seconds]
realDAB has joined #ruby
wallclockbuilder has joined #ruby
trewe_ has quit [Quit: Quit]
guilleiguaran_ has joined #ruby
huoxito has quit [Ping timeout: 258 seconds]
pepper_chico has joined #ruby
johnny_|_ has joined #ruby
r0bby_ has joined #ruby
johnny_|_ has quit [Quit: johnny_|_]
rezzack has joined #ruby
Gurpartap has quit [Quit: Page closed]
etcetera has quit [Ping timeout: 264 seconds]
Axsuul has joined #ruby
eykosioux has quit [Read error: Connection timed out]
nomenkun has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
zodiak has joined #ruby
huoxito has joined #ruby
yashshah has joined #ruby
lewis is now known as lewix
eykosioux has joined #ruby
etcetera has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
visof has joined #ruby
<visof> hello
<aedorn> Hmm, I need to benchmark it, but just really looking at IPAddr, I think my own IP handlers are faster.
<visof> is there anyone using amqp for rabbitmq?
_nitti__ has quit [Remote host closed the connection]
Guest60317 has quit [Changing host]
Guest60317 has joined #ruby
Guest60317 is now known as guyz
rburton- has joined #ruby
_bart has joined #ruby
failshell has quit [Remote host closed the connection]
c0rn has joined #ruby
<_bart> Hi, how do I loop through all the values of a multi dimensional array?
kirun has joined #ruby
<_bart> (and change all the 0's to -1's)
<yxhuvud> bart: what do you mean by a multi dimensional array? Do you mean an array of arrays?
<yxhuvud> if so, iterate over them separately.
<_bart> yxhuvud: multiple arrays yes..
etcetera has quit []
wallclockbuilder has quit [Remote host closed the connection]
<_bart> But isn't there a way to loop through all the values in a simpler way?
etcetera has joined #ruby
francisfish has quit [Remote host closed the connection]
_huoxito has joined #ruby
huoxito has quit [Ping timeout: 260 seconds]
predator117 has quit [Ping timeout: 252 seconds]
neurone-1337 has joined #ruby
cupakromer has left #ruby [#ruby]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<arturaz> _bart, define a recursive function?
tjbiddle has joined #ruby
Rioji has joined #ruby
tjbiddle_ has joined #ruby
tcstar has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
<flam_> bart, flatten it and loop through the flattened array?
dmerrick has quit [Quit: dmerrick]
Rioji has quit [Read error: Connection reset by peer]
tjbiddle has quit [Read error: Operation timed out]
tjbiddle_ is now known as tjbiddle
francisfish has joined #ruby
francisfish has quit [Remote host closed the connection]
Rioji has joined #ruby
predator117 has joined #ruby
<flam_> bart, my_arr.flatten.each {|item| puts item }
io_syl has joined #ruby
workmad3 has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
etcetera has quit [Ping timeout: 245 seconds]
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!]
dpollen has joined #ruby
sambao21 has joined #ruby
marr has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
ebobby has joined #ruby
yekta has joined #ruby
yekta has quit [Client Quit]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
neku has joined #ruby
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
predator117 has joined #ruby
MrZYX is now known as MrZYX|off
MrZYX|off is now known as MrZYX
senayar has joined #ruby
zcreative has joined #ruby
baroquebobcat has joined #ruby
jonmilner has joined #ruby
fire has joined #ruby
dougireton has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
stetho has quit [Quit: stetho]
dougireton has quit [Client Quit]
v0n has joined #ruby
jblack has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
dmiller1 has joined #ruby
willob has quit [Quit: Leaving.]
willob has joined #ruby
helvete has joined #ruby
willob has quit [Max SendQ exceeded]
<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
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.bz2
mengu has quit [Ping timeout: 258 seconds]
billiam| has joined #ruby
<oposomme> Hanmac Imagine the def is in class << self ;)
<Hanmac> or git clone https://github.com/ruby/ruby :P
<Emmanuel_Chanel> Yeah. If I could've compiled it, I don't know even ABC of ruby, though.
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
tommyvyo has quit [Quit:]
<epitron> oposomme: this is really something that you'd have to discuss with the ctags or vim people :)
banseljaj is now known as imami|afk
_bart has quit [Quit: Lost terminal]
<epitron> it sounds like there aren't many people here who use ctags
nateberkopec has joined #ruby
<epitron> maybe you'd have better luck in #ruby-lang
<epitron> there might be another way to do what you want to do in vim, as well... some kind of ruby-specific jumping-around plugin
ehlu is now known as nicklas
<oposomme> epitron: I thought ruby developpers use editors like vim, so I'm wrong
neku has quit [Read error: Connection reset by peer]
<epitron> i'm using sublimetext2
<Clownz> what do you use on linux?
<Clownz> vim here <3
cyberarm has quit [Read error: Connection reset by peer]
<oposomme> epitron: good choice
dougireton has joined #ruby
<epitron> i'm using sublimetext2 on linux :)
carlyle_ has quit [Remote host closed the connection]
<sam113101> same for me
<epitron> sam113101: did you ever get ctags to work?
neku has joined #ruby
heliumsocket has joined #ruby
<Clownz> anyone else use vim?
kofno has quit [Remote host closed the connection]
<sam113101> epitron: never tried to be honest, I'm a new sublime user
<oposomme> and what do the others use?
chrishough has joined #ruby
* TTilus <3 emacs
carlyle has joined #ruby
<sam113101> I was using vim before
* Clownz <3 vim
<Clownz> why not now
kofno has joined #ruby
<Clownz> what are you currently using
<sam113101> sublime text
<sam113101> the vintage mode is like vim
<Clownz> sublime is not free right?
<Clownz> on linux
<sam113101> it isn't
<Clownz> yeah, shame
<breakingthings> TTilus: from what I hear, that makes you the most insane one here.
<oposomme> breakingthings: lol
pdamer has joined #ruby
Nisstyre has joined #ruby
<breakingthings> ST isn't free. It's nagware
<breakingthings> Personally I've been using it in nag-mode for a while now
<breakingthings> Doesn't really bother me.
<breakingthings> Might grab an ST3 key though, I appreciate ST in my workflow now
<Clownz> whats wrong when i devide something inn ruby, the fractions dont work
<breakingthings> Clownz: int
<breakingthings> convert to floats
johnjohnson has quit []
<Clownz> im using (360/200).to_f
rontec76 has quit [Remote host closed the connection]
<spider-mario> or rational, depending on your needs
wallclo__ has quit [Remote host closed the connection]
<spider-mario> no, that won’t work
<breakingthings> you have to have one of the operators float
<breakingthings> like
<spider-mario> you need to convert at least one of the operands
<breakingthings> >>360/200.to_f
<eval-in> breakingthings => 1.8 (http://eval.in/12635)
<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).
<breakingthings> 200.to_f being the key here
<spider-mario> >> Rational(360, 200)
<eval-in> spider-mario => (9/5) (http://eval.in/12636)
elux has quit [Quit: Bye!]
<breakingthings> and ^
evenix has quit [Remote host closed the connection]
<Clownz> cool it worked, thanks
<cmyers> since hamster achieves its concurrency by change and set, seems like it makes a copy of the whole structure...
* Hanmac uses eclipse for bigger projects
<sam113101> >> 7/3.0
<eval-in> sam113101 => 2.3333333333333335 (http://eval.in/12637)
dpollen has quit [Quit: dpollen]
headius has quit [Quit: headius]
atno has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<Clownz> ok when you are dealing with fractions in ruby, how doo you only display the 3 digits starting from the dot
codecop has joined #ruby
<Clownz> something like 0.234 instead of 0.232324232323
dougireton has quit [Quit: Leaving.]
woolite64__ has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
jamesfung14 has quit [Ping timeout: 252 seconds]
cyberarm has joined #ruby
<banisterfiend> you guys dont know what ctags is?
<Hanmac> Clownz
<Hanmac> >> "%.3f" % (7/3.0)
<eval-in> Hanmac => "2.333" (http://eval.in/12638)
evenix has joined #ruby
<Clownz> thanks Hanmac, also round(2) works fine :)
<Hanmac> yeah but formatstrings are more cool :P
<Clownz> duno it looks messy xD
woolite64_ has quit [Ping timeout: 276 seconds]
<TTilus> rounding and formatting for display are semantically quite a bit different operations
dougireton has joined #ruby
<TTilus> Clownz: if you wanna deal with _fractions_ you do it with Rational ;)
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
RubyHunter has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
francisfish has joined #ruby
dougireton has quit [Remote host closed the connection]
biff_tannen has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
artofraw has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 264 seconds]
marr has joined #ruby
piotr___ has joined #ruby
piotr__ has quit [Ping timeout: 258 seconds]
dougireton has joined #ruby
huoxito has joined #ruby
tvw has joined #ruby
sepp2k has quit [Remote host closed the connection]
s0ber_ has joined #ruby
jamesfung14 has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
huoxito has quit [Client Quit]
Guest80370 has quit [Quit: Leaving]
ebobby has quit [Ping timeout: 264 seconds]
s0ber has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
s0ber_ is now known as s0ber
hashmal has quit [Ping timeout: 252 seconds]
yashshah has quit [Read error: Connection reset by peer]
__Big0__ has quit [Remote host closed the connection]
yashshah has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
hashmal has joined #ruby
EPIK has joined #ruby
lewix has quit [Remote host closed the connection]
mengu has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
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]
slyv has quit [Quit: Computer has gone to sleep.]
aaronmcadam has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<Hanmac> shevy did you read: http://bit.ly/ruby-classes-and-objects ?
visof has quit [Quit: Lost terminal]
krainboltgreene has quit [Ping timeout: 248 seconds]
cmarques has quit [Ping timeout: 246 seconds]
billiam| has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 248 seconds]
BSaboia__ has quit [Quit: Fui embora]
emergion has quit [Ping timeout: 264 seconds]
fourq_ is now known as fourq
mneorr has quit [Ping timeout: 258 seconds]
Spooner has joined #ruby
Davey has joined #ruby
nicholas_ has joined #ruby
mneorr has joined #ruby
xardas has quit [Read error: Connection reset by peer]
trewe has left #ruby ["Away"]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
butblack has quit [Quit: butblack]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
tcstar has quit [Remote host closed the connection]
Stilo has joined #ruby
whowantstolivefo has quit [Ping timeout: 258 seconds]
postmodern has joined #ruby
joschi has quit [Quit: No Ping reply in 180 seconds.]
joschi has joined #ruby
alanp has quit [Ping timeout: 258 seconds]
alanp has joined #ruby
ryanh has joined #ruby
ryanh has quit [Client Quit]
<ssvo> anyone in here work with multiple instances of thin that might be able to help me out?
mengu has quit [Quit: Leaving]
crodas has quit [Ping timeout: 248 seconds]
nicoulaj has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 264 seconds]
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
hasimo has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 245 seconds]
dougireton has quit [Remote host closed the connection]
hbpoison has joined #ruby
ehlu is now known as nicklas
aaronmcadam has quit [Ping timeout: 260 seconds]
nicklas is now known as ehlu
eldios has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
<eldios> hey guys .. I'm having this weird problem with rubygems-bundler gem --> https://gist.github.com/eldios/80b3646872e6f3ed1906
<eldios> any hint?
<eldios> I'm on ubuntu 12.04
zcreative has quit [Quit: Computer has gone to sleep.]
<eldios> installed ruby with RVM.. ruby versino is 1.9.3-p392
<eldios> version*
mahmoudimus has joined #ruby
mikepack has quit [Remote host closed the connection]
mmitchel_ has joined #ruby
ArchBeOS is now known as I-Am-Q
slainer68 has joined #ruby
atyz has quit [Ping timeout: 258 seconds]
mmitchel_ has quit [Remote host closed the connection]
blacktulip has joined #ruby
d2dchat has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
mmitchell has quit [Ping timeout: 264 seconds]
Assurbanipal has quit [Read error: Connection reset by peer]
I-Am-Q is now known as LocutusOfBorg
MehLaptop has joined #ruby
Clownz has quit [Ping timeout: 246 seconds]
jgarvey has quit [Quit: Leaving]
Voodoofish430 has joined #ruby
earthquake has quit [Quit: earthquake]
ebobby has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
adkron has quit [Ping timeout: 264 seconds]
korilo has joined #ruby
crodas has joined #ruby
MehLaptop has quit [Remote host closed the connection]
etcetera has quit []
<shevy> Hanmac hmm
alex__c2022 has quit [Quit: alex__c2022]
araujo has quit [Ping timeout: 245 seconds]
martynas has joined #ruby
martynas is now known as Guest31807
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
chrisja has joined #ruby
emmanuelux has joined #ruby
jorge_ has joined #ruby
danman has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
blacktulip has quit [Ping timeout: 260 seconds]
babykosh has quit [Quit: babykosh]
LocutusOfBorg is now known as Grand-Nagus-Zek
skattyadz has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pdamer has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
ehlu is now known as nicklas
nicklas is now known as ehlu
etcetera has joined #ruby
pepper_chico has joined #ruby
kpshek has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
mikepack has joined #ruby
jlast has quit [Remote host closed the connection]
pepper_chico has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
zeade has quit [Quit: Leaving.]
crodas has quit [Ping timeout: 276 seconds]
dougireton has joined #ruby
kofno has joined #ruby
pdamer has quit [Ping timeout: 256 seconds]
nicholas_ has quit [Remote host closed the connection]
pavilionXP has joined #ruby
_nitti has joined #ruby
poga has joined #ruby
dougireton has quit [Client Quit]
hashmal has quit [Quit: Computer has gone to sleep.]
Yakko has joined #ruby
br4ndon has quit [Ping timeout: 245 seconds]
dogweather has joined #ruby
tommyvyo has joined #ruby
monkegjinni has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
picca3 has quit [Quit: Linkinus - http://linkinus.com]
m8 has quit [Quit: Sto andando via]
br4ndon has joined #ruby
Zai00 has quit [Quit: Zai00]
lewis has joined #ruby
realDAB has joined #ruby
br4ndon has quit [Client Quit]
tenmilestereo has quit [Read error: Connection reset by peer]
br4ndon has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
br4ndon_ has joined #ruby
mneorr_ has joined #ruby
yashshah has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
jorge_ has quit [Remote host closed the connection]
icco has quit [Ping timeout: 252 seconds]
freq47 has joined #ruby
razibog has joined #ruby
br4ndon has quit [Ping timeout: 256 seconds]
<freq47> can someone tell me the different on using something like self.class.get self.get
<freq47> sorry, self.class.get AND self.get
MrZYX is now known as MrZYX|off
A124 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
phantasm66 has quit [Remote host closed the connection]
generalissimo has joined #ruby
ffranz has quit [Quit: Leaving]
pdamer has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
krainboltgreene has joined #ruby
<A124> Hey. Could anyone please recommend an efficient database for storing and querring checksum and other file related data? Google failed me
tommyvyo has quit [Quit:]
pdamer has quit [Client Quit]
thomasfedb has quit [Ping timeout: 246 seconds]
<maetthew> Anyone here using VisualRuby on OSX? I'm trying to install and getting an error which I can't comprehend. https://gist.github.com/maetthew/5157559
<maetthew> no Mountain Lion
<maetthew> *on
icco has joined #ruby
stkowski has quit [Quit: stkowski]
waxjar has quit [Ping timeout: 258 seconds]
kofno has quit [Remote host closed the connection]
RubyHunter has quit [Quit: Verlassend]
jasonthesensei has joined #ruby
j^2 has joined #ruby
<A124> maetthew: I looks like it will take a time xD
jerius has quit [Ping timeout: 255 seconds]
mrbrdo has quit [Read error: Connection reset by peer]
<maetthew> A124: what you mean? To read the error? :P
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
<jasonthesensei> hi i have a simple script i'm writing i need to know how to find the position of the mouse in a document
mrbrdo has joined #ruby
<A124> maetthew: Nah. To respond
eldios has quit [Quit: bye =)]
Banistergalaxy has joined #ruby
<maetthew> A124: ah I understand :P
<A124> jasonthesensei: A) No question, B) If it's Windows I recommend Autoit for such task
<freq47> more people now,and this is probably easy so.... can someone tell me the different on using something like self.class.AND get self.get
waxjar has joined #ruby