apeiros changed the topic of #ruby to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
frowni has quit []
Skylab has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
<whitequark> mehwork: nowhere, preferably.
<mkinitrd> my understanding is that setting/clearing Thread.critical is no longer supported by 1.9
<whitequark> mkinitrd: yes, use mutexes
zeade has quit [Quit: Leaving.]
tomzx_mac has joined #ruby
<mkinitrd> can the exclusive{} block also be used in place of it?
mephux has quit [Excess Flood]
x82_nicole has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Read error: Operation timed out]
kpshek has quit []
tatsuya_o has quit [Remote host closed the connection]
mephux has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
heyitsdave has joined #ruby
hail_kuato has joined #ruby
<whitequark> that's how it is implemented
alsu has joined #ruby
<alsu> I'm getting a "deadlock detected (fatal)" exception
otherj has quit [Quit: otherj]
<alsu> any idea why? http://codepad.org/26iUf3Xc
<mkinitrd> whitequark: thanks, so regular users, so to speak, don't normally use the exclusive blocks, they use mutexes (and maybe conditional variables)
amacleod has quit [Quit: Leaving]
danshultz has joined #ruby
_nitti has joined #ruby
<alsu> oh, thread exits
jrist is now known as jrist-afk
nari has quit [Ping timeout: 245 seconds]
dougireton has quit [Remote host closed the connection]
otters has quit [Ping timeout: 240 seconds]
alsu has left #ruby [#ruby]
ryanh has quit [Quit: Computer has gone to sleep.]
ner0x has joined #ruby
samuel02 has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 252 seconds]
mephux has quit [Excess Flood]
EPIK has joined #ruby
Guest30769 has joined #ruby
stkowski has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 256 seconds]
sbear has joined #ruby
zeade has joined #ruby
yshh has quit [Remote host closed the connection]
zeade has quit [Client Quit]
yshh has joined #ruby
_nitti has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
roadt has quit [Ping timeout: 244 seconds]
ephemerian has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
poikon has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
karupanerura has quit [Excess Flood]
karupanerura has joined #ruby
Beoran_ has joined #ruby
etcetera has quit []
poikon has quit [Ping timeout: 256 seconds]
poikon has joined #ruby
carloslopes has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
juarlex has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
etcetera has joined #ruby
Guest30769 has quit [Excess Flood]
bricker`1A has joined #ruby
mephux has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
Xeago has quit [Remote host closed the connection]
beaky has quit [Ping timeout: 244 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
etcetera has quit []
mneorr has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
punkrawkR^Home has quit [Read error: Connection reset by peer]
undersc0re97 has quit [Ping timeout: 245 seconds]
robotmay has quit [Remote host closed the connection]
carloslopes has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
carloslopes has joined #ruby
jrajav has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
jackyalcine_ has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
tomzx_mac has quit [Quit: tomzx_mac]
etcetera has joined #ruby
mephux has quit [Excess Flood]
renanoronfle has joined #ruby
mephux has joined #ruby
tomzx_mac has joined #ruby
taoru has joined #ruby
etcetera has quit [Client Quit]
banisterfiend is now known as banister`sleep
renanoronfle has quit [Client Quit]
nga4 has joined #ruby
sanukcm has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Remote host closed the connection]
yshh has joined #ruby
originalcamper has joined #ruby
arya has joined #ruby
sleetdrop has quit [Remote host closed the connection]
undersc0re97 has joined #ruby
sleetdrop has joined #ruby
synthetix has joined #ruby
nat26101 has quit [Quit: Leaving.]
mephux has quit [Excess Flood]
<ner0x> How can I declare a variable so that it will be able to be accessed from the instance of a class?
<ner0x> User.ROLES as a constant.
mephux has joined #ruby
sarkis has quit [Quit: leaving]
guns has quit [Quit: guns]
flyinprogramer has joined #ruby
sleetdrop has quit [Ping timeout: 256 seconds]
linusoleander has joined #ruby
<linusoleander> I've an event machine application that eats memory on my ubuntu server, but not in OS X
<linusoleander> In OS X the application takes ~ 150mb after 20 min, in Ubuntu it's 1.3Gb, why is that?
nat2610 has joined #ruby
<flyinprogramer> so - opinion / best practice question: http://pastebin.com/R86Z6TFB <-- is doing things like that best practice because it uses metaprogramming -- or would it be best practice to parse each attribute into a method within the object?
main_ has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
MattRB has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
nat26101 has joined #ruby
nat2610 has quit [Read error: Connection reset by peer]
Kingy has quit [Quit: Leaving]
peregrine81 has joined #ruby
jonathanwallace has joined #ruby
hail_kuato has quit [Quit: hail_kuato]
wuzzzzaah has joined #ruby
megha has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
danshultz has joined #ruby
arya has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 255 seconds]
psyprus has quit [Ping timeout: 248 seconds]
arya has joined #ruby
psyprus has joined #ruby
danshultz has quit [Ping timeout: 256 seconds]
Skylab has quit [Quit: Skylab]
statarb3 has quit [Ping timeout: 246 seconds]
Skylab has joined #ruby
Virunga has quit [Remote host closed the connection]
asgardBSD has joined #ruby
main_ has joined #ruby
originalcamper has quit [Quit: Page closed]
iamjarvo has joined #ruby
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
chrisja has quit [Quit: leaving]
ryanh has joined #ruby
miskander has joined #ruby
nat26101 has quit [Quit: Leaving.]
AsgardBSD_ has quit [Ping timeout: 255 seconds]
dmerrick has quit [Read error: Operation timed out]
otherj has quit [Quit: otherj]
hail_kuato has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
pskosinski has quit [Ping timeout: 252 seconds]
johngalt2600 has quit [Ping timeout: 244 seconds]
megha has joined #ruby
arya has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
SrPx has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
heyitsdave has quit [Ping timeout: 244 seconds]
nat2610 has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
pskosinski has joined #ruby
reppard has joined #ruby
_nitti has joined #ruby
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
razieliyo has quit [Remote host closed the connection]
cyong has joined #ruby
<reppard> anyone know how to change the size of a tmux split?
cyong has quit [Client Quit]
main_ has quit [Ping timeout: 255 seconds]
main_ has joined #ruby
grzywacz has quit [Ping timeout: 256 seconds]
arya has joined #ruby
jacktrick has joined #ruby
huoxito has joined #ruby
mrsolo has quit [Quit: Leaving]
<Spooner_> flyinprogramer, You don't put the , in a %w list. It splits by spaces so the , will be in each string.
nat2610 has quit [Quit: Leaving.]
otters has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
<flyinprogramer> Spooner_: ignoring that - i have someone that believes "define_method" was built for doing things like that
bwlang has joined #ruby
<Spooner_> flyinprogramer, I guess it is. It is just how stuff like attr_reader works after all.
<flyinprogramer> yah, but i feel like if the objects attributes get more complicated than reading data out of a hash, then it becomes a mess, so why ?
_nitti_ has joined #ruby
nat2610 has joined #ruby
<Spooner_> So why what?
<flyinprogramer> like why do things like that instead of just breaking out each attribute into a method and documenting it, allowing for easy code navigation
<flyinprogramer> i feel like code like that is misinterpretation of DRY because you sacrifice the ability to document
ngoldman has quit [Quit: woosh]
ahokaomaeha has joined #ruby
jacktrick has quit [Client Quit]
<Spooner_> A lot of people would split it like that and yes, it is breaking maintainability to a degree.
<Spooner_> There is nothing stopping you documenting, however.
_nitti has quit [Ping timeout: 256 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
<flyinprogramer> how would you rdoc something like that ?
<flyinprogramer> or would you just write english and do some ascii prettiness ?
Takehiro has joined #ruby
<Spooner_> In yardoc, @!attribute [r] phone_number
mockra has quit [Remote host closed the connection]
<flyinprogramer> Spooner_: aw man i'm silly
end_guy has quit [Remote host closed the connection]
<Spooner_> I believe you could create a special generator, so you could do type_reader :first_name, :last_name, whatever and then tell yardoc to parse that in the same way as attr_reader.
<Spooner_> Though I've not tried to do that myself.
<flyinprogramer> alright
<flyinprogramer> thanks for the input
<flyinprogramer> :)
x82_nicole has joined #ruby
slainer68 has joined #ruby
<Spooner_> You still end up documenting each attribute individually though (unless you get cleverer with yardoc than I am). I guess there comes a point where meta is just easier and a point where manual is just better. Whether 4 is on one side or the other is debatable.
dougireton has joined #ruby
jaequery has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
<flyinprogramer> yah
<flyinprogramer> idk, guess i'm just stubborn
v0n has joined #ruby
<Spooner_> You could just expose #[] instead and document that ;)
Bry8Star has quit [Ping timeout: 276 seconds]
anonymuse has quit [Quit: Leaving.]
slainer68 has quit [Ping timeout: 245 seconds]
freezway has joined #ruby
chimkan_ has joined #ruby
rakl has quit [Quit: sleeping]
pskosinski has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
davidcel_ has joined #ruby
miskander has quit [Quit: miskander]
alvaro_o_ has quit [Quit: Ex-Chat]
davidcel_ has quit [Client Quit]
rakl has joined #ruby
rakl has quit [Client Quit]
chimkan has quit [Ping timeout: 255 seconds]
chimkan_ is now known as chimkan
breakingthings has quit []
_veer has quit [Read error: Connection reset by peer]
sbear has quit [Ping timeout: 260 seconds]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
breakingthings has joined #ruby
nari has joined #ruby
DrCode has joined #ruby
arya_ has joined #ruby
miskander has joined #ruby
brianpWins has quit [Quit: brianpWins]
jaequery has quit [Quit: Computer has gone to sleep.]
Vektur has quit []
DaltonUS has joined #ruby
dougireton has quit [Quit: Leaving.]
arya has quit [Ping timeout: 252 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
sleetdrop has joined #ruby
mmitchell has joined #ruby
chendo_ is now known as chendo
jaequery has joined #ruby
jaequery has quit [Client Quit]
meoblast001 has joined #ruby
Takehiro has joined #ruby
jaequery has joined #ruby
sleetdrop has quit [Remote host closed the connection]
Bry8Star has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
blaxter has quit [Read error: Connection reset by peer]
main_ has quit [Ping timeout: 240 seconds]
goraxe has quit [Read error: Operation timed out]
aapzak has joined #ruby
yoshie902a has joined #ruby
jaequery has quit [Client Quit]
poikon has joined #ruby
miskander has quit [Quit: miskander]
<yoshie902a> I need the equivalent of JavaScript's getComputedStyle(), but in ruby to identify the CSS style of html elements. Can anyone recommend a solution?
bricker is now known as bricker`work
miskander has joined #ruby
thams has quit [Quit: thams]
xAndy is now known as xandy
miskander has quit [Client Quit]
Cecilia has joined #ruby
cantonic has joined #ruby
ThePicard has joined #ruby
<ThePicard> heyo, the first google result for 'ruby isalpha' is something telling you to use regex
danshultz has joined #ruby
<ThePicard> can anyone do better?
poikon has quit [Ping timeout: 256 seconds]
thams has joined #ruby
<ThePicard> something like 'a'.alpha? would be nice.
<ThePicard> but that doesn't seem to exist =(
adeponte has quit [Ping timeout: 252 seconds]
swex has quit [Remote host closed the connection]
Bry8Star has quit [Max SendQ exceeded]
bwlang has left #ruby [#ruby]
thams has quit [Client Quit]
swex has joined #ruby
vinax has joined #ruby
<ThePicard> Cecilia: that's matching against a regex =(
danshultz has quit [Ping timeout: 252 seconds]
mmitchell has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
<Ohga> ThePicard: the problem with a regex is..?
<ThePicard> Ohga: i think it's stupid mostly ;)
<Ohga> ThePicard: because...?
<ThePicard> because it is... testing a single charater on a regex
<ThePicard> is dumb =P
<Ohga> why?
<ThePicard> because there is already an isalpha method that likely is very fast
<ThePicard> and there is no reason there shouldn't be bindings to it
joeycarmello has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
<ThePicard> also, because it's just general utility
<ThePicard> that makes sense to be there
<reppard> exit
<reppard> damnit, wrong window
<ThePicard> for all the things that ruby has... it doesn't have .alpha?
<Ohga> for all the thing that x have, it doesn't have y.. (that is, this argument is a bit week)
piotr_ has quit [Ping timeout: 260 seconds]
reppard has left #ruby [#ruby]
<ThePicard> >_<
<Ohga> anyway, I could agree if rubys regex aren't compiled. I don't know my self, started reading about ruby a week ago
[rupee] has joined #ruby
<Ohga> also, that should be "weak", obviously
<ThePicard> yes
<ThePicard> the thing is, it's just irritating
<ThePicard> when everything else has isalpha
<Ohga> but if ruby compile the regex, then I'm sure they are equaly fast
<Ohga> if not faster..
<ThePicard> in some way or form
<ThePicard> no, they would not be faster
icole has quit [Remote host closed the connection]
<ThePicard> that's ridiculous
<Ohga> but if there is an isalpha, then just mixin an #alpha? method on String that use isalpha
<yoshie902a> rubular.com is a nice website to test your regex with ruby
sbear has joined #ruby
adeponte has joined #ruby
<ThePicard> Ohga: no, there isn't isalpha
nat2610 has quit [Quit: Leaving.]
<ThePicard> i meant there is in C
<Ohga> ThePicard: ok, well.. then you have the answer already
end_guy has joined #ruby
<ThePicard> Ohga: how
nat2610 has joined #ruby
blazes816 has joined #ruby
<ThePicard> why is there no isalpha, isupper, etc. in ruby?
<Ohga> ThePicard: if there isn't an isalpha, then you use that regex instead
rupee has quit [Ping timeout: 255 seconds]
<ThePicard> ...
MattRB has joined #ruby
<Ohga> ThePicard: well, no one have written them I suppose..
<ThePicard> Ohga: why _not_?
Bry8Star has joined #ruby
<ThePicard> it's not like they are hard
<ThePicard> and it's irritating to have to define them yourself
<ThePicard> not that it's diffucult
<Ohga> I'm not trying to be bumptious, I'm just guessing
<ThePicard> haha
<Ohga> I don't know why they don't exist..
<ThePicard> I suppose the reason is that ruby is from japan so english doesn't get special treatment like in every other language
<ThePicard> I'm still irritated though! =P
<Ohga> but I mean.. why is it important to use isalpha compared to a regex?
<yoshie902a> ThePicard: not that big of a deal /[A-Za-z0-9]/
<Ohga> if you're after performance then, although ruby seem to have become much better, this isn't the language you're after
butblack has joined #ruby
[rupee] has quit [Ping timeout: 252 seconds]
<ThePicard> Ohga: I'm not after performance
<butblack> is there a method to call on an object to find out what type it is?
<yoshie902a> perl for performance
<ThePicard> it's just the principle of using a regex for something so stupidly simple
<ThePicard> yoshie902a: lolololol
<Ohga> ThePicard: alright, no problems there then
tjbiddle has quit [Ping timeout: 256 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<Ohga> ThePicard: so just personal taste then..
<yoshie902a> ThePicard: am I wrong? for text processing, I read it was preferred.
Hanmac2 has joined #ruby
louisror has quit [Ping timeout: 276 seconds]
<ThePicard> yoshie902a: yeah, for anything in this decade, perl is not preferred.
butblack has left #ruby [#ruby]
<ThePicard> Ohga: yes, pretty much
<ThePicard> and I feel validated because every other language has it ;)
<Ohga> but a languages doesn't have to have or do x just because "all" others do it..
Hanmac1 has quit [Ping timeout: 244 seconds]
Cecilia has quit [Quit: Page closed]
louisror has joined #ruby
banjara has quit [Quit: Leaving.]
<yoshie902a> ThePicard: thank you for correcting me. FWIW: http://www.unlimitednovelty.com/2012/06/ruby-is-faster-than-python-php-and-perl.html
joofsh has joined #ruby
jduan1981 has quit [Ping timeout: 256 seconds]
LiquidInsect has quit [Ping timeout: 240 seconds]
wuzzzzaah has joined #ruby
ahokaomaeha has quit [Ping timeout: 245 seconds]
fyolnish has joined #ruby
<ThePicard> yoshie902a: i would guess that python is actually faster than ruby for most tasks
taoru_ has joined #ruby
<ThePicard> but the amount is probably insignificant except at large scales
eka has quit [Quit: Computer has gone to sleep.]
<ThePicard> ie, they are both really slow
jaequery has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
<ThePicard> but I've heard this and that about the ruby GC and how it chokes when you are using lots and lots of memory
havenwood has joined #ruby
maryh has joined #ruby
jaequery has quit [Client Quit]
maryh has quit [Client Quit]
sn0wb1rd has quit [Quit: I will be right back]
cakehero has joined #ruby
<Ohga> ThePicard: Having taken a peek in my teaching material, the trusty "PickAxe", I think isalpha is missing due to this:
<Ohga> ThePicard: in ruby a string is a string is a string.. that is, there is no type for individual characters
wallerdev has joined #ruby
taoru has quit [Ping timeout: 252 seconds]
JumpMast3r has joined #ruby
<ThePicard> Ohga: python just checks for every char in the string
mkinitrd has left #ruby ["Leaving"]
<Ohga> ThePicard: picking out one character from a string is to get a string with that sole character
<ThePicard> I think my ruby comes from japan argument makes more sense
adeponte has quit [Remote host closed the connection]
<ThePicard> And i'm no longer salty about using regexes XD
dallasm has left #ruby [#ruby]
<Ohga> ThePicard: the second thing is that regex is used with most if not all of String's method
louisror has quit [Ping timeout: 256 seconds]
Myconix has joined #ruby
LiquidInsect has joined #ruby
<Ohga> ThePicard: so this is chosen as the pervasive tool for manipulating strings, no need for low level bit juggling such as that of isalpha
<Ohga> sure, the regex engine have to do this, but that's outside of the programmers concern
<Ohga> does that answer your "why?"?
shtirlic has joined #ruby
xemu2 has joined #ruby
xemu has quit [Ping timeout: 256 seconds]
thufir_ has joined #ruby
<ThePicard> Ohga: sort of
rakl has joined #ruby
cakehero has quit [Ping timeout: 255 seconds]
_nitti_ has quit [Remote host closed the connection]
matchaw_ has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
<Ohga> note though that I don't *know* this. it's my best guess
<ThePicard> yeah
_nitti has quit [Remote host closed the connection]
pavilionXP has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
Goles has quit [Quit: Out.]
nfk has quit [Quit: yawn]
ManAmongHippos has joined #ruby
shtirlic has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
havenwood has quit [Remote host closed the connection]
moos3 has joined #ruby
jbw has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
philcrissman has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
ffranz has quit [Quit: Leaving]
wuzzzzaah has joined #ruby
bricker`1A is now known as bricker
wuzzzzaah has quit [Client Quit]
flyinprogramer has quit [Quit: flyinprogramer]
s1n4 has quit [Quit: leaving]
jonathanwallace has joined #ruby
joeycarmello has quit [Remote host closed the connection]
uris has quit [Ping timeout: 260 seconds]
<breakingthings> Dearest #ruby, how would one create a delegate such that an instance of class "Connection", that holds an instance of class "IO", can delegate certain methods to IO most efficiently
Vektur has joined #ruby
whitedawg has joined #ruby
bwlang has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
jduan1981 has joined #ruby
yale has joined #ruby
uris has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
linusoleander has quit [Quit: linusoleander]
mockra has joined #ruby
benlieb has quit [Quit: benlieb]
cheese1756 has quit [Quit: ZNC - http://znc.in]
cheese1756 has joined #ruby
Spooner_ has quit [Read error: Connection reset by peer]
mafolz has quit [Ping timeout: 255 seconds]
banjara has joined #ruby
rupee has joined #ruby
squidBits has quit [Quit: whoops]
[rust] has joined #ruby
mafolz has joined #ruby
jonathanwallace has joined #ruby
mockra has quit [Remote host closed the connection]
BulleTime has quit [Ping timeout: 260 seconds]
poikon has joined #ruby
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
benlieb has joined #ruby
gnarmis has joined #ruby
benlieb has quit [Client Quit]
jbonhag has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
Takehiro has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
poikon has quit [Ping timeout: 256 seconds]
guns has joined #ruby
banjara has quit [Client Quit]
Skylab has quit [Quit: Skylab]
huoxito has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
taoru_ has quit [Remote host closed the connection]
havenwood has joined #ruby
apok has quit [Quit: apok]
taoru has joined #ruby
alienvenom has quit [Ping timeout: 248 seconds]
alienvenom has joined #ruby
xemu2 has quit [Quit: Nettalk6 - www.ntalk.de]
miskander has joined #ruby
yoshie902a has left #ruby [#ruby]
psyprus has quit [Changing host]
psyprus has joined #ruby
miskander has quit [Client Quit]
cobragoat has quit [Quit: cobragoat]
chrismhough has quit [Quit: chrismhough]
mockra has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
dr_neek has joined #ruby
Hanmac2 has quit [Quit: Leaving.]
objectivemo has quit [Read error: Connection reset by peer]
objectivemo has joined #ruby
bjeanes has quit [Ping timeout: 248 seconds]
bjeanes has joined #ruby
Hanmac1 has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
jbonhag has left #ruby ["tuesday"]
generalissimo has joined #ruby
joeycarmello has joined #ruby
havenwood has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
dougireton has joined #ruby
toekutr has joined #ruby
miskander has joined #ruby
pskosinski has quit [Ping timeout: 256 seconds]
hail_kuato has left #ruby [#ruby]
Ohga has left #ruby [#ruby]
h4mz1d has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
bwlang has left #ruby [#ruby]
Takehiro has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
adeponte has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
freeayu has joined #ruby
dr_neek has quit [Ping timeout: 276 seconds]
louisror has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
cantonic has quit [Read error: Connection reset by peer]
cantonic_ has joined #ruby
nat2610 has quit [Quit: Leaving.]
arya_ has quit [Ping timeout: 255 seconds]
_nitti has quit [Remote host closed the connection]
Umren has quit [Ping timeout: 245 seconds]
benlieb has joined #ruby
dougireton has quit [Quit: Leaving.]
tommyvyo has joined #ruby
emmanuelux has quit [Remote host closed the connection]
JackyAlcine has joined #ruby
meoblast001 has quit [Read error: Connection reset by peer]
tommyvyo has quit [Client Quit]
Axsuul has quit [Ping timeout: 252 seconds]
arya has joined #ruby
MattRB has joined #ruby
MattRB has quit [Client Quit]
crackfu has joined #ruby
tommyvyo has joined #ruby
roadt has joined #ruby
xpen has joined #ruby
<breakingthings> So… if you're in your own module namespace… how do you specifically refer to a stdlib class
<breakingthings> eg. I have MyModule::IO, but there's also IO in stdlib
<breakingthings> and, unless I'm missing something, calling IO from inside my module will go to MyModule::IO
undersc0re97 has quit [Read error: Connection reset by peer]
colonolG1on has joined #ruby
MattRB has joined #ruby
ahokaomaeha has joined #ruby
crackfu has quit [Remote host closed the connection]
whitedawg has quit [Quit: Leaving.]
MattRB has quit [Client Quit]
colonolGron has quit [Ping timeout: 252 seconds]
bricker has quit [Quit: leaving]
joofsh has quit [Remote host closed the connection]
DaltonUS has quit [Quit: DaltonUS]
chimkan_ has joined #ruby
sbear has quit [Ping timeout: 252 seconds]
jon_wingfield has joined #ruby
chimkan has quit [Ping timeout: 264 seconds]
chimkan_ is now known as chimkan
forced_request has quit [Read error: Connection reset by peer]
johngalt2600 has joined #ruby
yale has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
yacks has joined #ruby
jankly has joined #ruby
tjbiddle has joined #ruby
arya has quit [Ping timeout: 256 seconds]
cobragoat has joined #ruby
generalissimo is now known as frowny_man
ner0x has quit [Quit: Leaving]
robbyoconnor has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
dustint has joined #ruby
chimkan_ has joined #ruby
arya has joined #ruby
elfenars has joined #ruby
poikon has joined #ruby
chimkan has quit [Ping timeout: 255 seconds]
chimkan_ is now known as chimkan
freakazoid0223 has quit [Ping timeout: 256 seconds]
mikepack has quit [Remote host closed the connection]
dougireton has joined #ruby
tjbiddle_ has joined #ruby
poikon has quit [Ping timeout: 256 seconds]
iamjarvo1 has joined #ruby
dougireton has left #ruby [#ruby]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
dustint has quit [Remote host closed the connection]
<unstable> If I have a bunch of objects in an array, how can I tell what the most frequent occurence of a particular attribute of those objects is?
<unstable> So obj.suit say, and I want to find out the most frequent suits occuring in an array of playing card objects.
dmerrick has joined #ruby
chimkan_ has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
dougireton has joined #ruby
dougireton has left #ruby [#ruby]
elfenars has quit [Quit: elfenars]
kold has joined #ruby
chimkan has quit [Ping timeout: 255 seconds]
moos3 has quit [Ping timeout: 255 seconds]
chimkan_ is now known as chimkan
philcrissman has quit [Remote host closed the connection]
Laughing_God has joined #ruby
louisror has quit [Ping timeout: 264 seconds]
MattRB has joined #ruby
dcwu has joined #ruby
radic has quit [Read error: Operation timed out]
jonathanwallace has quit [Ping timeout: 276 seconds]
vinax has quit []
pu22l3r has joined #ruby
<unstable> breakingthings: That is getting the right result, though it's tearing off my : symbol.
mephux has quit [Excess Flood]
<unstable> So it went from "{:hearts=>2, :diamonds=>1}" to "hearts"
mephux has joined #ruby
_veer is now known as lolsuper_
miskander has left #ruby [#ruby]
<unstable> I will just do to_sym
<havenwood> breakingthings: Just IO will do MyModule::IO, but you can do ::IO to get outside the namespace.
<breakingthings> Huh. That's interesting
<breakingthings> thanks
Laughing_God has left #ruby ["Leaving"]
<breakingthings> unstable: http://cl.ly/MUmG
<breakingthings> still a symbol for me.
<breakingthings> sure you're not printing out a string or something?
mercwithamouth has joined #ruby
Umren has joined #ruby
Laughing_God has joined #ruby
beaky has joined #ruby
zph has joined #ruby
<unstable> breakingthings: I'm not sure, it works all of the sudden for me too.
<unstable> It was probably a PEBKAC issue.
<breakingthings> yeah, mebbe.
<unstable> I might have forgotten to save or something.
<unstable> Thanks for the help though, I appreciate it.
<breakingthings> np
Umren has quit [Read error: Connection reset by peer]
radic has joined #ruby
beaky has quit [Ping timeout: 255 seconds]
philcrissman has joined #ruby
Laughing_God has quit [Quit: Leaving]
v0n has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
rakl has quit [Quit: sleeping]
cakehero has joined #ruby
brianpWins has joined #ruby
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
bigmac has quit [Remote host closed the connection]
breakingthings has quit []
jrajav has quit [Quit: I tend to be neutral about apples]
slainer68 has quit [Ping timeout: 256 seconds]
berserkr has quit [Quit: Leaving.]
_nitti has joined #ruby
maletor has joined #ruby
joeycarmello has quit [Ping timeout: 257 seconds]
banjara has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
chimkan has quit [Quit: chimkan]
ahokaomaeha is now known as nishidabianya
wargasm has joined #ruby
kold has quit [Remote host closed the connection]
My_Hearing has quit [Ping timeout: 252 seconds]
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
haxrbyte has joined #ruby
jduan1981 has quit [Quit: jduan1981]
yshh_ has joined #ruby
nat2610 has joined #ruby
uris has quit [Quit: Leaving]
yshh has quit [Read error: No route to host]
jlast has quit [Remote host closed the connection]
reset has quit [Ping timeout: 245 seconds]
nat2610 has quit [Client Quit]
chimkan has joined #ruby
Vektur has left #ruby [#ruby]
Vektur has joined #ruby
geggam has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
Evixion has quit [Quit: Leaving]
EPIK has quit []
aaronmacy has quit [Quit: Leaving.]
Bry8Star has quit [Ping timeout: 276 seconds]
Kudos has quit [Ping timeout: 246 seconds]
iamjarvo1 has quit [Quit: Leaving.]
poikon has joined #ruby
Vektur has quit []
nat2610 has joined #ruby
HAKEON has quit [Quit: HAKEON]
xibalb has joined #ruby
ananthakumaran has joined #ruby
<xibalb> hey guys, what do you think of this write up on the Net::HTTP Library? http://danknox.github.com/2013/01/27/using-rubys-native-nethttp-library/
x82_nicole has quit [Quit: Computer has gone to sleep.]
poikon has quit [Ping timeout: 255 seconds]
rupee has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Client Quit]
icole has joined #ruby
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby
zph has joined #ruby
pu22l3r has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 256 seconds]
jonahR has joined #ruby
jun_kame has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
maletor has quit [Ping timeout: 246 seconds]
chrismhough has joined #ruby
mockra has quit [Remote host closed the connection]
xibalb has left #ruby ["Leaving"]
maletor has joined #ruby
jonathanwallace has joined #ruby
cobragoat has quit [Read error: Connection reset by peer]
cobragoat has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
girija has joined #ruby
nat2610 has quit [Quit: Leaving.]
dmiller has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
rippa has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
x82_nicole has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
elkclone has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
h4mz1d has quit [Ping timeout: 245 seconds]
a_a_g has joined #ruby
MattRB has joined #ruby
nomenkun has joined #ruby
<shevy> my brain does not work right now that early in the morning but
<shevy> why does x = ! x inverse the boolean value of x again?
etcetera has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran1 has joined #ruby
<reactormonk> shevy, ! is not
mahmoudimus has quit [Quit: Computer has gone to sleep.]
DrCode has quit [Quit: ZNC - http://znc.in]
yacks has quit [Ping timeout: 256 seconds]
<shevy> hmmmmm
<shevy> true = not false
<shevy> that would return true right? as it would be a true condition
<shevy> ohhh wait
<shevy> if x is true, then x = ! x would be ... true = not true
nomenkun has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 252 seconds]
yshh_ has quit [Read error: Connection reset by peer]
yshh has joined #ruby
DrCode has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
dankest has joined #ruby
<havenwood> shevy: true == not(true) #=> true; true == !true #=> true
<shevy> true == !true # => false
<havenwood> shevy: ahh
<shevy> but I think I got it finally
<havenwood> shevy: Gah, I wrote that opposite as I meant.
<havenwood> shevy: What i meant was: true == not(false) #=> true
<havenwood> nevermind
<shevy> yeah no worries
<shevy> my brain is only 5% awake right now :(
nycjv321 has joined #ruby
<havenwood> ditto
<nycjv321> maybe this is a stupid question what is difference between capybara and selenium?
Targen has quit [Ping timeout: 240 seconds]
<nycjv321> selenium is just generic tool with langauge interface and capybara is ruby specific?
joeycarmello has joined #ruby
andrewhl has quit [Remote host closed the connection]
sbear has joined #ruby
<aedornm> pretty much.. they both accomplish the same things. Watir, Capybara, Selenium, and others, just automate web site interaction. Watir and Capybara are very much Ruby specific, Selenium is multi-language
<nycjv321> ah! okay
<nycjv321> I work using QTP and its honestly grueling most of the time
jonathanwallace has joined #ruby
tommyvyo has joined #ruby
joeycarmello has quit [Ping timeout: 240 seconds]
<aedornm> You can mimic QTP by using a variety of tools ... like Sikuli, Rspec, and TestLink would be one example, and it would actually be less maddening ;)
jinzhu has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<aedornm> (though I think I'd rather use QTP than STAF in most cases, so it has its advantages)
<nycjv321> Trying to pick up on something open source... which tends to be 1000x more efficient :) just gotta get solid background in ruby or java <-- I know Java for most part but like Ruby alot more haha... (first language is perl :))
b1rkh0ff has quit [Ping timeout: 276 seconds]
b1rkh0ff has joined #ruby
osaut has joined #ruby
sambio has quit []
<havenwood> nycjv321: If you haven't already, might wanna check out JRuby, great implementation of Ruby on the JVM!
<nycjv321> idk I just opened up Selenium today and starting writing some code and interacting with a web page and man it was so smooth (granted slow attributing that to the vm)
<nycjv321> like if im doing qtp/qc I have to do all this rubbish to write some code
ryanf has quit [Quit: leaving]
blacktulip has joined #ruby
<nycjv321> havenwood: I'll have to check it out.. I've been doing ruby for about a month now... it makes me feel right at home (from Perl) I honestly love it.... just need more experience in it...
<aedornm> My personal favorite is Watir, but Selenium is definitely more popular
Takehiro has joined #ruby
freezway has quit [Ping timeout: 256 seconds]
yacks has joined #ruby
<nycjv321> I'll have to check it out also
jonathanwallace has quit [Ping timeout: 252 seconds]
<nycjv321> havenwood : is jruby faster then standard C implementation?
poikon has joined #ruby
<havenwood> nycjv321: Generally, yes. Slower startup time, but once its running quite fast.
<nycjv321> havenwood: ah okay
<nycjv321> its interesting to see that its possible to do that though
<nycjv321> yea I just picked up ruby so I'm still a scrub in it, really just a scrub developer haha :P but I really like it... its amazing honestly considering what you can do in it
colonolG1on has quit [Quit: Lost terminal]
JohnBat26 has joined #ruby
<nycjv321> compared to many other langauges
<havenwood> nycjv321: As a fellow scrub I agree, <3 Ruby!!
<nycjv321> havenwood: :D
<havenwood> nycjv321: I've been having fun playing with Elixir. Ruby is my favorite though. :D
<nycjv321> I love its integration of regex, and how it hangles oo... <--- main reason why I stopped doing Perl... just picked up Java as per recommendation and then found out about Ruby... gonna be flipping between both I guess
<aedornm> heh... I started learning Elixir too, well, and Erlang also. Still not sure what I'd use it for just yet
<nycjv321> wth haha
<nycjv321> its just soo much lol
* nycjv321 brain explodes
jonahR has quit [Quit: jonahR]
Gue______ has joined #ruby
Axsuul has joined #ruby
psyprus has quit [Quit: leaving]
jaequery has quit [Quit: Computer has gone to sleep.]
<nycjv321> handles*
* nycjv321 facepalms
tjbiddle has quit [Quit: tjbiddle]
nycjv321 has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
tjbiddle has joined #ruby
krz has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
ThePicard has quit [Quit: WeeChat 0.3.8]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
arya has quit [Ping timeout: 256 seconds]
tjbiddle_ has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
poikon has quit [Ping timeout: 256 seconds]
toekutr has joined #ruby
andrewhl has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
arya has joined #ruby
jinzhu has quit [Quit: leaving]
Goldman82 has joined #ruby
dkannan has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
ryanf has joined #ruby
answer_42 has joined #ruby
n1x has joined #ruby
<shevy> encoding encoding encoding ...
mockra has joined #ruby
ninegrid_ has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Bry8Star has joined #ruby
cobragoat has quit [Quit: cobragoat]
ninegrid has quit [Ping timeout: 276 seconds]
aaronmacy has joined #ruby
mockra has quit [Ping timeout: 255 seconds]
jonathanwallace has joined #ruby
Takehiro has quit [Remote host closed the connection]
cobragoat has joined #ruby
dmerrick has quit [Quit: dmerrick]
dankest has quit [Quit: Leaving...]
zommi has joined #ruby
Takehiro has joined #ruby
<shevy> how do I find out the encoding of a string again?
<shevy> x.encoding # => #<Encoding:ASCII-8BIT>
<shevy> ah yes :)
rakl has joined #ruby
ninegrid_ is now known as ninegrid
markalanevans has joined #ruby
vlad_starkov has joined #ruby
Takehiro has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 255 seconds]
taoru has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
techlife has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
zyrex has joined #ruby
arya has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
techlife has joined #ruby
zyrex has quit [Client Quit]
MattRB has quit [Quit: This computer has gone to sleep]
<aedornm> Sometimes... it's just easier to delete and start over. 834 lines of fairly crappy code
xpen has quit [Remote host closed the connection]
Gue______ has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
shock_one has joined #ruby
ninegrid has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
etcetera has quit []
andrewhl has quit [Remote host closed the connection]
ninegrid has joined #ruby
gvz has joined #ruby
arya has quit [Ping timeout: 245 seconds]
puppeh has joined #ruby
frowny_man has quit [Remote host closed the connection]
m3pow has joined #ruby
ryanh has quit [Ping timeout: 244 seconds]
arya has joined #ruby
DrCode has quit [Remote host closed the connection]
straind` has quit [Ping timeout: 252 seconds]
otters has quit [Ping timeout: 245 seconds]
ryanh has joined #ruby
ChampS666 has joined #ruby
Choobie has joined #ruby
jonathanwallace has joined #ruby
cableray has quit [Quit: cableray]
yacks has quit [Ping timeout: 245 seconds]
robustus has quit [Ping timeout: 248 seconds]
<aedornm> hmmm... gotta be a better way to handle global logging instead of tossing defined?(logger) all over the place
clocKwize has joined #ruby
chrismhough has quit [Quit: chrismhough]
chimkan has quit [Quit: chimkan]
robustus has joined #ruby
<aedornm> oh, right...
<ryanf> aedornm: define MyNamespace.logger to be Logger.new(File::NULL) unless specified otherwise?
straind has joined #ruby
poikon has joined #ruby
jun_kame has quit [Ping timeout: 246 seconds]
Kudos has joined #ruby
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
nomenkun has quit [Remote host closed the connection]
DrCode has joined #ruby
haxrbyte has joined #ruby
SrPx has quit [Quit: SrPx]
Elhu has joined #ruby
Nanuq has quit [Read error: Operation timed out]
poikon has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
yacks has joined #ruby
chimkan has joined #ruby
osaut has quit [Quit: osaut]
megha has quit [Quit: WeeChat 0.4.0]
arya has quit [Ping timeout: 244 seconds]
ManAmongHippos has quit [Quit: ManAmongHippos]
browndawg has joined #ruby
Morkel has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
aaronmacy has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
megha has joined #ruby
end_guy has quit [Ping timeout: 276 seconds]
end_guy has joined #ruby
grzywacz has joined #ruby
arya has joined #ruby
megha has quit [Client Quit]
jaequery has joined #ruby
Evixion has joined #ruby
beliveyourdream has joined #ruby
banjara has quit [Quit: Leaving.]
jun_kame has joined #ruby
jaequery has quit [Client Quit]
Hanmac has quit [Ping timeout: 245 seconds]
megha has joined #ruby
DrCode has joined #ruby
jaequery has joined #ruby
DrCode has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
coder_neo has joined #ruby
chimkan has quit [Quit: chimkan]
benlieb has quit [Quit: benlieb]
jduan1981 has joined #ruby
pcarrier has quit []
poikon has joined #ruby
aganov has joined #ruby
arturaz has joined #ruby
jaequery has joined #ruby
piotr_ has joined #ruby
fuzai has joined #ruby
<fuzai> is there an easy way in ruby to start a shell script and capture the output and process on it from the process that started it? What i'm trying to do is make a websocket wrapper around the stdout of a running process.
<fuzai> maybe to fire off the process as a file handle in read mode or something?
<fuzai> read-write would be cool too
nishidabianya is now known as ahokaomaeha
poikon has quit [Ping timeout: 252 seconds]
<fuzai> I think i just found it with popen
jonathanwallace has joined #ruby
ChampS666 has quit [Ping timeout: 252 seconds]
Evixion has quit [Quit: Leaving]
yacks has quit [Ping timeout: 246 seconds]
puppeh has quit [Quit: Leaving...]
cableray has joined #ruby
<fuzai> IO.popen("nkf -e filename", :external_encoding=>"EUC-JP") {|nkf_io| this |var| by itself is it being an alias to another variable?
rezzack has quit [Quit: Leaving.]
<arturaz> huh?
ryanf has quit [Quit: leaving]
Hanmac has joined #ruby
<fuzai> IO.popen("nkf -e filename", :external_encoding=>"EUC-JP") {|nkf_io|
<fuzai> what is being done to nfk_io?
DrCode has joined #ruby
main_ has joined #ruby
TomyLobo has joined #ruby
Nanuq has joined #ruby
rezzack has joined #ruby
filipe has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
aaronmacy has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
<Hanmac> fuzai nkf_io is an io object where you can read the stuff
shtirlic has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
Nanuq has quit [Ping timeout: 252 seconds]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 256 seconds]
ghw has joined #ruby
fuzai_ has joined #ruby
shtirlic has quit [Ping timeout: 256 seconds]
fuzai has quit [Ping timeout: 260 seconds]
fuzai_ is now known as fuzai
banjara has joined #ruby
ghw has quit [Quit: ghw]
osaut has joined #ruby
Nanuq has joined #ruby
dr_bob has joined #ruby
yacks has joined #ruby
DrCode has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Guest__ has joined #ruby
stayarrr has joined #ruby
megha has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
skcin7 has joined #ruby
etank has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 255 seconds]
megha has joined #ruby
dekroning has joined #ruby
tjbiddle_ has joined #ruby
h8R has quit [Ping timeout: 245 seconds]
JumpMast3r has joined #ruby
mahmoudimus has joined #ruby
h8R has joined #ruby
zigomir has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
billy_ran_away has quit [Ping timeout: 255 seconds]
dekroning has quit [Quit: Changing server]
dekroning has joined #ruby
arya_ has joined #ruby
arya has quit [Ping timeout: 255 seconds]
billy_ran_away has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Quit: Standby mode...]
poikon has joined #ruby
chussenot has joined #ruby
etank has joined #ruby
jonathanwallace has joined #ruby
beaky has joined #ruby
jimeh has joined #ruby
rakl has quit [Quit: sleeping]
vlad_starkov has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
DrCode has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jprovazn has joined #ruby
noxoc has joined #ruby
nomenkun has joined #ruby
lkba has joined #ruby
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
vlad_starkov has joined #ruby
hoelzro|away is now known as hoelzro
stkowski has quit [Quit: stkowski]
Guest__ has quit [Quit: Computer has gone to sleep.]
clooth has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
jgrevich has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
poikon has quit [Remote host closed the connection]
answer_42 has joined #ruby
banjara has quit [Quit: Leaving.]
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
toekutr has quit [Remote host closed the connection]
timonv has joined #ruby
TheFuzzball has joined #ruby
emergion has joined #ruby
moted has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
jduan1981 has quit [Quit: jduan1981]
Guest__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
io_syl has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
noxoc has quit [Quit: noxoc]
colgron has joined #ruby
<colgron> hello
hyperboreean has quit [Ping timeout: 260 seconds]
<hoelzro> howdy
io_syl has joined #ruby
marr has joined #ruby
<colgron> i need to install the ncurses gem under windows 7, running cygwin. however i get an error: ruby.h does not exist.
grzywacz has quit [Ping timeout: 245 seconds]
<colgron> i dont know how to fix this, or why it needs the header in the first place
cableray has quit [Quit: cableray]
pcarrier has joined #ruby
chussenot has joined #ruby
<Hanmac> colgron install the devkit (or the ruby dev package): it does need the header because its an C-Extension and not pure ruby ... and to build an C-Ext that works as a brigde between an lib and ruby you need the header files of both
clocKwize has quit [Quit: clocKwize]
workmad3 has joined #ruby
ottbot has quit [Quit: WeeChat 0.3.9.2]
hyperboreean has joined #ruby
jbw has joined #ruby
jonathanwallace has joined #ruby
pcarrier has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
samuel02 has joined #ruby
pcarrier has joined #ruby
thufir_ has quit [Quit: Leaving.]
elaptics`away is now known as elaptics
cableray has joined #ruby
wreckimn1 has joined #ruby
chriskk has joined #ruby
rdark has joined #ruby
noxoc has joined #ruby
chriskk has quit [Client Quit]
buscon has joined #ruby
adeponte has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 245 seconds]
answer_42 has quit [Remote host closed the connection]
<colgron> Hanmac: thank you. i'll try
yakko has quit [Ping timeout: 252 seconds]
arya has joined #ruby
chussenot has left #ruby [#ruby]
crackfu has joined #ruby
pen has joined #ruby
<colgron> Hanmac: seems that devkit isn't available via cygwin?
xpen has joined #ruby
<colgron> seems like i have the same issue like he has: http://stackoverflow.com/questions/6536006/ruby-devkit-in-cygwin-not-working
robotmay has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
nari has joined #ruby
beaky has quit [Quit: Lost terminal]
<Hanmac> i didnt use windows or mingw or cygwin ... but i think that somehow it should be possible to install the ruby stuff on cygwin too ... how did you install ruby on cygwin?
arya has quit [Ping timeout: 248 seconds]
Axsuul has quit [Ping timeout: 255 seconds]
emocakes has joined #ruby
brianpWins has quit [Quit: brianpWins]
<workmad3> colgron: did you read the accepted answer on that?
<colgron> Hanmac: i just selected it in the cygwin installer
<colgron> workmad3: yes. but it doesnt solve my problem
matchaw has joined #ruby
<colgron> workmad3: he sais cygwin contains all tools, but still i cant install the gem. so it doesnt help me much
<workmad3> colgron: can you gist the error trace you're geting?
daniel_- has joined #ruby
<workmad3> (or have you already? I've not been in chan long yet today :) )
dekroning has quit [Ping timeout: 256 seconds]
arya has joined #ruby
<colgron> workmad3: i'll try to find a way. this strange terminal emulator is not the best..
malte_ has quit [Quit: malte_]
<workmad3> colgron: yeah... I have to admit, I've never managed to get a stable cygwin environment set up... and I've tried many a time
SrPx has joined #ruby
<workmad3> but I haven't tried for a few years now, so it could be different (they may actually have it working now </troll> ) :)
shock_one has quit [Ping timeout: 252 seconds]
SrPx has quit [Client Quit]
<colgron> hehe sounds encouraging
quest88 has joined #ruby
girija has quit [Remote host closed the connection]
clocKwize has joined #ruby
k610 has joined #ruby
<colgron> i just noticed that it seems to use the Embacadero make instead of the one from cygwin (?)
clocKwize has quit [Client Quit]
poikon has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
clocKwize has joined #ruby
banjara has joined #ruby
jonathanwallace has joined #ruby
Vainoharhainen has joined #ruby
quest88 has quit [Quit: quest88]
poikon has quit [Ping timeout: 256 seconds]
[rust] has quit [Quit: This computer has gone to sleep]
tatsuya_o has joined #ruby
niklasb has joined #ruby
Xeago has joined #ruby
slainer68 has joined #ruby
girija has joined #ruby
arturaz has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
aaronmacy has quit [Quit: Leaving.]
timmow has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
banjara has quit [Ping timeout: 246 seconds]
<fuzai> if I have an array of hashes and in each of those hashes I have a common variable that I would like to compare to a another variable to see if it exists, is there an easy way to do this with something like include?
cdt has joined #ruby
dcwu has quit [Quit: Leaving.]
<fuzai> [ { "port" => 8000 }, { "port" => 8001 }] and i'd like to test if any of the port variables equal my random variable
<Hanmac> array.any? {|h| h["port"] == your_variable}
havenwood has quit [Remote host closed the connection]
<fuzai> thank you :)
vlad_starkov has quit [Remote host closed the connection]
gutsiest60 has quit [Ping timeout: 256 seconds]
cableray has quit [Quit: cableray]
swex has quit [Remote host closed the connection]
a_a_g1 has joined #ruby
swex has joined #ruby
<fuzai> wow that's a lot better then the idea i had
Guest__ has quit [Ping timeout: 256 seconds]
mengu has joined #ruby
Nisstyre has quit [Ping timeout: 245 seconds]
dekroning has joined #ruby
mongag has joined #ruby
a_a_g has quit [Ping timeout: 252 seconds]
crackfu has quit [Remote host closed the connection]
charliesome_ has joined #ruby
tatsuya__ has joined #ruby
crackfu has joined #ruby
rakuN has joined #ruby
Guest__ has joined #ruby
mafolz has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 256 seconds]
fyolnish has quit [Remote host closed the connection]
<fuzai> how do i leave a case while statement early?
Takehiro has quit [Read error: Connection reset by peer]
<hoelzro> fuzai: do you mean a while loop within a case statement?
crackfu has quit [Ping timeout: 264 seconds]
<fuzai> excuse me a when loop
<fuzai> statement
<fuzai> sorry my terminology sucks sometimes
zeromodulus has quit [Remote host closed the connection]
<fuzai> like a break or something
Takehiro has joined #ruby
<workmad3> fuzai: break
mafolz has joined #ruby
<workmad3> fuzai: wait... when loop?
<fuzai> statement
<fuzai> case when statement :)
<workmad3> ah
<fuzai> i'm sorry i typo'd that bad
<workmad3> right, so you're in a when statement, and some condition says 'don't do the rest of this'?
<colgron> workmad3: i still can't figure out how to get ncurses running with cygwin :-/ any idea?
tvw has joined #ruby
<workmad3> colgron: nope :/
<workmad3> colgron: sorry :(
<Hanmac> my idea: not use windows nor cygwin :D
<workmad3> colgron: there is exactly 1 windows machine in this house... it's my wife's, I try not to touch it :D
<fuzai> yea
<Hanmac> and not use ncurses ... there are better guis
<fuzai> basically case variable when /1/ break if thissucks
<workmad3> fuzai: right... so why not wrap it in an if statment? :)
<workmad3> when /1/; do_stuff unless thissucks
gutsiest60 has joined #ruby
grzywacz has joined #ruby
<fuzai> if bots.any? {|h| h["userid"] == userid} ws.send("USERID EXISTS ABORTING") break
<fuzai> end
<fuzai> :p
<fuzai> i dunno
<fuzai> because that's how my brain thought it out
<colgron> Hanmac: i'm at work. here i have to use windows. though i not like it :)
<colgron> workmad3: ok, no problem :)
<workmad3> fuzai: change that 'break' to an else ;)
cantonic_ has quit [Quit: cantonic_]
<colgron> Hanmac: what better guis are there?
<fuzai> now theres an idea :)
<Hanmac> colgron for sample wxWidgets, it has gui for windows, linux and mac too, and it has ruby bindings wxRuby and rwx
<workmad3> colgron: ones that give you pixels rather than characters? :)
<fuzai> oh so there is a wxRuby
<fuzai> thats gotta be a lot of fun to play with :)
<fuzai> i did wxPerl a very long time ago
<Hanmac> fuzai: i whould recoment rwx more ... its more rubyish
poikon has joined #ruby
<colgron> mhh
<fuzai> i'll probably never use it, but i pondered the idea of wxRuby a day or so ago
<fuzai> that's pretty cool
jonathanwallace has joined #ruby
<colgron> well my program is just for getting some hands on experience on ruby, so i could change. but i wanted to write something with gui for the console.
ddd has quit [Ping timeout: 245 seconds]
<colgron> i used wxWidgets with c++ once, but changed to Qt later
cantonic has joined #ruby
JackyAlcine has quit [Read error: Connection reset by peer]
<fuzai> i use processing for all my gui stuff
banjara has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
<colgron> i have never heard of processing
renanoronfle has joined #ruby
lkba has joined #ruby
nkr has joined #ruby
martinklepsch has joined #ruby
craigp has joined #ruby
aytch has quit [Ping timeout: 246 seconds]
security has joined #ruby
maxmanders has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
<JonnieCache> its that time again
<JonnieCache> rails fail time
megha has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 246 seconds]
stayarrr has quit [Quit: Leaving...]
rippa has joined #ruby
<JonnieCache> apparently its officially technoweenie's fault
security has quit [Quit: WeeChat 0.4.0]
<shevy> rails exists
<shevy> that is the biggest fail
aytch has joined #ruby
<Hanmac> what is the current problem?
<colgron> what is the difference between the gem "ncurses" and "ffi-ncurses". is there a way to get information about gems (via the gem progam) before installing them?
banjara has quit [Ping timeout: 276 seconds]
shtirlic has joined #ruby
<shevy> colgron I suppose ffi uses some automatic way to make bindings
sbear has quit [Ping timeout: 252 seconds]
<shevy> look at "gem help", it has sub-help stuff too
<fuzai> test = [ "1", "2" ]; puts "#{a} #{b}" if a = test.shift && b = test.shift # Output is: 2 2
<Hanmac> shevy ffi does not create bindings, but it access the functions from the lib directly
main_ has quit [Ping timeout: 276 seconds]
<colgron> thank you shevy
rakl has joined #ruby
<fuzai> whats the proper way to shift two values out at the same time?
<fuzai> so puts outputs 1 2?
craigp has quit [Quit: craigp]
poikon has quit [Remote host closed the connection]
<colgron> and thank you Hanmac
yasushi has joined #ruby
louisror has joined #ruby
yacks has joined #ruby
eka has joined #ruby
<shevy> fuzai what
<Hanmac> fuzai like that? b,a = test.shift(2)
poikon has joined #ruby
<fuzai> oh cool
<fuzai> yea just like that thank you
<fuzai> i'm glad i'm asking because the way i would go about it would look like crap compare to how simple that looks
<shevy> hehehe
<shevy> Hanmac why did you have b before a ...
sepp2k has quit [Remote host closed the connection]
poikon has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
cantonic has quit [Quit: cantonic]
browndawg has quit [Quit: Leaving.]
<shevy> ALL THOSE CONSTANT REWRITES
<shevy> TO IMPROVE
<shevy> GO ON MY NERVES
arya has joined #ruby
main_ has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby
heidar has quit [Quit: leaving]
heidar has joined #ruby
xpen has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
berserkr has joined #ruby
icole has joined #ruby
samphippen has joined #ruby
cantonic has joined #ruby
verto|off is now known as verto
poikon has joined #ruby
verto is now known as Guest24166
jonathanwallace has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
rjmt___ has quit [Ping timeout: 245 seconds]
fermion has joined #ruby
maxmanders has joined #ruby
Mon_Ouie has joined #ruby
icole has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
cantonic has quit [Quit: cantonic]
yacks has joined #ruby
<JonnieCache> Hanmac: more paramater parsing yaml leakage stuff
<JonnieCache> Hanmac: its basically the same vuln as before but exposed by a different bug
<JonnieCache> people have gone to town on those code paths in recent weeks
SrPx has joined #ruby
RurouniJones has joined #ruby
<JonnieCache> fortunately because rails is so modular its a very easy fix
yasushi has quit [Remote host closed the connection]
banister`sleep has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 252 seconds]
banister`sleep has joined #ruby
Takehiro has quit [Remote host closed the connection]
RurouniJones has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
RurouniJones has joined #ruby
main_ has quit [Ping timeout: 252 seconds]
arya has joined #ruby
crackfu has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
idkazuma has joined #ruby
<fuzai> >> test = ["1","2"]; puts "#{a} #{b}" if b,a = test.shift(2)
<eval-in> fuzai: Output: "/tmp/execpad-9475e87284d3/source-9475e87284d3:1: syntax error, unexpected ',', expecting $end\ntest = [\"1\",\"2\"]; puts \"\#{a} \#{b}\" if b,a = test.shift(2)\n ^\n" (http://eval.in/7911)
tvw has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
<fuzai> how do i test if shift completed correctly when writing back to more then one variable?
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
tvw has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
crackfu has quit [Ping timeout: 240 seconds]
fgro has joined #ruby
zmok has joined #ruby
Squarepy has joined #ruby
zmok has left #ruby [#ruby]
<Hanmac> >> test = ["1","2"]; b,a = test.shift(2); puts "#{a} #{b}" if [a,b].all?
<eval-in> Hanmac: Output: "2 1\n" (http://eval.in/7912)
<Hanmac> >> test = ["1"]; b,a = test.shift(2); puts "#{a} #{b}" if [a,b].all?
<eval-in> Hanmac: Output: "" (http://eval.in/7913)
<fuzai> sweet thank you
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<fuzai> i'm not sure what you call it but these functions that are associated to variable are pretty cool
browndawg has joined #ruby
<fuzai> variables
cdt has quit [Quit: Ex-Chat]
cdt has joined #ruby
<whitequark> fuzai: everything is an object in ruby
Giorgio has joined #ruby
idkazuma has quit [Remote host closed the connection]
<fuzai> kinda like everything is a file in linux?
<whitequark> it's not
<shevy> fuzai you can treat most things in ruby as an object
<shevy> there are a few cheats
<fuzai> oh i like cheats
<shevy> x = 5; def x.hi; puts "hi"; end
<shevy> TypeError: can't define singleton method "hi" for Fixnum
<shevy> it would work for other objects however
<whitequark> shevy: are you deliberately confusing newcomers?
<shevy> whitequark if it would be a real object, why can't I modify it?
yacks has joined #ruby
<whitequark> shevy: "everything is an object" means that you can send a message to anything
<whitequark> shevy: not that you can modify anything
<whitequark> there's also #freeze.
<whitequark> 5 _is_ a real object.
SrPx has quit [Quit: SrPx]
<shevy> but I tried to send the message hi :(
<fuzai> well cool i just condensed 4 lines into two thanks to what i just learned from you guys
bel3atar has left #ruby ["WeeChat 0.4.0"]
<whitequark> shevy: besides, it makes perfect sense to treat Fixnums as frozen
<shevy> but I wanna!
maxmanders has quit [Quit: Computer has gone to sleep.]
<shevy> I demand equal rights for all objects.
<whitequark> > shevy.freeze
<shevy> Liberté, égalité, fraternité.
shock_one has joined #ruby
<fuzai> haha
<Hanmac> shevy:
<Hanmac> >> true.taint;true.tainted?
<eval-in> Hanmac: Output: "" (http://eval.in/7914)
<Hanmac> >> true.taint; p true.tainted?
<eval-in> Hanmac: Output: "false\n" (http://eval.in/7915)
<fuzai> This is an equal object language(TM)
<shevy> fuzai hahaha yeah
<fuzai> {=}
<Hanmac> >> true.untrust; p true.untrusted?
<eval-in> Hanmac: Output: "false\n" (http://eval.in/7916)
<shevy> gender-agnostic objects
<whitequark> taint/trust should be removed actually
<whitequark> even matz thinks so
<fuzai> i was thinking equal housing or equal oppurtuinity
SrPx has joined #ruby
<Hanmac> whitequark hm okayy and what whould be the replacement?
<shevy> hehe
<shevy> how can you remove something if you want to add a replacement for it!
jonathanwallace has joined #ruby
<shevy> that's like no change
browndawg has quit [Quit: Leaving.]
<whitequark> Hanmac: nothing. trust/taint/$SAFE are fundamentally broken
osaut has quit [Quit: osaut]
larissa has joined #ruby
arya_ has joined #ruby
<Hanmac> shevy as you can see, true can neigher be tainted or untrusted :P
<whitequark> sandboxing should be provided by OS/JVM (but I won't trust JVM)
sdtqjv has joined #ruby
cantonic has joined #ruby
<Hanmac> sandboxing and JVM does not fit into one sentence :P
<matti> ;]
<matti> Hanmac: It does.
<whitequark> matti: but then the sentence becomes EXPLOITABLE
<matti> Hanmac: You get your San Ultrasparc II, go to a sandbox.
<matti> Hanmac: And burry it deep.
<matti> Hanmac: REAL deep.
<Hanmac> yeah if you insert an "is not supported by"
arya has quit [Ping timeout: 248 seconds]
<matti> whitequark: ;p
<matti> whitequark: I was sarcastic ;p
<matti> s/San/Sun/
samphippen has quit [Quit: Computer has gone to sleep.]
psino has joined #ruby
<whitequark> SPARC is a neat architecture
<whitequark> do you know that OpenSPARC is a GPL'd CPU?
<matti> No.
<matti> ;]
<fuzai> whats the proper way to run an external command?
<fuzai> something like system in perl?
<fuzai> nm i found it
<matti> fuzai: Try system.
<fuzai> it's system
<matti> fuzai: YOu'd be shocked ;p
<matti> Hehe
<fuzai> i wanna do something like system("nohup ./myprocess &") is there an easy way to catch the pid of that?
banjara has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
<fuzai> oh i think spawn will do
greenarrow has joined #ruby
poikon_ has joined #ruby
browndawg has joined #ruby
<colgron> it's always best to ask first and then look for oneself ;P
<fuzai> i looked i didn't see anything, then i asked, and re-read and saw a note that spawn and system were basically the same thing so i investigated.
<matti> colgron: They way-around ;p
jonathanwallace has quit [Ping timeout: 264 seconds]
<colgron> hrm :( still couldnt get ncurses running on cygwin
<colgron> i should continue to work now
yshh has quit [Remote host closed the connection]
main has joined #ruby
maxmanders has joined #ruby
poikon_ has quit [Ping timeout: 256 seconds]
matchaw has quit [Ping timeout: 264 seconds]
preller has quit [Quit: Lost terminal]
wreckimn1 has quit [Ping timeout: 276 seconds]
imami|afk is now known as banseljaj
kennyvb has quit [Quit: ZNC - http://znc.in]
sayan has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
kennyvb has joined #ruby
dekroning has quit [Ping timeout: 276 seconds]
banjara has quit [Ping timeout: 244 seconds]
tvw has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 276 seconds]
main has quit [Ping timeout: 252 seconds]
samphippen has joined #ruby
gvz has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby
mongag has quit [Excess Flood]
pixie79 has joined #ruby
mongag has joined #ruby
mongag has quit [Changing host]
mongag has joined #ruby
answer_42 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
[Neurotic] has quit [Ping timeout: 246 seconds]
dekroning has joined #ruby
<JonnieCache> no dont do any work carry on hacking your tools
pettsson has joined #ruby
<JonnieCache> you know its the right answer
maxmanders has joined #ruby
banseljaj is now known as imami|afk
pavilionXP has joined #ruby
browndawg has quit [Ping timeout: 255 seconds]
<colgron> JonnieCache: :P
s1n4 has joined #ruby
<fuzai> so i'm doing a pid = spawn ({},"nohup ./script &") and i'm getting the pid of the nohup which doesn't exist anymore instead of the pid of my script. Does anyone have any suggestions on how to get the pid of my script that nohup is firing?
havenwood has joined #ruby
griffindy has joined #ruby
jun_kame has quit [Read error: Connection reset by peer]
<JonnieCache> get the script to write out its own pid to a file or something?
shock_one has quit [Ping timeout: 244 seconds]
<JonnieCache> im not great at that unix stuff i should probably keep my mouth shut
<fuzai> i'm gonna try getting rid of nhup first
jonathanwallace has joined #ruby
matheus has joined #ruby
embs has quit [Ping timeout: 248 seconds]
jun_kame has joined #ruby
<fuzai> nohup first
krz has quit [Quit: krz]
<fuzai> that didn't seem to help either :(
v0n has joined #ruby
yacks has quit [Quit: Leaving]
<fuzai> is there any other way then spawn or system to fork an external ruby script into the background and get it's pid? i think i'm ending up with the bash shell pid that my script is running in instead of the actual pid still
arya_ has quit [Ping timeout: 248 seconds]
<fuzai> yea i see a defunct sh for the pid i'm being returned from spawn and kill -9 isn't doing anything to it
a_a_g has joined #ruby
Goldman82 has quit [Read error: Connection reset by peer]
girija_ has joined #ruby
hybris has joined #ruby
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
Guest24166 is now known as verto|off
browndawg has joined #ruby
havenwood has quit [Remote host closed the connection]
blaxter has joined #ruby
a_a_g1 has quit [Ping timeout: 252 seconds]
arya has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
pavilionXP has quit [Read error: Connection reset by peer]
<blacktulip> Hi
banjara has joined #ruby
girija has quit [Ping timeout: 256 seconds]
<blacktulip> I just start using slim ... Can someone tell me how to insert an inline literal pipe symbol `|` in a slim file please?
Virunga has quit [Ping timeout: 244 seconds]
AndChat| has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
SrPx has quit [Quit: SrPx]
poikon has quit [Remote host closed the connection]
poikon has joined #ruby
yacks has joined #ruby
osaut has joined #ruby
arya has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
colgron has quit [Quit: Page closed]
clocKwize has quit [Read error: Connection reset by peer]
m3pow has quit [Remote host closed the connection]
<fuzai> http://www.ruby-doc.org/core-1.9.3/IO.html#method-c-popen looking a IO.popen i read at IO.popen([env, command]) but when I do a IO.popen([ { "LOVE" => "true" }, "/bin/echo $LOVE"]) i get an error that /bin/echo doesn't exist
clocKwize has joined #ruby
arya has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
buscon has quit [Quit: Leaving]
<fuzai> i'm assuming that IO.popen works the same way as spawn does with its environment hash
rmartin has joined #ruby
<fuzai> but i don't understand why it can't find /bin/echo, when i do a which from the command line it happily finds it
<fuzai> Errno::ENOENT: No such file or directory - /bin/echo $LOVE
moos3 has joined #ruby
banjara has quit [Ping timeout: 252 seconds]
<fuzai> that from irb trying to execute test = IO.popen([{ "LOVE" => "TRUE"}, "/bin/echo $LOVE"])
Mon_Ouie has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
linusoleander has joined #ruby
<fuzai> nm i think i'm just going to go back to the spawn idea and have it write it's pid to a temp file
maxmanders has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
jprovazn has quit [Remote host closed the connection]
<a_a_g> the command should not contain the argument
<a_a_g> pass that as the third argument
rakuN has quit [Quit: Saliendo]
idkazuma has joined #ruby
BulleTime has joined #ruby
maxmanders has quit [Client Quit]
recycle has quit [Remote host closed the connection]
elfenars has joined #ruby
elfenars is now known as mrbloo
Elhu has quit [Quit: Computer has gone to sleep.]
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
moos3 has quit [Ping timeout: 276 seconds]
SeySayux has joined #ruby
jonathanwallace has joined #ruby
SeySayux has quit [Remote host closed the connection]
answer_42 has quit [Ping timeout: 276 seconds]
jprovazn has joined #ruby
SeySayux has joined #ruby
keyvan has quit [Ping timeout: 252 seconds]
Villadelfia has joined #ruby
terrorpup has joined #ruby
sayan has quit [Ping timeout: 276 seconds]
clocKwize has quit [Quit: clocKwize]
hoelzro is now known as hoelzro|away
mgrayson has joined #ruby
mgrayson has quit [Client Quit]
grayson_ has joined #ruby
poikon_ has joined #ruby
postmodern has quit [Quit: Leaving]
jprovazn has quit [Remote host closed the connection]
verto|off is now known as verto
jprovazn has joined #ruby
maxmanders has joined #ruby
tvw has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
mjolk has joined #ruby
clocKwize has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
rjmt___ has joined #ruby
Pandaen has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
blaxter has quit [Quit: foo]
megha has joined #ruby
banjara has joined #ruby
wreckimn1 has joined #ruby
pen has quit [Remote host closed the connection]
Raboo_ is now known as Raboo
yoshie902a has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
<yoshie902a> I'm getting an undefined parent in this while loop https://gist.github.com/d43cdf26ea338928c8a1, any ideas?
charliesome_ has quit [Quit: Textual IRC Client: www.textualapp.com]
browndawg has joined #ruby
enroxorz-work has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Takehiro has quit [Remote host closed the connection]
ffranz has joined #ruby
<stnly> yoshie902a: you should break the loop once you reach the node with no parent else you will see the error.
dhruvasagar has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: sleeping]
<yoshie902a> stnly: how?
mark_locklear has joined #ruby
<yoshie902a> I thought the while should do that, if nil, than while should stop right?
m3pow has joined #ruby
nfk has joined #ruby
Takehiro has joined #ruby
jrafanie has joined #ruby
banjara has quit [Ping timeout: 256 seconds]
<stnly> yeah thats true but i think parent.parent is one step too far?
<Hanmac> something like that: while parent;parents << parent; parent = parent != doc ? parent.parent : nil; end
rdark has quit [Ping timeout: 276 seconds]
<Hanmac> or::: while parent;parents << parent; parent = parent.respond_to?(:parent) ? parent.parent : nil; end
<fuzai> someone once mentioned that there was a better option to sleep X when using eventmachine, but my googlefu is failing me, does anyone know what i'm talking about?
rdark has joined #ruby
Bracki has joined #ruby
baphled has joined #ruby
<yoshie902a> Hanmac: what is the doc variable?
<Hanmac> the doc in your sample before
<Bracki> When using a git repo with bundler and multiple gems how deep can they be nested? Or must they be at the repo root?
<yoshie902a> oh, ya thanks!
<Hanmac> or: while parent.respond_to?(:parent);parents << parent; parent = parent.parent; end
Virunga has joined #ruby
RagingDave has joined #ruby
havenwood has joined #ruby
Skylab has joined #ruby
jrajav has joined #ruby
pcarrier has quit [Ping timeout: 276 seconds]
<yoshie902a> Hanmac: I think I'll go with respond_to, it's more generic. I didn't know about respond_to, it's a great method!
<yoshie902a> thanks for letting me know about it
xemu has joined #ruby
pcarrier has joined #ruby
n1x has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
<martinklepsch> !! Unexpected error while processing request: deadlock; recursive locking
jonathanwallace has joined #ruby
dr_neek has joined #ruby
D4T has joined #ruby
<martinklepsch> Getting that from my rack app. I'm kind of clueless how to debug it. I stepped through with rdb but was not able to really identify the place where stuff breaks.
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
pcarrier has quit [Client Quit]
<martinklepsch> Any advice on debugging this kind of error?
x0F_ is now known as x0F
havenwood has quit [Ping timeout: 252 seconds]
<yoshie902a> I'm not sure what redb is, but I used "pry" to step through my ruby code.
<yoshie902a> s/redb/rdb
<martinklepsch> ruby debugger
<martinklepsch> stepping does not work with pry be default, does it?
<banister`sleep> martinklepsch: no, you need to install pry-debugger plugin
<yoshie902a> I manually go through, step by step, it gives me more control and I can see the result of each issue
Stilo has joined #ruby
terrorpup has quit [Remote host closed the connection]
<yoshie902a> nonetheless, i'm not great at this stuff, so I might be making my life harder
<martinklepsch> banister`sleep: cool, last time I checked that was not so easy1 does it provide any significant benefit to rdb?
pcarrier has joined #ruby
cantonic_ has joined #ruby
recycle has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
girija_ has quit [Ping timeout: 264 seconds]
dustint has joined #ruby
reinaldob has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
AndChat|102836 has joined #ruby
pcarrier has quit [Ping timeout: 240 seconds]
ddd has joined #ruby
clocKwize has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
jon_wingfield has quit [Ping timeout: 252 seconds]
recycle has quit [Remote host closed the connection]
griffindy has joined #ruby
<banister`sleep> martinklepsch: you have the full power of pry
Virunga has quit [Remote host closed the connection]
<banister`sleep> martinklepsch: which means you can view source for methods/classes, edit them during the debugging process, etc
angusiguess has joined #ruby
otherj has joined #ruby
<martinklepsch> ok, great to know :) unfortunately this will probably not help with my deadlock problem :P
<banister`sleep> hehe
Virunga has joined #ruby
synthetix has quit [Ping timeout: 245 seconds]
dr_neek has quit [Quit: dr_neek]
vlad_starkov has quit [Ping timeout: 256 seconds]
Virunga has quit [Read error: Connection reset by peer]
Virunga_ has joined #ruby
tommyvyo has joined #ruby
<yoshie902a> off to work! good luck martinklepsch
geekbri has joined #ruby
yoshie902a has left #ruby [#ruby]
dr_neek has joined #ruby
atmosx has joined #ruby
inokenty has joined #ruby
recycle has joined #ruby
joofsh has joined #ruby
Udom0 has joined #ruby
jun_kame has quit []
banjara has joined #ruby
jlast has joined #ruby
<shevy> what is better
<shevy> class Asciicounter or ... class AsciiCounter
maxmanders has joined #ruby
answer_42 has joined #ruby
Spooner_ has joined #ruby
patteh has joined #ruby
recycle has quit [Remote host closed the connection]
allaire has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
<aedornm> ASCIICounter - work that shift key!
fourq has joined #ruby
jlast has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
mmitchell has joined #ruby
vlad_starkov has joined #ruby
Takehiro has quit [Remote host closed the connection]
__BigO__ has joined #ruby
Dom_ has joined #ruby
jonathanwallace has quit [Ping timeout: 244 seconds]
buscon has joined #ruby
<fuzai> http://pastie.org/5934236 i'm spawning a process, waiting 3 seconds for it to write it's pid to a file ( it's the first thing the process does ) and then scraping that file for the pid. My code works, but i'm worried that in high io load times that 3 seconds won't be enough. Part of me thinks there is a smarter way to do this. Does anyone have any suggestions?
elico has quit [Quit: elico]
banjara has quit [Ping timeout: 240 seconds]
<workmad3> fuzai: read the docs for Process#spawn ;) http://www.ruby-doc.org/core-1.9.3/Process.html#method-c-spawn
jrafanie has quit [Quit: jrafanie]
<workmad3> fuzai: especially 'spawn executes specified command and return its pid.'
<fuzai> yea
<fuzai> that doesn't give me the real pid
<fuzai> i've been saying that for hours
<fuzai> it gives me the pid of sh
invisime has joined #ruby
<fuzai> it was suggest earlier i scrape the processes real pid from a temp file
<workmad3> fuzai: ah, that's because you're spawning a shell just to spawn another process
<fuzai> which does work, i'm just worried it's not going to be very reliable if something in the system slows down the io
<fuzai> using that exact spawn command that's what i end up with
ananthakumaran1 has quit [Quit: Leaving.]
v0n has quit [Ping timeout: 255 seconds]
Liothen has quit [Remote host closed the connection]
girija has joined #ruby
<workmad3> fuzai: have you considered rewriting your script so you're spawning the process you want, rather than going through indirection?
gvz has joined #ruby
<fuzai> i tried that first
baphled has quit [Ping timeout: 264 seconds]
<fuzai> i need it to fork into the background
<fuzai> without nohup i still end up with the shells pid
<fuzai> which is again useless
allaire has quit []
Dom_ has quit [Remote host closed the connection]
breakingthings has joined #ruby
allaire has joined #ruby
Dom_ has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
matheus__ has joined #ruby
<fuzai> this started with pid = spawn({ "ENVVAR" => "envdata"}, "./script &") which gives me the same problem
Dom_ has quit [Read error: Connection reset by peer]
<fuzai> i end up with the pid of sh and not of ./script
iamjarvo has joined #ruby
matheus has quit [Ping timeout: 248 seconds]
Dom_ has joined #ruby
<aedornm> so you're using a shell script in order to force it into the background?
<workmad3> that's the bit that doesn't seem quite right to me
ner0x has joined #ruby
<fuzai> what i'm trying to do is fork a script in the background that acts as a websocket proxy to the stdin/stdout of another process
<workmad3> fuzai: right, which is what Process.spawn will do... it'll run it in the background
romaint has joined #ruby
aquaranto has joined #ruby
<workmad3> fuzai: what you're doing is doing two levels of background
<fuzai> because of how openshift does it's goodness i only get one external port for websockets
<workmad3> fuzai: you're spawning a process that backgrounds a process
<fuzai> so basically i have to build a multiplexer if i want to fire more then one process
<fuzai> so basically remove the &
<workmad3> fuzai: pretty much :P
<fuzai> and this should work?
<workmad3> fuzai: afaik, it should
<fuzai> oi
elux has quit [Quit: Leaving...]
_nitti has joined #ruby
<fuzai> sorry i'm used to using a system command which blocks until completed
renanoronfle has quit [Quit: This computer has gone to sleep]
<workmad3> fuzai: heh :) reading docs helps ;)
<fuzai> it's not that
<fuzai> i read that like 5 times
<fuzai> it just flew over head
<workmad3> This method doesn’t wait for end of the command. <--
<fuzai> yea i see that now
Goles has joined #ruby
yacks has quit [Quit: Leaving]
jrist-afk is now known as jrist
k610 has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
jpfuentes2 has joined #ruby
dkannan has quit [Ping timeout: 256 seconds]
<fuzai> gee that works well :) and it's so much prettier looking
<fuzai> thank you
browndawg has quit [Quit: Leaving.]
anonymuse has joined #ruby
gnarmis has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
n1x has joined #ruby
<aedornm> I can't remember why I started using `whoami` instead of ENV["USER"] ... but I know there was good reason. I just can't seem to remember it!
arkiver has joined #ruby
gnarmis has joined #ruby
k610 has joined #ruby
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
kpshek has joined #ruby
<fuzai> maybe the same reason i started using `date`
<fuzai> it just made it a lot easier for me instead of trying to setup complex formatting
v0n has joined #ruby
<aedornm> lol, no, but I remember now.. USER wasn't set when spawned from a Qt application
xandy is now known as xAndy
jonathanwallace1 has joined #ruby
renanoronfle has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
haxrbyte_ has joined #ruby
main has joined #ruby
jtharris has joined #ruby
samphippen has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
v0n has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: Leaving.]
thisirs has joined #ruby
DaltonUS has joined #ruby
the_hack has joined #ruby
_nitti_ has joined #ruby
otherj has quit [Quit: otherj]
arturaz has joined #ruby
stat1x has joined #ruby
banjara has joined #ruby
lolmaus has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
nkts has joined #ruby
patteh is now known as Patteh
<aedornm> This class uses instance variables like Parmesan cheese - just sprinkle it around, the more the better! Hmm...
jeffreybaird has joined #ruby
_nitti_ has quit [Remote host closed the connection]
jgarvey has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
_nitti has joined #ruby
dhruvasagar has joined #ruby
tagrudev has quit [Remote host closed the connection]
havenwood has joined #ruby
ner0x has quit [Ping timeout: 255 seconds]
jerius has joined #ruby
<fuzai> so if i have test = [{ "user" => "mitch"}, { "user" => "zoidberg" }] how would I delete from that array where "user" = "mitch" ?
<fuzai> i understand test.delete(), but 'm confused past that
ortuna has joined #ruby
nkts has quit [Remote host closed the connection]
axl_ has joined #ruby
<fuzai> and when i mean delete, i want to delete that hash record from the array, not just that variable
ner0x has joined #ruby
<aedornm> test.delete_if {|h| h['user'] == 'mitch'}
<fuzai> hmmm thank you :)
psino has quit [Quit: ZNC - http://znc.in]
<shevy> aedornm hehe
<shevy> that was an epic quote
<shevy> "This class uses instance variables like Parmesan cheese - just sprinkle it around, the more the better!"
jrafanie has joined #ruby
<shevy> aedornm it happens to me too though when I maintain some code, and add new features to it. as the years pass by, sometimes code is obsoleted and I forget to kill the ivar :(
carloslopes has joined #ruby
<fuzai> my process fired with pid 666. I think it's time for break :)
banjara has quit [Ping timeout: 245 seconds]
<aedornm> shevy: I hate the fact that I wrote it, too.
<shevy> lol
synthetix has joined #ruby
<aedornm> fuzai: That just means it's really a daemon!
jfl0wers has joined #ruby
guns has quit [Ping timeout: 252 seconds]
<aedornm> There's also Configuration and @configuration. They're different YAML files. I don't even know where to start with this, besides a use-case of why not to use a prototype in production
banister`sleep is now known as banisterfiend
zph has joined #ruby
Guest__ has quit [Quit: Computer has gone to sleep.]
iambic has joined #ruby
<shevy> aedornm hahahaha wait
<shevy> you use a constant in one case and an ivar in another case?
havenwood has quit [Remote host closed the connection]
sepp2k has joined #ruby
<shevy> aha... in one project I use a config object... CONFIG = Config.new
banisterfiend has quit [Remote host closed the connection]
<aedornm> Well, the test "platform" has a configuration, which parts of it has to be global. The "devices" have a separate configuration that's specific to each device. I actually introduced "Configuration" during the "test" platform rewrite, but @configuration within the devices has always existed.
philcrissman has joined #ruby
reinaldob has joined #ruby
<aedornm> I think there's a lot of complexity I don't need, but then there's still quite a bit I do. There's just far too many variables!
aquaranto has quit [Remote host closed the connection]
zph has quit []
romaint has left #ruby [#ruby]
gosshedd has joined #ruby
BulleTime has quit [Ping timeout: 264 seconds]
thibauts has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
<aedornm> There's gotta be a better way of doing all of this.
<gosshedd> hello
<gosshedd> <georgi_> niggas
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
v0n has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
emergion has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
jonathanwallace1 has quit [Quit: WeeChat 0.3.9.2]
georgi_ has joined #ruby
nkts has joined #ruby
jonathanwallace has joined #ruby
jfl0wers_ has joined #ruby
phantasm66 has joined #ruby
shock_one has joined #ruby
pskosinski has joined #ruby
nomenkun has quit [Remote host closed the connection]
uris has joined #ruby
willob has joined #ruby
chimkan has joined #ruby
forrest has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
thibauts has joined #ruby
georgi_ has quit [Quit: Leaving]
bluenemo has quit [Ping timeout: 276 seconds]
jfl0wers has quit [Ping timeout: 272 seconds]
jfl0wers_ is now known as jfl0wers
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
buscon has quit [Quit: Leaving]
browndawg has joined #ruby
buscon has joined #ruby
martinklepsch is now known as mklappstuhl
jrafanie has quit [Quit: jrafanie]
megha has quit [Ping timeout: 255 seconds]
heftig has quit [Ping timeout: 245 seconds]
elux has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
emergion has quit [Ping timeout: 264 seconds]
rismoney has joined #ruby
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird_ has joined #ruby
aquaranto has joined #ruby
stopbit has joined #ruby
jlast_ has joined #ruby
jrajav has quit [Read error: Connection reset by peer]
buscon has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 255 seconds]
larissa has quit [Quit: Leaving]
sbear has joined #ruby
chimkan has quit [Ping timeout: 252 seconds]
segv- has joined #ruby
segv- has quit [Read error: Connection reset by peer]
roadt has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
segv- has joined #ruby
LBRapid has joined #ruby
dhruvasagar has joined #ruby
<fuzai> "Error: unsupported name `SIG9' " Process.kill("9",bot["pid"]) What am i supposed to send for a signal if 9 doesn't work?
banjara has joined #ruby
nomenkun has joined #ruby
<arturaz> SIGKILL
chimkan has joined #ruby
Coolhand has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
<tobiasvl> well, judging from the error message you want to send it just "KILL" (it prefixes "SIG")
<crazed> beat me too it
<crazed> not sure if you want to send a KILL, TERM might be more appropriate unless you don't care about it shutting down cleanly
failshell has joined #ruby
n1x has quit [Ping timeout: 245 seconds]
binaryplease has joined #ruby
joofsh has quit [Remote host closed the connection]
plotter has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: And so the story goes…]
gnarmis has quit [Remote host closed the connection]
arkiver has quit [Ping timeout: 245 seconds]
chimkan has quit [Read error: Connection reset by peer]
otters has joined #ruby
interactionjaxsn has joined #ruby
poikon has joined #ruby
chimkan has joined #ruby
johnsonw has joined #ruby
<johnsonw> Hello all! Can anyone recomend a good ruby to look at for an example of how to write ruby well and idiomatically, how to layout directories and so on. Ideally something simple but complete.
<johnsonw> Sorry, good ruby gem i mean!
yshh has joined #ruby
mephux has quit [Excess Flood]
andrewhl has joined #ruby
mephux has joined #ruby
joshman_ has joined #ruby
alex__c2022 has joined #ruby
asteve has joined #ruby
samphippen has joined #ruby
peregrine81 has joined #ruby
banjara has quit [Ping timeout: 245 seconds]
x82_nicole has joined #ruby
ippif has joined #ruby
<banisterfiend> johnsonw: https://github.com/mon-ouie/coolline
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
havenwood has joined #ruby
<breakingthings> johnsonw: bundler creates a gem directory for you.
jjbohn has joined #ruby
maxmanders has joined #ruby
kpshek has quit []
<breakingthings> Though it looks like bundler's page is down so I can't link you to the page
<breakingthings> but `bundle init` should be the command
gosshedd has quit [Quit: leaving]
renanoronfle has quit [Quit: This computer has gone to sleep]
gosshedd has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
gosshedd has quit [Client Quit]
gosshedd has joined #ruby
gosshedd_ has joined #ruby
cableray has joined #ruby
Morkel has quit [Quit: Morkel]
fgro_ has joined #ruby
<johnsonw> thanks - i've realised i've carefully learned the ruby language, but now i'm drowning in a sea of convention
TomJ has joined #ruby
AxisOfEval has joined #ruby
<AxisOfEval> Is there a neat way to compare version strings?
earthquake has quit [Read error: Connection reset by peer]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
earthquake has joined #ruby
rovalent has joined #ruby
<TomJ> Is there a simple method that can modify a hash, manipulating the keys? Specifically I have a hash where I want to downcase all the key names. so myhash = {"POSTCODE"=>"NW4 3FP", "COVERED"=>"1"}. I want to end up with {"postcode"=>"NW4 3FP", "covered"=>"1"} . I could write a loop that adds myhash[key].downcase and removes myhash[key] but is there a nicer way?
gosshedd_ has quit [Client Quit]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
AndChat|102836 has quit [Ping timeout: 245 seconds]
fgro has quit [Ping timeout: 240 seconds]
gnarmis has joined #ruby
kpshek has joined #ruby
gosshedd has quit [Quit: leaving]
jprovazn has quit [Quit: Leaving]
pu22l3r_ has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
gosshedd has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
havenwood has quit [Remote host closed the connection]
wallerdev has joined #ruby
Coolhand|laptop has joined #ruby
rovalent has quit [Quit: Linkinus - http://linkinus.com]
gnarmis has left #ruby [#ruby]
rawn027 has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
johnsonw has quit [Ping timeout: 245 seconds]
pu22l3r_ has quit [Remote host closed the connection]
louisror has quit [Read error: Connection reset by peer]
louisror has joined #ruby
pu22l3r has joined #ruby
banisterfiend has quit [Remote host closed the connection]
rawn027 has quit [Client Quit]
busybox42 has joined #ruby
danktamagachi has joined #ruby
neku has joined #ruby
Scagz has joined #ruby
synthetix has quit [Ping timeout: 272 seconds]
pskosinski has quit [Remote host closed the connection]
fgro_ has quit [Ping timeout: 248 seconds]
Scagz has quit [Client Quit]
Scagz has joined #ruby
<fuzai> yea i don't care about it shutting down easily
angusiguess has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<fuzai> when I use "KILL",pid i get "[ruby] <defunct>" in my process list
<fuzai> is there any way to make it completely disseapear?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
Scagz has quit [Client Quit]
<tobiasvl> it'll disappear by itself
ananthakumaran has joined #ruby
gosshedd_ has joined #ruby
Scagz has joined #ruby
<fuzai> I guess my question is when though
<tobiasvl> hopefully
<tobiasvl> when it's reaped (it's a zombie process)
<fuzai> because the program that started it i wasn't trying to restart every time i killed something it started
<tobiasvl> hmm
<tobiasvl> what's its parent?
<tobiasvl> and does it have any children?
wyhaines has joined #ruby
jon_wingfield has joined #ruby
<fuzai> i've basically got a web socket ruby script that fires a process when i tell it to
cableray has quit [Quit: cableray]
<fuzai> right now as it stands all the child process is doing is starting it's own web socket server on another port with Eventmachine
pavilionXP has joined #ruby
statarb3 has quit [Quit: Leaving]
joofsh has joined #ruby
Scagz has quit [Client Quit]
gosshedd has quit [Quit: Lost terminal]
<fuzai> is there a way to force the parent ruby script to reap those children?
gosshedd_ has quit [Client Quit]
RonScagz has joined #ruby
beiter has joined #ruby
allaire has quit []
generali_ has joined #ruby
<workmad3> fuzai: should I refer you back to the docs for 'spawn' which tell you how to avoid zombie processes? :)
shock_one has quit [Remote host closed the connection]
<fuzai> *sigh* on the books again :)
jonahR has joined #ruby
amacleod has joined #ruby
gosshedd has joined #ruby
<fuzai> hey check that out
banjara has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<fuzai> Thank you workmad3
vlad_starkov has quit [Remote host closed the connection]
a_a_g1 has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
pavilionXP has joined #ruby
beliveyourdream has quit [Remote host closed the connection]
linusoleander has quit [Quit: linusoleander]
miskander has joined #ruby
linusoleander has joined #ruby
SrPx has joined #ruby
linusoleander has quit [Client Quit]
the_hack has quit [Quit: Computer has gone to sleep.]
the_hack has joined #ruby
Giorgio has quit [Ping timeout: 255 seconds]
theRoUS has quit [Ping timeout: 264 seconds]
poikon_ has quit [Remote host closed the connection]
jon_wingfield has quit [Quit: Bye]
emergion has joined #ruby
cdt has quit [Quit: Ex-Chat]
otters has quit [Ping timeout: 252 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
poikon_ has joined #ruby
<Hanmac> TomJ maybe this one hash.each_with_object({}) {|(k,v),h|h[k.downcase] = v}
peregrine81 has joined #ruby
danneu has joined #ruby
enebo has joined #ruby
mantovani has joined #ruby
<mantovani> how can I get a state machine from a regexp in ruby ?
quest88 has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<Hanmac> mantovani what exactly do you mean? i know state machines but that does they mean in the context of regexp?
aganov has quit [Read error: Connection reset by peer]
sbear has quit [Ping timeout: 260 seconds]
<mantovani> I'm kidding.
rkneufeld has joined #ruby
<mantovani> :)
eldariof has quit [Read error: Operation timed out]
<shevy> mantovani are you from italy
spinagon has joined #ruby
<mantovani> shevy: my dad are.
<mantovani> .win 2
dhruvasagar has quit [Ping timeout: 255 seconds]
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
emergion has quit [Ping timeout: 264 seconds]
<shevy> hmmm anyone of you guys here use no emacs no vim for your editor while coding ruby?
peregrine81 has quit [Quit: Computer sleeping.]
otters has joined #ruby
<TomJ> Hanmac: very nice, thanks a lot!
rippa has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Hanmac> shevy i use gedit mostly for the small stuff
banjara has quit [Ping timeout: 252 seconds]
<shevy> Hanmac hmm
dhruvasagar has joined #ruby
peregrine81 has joined #ruby
benlieb has joined #ruby
* fuzai hugs eventmachine
banisterfiend has joined #ruby
adambeynon has quit [Ping timeout: 245 seconds]
marcoshack has joined #ruby
altamic has quit [Quit: altamic]
<fuzai> anyone here familiar with em-proxy? I'm looking at the examples and each of them start with Proxy.start firing off it's own server. Is there anyway to use the existing socket from em-websocket and have it connect back to the ip / port that i want it to?
mercwithamouth has joined #ruby
jrist has quit [Ping timeout: 248 seconds]
timmow has joined #ruby
jonahR has quit [Quit: jonahR]
ortuna has quit [Ping timeout: 272 seconds]
dekroning has quit [Ping timeout: 276 seconds]
dekroning has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
nateberkopec has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
<Hanmac> fuzai you mean something like that? : http://www.swisseduc.ch/compscience/karatojava/kara/screenshots.html
statarb3 has quit [Ping timeout: 248 seconds]
<fuzai> basically what i'm trying to do is use the existing websocket, pass it a string that flips the socket into a passthru / proxy to a server running on a loopback address
<fuzai> i'm reading right now
<fuzai> umm are you sure thats the right link?
coaster is now known as methoddk
nigelb has quit [Remote host closed the connection]
<fuzai> that took me to a video game
nga4 has quit [Ping timeout: 276 seconds]
methoddk is now known as coaster
ortuna has joined #ruby
<Hanmac> fuzai its something for learning programming
<fuzai> that's where I'm at at the moment
<fuzai> i'm basically trying to write function 3which is supposed to open a socket to the little bot itself
jeffreybaird has joined #ruby
jeffreybaird has quit [Client Quit]
jeffreybaird_ has quit [Ping timeout: 248 seconds]
sailias1 has joined #ruby
nonotza has joined #ruby
<fuzai> i'm sorry but i don't find your link helpful
k610 has quit [Ping timeout: 276 seconds]
benlieb has quit [Quit: benlieb]
arturaz has joined #ruby
benlieb has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
timmow has quit [Read error: Connection reset by peer]
gosshedd has quit [Quit: Lost terminal]
sailias1 has quit [Client Quit]
timmow has joined #ruby
sailias has joined #ruby
ereslibre has joined #ruby
jrist has joined #ruby
cdt has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
adambeynon has joined #ruby
chrismhough has joined #ruby
the_hack has joined #ruby
alvaro_o has joined #ruby
marcoshack has left #ruby [#ruby]
megha has joined #ruby
RurouniJones has quit [Remote host closed the connection]
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
<chiel> so, i decided to start working remotely, so i don't have to set up a new machine etc anymore.. however, i used to use pow for running ruby apps locally
<chiel> mainly because it made it easy to reload and such
<shevy> oh man
<chiel> what are other options to reloading apps on every refresh?
<shevy> what has become of the world
<shevy> people no longer have ruby running locally
banjara has joined #ruby
<chiel> i have ruby running locally
<chiel> but since i work on multiple machines, i prefer to keep it remote, and just ssh in
buibex has joined #ruby
hashpuppy has joined #ruby
<ner0x> Does anyone in here use anything to map out their tests other than the tests themselves?
Mon_Ouie has joined #ruby
poikon has quit [Remote host closed the connection]
a_a_g1 is now known as a_a_g
<hashpuppy> if i have lib/sync/something_sync.rb and lib/sync/other_sync.rb. each wrapped in module Sync. how can i include something like lib/sync.rb and have access to Sync::Something and Sync::Other so that I don't have to something_sync.rb and other_sync.rb?
<shevy> wat
aaronmcadam has quit [Quit: aaronmcadam]
<shevy> so all is inside module Sync
poikon has joined #ruby
<shevy> simply require the file where you need it inside your other .rb file
moos3 has quit [Ping timeout: 256 seconds]
<shevy> if lib/sync.rb is your main file, it could require the other two .rb files
<hashpuppy> ok. i'll just do that
<hashpuppy> thanks
<hashpuppy> is that common practice?
<shevy> the way I usually do it is this:
<shevy> $: << File.dirname(__FILE__)
<shevy> and then
<Hanmac> but you should use require_relative for that
<shevy> require 'project_name/project_name.rb'
Connecti0n has joined #ruby
AxisOfEval has quit [Quit: Linkinus - http://linkinus.com]
aaronmcadam has joined #ruby
<Hanmac> chaning the load path is evil
<shevy> require_relative is not needed if he uses a project layout for those files
renanoronfle has joined #ruby
<shevy> hashpuppy it depends, let's look at some gem
<Hanmac> otherway around, $: is not needed when you use require_relative
arkiver has joined #ruby
<shevy> the thor gem has this layout:
<shevy> thor-0.15.4/lib/thor.rb
BulleTime has joined #ruby
Connecti0n has quit [Client Quit]
terrorpup has joined #ruby
warmwaffles has joined #ruby
<shevy> first line of that file is:
<shevy> require 'thor/base'
<shevy> sorry Hanmac, no sign of require_relative there ;)
spaceships has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
remaus has joined #ruby
<shevy> let's look at lib/pry.rb
<shevy> oh no require_relative there, sorry Hanmac :D
<shevy> require 'pry/helpers/base_helpers'
<shevy> require 'pry/hooks'
<shevy> but you are right
<workmad3> require_relative is evil
<shevy> they indeed do not modify $:
<shevy> odd that they can work without $: and also without require_relative
_nitti has quit [Remote host closed the connection]
<workmad3> shevy: I bet that their test running does '-I ./lib'
<shevy> hmm
<workmad3> shevy: and rubygems itself will set up lib/ on $:
moos3 has joined #ruby
<Hanmac> i know why, and and i also know thy it may not work when you play with rake tests
<shevy> aha
<shevy> it seems I don't have to modify $:
johnki has joined #ruby
<shevy> :)
cableray has joined #ruby
neku has quit [Read error: Connection reset by peer]
<johnki> Hi. How can I read the ruby docs offline? I tried http://www.ruby-doc.org/downloads/ but these tarballs have absolute paths in them so you can't read them without a server. I just want to read the HTML. what can I do?
neku has joined #ruby
JohnBat26 has joined #ruby
<shevy> hashpuppy ok seems you dont have to modify $:
SirNicholas has quit [Ping timeout: 276 seconds]
jrist has quit [Ping timeout: 264 seconds]
gosshedd has joined #ruby
<shevy> I wonder why I did it... hmmm
<workmad3> shevy: it used to be a lot more common to modify $: in your own stuff than it is nowadays
louisror has quit [Ping timeout: 272 seconds]
remaus has quit [Ping timeout: 260 seconds]
<workmad3> rubygems now handles most of it, and things like bundler, jeweler, etc also set up rake tasks and other project structures that make it unnecessary in most cases
angusiguess has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
wargasm1 has joined #ruby
pskosinski has joined #ruby
<workmad3> but still, I'd rather ensure my lib/ directory is in $: than resort to require_relative
<shevy> yeah that seems like a nice thing
banjara has quit [Ping timeout: 276 seconds]
<shevy> if that works, if I can still use require, then I can kill all those lines in all my little projects :)
wargasm has quit [Ping timeout: 256 seconds]
Kuifje has joined #ruby
cableray has quit [Quit: cableray]
recycle has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
timmow has quit [Quit: timmow]
gosshedd has quit [Ping timeout: 240 seconds]
<shevy> lol
<shevy> while grepping I found this... in minilight.rb
<shevy> BEGIN { $:.push( File.dirname( $0 ) ) }
<workmad3> well, I guess that's a little bit more reliable than adding '.'
nomenkun has quit [Remote host closed the connection]
cobragoat has quit [Quit: cobragoat]
dhruvasagar has joined #ruby
bluenemo has quit [Read error: Connection timed out]
<workmad3> because at least then it wouldn't change if you changed the working directory during execution :)
timmow has joined #ruby
goraxe has joined #ruby
johnki has quit [Quit: Page closed]
bluenemo has joined #ruby
_nitti has joined #ruby
warmwaffles has quit [Quit: Leaving.]
Umren has joined #ruby
<Hanmac> imo $0 cant be trusted and should not added to the path eigher ...
<workmad3> Hanmac: I agree
<workmad3> Hanmac: but at least it's stable and unreliable, rather than unstable and unreliable :)
chrisramon has joined #ruby
chrisramon has quit [Client Quit]
<shevy> hehehe
chrisramon has joined #ruby
mockra has joined #ruby
daniel_-_ has joined #ruby
benju has joined #ruby
Virunga_ is now known as Virunga
heyitsdave has joined #ruby
adeponte has joined #ruby
<shevy> hey can someone in irb do this please:
<shevy> "".methods.sort.size # => 607
jonahR has joined #ruby
markalanevans has quit [Quit: markalanevans]
<banisterfiend> shevy: what's the point in calling sort before size
daniel_- has quit [Ping timeout: 264 seconds]
<workmad3> >> p "".methods.size
<eval-in> workmad3: Output: "162\n" (http://eval.in/7921)
<shevy> hmmm ok
<Hanmac> shevy: i get 162 too
quest88 has quit [Quit: quest88]
<shevy> going to find out why I have so crazy many methods...
jrist has joined #ruby
punkrawkR^Home has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby
coderhut has joined #ruby
swex_ has joined #ruby
<Hanmac> what is more interesting:
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<Hanmac> >> p ObjectSpace.each_object(String).count
statarb3 has joined #ruby
<eval-in> Hanmac: Output: "4960\n" (http://eval.in/7922)
<benju> I installed newgem, because some tutorial recommended it. I ran it and found that it's all broken with modern ruby. Now I can't uninstall it - it just says "ERROR: While executing gem ... (Gem::InstallError)". I'm really suck trying to get going writing a gem. What am I doing wrong?
pcarrier has quit []
buibex has quit [Ping timeout: 248 seconds]
<shevy> Hanmac 73868
xsarin has joined #ruby
jlast_ has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby
<shevy> I think I pull in way too much on irb startup...
mikepack has joined #ruby
<havenwood> benju: One nice modern option to generate a gem is to use Bundler: bundle gem gem-name-here
<shevy> aha... that code in a .rb file gives me 164
<Xeago> how to make an image a hyperlink in markdown?
hakunin_ has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
<benju> havenwood: ok thanks. how I am supposed to know what's the old way of doing things and what's the new way when i read about things online? there was nothing to say that newgem was out of date
swex has quit [Read error: Connection reset by peer]
arturas_ has joined #ruby
<shevy> benju keep in mind that some blog entries are not always 100% accurate
<havenwood> benju: A good way is to check the repo, and see if there are modern commits. For newgem: https://github.com/drnic/newgem
<benju> shevy: where should i look for a right way to do things, for some good enough definition of right
gnarmis has joined #ruby
<shevy> benju hmm
<shevy> benju I think the first step is to always understand the minimum required
<havenwood> benju: Or there are good sites that have metrics on how up-to-date gems are: https://www.ruby-toolbox.com
<shevy> benju years ago there was only setup.rb :)
<shevy> that was even before gem
* Xeago still uses setup.rb
<benju> I'm letting myself get frustrated, because whatever i try, ten minutes later i find that i'm doing something the old way, and should be using something else
<shevy> benju, http://i.loveruby.net/en/projects/setup/doc/usage.html <--- the best part is, setup.rb still works
<shevy> benju well setup.rb is "the really old way" and I use it all the time to install my own projects locally
emergion has joined #ruby
<shevy> when they work, then I let a ruby script generate a .gemspec file, and I fill in some extra stuff in it
fgro has joined #ruby
<shevy> and then make a .gem from that
<havenwood> benju: E.g., for gems that just do gem creation: https://www.ruby-toolbox.com/categories/gem_creation
<shevy> benju I felt the same way for a while, but setup.rb made me a happier person ;)
<havenwood> I think a lot of people use bundler these days for gem creation rather than a gem particularly designed for that purpose.
d2dchat has joined #ruby
danktamagachi has quit [Ping timeout: 276 seconds]
blooberr has joined #ruby
HAKEON has joined #ruby
sepp2k has quit [Remote host closed the connection]
Pandaen has quit [Ping timeout: 256 seconds]
buibex has joined #ruby
adeponte has quit [Remote host closed the connection]
filipe has quit [Quit: Leaving]
angusiguess has quit [Read error: Connection reset by peer]
buibex has quit [Remote host closed the connection]
jrafanie has joined #ruby
tjbiddle has joined #ruby
angusiguess has joined #ruby
jrafanie has quit [Client Quit]
emergion has quit [Ping timeout: 264 seconds]
benju has quit [Quit: Page closed]
fgro has quit [Ping timeout: 264 seconds]
moos3 has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
k610 has joined #ruby
benlieb has quit [Quit: benlieb]
v0n has quit [Ping timeout: 240 seconds]
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
poikon_ has left #ruby ["Leaving..."]
vlad_starkov has joined #ruby
samlt has joined #ruby
banjara has joined #ruby
poikon is now known as Guest80874
Guest80874 has quit [Killed (pratchett.freenode.net (Nickname regained by services))]
maletor has joined #ruby
poikon_ has joined #ruby
poikon has joined #ruby
adeponte has joined #ruby
MattRB has joined #ruby
moos3 has joined #ruby
joeycarmello has joined #ruby
jgrevich has joined #ruby
buibex has joined #ruby
fermion has quit [Read error: Connection reset by peer]
<Hanmac> i use rake for making gems ...
HAKEON has quit [Ping timeout: 252 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
gnarmis has left #ruby [#ruby]
ippif has quit [Quit: Textual IRC Client: www.textualapp.com]
peregrine81 has joined #ruby
jduan1981 has joined #ruby
cobragoat has joined #ruby
tenmilestereo has joined #ruby
colonolGron has joined #ruby
HAKEON has joined #ruby
RagingDave has quit [Read error: Connection reset by peer]
RagingDave has joined #ruby
<shevy> I use rake in the garden
vlad_starkov has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
thams has joined #ruby
thams has quit [Remote host closed the connection]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
benlieb has joined #ruby
recycle has quit [Remote host closed the connection]
sailias1 has quit [Quit: Leaving.]
osaut has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
recycle has joined #ruby
sailias has joined #ruby
banjara has quit [Ping timeout: 255 seconds]
jgrevich has quit [Read error: No route to host]
amacleod has quit [Ping timeout: 245 seconds]
eldariof has joined #ruby
jgrevich has joined #ruby
adeponte has quit [Remote host closed the connection]
sailias1 has joined #ruby
luckyruby has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
io_syl has joined #ruby
jduan1981 has quit [Quit: jduan1981]
adeponte has joined #ruby
moted has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
roadt_ has joined #ruby
HAKEON has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
miskander has quit [Quit: miskander]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
beiter has quit [Quit: beiter]
aaronmacy has joined #ruby
breakingthings has quit []
roadt has quit [Ping timeout: 248 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Read error: No route to host]
beaky has joined #ruby
<beaky> hello
jonathanwallace has quit [Ping timeout: 252 seconds]
miskander has joined #ruby
dougireton has joined #ruby
dougireton has left #ruby [#ruby]
stkowski has joined #ruby
nga4 has joined #ruby
psino has joined #ruby
i_s has joined #ruby
dysoco has joined #ruby
dysoco has left #ruby ["Leaving"]
enebo has quit [Quit: enebo]
benlieb has quit [Quit: benlieb]
squidBits has joined #ruby
c0rn has joined #ruby
keyvan has quit [Remote host closed the connection]
benlieb has joined #ruby
dekroning has joined #ruby
browndawg has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
ananthakumaran1 has quit [Read error: No route to host]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
dr_bob has quit [Quit: Leaving.]
rupee has joined #ruby
whowantstolivef1 has joined #ruby
caleb_io has joined #ruby
the_hack has quit [Quit: Leaving...]
danktamagachi has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
benlieb has quit [Client Quit]
dekroning has quit [Ping timeout: 276 seconds]
markalanevans has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ortuna has left #ruby ["Textual IRC Client: www.textualapp.com"]
markalanevans has quit [Read error: Connection reset by peer]
vipaca has joined #ruby
johnju has joined #ruby
<johnju> How do I specify the version of Ruby needed to run my gem in the gemspec file?
vipaca is now known as Guest38103
wallerdev has quit [Quit: wallerdev]
rakl has joined #ruby
markalanevans has joined #ruby
binw has joined #ruby
cableray has joined #ruby
carloslopes has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Dom_ has quit [Remote host closed the connection]
HAKEON has joined #ruby
Dom_ has joined #ruby
chimkan_ has joined #ruby
fgro has joined #ruby
arya has joined #ruby
statarb3 has quit [Ping timeout: 245 seconds]
hakunin has joined #ruby
banjara has joined #ruby
Guest38103 has quit [Quit: Leaving...]
gvz has quit [Ping timeout: 255 seconds]
vipaca_ has joined #ruby
dmerrick has joined #ruby
elux has quit [Quit: Leaving...]
zeade has joined #ruby
<poikon> johnju: you can't (not in the Gemfile)
ananthakumaran has quit [Quit: Leaving.]
<poikon> johnju: you should do that with, for example, rbenv or rvm
<workmad3> poikon: bundler 1.2 lets you specify the ruby version ;)
<havenwood> or chruby
Uranio has joined #ruby
beaky has quit [Ping timeout: 240 seconds]
<poikon> workmad3: ohreally? :o
danktamagachi has quit [Ping timeout: 255 seconds]
<workmad3> poikon: but then Gemfile != gemspec
vipaca_ has quit [Changing host]
vipaca_ has joined #ruby
cableray has quit [Quit: cableray]
<johnju> poikon: what do i do if I rely on a ruby 1.9 feature? if someone gem installs on ruby 1.8 how will they know?
<poikon> @everyone ignore me i'm drunk
<workmad3> johnju: it will blow up in their face
jekotia has joined #ruby
<havenwood> johnju: if you put a .ruby-version file in the dir, then chruby or rvm will autoswitch.
chimkan has quit [Ping timeout: 272 seconds]
chimkan_ is now known as chimkan
Dom_ has quit [Ping timeout: 256 seconds]
<poikon> it seems i can't read anymore
<workmad3> poikon: bundler doesn't change to the version though, it just tells you 'this gemfile is set to 1.9.3, but you're running 2.0.0, lol, not gonna work now'
<poikon> :$
<johnju> how do you people write useful software like this?!
volk__ has joined #ruby
<workmad3> johnju: we struggle along somehow :P
jrajav has joined #ruby
<johnju> I come from the Haskell community, and there every library has to explicitly say exactly which range of library and compiler versions it will work wtih
<reactormonk> johnju, ruby prefers to fail runtime
jlast has quit [Remote host closed the connection]
<poikon> and i prefer it that way
gosshedd has joined #ruby
neersighted has quit [Quit: http://neersighted.com]
samphippen has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Quit: tjbiddle]
<poikon> ruby1.8: "heck i don't know if i can run this modern script but i'm gonna give it a try..."
roadt_ has quit [Ping timeout: 272 seconds]
aapzak has quit [Read error: Connection reset by peer]
roadt_ has joined #ruby
volk_ has quit [Ping timeout: 256 seconds]
b1rkh0ff has quit [Ping timeout: 240 seconds]
HAKEON has quit [Quit: HAKEON]
<johnju> i've found runtime failure useful so far in that i can write tests without even declaring the classes they use, and then do TDD
b1rkh0ff has joined #ruby
cmyk has joined #ruby
bluenemo has quit [Remote host closed the connection]
<cmyk> hi
keyvan has joined #ruby
<cmyk> I have a problem installing rmagick: http://pastebin.com/bWW8FDbV
volk__ has quit [Ping timeout: 248 seconds]
elaptics is now known as elaptics`away
miskander has quit [Quit: miskander]
jduan1981 has joined #ruby
atmosx has joined #ruby
idkazuma has quit [Remote host closed the connection]
<workmad3> johnju: here's a question to ponder though... the gemspec file is itself ruby... if you declared in that a requirement for ruby 1.9 and then used ruby 1.9 specific features, what would you expect to happen?
aaronmcadam has quit [Quit: aaronmcadam]
<workmad3> johnju: (as in 1.9 specific features inside the gemspec)
amacleod has joined #ruby
rdark has quit [Quit: leaving]
johnju has quit [Quit: Page closed]
undersc0re97 has joined #ruby
miskander has joined #ruby
nomenkun has joined #ruby
aapzak has joined #ruby
zeade has quit [Quit: Leaving.]
poikon_ has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<Kuifje> hi guys
Squarepy has quit [Quit: Leaving]
<Kuifje> what dirs does ruby look in when using require with a relative path?
noxoc has quit [Quit: noxoc]
<havenwood> Kuifje: It checks each dir in $LOAD_PATH.
<havenwood> s/dir/path
sn0wb1rd has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
<havenwood> Check $: ($LOAD_PATH) array.
girija_ has joined #ruby
girija_ has quit [Client Quit]
ereslibre has quit [Remote host closed the connection]
<havenwood> $: == $LOAD_PATH
buibex has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
cdt has quit [Quit: Ex-Chat]
<Kuifje> I see
<Kuifje> thanks
zeade has joined #ruby
jrafanie has joined #ruby
banjara has quit [Ping timeout: 264 seconds]
neersighted has joined #ruby
girija has left #ruby ["Ex-Chat"]
tjbiddle has joined #ruby
girija_ has joined #ruby
ananthakumaran has joined #ruby
dannybtran has joined #ruby
<dannybtran> hi everyone
<dannybtran> i'm trying to override a mongomapper key declaration
<dannybtran> in a subclass of a parent that class_evals that key declaration in all of it's children
<dannybtran> is there a good way to do it?
asteve has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
<danneu> you can specify ruby version in gemfile...
icco has quit [Quit: run away.]
jonathanwallace has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
icco has joined #ruby
<danneu> Gemfile is just part of a build step. the RUby that evaluates it is irrelevant to the dependencies it will build into
cmyk has quit [Quit: cmyk]
maletor has quit [Quit: Computer has gone to sleep.]
jrafanie has quit [Quit: jrafanie]
_nitti has joined #ruby
chrismhough has quit [Quit: chrismhough]
alex__c2022 has quit [Read error: Connection reset by peer]
v0n has joined #ruby
dougireton has joined #ruby
tommyvyo has joined #ruby
mahmoudimus has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
arietis has joined #ruby
maletor has joined #ruby
berserkr has quit [Quit: Leaving.]
kpshek has quit []
Nisstyre-laptop has joined #ruby
dougireton has left #ruby [#ruby]
br4ndon has joined #ruby
jrafanie has joined #ruby
alta has quit [Ping timeout: 272 seconds]
ChampS666 has joined #ruby
fuzai has quit [Quit: fuzai]
dhruvasagar has quit [Ping timeout: 255 seconds]
samphippen has joined #ruby
a_a_g has quit [Quit: Leaving.]
BulleTime has quit [Remote host closed the connection]
sdtqjv has quit [Remote host closed the connection]
danneu has quit [Quit: WeeChat 0.3.8]
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
mahmoudi_ has joined #ruby
Nisstyre-laptop has quit [Max SendQ exceeded]
jlast has joined #ruby
zigomir has quit [Quit: zigomir]
jonathanwallace has joined #ruby
chrismhough has joined #ruby
bricker`work is now known as bricker
mahmoudimus has quit [Ping timeout: 246 seconds]
* robacarp stabs endicia
coderhut has quit [Ping timeout: 245 seconds]
wf2f has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
girija_ has left #ruby ["Ex-Chat"]
tjbiddle_ has joined #ruby
s1n4 has joined #ruby
volk_ has joined #ruby
_nitti has quit [Remote host closed the connection]
s1n4 has quit [Client Quit]
Nisstyre-laptop has joined #ruby
poikon has quit [Remote host closed the connection]
osaut has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
carloslopes has joined #ruby
lolmaus has quit []
megha has joined #ruby
breakingthings has joined #ruby
banjara has joined #ruby
poikon has joined #ruby
osaut has quit [Ping timeout: 240 seconds]
hybris has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
hybris has joined #ruby
vipaca_ has quit [Quit: Leaving...]
Coolhand|laptop has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Remote host closed the connection]
anonymuse has left #ruby [#ruby]
<tuxillo> what do I use to format a text in html format? textile?
poikon has quit [Read error: Connection reset by peer]
pkuyken has quit [Quit: Page closed]
<atmosx> tuxillo: I use markdown for everything
anonymuse has joined #ruby
poikon has joined #ruby
<atmosx> and html
<atmosx> textile is good also
banjara has quit [Read error: Connection reset by peer]
<tuxillo> atmosx: which gem?
therod has joined #ruby
TomyLobo has joined #ruby
<shevy> just get the markdown one
<shevy> kramdown
miskander has quit [Quit: miskander]
<shevy> http://kramdown.rubyforge.org/ is the one I use, it is ok
<atmosx> yeha
Pandaen has joined #ruby
adeponte has joined #ruby
joofsh has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
huoxito has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
peteyg has joined #ruby
tjbiddle_ has joined #ruby
<tuxillo> k, let me try that. thanks
<tuxillo> just need to output html code to stdout
tvw has quit [Ping timeout: 244 seconds]
tjbiddle__ has joined #ruby
Uranio has quit [Remote host closed the connection]
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle__ is now known as tjbiddle
zigomir has joined #ruby
hybris has quit [Quit: Leaving]
timmow has quit [Ping timeout: 252 seconds]
chimkan_ has joined #ruby
aanakinn has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
atmosx has quit [Quit: And so the story goes…]
tjbiddle_ has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
aib has joined #ruby
vipaca has joined #ruby
shevy has quit [Ping timeout: 256 seconds]
chimkan has quit [Ping timeout: 272 seconds]
chimkan_ is now known as chimkan
<peteyg> I'm wondering if it's possible to directly 'include' the code of another module in a certain function. I made a pseudo-code of what I'd like to see here: http://pastie.org/5943396
grzywacz has quit [Quit: :wq]
vipaca is now known as Guest59583
<peteyg> sorry, replace the word module with method*
samuel02 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
fgro has quit [Ping timeout: 276 seconds]
<invisime> peteyg: you can call the method.
itsdavem has joined #ruby
banjara has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
<peteyg> @invisime: I need have the function that's called propogate to the __method__ variable.
aanakinn has quit [Quit: leaving]
<peteyg> Let me create a slightly more fool proof pseudo-code...
banisterfiend has joined #ruby
__BigO__ has quit [Remote host closed the connection]
<invisime> peteyg: ah. if it's more reflect-y than that, yeah. a bigger example would be better. :-)
apok has joined #ruby
<havenwood> peteyg: by 'include' do you mean call the other method?
mrsolo has joined #ruby
Elhu has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
<peteyg> invisime & havenwood: Here's a better pseudo-code: http://pastie.org/5943681
d2dchat has joined #ruby
chussenot has joined #ruby
froy has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
buibex has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
<havenwood> peteyg: Ahh. Try __callee__ instead of __method__
Guest59583 has quit [Quit: Leaving...]
aaronmacy has quit [Quit: Leaving.]
caveat- has quit [Remote host closed the connection]
shevy has joined #ruby
jeffreybaird has joined #ruby
asteve has joined #ruby
arturaz has quit [Remote host closed the connection]
joofsh has joined #ruby
<havenwood> peteyg: Oh wait, so you want it to return __method__ when called directly and return __callee__ when called via another method?
ahokaomaeha has joined #ruby
enebo has joined #ruby
caveat- has joined #ruby
kirun has joined #ruby
_nitti has quit [Ping timeout: 276 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arturaz has joined #ruby
arkiver has quit [Ping timeout: 276 seconds]
<peteyg> havenwood: Oddly enough, that doesn't work. It will only print out the method name that came last. See this pastie (working code): http://pastie.org/5943971
clooth has quit [Quit: clooth]
<havenwood> peteyg: Yeah... I see now what you're saying. Hrmm. I dunno!
<havenwood> peteyg: my bad: __method__ == __callee__
verto is now known as verto|off
Eiam has joined #ruby
__BigO__ has joined #ruby
nkts has quit [Remote host closed the connection]
maxmanders has joined #ruby
<peteyg> havenwood: Okay, no worries, I'll approach this some other way :). Thanks though!
bradleyprice has joined #ruby
<havenwood> peteyg: How bout this? https://gist.github.com/4666845
dekroning has joined #ruby
<havenwood> peteyg: (Pass __method__ as an argument, with a default set.)
ashp has joined #ruby
<ashp> Hey guys, if I have two hashes I need to merge together, is there an alternative to hash1.merge(hash2)? Right now it's throwing away an entire level of the hash1 to replace it with hash2
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<ashp> I want them to add, not replace :/
yacks has quit [Remote host closed the connection]
<peteyg> havenwood: Yep, that will do. I was trying to see if I could avoid having to pass an extra argument, but alas!
br4ndon has joined #ruby
<peteyg> (Probably wasn't worth the hassle of avoiding an extra argument passing anyways @_@)
<havenwood> peteyg: Aye, cool. Well interesting problem!
<Mon_Ouie> You can use caller to find the context
<Mon_Ouie> You have to parse the output manually to extract the method name though
maxmanders has quit [Ping timeout: 256 seconds]
Giorgio has joined #ruby
miskander has joined #ruby
<peteyg> Mon_Ouie: What do you mean?
<Mon_Ouie> Caller the 'caller' method
DaltonUS has joined #ruby
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wyhaines has quit [Remote host closed the connection]
_nitti has joined #ruby
DaltonUS has quit [Client Quit]
miskander has quit [Quit: miskander]
reinaldob has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 264 seconds]
<ashp> deep_merge gem it is!
slainer68 has joined #ruby
nicoulaj has joined #ruby
<havenwood> ashp: Nice, that seems handy!
mikepack has quit [Remote host closed the connection]
maxmanders has joined #ruby
tekacs has quit [Quit: Disappearing... *poof*]
havenwood has quit [Remote host closed the connection]
<Mon_Ouie> ashp: You can pass a block to merge
tekacs has joined #ruby
failshell has quit [Remote host closed the connection]
froy has joined #ruby
baphled has joined #ruby
<Mon_Ouie> {:a => 1, :b => 2}.merge(:a => 4, :c => 7) { |k, v1, v2| v1 + v2 }
whowantstolivef1 has quit [Quit: quit]
slainer68 has quit [Ping timeout: 248 seconds]
<ashp> Mon_Ouie: Yeah, with the way I'm building this up just having deep_merge!() was way easier luckily
Virunga has joined #ruby
tvw has joined #ruby
kirun_ has joined #ruby
jerius has joined #ruby
kirun_ has quit [Remote host closed the connection]
solitude88 has joined #ruby
tvw has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 248 seconds]
cesarstafe has joined #ruby
<cesarstafe> hi people, how can I solve the next issue? "mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h"
Coolhand has joined #ruby
<cesarstafe> here is the list of packages installed in Centos 6.2 http://pastie.org/5944501
dougireton has joined #ruby
vipaca_ has joined #ruby
chrismhough is now known as chrishough
Nisstyre-laptop has joined #ruby
<Mon_Ouie> You need something like ruby-devel probably
<Mon_Ouie> Oh, you have it
spinagon has quit [Ping timeout: 240 seconds]
chrishough is now known as REGISTER
REGISTER is now known as Guest435
ryanf has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
<cesarstafe> Mon_Ouie: yes.. is present -> ruby-devel.x86_64 1.8.7.352-7.el6_2 @base
Guest435 is now known as REGISTERS
peregrine81 has joined #ruby
havenwood has joined #ruby
<Mon_Ouie> But you still don't have the headers? Check both /usr/lib/ruby/ruby.h and around /usr/include(/ruby)?/ruby.h
shtirlic has quit [Remote host closed the connection]
<cesarstafe> this happens when I want to run the next -> "gem install passenger -v=3.0.19]/returns: Building native extensions. This could take a while."
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
shtirlic has joined #ruby
<cesarstafe> and says ... "ERROR: Failed to build gem native extension."
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dr_neek has quit [Quit: dr_neek]
<cesarstafe> Mon_Ouie: ok, I'll check it now
<shevy> hmmm
<cesarstafe> Mon_Ouie: doing 'ls /usr/lib/ruby' I get the list of folders '1.8 gems site_ruby'
Umren has quit [Ping timeout: 252 seconds]
REGISTERS has quit [Quit: REGISTERS]
<shevy> isn't OOP just a fancy name for setting data structures?
<Mon_Ouie> What's important in (Smalltalk-style) OOP is message passing: you send a message to an object, and depending on what that object is, it will react differently
* breakingthings smacks around shevy with a large oop trout
<cesarstafe> Mon_Ouie: I can't find 'ruby.h' file :(
cr3 has joined #ruby
nwertman has joined #ruby
<Mon_Ouie> Can you check what files are provided by that ruby-devel package? That sounds like pretty much the only thing it should have
<cr3> is there a way to invoke ruby to compile a source file using the gems from the system in its lib?
icole has joined #ruby
<cesarstafe> Mon_Ouie: I will see.. I am really newbie in Centos.. I am used to working with Debian & Ubuntu environments
ChampS666 has quit [Ping timeout: 276 seconds]
influ-dev has joined #ruby
Hauro has joined #ruby
spider-mario has joined #ruby
chrishough has joined #ruby
caleb_io has quit [Quit: caleb_io]
m8 has joined #ruby
therod has quit [Quit: Leaving...]
<cesarstafe> Mon_Ouie: here is the list of provided files.. http://pastie.org/5945028
dr_neek has joined #ruby
<cesarstafe> and there exist the ruby.h
mikepack has joined #ruby
<cesarstafe> so.. I guess that something more happens because if not "gem install passenger -v=3.0.19" should works well
<Mon_Ouie> That's because it's not in the right directory
axl__ has joined #ruby
<cesarstafe> Mon_Ouie: ups.. this is the fault of Centos directory structure?
eldariof has quit []
<Mon_Ouie> Normally, the directory is decided according to the options passed when ruby was compiled
<cesarstafe> :-(
jgrevich_ has joined #ruby
heftig has joined #ruby
toekutr has joined #ruby
tatsuya_o has joined #ruby
<Mon_Ouie> So either someone (e.g. packager) manually moved the files (e.g. to respect distribution's conventions) or the different packages weren't built with the same options
<cesarstafe> I really don't know how to solve it in Centos.. well.. I don't remember having this directory installation problems in Debian and Ubuntu
jaygen has joined #ruby
mikepack_ has joined #ruby
<cesarstafe> Mon_Ouie: what a bad luck!
mikepack has quit [Read error: Connection reset by peer]
axl_ has quit [Ping timeout: 240 seconds]
axl__ is now known as axl_
warmwaffles has joined #ruby
jgrevich has quit [Ping timeout: 276 seconds]
jgrevich_ is now known as jgrevich
apoch632 has joined #ruby
chimkan_ has joined #ruby
JumpMast3r has joined #ruby
alex__c2022_ has joined #ruby
invisime has left #ruby [#ruby]
DaltonUS has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Ping timeout: 276 seconds]
chimkan_ is now known as chimkan
reinaldob has joined #ruby
punkrawkR^Home has quit [Read error: Connection reset by peer]
miskander has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
dr_neek has quit [Quit: dr_neek]
gnarmis has joined #ruby
buibex has quit [Remote host closed the connection]
Hauro has quit [Quit: Leaving]
elux has joined #ruby
vlad_starkov has joined #ruby
itsdavem has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
saltcod has quit [Quit: saltcod]
ckrailo has joined #ruby
apoch632 has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 244 seconds]
freakazoid0223 has joined #ruby
reinaldob has quit [Remote host closed the connection]
atmosx has joined #ruby
recycle has quit [Read error: Connection reset by peer]
recycle_ has joined #ruby
atmosx has quit [Client Quit]
warmwaffles has quit [Quit: Leaving.]
mengu has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
bricker has quit [Ping timeout: 256 seconds]
influ-dev has quit [Quit: influ-dev]
adkron has joined #ruby
adkron_ has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
emergion has joined #ruby
ahokaomaeha has quit [Read error: Operation timed out]
enroxorz-work has quit [Read error: Connection reset by peer]
saltcod has joined #ruby
jjbohn is now known as jjbohn|afk
Goles has quit [Quit: Computer has gone to sleep.]
recycle_ has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
itsdavem has joined #ruby
recycle has joined #ruby
workmad3 has joined #ruby
tatsuya_o has joined #ruby
dmiller has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
statarb3 has joined #ruby
jfl0wers has joined #ruby
reinaldob has joined #ruby
enroxorz-work has joined #ruby
Skylab has quit [Quit: Skylab]
bricker has joined #ruby
hashtree has joined #ruby
warmwaffles has joined #ruby
warmwaffles has left #ruby ["WeeChat 0.3.9.2"]
dougireton has quit [Quit: Leaving.]
chrishough_ has joined #ruby
chrishough_ has quit [Client Quit]
chrishough_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
mockra has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 272 seconds]
ChampS666 has joined #ruby
chrishough has quit [Ping timeout: 252 seconds]
chrishough_ is now known as chrishough
Udom0 has left #ruby [#ruby]
mnaser has quit [Excess Flood]
mnaser has joined #ruby
noxoc has joined #ruby
kpshek has quit []
havenwood has quit [Remote host closed the connection]
dougireton has joined #ruby
emocakes has quit [Quit: emocakes]
chrismcgh is now known as chrismcg
chrismcg has quit [Changing host]
chrismcg has joined #ruby
chrisramon has quit [Quit: chrisramon]
therod has joined #ruby
alex__c2022_ has quit [Ping timeout: 276 seconds]
d2dchat has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
znake has joined #ruby
moos3 has joined #ruby
jjbohn|afk is now known as jjbohn
s__dana_ has joined #ruby
flyinprogramer has joined #ruby
s__dana has quit [Ping timeout: 256 seconds]
s__dana_ is now known as s__dana
mockra has joined #ruby
samphippen has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
k610 has quit [Quit: Leaving]
caleb_io has joined #ruby
havenwood has joined #ruby
<flyinprogramer> anyone know how to create custom code completion rules for ruby mine ?
poikon has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
poikon has joined #ruby
jrafanie has quit [Quit: jrafanie]
alex__c2022 has joined #ruby
carloslopes has quit [Remote host closed the connection]
philcrissman has quit [Read error: Connection reset by peer]
nga4 has quit [Ping timeout: 272 seconds]
itsdavem has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
poikon has joined #ruby
buibex has joined #ruby
philcrissman has joined #ruby
rmartin has quit [Remote host closed the connection]
philcrissman has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
<flyinprogramer> clear
<flyinprogramer> stupid me lol
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
icole has quit [Remote host closed the connection]
zommi has quit [Quit: Leaving.]
adkron__ has joined #ruby
adkron___ has joined #ruby
gnarmis has left #ruby [#ruby]
Xeago has joined #ruby
jonathanwallace has joined #ruby
rkneufeld has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hashtree has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
poikon has quit [Ping timeout: 272 seconds]
adkron_ has quit [Ping timeout: 245 seconds]
adkron has quit [Ping timeout: 245 seconds]
carlyle has quit [Remote host closed the connection]
s1n4 has joined #ruby
<mehwork> how do you make it so ruby files that don't have file extensions (Gemfile, etc) still get treated as filetype=ruby?
<mehwork> in vim
mrc_ has joined #ruby
adkron___ has quit [Ping timeout: 272 seconds]
adkron__ has quit [Ping timeout: 272 seconds]
adkron has joined #ruby
adkron_ has joined #ruby
<reactormonk> mehwork, #vim
j4kudl4ty has joined #ruby
joshman_ has quit [Ping timeout: 252 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
linusoleander has joined #ruby
dougireton has quit [Remote host closed the connection]
itsdavem has joined #ruby
Bidness has joined #ruby
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
benlieb has joined #ruby
cakehero has joined #ruby
j4kudl4ty has quit [Remote host closed the connection]
TomJ has quit [Quit: TomJ]
MattRB has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adkron_ has quit [Ping timeout: 264 seconds]
adkron has quit [Ping timeout: 264 seconds]
_nitti_ has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
chimkan_ has joined #ruby
dougireton has joined #ruby
dougireton has quit [Client Quit]
Guedes0 has quit [Ping timeout: 244 seconds]
j4kudl4ty has joined #ruby
axl__ has joined #ruby
atyz has joined #ruby
chimkan has quit [Ping timeout: 244 seconds]
chimkan_ is now known as chimkan
chrishough has quit [Quit: chrishough]
axl_ has quit [Read error: Connection reset by peer]
axl__ is now known as axl_
carlyle has joined #ruby
j4kudl4ty has quit [Remote host closed the connection]
emocakes has joined #ruby
_nitti has quit [Ping timeout: 252 seconds]
dr_neek has joined #ruby
dougireton has joined #ruby
adkron has joined #ruby
adkron_ has joined #ruby
qohelet_ has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
haxrbyte has joined #ruby
Guedes0 has joined #ruby
dougireton has quit [Client Quit]
dr_neek_ has joined #ruby
chimkan has quit [Quit: chimkan]
SrPx has quit [Quit: SrPx]
nga4 has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
dr_neek has quit [Ping timeout: 272 seconds]
dr_neek_ is now known as dr_neek
znake has quit [Quit: Linkinus - http://linkinus.com]
Bidness has quit [Remote host closed the connection]
chrishough has joined #ruby
adkron__ has joined #ruby
philcrissman has quit [Remote host closed the connection]
adkron___ has joined #ruby
adkron_ has quit [Ping timeout: 245 seconds]
pcarrier has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
chimkan has joined #ruby
<kenichi> mehwork: autocmd BufNewFile,BufRead Gemfile set ft=ruby
dougireton has joined #ruby
philcrissman has joined #ruby
<johnmilton> looking for a good tutorial on posting xml over https with ruby
SrPx has joined #ruby
benlieb has quit [Quit: benlieb]
linusoleander has quit [Quit: linusoleander]
cr3 has left #ruby [#ruby]
Elhu has joined #ruby
<_tockitj> you mean something for copy/paste johnmilton
caleb_io has quit [Quit: caleb_io]
markalanevans_ has joined #ruby
<johnmilton> well, id rather understand the process
<johnmilton> im trying to script out some basic google search appliance tasks through their api
nomenkun has quit [Remote host closed the connection]
<johnmilton> i can authenticate just fine...but not sure how to send the xml
adkron has joined #ruby
arturaz has quit [Quit: Leaving]
Vainoharhainen has quit [Quit: Leaving...]
wargasm1 has quit [Ping timeout: 252 seconds]
wargasm has joined #ruby
_nitti has joined #ruby
caleb_io has joined #ruby
amacleod_ has joined #ruby
adkron___ has quit [Ping timeout: 256 seconds]
adkron__ has quit [Ping timeout: 244 seconds]
jerius has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
markalanevans has quit [Ping timeout: 252 seconds]
markalanevans_ is now known as markalanevans
alex__c2022 has quit [Read error: Connection reset by peer]
<havenwood> johnmilton: Are you using an http client to POST the xml?
cantonic has joined #ruby
alex__c2022 has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
amacleod has quit [Ping timeout: 252 seconds]
reset has joined #ruby
<johnmilton> no
_nitti_ has quit [Ping timeout: 276 seconds]
Pandaen has quit [Ping timeout: 255 seconds]
<johnmilton> although the thought of using curl has crossed my mind
osaut has joined #ruby
<havenwood> Nakamura-san gave a good talk on Ruby HTTP clients (including curl-wrappers) at RubyConf: http://www.confreaks.com/videos/1271-rubyconf2012-ruby-http-clients-comparison
sailias1 has quit [Quit: Leaving.]
<havenwood> johnmilton: Curb or Patron are good options if you want to go the CURL route.
<johnmilton> cool, ill check this out
<johnmilton> thank you havenwood
kirun has joined #ruby
dr_neek has quit [Read error: Connection reset by peer]
dougireton has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
dr_neek has joined #ruby
Pandaen has joined #ruby
shtirlic has quit [Remote host closed the connection]
<havenwood> johnmilton: Yeah, Nakamura's talk goes into more detail than I can possibly remember! I've enjoyed using HTTParty for simple tasks of that ilk.
<havenwood> johnmilton: np
otters has quit [Ping timeout: 252 seconds]
frem has joined #ruby
dougireton has joined #ruby
<Eiam> +1 httparty
dmiller has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
gosshedd has quit [Read error: Operation timed out]
mrbloo has quit [Quit: mrbloo]
stayarrr has joined #ruby
volk_ has quit [Quit: volk_]
Pandaen has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
dr_neek has quit [Ping timeout: 272 seconds]
alex__c2022_ has joined #ruby
chrisramon has joined #ruby
alex__c2022 has quit [Ping timeout: 245 seconds]
alex__c2022_ is now known as alex__c2022
caleb_io has quit [Quit: caleb_io]
dr_neek has joined #ruby
chrisramon has quit [Client Quit]
alex__c2022 has quit [Read error: Connection reset by peer]
cableray has joined #ruby
<Eiam> If you have an array of hashes like hsh = [ {"blah"=>"yay","boo"=>"hi"}, .. repeat] is there a way to do something like hsh.map(&:boo)
tjbiddle_ has joined #ruby
alex__c2022 has joined #ruby
Bosma has joined #ruby
<Eiam> obviously the keys aren't symbol so to_proc cannot be called on them
maycon has joined #ruby
maycon has joined #ruby
<whitequark> Eiam: ary.map { |elem| elem["boo"] }.
dr_neek has quit [Read error: Connection reset by peer]
<Eiam> whitequark: well of course that way is obvious =) I meant something more short handed like the to_proc
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
mark_locklear has quit [Ping timeout: 256 seconds]
<whitequark> Eiam: that would make code less readable
otters has joined #ruby
<Eiam> whitequark: the example you posted seems like its very anti DRY
alex__c2022 has quit [Ping timeout: 272 seconds]
DrShoggoth has joined #ruby
<Eiam> whenever I write code that does { |blah| blah["thing"]} or blah.thing I always think it should be using something shorter
<Eiam> and of course, in the second case you CAN use something shorter, the unary ampersand
<Eiam> but in the first case you cannot
adkron has joined #ruby
<spider-mario> well, it sure would be useful if the “method” method could take additional parameters
dr_neek has joined #ruby
cesarstafe has quit [Quit: Lost terminal]
dekroning has quit [Ping timeout: 272 seconds]
<spider-mario> (and then return a partially applied method)
icole has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<spider-mario> it would then be possible to write:
<spider-mario> ary.map(&elem.method(:[], "boo"))
dmiller has quit [Ping timeout: 252 seconds]
<spider-mario> oops
<spider-mario> what am I saying.
<spider-mario> pure BS.
<spider-mario> I must be tired
aaronmcadam has joined #ruby
<whitequark> spider-mario: that is called "currying"
arya_ has joined #ruby
<spider-mario> (it’s about 11:00 PM where I live)
<spider-mario> whitequark: I know, I’ve used haskell and ocaml a little
arya has quit [Ping timeout: 248 seconds]
<spider-mario> well, that was more partial application than currying
otters has quit [Ping timeout: 248 seconds]
<whitequark> mhm
<spider-mario> currying is just a convenient way to have partial application
<Eiam> Mon_Ouie: lol give me a minute to try and understand that code
<whitequark> spider-mario: yeah you're right
<whitequark> Eiam: don't use that in production, ever
<whitequark> clarity > cleverness, any day of the week.
Axsuul has joined #ruby
<whitequark> it isn't even particularly shorter.
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
adkron has quit [Ping timeout: 252 seconds]
geekbri has quit [Remote host closed the connection]
renanoronfle has quit [Quit: This computer has gone to sleep]
cascalheira has joined #ruby
m3pow has quit [Ping timeout: 245 seconds]
<Eiam> okay so.. its saying :[] should call this method with this block ?
<Eiam> I totally don't understand how this code worksh sha
nonotza has quit [Quit: nonotza]
<Mon_Ouie> It's creating a proc that calls [] with "foo" on its first argument, and adds all the other arguments at the end
HAKEON has joined #ruby
<Mon_Ouie> I added the &(block || new_block) just for completeness, in case you'd call the block with yet another block
IceDragon has joined #ruby
<whitequark> Eiam: the fact that you don't understand how it works should discourage you from using it in production code.
<whitequark> but whatever.
<deed02392> is '' suppsed t evauate to true?
<deed02392> in codepad it doesn't but in my setup it is
kaen is now known as hail
adeponte has quit [Remote host closed the connection]
hail is now known as kaen
<Eiam> whitequark: I'm not going to use it, but that doesn't mean I don't want to learn something =)
<Mon_Ouie> '' evaluates to the empty string. Only nil and false are considered like false in conditionals.
segv- has quit [Read error: Connection reset by peer]
segv- has joined #ruby
thone_ has joined #ruby
stayarrr has quit [Quit: Leaving...]
<Eiam> Mon_Ouie: okay so recv is the :[] which I got…. *args is "foo" (and anything else pushed in), but what is &block then, and where did *new_args come from?
<deed02392> thanks Mon_Ouie
<havenwood> Mon_Ouie: I like #ap, very cool! :)
<deed02392> so i shoud use .empty?
hashtree has joined #ruby
<Eiam> deed02392: I use empty if I'm in Rails
emocakes has quit [Quit: emocakes]
<Eiam> well, or blank =)
x82_nicole has joined #ruby
cableray has quit [Quit: cableray]
slainer68 has joined #ruby
<deed02392> i'm writing a chef tempate
<deed02392> s i'm nt sure if i'm in rails?!
flyinprogramer has quit [Quit: flyinprogramer]
<Eiam> but according to this dude, http://devblog.avdi.org/2012/06/05/confident-ruby-beta/ doing nil & empty checks all the time is unconfident ruby! ;)
<havenwood> deed02392: If you're gunna use #blank? just check what it actually does (I didn't find it intuitive): https://github.com/rails/rails/blob/2a371368c91789a4d689d6a84eb20b238c37678a/activesupport/lib/active_support/core_ext/object/blank.rb#L14
tenmilestereo has quit [Quit: Leaving]
moos3 has quit [Quit: Computer has gone to sleep.]
<deed02392> i could use == '' too i suppse
thone has quit [Ping timeout: 244 seconds]
itsdavem has quit [Remote host closed the connection]
mib_mib has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
<Mon_Ouie> new_args are the arguments from call, args are the argument of ap
cableray has joined #ruby
influ-dev has joined #ruby
c0rn has quit [Ping timeout: 276 seconds]
<havenwood> deed02392: class Object; def vacuous?; empty? || ni?; end end
<havenwood> s/ni?/nil?
<Mon_Ouie> If it's nil, it's most likely not going to respond to empty?
<deed02392> come again havenwood ?
adeponte has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
<havenwood> deed02392: nvm
<havenwood> deed02392: I haven't had my coffee. :(
c0rn has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<deed02392> i feel your pain!
adkron has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
JackyAlcine has joined #ruby
skcin7 has joined #ruby
alex__c2022 has joined #ruby
osaut has quit [Quit: osaut]
nga4 has quit []
<whitequark> havenwood: >or a whitespace string
<whitequark> [2] pry(main)> " ".empty?
<whitequark> => false
<whitequark> wtf, rails
tjbiddle_ has joined #ruby
ChampS666 has quit [Ping timeout: 252 seconds]
<whitequark> though that can actually make sense in a webapp context
<Eiam> Mon_Ouie: okay so if "foo" is *args, what would be in *new_args ?
adkron has quit [Ping timeout: 256 seconds]
iamjarvo1 has joined #ruby
<Eiam> whitequark: try "".blank?
<Eiam> should be true..
<Mon_Ouie> [] because the only argument passed to the block is the receiver
influ-dev has quit [Quit: influ-dev]
HAKEON has quit [Quit: HAKEON]
<whitequark> Eiam: ah, it overloads it on String
<Eiam> Mon_Ouie: so if it was &ap(:[],"foo","bar") wouldn't *args be "foo" and "bar", leaving new_args as [] still?
main has quit [Ping timeout: 252 seconds]
aquaranto has quit []
<Mon_Ouie> Yes
thisirs has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
iamjarvo has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
jrafanie has joined #ruby
nga4 has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
adkron has joined #ruby
alex__c2022_ has joined #ruby
alex__c2022 has quit [Ping timeout: 276 seconds]
alex__c2022_ is now known as alex__c2022
<interactionjaxsn> " ".strip.empty? => true
bluOxigen has joined #ruby
<interactionjaxsn> " ".each_byte { |b| puts b } => 32
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
emmanuelux has joined #ruby
MattRB has quit [Ping timeout: 256 seconds]
<Mon_Ouie> A string that contains only white space won't necessarily have all its bytes at 32
techhelp has joined #ruby
<Mon_Ouie> It could include tabs, etc. and might even be using a non-ASCII compatible encoding
ahokaomaeha has joined #ruby
<interactionjaxsn> good point. i wanted to demonstrate that something was there.
jrafanie has quit [Quit: jrafanie]
LBRapid has quit [Quit: Farewell.]
[Neurotic] has joined #ruby
Nisstyre has joined #ruby
adkron has quit [Ping timeout: 248 seconds]
adkron has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
chrisramon has joined #ruby
greenarrow has joined #ruby
alex__c2022 has quit [Ping timeout: 272 seconds]
jrajav has joined #ruby
adkron_ has joined #ruby
skcin7 has quit [Ping timeout: 245 seconds]
coaster has quit [Remote host closed the connection]
dr_neek has quit [Ping timeout: 272 seconds]
coaster has joined #ruby
alex__c2022 has joined #ruby
Xeago has quit [Remote host closed the connection]
dr_neek has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
workmad3 has quit [Read error: Operation timed out]
adkron_ has quit [Read error: Connection reset by peer]
DaltonUS has quit [Quit: DaltonUS]
v0n has quit [Ping timeout: 248 seconds]
miskander has quit [Quit: miskander]
blacktulip has quit [Remote host closed the connection]
mib_mib has quit [Quit: Page closed]
miskander has joined #ruby
mrc_ has quit [Quit: Leaving.]
joshman_ has joined #ruby
idkazuma has joined #ruby
alex__c2022 has quit [Ping timeout: 272 seconds]
adkron has quit [Ping timeout: 264 seconds]
poikon has joined #ruby
timonv has quit [Remote host closed the connection]
cr3 has joined #ruby
<cr3> how can I set a breakpoint in my code?
timonv has joined #ruby
Giorgio has quit [Ping timeout: 276 seconds]
generali_ has quit [Remote host closed the connection]
<Eiam> interactionjaxsn: depends on what you mean by "something was there". For me at least, an empty string may as well not exist
<Eiam> its not something I generally want to show a user, and " " may as well be "" or nil
dr_neek_ has joined #ruby
alex__c2022 has joined #ruby
<cr3> looks like I can simply paste these lines in my code: require "rubygems"; require "ruby-debug/debugger"
<Eiam> (which is probably why .blank? exists)
<Eiam> rubydebug19
<Eiam> although I think it was replaced
<Mon_Ouie> Eiam: There are many applications where whitespace is important. And being a string or being nil makes an even bigger difference.
Vektur has joined #ruby
elux has quit [Quit: Bye!]
dr_neek has quit [Ping timeout: 272 seconds]
dr_neek_ is now known as dr_neek
<Eiam> Mon_Ouie: I wasn't disputing that it was important, I was saying clearly for many cases the distinction between " " and "" and nil are irrelevant
<Eiam> and []
<Eiam> at some level all of them indicate "no data present"
<Eiam> for certain types of applications =)
dr_neek has quit [Client Quit]
timonv has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
JackyAlcine has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
alex__c2022 has quit [Ping timeout: 272 seconds]
<interactionjaxsn> " ".present? => false
<interactionjaxsn> Eiam: you have a point
alex__c2022 has joined #ruby
<Eiam> I'm dealing with data from all sorts of feeds and implementors have varied on how they designate "no data"
<Eiam> so .blank? has been a godsend for me
<Eiam> (because it catches all of them)
ahokaomaeha has quit [Ping timeout: 245 seconds]
vipaca_ has quit [Quit: Leaving...]
elaptics`away is now known as elaptics
mneorr has joined #ruby
havenwood has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
interactionjaxsn has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
dr_neek has joined #ruby
JackyAlcine has joined #ruby
JackyAlcine has joined #ruby
JackyAlcine has quit [Changing host]
inokenty has quit [Quit: Leaving.]
miskander has quit [Quit: miskander]
ffranz has quit [Read error: Connection reset by peer]
otters has joined #ruby
uris has quit [Ping timeout: 272 seconds]
adkron has joined #ruby
lunarjar has joined #ruby
etcetera has joined #ruby
jerius has quit []
adkron_ has joined #ruby
HAKEON has joined #ruby
mengu has quit [Quit: Leaving]
iambic has quit [Quit: leaving]
forrest has quit [Quit: Leaving]
xsarin has quit [Quit: xsarin]
samphippen has joined #ruby
philcrissman has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
atmosx has joined #ruby
uris has joined #ruby
markalanevans has quit [Quit: markalanevans]
breakingthings has quit []
qohelet_ has quit [Quit: qohelet_]
jrajav has quit [Read error: Connection reset by peer]
asteve has quit [Quit: Computer has gone to sleep.]
jrajav has joined #ruby
zeade has left #ruby [#ruby]
berserkr has joined #ruby
Martz has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
alanp has quit [Read error: Connection reset by peer]
freezway has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
MattRB has joined #ruby
Choobie has left #ruby ["End"]
jgrimes has quit [Remote host closed the connection]
dr_neek has quit [Quit: dr_neek]
emergion has joined #ruby
alanp has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
jjbohn has quit [Quit: Leaving...]
jonahR has quit [Quit: jonahR]
mjolk has quit [Quit: This computer has gone to sleep]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby
Hauro has joined #ruby
chrisramon has quit [Quit: chrisramon]
endre has quit [Quit: Lost terminal]
Hauro has quit [Client Quit]
adkron has quit [Ping timeout: 264 seconds]
__BigO__ has quit [Ping timeout: 244 seconds]
itsdavem has joined #ruby
meoblast001 has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
baphled has quit [Ping timeout: 276 seconds]
lunarjar has quit [Quit: Leaving]
alex__c2022 has quit [Quit: alex__c2022]
rubyweapon has joined #ruby
noxoc has quit [Quit: noxoc]
willob has quit [Quit: Leaving.]
<rubyweapon> I want to rotate my log files daily. So I use: Logger.new("my-logfile.log", shift_age = "daily") -- so far so good. But I have a feeling that only a small number of log files are retained (last 3 days). Can you somehow control the number of files that should be kept? The only way I found was to give a number instead of "daily", but I still want daily rotation.
emergion has quit [Quit: Computer has gone to sleep.]
geggam has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
v0n has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
gnarmis has joined #ruby
aaronmacy has joined #ruby
vertroa has quit [Quit: WeeChat 0.3.8]
noxoc has joined #ruby
Monie has quit [Quit: Quit]
andrewhl has quit [Remote host closed the connection]
tetsus is now known as Guest15986
Dom_ has joined #ruby
<heftig> rubyweapon: unsure. the logger never seems to delete/unlink any files
jgarvey has quit [Quit: Leaving]
Guest15986 is now known as tetsus
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
<heftig> rubyweapon: maybe something else is cleaning up the directory. are you running systemd?
skcin7 has joined #ruby
ephialtes480 has left #ruby ["Linkinus - http://linkinus.com"]
dougireton has quit [Quit: Leaving.]
Kuifje has quit [Ping timeout: 276 seconds]
Astral__ has joined #ruby
poikon has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
EPIK has joined #ruby
s1n4 has quit [Quit: leaving]
<rubyweapon> heftig: mh it's a jruby rails app running on a server that is not managed by me. Dunno, but I don't think so. The app has been running for a month now and yet there are only logs for the last 3 days.
<rubyweapon> heftig: but yes, maybe something else is deleting the files. Although I have no idea what that might be.
gnarmis has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
kpshek has joined #ruby
mrkris has joined #ruby
caleb_io has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
u- has quit [Ping timeout: 246 seconds]
nari has joined #ruby
dougireton has joined #ruby
<banisterfiend> Mon_Ouie: have oyu looked at rbcurse?
Astral_ has quit [Ping timeout: 255 seconds]
<Mon_Ouie> Nope
u- has joined #ruby
kpshek has quit [Client Quit]
stopbit has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
havenn has joined #ruby
elico has joined #ruby
<banisterfiend> Mon_Ouie: you should experiment with saying "nup" instead, it's slightly edgier and makes u look k00
ner0x has joined #ruby
joofsh has quit [Remote host closed the connection]
matheus__ is now known as embs
embs is now known as embs_
plotter has joined #ruby
<havenn> wow, computer now officially have over a million cores - time for parallelism? :O
Dom_ has quit [Remote host closed the connection]
<jrajav> naaaaaaah
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
Dom_ has joined #ruby
Goles has joined #ruby
Bosox20051 has joined #ruby
Goles has quit [Read error: Connection reset by peer]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
phinfonet has joined #ruby
poikon has joined #ruby
poikon has quit [Remote host closed the connection]
dustint has quit [Remote host closed the connection]
segv- has quit [Quit: segv-]
coder_neo has quit [Ping timeout: 276 seconds]
mephux has quit [Excess Flood]
Dom_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
markalanevans has joined #ruby
mephux has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
markalanevans has quit [Remote host closed the connection]
frem has quit [Read error: Operation timed out]
jtharris has quit [Quit: WeeChat 0.3.9.2]
Dom_ has joined #ruby
markalanevans has joined #ruby
benlieb has joined #ruby
dougireton has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 252 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
caleb_io has quit [Quit: caleb_io]
SolidResolve has joined #ruby
amacleod_ has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
rubyweapon has quit [Quit: Page closed]
jeffreybaird has quit [Quit: jeffreybaird]
dmiller has joined #ruby
samlt has quit [Ping timeout: 255 seconds]
SrPx has quit [Quit: SrPx]
SrPx has joined #ruby
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby
m8 has quit [Quit: Sto andando via]
chussenot has joined #ruby
dougireton has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
reinaldob has joined #ruby
colonolGron has quit [Quit: Lost terminal]
benlieb has quit [Quit: benlieb]
pettsson has quit [Remote host closed the connection]
havenn is now known as havenwood
cableray has quit [Quit: cableray]
aaronmacy has quit [Quit: Leaving.]
matchaw_ has joined #ruby
cr3 has quit [Quit: leaving]
hackerdude has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
drakedouay has joined #ruby
emmanuelux has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
nari has quit [Ping timeout: 272 seconds]
therod has quit [Quit: Leaving...]
pu22l3r has joined #ruby
<drakedouay> i want to set a string to a value, and tell ruby to ignore any special characters contained in it. It is a password hash and as a result it contains many control characters. So far I have 'var = <<<EOS', but it seems that ruby is still trying to parse the contents. How can I fix this?
<havenwood> drakedouay: <<-EOS
Virunga has quit [Remote host closed the connection]