apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
adeponte has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Quit: SCommette]
<marwan_> havenwood: but i don't want to query any user info, i just want to check if he registered before or not
grayson has quit [Quit: Computer has gone to sleep.]
pyx has joined #ruby
mockra has joined #ruby
<shevy> havenwood we are ALL SLAVES ANYWAY
<havenwood> marwan_: A GET request should suffice. Right? You aren't changing anything, just checking if he registered.
sabooky has joined #ruby
poikon has quit [Remote host closed the connection]
<havenwood> s/changing anything/modifying a resource
mattbl has quit [Quit: This computer has gone to sleep]
hbpoison has quit [Ping timeout: 248 seconds]
<marwan_> and what the url should look like
<havenwood> shevy: Yeah, I'd include the Fielding thesis as a chapter if there were going to be a Coder Bible. It is a nice meditation.
<marwan_> and how the url should look like
mmitchell has joined #ruby
innohero has joined #ruby
ushijima has quit [Quit: Leaving]
rismoney has joined #ruby
russt has quit [Quit: russt]
<chiel> emocakes: haha :p
rakl has quit [Quit: sleeping]
<havenwood> marwan_: Same URL as you'd use to PUT/POST/PATCH the registration check, but a GET request to that URL instead.
x82_nicole has quit [Quit: Computer has gone to sleep.]
reppard has quit [Ping timeout: 276 seconds]
<rismoney> def my_map {:opt1=>0,:opt2=>1,opt3=>2} normally i call this with my_map[foo]. can i somehow use invert to call my_map? I want to pass something like my_map invert and get opt2
bean has joined #ruby
bean has quit [Max SendQ exceeded]
mattbl has joined #ruby
<marwan_> havenwood: ok, thanks. i got it
mmitchell has quit [Remote host closed the connection]
bean has joined #ruby
<rismoney> nevermind
<rismoney> duh - .invert
marwan_ has quit [Quit: Page closed]
jlast has quit [Remote host closed the connection]
Vektur has joined #ruby
pavilionXP has joined #ruby
poikon has joined #ruby
plotter has quit [Remote host closed the connection]
gcoderre has joined #ruby
rakl has joined #ruby
lusory has quit [Read error: Connection reset by peer]
mengu has joined #ruby
rakl has quit [Client Quit]
mengu has quit [Client Quit]
gyre007 has quit [Remote host closed the connection]
johndouthat has quit [Quit: johndouthat]
rismoney has quit [Remote host closed the connection]
lusory has joined #ruby
poikon has quit [Ping timeout: 240 seconds]
dougireton has quit [Quit: Leaving.]
rakl has joined #ruby
piotr__ has quit [Ping timeout: 264 seconds]
AntiTyping has joined #ruby
main has joined #ruby
bttf has quit [Ping timeout: 248 seconds]
hmarr has quit [Quit: Computer has gone to sleep.]
rakm has quit [Read error: Connection reset by peer]
rismoney has joined #ruby
c0rn has joined #ruby
reppard has joined #ruby
arya has quit [Ping timeout: 252 seconds]
BigFatFatty has left #ruby ["Leaving"]
i_s has quit [Quit: i_s]
gcoderre has quit [Quit: gcoderre]
gcoderre has joined #ruby
SCommette has joined #ruby
bttf has joined #ruby
jamescarr has joined #ruby
nat_home has quit [Quit: Leaving.]
arya has joined #ruby
locriani_ has joined #ruby
ngoldman has quit [Ping timeout: 252 seconds]
locriani has quit [Read error: Connection reset by peer]
rismoney has quit [Ping timeout: 256 seconds]
jamescarr has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Max SendQ exceeded]
c0rn has quit [Quit: Computer has gone to sleep.]
rakm has joined #ruby
rakm has quit [Max SendQ exceeded]
rakm has joined #ruby
ngoldman has joined #ruby
rismoney has joined #ruby
ner0x has joined #ruby
flip_digits has joined #ruby
lancepantz_ has quit [Quit: ZNC - http://znc.in]
poikon has joined #ruby
ngoldman has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
yshh has quit [Remote host closed the connection]
postmodern has joined #ruby
arya has quit [Ping timeout: 264 seconds]
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
icole has quit [Remote host closed the connection]
gyre007 has joined #ruby
slainer68 has quit [Remote host closed the connection]
banisterfiend is now known as banister`try`sle
banister`try`sle is now known as banisterplssleep
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
poikon has quit [Ping timeout: 256 seconds]
phantasm66 has quit [Client Quit]
andrewsfreeman has quit [Remote host closed the connection]
gcoderre has quit [Quit: gcoderre]
lancepantz has quit [Client Quit]
otters has quit [Quit: WeeChat 0.3.9.2]
karupanerura has quit [Excess Flood]
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
lancepantz has quit [Client Quit]
hbpoison has joined #ruby
Konboi has joined #ruby
fedza has joined #ruby
jonahR has joined #ruby
idkazuma has quit [Remote host closed the connection]
c0rn has joined #ruby
idkazuma has joined #ruby
karupanerura has joined #ruby
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
fsck3r has joined #ruby
<fsck3r> join #digitalocean
<fsck3r> shoot
<fsck3r> sorry about that
pskosinski has joined #ruby
idkazuma has quit [Ping timeout: 264 seconds]
otters has joined #ruby
jjang_ has joined #ruby
cdt has quit [Ping timeout: 264 seconds]
jjang_ has quit [Remote host closed the connection]
jjang has quit [Read error: No route to host]
jjang has joined #ruby
joeycarmello has quit [Remote host closed the connection]
marr has quit [Ping timeout: 248 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
reppard has quit [Ping timeout: 252 seconds]
generalizzimo has quit [Remote host closed the connection]
kaen has joined #ruby
mikepack has quit [Remote host closed the connection]
anachronistic has joined #ruby
anachronistic has quit [Client Quit]
wr has quit [Remote host closed the connection]
main has quit [Ping timeout: 276 seconds]
joofsh has quit [Remote host closed the connection]
thone has joined #ruby
bradleyprice has quit [Remote host closed the connection]
thone_ has quit [Ping timeout: 245 seconds]
lancepantz has quit [Quit: ZNC - http://znc.in]
peregrine81 has quit [Ping timeout: 276 seconds]
hbpoison has quit [Ping timeout: 256 seconds]
gyre007 has quit [Remote host closed the connection]
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
superguenter has quit [Quit: Leaving.]
binaryplease has joined #ruby
mikeg has quit [Quit: Leaving]
apok has joined #ruby
mfridh has quit [Read error: Operation timed out]
the_mentat has quit [Quit: Computer has gone to sleep.]
poikon has joined #ruby
superguenter has joined #ruby
peregrine81 has joined #ruby
phinfonet has quit [Read error: Operation timed out]
<havenwood> yikes, that's a long url
Virunga has quit [Remote host closed the connection]
taoru has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
the_mentat has joined #ruby
perun_ has quit [Ping timeout: 248 seconds]
s__dana has quit [Quit: s__dana]
aantix has quit [Ping timeout: 264 seconds]
superguenter has quit [Quit: Leaving.]
poikon has quit [Ping timeout: 264 seconds]
tjbiddle_ has joined #ruby
xemu has quit [Ping timeout: 272 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
ephemerian has quit [Quit: Leaving.]
gabrielrotbart has quit [Remote host closed the connection]
mfridh has joined #ruby
emmanuelux has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
forced_request has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
fsck3r has quit [Quit: Leaving...]
tjbiddle_ has quit [Ping timeout: 264 seconds]
aaronmcadam has quit [Quit: aaronmcadam]
thone_ has joined #ruby
niklasb has quit [Ping timeout: 244 seconds]
tommyvyo has joined #ruby
hbpoison has joined #ruby
sailias has joined #ruby
gf3 has joined #ruby
tcstar has quit [Ping timeout: 272 seconds]
fedza has quit [Ping timeout: 246 seconds]
zenloop has quit [Quit: zenloop]
reppard has joined #ruby
thone has quit [Ping timeout: 264 seconds]
peregrine81 has quit [Quit: Goodbye.]
jsilver has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenwood has quit [Ping timeout: 276 seconds]
mando has quit [Remote host closed the connection]
statarb3 has quit [Read error: Connection reset by peer]
moted has joined #ruby
perun_ has joined #ruby
meoblast001 has joined #ruby
chrisja has quit [Quit: leaving]
ner0x has joined #ruby
_br_ has quit [Excess Flood]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
BRMatt has quit [Ping timeout: 264 seconds]
emocakes has quit [Quit: emocakes]
davidokner has joined #ruby
gabrielrotbart has joined #ruby
zeade has quit [Quit: Leaving.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
mattbl has quit [Quit: This computer has gone to sleep]
<davidokner> Hi, I'm trying to install gem thin. I'm getting errors like you have to install development tools first.
toekutr has quit [Remote host closed the connection]
<davidokner> I'm running os x. Is this error accuate? Where do I get development tools?
<yfeldblum> davidokner, on windows?
<bean> davidokner: mby you have to install development tools first
<bean> xcode developer tools
<yfeldblum> davidokner, xcode
<davidokner> I also tried this on windows earler and installed the dev tools and it still didn't fix it.
<davidokner> I already installed the xcode dev tools.
<davidokner> I didn't install xcode, just the compiler kit.
johndouthat has joined #ruby
_br_ has joined #ruby
fsck3r has joined #ruby
joofsh has joined #ruby
apok has quit [Quit: apok]
segv- has quit [Quit: segv-]
<davidokner> I installed the xcode command line tools.
<davidokner> I have that for other stuff like brew.
_br_ has quit [Excess Flood]
rezzack has quit [Quit: Leaving.]
DrCode has quit [Ping timeout: 276 seconds]
<davidokner> bean: I already have the xcode command line tools.
mhf has quit [Remote host closed the connection]
<bean> are they updated?
walter has joined #ruby
<davidokner> bean: I don't know, but I got them just a few months ago for mountain lion.
tylersmith has quit [Quit: tylersmith]
<bean> ok
<bean> well you should probably pastebin the actual error
<davidokner> ok
anonymuse has quit [Quit: Leaving.]
walter has quit [Client Quit]
dhruvasagar has joined #ruby
<davidokner> bean: This is it: http://pastebin.com/MEXQASx0
<davidokner> bean: I got the same thing on windows even after instsalling the windows dev tools for ruby.
_br_ has joined #ruby
mibitzi has joined #ruby
<bean> so that doesn't say anything about needing developer tools
thone_ has quit [Ping timeout: 252 seconds]
<end_guy> Wheww... Just finished patching all of my 1.9.3 servers with the new update.
slainer68 has joined #ruby
<davidokner> bean: Line 29
`brendan has joined #ruby
<end_guy> Thanks, dudes.
<bean> gem install eventmachine --pre
<davidokner> bean: I saw something about eventmachine when googling similar problem for another gem.
<davidokner> bean: I don't know what it is though.
rezzack has joined #ruby
<bean> davidokner: just install the pre release version of eventmachine
freakazoid0223 has quit [Quit: Leaving]
baphled has joined #ruby
DrCode has joined #ruby
<davidokner> bean: I just tried that command and got the same kind of error as for thin.
<bean> thats because your error isn't for thin
<bean> its for eventmachine
<davidokner> Oh ok
<bean> Sorry, i have to go, looks pretty googleable though
<bean> try updating your developer tools
<davidokner> bean: Ok thanks
v0n has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
thone has joined #ruby
<davidokner> How can I get an eventmachine error for installing eventmachine?
<davidokner> Is there a problem with eventmachine 1.8.24?
arya has joined #ruby
pskosinski has quit [Quit: The copyright law violator is gone.]
NiteRain has quit [Ping timeout: 246 seconds]
joeycarmello has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
dr_neek has quit [Quit: dr_neek]
Targen has joined #ruby
<bean> just looked back in here for a sec, you're getting an installing eventmachine
<bean> which thin needs
mrsolo has quit [Quit: Leaving]
arya has quit [Ping timeout: 248 seconds]
binaryplease has quit [Quit: WeeChat 0.4.0]
jerius has quit []
c0rn has quit [Ping timeout: 248 seconds]
mockra has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
mhf has joined #ruby
mahmoudimus has joined #ruby
c0rn has joined #ruby
dougireton has joined #ruby
thufir_ has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
samphippen has quit [Quit: Computer has gone to sleep.]
tcstar has joined #ruby
onemanjujitsu has joined #ruby
dougireton has quit [Quit: Leaving.]
jsilver has quit [Remote host closed the connection]
linguini has joined #ruby
<davidokner> this is crazy, I can't install gem thin.
ttt has joined #ruby
inokenty has quit [Quit: Leaving.]
fsck3r has quit [Quit: Leaving...]
reppard has quit [Ping timeout: 245 seconds]
<davidokner> I got it to install on windows by doing precompiled binary version of thin "-v 1.2.11"
twoism has quit [Remote host closed the connection]
the_mentat has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
ahokaomaeha has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
mfridh has quit [Read error: Operation timed out]
the_mentat has joined #ruby
tetley has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Ping timeout: 246 seconds]
poikon has joined #ruby
tjbiddle has joined #ruby
cjs226 has quit []
elico has quit [Ping timeout: 276 seconds]
danneu has joined #ruby
<jrabbit> are there alternatives to macruby?
<Eiam> objc
<jrabbit> Eiam: not the most appealing :P
<Eiam> =)
bradleyprice has joined #ruby
<jrabbit> I'm running into some problems with stdlib with macruby and not much hope with it
Vektur has quit []
reppard has joined #ruby
<havenwood> jrabbit: Is your target OS X or iOS?
<jrabbit> OS X.
<jrabbit> are there otherways to interface with Appkit and such?
<havenwood> jrabbit: Hrm, yeah I wonder how Apple is going to move forwards from Objective-C. The path really isn't clear to me. The language is so closely coupled with Cocoa.
mahmoudimus has quit [Ping timeout: 255 seconds]
davidokner has quit [Quit: leaving]
<jrabbit> I mean it all ends up with objc
wargasm has quit [Ping timeout: 256 seconds]
<jrabbit> but I don't need a ruby running on objc
DrCode has quit [Ping timeout: 276 seconds]
<jrabbit> and the apple OSA bridges are equally dilapidated if not more so than macruby
dr_neek has joined #ruby
dmiller has joined #ruby
adeponte has quit [Remote host closed the connection]
DrCode has joined #ruby
poikon has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
<jrabbit> Like I'm only tryign to access system stuff mayeb I should look at QT or similar
onemanjujitsu has quit [Quit: onemanjujitsu]
<havenwood> jrabbit: I was surprised earlier when MacRuby performed so well when looking at Topaz: https://gist.github.com/havenwood/4724778
hbpoison has joined #ruby
sn0wb1rd has joined #ruby
<jrabbit> yeah it doesn't feel like a project thats been left to die in the cold
quest88 has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
Hanmac1 has joined #ruby
<jrabbit> is qtruby maintained?
nari has joined #ruby
rupee has quit [Ping timeout: 272 seconds]
<havenwood> jrabbit: doesn't appear so
mfridh has joined #ruby
<jrabbit> yeah highly discouraging
c0rn has quit [Ping timeout: 240 seconds]
jsilver has joined #ruby
adkron has joined #ruby
<havenwood> jrabbit: what os's are you targeting?
<havenwood> all?
havenwood has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
mattbl has joined #ruby
<jrabbit> Mac for now.
<jrabbit> I don't really care too much I'm just trying to end up doing GUI stuff for once
atno has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
PragCypher has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
JMcAfreak has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
mattbl has quit [Client Quit]
kuzushi has quit [Ping timeout: 252 seconds]
sean_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
icole has joined #ruby
ryanh has joined #ruby
<Spooner> jrabbit, wxruby is probably the most "working" gui system.
quest88 has quit [Quit: quest88]
mahmoudimus has joined #ruby
<Spooner> Though just noticed it is 3 years since a release. It does work in 1.9 though.
baphled has quit [Ping timeout: 240 seconds]
<jrabbit> Not ideal either
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<jrabbit> rubycocoa may actually work better
<Spooner> jrabbit, Ruby/GTK2 was last released 8 days ago. Sounds like a winner ;)
atno has joined #ruby
tommyvyo has joined #ruby
<Spooner> jrabbit, And qtbindings was 4 months ago, which is probably better than qtruby.
<jrabbit> Spooner: ooh thats good to know
<jrabbit> qt is generally good if they actually support it
dhruvasagar has quit [Ping timeout: 244 seconds]
<jrabbit> http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.5/ this is suprisingly less dead than macruby maybe
<Spooner> Yeah, but making pure Mac stuff is a dead end ;)
elplatt has quit [Quit: elplatt]
dhruvasagar has joined #ruby
<jrabbit> Spooner: I'm not tryign to learn qt or anything I'd just like my damn app to work all I want to do is set some backgrounds atm
<jrabbit> so it's not entirely for GUI but also for desktop integration mostly
jonathanwallace has joined #ruby
<jrabbit> Spooner: I'll look at qt bindings
bigmac has joined #ruby
zenloop has joined #ruby
ada2358 is now known as adzuci
themadcanudist has joined #ruby
themadcanudist has left #ruby [#ruby]
xemu has joined #ruby
elplatt has joined #ruby
subbyyy has joined #ruby
Ohga has joined #ruby
ner0x has quit [Quit: Leaving]
the_mentat has quit [Quit: Computer has gone to sleep.]
pac1 has joined #ruby
megha has joined #ruby
<Ohga> I'm learing ruby and I'm trying to implement a mixin that formalize monkey-patching, but some last step is missing. http://pastebin.com/wAhesn6C (Disclamer: I know monkey-patching is in general a bad move. I just want to learn from this excercise)
nat_home has joined #ruby
joofsh has quit [Remote host closed the connection]
elplatt has quit [Quit: elplatt]
toekutr has joined #ruby
joofsh has joined #ruby
NiteRain has joined #ruby
the_mentat has joined #ruby
onemanjujitsu has joined #ruby
<Harzilein> Ohga: you are aware that there already are gems that provide apis/dsls facilitating monkey patching, right?
nfk has quit [Quit: yawn]
<Ohga> Harzilein: no, however, using those defeats the challenge in learning by implementing it myself.. so to my question.....
mattbl has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
aaronmacy has quit [Quit: Leaving.]
ehm_may has joined #ruby
tomzx_mac has joined #ruby
cobragoat has quit [Remote host closed the connection]
<Harzilein> Ohga: sorry, i'm about to go to bed. i assumed you'd find it interesting to implement it yourself, just mentioning that you should check out rubygems if there is a pressing need for such a thing :)
<Ohga> Harzilein: well, I'm of course happy to know that. thank
<Ohga> +you
<ehm_may> Anyone know how to get a string with '\' in it that is not escaped? e.g.: 1.9.3-head :001 > "\copy foo"
<ehm_may> => "\u000Fpy foo"
<ehm_may> => "\\copy foo"
<ehm_may> 1.9.3-head :002 > '\copy foo'
<ehm_may> 1.9.3-head :003 > %{\copy foo}
<ehm_may> => "\u000Fpy foo"
* Ohga points at topic
<ehm_may> sry
<Harzilein> ehm_may: those strings do not "contain escaped backslashes". they get _represented_ (String#inspect) with them
<Harzilein> ehm_may: you can use puts if you want to see them "plainly" (which might still involve charset translations though)
SolidResolve has quit [Ping timeout: 244 seconds]
davidokner has joined #ruby
<davidokner> Hi
pen has joined #ruby
<Harzilein> ehm_may: oh, you mean the fact that "a string literal Ã\abc" will get interpreted
beilabs has quit [Quit: Leaving]
<ehm_may> Harzilein: Yes!
<Harzilein> ehm_may: use 'a string literal \abc'
beilabs has joined #ruby
rakl has quit [Quit: sleeping]
<davidokner> Does anyone know how I can install the "thin" web server for Sinatra? The gem install command doesn't work and it is very complicated after I've looked into it.
<ehm_may> Harzilein: I need to have nested '
<ehm_may> Harzilein: Any thoughts on that?
anonymuse has joined #ruby
<ehm_may> Harzilein: meh, guess I could concat
<Harzilein> irb(main):006:0> 'a string literal \' with single quotes'
<Harzilein> => "a string literal ' with single quotes"
arya has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
jsilver has quit [Remote host closed the connection]
<ehm_may> Harzilein: thanks. I'm brain dead
Dreamer3 has quit [Quit: Computer has gone to sleep.]
yakko has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 240 seconds]
kmurph has quit [Quit: kmurph]
<Harzilein> i wouldn't have been able to quote the standard, or the spec, or any textbook on this, but wikipedia has it: http://en.wikibooks.org/wiki/Ruby%5FProgramming/Strings
<Harzilein> uh, i mean wikibooks
mockra has joined #ruby
<Harzilein> night
<ehm_may> take care
yacks has joined #ruby
nateberkopec has quit [Quit: Leaving...]
d2dchat has joined #ruby
sean_ has quit [Remote host closed the connection]
jamescarr has joined #ruby
Tarential has quit [Excess Flood]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Tarential has joined #ruby
mando has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
mattbl has quit [Ping timeout: 256 seconds]
kmurph has joined #ruby
mhf has quit [Remote host closed the connection]
Tarential has quit [Max SendQ exceeded]
the_mentat has joined #ruby
Tarential has joined #ruby
poikon has joined #ruby
jsilver has joined #ruby
d2dchat has quit [Quit: Leaving...]
fsck3r has joined #ruby
pdamer has joined #ruby
jrist-afk has quit [Ping timeout: 264 seconds]
mando has quit [Remote host closed the connection]
tommyvyo has joined #ruby
mhf has joined #ruby
poikon has quit [Ping timeout: 256 seconds]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
greenarrow has joined #ruby
BRMatt has joined #ruby
havenwood has joined #ruby
mockra has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
reset has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
mockra has joined #ruby
bigmac_ has joined #ruby
anonymuse has quit [Quit: Leaving.]
alvaro_o has quit [Quit: Ex-Chat]
jrist-afk has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Spooner has quit [Remote host closed the connection]
nateberkopec has quit [Client Quit]
Akuma has quit [Ping timeout: 276 seconds]
<jokke> hi, what's the keysize for the bluefish crypto in rubys openssl module?
<jokke> lol bluefish
<bigmac_> is there any way to use cuda or gpu to process my ruby script
<jokke> blowfish i mean
kmurph has quit [Quit: kmurph]
<bigmac_> i have 2 hundred gigs i need to process
<bigmac_> File.read 200 gigs
dmiller has joined #ruby
<bigmac_> searching for duplicate files
<davidokner> Anyone know how to install the slim webserver?
arya has joined #ruby
<jokke> bigmac_: i'd say ruby's the wrong language for that
mattbl has joined #ruby
<davidokner> Ruby would be too slow? Maybe C?
<jokke> yes
<bigmac_> maybe there is some kind of wrapper
<jokke> C would be my choice too
rickwinfrey has joined #ruby
<jokke> bigmac_: you could write one ;)
<bigmac_> out of my pay grade
<bigmac_> lol
<bigmac_> beyond my skill level
<jokke> bigmac_: first of all, what kind of duplicate check are you running?
<jokke> do the files have to be exactly the same, as in checksum match?
<bigmac_> i haev sever hard drives with duplicate movies that exist.. but checking names will fail... i need to see the contents of the file
<bigmac_> i guess i could do checksum or something alike
<bigmac_> i didnt think about that
<Kovensky> hmm
<jokke> okay, usually you would do this:
<Kovensky> I'm doing a loop processing stdin data (long lived process); inside the loop (among other stuff) I assign an integer to a hash with integer keys
<jokke> bigmac_: take the first byte, if it doesent match, move on.
<Kovensky> should I bother with ||= or just use =
mfridh has quit [Read error: Operation timed out]
<davidokner> How long would it take with Ruby
<bigmac_> ok, and if the first byte matches, then check the hole file
<jokke> bigmac_: no
reppard has quit [Quit: leaving]
<jokke> bigmac_: then you take, say one K, as in 1024 Bytes, and run a checksum on it. If it doesn't match, move on.
<bigmac_> are you talking about md5sum? or just all ruby?
<jokke> i'd use some native code for that
slainer68 has joined #ruby
<jokke> probably ruby has built in wrappers for checksums
<davidokner> I wouldn't want to have to write an optimization algorithm, I would hope that would already be written.
hbpoison has quit [Ping timeout: 276 seconds]
<jokke> i'm no expert
<jokke> bigmac_: and then if the partial checksum matches check the whole file.
<Ohga> hm.. inside a method in a module, what is "self" refering to?
<bigmac_> i think i can make it happen as you describe thanks for advice
<jokke> bigmac_: you might want to adjust the size of the data for the first checksum
havenwood has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<bigmac_> ok
wallerdev has joined #ruby
<Kovensky> hm, it seems that ||= is actually faster than =
chrishough has quit [Quit: chrishough]
<jokke> bigmac_: play around, make it small enough to be fast, but big enough to be relevant.
<davidokner> What is ||= ?
<Kovensky> "a ||= b" is equivalent to "a = a || b"
<Ohga> Kovensky: no it isn't
<Kovensky> given ruby's boolean semantics, it just means that 'a' is unchanged unless it's nil or false
Akuma has joined #ruby
<jokke> bigmac_: with movies, i'd even say that with 99.999999 likelihood the files match, if the partial checksum matches.
<Ohga> "a = b if !a.nil?"
benlieb has joined #ruby
<Kovensky> oh?
slainer68 has quit [Ping timeout: 248 seconds]
<jokke> bigmac_: you might wan't to consider that
<bigmac_> is there also a way i could throttle threads based on how much free resource are available
<Ohga> Kovensky: nothing is actualy assigned if a is already set
<bigmac_> i have created some wicked unstoppable over flows before lol
<jokke> bigmac_: your operation system should do that for you..
<Kovensky> Ohga: that sounds like a simple optimization though ("a = a" can and should be noop)
<Kovensky> Ohga: but does ||= actually only not assign if not nil?
<Kovensky> meh, /me tries in pry
<Ohga> Kovensky: well, that's what PickAxe 1.9 say
<Kovensky> [20] pry(main)> a = nil
<Kovensky> => nil
<Kovensky> [21] pry(main)> a ||= false
forced_request has quit [Remote host closed the connection]
<Kovensky> => false
<Kovensky> [22] pry(main)> a ||= true
<Kovensky> => true
<Kovensky> [23] pry(main)> a ||= false
<Kovensky> => true
jamescarr has quit [Quit: jamescarr]
hackerdude has joined #ruby
<wallerdev> wow
rippa has quit [Ping timeout: 240 seconds]
zenloop has quit [Quit: zenloop]
<Kovensky> anyway, I just was surprised that ||= was faster than = in a hash, even if you're reassigning a key that already existed in the hash
<Ohga> trying again.. if I use "self" in a method that is in a module, what does "self" reference?
<Kovensky> (assuming there are no secret optimizations, ||= would have to do two key lookups in worst case (and at least one lookup), while = only always does one lookup)
<wallerdev> a ||= b is a || a = b
Monie has joined #ruby
tommyvyo has joined #ruby
cparen has joined #ruby
<wallerdev> i think self in a module references wherever it was included
<rickwinfrey> Ohga: self in a method in a module is just the same as self in a method in a class. self refers to the object invoking the method.
<Kovensky> wallerdev: that's just an optimization of the `a = a || b` case
<Kovensky> it still doesn't explain why ||= is faster than = for hash assignment
<Kovensky> (unless I'm doing my benchmark wrong)
fedza has joined #ruby
<wallerdev> well = has to assign no matter what
mfridh has joined #ruby
<wallerdev> so one does assigning, the other just does lookup
<wallerdev> unless it has to assign it
dcwu has joined #ruby
tjbiddle has joined #ruby
<rickwinfrey> Ohga: for an example, here's a gist showing self in a module is the object invoking the method of that module: https://gist.github.com/rewinfrey/4728295
<Myconix> Anyone here know how to mirror radians across x and y axes?
<Kovensky> wallerdev: yeah, but both have to do the same expensive operation (key lookup) and a cheap operation (either read or write) in the best case
jamescarr has joined #ruby
zenloop has joined #ruby
<wallerdev> in the best case a ||= b doesnt have to do any writing
<Ohga> rickwinfrey: we could cut right to the case, trying to get assistance with this: http://pastebin.com/TZe8qDGi
Tarential has quit [Excess Flood]
<Ohga> rickwinfrey: a learning excercise of writing a monkey-patch helper
<wallerdev> oh nice stabby block
<wallerdev> are those popular these days
<Ohga> it is however not working
Tarential has joined #ruby
<Ohga> rickwinfrey: I get "undefined method `__nonmodified_run' for Nanoc::Filters::ERB:Class"
skcin7 has joined #ruby
himsin has quit [Remote host closed the connection]
jamescarr has quit [Client Quit]
adeponte has joined #ruby
<rickwinfrey> ohga: hm, i'm looking at it now
rippa has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
divout has joined #ruby
mcqueenorama has joined #ruby
the_mentat has joined #ruby
<rickwinfrey> ohga: is there any reason why you're extending the Modifying module rather than including it?
<Ohga> rickwinfrey: because I'm a ruby beginner, most probably..
ttt has quit [Remote host closed the connection]
<rickwinfrey> ohga: no worries :) you might find this helpful: http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/
<rickwinfrey> try including Modifying and seeing if you still get the undefined method error
hbpoison has joined #ruby
<Ohga> rickwinfrey: that gave no change..
adeponte has quit [Ping timeout: 260 seconds]
<rickwinfrey> ohga: hm, still same error?
<Ohga> yes
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
TCastro has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
jsilver has quit [Remote host closed the connection]
<Ohga> rickwinfrey: are you able to replicate the error?
jamescarr has joined #ruby
arya has quit [Ping timeout: 248 seconds]
thufir_ has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
<rickwinfrey> ohga: clarifying question - are you calling modify_method on an instance of Nanoc::Filters::ERB?
<rickwinfrey> or calling it directly from the class?
<sailias> Ohga: I am looking at your paste and don't see your call to instanciate the class and call that method
<sailias> exactly what he's saying above
<Ohga> ooooohhh.. that might be it..
ml` has joined #ruby
<rickwinfrey> ohga: that's why i asked if you were using extend for a particular reason
angusiguess has quit [Read error: Connection reset by peer]
guns has joined #ruby
arya has joined #ruby
ner0x has joined #ruby
<ml`> How to keep irb from saving command history to ~/.irb-history file?
<rickwinfrey> modify_method is expecting to be called from an instance - not a class
<rickwinfrey> you'll need to `include Modifying` and then instantiate Nanoc::Filters::ERB
<Ohga> well.. it is being instantiated.. however, that is done by framework (nanoc to be precise) not by me..
rakl has joined #ruby
<rickwinfrey> so you have a Nanoc object?
__class__ has joined #ruby
kold has joined #ruby
mephux has quit [Excess Flood]
fedza has quit []
tomzx_mac has quit [Ping timeout: 246 seconds]
adkron has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
mephux has joined #ruby
jamescarr has quit [Quit: jamescarr]
BRMatt has quit [Ping timeout: 264 seconds]
joofsh has quit [Remote host closed the connection]
adkron_ has joined #ruby
pdamer has quit [Quit: pdamer]
io_syl has joined #ruby
<Ohga> rickwinfrey: looking through the nanoc source.. it's a bit non-trivial :-O
the_mentat has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
<rickwinfrey> ohga: i think i was barking up the wrong tree. the error you get says "undefined method `__nonmodified_run' for Nanoc::Filters::ERB:Class"
<Ohga> rickwinfrey: yeah..
<rickwinfrey> which seems related to the alias_method
icole has quit [Remote host closed the connection]
sambio has quit []
tcstar has quit [Ping timeout: 244 seconds]
jonahR has quit [Quit: jonahR]
<Ohga> as far as I can tell, in a class named ItemRep the Class "klass" is found that represent the so called filter (Nanoc::Filters::ERB which inherits Nanoc::Filter). An instance is created "filter = klass.new([unrelated])", and then run is reached through a chain of method invocations on "filter".
<Ohga> so in short, yes.. an instance is involved
andredieb has quit [Ping timeout: 240 seconds]
arya has joined #ruby
poikon has joined #ruby
ffranz has quit [Quit: Leaving]
ananthakumaran has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
<rickwinfrey> ohga: i'd try wrapping the alias_method in your Modifying module in a class_eval like this: Nanoc::Filters::ERB.class_eval { alias_method nonmodified.to_sym, method_name }
<Ohga> rickwinfrey: would you be kind to provide a paste?
<rickwinfrey> sure
Umren has joined #ruby
ml` has quit [Ping timeout: 244 seconds]
zenloop has quit [Quit: zenloop]
<Ohga> rickwinfrey: I made a bare test for the code which also fails: http://pastebin.com/9N14DuNK
<RubyPanther> dir.c:705:5: error: too few arguments to function 'rb_f_notimplement' # I get this crap all the time, makes me want to scream
andredieb has joined #ruby
andredieb has quit [Changing host]
andredieb has joined #ruby
a_a_g has joined #ruby
<rickwinfrey> ohga: please try this: http://pastebin.com/VsvBxjbJ
<Ohga> rickwinfrey: ah, you meant like that
<RubyPanther> presumably nobody fixes it because when that hits rb_f_notimplement you actually have to fix your build and then it goes away. But failing to compile is not exactly what rb_f_notimplement is supposed to cause.
sabooky has quit [Read error: Operation timed out]
<Ohga> rickwinfrey: no, same error
Lubinski has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
beilabs has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
<rickwinfrey> ohga: when you get the stack trace - is the line number causing the error the alias_method line?
<bigmac_> jokke: i am done, i just used File.size... quickly trimmed out duplicates... thanks for your help
tcstar has joined #ruby
plotter has joined #ruby
radic has joined #ruby
fsck3r has quit [Quit: Leaving...]
slainer68 has quit [Ping timeout: 248 seconds]
<Ohga> rickwinfrey: well, maybe I should have delegate the point that the innermost traceback points to line 7..
<Ohga> that is, the "original = -> *args { send(nonmodified, *args) }" line
TCastro has quit [Quit: Leaving]
subbyyy has quit [Quit: none 0.3.9.2]
sabooky has joined #ruby
subbyyy has joined #ruby
angusiguess has joined #ruby
subbyyy has quit [Client Quit]
<rickwinfrey> ohga: i'm a little confused why alias_method isn't generating the error - because you're trying to assign a method to something that hasn't been defined as a method yet
radic_ has quit [Ping timeout: 276 seconds]
<Ohga> hm.. is "self" changed from the instance to the class when the Proc original from line 7 is invoked in line 16?
wargasm has joined #ruby
cdt has joined #ruby
subbyyy has joined #ruby
yacks has quit [Ping timeout: 244 seconds]
idiocrash has joined #ruby
rakl has quit [Quit: sleeping]
sabooky has quit [Ping timeout: 252 seconds]
quest88 has joined #ruby
gcoderre has joined #ruby
hackerdude has quit [Remote host closed the connection]
<rickwinfrey> ohga: when lines 14 through 16 are evaluated - self is Nanoc::Filters::ERB
zenloop has joined #ruby
<Ohga> rickwinfrey: yeah.. well that sounds good..
<rickwinfrey> that's why the error says "undefined method `__nonmodified_run' for Nanoc::Filters::ERB:Class"
<rickwinfrey> class - being the keyword there
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<rickwinfrey> this is a strange bit of code :)
<Ohga> rickwinfrey: it is :-P
beilabs has joined #ruby
pu22l3r_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
Umren has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 260 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<rickwinfrey> ohga: i'm playing around with a couple ideas...
Evixion has quit []
dougireton has joined #ruby
casheew has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
<Ohga> rickwinfrey: however, with the memoization there is no block added to the actual invocation of the method
joeycarmello has quit [Remote host closed the connection]
<Ohga> I think that's what's increasing the complexitivity
beilabs has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 244 seconds]
jamescarr has joined #ruby
idiocrash has quit [Remote host closed the connection]
mhf has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ml` has joined #ruby
shirokuro11 has joined #ruby
gcoderre has quit [Quit: gcoderre]
<davidcelis> if i have an object with a lot of (or several very large) instance variables, how do i get it to not take up a big amount of space when it's the return value of a method?
tjbiddle has quit [Quit: tjbiddle]
<davidcelis> like i've got an object taking up most of my terminal screen when returned
jrist-afk is now known as jrist-night
ping-pong has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<Ohga> rickwinfrey: I got the bare example to work!! http://pastebin.com/19GY71MY With this the lambda is in the context where "self" refer to the instance
<Ohga> so there must be an additional reason that didn't work in the context of the nanoc framework...
<Ohga> rickwinfrey: ah, there we have it... caching issues with nanoc autocompile feature
<rickwinfrey> ohga: hehe that's a good problem, nice work!
ttt has joined #ruby
<Ohga> rickwinfrey: learned quite a bit about how "self" changes meaning in different contexts
<rickwinfrey> ohga: yes :) sometimes it can be tricky - like this case
uris has quit [Quit: Leaving]
ml` has quit [Ping timeout: 252 seconds]
<rickwinfrey> ohga: and with that i'm going to turn in. glad you got it working!
<Ohga> rickwinfrey: good night
SCommette has joined #ruby
Norrin has joined #ruby
nat_home has quit [Quit: Leaving.]
cdt has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
rickwinfrey has quit [Quit: rickwinfrey]
ner0x has quit [Quit: Leaving]
arya has joined #ruby
IceDragon has quit [Quit: Big Bang Theory (BBT)]
dhruvasagar has joined #ruby
psyprus has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby
sabooky has joined #ruby
arya has quit [Ping timeout: 276 seconds]
pu22l3r_ has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
kold has quit [Remote host closed the connection]
cdt has joined #ruby
tfittsy has joined #ruby
yacks has joined #ruby
dougireton has quit [Quit: Leaving.]
meoblast001 has quit [Read error: Connection reset by peer]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
postmodern has joined #ruby
Cooler_ has quit [Ping timeout: 255 seconds]
cjs has joined #ruby
fir_ed has quit [Ping timeout: 264 seconds]
girija_ has joined #ruby
<cjs> I've got a function "def f(x) ... end" that I'd like to pass to another function g, that may call f with some argument if it wants to. What's the Ruby syntax that gets me closest to to "g(f)"? Is there anything better than having g take a block, and calling it as "g() { |x| f(x) }"?
ryanf has quit [Quit: broken pipes |||]
Cooler_ has joined #ruby
ping-pong has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
macmartine has joined #ruby
ananthakumaran has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
ttt has quit [Remote host closed the connection]
h4mz1d has joined #ruby
ddd has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
bigmac_ has quit [Read error: No route to host]
ddd has joined #ruby
arya has joined #ruby
zenloop has quit [Quit: zenloop]
c0rn has joined #ruby
kuzushi has joined #ruby
zenloop has joined #ruby
c0rn has quit [Client Quit]
zenloop has quit [Client Quit]
icole has joined #ruby
jpfuentes2 has joined #ruby
cha1tanya has quit [Excess Flood]
lurch_ has quit [Quit: lurch_]
cha1tanya has joined #ruby
ahokaomaeha has quit [Ping timeout: 255 seconds]
slainer68 has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
innohero_ has joined #ruby
pyrac has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
crazedpsyc has quit [Ping timeout: 252 seconds]
araujo has quit [Ping timeout: 248 seconds]
aaronmacy has joined #ruby
hackerdude has joined #ruby
icole has quit [Ping timeout: 248 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
crazedpsyc has joined #ruby
hackerdude has quit [Remote host closed the connection]
hbpoison has joined #ruby
girija_ has quit [Ping timeout: 248 seconds]
ryanf has joined #ruby
<Ohga> cjs: you can have "def g(f, x)\n [something..] f.call x\n end" which is invoked with "g(-> x { f(x) }, 1)" (the -> syntax being a lambda expression)
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Guest75147 has quit [Ping timeout: 256 seconds]
angusiguess has joined #ruby
cdt has quit [Ping timeout: 264 seconds]
h4mz1d has quit [Ping timeout: 276 seconds]
inao has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
quest88 has quit [Quit: quest88]
huoxito has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
hadees has quit [Ping timeout: 248 seconds]
hadees has joined #ruby
aaronmacy has quit [Quit: Leaving.]
plotter has quit [Remote host closed the connection]
browndawg has joined #ruby
kmurph has joined #ruby
bigmac has quit [Read error: No route to host]
jrajav has quit [Quit: I tend to be neutral about apples]
bricker is now known as bricker`work
bricker`LA is now known as bricker
passbe has quit [Ping timeout: 264 seconds]
ryao has quit [Ping timeout: 255 seconds]
girija_ has joined #ruby
kmurph has quit [Ping timeout: 255 seconds]
aaronmacy has joined #ruby
passbe has joined #ruby
ml` has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
ryao has joined #ruby
noyb has joined #ruby
[rust] has joined #ruby
joeycarmello has joined #ruby
kmurph has joined #ruby
dallasm has joined #ruby
Ohga has left #ruby [#ruby]
cyong has joined #ruby
shock_one has joined #ruby
mephux has quit [Excess Flood]
mephux has joined #ruby
ml` has quit [Ping timeout: 245 seconds]
mephux has quit [Excess Flood]
ryao has quit [Ping timeout: 276 seconds]
razibog has joined #ruby
joeycarmello has quit [Ping timeout: 276 seconds]
ryao has joined #ruby
codecop has joined #ruby
mephux has joined #ruby
innohero has quit [Quit: Leaving]
aaronmacy has quit [Quit: Leaving.]
girija_ has quit [Ping timeout: 248 seconds]
<cjs> That's only Ruby 1.9, right?
ml` has joined #ruby
<cjs> (Ogha)
<ml`> Does anybody know how to disable the ~/.irb-history file?
<ml`> I checked IRB::conf[:SAVE_HISTORY] and it is nil, but it still writes the history file on exit.
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<cjs> I need something that works in 1.8 as well, and anyway, "g(lambda { |x| f(x) })" is even more verbose than "g() { |x| f(x) }".
brianpWins has quit [Quit: brianpWins]
ryao has quit [Ping timeout: 276 seconds]
spaceships has quit [Remote host closed the connection]
spaceships has joined #ruby
ryao has joined #ruby
ckrailo has joined #ruby
pu22l3r has joined #ruby
fphilipe has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
miked has joined #ruby
ryao has quit [Ping timeout: 256 seconds]
cyro has joined #ruby
oscardelben has joined #ruby
carraroj has joined #ruby
ryao has joined #ruby
Jon30 has quit [Ping timeout: 260 seconds]
Fretta has joined #ruby
etcetera has joined #ruby
a_a_g has joined #ruby
girija_ has joined #ruby
PragCypher has quit [Quit: Leaving]
ryao has quit [Ping timeout: 256 seconds]
kuzushi has quit [Ping timeout: 244 seconds]
jjang_ has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
ahokaomaeha has joined #ruby
ryao has joined #ruby
derick_skibotn has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
digifiv5e has joined #ruby
jjang_ has quit [Remote host closed the connection]
digifiv5e is now known as Guest71103
backjlack has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
<Hanmac_> cjs g() {} uses proc not lambda there might be a difference ... some keywords like return react different
jjang has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Quit: tjbiddle]
ryao has quit [Ping timeout: 246 seconds]
LucidDreamZzZ has joined #ruby
ryao has joined #ruby
LucidDreamZzZz has joined #ruby
stkowski has quit [Quit: stkowski]
<ml`> \leave
ml` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
slainer68 has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
xbayrockx has joined #ruby
yacks has joined #ruby
xbayrockx is now known as wf2f
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
tagrudev has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
ryao has quit [Ping timeout: 276 seconds]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
SolidResolve has joined #ruby
<cjs> Hanmac_: Yeah, I understand the difference between proc and lambda (now :-)). Basically, what I'm really asking is, can I do this without all that annoying lamba syntax, the way I'd do it in a functional programming language. I'm thinking not.
<cjs> I think that the problem is, while functions can be first-class objects in Ruby, you have to do special work to store them in variables, and special work to call them once stored in a variable.
plotter has joined #ruby
ryao has joined #ruby
ryao has quit [Client Quit]
Agis__ has joined #ruby
Agis__ has quit [Client Quit]
slainer68 has quit [Ping timeout: 276 seconds]
Fretta has quit [Quit: Fretta]
<Hanmac_> something like that? :P foo &method(:bar)
<cjs> Oh, hm, I'm also confused by block syntax. It's ok to have "def f(x, y = nil, &block)" and not supply it a block?
<cjs> Ah, &method(:bar) is not bad at all!
<cjs> Only triples the number of characters I have to type, or even less if I use long function names. :-)
spaceships has quit [Ping timeout: 260 seconds]
Shrink has quit [Read error: Connection reset by peer]
rakm has quit [Ping timeout: 255 seconds]
Guest71103 has quit [Ping timeout: 248 seconds]
Shrink has joined #ruby
sinusss has joined #ruby
rakm has joined #ruby
<wf2f> anyone able to give a brief explanation as to what an array of audio samples (e.g. in a .WAV or .PCM file) after having FFT applied, represents?
hbpoison has quit [Ping timeout: 248 seconds]
etcetera has quit []
<cjs> The average amplitude of each frequency band in the FFT.
<cjs> (Over the time the FFT was run.)
havenwood has joined #ruby
angusiguess has joined #ruby
<wf2f> oic
<wf2f> so
<wf2f> the length of the array stays the same
moos3 has joined #ruby
Monie has quit [Quit: Quit]
<cjs> Right, though that's an artifact of the FFT process, I believe.
<wf2f> because I took N samples and it outputs N frequencies
<wf2f> interesting
<wf2f> isnt that a lossy representation? ><
<wf2f> how can you go back from that to the samples again
<cjs> Well, if you think about it, and the relation to the Nyquist limit, it makes sense: you can only represent a certain number of frequencies in a sample of given length.
<cjs> The samples are also a lossy representation, in a sense; every sampled signal effectively has a low pass filter on it of the Nyquist limit.
jjang has joined #ruby
digifiv5e_ has joined #ruby
<wf2f> so how do i know what the frequencies in the array are
<wf2f> corresponding to entries in the array are*
<cjs> We filter the ouput to make it stop doing (at a frequency 4x the sampling frequency) [1,1,1,1,2,2,2,2,1,1,1,1], which is a square wave, and turn it into [1,1.25,1.5,1.75,2,....]
angusiguess has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 260 seconds]
<wf2f> eh?
<wf2f> i couldnt understand that
<cjs> The frequences are spaced from 0 to the Nyquist limit.
<cjs> Ok, we'd better move to another room or PM for this, since it's a bit of explanation....
<cjs> (We'll do it via PM unless anybody else wants to join in. :-))
wallerdev has quit [Quit: wallerdev]
fumbe_ has joined #ruby
<Hanmac_> cjs like that?
<Hanmac_> >> p [1,1,1,1,2,2,2,2,1,1,1,1].chunk(&:to_i).each_cons(2).flat_map{|(x,n),(y,*)| x.step(y,(y-x)/n.size.to_f).to_a}
<eval-in> Hanmac_: Output: "[1.0, 1.25, 1.5, 1.75, 2.0, 2.0, 1.75, 1.5, 1.25, 1.0]\n" (http://eval.in/9027)
cdt has joined #ruby
oscardelben has quit [Quit: oscardelben]
fumbe has quit [Ping timeout: 248 seconds]
mockra has quit [Remote host closed the connection]
subbyyy has quit [Quit: none 0.3.9.2]
bradleyprice has quit [Remote host closed the connection]
lurch_ has joined #ruby
LouisRoR has joined #ruby
<Hanmac_> cjs is this what you want?
yacks has quit [Ping timeout: 245 seconds]
<cyro> is there a difference between a method(:foo) and a lambda that's assigned to a variable named foo?
JohnBat26 has joined #ruby
<Hanmac_> cyro yeah, method(:foo) calls the defined method named foo
pyrac has quit [Quit: pyrac]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<cyro> Hanmac_: when I did it in irb i got a Method object
<cyro> so method(:foo).call was the same as foo()
<Hanmac_> cyro yeah
<Hanmac_> it can be used for callback stuff
pyrac has joined #ruby
backjlack_ has joined #ruby
samlt has joined #ruby
<cyro> Hanmac_: so the Method object basically behaves like a lambda? Or is there something like the difference between a proc and lambda?
pyrac has quit [Client Quit]
<cjs> cyro: You just made my brain explode. :-)
<cyro> cjs: sorry
moos3 has quit [Quit: Computer has gone to sleep.]
<cyro> cjs: I saw your earlier conversation and then started experimenting
<Hanmac_> cyro there is a difference in the reacton with key words like return ... return in a lambda only closes it, return in a proc closes the method where it was called
<cjs> Ruby's a pretty good language, but it's got some pretty hairy corners in it.
<cyro> cjs: for sure
<cyro> Hanmac_: cool
<cjs> Hanmac_: I bet there are also going to be issues regarding closures.
pnkbst has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
<Hanmac_> cjs you want hairy? in ruby i can define classes inside objects ... beat that python :P
<cjs> :-)
backjlack has quit [Ping timeout: 248 seconds]
gabrielrotbart has quit [Remote host closed the connection]
icole has joined #ruby
Tarential has quit [Excess Flood]
Monie has joined #ruby
yacks has joined #ruby
Tarential has joined #ruby
shock_one has quit [Remote host closed the connection]
Hanmac_ has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
charliesome has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
beliveyourdream has joined #ruby
robustus has joined #ruby
kmurph has quit [Quit: kmurph]
cdt has quit [Quit: Ex-Chat]
cdt has joined #ruby
dhruvasagar has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
Choobie has joined #ruby
dr_bob has joined #ruby
kmurph has joined #ruby
Choobie has quit [Quit: End]
stormetrooper has joined #ruby
zommi has joined #ruby
pyx has quit [Quit: WeeChat 0.4.0]
chendo_ has quit [Ping timeout: 240 seconds]
<shevy> * Cannot join #php (Channel is invite only).
<shevy> ah
<shevy> ##php
<shevy> I hate freenode's policy here... galaxynet was so much easier
arya has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby
clocKwize has joined #ruby
jjang has quit [Remote host closed the connection]
kmurph has quit [Quit: kmurph]
kmurph has joined #ruby
arya has joined #ruby
derick_skibotn has quit [Ping timeout: 246 seconds]
noyb has quit [Ping timeout: 245 seconds]
greenarrow has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
taoru has quit [Read error: No route to host]
taoru_ has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
relixx has joined #ruby
digifiv5e_ has quit [Ping timeout: 248 seconds]
taoru has joined #ruby
Hanmac has joined #ruby
Hanmac has quit [Client Quit]
taoru_ has quit [Read error: No route to host]
atno has quit [Ping timeout: 260 seconds]
LouisRoR has quit []
Hanmac has joined #ruby
postmodern has quit [Quit: Leaving]
mahmoudimus has joined #ruby
Elhu has joined #ruby
sduckett has quit [Ping timeout: 248 seconds]
toekutr has quit [Remote host closed the connection]
AntiTyping has quit [Quit: AntiTyping]
<shevy> so... finally setup php
LouisRoR has joined #ruby
shirokuro11 has quit [Remote host closed the connection]
digifiv5e has joined #ruby
digifiv5e is now known as Guest75108
<shevy> did you guys know that php has a function called str_repeat() ?
BizarreCake has joined #ruby
hadees has quit [Read error: Connection reset by peer]
hadees has joined #ruby
<Hanmac> hm yeah ... ruby has * for that
sduckett has joined #ruby
<shevy> yup, much much much shorter in ruby
<shevy> but there is another fun way to join a string in php
hyperboreean has quit [Ping timeout: 255 seconds]
<shevy> implode(array_fill(0, 80, "repeat this string here"));
mafolz has joined #ruby
<shevy> that boggles the mind, doesn't it Hanmac? :-)
hadees has quit [Client Quit]
brianpWins has joined #ruby
Morkel has joined #ruby
<shevy> though I have to say...
fphilipe has joined #ruby
<shevy> this is actually more fun than plain ruby .cgi
hbpoison has joined #ruby
<Hanmac> (["repeat this string here"] * 80).join ?
main has joined #ruby
danneu has quit [Ping timeout: 256 seconds]
<shevy> dunno really
<shevy> I suppose php also follows a "there is more than one way to do it"
<shevy> it sends shivers down my spine
Skelz0r has quit [Ping timeout: 245 seconds]
<Hanmac> do you know what i hate? when you must fill an register formular to look at the PRODUCTINFORMATION !!! ...
matchaw has joined #ruby
<cjs> eighty = concat . replicate 80; eighty "some string"
<shevy> hehehe
<shevy> Hanmac what company is that?
<shevy> what I hate are "thank you for your visit. would you have time to fill up this short survey?"
angusiguess has joined #ruby
<shevy> and then a survey popup window
<cjs> Hanmac: Yeah, I often avoid companies like that. I usually drop them a note to tell them why I'm not even considering them, if it's not too tough. But if you really need to get past a registeration wall, you can use a mailinator.com address.
aloshkarev has joined #ruby
filipe has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
cdt has quit [Ping timeout: 264 seconds]
hbpoison has quit [Ping timeout: 255 seconds]
Skelz0r has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
chussenot has joined #ruby
<shevy> damn
browndawg has joined #ruby
<shevy> how do I get the ascii value of "\n" again?
jjang has joined #ruby
<shevy> writing in php confuses me...
Elhu has quit [Quit: Computer has gone to sleep.]
<ddd> Huffington Post used to have this 'first visit' popup that screamed "SUBSCRIBE NOW!" I bitched about it on twitter to/about them and amazingly its since been removed.
pyrac has joined #ruby
<ddd> while it might not have been because of my bitch that it was removed, in my world, I choose to believe thats why :)
nomenkun has joined #ruby
cyong has quit [Quit: Leaving.]
fphilipe has quit [Remote host closed the connection]
<shevy> ah yes... .chr and .ord
<shevy> ddd cool
locriani_ has quit [Read error: Connection reset by peer]
<Hanmac> shevy did you see this? http://www.ruby-forum.com/topic/4410284
<shevy> the power of twitter bitching
<ddd> hehehe
<shevy> Hanmac what is that
<shevy> rails
<shevy> :-(
<shevy> the other frameworks really need to compete with rails nowadays
eldariof has joined #ruby
locriani has joined #ruby
yacks has joined #ruby
maasha has joined #ruby
<maasha> I thought I was pretty good with regex, but I cant find the reason why this fails (it should match IMHO): "_b_eeeee^ggggdeghhffhhiic^eghifgihfffghfheggg^aceecR`daaccccaacabbcbbbbccccbccbbcccccccbbW".match(/^[!-J]*$/)
<maasha> If I remove the line end anchor then it matches.
JumpMast3r has quit [Quit: JumpMast3r]
* maasha plays in rubular
<Hanmac> the page is interesting but you need to register to look what it does :/
yewton has quit [Excess Flood]
yewton has joined #ruby
decoponio has joined #ruby
aloshkarev has quit [Quit: aloshkarev]
aaronmacy has joined #ruby
benjamin__ has joined #ruby
<benjamin__> anyone familiar with watir?
<benjamin__> i'm trying to write a script that will process my shopping cart and enroll me in classes when my appointment comes due at 6am tomorrow morning
<benjamin__> i'm having trouble entering the username and password
<maasha> I can also use the $ instead of ^ to make it match, but not both - which I want.
<benjamin__> i've got this so far
rdark has joined #ruby
<benjamin__> how do i label the username field and password field?
browndawg has quit [Ping timeout: 248 seconds]
cha1tanya has quit [Ping timeout: 245 seconds]
<benjamin__> after that it's all clicks
mcqueenorama has quit [Remote host closed the connection]
mockra has joined #ruby
<Hanmac> shevy what i make me angy about tzhat page is that it need to say "Ruby ""Without"" Rails" ...
erlingur has joined #ruby
gosshedd has joined #ruby
zigomir has joined #ruby
yshh has quit [Read error: No route to host]
<shevy> hehe
guns has quit [Quit: guns]
mockra has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
main has quit [Ping timeout: 260 seconds]
tagrudev has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
krz has joined #ruby
tagrudev has joined #ruby
Hecatic has joined #ruby
Hecatic has quit [Client Quit]
odyssey4me has joined #ruby
pencilcheck has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Hanmac has joined #ruby
browndawg has joined #ruby
jprovazn has joined #ruby
johndouthat has quit [Quit: johndouthat]
odyssey4me has left #ruby [#ruby]
jjang has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 246 seconds]
pen has quit [Ping timeout: 248 seconds]
tfittsy has quit [Ping timeout: 256 seconds]
acrocity_ has joined #ruby
pyrac has quit [Quit: pyrac]
ephemerian has joined #ruby
acrocity has quit [Ping timeout: 255 seconds]
acrocity_ is now known as acrocity
chussenot has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh_ has joined #ruby
skogis has quit [Quit: leaving]
pyrac has joined #ruby
krz has quit [Read error: Connection reset by peer]
a_a_g1 has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
dross has quit [Ping timeout: 256 seconds]
shock_one has joined #ruby
emergion has joined #ruby
cparen has quit [Quit: cparen]
decoponio has quit [Quit: going to reboot]
dross has joined #ruby
aaronmacy has quit [Quit: Leaving.]
krz has joined #ruby
lkba has joined #ruby
francisfish has joined #ruby
keymone has joined #ruby
wr has joined #ruby
wr has left #ruby [#ruby]
<shevy> hmm about class methods
<shevy> how would you capture and store state with them?
<cjs> I don't think you really can compete with Rails, because Rails isn't the most popular because it's technically better. It's the most popular in spite of that, actually.
maasha has quit [Quit: Page closed]
<shevy> hmm
<shevy> so I have this http://pastie.org/pastes/6085716/text and it does not work. my question is, I want to use this, basically:
<shevy> puts Form.mode # give me back "post"
<shevy> Form.toggle
<shevy> puts Form.mode # give me back "get"
<shevy> oops
<shevy> see one mistake already
<cjs> shevy: it seems you might be confusing the Class object bound to "Form" and the objects it creates. Did you really want '@' instead of '@@'?
maxmanders has joined #ruby
<cjs> Or wait, does the self thing already deal with that.....
<shevy> not sure about the @
<cjs> Agh! Ruby makes my head explode again! :-)
<shevy> but I am quite sure that I do not want to use @@ :(
hmarr has joined #ruby
<shevy> ok here is the version without the prior error http://pastie.org/pastes/6085726/text
<shevy> it does not work because the @ivar there, @mode, is nil
<tobiasvl> you rarely want to use @@ ;)
BizarreCake has quit [Read error: Connection reset by peer]
stonevil has quit [Quit: stonevil]
<tobiasvl> shevy: `puts 'THE MODE IS: '+@mode.to_s` ? @mode is already a string, isn't it
<cjs> shevy: Ah, the initialize is a method in the objects created by Form, not in the Form (class) object.
cdt has joined #ruby
<tobiasvl> puts 'THE MODE IS: #{@mode}'
orospakr has joined #ruby
x82_nicole has joined #ruby
<shevy> tobiasvl it would be nil in this case, but this is just debugging anyway, I wonder if it is possible to use @ivars like that at all
<cjs> Instead of MODE = 'post' you want @mode = 'post'
<tobiasvl> shevy: yeah the constructor is never called, because you never create a From object
<shevy> cjs but then I would require an instance ...
<shevy> tobiasvl hmm
<orospakr> Hey, is there an equivalent to Data_Wrap_Struct() that will return an existing ruby object wrapping that same struct pointer location if one already exists?
<cjs> You have an instance already: an instance of Class bound to the name "Form".
decoponio has joined #ruby
<cjs> And your @mode is an instance variable in that object.
<orospakr> or do I have to just do my own instance tracking?
<tobiasvl> shevy: initialize is the Form object constructor
<orospakr> (which would actually be a bit difficult from a reentrancy perspective)
<tobiasvl> invoked when you call Form.new
<cjs> (You do not have any instances of Form objects, though, nor can I see what they would be used for.)
<shevy> cjs I can tell you what I plan to do
<cjs> shevy: Sure, that could be a good start. :-)
<shevy> I want to use this in a method, and Form.mode would become the default argument for one parameter
<shevy> so Form.mode would either return 'post' or 'get' (two states are possible), for this argument
<cjs> So you want to create Form objects at some point?
<tobiasvl> why is toggle and mode class methods anyway?
<shevy> yeah tobiasvl exactly
<shevy> because it is nicer to do Form.mode
anderse has joined #ruby
<shevy> example
<shevy> def foo(i, a = Form.mode)
<cjs> Is Form.mode supposed to change the default mode of new Form objects constructed by Form?
<shevy> cjs, no, Form.mode should only give out one of those two strings
Hypn has joined #ruby
jimeh has joined #ruby
<shevy> I plan to use another method to toggle this behaviour, outside of that method
<shevy> here is how I can abuse constants to do what I want:
<cjs> Ok, so why would you store that value in an object of class Class? Maybe you want something like, 'Form = Object.new; def Form.mode; ... ; end; ...; end;'
matchaw has quit [Ping timeout: 248 seconds]
<shevy> hmm
<shevy> cjs and how could I toggle it?
<cjs> Put the toggle method on it. Let me cons up an example here.
main has joined #ruby
binw has joined #ruby
hbpoison has joined #ruby
angusiguess has joined #ruby
<shevy> cool
emergion has quit [Quit: Computer has gone to sleep.]
<cjs> What's the trick for executing a code block in a context where self is a given object?
bigkevmcd has quit [Quit: Ex-Chat]
atmosx has joined #ruby
<shevy> hehe
rdark has quit [Ping timeout: 244 seconds]
francisfish has quit [Remote host closed the connection]
matchaw_ has joined #ruby
<cjs> Oh, I can just use instance_variable_set. Much nicer.
bigkevmcd has joined #ruby
patterson has joined #ruby
<cjs> So that's kind of constructing a custom class without a Class object that can construct more of them.
<shevy> wow
<shevy> that works
<shevy> now let me try to understand what it does...
rdark has joined #ruby
<cjs> There's probably even more clever ways to do that that are not as clear. :-)
[rust] has quit [Quit: Leaving]
bigkevmcd has quit [Client Quit]
<shevy> aha ok so we set a default @ivar after it is created, via .instance_variable_set
<cjs> Anyway, yes, I'm happy to walk you through that. (And accept corrections and hints from anybody else here.)
<shevy> then we add two class methods to it
angusiguess has quit [Ping timeout: 240 seconds]
dallasm has quit [Remote host closed the connection]
<shevy> with the .mode one returning the content of @mode ivar, and the .toggle one changing that data
<shevy> so far ok?
francisfish has joined #ruby
<cjs> I'm not sure I'd use the term "class methods." We add two methods to that object that exist only in that object.
gestahlt has joined #ruby
<cjs> But otherwise, yeah.
<shevy> (I also ask my brain at the same time, in case you are wondering why I am so verbose cjs ;-) )
<gestahlt> Hiho
<shevy> ok
hbpoison has quit [Ping timeout: 276 seconds]
<shevy> I don't think I have ever used code like this before myself
<cjs> shevy: No worries, this is the correct way to work though things, IMHO.
<Hanmac> cjs they are more singleton methods ...
<atmosx> shevy: Can I bother again with a biology question? :-P
<cjs> Right, that's the term! "Singleton methods."
<shevy> atmosx yeah can you give me ONE minute? I am learning something new right now hahaha
<atmosx> sure :-0
<shevy> it only happens once a day for me, so I have to be attentive ;)
<atmosx> msg me when you're ready
<shevy> k
<atmosx> sure :-)
<shevy> ohhh
<shevy> I think I am finished
<shevy> the rest is just giving us the result
<shevy> whoa :)
<atmosx> Starting with 15N15N (heavy) DNA and after THREE generations in the 14N medium, E.coli cells will produce WHAT bands in density-gradient centrifugation?
<shevy> that seems damn simple ...
<cjs> shevy: The key to wrapping your brain around stuff like this is to remember that everything's an object. So when you say, "class Foo; ...; end" you are actually also instantiating a new object, of class Class, that will in turn construct more objects for you when you call its new method.
benjamin__ has quit [Ping timeout: 264 seconds]
<shevy> cjs cooool
<shevy> I don't know why, but in my head I thought I must use a "class Form" setup
<shevy> this code here is not only 50% shorter but also works elegantly
<shevy> I am very happy! thanks cjs
Elhu has joined #ruby
cha1tanya has joined #ruby
<shevy> atmosx this is the meselson-stahl experiment. at http://en.wikipedia.org/wiki/Meselson%E2%80%93Stahl_experiment look at the second picture, it shows you the isotope bands you get (confirming semiconservative mode of replication)
emergion has joined #ruby
<atmosx> shevy: you're a genious thanks!
<shevy> it even has red colour for N15 and yellow colour for N14 :P
<shevy> you can see the original N15 gets more and more diluted for every new generation
<cjs> Actually, this is more elegant: http://pastie.org/6085786
<shevy> whoa
poikon has quit [Ping timeout: 248 seconds]
<shevy> ok so with this you avoid .instance_variable_set ?
hoelzro|away is now known as hoelzro
bigkevmcd has joined #ruby
<cjs> Right. Store whether or not it's a put form as a boolean. And @put is initialized to nil when the object is created, which is interpreted as false in a boolean context.
<shevy> awesome
<cjs> Grovelling in the object from the outside using instance_variable_set was quite ugly. :-)
<shevy> yeah
anderse has quit [Quit: anderse]
hyperboreean has joined #ruby
rdark has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
rdark has joined #ruby
noxoc has joined #ruby
Xeago has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<Hanmac> atmosx th funny thing is that bacteria can STEAL genes from totally different species :P
<shevy> Hanmac we need a new programming language doing that!
arya has quit [Ping timeout: 248 seconds]
<Xeago> oh god, we are on this topic again xD
<shevy> Xeago no, we had ruby before... Form = Object.new see! almost totally anonymous objects :D
<shevy> wonder if you can subclass via Object.new too hmmmm
chussenot has quit [Quit: chussenot]
<Hanmac> atmosx: its like riding in a tram, and when you go outside, you have the muscels from guy1, the blond hair from women1 and the teeth from Dog1 :P
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<shevy> what the ...
<Hanmac> shevy thats how backteria can work :P
<atmosx> Hanmac: how do you know? :-P
<shevy> can someone explain to me why this works:
<Hanmac> i readed it in a book
<shevy> puts String.new('hi') {wejklgwe}
<shevy> I dont get how you can put anything inside a block???
<shevy> can you even put binary data into a block?
<shevy> like embed an image or something?
<Hanmac> shevy because both String.new and puts does igonre the block
<shevy> ohhhhhh
acrocity_ has joined #ruby
<Hanmac> so it thinks that this is a method name
<shevy> it does not seem to evaluate it at all
<shevy> oh
acrocity has quit [Ping timeout: 248 seconds]
acrocity_ is now known as acrocity
arya has joined #ruby
<shevy> I see
greenysan has joined #ruby
<shevy> seems via .new things are different
ph-x has joined #ruby
<shevy> in a normal method, like foo(), the {} suddenly gets checked
<cjs> Nope: def f(x) x+1; end; f(3) { abc }
<atmosx> Nice ruby blog engine btw https://github.com/aprescott/serif
<shevy> really interesting
<shevy> I always thought that a block must be valid ruby code
<cjs> Just a lack of type-checking.
<tobiasvl> shevy: if foo has `yield` anywhere then it will get executed
<cjs> "wejklgwe" is valid ruby code.
<shevy> hehe
<shevy> oh good point
cba has joined #ruby
<shevy> ruby would only know if it actually yields it
<tobiasvl> yeah
<cjs> Actually, it knows at parse time. Try: f(3) { a)b }
<atmosx> bbl
atmosx has quit [Quit: And so the story goes…]
<cjs> Well, kinda depends on what you mean by "valid".
<tobiasvl> cjs: yeah, the syntax, sure
x82_nicole has quit [Quit: Textual IRC Client: www.textualapp.com]
<cjs> Is this valid? def add_one(x) x+2; end
<tobiasvl> of course it needs to parse the block, it has to find the closing curly brace ;)
taoru has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
<Hanmac> cjs you miss a ;
fphilipe has joined #ruby
<Hanmac> >> def add_one(x); x+2; end; p add_one(4)
<eval-in> Hanmac: Output: "6\n" (http://eval.in/9098)
girija_ has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 276 seconds]
<tobiasvl> Hanmac: nope
<tobiasvl> >> def add_one(x) x+2; end; p add_one(4)
<eval-in> tobiasvl: Output: "6\n" (http://eval.in/9099)
<shevy> but just so I get this straight...
<tobiasvl> Hanmac: anyway, cjs's point was that "validity" can mean syntactical, semantical or philosophical validity ;)
<shevy> in theory, I could embed the binary data of a .png file in a block, and then later run yield + eval() on it, passing it to some method that may cteate that image file?
buibex has joined #ruby
<Hanmac> >> def add_one(x) x+2 end
<eval-in> Hanmac: Output: "" (http://eval.in/9100)
Slydder has joined #ruby
<Slydder> hey all
<shevy> I learned two things today, my brain needs beer :(
<shevy> hey Slydder
<Slydder> I am currently working on building a debian package for a ruby on rails application and am getting gem errors regarding missing specification files after installing the package. if I build from source these errors do not come up. any ideas?
<cjs> Hanmac: where did I miss a semicolon? You don't need one after the parens when declaring a function's arguments.
<Hanmac> shevy you dont need eval for the binary data of the png ...
<cjs> Oh, it could be you do in 1.9.
<Hanmac> cjs yeah i see, as you see my code 10:25 you dont need one before the end eigher
<Hanmac> but i not would write that in real code
<cjs> Hanmac: I need one before the end in Ruby 1.8.
b1rkh0ff has quit [Read error: Operation timed out]
<Hanmac> 1.8 is allready dead for me
<cjs> Oh, I don't! Cool!
Vainoharhainen has joined #ruby
<cjs> So many years of long and faithful service, and you dump it like that! :-)
<shevy> hehe
marr has joined #ruby
jamescarr has quit [Quit: jamescarr]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Jeaye has quit [Quit: WeeChat 0.4.0]
sepp2k has quit [Ping timeout: 248 seconds]
arya has joined #ruby
elaptics`away is now known as elaptics
<shevy> ok perhaps someone can explain this to me
<shevy> I adapted your code a bit cjs
atmosx has joined #ruby
<shevy> I wanted to try and find out if I can use Object.new with a superclass too
<shevy> now, with Object.new it does not seem to work
brianpWins has quit [Quit: brianpWins]
<shevy> but with Class.new(NameOfSuperClassHere) it seems to work
<shevy> which confuses me a bit...
objectivemo has joined #ruby
<Xeago> does that return a subclass isntance or the subclass?
<shevy> well I suppose my question is basically ... what is the functional difference between Object.new and Class.new here? to me it seems as if they are the same, save that Class.new accepts an argument and Object.new does not
<shevy> Xeago hmm lemme check
nari has quit [Ping timeout: 276 seconds]
<Xeago> I think Class.new is used to dynamically create new classes
<shevy> ok but Object.new can be used to dynamically create new objects
<Xeago> and just as classes are objects, those can be instantiated aswell
<shevy> and Class.new is an object too, or?
<Xeago> uhu
<Hanmac> shevy:
<Hanmac> >> p Class.new(TrueClass)
<Xeago> just a more specific kind of object than object.new creates
<eval-in> Hanmac: Output: "#<Class:0x9be3378>\n" (http://eval.in/9101)
<shevy> my mind is very much boggled right now
girija_ has joined #ruby
<shevy> there are times when I hate you Hanmac :-)
<shevy> how is Class related to Object ?
<shevy> the upcased variants
<shevy> ohhh
<shevy> Class has Object as ancestor
<Hanmac> shevy dont worry, the new class is crippeld and you cant use it :P
<shevy> so unless I am mistaken, it seems that Class is just a very specialized instance of Object
<cjs> shevy: Part of the point is we aren't using classes here, at least not in the sense of "making an object to make other objects."
<shevy> allowing more options than Object alone would
sepp2k has joined #ruby
<shevy> cjs ok but... it seems as if I can replace all "Object." of your code with "Class." and everything works exactly the same way
<cjs> Class.new creates a new factory for creating more objects. Object.new just creates an object (using the factory object that "Object" refers to).
<shevy> hmm
<cjs> Sure, you can use any class at all.
<shevy> (need more beer to digest that...)
hbpoison has joined #ruby
<cjs> You could do it on FixNum if you liked. :-)
<shevy> let me test that...
<shevy> hmmmmmmmmmmm
nfk has joined #ruby
<cjs> Basically, an object is a collection of data and methods, right? So we take the "minimal" collection of methods, an instance of Object, and add our methods of interest to that instance we created.
Alexanderchr has joined #ruby
Alexanderchr is now known as alexander-chr
<shevy> now this is confusing me even more
rezzack has quit [Quit: Leaving.]
jgrevich has quit [Remote host closed the connection]
<shevy> x = 5; def x.test; puts 'test'; end # TypeError: can't define singleton method "test" for Fixnum
<shevy> but!
<shevy> oh right
<cjs> Ok, try this: o = Object.new; c = Class.new; p(c.methods - o.methods)
<shevy> x = Class.new(Fixnum) ... it does not seem as if I can create a real fixnum that way?
<cjs> Oh, right, Fixnum's a bit special. Try BigNum. :-)
miked has quit [Quit: miked]
<shevy> NoMethodError: undefined method `new' for Fixnum:Class hehe
<shevy> ok
<cjs> IIRC, Fixnums in the Ruby interpreter are actually stored directly as C ints or something like that.
<Xeago> cjs: the lower 2 bits are 0 tho
<Xeago> iirc, or are some other value
<hoelzro> I thought it was the lower 1?
<alexander-chr> Hey, sorry for basic question but can't google it: .sort_by(&:version). What does the &: sign do?
<hoelzro> alexander-chr: it calls to_proc on the recipient
<Xeago> alexander-chr: google for Symbol#to_proc
<shevy> what was the name of this "tabula rasa" object... blank object.. CoreObject? hmm
<Xeago> it turns the symbol in to a proc object
<hoelzro> and associates that proc with the method call as the block
<Xeago> (by calling #to_proc on it)
<alexander-chr> hoelzro, xeago: thanks a lot
<cjs> I would have used the lower two bits 0 to indicate an object pointer myself, since it's aligned and you wouldn't need masking to deference it, but yeah, it's all just implementation details.
<hoelzro> cjs: it might be that way
<Xeago> cjs: it has to do with aligning yes, there is some talk about it on how to debug ruby
<hoelzro> I know that at least one bit is used to indicate object vs integer
<hoelzro> whether it's set or not for which I don't know
<hoelzro> but it's a neat trick
chussenot has joined #ruby
a_a_g has joined #ruby
ehm_may has quit [Ping timeout: 264 seconds]
clocKwize has quit [Read error: Connection reset by peer]
clocKwize has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
Blue_Ice has quit [Ping timeout: 264 seconds]
stonevil has joined #ruby
inao has quit [Quit: Linkinus - http://linkinus.com]
a_a_g1 has joined #ruby
inao has joined #ruby
a_a_g has quit [Ping timeout: 264 seconds]
Blue_Ice has joined #ruby
a_a_g1 is now known as a_a_g
akemrir has joined #ruby
ph-x has left #ruby ["Bye"]
girija_ has quit [Ping timeout: 255 seconds]
kmurph has quit [Quit: kmurph]
ccarterc has joined #ruby
angusiguess has joined #ruby
cyro has left #ruby [#ruby]
girija_ has joined #ruby
pu22l3r has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
baphled has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<cjs> hoelzro: It's quite a common trick, actually; interpreters have been using it for years.
<hoelzro> cjs: it doesn't make it any less neat
<cjs> There's a reason the Haskell standard says that the minimum size of Int is 2^29. :-)
<cjs> (+/- 2^29).
asfdafasdfasf has joined #ruby
<asfdafasdfasf> im using require to load a library in my seeds.rb and then rake db:seed but it keeps saying that it cant find the library
<asfdafasdfasf> does anyone know what im doing wrong?
poikon has joined #ruby
steventux has joined #ruby
girija_ has quit [Ping timeout: 248 seconds]
<Hanmac> you use rake? :P
<asfdafasdfasf> yea
<asfdafasdfasf> not good?
Al__ has joined #ruby
tommyvyo has joined #ruby
<ninegrid> speaking of haskell, i came across these great screen casts on youtube http://www.youtube.com/watch?v=045422s6xik and I want to know if anyone knows of something similar for ruby, some screen casts where the author divulges his train of thought and writes idiomatic ruby (not something like codeschool or railscasts)
aaronmcadam has joined #ruby
baphled has quit [Ping timeout: 255 seconds]
girija_ has joined #ruby
buscon has joined #ruby
poikon has quit [Ping timeout: 248 seconds]
anderse has joined #ruby
swex has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
alexander-chr has quit [Ping timeout: 245 seconds]
mrhobbles has joined #ruby
timmow has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
mrhobbles has quit [Quit: Leaving]
baphled has joined #ruby
asfdafasdfasf has quit [Quit: Page closed]
girija_ has quit [Read error: Operation timed out]
kristofers has joined #ruby
pyrac has quit [Quit: pyrac]
girija_ has joined #ruby
anderse has quit [Ping timeout: 245 seconds]
anderse has joined #ruby
Goles has joined #ruby
arkiver has joined #ruby
pkircher has joined #ruby
atmosx has quit [Quit: And so the story goes…]
_br_ has quit [Excess Flood]
theRoUS has joined #ruby
<Slydder> hey all. I have a line " r = version_requirements" which throws an error saying it should be changed to requirement which i did an now get the following: ./../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:120:in `requirement': stack level too deep (SystemStackError)
<Slydder> any idea?
<Hanmac> shevy: look at this goup :
<Hanmac> >> p ObjectSpace.each_object(Class).select {|c| !c.respond_to?(:new)}
<eval-in> Hanmac: Output: "[Complex, Rational, RubyVM::Env, RubyVM, Binding, UnboundMethod, Method, Process::Status, MatchData, Bignum, Float, Fixnum, Integer, Symbol, Encoding, FalseClass, TrueClass, NilClass]\n" (http://eval.in/9107)
rh1n0 has joined #ruby
_br_ has joined #ruby
spider-mario has joined #ruby
_br_ has quit [Excess Flood]
anderse has quit [Ping timeout: 248 seconds]
baphled has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
yacks has joined #ruby
_br_ has joined #ruby
<openstandards> ninegrid: http://net.tutsplus.com/tutorials/ruby/the-intro-to-rails-screencast-i-wish-i-had/?search_index=2 thats half decent deals with rails at a beginner level thou
ogamita has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 276 seconds]
Criztian has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
Muz has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
lele has quit [Ping timeout: 246 seconds]
Nom- has joined #ruby
Goles_ has joined #ruby
arya has quit [Ping timeout: 255 seconds]
Atlantic777 has joined #ruby
<shevy> Hanmac waaah
<shevy> hey, I think I want to use a method for all my objects for internal documentation
Goles has quit [Ping timeout: 256 seconds]
<shevy> something like "this class grows carrots"
<shevy> what name should I give such a method?
ccarterc has quit [Changing host]
ccarterc has joined #ruby
cjs has quit [Quit: Leaving]
<Hanmac> Fertilizer?
renanoronfle has joined #ruby
lele has joined #ruby
<hoelzro> shevy: .help?
<hoelzro> you could even override .method to return method objects with .help defined =)
arya has joined #ruby
ccarterc has quit []
<Hanmac> hoelzro dont get Hanmac stupid ideas :P
<hoelzro> Hanmac: have you tried this before?
<Hanmac> not yet but i have more ugly code
idkazuma has joined #ruby
a_a_g has quit [Quit: Leaving.]
<Hanmac> hoelzro look what this https://gist.github.com/Hanmac/4619845 can do
Muz has joined #ruby
Muz_ has joined #ruby
Muz_ has quit [Client Quit]
psyprus has quit [Ping timeout: 248 seconds]
arya has quit []
psyprus has joined #ruby
elico has joined #ruby
havenwood has joined #ruby
angusiguess has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
pcarrier has quit []
Al___ has joined #ruby
buibex has quit [Remote host closed the connection]
anonymuse has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
hbpoison has quit [Ping timeout: 245 seconds]
Al____ has joined #ruby
<Hanmac> hoelzro did you looked?
<hoelzro> Hanmac: I did, but I didn't really understand it, tbh
gyre007 has joined #ruby
Al__ has quit [Ping timeout: 248 seconds]
dcwu has quit [Quit: Leaving.]
Al___ has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 248 seconds]
<Hanmac> h=HiddenDelegator.new(2);p h#=> "2";h.class #=> Fixnum;h.to_f!; p h #=> "2.0"; h.class #=> Float; h.to_s!; p h #=>"2.0"; p h.class #=> String
_hemanth_ is now known as hemanth
<Hanmac> hoelzro: see how h.class changes :P
poikon has joined #ruby
hbpoison has joined #ruby
kmurph has joined #ruby
<hoelzro> wow.
<hoelzro> that's freaking evil
pyrac has joined #ruby
<Hanmac> rubys typing may be strong, but i am stronger :P
yshh_ has quit [Remote host closed the connection]
<banisterplssleep> hoelzro: not really he just override the 'class' method, *actually* changing the class is way more evil :)
buibex has joined #ruby
<hoelzro> I still find it evil =P
Al____ has quit [Read error: Connection reset by peer]
<Hanmac> yeah c-functions cant be fooled with that :P
poikon has quit [Ping timeout: 248 seconds]
Al__ has joined #ruby
browndawg has joined #ruby
pencilcheck has quit [Remote host closed the connection]
elico has quit [Quit: Elico]
mhf has joined #ruby
sepp2k has joined #ruby
sinusss has quit []
pen has joined #ruby
buscon has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
buscon has joined #ruby
zerba has joined #ruby
fphilipe has quit [Remote host closed the connection]
<shevy> hoelzro hmm
simas_ has quit [Read error: Connection reset by peer]
simas has joined #ruby
<shevy> "def help" .... hmm
browndawg has left #ruby [#ruby]
<shevy> how does python solve this with their docstrings? how do they tap into that information of an object at runtime?
<Hanmac> with uglyness? :P
clocKwize has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
<spider-mario> shevy: values have a .__doc__ attribute
<shevy> ah
<shevy> so basically that would be equivalent to ruby objects having a .__doc__ method, calling an @ivar or?
idkazuma has quit [Remote host closed the connection]
<shevy> I guess I can understand the __ finally... but it sure is ugly
clocKwize has joined #ruby
<Harzilein> ninegrid: hmm
anderse has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<Harzilein> ninegrid: i liked the "making siren song" "asciicast" by zenspider :)
<Harzilein> ninegrid: can't really say if it's exemplary though
segv- has joined #ruby
<shevy> asciicast?
aytch has quit [Ping timeout: 245 seconds]
anonymuse has quit [Quit: Leaving.]
apeiros_ has joined #ruby
RurouniJones has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
JumpMast3r has joined #ruby
<Harzilein> shevy: he asked for "ruby screencasts", but unlike railscasts, so i assumed he knows about the "asciicasts" eifion bedford makes from ryan bates' railscasts, i.e. turn those into texts.
hbpoison has joined #ruby
skcin7 has quit [Remote host closed the connection]
Al___ has joined #ruby
aytch has joined #ruby
Al__ has quit [Ping timeout: 248 seconds]
aaronmcadam_ has joined #ruby
aaronmcadam has quit [Read error: Connection reset by peer]
aaronmcadam_ is now known as aaronmcadam
krz has quit [Read error: Connection reset by peer]
mhf has quit [Remote host closed the connection]
Al___ has quit [Quit: Al___]
mhf has joined #ruby
kyouso has joined #ruby
VolodymyrB has joined #ruby
JohnBat26 has joined #ruby
icole has quit [Remote host closed the connection]
uris has joined #ruby
relixx has quit [Quit: relixx]
icole has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Al__ has joined #ruby
relixx has joined #ruby
robotmay has joined #ruby
icole has quit [Ping timeout: 244 seconds]
yacks has quit [Remote host closed the connection]
noxoc has quit [Quit: noxoc]
<Slydder> could somebody take a look at this error and tell me where I should start looking? http://pastie.itadmins.net/PDIvSiXy
<VolodymyrB> Hi, what expression "x y do z end" name?
patterson has quit [Quit: (Your behavior is not conducive to the desired environment.)]
ryanh has quit [Quit: Computer has gone to sleep.]
<Slydder> I have already set the stack size to 64MB just to see if that was the problem and I am still getting this error.
sayan has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
main has quit [Ping timeout: 244 seconds]
huoxito has joined #ruby
kmurph has quit [Quit: kmurph]
innohero_ has quit [Ping timeout: 260 seconds]
girija_ has quit [Read error: Connection reset by peer]
girija_ has joined #ruby
yacks has joined #ruby
aaronmcadam has quit [Read error: Connection reset by peer]
aaronmcadam has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
<apeiros_> Slydder: stack level too deep usually indicates an infinite recursion
<Slydder> yeah. that's what I thought. but how do I find where?
<apeiros_> though, your backtrace looks suspiciosly short for that
poikon has joined #ruby
atno has joined #ruby
chussenot has quit [Read error: No route to host]
chussenot has joined #ruby
therod has joined #ruby
<clocKwize> looks like a gem is requiring itself or something?
poikon has quit [Ping timeout: 248 seconds]
hbpoison has quit [Ping timeout: 276 seconds]
m3pow has joined #ruby
chussenot has quit [Client Quit]
samphippen has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
<shevy> hehe
<shevy> security through obscurity
<shevy> VolodymyrB this should be x(y) { z }
<shevy> so what are the big new things in 2.0
afd__ has joined #ruby
fermion has joined #ruby
afd__ has quit [Remote host closed the connection]
fphilipe has joined #ruby
niklasb has joined #ruby
VolodymyrB has quit [Quit: Leaving.]
BRMatt has joined #ruby
baphled has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
carloslopes has joined #ruby
_JamieD_ has joined #ruby
trj has joined #ruby
<trj> Hi, I'm completely new to Ruby. I'm using Ubuntu 12.04, I'm trying to "gem install bundler" and getting HTTP 302 from gems.rubyforge.org. Is this due to the recent hack, what can I do to workaround it?
KevinSjoberg has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
baphled has quit [Ping timeout: 246 seconds]
<Nom-> That's comforting... a spec that does nothing is segfaulting... any ideas how i can track it down?
<KevinSjoberg> Hi, folks. I really need some help with an issue of mine. It seems I have a problem with unicode normalization in Ruby 1.8.7 (not my choice). See https://gist.github.com/KevinSjoberg/4709596. Any idea how I can see what normalization a string uses or convert a string into a preferred normalization such as KC or KD?
<Nom-> oh, i'm a moron... commented out tests in wrong file
<apeiros_> KevinSjoberg: you can see the normalization by inspecting the bytes. in 1.8, you can e.g. use str.unpack("U*")
<apeiros_> and to convert the normalization, I think I already recommended e.g. the unicode gem
<apeiros_> iirc somebody else mentioned unicode_tools
<Slydder> how can I suppress warnings when running a ruby script?
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros_> Slydder: don't run the script with -w, and/or redirect $stderr to /dev/null
hybris has joined #ruby
<apeiros_> not sure that's a good idea
<ddd> -W0 and as said, not a good idea
francisfish has quit [Remote host closed the connection]
<Slydder> just tried -W0 on the shebang and it works
<ddd> NOT a good idea. can't say you weren't warned
<Slydder> was just trying something. didn't work anyway
idkazuma has joined #ruby
<KevinSjoberg> apeiros_: Oh, I totally forgot about that. Had to run the other time. I'll look into the unicode gem. I would have to include the whole source though, because my library run without Bundler or equivalent. Is it hard to convert normalization by hand?
keymone has quit [Quit: keymone]
megha has joined #ruby
lurch_ has quit [Ping timeout: 246 seconds]
<apeiros_> KevinSjoberg: it's probably prohibitively difficult unless you can live with a very very partial solution
cha1tanya has quit [Ping timeout: 248 seconds]
<apeiros_> KevinSjoberg: you have rubygems, though, I assume?
stonevil has quit [Quit: stonevil]
ryanh has joined #ruby
<apeiros_> if so, then it's a simple `gem install unicode` + `require 'unicode'` away
ryanh has quit [Max SendQ exceeded]
fir_ed has joined #ruby
banisterplssleep has quit [Remote host closed the connection]
hbpoison has joined #ruby
nignaztic has quit [Read error: Connection reset by peer]
<KevinSjoberg> Well, the problem is that I'm not sure if everyone has Rubygems available. I know for a fact that all my users are Mac users (the application that installs my extension, Alfred, is only available for Mac), and all Mac users have Ruby 1.8.7 available on their system.
<KevinSjoberg> But I don't think they have Rubygems available per default.
<apeiros_> they do
<KevinSjoberg> apeiros_: How positive are you? :)
<ddd> very
<apeiros_> 100%. I'm a macuser since birth.
BRMatt has quit [Remote host closed the connection]
stonevil has joined #ruby
<apeiros_> but manipulating the system ruby… that part is not nice :-/
<KevinSjoberg> apeiros_: Alright, then I believe you. Thanks for the help.
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
ffranz has joined #ruby
chussenot has joined #ruby
<ddd> thus the joy of Homebrew, MacPorts, and Ruby Version Managers :)
acrocity has quit [Quit: leaving...]
<ddd> just so we don't have to mess with the system ruby :)
<KevinSjoberg> apeiros_: No, I just assume that Ruby is installed, and make use of the version available.
<apeiros_> KevinSjoberg: if you can, use a self-contained ruby
jeffsmykil has joined #ruby
<ddd> KevinSjoberg: then make sure you use syntax 1.8.7 compatable and not do anything like trying to use the new hash syntax etc
<KevinSjoberg> apeiros_: That's my main problem. I would love to use Ruby 1.9+, preferably through RVM or rbenv, but I have no control over the shell, and it's load path, so I can't execute the ruby version I want.
<ddd> s/atable/atible/
<KevinSjoberg> ddd: Done already, all my tests run against Ruby 1.8.7 for this library.
<apeiros_> KevinSjoberg: people use alfred through the shell?
<apeiros_> or alfred uses the shell?
hbpoison has quit [Ping timeout: 245 seconds]
divout has quit [Remote host closed the connection]
<ddd> not that I've seen but he might have access to something neither of us know about
yshh has joined #ruby
pcarrier has joined #ruby
jeffsmykil has left #ruby [#ruby]
fir_ed has quit [Ping timeout: 248 seconds]
<KevinSjoberg> apeiros_: Alfred launch my shell script through a shell, which Alfred invokes.
acrocity has joined #ruby
<matti> apeiros_: You mean, you were born a fanboy? ;]
<shevy> alfred must die
<apeiros_> but if you launch the shell, you have full control over its env
moshef has joined #ruby
fphilipe has quit [Remote host closed the connection]
pac1 has quit [Ping timeout: 246 seconds]
<apeiros_> matti: since fanboys of cult X always see people using Y as fanboys of Y, that discussion is pretty much pointless.
m8 has joined #ruby
<KevinSjoberg> apeiros_: Sorry, I explained that poorly. Alfred invokes a shell, which in turn run my shell script. I can decide the contents of the shell script but can't manipulate or change anything about the shell invoked.
banisterplssleep has joined #ruby
<ddd> you can use the shell script to set the environment
<apeiros_> KevinSjoberg: um, yes. if you launch a shell, you can.
<shevy> alfred must be beheaded
<apeiros_> shevy: is that necessary?
* apeiros_ afk
<shevy> if it would be fred rather than alfred no
shock_one has quit [Read error: No route to host]
<matti> apeiros_: I am a Mac user myself; it has more to do with my sarcastic sense of humour than caring about X and Y ;p
<ddd> shevy should be beheaded
zomgbie has joined #ruby
<shevy> but I only invoke ruby scripts :(
Zelest has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
<matti> ddd: LOL
<matti> ddd: Why?
<ddd> because he wants to behead alfred! Who is gonna take care of Batman *then*?
<shevy> all I know is that there is some kind of alfred running shell scripts
fphilipe has joined #ruby
<Zelest> I'm trying to match two strings where I want to be able to match asterix chars (*) .. e.g, /foo/bar/* would match /foo/bar/blah.txt .. what is the best appraoch to do this?
<ddd> ok fine. Behead Alfred, burn Fred, and run straight AppleScript :)
<shevy> well, I take it that alfred runs on mac
hbpoison has joined #ruby
<shevy> so he is stuck with 1.8.x
trj has left #ruby ["WeeChat 0.3.8"]
<ddd> no he isnt
<KevinSjoberg> apeiros_: I don't, or I do, but isn't aware of it due to my incompetence in the area of unix systems. Alfred invokes the shell (not me), I decide it's contents though. I guess I could change "#!/usr/bin/env ruby -Ku" to "#!/usr/local/bin/ruby", but then there is a small chance that the binary does not exist.
<Hanmac> Zelest: look at File.fnmatch
<matti> ddd: He also wanted to become US President at some point.
grayson has joined #ruby
<shevy> lol matti
<matti> ddd: Work for British Secret Service, etc.
<matti> ddd: Its just ... shevy ;d
<shevy> nah, there is no US president, it's all a show
<matti> ddd: Ah, right.
<matti> ddd: And he has a thing for conspiracy theories.
<matti> ;p
<Zelest> Hanmac, awesome, that's just what I wanted, thanks! :-)
* matti hugs shevy
<ddd> if he can run a shell script, he can easily grab any ruby he wants, and it will be available for any future execution of that script (all he has to do is check for the existance of say $HOME/.rvm and if it exists, check the rvm list output and check for the version he wants, then use that. Initial warning to the user from within the script is trivial
<shevy> as long as you have miniature flags, everything will be alright
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
fphilipe has quit [Remote host closed the connection]
<shevy> ddd remember a mac user might be a very dumb person
spider-mario has joined #ruby
<matti> ;p
<ddd> just like everything from microsoft, apple, and a slew of application vendors do. they download on the first invocation, then check for waht they grabbed the first invocation on subsequent
<ddd> sheerun: hardly
<ddd> shevy: no more so than any other computer OS
<Hanmac> shevy: "i see dumb persons ... they dont know that they are are dumb ... and they posting there" : P
<matti> ddd: You'd be surprised, actually.
<matti> ;p
<shevy> I feel we linux users here are the minority :(
<ddd> matti: no more stupid than linux users
Jamone has joined #ruby
<matti> ddd: I beg on the contrary ;]
<shevy> hey, I have several rubies here!
hbpoison has quit [Ping timeout: 252 seconds]
<ddd> shevy: any thing you can do on Linux we can do on OSX except compile/recompile the core OS
banister_ has joined #ruby
nfk has quit [Quit: yawn]
banisterplssleep has quit [Read error: Connection reset by peer]
<matti> ddd: That is also not true ;p
<shevy> you can but KevinSjoberg's users can not :-)
<ddd> and thats by virtue of it being closed source. its hardly an indication of the intelligence of the user
<ddd> matti: uhh no, its not
<shevy> they are literally the most helpless mac users ever
<shevy> graphics designers
xemu has joined #ruby
<matti> ddd: I use both.
Goles_ has quit [Quit: Out.]
<ddd> so do i
<matti> ddd: And for some reason I need to run Linux VMs.
<matti> ddd: I do wonder why.
<matti> ;D
<ddd> I'm on a mac right now, and I've been using linux since 1.0.8 kernel
<Hanmac> shevy maybe at weekend i try to crosscompile ruby :P
<shevy> Hanmac lies!
Goles has joined #ruby
<matti> ddd: I contributed code to Linux Kernel ;p
<matti> ddd: I WON ;p
<shevy> I gave up on cross compiling
<shevy> matti did you report a typo?
tomzx_mac has joined #ruby
<matti> shevy: Ssshhy.
<matti> ;p
<shevy> :)
<ddd> i've yet to find anything where I need to use a linux VM for anything other than me WANTING to use one, usually because I'm trying to run a *linux* specific peiece of software such as a linux only game, or something that ties directly into the unix kernel
<matti> shevy: On which side you are, traitor.
<shevy> the kernel is too huge for me
<shevy> matti on ruby's side!
<Hanmac> shevy i thought that it may be more easy when using with multiach
<matti> shevy: :<
<shevy> I think all the operating systems suck, linux just sucks less than the others
<matti> ddd: Relax doode ;p
<KevinSjoberg> I guess, I can check for the existence of a Ruby version installed through RVM, rbenv or similar version managers. If found I'll use that Ruby version, otherwise send a notification to the user that Ruby 1.9+ is required?
<ddd> hell osx even runs X11 (whether Apple's version or a downloaded source and compile version)
<matti> ddd: I am just being a tease ;p
<shevy> I mean the mac users are idiots if they are stuck with 1.8.x
Monie has quit [Ping timeout: 246 seconds]
* matti hugs ddd too
<ddd> matti: ahh well, hard to read that from text
<matti> ddd: :)
<shevy> Hanmac I dunno, I feel that it is all a big mess, this multiarch stuff
<matti> ddd: Fair enough, hehe ;]
* Hanmac is still suprised that apple allows you to download and compile source on a Mac
<shevy> no wait Hanmac
Targen has quit [Ping timeout: 255 seconds]
<shevy> someone in here complained about that
<ddd> i know quite a few linux users that idiotically believe that Macs can't run 'linux' software (aka GNU software) simply because you can't recompile the core OS and apps.
<shevy> what was his name... Jonnie something
jetblack has quit [Quit: leaving]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<shevy> he complained about xcode growing in size and complexity
<ddd> thought you might be trying to be in that camp ;)
passenger_n00b has joined #ruby
<shevy> and that llvm can not compile everything
<shevy> which apple apparently loves
spider-mario has joined #ruby
<Hanmac> shevy you mean JonnieCache?
<shevy> (I mean llvm)
<shevy> yeah
<shevy> JonnieCache it was you!
<JonnieCache> hello
<JonnieCache> i think it was 1.9.2 that refuses to compile under llvm
<shevy> apple sucks!!!
<JonnieCache> i cant fucking remember theres so many variations and permutations
<ddd> well it can, but llvm does cause random ruby crashes (even in the current 1.9.3 series. late 1.9.2 series was the first to actively support llvm compiler chains)
sambio has joined #ruby
<JonnieCache> it depends heavily in what order you install stuff as well, xcode, the xcode commandline packages, and the other deps from homebrew/macports
<shevy> ah well, I'd actually be happy if llvm could replace gcc
<Hanmac> -jonnieCache do you have played with Crosscompile too?
<matti> I want Ruby Go bindings.
<matti> ;/
<ddd> JonnieCache: early 1.9.2 wouldn't. p12x did
<JonnieCache> no
<passenger_n00b> Hi! Please, does someone know how to solve this? http://pastie.org/private/07io1dl8tiaqwgxcnc1rpa. It is about using separate Passenger standalone instances (under myapp1 and myapp2 users) and running an init script as root at boot time
<passenger_n00b> Does anyone have experience with this?
<shevy> matti you are weird
<matti> So we can say "GoRuby"
<shevy> passenger_n00b sorry no clue, never used passenger
<matti> shevy: Am I?
<matti> shevy: :/
Jamone has quit [Ping timeout: 248 seconds]
<shevy> matti you want ruby go bindings
<matti> ddd: I may re-consider the behading of shevy ...
<matti> ;d
<passenger_n00b> shevy: That's okay, thanks for answering. What do you use to serve multiple Rails apps on a single box then?
<Hanmac> shevy i thought i was the weird one :(
buibex has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby
<matti> Hanmac: Oh am I asorry.
<shevy> passenger_n00b I actually dont use rails :(
* matti hands the title back to Hanmac
<shevy> the railers are typically on #rubyonrails, we here tend to focus more on general ruby
<ddd> smart choice would be nginx + unicorn or thin
<matti> shevy: We ten to focus on blabbering more ;p
<shevy> matti I was doing ruby before, I may blabber!
<shevy> I played with cgi (omg)
<passenger_n00b> shevy, matti : I see! =)
<shevy> def params; CGI.new.params; end <--- I was proud
<ddd> especially if running multiple apps that use different ruby versions (passenger uses 1 ruby)
<shevy> but I hate CGI, so I must replace it one day
<passenger_n00b> ddd: Why is that?
<ddd> passenger_n00b: why is what?
mikeycgto has quit [Remote host closed the connection]
<shevy> why nginx is smart, I guess
<passenger_n00b> ddd: Well, why is it smart to use nginx + unicorn or thin?
<shevy> do you want a fat unicorn or a thin unicorn
<ddd> passenger uses 1 ruby for all applications. with nginx + unicorn you can run multiple rubies
krz has joined #ruby
<shevy> Hanmac only your code is weird, it is very hard to understand
<shevy> x?>52?#$9ß0v"##"
<ddd> so if you have a ruby 1.8.7 + rails 2.3.x, and a ruby 1.9.3 + rails 3.2.x you wouldn't be able to run both with passenger. your rails 3.2.x would use the ruby that passenger exposed which would be 1.8.7
samuel02 has joined #ruby
<carloslopes> nooo
<ddd> and if you were using gems that targeted ruby 1.9 specificness, it would puke
<carloslopes> ddd: passenger now has the ability to run multiple ruby
<carloslopes> version
<carloslopes> versions*
stonevil has quit [Quit: stonevil]
<ddd> nginx + unicorn would allow for the different ruby versions. especially if using RVM installed rubies and per-project files (unicorn respecs .rvmrc files as well)
<ddd> passenger is basically single-ruby blind
<ddd> DO NOT confuse rails with RUBY
butblack has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<passenger_n00b> ddd: Passenger standalone (embeds an Nginx instance for each app) would allow me to serve several apps with different rubies. My only problem is figuring out how to run the script hosted inside the RVM environment of the myapp1 user as root (required to serve on port 80). But I see what you're saying :)
<ddd> carloslopes: oh? when did they come into the 21st century?
EPIK has quit [Ping timeout: 252 seconds]
<shevy> Welcome <?php echo $_POST["fname"]; ?>!<br>
<shevy> hmm that $_POST
<shevy> that's quite ugly isn't it?
<carloslopes> they added that in one of the latest versions
<carloslopes> ddd
<ddd> passenger_n00b: see the RVM page for how to do a root-only installation, but A) running rvm under root would replace (as far as the shell would see) the system ruby, B) thats not a supported configuration because it could potentially bust any system ruby scripts, and C) its better to run using unicorn as a regular user and set up nginx on the box to proxy for the apps and use virtual hostnames to decide which unicorn master to proxy to
<butblack> hi
yshh has quit [Remote host closed the connection]
<butblack> i'm looking at this proc..
<ddd> then you wouldn't need to do anything with root privs in the first place other than setting up nginx
<butblack> i'm wondering why, when i call it, it is returning nil instead of the array?
<butblack> doesn't ruby always return the last statement in a method?
<hoelzro> butblack: what does puts return?
<carloslopes> ddd: passenger_n00b: now you can specify the Ruby interpreter in the global server config, in virtual hosts and in other places
<hoelzro> >> val = puts 'nothing' ; puts(val)
<eval-in> hoelzro: Output: "nothing\n\n" (http://eval.in/9111)
<ddd> carloslopes: still doesn't solve his problem, and still doesn't lower his permissions vector to Least Privs
<hoelzro> >> val = puts 'nothing' ; puts(val.class)
<eval-in> hoelzro: Output: "nothing\nNilClass\n" (http://eval.in/9112)
daniel_- has quit [Quit: WeeChat 0.3.9.2]
NiteRain has quit [Ping timeout: 246 seconds]
<ddd> or at least not from what he's explaining
<butblack> hoelzro: same
<hoelzro> butblack: hmm?
<carloslopes> ddd: hm i don't know.. i didn't get the conversation from the start, i only sow your comment about passenger :)
<passenger_n00b> ddd: You're right, I was trying to avoid running RVM as root as it is not recommended
yacks has joined #ruby
<carloslopes> passenger_n00b: why is it not recommended?
<ddd> but he could couple nginx + passenger (which is a valid mixture) and A) serve quicker (nginx has been tested to be substantially faster than apache) and B) allow for Least Privs by proxying to unicorn masters based on ServerName entries. (mod_proxy in apache sucks ass)
<ddd> carloslopes: I explained why
<passenger_n00b> carloslopes: ddd : Would you use an rvm wrapper or binstubs to do that?
<carloslopes> ddd: why?
<butblack> hoelzro: any idea?
<ddd> scroll up
<carloslopes> ddd: the only thing that change is the path
<hoelzro> butblack: all you said is 'same'; what's the same?
<ddd> carloslopes: untrue
<carloslopes> ddd: or am i wrong?
<hoelzro> more importantly, what did you change?
<butblack> hoelzro: how it returns
pu22l3r_ has joined #ruby
<butblack> it returns 1 2 3 #=> nil
<ddd> there is potential for changes in the ruby core by changing versions that could cause any system ruby scripts to break
Banistergalaxy has quit [Ping timeout: 248 seconds]
<hoelzro> butblack: what in the code did you change?
<carloslopes> ddd: i don't use rvm, but i thought that the difference was the path only
<ddd> unless you can prove 100% that changing rubies will not break them (which requires testing on your part)
jeer has joined #ruby
<butblack> hoelzro: i changed the method by putting puts in it, tried that and then i also changed the call of the method by calling it with puts
pcarrier has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
<butblack> so puts a.call(b)
<ddd> no, the reason isn't pathing, its version compatibility
<hoelzro> butblack: ok, think about what you're doing.
<butblack> and then puts foo(pusher, [1,2,3])
<carloslopes> ddd: hm i got it
<ddd> and system is NOT something you want to fuck with without being 110% sure
<hoelzro> the code I posted here demostrates that puts returns nil
<hoelzro> so if puts(anything) is the last statement in your method...
<carloslopes> ddd: yes.. i agree
<hoelzro> ...your method will return nil.
<butblack> hoelzro: ah i see now
<butblack> the puts in the block
<butblack> i took that out
<butblack> now it returns the array..
pcarrier has joined #ruby
<passenger_n00b> carloslopes: You always serve one single app by server then? Or do you take the risk that gem1 from app1 collides with gem2 from app2?
<carloslopes> passenger_n00b: i use bundle to avoid gem collision
<hoelzro> butblack: ok; what do you expect it to return?
<carloslopes> bundler*
<ddd> the *easiest* setup is nginx installed via say homebrew, shutting down the apache that comes with osx, running nginx in its place, setting up the proxy redirect (tutorials all over the place for that as this is a common setup) and running each of the applications either under the same non-privileged user account, or putting each one under its own non-priv'd user attached to a non-priv'd port and making nginx redir to that app
Konboi has quit [Remote host closed the connection]
<butblack> hoelzro: that's a good question
Banistergalaxy has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
stonevil has joined #ruby
<ddd> then you don't have to futz around with passenger at all, and by using unicorn you can have any combo of ruby + gems that you want, all over port 80 (and non-priv'd ports for the unicorn sessions themselves)
<carloslopes> ddd: passenger_n00b: i agree with ddd that there is a risk.. but, a lot of people use it in production
cha1tanya has joined #ruby
<ddd> carloslopes: with what
girija_ has quit [Read error: Connection reset by peer]
pcarrier has quit [Client Quit]
<carloslopes> ddd: passenger_n00b: rvm with ruby versions
girija_ has joined #ruby
geekbri has joined #ruby
Criztian has quit [Remote host closed the connection]
eliasp has quit [Ping timeout: 276 seconds]
<ddd> basically a common production setup is nginx running as the main web server (priv'd on port 80 just as apache would do), rvm installed rubies (or any ruby manager like rbfu etc), unicorn as a non-rpiv'd user to keep everything running under non privileged users providing greater protection for the box itself
<ddd> its not a risk
<ddd> its a risk when you start running things as privileged users
rfffadffas has joined #ruby
<carloslopes> ddd: yes.. i couldn't agree more
<apeiros_> it's
<carloslopes> ddd: this is really true
<rfffadffas> is it possible to automaticly let rails generate the join tables with a manytomany relationship/
<carloslopes> ddd: never run apps as privileged users
danielpcox has joined #ruby
<ddd> nginx being the proxy greatly narrows the attack vector and adds the freedom to expand the rubies in use, varying gemsets set by .rvmrc (or appropriate equiv with other ruby managers)
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<carloslopes> ddd: hm i got your idea now
adkron_ has quit [Ping timeout: 264 seconds]
<ddd> and the only reason nginx uses root at all (like apache does) is to attach to port 80 which is a privileged port, and then it too like apache drops elevated privs after that
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
<ddd> greatly drops attack vectors
<carloslopes> ddd: yes
hbpoison has joined #ruby
<JonnieCache> rfffadffas: dont think so
<ddd> much better that if your ruby app somehow creates a local security hole, that its confined to a non-priv'd user as well as the likelihood of root elevation is severely minimized unless you also have some other hole in place as well (like unpatched kernels, root attacks via the shell itself etc)
<JonnieCache> rfffadffas: it would have taken less time to write them yourself than to ask irc :)
<ddd> but thats all outside what we're talking about anyways and is part of good system management in the first place
<gestahlt> Hi guys, it might not fit into ruby (although i need it for a project), i need to add multiple images to an archive. Ive got 2 problems with it. 1. i need them compressed and have the file directly added to an archvie. For example: dd if=/source | gzip -c --fastest > /target/filename
browndawg has joined #ruby
<carloslopes> ddd: sure
<gestahlt> 2. I need to append more images to an archive like dd if=/source | gzip --append(whatever) > /target/filename
arkiver has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
ahokaomaeha has joined #ruby
<carloslopes> passenger_n00b: the ddd solution is very good
dallasm has joined #ruby
<carloslopes> passenger_n00b: but, if your problem is gem collision, bundler solves this for you
<ddd> plus the speed of worker spawns is faster with nginx+unicorn compared to passenger anyways, another plus :)
hbpoison has quit [Remote host closed the connection]
<ddd> (not to mention a fairly significant memory footprint reduction)
hbpoison has joined #ruby
<passenger_n00b> ddd: carloslopes Thanks guys, much appreciated!
<ddd> np
<carloslopes> ddd: yes
<carloslopes> passenger_n00b: np
renanoronfle has joined #ruby
chussenot has quit [Quit: chussenot]
<carloslopes> ddd: unicorn is really great
chussenot has joined #ruby
<ddd> so far i've found it to be the best solution. not to say there aren't other combinations, just the one i've found to be the most responsive and least potentially difficult to set up quickly
cha1tanya has quit [Quit: Leaving]
nyuszika7h has joined #ruby
<Xeago> does anyone know the default font in android messages?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
banister_ is now known as banister`gone
Choobie has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
Virunga has joined #ruby
jfl0wers has joined #ruby
yacks has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 276 seconds]
<carloslopes> ddd: yes.. unicorn is the best for quickly responses.. but if you need some stream or keep-alive connections it doesn't is the choice
<carloslopes> ddd: the 'best' IMO
nopolitica has joined #ruby
jeer has quit []
mark_locklear has quit [Remote host closed the connection]
pcarrier has joined #ruby
nopolitica has quit [Client Quit]
jprovazn has quit [Quit: Leaving]
<ddd> errr?
danneu has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
butblack has quit [Ping timeout: 245 seconds]
razibog has joined #ruby
dhruvasa1ar has quit [Ping timeout: 276 seconds]
<Hanmac> shevy in my next life i will make an good ecommerce system ... the current ones are all shitty and have ZERO developer kindness ... (you want to read the doku? you must be login, but you cant login because you are not registerd, and you cant register because you are not a customer)
<ddd> umm, nginx would handle the persistent connection requirements. its part of the HTTP standard itself. unicorn will keep the worker around for that particular request for however long it needs to. and it has no problem with persistent db connections as well.
<ddd> what are you speaking about specifically?
fedza has joined #ruby
rippa has joined #ruby
<ddd> and if you run out of workers due to lots of persistent connections client facing, then you need to A) rethink your choice to persist, and B) how you're coding your app in the first place
grzywacz has joined #ruby
grzywacz has joined #ruby
<ddd> you also need to consider that in the hardware requirements as well (memory, CPU cores, et al)
simas has quit [Read error: Connection reset by peer]
<ddd> if you're going to be leaving a lot of connections open to clients but leave them idle a hell of alot of time, you're right, unicorn probably isn't what you want, but that'd be dumb in the first place. there are other means to accomplish push updating etc
simas has joined #ruby
<ddd> unless I'm terribly misunderstanding what you're saying, unicorn would seem to be the least of your worries
<ddd> --
rfffadffas has quit [Quit: Page closed]
<ddd> oo, on a totally unrelated note, seems Microsoft is finally going to build a Linux version of Office, slated for release some time in 2014
<ddd> interesting
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
fphilipe has joined #ruby
<ddd> now if they'd only finally get Office 365 / Office 2013 on the Mac rather than just 2011, I'd be a happy man :)
* apeiros_ doesn't want office on his mac
<apeiros_> on my work mac, I have it - for some reason installing an update of office requires me to quit safari.
<ddd> I've Office 365 University. Lovin it.
<apeiros_> I don't want to know what they installed which affects safari too… scumbags
ahokaomaeha has quit [Read error: Connection reset by peer]
<ddd> oh because of the integration points (preparations for Office 365, 2013) Shouldn't require it for 2011 other than the XPS driver for printing to MS XPS Document Writer
buibex has joined #ruby
dustint has joined #ruby
noxoc has joined #ruby
<moshef> hi
m8 has quit [Ping timeout: 255 seconds]
inokenty has joined #ruby
tommyvyo has joined #ruby
<ddd> anyways, time to grab some coffee and then to do some class work. If I can get these assignments done, I can take my next unit test and be 1 step closer to getting a free book, code, and a semester's worth of time free :)
<moshef> i have strings in UTF8 format, some of them include non ascii chars that looks weird. problem is - ruby (1.9) manage to read some of those non ascii chars properly, so i don't want to touch those strings, but for some non ascii chars i see crap and i'd like to force encode that. how can i see the difference?
banister`gone has quit [Remote host closed the connection]
<ddd> (if you complete your entire math course in 8-10 weeks rather than the scheduled 16, the college will give you your next semester's book, and online testing code for free, and all completed units will count towards your next semester regardless if you finish all *that* course level's units before the end of the last 8 weeks) (and they do it again the following semester)
moos3 has joined #ruby
khayes has joined #ruby
Dreamer3 has joined #ruby
khayes has quit [Remote host closed the connection]
khayes has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
ananthakumaran has quit [Quit: Leaving.]
yacks has joined #ruby
zastern has joined #ruby
pskosinski has joined #ruby
solidoodlesuppor has joined #ruby
pcarrier has quit []
prateekp_ has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Client Quit]
prateekp_ has quit [Client Quit]
ExxKA has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
pcarrier has joined #ruby
Targen has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
pavilionXP has joined #ruby
megha has quit [Read error: Connection reset by peer]
arkiver has joined #ruby
<moshef> anyonw?
ddd has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
megha has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
__BigO__ has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
hbpoison has joined #ruby
jerius has joined #ruby
ddd has joined #ruby
banister`gone has joined #ruby
banister`gone has quit [Remote host closed the connection]
poikon has joined #ruby
noop has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
fphilipe_ has quit [Remote host closed the connection]
fphilipe has quit [Read error: Connection reset by peer]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
fphilipe has joined #ruby
innohero_ has joined #ruby
dallasm has quit [Remote host closed the connection]
hbpoison has quit [Remote host closed the connection]
hbpoison has joined #ruby
innohero_ has quit [Client Quit]
breakingthings has joined #ruby
poikon has quit [Ping timeout: 248 seconds]
quest88 has joined #ruby
pcarrier has quit [Ping timeout: 244 seconds]
<Hanmac> moshef what is your OS?
jekotia has joined #ruby
ner0x has joined #ruby
hbpoison has quit [Remote host closed the connection]
koderde has joined #ruby
yshh has joined #ruby
passenger_n00b has quit [Ping timeout: 245 seconds]
yacks has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
erlingur has left #ruby ["Textual IRC Client: www.textualapp.com"]
cdt has quit [Quit: Ex-Chat]
swex has quit [Remote host closed the connection]
cdt has joined #ruby
swex has joined #ruby
SeanLazer has joined #ruby
jrajav has joined #ruby
yshh has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
carloslopes has quit [Remote host closed the connection]
rafaelcaricio has joined #ruby
adambeynon has joined #ruby
jtharris has joined #ruby
krz has quit [Quit: krz]
banister`gone has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
dustint has quit [Remote host closed the connection]
nobuoka has joined #ruby
mmitchell has joined #ruby
Targen has joined #ruby
dustint has joined #ruby
rmartin has joined #ruby
jrist-night is now known as jrist
hbpoison has quit [Ping timeout: 276 seconds]
tonytonyjan has joined #ruby
hbpoison_ has joined #ruby
carlyle has joined #ruby
yshh has joined #ruby
tommyvyo has joined #ruby
lurch_ has joined #ruby
ahokaomaeha has joined #ruby
hbpoison_ has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
yacks has joined #ruby
zz_chrismcgh is now known as chrismcg
chrismcg has quit [Changing host]
chrismcg has joined #ruby
<Hanmac> shevy on http://bugs.ruby-lang.org is a user that whats to destroy my liked symbols ... :( http://bugs.ruby-lang.org/issues/7791 (Let Symbols be GC'd) http://bugs.ruby-lang.org/issues/7792 (Make Symbols and String the same) http://bugs.ruby-lang.org/issues/7797 (Hash should use WithIndifferentAccess per default)
hbpoison has joined #ruby
codecop has quit [Remote host closed the connection]
security has joined #ruby
<shevy> hehe
dallasm has joined #ruby
<shevy> I'd actually agree with him
<shevy> for sake of simplicity
<shevy> problem is, I also grew fond of :symbol vs 'symbol'
<shevy> you can get rid of one character
poikon has joined #ruby
quest88 has quit [Quit: quest88]
megha has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
zomgbie has joined #ruby
NiteRain has joined #ruby
<shevy> I also don't think it is even possible really
<shevy> so it is a waste of time to argue about it
ananthakumaran has joined #ruby
<shevy> he'd have to create a new language from scratch
<Hanmac> :"symbol with spaces"
sayan has quit [Ping timeout: 240 seconds]
tvw has quit [Client Quit]
tvw has joined #ruby
<ddd> hehe been following that thread. pretty much the main reason why they're not GC'd is because the core admits that none of them really know how to implement it properly (while also protecting internal symbols from being collected right along with user defined)
frankkany has joined #ruby
tvw has quit [Client Quit]
Spooner_ has joined #ruby
hbpoison has quit [Remote host closed the connection]
<Hanmac> i dont want that my objects are beeing deleted, thats why i use symbols (specialy IDs), i use them for C-enum <=> Ruby-Symbol
hbpoison has joined #ruby
tcstar has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
<Hanmac> for me this guy looks like somone that wants to force feaky AS stuff like HashWithIndifferentAccess into core ruby, without thinking about consequecess
NiteRain has quit [Ping timeout: 246 seconds]
<shevy> Hanmac I think he just tries to steal time from core
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
pcarrier has quit []
tvw has quit [Client Quit]
tvw has joined #ruby
hbpoison has joined #ruby
<moshef> Hanmac: mac..
arya has joined #ruby
fmcgeough has joined #ruby
philcrissman has joined #ruby
pskosinski has quit [Quit: The copyright law violator is gone.]
yshh has quit [Remote host closed the connection]
<Hanmac> moshef so you use 1.9 and your string does looks half good that means some chars are working and some chars are not?
<Hanmac> are you 100% sure that you used realy UTF8 and not an similar encoding?
wting has quit [Ping timeout: 276 seconds]
axl_ has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
<shevy> ack
<shevy> encoding...
sailias has joined #ruby
<apeiros_> shevy's nemesis
wting has joined #ruby
_bart has joined #ruby
hbpoison has joined #ruby
<shevy> :-)
<shevy> depends, if things work then I am happy
<Hanmac> i use 1.9 and i dont have problems with them ... because i use linux and not shitOS
<jrajav> I don't always use UTF-8, but when I do, I make sure to parse it as a fixed-length encoding
<shevy> I currently have only one project with encoding problem, the rest works
<jrajav> He is... The Most Terrible Programmer in the World
<jrajav> *epic music*
<shevy> Hanmac what is the default encoding you use?
<Hanmac> UTF8
<shevy> yeah, people who use UTF8 tend to have less problems
krawchyk has joined #ruby
<shevy> hey Hanmac
<shevy> I am trying to come up with a simpler way to use html form tag in ruby .cgi scripts
<Hanmac> nokogiri html builder is not possible?
dallasm has quit [Remote host closed the connection]
* apeiros_ thinks anybody using anything else than binary, utf-8, or another encoding of the unicode family, is asking for troubles
hbpoison has quit [Ping timeout: 245 seconds]
zomgbie has quit [Read error: Connection reset by peer]
kuzushi has joined #ruby
v0n has joined #ruby
zomgbie has joined #ruby
<shevy> Hanmac hmm, I am thinking of pure ruby
<shevy> for instance, test.cgi, would have: form('SELF','name_of_form') {} # inside the block comes a bit of code logic
cupakromer has quit []
<shevy> hmm I am going to look at how rails does that
sc_raptor has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
hbpoison has joined #ruby
<shevy> form_tag { Form contents }
<shevy> "it creates a <form> tag which, when submitted, will POST to the current page."
<shevy> ok, guess that makes sense
JarJarBinks has quit [Quit: leaving]
stopbit has joined #ruby
razibog has quit [Ping timeout: 248 seconds]
<shevy> seems as if rails uses name_tag everywhere
<shevy> form_tag, label_tag, text_field_tag, submit_tag
jgarvey has joined #ruby
lurch__ has joined #ruby
<Nom-> Hey guys, got a really strange issue... I've got guard segfaulting when running rspec, but it works perfectly fine via command line. I know it's going to be something to do with my library *somewhere* but i'm not getting a backtrace either, so no idea where to start
banister`gone is now known as banisterfiend
axl_ has quit [Quit: axl_]
lurch_ has quit [Ping timeout: 245 seconds]
lurch__ is now known as lurch_
simas has quit [Remote host closed the connection]
<apeiros_> Nom-: what ruby version? including patchlevel
generalizzimo has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
wf2f has quit []
hbpoison has quit [Ping timeout: 255 seconds]
<Nom-> ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-linux]
Slydder has quit [Quit: Leaving.]
<Nom-> I can rvm up to 385 if you think that might be it
hbpoison has joined #ruby
<apeiros_> no, 362 was the segfaulting one iirc
<apeiros_> but you can try
wallerdev has joined #ruby
inao has quit [Quit: Leaving...]
zomgbie has joined #ruby
<shevy> hmm is: class Foo < Bar, the same as Foo = Class.new(Bar) ?
krawchyk has quit [Remote host closed the connection]
pcarrier has joined #ruby
poikon_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
renanoronfle has quit [Quit: This computer has gone to sleep]
axl_ has joined #ruby
tcstar has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
hbpoison has joined #ruby
melty has joined #ruby
<apeiros_> shevy: for about all practical implications - yes
<shevy> quite cool
elplatt has joined #ruby
<shevy> I am tempted to use the latter from now on :-)
_nitti has joined #ruby
pcarrier has quit [Ping timeout: 245 seconds]
<shevy> though it's a bit too verbose.... hmmm
<Nom-> What's wrong with <? Are you bracketist?
security is now known as megha
blacktulip has joined #ruby
poikon_ has quit [Ping timeout: 248 seconds]
interactionjaxsn has joined #ruby
pcarrier has joined #ruby
<shevy> dunno, it's just different you see?
21WAAHJLR has joined #ruby
<Hanmac> shevy status: i can read files with << and add again and fnmatch patterns too
<shevy> nice
shahid1234 has joined #ruby
<shevy> Hanmac I will test it extensively as soon as there are examples (dont mind the docu, but I need examples in the event that you wont write documentation)
<moshef> Hanmac: yes thats correct
Sleepy_neko has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
clocKwize has quit [Quit: clocKwize]
<shevy> Hanmac, this is what the rails webpage uses for some of their div elements as background: http://guides.rubyonrails.org/images/tab_info.gif
hbpoison has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
girija_ has quit [Ping timeout: 255 seconds]
<Hanmac> 1000% lol
jamescarr has joined #ruby
<shevy> hehe
<shevy> but the icon looks cute
tomzx_mac has quit [Read error: Operation timed out]
<shevy> imagine if all of the ruby projects would have small nice and helpful icons
mikecmpbll has joined #ruby
sailias has quit [Quit: Leaving.]
shashin has quit [Quit: shashin]
<Nom-> It's also entirely possible that it's really this library which is broken, rather than the code I've got... vendor libraries
<Hanmac> shevy the story is contiunuing http://bugs.ruby-lang.org/issues/7797
moos3 has joined #ruby
<Nom-> mm stack trace is only 6 levels deep in GDB
aho has joined #ruby
<Nom-> And all ?? methods... so no idea what that means :/
<banisterfiend> Nom-: probably means you need to compile with a higher debugging level and turn off optimization
<Hanmac> Nom- i wonder you didnt tell the libary name yet ... is it secret or why are you not telling it?
SCommette has quit [Quit: SCommette]
JumpMast3r has quit [Quit: JumpMast3r]
shashin has joined #ruby
ffranz has quit [Quit: Leaving]
passenger_n00b has joined #ruby
banisterfiend has quit [Remote host closed the connection]
s__dana has joined #ruby
shahid1234 has left #ruby [#ruby]
ehm_may has joined #ruby
<Nom-> Hanmac: It's proprietary... TIBCO EMS client library
<Nom-> Not secret, just not useful to anyone to know it (i suspect)
relixx has quit [Read error: Connection reset by peer]
relixx has joined #ruby
<Nom-> https://gist.github.com/lstanden/4731634 <-- there's my stacktrace if anyone can point me in the right direction... I'm thinking garbage collection issue, which is probably caused by the way I'm dealing with this C library through FFI, but I'd like to confirm before I go hunting
spaceships has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
fmcgeough has quit [Read error: Connection reset by peer]
fourq has left #ruby [#ruby]
<Hanmac> Nom- you may detect a bug
fmcgeough has joined #ruby
tagrudev has quit [Remote host closed the connection]
DaZ has quit [Ping timeout: 244 seconds]
axl_ has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
<Hanmac> Nom- you could try to install libgcc-dbg packages
bean has joined #ruby
<Hanmac> and maybe libcrypto-dbg pack too
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
axl_ has joined #ruby
<Hanmac> that maybe shows the "??" methods
mockra has joined #ruby
pu22l3r has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
ahokaomaeha has quit [Ping timeout: 255 seconds]
garndt has left #ruby [#ruby]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
Sleepy_neko has quit [Quit: sleepy_neko]
adeponte has joined #ruby
mikepack has joined #ruby
plotter has quit [Remote host closed the connection]
DaZ has joined #ruby
DaZ is now known as Guest58727
mockra has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
plotter has joined #ruby
artm has joined #ruby
artm has quit [Client Quit]
farkerhaiku has joined #ruby
renanoronfle has joined #ruby
theRoUS has joined #ruby
frankkany is now known as afoobar
SCommette has joined #ruby
<Hanmac> shevy in libarchive gem do you want a feature to set the uname & gname lookup ? currently its only using the standard one, with the lookup you could manipulate what username is written into the archive (hm and maybe an option do disable the standard one too)
shashin has quit [Quit: shashin]
Trudko has joined #ruby
<Trudko> Guys I have simple Rails form like this http://pastie.org/6087885, but my problem is Ruby related.I would like to ask you what is inteligent way how to field access data from params hashmap, because now In order to access data I have to do this params[:match]['match_players_attributes']['0'][:player_one_points]. To give you idea how the dat alooks like here pic from debugger http://imgur.com/T5KmP
<Trudko> RX
<Trudko> maybe there nice Ruby way how to access it.
renanoronfle has quit [Client Quit]
<Hanmac> Trudko #rubyonrails
dhruvasa1ar has quit [Read error: Operation timed out]
oscardelben has joined #ruby
<Trudko> Hanmac I asked also there, I am just courious if ruby does not have something fancy for accessing , if I am not wrong hashmap inside of hashmap
ner0x has quit [Ping timeout: 244 seconds]
mklappstuhl has quit [Ping timeout: 245 seconds]
zomgbie has quit [Ping timeout: 246 seconds]
<Hanmac> there may be no nicer way than params[:match]['match_players_attributes']['0'][:player_one_points] or what do you want should the line look like?
dhruvasagar has quit [Ping timeout: 276 seconds]
<Trudko> I am open to supprises :)
zomgbie has joined #ruby
<Trudko> if not that is fine I was just courios.
<Trudko> *curious
a_a_g1 has joined #ruby
<Hanmac> this could be possible too: [:match,'match_players_attributes','0',:player_one_points].inject(params) {|k,h| h.nil? ? nil : h[k]}
anonymuse has joined #ruby
<apeiros_> Trudko: your problem is really a rails one
rodj has joined #ruby
<apeiros_> because the smart way is to use a model and in that case, all you do is pass params[:match] to your Match model
<Trudko> ok guys so I wll focus my attention there. Thank you for your time.
billiam has joined #ruby
<banisterfiend> apeiros_: are there any tools that can convert erb to haml ?
<apeiros_> banisterfiend: iirc html2haml has a flag for erb
<banisterfiend> sweet
<banisterfiend> thx
<apeiros_> yupp, seems -e is the flag
keymone has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
svankie has joined #ruby
svankie has left #ruby [#ruby]
<Nom-> https://gist.github.com/lstanden/4731634 <-- updated with symbols from gcc & libcrypto... i'm going to have to head to bed though... if anyone has some thought and can post to that, woudl be great though :)
radic has quit [Read error: Connection reset by peer]
Uranio has joined #ruby
<Hanmac> the funny thing is that it crash at exit :P
radic has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Cooler_ has quit [Ping timeout: 276 seconds]
moshef has quit [Quit: moshef]
angusiguess has quit [Ping timeout: 248 seconds]
jrajav has joined #ruby
Al__ has quit [Ping timeout: 248 seconds]
timeout has joined #ruby
nateberkopec has joined #ruby
yshh has joined #ruby
kojul has quit [Ping timeout: 276 seconds]
joshman_ has joined #ruby
tvw has quit []
kojul has joined #ruby
jamescarr has quit [Quit: jamescarr]
tvw has joined #ruby
buibex has quit [Remote host closed the connection]
oscardelben has quit [Quit: oscardelben]
hbpoison has quit [Ping timeout: 260 seconds]
shashin has joined #ruby
buibex has joined #ruby
renanoronfle has joined #ruby
chussenot has quit [Quit: chussenot]
ner0x has joined #ruby
mibitzi has quit [Ping timeout: 248 seconds]
Kuifje has joined #ruby
bricker_ has joined #ruby
polymar has joined #ruby
yshh has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
baphled has joined #ruby
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
adeponte has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 240 seconds]
tvw has quit []
relixx has quit [Read error: Connection reset by peer]
tvw has joined #ruby
relixx has joined #ruby
_nitti has quit [Remote host closed the connection]
tvw has quit [Client Quit]
kojul has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
plotter has quit [Remote host closed the connection]
poikon_ has joined #ruby
Trudko has left #ruby [#ruby]
bemathis has joined #ruby
_nitti has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
nyuszika7h has joined #ruby
Al__ has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
chrisnicola has joined #ruby
rodj has quit [Quit: Page closed]
pu22l3r has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
stonevil has quit [Quit: stonevil]
pu22l3r has joined #ruby
Neomex has quit [Client Quit]
io_syl has joined #ruby
rodj has joined #ruby
mparodi has joined #ruby
jonahR has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
poikon_ has quit [Ping timeout: 276 seconds]
jpfuentes2 has joined #ruby
angusiguess has joined #ruby
chrisnicola has quit [Client Quit]
kpshek has joined #ruby
chrisnicola has joined #ruby
oscardelben has joined #ruby
io_syl has quit [Ping timeout: 246 seconds]
stonevil has joined #ruby
Umren has joined #ruby
the_mentat has joined #ruby
<shevy> lol
vlad_starkov has quit [Ping timeout: 256 seconds]
alex__c2022 has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
razibog has joined #ruby
jlast has joined #ruby
codecop has joined #ruby
vlad_starkov has joined #ruby
samuel02 has quit [Remote host closed the connection]
main has joined #ruby
kpshek has quit []
Hypn has quit [Remote host closed the connection]
byped has joined #ruby
mephux has quit [Excess Flood]
razibog has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
kofno has joined #ruby
Spooner_ has quit [Remote host closed the connection]
chrishough has joined #ruby
mephux has joined #ruby
beliveyourdream has quit [Read error: Connection reset by peer]
stonevil has quit [Quit: stonevil]
Hanmac has quit [Ping timeout: 245 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
hoelzro is now known as hoelzro|away
buscon has quit [Quit: Leaving]
PragCypher has joined #ruby
Xeago has quit [Remote host closed the connection]
shashin has quit [Quit: shashin]
poikon_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
frogstarr78 has joined #ruby
stonevil has joined #ruby
therod has quit [Quit: Leaving...]
shashin has joined #ruby
Jackneill has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 240 seconds]
berserkr has joined #ruby
chrishunt has quit [Quit: zZzZzZ...]
chussenot has joined #ruby
tvw has quit []
bricker_ is now known as bricker
NiteRain has joined #ruby
Atlantic777 has left #ruby [#ruby]
ffranz has joined #ruby
tvw has joined #ruby
speakingcode-wor has joined #ruby
rafaelcaricio has quit [Remote host closed the connection]
girija_ has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
johndouthat has joined #ruby
eldariof has quit [Ping timeout: 276 seconds]
ZeeLiDoX has joined #ruby
vlad_starkov has quit [Read error: Connection timed out]
bricker_ has joined #ruby
mando has joined #ruby
relixx has quit [Quit: relixx]
bricker has quit [Ping timeout: 248 seconds]
clocKwize has joined #ruby
gestahlt has quit [Read error: Connection reset by peer]
ahokaomaeha has joined #ruby
apeiros_ has joined #ruby
purp has joined #ruby
ahokaomaeha is now known as Guest8222
gestahlt has joined #ruby
Guest8222 has quit [Client Quit]
dougireton has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
Playground has joined #ruby
frogstarr78 has quit [Ping timeout: 245 seconds]
21WAAHJLR has quit [Read error: Connection reset by peer]
Guest58727 is now known as DaZ
cparen has joined #ruby
kojul has joined #ruby
chimkan has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
gestahlt has quit [Client Quit]
elux has joined #ruby
oscardelben has quit [Quit: oscardelben]
apeiros_ has quit [Remote host closed the connection]
mafolz has quit [Remote host closed the connection]
apeiros_ has joined #ruby
dg73 has joined #ruby
_nitti has quit [Remote host closed the connection]
dg73 has left #ruby [#ruby]
stonevil has quit [Quit: stonevil]
frogstarr78 has joined #ruby
jmeeuwen has quit [Ping timeout: 256 seconds]
psyprus has quit [Ping timeout: 248 seconds]
JMcAfreak has joined #ruby
goldenwest has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
hackerdude has joined #ruby
farkerhaiku has quit [Ping timeout: 245 seconds]
byped has quit [Quit: byped]
byped has joined #ruby
<goldenwest> I'm trying to learn ruby/rspec.... my directory tree looks like test/test.rb, test/spec/test_spec.rb.... inside test_spec.rb I have require 'test', but when I do cd test && rspec spec/ => LoadError No such file to load
_nitti has joined #ruby
<speakingcode-wor> goldenwest: i assume you already installed the needed package/gem?
<speakingcode-wor> might needt o check that your gem directory is in your $PATH env var
<goldenwest> speakingcode-wor: yes and it is
passenger_n00b has quit [Quit: Page closed]
dougireton has quit [Quit: Leaving.]
niklasb has joined #ruby
samuel02 has joined #ruby
phinfonet has joined #ruby
<goldenwest> speakingcode-wor: I don't yet understand how ruby handles versions/gems... but ruby -v shows 1.9.3 and ls ~/.gem/ruby shows 1.9.1
jmeeuwen has joined #ruby
arkiver has quit [Quit: Leaving]
samuel02 has quit [Remote host closed the connection]
<goldenwest> gem -v => 1.8.23 and gem list rspec => 2.12.0
tylersmith has joined #ruby
<speakingcode-wor> i'm noto sure but gem n ruby might need to be the same version, you might wanna give RVM a try to manage ruby versions but tbh i'm inexperienced with the environment aspects of ruby still
reset has joined #ruby
awkwords has joined #ruby
<JonnieCache> this is absolutely excellent: http://code.google.com/p/ostinato/
akemrir has quit [Ping timeout: 252 seconds]
<JonnieCache> wireshark in reverse
<JonnieCache> you can craft packets and inject them into the network
cparen has quit [Quit: cparen]
ngoldman has joined #ruby
chimkan__ has joined #ruby
matchaw_ has quit [Ping timeout: 248 seconds]
daniel_- has joined #ruby
zomgbie has joined #ruby
<goldenwest> speakingcode-wor: I found the answer - you have to put code files in lib/
dougireton has joined #ruby
<speakingcode-wor> ah yeah
erlingur has joined #ruby
abcdefg_ has joined #ruby
chimkan has quit [Ping timeout: 256 seconds]
chimkan__ is now known as chimkan
Banistergalaxy has quit [Ping timeout: 248 seconds]
pignata has quit [Ping timeout: 255 seconds]
a_a_g1 is now known as a_a_g
zigomir has quit [Quit: zigomir]
zenloop has joined #ruby
Spooner has joined #ruby
Banistergalaxy has joined #ruby
jonathanwallace has joined #ruby
adeponte has joined #ruby
goldenwest has quit [Quit: leaving]
Fretta has joined #ruby
matchaw_ has joined #ruby
keymone_ has joined #ruby
ZeeLiDoX has left #ruby [#ruby]
keymone_ has quit [Client Quit]
<Uranio> there are some gem for work with dokuwikis?
ExxKA has quit [Quit: This computer has gone to sleep]
vansonhk_ has joined #ruby
templaedhel has joined #ruby
jasond has joined #ruby
pignata has joined #ruby
purp has quit [Read error: Connection reset by peer]
purp has joined #ruby
idkazuma has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
pyrac has quit [Read error: Operation timed out]
tjbiddle has joined #ruby
JumpMast3r has joined #ruby
keymone has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
stonevil has joined #ruby
samuel02 has joined #ruby
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
stonevil has quit [Client Quit]
Playground has joined #ruby
mattbl has joined #ruby
Playground is now known as ahokaomaeha
fphilipe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chimkan__ has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
aantix has joined #ruby
<shevy> JonnieCache are you planning on EVIL actions
_carloslopes has joined #ruby
pcarrier has quit []
jpfuentes2 has quit [Read error: Connection reset by peer]
ebobby has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
dallasm has joined #ruby
bean has joined #ruby
a_a_g has quit [Quit: Leaving.]
chimkan has quit [Ping timeout: 245 seconds]
chimkan__ is now known as chimkan
polymar has quit [Remote host closed the connection]
Stilo has joined #ruby
carloslopes has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
pcarrier has joined #ruby
dr_bob has quit [Quit: Leaving.]
jonahR has quit [Quit: jonahR]
vlad_starkov has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
afoobar has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
vlad_starkov has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
bemathis has quit [Quit: bemathis]
buibex has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
zeade has joined #ruby
spider-mario has joined #ruby
rakm has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
psyprus has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
jpfuentes2 has joined #ruby
_bart has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
joeycarmello has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
maletor has joined #ruby
plotter has joined #ruby
filipe has quit [Remote host closed the connection]
benlieb has joined #ruby
rakm has joined #ruby
kold has joined #ruby
JohnBat26 has joined #ruby
<Eiam> thoughts on singletons in ruby classes?
<Eiam> I have this gem that provides an instance of a class and its called all over the place to get information across other gems & controllers in ruby.. I can pass it around withing specific places but it seems cumbersome to manage that
Jon30 has joined #ruby
<Eiam> so I was thinking well, the class should just enforce its own singleton so anyone asking into it for information gets the same instance back
<Eiam> yesterday I was debugging and we had 45 instances of the class, it was ridiculous
Al____ has joined #ruby
<Eiam> so I passed it around instead of letting people create new ones and cut it down to about 6 instances which is still too many IMO, but I can't think of another way to solve it aside from a singleton
vlad_starkov has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
bawigga has joined #ruby
<JonnieCache> Eiam: just put the stuff on the class itself
jgrevich has joined #ruby
<JonnieCache> Eiam: remember in ruby, classes are objects of class class
sepp2k has quit [Read error: Operation timed out]
<Eiam> well, that won't solve it because you will pay the cost of the lookup even if its a class method
Al__ has quit [Ping timeout: 255 seconds]
<Eiam> the expense is really in creation, not in overall resources to hold onto it
<Eiam> I was not clear enough in my original comment
<JonnieCache> what creation do you mean
sepp2k has joined #ruby
<Eiam> whenever you need information from the class it has to load up an xml file
<Eiam> and do some reads from the filesystem additionally
<abcdefg_> what do you think about nodejs?
<Eiam> so making it a class method won't solve that problem
<abcdefg_> should I learn ruby (and rails) first or first nodejs?
<otters> rails
<apeiros_> Eiam: singleton is a poor pattern IMO
<Eiam> abcdefg_: you are in a ruby channel so likely people are going to say ruby & rails, cmon now
<benlieb> is there a way to make android apps in ruby?
<apeiros_> almost in all places where I've seen it, it bit me
<Eiam> apeiros_: well, Its one I'm very familiar with from objc/cocoa
<Eiam> but I am looking for alternatives here =)
<apeiros_> using a singleton for *defaults* otoh is fine IMO
<breakingthings> PSA: If you or anyone you know uses Code Climate, update your badge! :) https://codeclimate.com/changelog/510d4fde56b102523a0004bf
<apeiros_> e.g., MyModel.new(db_connection=DB.default_connection)
<Eiam> the class answers information like "When you say X, here are all the relevant staticis about X"
greenysan has quit [Read error: Operation timed out]
cdt has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
<Eiam> relevant stats that you will definitely need otherwise you wouldn't be calling the class
<Eiam> its immutable content
plotter has quit [Quit: Leaving]
<Eiam> the class can never change it and has no mechanisms to do so
plotter has joined #ruby
<abcdefg_> can I also ask stuff about rails here?
RonScagz has joined #ruby
<apeiros_> abcdefg_: you can, but the better place is #rubyonrails
zenloop has quit [Read error: Connection reset by peer]
<Eiam> abcdefg_ there is a #rubyonrails channel
zenloop_ has joined #ruby
Guest55398 has quit [Read error: Operation timed out]
<abcdefg_> yes
hit has quit [Quit: hit]
chimkan___ has joined #ruby
<abcdefg_> interesting question why is there also a #rails channel? was rails ported?
RonScagz has quit [Client Quit]
<bean> no
cozby has joined #ruby
<bean> There is also ##rubyonrails
chimkan has quit [Ping timeout: 244 seconds]
chimkan___ is now known as chimkan
<abcdefg_> and there is #rails
<Eiam> we could keep looping, not sure in the value
brandon has joined #ruby
<Eiam> apeiros_: looks like I could just class MyClass include Singleton end and be set
chrishunt has joined #ruby
brandon is now known as Guest94197
<apeiros_> you're painting yourself into a corner there. but yes, that's the way to create a singleton class in ruby
<JonnieCache> apeiros_: how about for configuration?
<JonnieCache> thats when i generally stick stuff in classes like that
<apeiros_> JonnieCache: I said it all above
<Eiam> apeiros_: well what do you recommend instead given the problem?
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
<Eiam> somehow make every person that calls into the gem aware that they should look for an existing instance & use that instead?
<JonnieCache> apeiros_: im responding to what you said above. but yeah dont worry it wasnt important ;)
<apeiros_> Eiam: I actually already said it. I'd have an accessor for a lazy created default and use that as the default value for methods where you pass it.
_jc has joined #ruby
elplatt has quit [Quit: elplatt]
<apeiros_> e.g. class MyClass; def self.default_whatever; @default_whatever ||= new(*defaultstuff); end; end
<Eiam> ohhh
<apeiros_> and elsewhere: def foo(values_for_whatever=MyClass.default_whatever)
g0bl1n has quit [Quit: Ex-Chat]
<Eiam> yes good idea
vlad_starkov has joined #ruby
<apeiros_> alternatively, redesign your OO, so you have to pass it around less
<apeiros_> after all, that's one reason to have objects - to store data in the objects, so it doesn't have to be passed around
<Eiam> well in the suggestd way the object keeps track of itself
nga4 has joined #ruby
<Eiam> which i'd prefer
rodj has quit [Ping timeout: 245 seconds]
<Eiam> thank you
dallasm has quit [Remote host closed the connection]
braoru has joined #ruby
<Eiam> shit meeting
<Eiam> afk
<apeiros_> shit meetings are awesome
<apeiros_> hf
<aedorn> I hope they have air freshener
chrisja has joined #ruby
<JonnieCache> real hackers stay on irc during meetings
kold has quit [Remote host closed the connection]
<JonnieCache> tbf real hackers hold their meetings on irc
dougireton has joined #ruby
dallasm has joined #ruby
chrismcg is now known as zz_chrismcg
rupee has joined #ruby
megha is now known as baba
cobragoat has joined #ruby
DaZ has quit [Ping timeout: 245 seconds]
cawaker has quit [Quit: Linkinus - http://linkinus.com]
maxmanders has quit [Quit: Computer has gone to sleep.]
suptho has joined #ruby
<apeiros_> JonnieCache: especially when they're in the same room!
dougireton has quit [Ping timeout: 248 seconds]
<oz> been there :)
dougireton has joined #ruby
chrisnicola has joined #ruby
breakingthings has quit []
gestahlt has joined #ruby
<apeiros_> I only used IM for a colleague in the same room because he was wearing headphones, and I was too lazy to walk across the room :)
<shevy> lol
noxoc has quit [Quit: noxoc]
sabooky has quit [Ping timeout: 276 seconds]
<shevy> I always thought I am lazy
<shevy> then I read #ruby and realize I am not that lazy
_br_ has quit [Excess Flood]
vlad_starkov has quit [Remote host closed the connection]
baba is now known as gia
gia is now known as baba
_br_ has joined #ruby
joofsh has quit [Remote host closed the connection]
zomgbie has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
anderse has quit [Quit: anderse]
jonahR has joined #ruby
Vainoharhainen has quit [Ping timeout: 276 seconds]
NiteRain has quit [Ping timeout: 246 seconds]
<shevy> hmmm rails uses those tags like
<shevy> <%= submit_tag("Search") %>
<shevy> are those erb tags?
bradleyprice has joined #ruby
JohnBat26 has joined #ruby
<JonnieCache> the <%= %> is erb yes
suptho has quit [Quit: Leaving]
<JonnieCache> its not a rails thing, its part of ruby. you can use it anywhere to stick ruby code into strings
dmerrick has joined #ruby
_br_ has quit [Excess Flood]
ryanf has quit [Quit: leaving]
eldariof has joined #ruby
io_syl has joined #ruby
steventux has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
lurch_ has quit [Ping timeout: 252 seconds]
_br_ has joined #ruby
elico has joined #ruby
Umren has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
whowantstolivef1 has joined #ruby
EvanS is now known as EvanR
grzywacz has quit [Ping timeout: 244 seconds]
EvanR has quit [Changing host]
EvanR has joined #ruby
sn0wb1rd has joined #ruby
tvw has quit []
pcarrier has quit []
jrajav has quit [Quit: I tend to be neutral about apples]
<bean> eh, interpolating w/ #{} is better imo
Guest39123 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<shevy> I am kind of scanning through rails to see what is useful there
<shevy> I dont like those erb things
<shevy> but stuff like: orm_tag({:controller => "people", :action => "search"}, :method => "get", :class => "nifty_form")
<shevy> seems quite useful
horrror has joined #ruby
<shevy> hmm should have been *form_tag, not orm_tag
philcrissman has quit [Remote host closed the connection]
qohelet_ has joined #ruby
pyrac has joined #ruby
d2dchat has joined #ruby
<JonnieCache> shevy: have a look at https://github.com/plataformatec/simple_form
<JonnieCache> the implementation is slightly insane but its a great lib
<shevy> ok
slainer68 has quit [Remote host closed the connection]
twoism has joined #ruby
_nitti has quit [Remote host closed the connection]
chrisnicola has quit [Quit: This computer has gone to sleep]
LucidDreamZzZz has quit [Quit: Leaving]
<Dwarf> Evening, I'm screwing around with rakefiles and whatnot. Is it possible to run the rakefile and if a gem that is used in the code is not installed, it will install/prompt for install?
aaronmcadam has quit [Quit: aaronmcadam]
pcarrier has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
<JonnieCache> yeah its possible but its a bad idea
sayan has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
<JonnieCache> the most you should do is give the user a msg telling them to install it, not attempt to install it yourself
Hanmac has joined #ruby
jsilver has joined #ruby
pcarrier has quit [Client Quit]
<JonnieCache> Dwarf: you could do it like this http://www.hastebin.com/haqabuwofo.sql
<plotter> I'm trying to make a script that will download png files incrementally and I think I'm experiecing a problem because they start at 001
<plotter> Anyone want to take a look? I'll put it on pastebin
<Dwarf> Thanks JonnieCache
dallasm has quit [Remote host closed the connection]
imami|afk is now known as banseljaj
inokenty has quit [Quit: Leaving.]
banisterfiend has quit [Remote host closed the connection]
poga has joined #ruby
_nitti_ has joined #ruby
d2dchat has quit [Remote host closed the connection]
yekta has joined #ruby
liquid-silence has joined #ruby
enroxorz-work has joined #ruby
RurouniJones has quit [Remote host closed the connection]
cba has quit [Remote host closed the connection]
Smoth has joined #ruby
johnbebu has joined #ruby
<johnbebu> Hi guys. What does module_namespacing mean? And the <% operator? Is this valid Ruby code? https://github.com/rails/rails/blob/master/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
elplatt has joined #ruby
dcwu has joined #ruby
philcrissman has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
philcrissman has quit [Read error: Connection reset by peer]
mattbl has quit [Quit: This computer has gone to sleep]
Pandaen has quit [Remote host closed the connection]
jrist is now known as jrist-afk
Pandaen has joined #ruby
philcrissman has joined #ruby
noxoc has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
_nitti_ has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
_nitti has joined #ruby
_nitti_ has joined #ruby
<v0n> I think it's not possible to define a module function out of its definition, like this:
zomgbie has quit [Ping timeout: 248 seconds]
<v0n> def MyMod::MySubMod.foo; end
pcarrier has joined #ruby
yxhuvud2 has left #ruby [#ruby]
<v0n> is there another way?
yxhuvud has joined #ruby
kofno has joined #ruby
mercwithamouth has joined #ruby
NiteRain has joined #ruby
dougireton has quit [Quit: Leaving.]
johnbebu has quit [Quit: Page closed]
fulippo has joined #ruby
<fulippo> ciao
qohelet_ has quit [Quit: qohelet_]
<fulippo> !list
pskosinski has joined #ruby
Vert has joined #ruby
pskosinski_ has joined #ruby
__BigO__ has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
fulippo has quit []
_nitti has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
yacks has quit [Remote host closed the connection]
jpfuentes2 has quit [Read error: Connection reset by peer]
psyprus has quit [Changing host]
psyprus has joined #ruby
chussenot has joined #ruby
psyprus has left #ruby [#ruby]
jsilver has quit [Remote host closed the connection]
runixo has joined #ruby
chussenot has quit [Client Quit]
Crunchcat has joined #ruby
dougireton has quit [Client Quit]
powe has joined #ruby
tjbiddle has joined #ruby
dougireton has joined #ruby
<runixo> heyas. I need to uncompress a streamed gzip file; since Zlib::GzipReader expects an IO, I'm not sure what to do.. any hints?
igor_ has joined #ruby
Virunga has quit [Remote host closed the connection]
arya has quit [Read error: Connection reset by peer]
yakko has joined #ruby
<rking> runixo: File is a subclass of IO, so you can like, File.open('something')
c0rn has joined #ruby
Hanmac_ has joined #ruby
arya has joined #ruby
otters has quit [Ping timeout: 252 seconds]
poga_ has joined #ruby
<runixo> rking: yep, but I have each chunk of the file and I cannot feed GzipReader with multiple strings (it expects an initial parameter IO)
Jeaye has joined #ruby
<rking> runixo: Well, you could implement whatever parts of IO it uses. Like, duck type your way to success.
bricker`1ork has joined #ruby
<runixo> rking: mrmr, but I think the problem is on the GzipReader side, because it expects to have the whole data before it starts uncompressing..
sayan has joined #ruby
Guest39123 is now known as DaZ
<yfeldblum> runixo, if you need a real IO with a FD, you can make a pipe and, in a thread, write the chunks to the pipe
poga has quit [Ping timeout: 248 seconds]
<powe> hey all, I get "Could not find rake-0.8.7 in any of the sources" from the app I just installed (it worked earlier) however I had to upgrade rka to
<powe> version 0.9.2 for another app to work. I am think there is a linking issue somewhere but being new to these I have freaking clue where the issue
<powe> could be or how to resolve this. Any help will be be great.
aaronmcadam has joined #ruby
__BigO__ has joined #ruby
DaZ is now known as Guest61999
blaxter has quit [Quit: foo]
<rking> runixo: Well, if you cat foo.gz bar.gz > baz.gz; baz.gz is now a valid gzip
<rking> So can you at least operate on self-contained chunks?
bricker`work has quit [Ping timeout: 246 seconds]
<rking> (Then repeatedly extract)
<runixo> rking: oh. I didn't knew that. thanks!
poikon has quit [Remote host closed the connection]
<aces1up> if i create a custom exception, what should me initialize functio receieve and super to properly process the exception?
<aces1up> ex intialize(msg) ?? super(msg) is that is all thats needed?
<runixo> rking: but open("foo.gz").read(123) might not be a valid gzip..
<aces1up> I want to ensure backtrace method still works as it should.
vlad_starkov has quit [Remote host closed the connection]
_nitti_ has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
vansonhk_ has quit [Quit: vansonhk_]
nobuoka has quit [Quit: Leaving...]
bradleyprice has quit [Ping timeout: 248 seconds]
Nisstyre has quit [Ping timeout: 248 seconds]
_nitti_ has joined #ruby
sayan has quit [Ping timeout: 276 seconds]
Crunchcat has quit [Remote host closed the connection]
pskosinski has quit [Disconnected by services]
pskosinski_ is now known as pskosinski
girija_ has quit [Ping timeout: 240 seconds]
Crunchcat has joined #ruby
pskosinski_ has joined #ruby
joofsh has joined #ruby
chrisnicola has joined #ruby
hybris has quit [Quit: Leaving]
daniel_-_ has joined #ruby
mattbl has joined #ruby
pskosinski_ has quit [Client Quit]
zommi has quit [Quit: Leaving.]
daniel_- has quit [Ping timeout: 255 seconds]
_nitti has joined #ruby
_nitti_ has quit [Ping timeout: 252 seconds]
m8 has joined #ruby
chrisnicola has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 246 seconds]
<shevy> powe are you on debian
chrisnicola has joined #ruby
ehm_may has quit [Ping timeout: 255 seconds]
<powe> almost ;) its ubuntu
<shevy> yes
<shevy> is the same
<powe> yep
<shevy> they modify ruby
<shevy> what does "gem env" give you
robotmay has quit [Remote host closed the connection]
<shevy> also, do you use the debian-ruby or another ruby
<shevy> look at - INSTALLATION DIRECTORY
beiter has joined #ruby
<rking> runixo: Yes. I'm hoping maybe you can find a way to chunk it up along the lines that are actual .gz's
<powe> its RubyGems Environment:
<powe> - RUBYGEMS VERSION: 1.8.25
<powe> - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<powe> - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
daniel_-_ has quit [Client Quit]
<powe> - RUBY EXECUTABLE: /usr/bin/ruby1.8
<powe> - EXECUTABLE DIRECTORY: /usr/bin
<powe> - RUBYGEMS PLATFORMS:
<shevy> oh interesting
<powe> - ruby
<powe> - x86_64-linux
<powe> - GEM PATHS:
<shevy> that is better than debian :)
<powe> - /usr/lib/ruby/gems/1.8
<powe> - /home/test/.gem/ruby/1.8
<powe> - GEM CONFIGURATION:
<powe> - :update_sources => true
<powe> - :verbose => true
<powe> - :benchmark => false
<shevy> powe that is a bit much
<powe> - :backtrace => false
<powe> - :bulk_threshold => 1000
<powe> - REMOTE SOURCES:
<powe> sorry about that btw
<philcrissman> :-O
<shevy> put more than 4 or 5 lines on pastie ok
<shevy> I am surprised that ubuntu uses other paths than debian :)
<powe> yep sorry - realised after pressed send
_nitti_ has joined #ruby
<shevy> /usr/lib/ruby/gems/1.8 is quite sane
<shevy> debian has some /var/lib here
<shevy> what does "rake -v" give you?
_nitti has quit [Ping timeout: 246 seconds]
<shevy> oops
heyitsdave has joined #ruby
<shevy> rake -V
<powe> rake, version 0.9.2
<shevy> ok
apok has joined #ruby
<shevy> hmm
<shevy> rake, version 0.9.3.beta.1
<shevy> how did you install rake?
marr has quit [Ping timeout: 246 seconds]
<powe> 1 sec to look at my bash_history :p
Crunchcat has quit [Remote host closed the connection]
<shevy> no I mean
Evixion has joined #ruby
<shevy> did you use "gem install rake"?
<powe> yep I think so
<shevy> hmm
<shevy> Fetching: rake-10.0.3.gem (100%)
<shevy> Successfully installed rake-10.0.3
<shevy> I just did
<shevy> for me it downloads a newer version
<shevy> you could give this a try first
<shevy> rakev
<shevy> rake, version 10.0.3
<shevy> then try to install this rka thingy again
<powe> the error though says "Could not find rake-0.8.7 in any of the sources" and I am guessing that it looks for the older version before I upgraded
<shevy> what gem command did you use for it?
<shevy> sounds like a stupid app
pcarrier_ has joined #ruby
pcarrier_ has quit [Changing host]
pcarrier_ has joined #ruby
<shevy> oh
lancepantz has quit [Quit: ZNC - http://znc.in]
<shevy> perhaps it wants that specific version
fermion has joined #ruby
_bart has joined #ruby
Crunchcat has joined #ruby
<shevy> then I suppose you must install that rake version
_nitti_ has quit [Ping timeout: 255 seconds]
shashin has quit [Quit: shashin]
<powe> i think I did
_nitti has joined #ruby
<powe> gem install -v 0.8.7
<shevy> well hopefully that stupid app will work now
<shevy> good luck!
<powe> heh thanks man
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
<runixo> rking: ok. found a piece of code in em-http-request that seems to do the magic. thanks :)
pcarrier has quit []
bricker_ has quit [Ping timeout: 276 seconds]
Nisstyre has joined #ruby
_bart has left #ruby [#ruby]
decoponio has quit [Quit: Leaving...]
<powe> last quick question, is there any way to point the app to the new rake version or it needs rebuilding ?
bricker has joined #ruby
_nitti has quit [Read error: Operation timed out]
pignata has quit [Ping timeout: 264 seconds]
_nitti has joined #ruby
pignata has joined #ruby
jamescarr has joined #ruby
lurch_ has joined #ruby
nomenkun has joined #ruby
_nitti_ has joined #ruby
moted has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
_nitti__ has joined #ruby
<yfeldblum> powe, use bundler?
<powe> ah ok - thanks!
moted has joined #ruby
Al____ has quit [Ping timeout: 248 seconds]
kofno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
_nitti has quit [Ping timeout: 276 seconds]
francisfish has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
alx- has joined #ruby
_nitti_ has quit [Ping timeout: 246 seconds]
Smoth has left #ruby ["Leaving"]
<powe> ah pain! I "bundle install" and all the module versions needed were installed and now the app says : "Configuration is not a module"
otters has joined #ruby
matchaw_ has quit [Remote host closed the connection]
maxmanders has joined #ruby
_nitti has joined #ruby
_nitti__ has quit [Ping timeout: 252 seconds]
soulcake has quit [Quit: ZNC - http://znc.in]
<apeiros_> powe: the terms `gem` and `module` are not interchangeable
billyoc has joined #ruby
<powe> heh I know
dougireton has joined #ruby
danneu has joined #ruby
<powe> sorry mistake
jfl0wers has quit [Ping timeout: 264 seconds]
ebobby has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
anderse has joined #ruby
ebobby has joined #ruby
<Uranio> how could I send cookies in a Net::HTTP.get request
sepp2k has quit [Remote host closed the connection]
_nitti_ has joined #ruby
_nitti has quit [Ping timeout: 255 seconds]
<powe> google man
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
havenwood has joined #ruby
_nitti has joined #ruby
<Uranio> Net::HTTP.get(URI.parse('http://gutl.jovenclub.cu/wiki/inicio'),{'Cookie' => cookies})
banisterfiend has joined #ruby
kmurph has joined #ruby
<Uranio> powe: yeah is just my google VERY slow, thats why I don't make many questions here
billyoc has quit [Ping timeout: 248 seconds]
kirun has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
zerba has quit [Remote host closed the connection]
wakoinc has joined #ruby
poga_ has quit [Remote host closed the connection]
wakoinc has quit [Changing host]
wakoinc has joined #ruby
jarred has joined #ruby
breakingthings has joined #ruby
dougireton has quit [Quit: Leaving.]
_nitti_ has quit [Ping timeout: 245 seconds]
arturaz has quit [Ping timeout: 246 seconds]
elplatt has quit [Quit: elplatt]
<jarred> How do I dynamically get the name of the class that calls a method, within that method? So if Fizz.buzz is called from Foo.bar(), how do I get that Foo was the class that calls that method, without explicitly saying so?
francisfish has quit [Remote host closed the connection]
<jarred> (that method being Fizz.buzz)
<apeiros_> jarred: the caller of a method should not be relevant
<apeiros_> ruby does not provide a mechanism to get the caller (only the backtrace, via Kernel#caller)
Mon_Ouie has joined #ruby
<jarred> Okay
<canton7> there's a gem, but it's not production-ready iirc
<apeiros_> if you want information about the caller, pass it along
<jarred> yeah, I think I'll just do that
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
atno is now known as atno|AFK
winchester has joined #ruby
otters has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
arya has joined #ruby
banisterfiend has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
havenwood has quit [Remote host closed the connection]
slainer68 has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
banisterfiend has joined #ruby
shevy has joined #ruby
blf has joined #ruby
wmoxam has joined #ruby
Chinorro has quit [Remote host closed the connection]
pen has joined #ruby
jsilver has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
<blf> When working with an XML document which can contain multiple elements with the same name, but differing attributes. Would it be a bad idea to create a new symbol on the fly for each of the differing attributes found?
shashin has joined #ruby
ahokaomaeha has quit [Ping timeout: 252 seconds]
<canton7> generally auto-generating symbols can be a bad idea
aedorn has quit [Quit: Leaving]
slainer68 has quit [Ping timeout: 248 seconds]
jsilver has quit [Remote host closed the connection]
<blf> For instance, I could have a document with <Item name="Symbol"> and <Item name="Id"> etc. The problem is that the symbol names change between databases and there is only one generic document type definition.
chrishunt has quit [Quit: zZzZzZ...]
<blf> or rather the Item names change from database to database.
icole has joined #ruby
_jc has quit [Quit: Textual IRC Client: www.textualapp.com]
zomgbie has joined #ruby
<blf> https://gist.github.com/anonymous/4733511 this is what the Document Type Definition looks like if anyone is interested.
yekta has quit [Quit: yekta]
aedorn has joined #ruby
ckrailo has joined #ruby
JMcAfreak has quit [Ping timeout: 252 seconds]
fphilipe has joined #ruby
clocKwize has quit [Quit: clocKwize]
dougireton has joined #ruby
berserkr has quit [Quit: Leaving.]
tonytonyjan has quit [Quit: Lost terminal]
chimkan has quit [Ping timeout: 248 seconds]
bwlang has joined #ruby
slainer68 has joined #ruby
<aedorn> Random Linux distro Xyz is a "light" Linux distribution that contains the following 400+ applications that are all dependent on each other ... nope, not bitter. Not at all.
Trudko has joined #ruby
dougireton has quit [Ping timeout: 248 seconds]
ebobby has quit [Ping timeout: 244 seconds]
_carloslopes has quit [Read error: Connection reset by peer]
<blf> I'm wondering, If I create a symbol within an instance method, would that symbol then be tied to that instance?
carloslopes has joined #ruby
<Trudko> guys I have variable which can have values 1.0 0.5 or 0.0 and I want to format this float to int if value is 1.0 or 0.0 easiest way to do this?
elplatt has joined #ruby
<Trudko> ternary operator?
dougireton has joined #ruby
<Spooner> Trudko, n = n.to_i if n.to_i == n
<spider-mario> Trudko: format("%g", value)
<Trudko> ok thx will check
<Trudko> and lol at nick spider mario :D
<spider-mario> :p
<Trudko> made me laugh hh thx
wmoxam has quit [Ping timeout: 276 seconds]
mattbl has quit [Quit: Leaving]
<Trudko> I have been working all day literally over whole night, little laugh helps :D
zeade has quit [Remote host closed the connection]
mattbl has joined #ruby
chrishunt has joined #ruby
NiteRain has quit [Read error: Connection reset by peer]
icole has quit [Read error: Connection reset by peer]
matt_grill has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
matt_grill has quit [Quit: matt_grill]
_br_ has quit [Excess Flood]
razieliyo has joined #ruby
<razieliyo> hi
icole has joined #ruby
mordocai has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<razieliyo> I have a rsense-emacs specific question, does anyone uses it?
matt_grill has joined #ruby
<mordocai> I want to write some C code and load it from ruby. It is too much for me to want to use inline, but besides that what would you recommend? It will be a couple hundred lines or less with 10 or so functions.
<Trudko> razieliyo: out of couriosity are u doing coursera.org course?
<mordocai> I ask because there appear to be a LOT of ways to do it
otters has joined #ruby
_br_ has joined #ruby
<razieliyo> Trudko: wtf?
<Trudko> ok guess that is no :)
Morkel_ has joined #ruby
pen has quit [Remote host closed the connection]
atno|AFK is now known as atno
ryanf has joined #ruby
<powe> hey all still trying here with that "Configuration is not a module" - I am googling it and I can't seriously understand what the error means
<powe> start loosing hope with that one
wakoinc has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: chrishough]
wakoinc has joined #ruby
<ryanf> powe: it's a class
<razieliyo> Trudko: you guess right
DaltonUS has joined #ruby
<powe> yeah but how this error is generated is byond me
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
spider-mario has quit [Read error: Connection reset by peer]
ngoldman has quit [Remote host closed the connection]
<shevy> powe do you use a module called Configuration
<apeiros_> powe: this code generates it: `class Configuration; end; module Configuration; end`
<powe> there is a module named that in the project I am trying to fix
<powe> gitorious is the project
_br_ has quit [Excess Flood]
<apeiros_> there obviously also is a class named that
<apeiros_> and the class is loaded before the module
d2dchat has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
fermion has quit [Ping timeout: 276 seconds]
mordocai has quit [Quit: Page closed]
eldariof has quit []
<powe> Gitorious sounds like a pain to install
ngoldman has joined #ruby
<powe> it worked earlier today and after upgrading rake for another project - all hell broke loose
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
Uranio has quit [Quit: while you reading this, a kitty dies]
_br_ has joined #ruby
<shevy> powe, look here is an example to trigger this:
<shevy> class Configuration; end; def foo(i); puts i.class.to_s+' is not a module' unless i.is_a? Module; end; foo Configuration.new
<shevy> Configuration is not a module
_nitti has joined #ruby
blf has quit [Quit: Page closed]
<shevy> powe so either whoever wrote it made a mistake, or whoever uses it is making a mistake
fermion has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
jonathanwallace has joined #ruby
stkowski has joined #ruby
francisfish has joined #ruby
<powe> its probably me - still trying though
<powe> join #gitorious
nfk has joined #ruby
<powe> sorry forgot the slash
<Hanmac_> gitolite is cool
chrishough has joined #ruby
marr has joined #ruby
maxme has joined #ruby
<aces1up> i want to use the splat operator to split and array to send to a function, how would i do this if the splat operation may be performed on a string or an array?
<aces1up> what i mean is the value being sent to the function could be a String or an array.\
<aces1up> do i need to specifically check to see if its a string? doesn't seem to ruby too me.
ewilliam has quit [Ping timeout: 264 seconds]
jellosea has joined #ruby
benjamin__ has joined #ruby
<powe> Hanmac_, it is cool - and I bet its less painful
<Hanmac_> after you configured it, it is
d2dchat has quit [Remote host closed the connection]
razieliyo has quit [Read error: Connection reset by peer]
<heftig> aces1up: splat tries to convert the object to an array first. with a string, that just wraps it in an array so the splat ends up a no-op
bean has joined #ruby
mahmoudimus has joined #ruby
<heftig> i.e. foo(*"bar") == foo("bar")
theRoUS has quit [Ping timeout: 260 seconds]
<jellosea> can a method take two parameters and a block?
<banisterfiend> jellosea: no, that's too much for ruby to handle
<jellosea> how do i make the method declaration and call
<banisterfiend> r u trying to breka the system
<jellosea> banisterfiend: hahah no seriously
<banisterfiend> break*
<jellosea> cos it works with one - like method(param) {|x| puts x } works
<jellosea> but method (param1, param2) { |x| puts x } doesnt work
templaedhel has quit [Quit: Leaving...]
<jellosea> def method (param1, param2, &x) is the declaration
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
stormetrooper has quit [Ping timeout: 276 seconds]
elplatt_ has joined #ruby
<canton7> that's 'cos the second one has a space between 'method' and '(', and the first one doesn't?
randomenduser has joined #ruby
<canton7> if by 'doesn't work' you mean 'throws a SyntaxError'
Squarepy has joined #ruby
matt_grill has quit [Remote host closed the connection]
elplatt_ has quit [Client Quit]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
statarb3 has quit [Ping timeout: 248 seconds]
d2dchat has joined #ruby
<randomenduser> if I `require 'test/unit'` @ the top of my file, shouldn't I have `assert_equal` available to that file?
<Hanmac_> jellosea it is the space after method
<jellosea> wow
<jellosea> yeah thanks guys
<jellosea> i didnt even copy and paste
<jellosea> i was just typing from memory
d2dchat has quit [Remote host closed the connection]
<jellosea> its crazy how i made teh same mistake twice haha
Crunchcat has quit [Quit: Auf wiedersehen]
mark_locklear has quit [Ping timeout: 248 seconds]
elplatt has quit [Ping timeout: 252 seconds]
<canton7> lucky for you you did ;)
lahwran has quit [Excess Flood]
maxme has left #ruby [#ruby]
carloslopes has quit [Remote host closed the connection]
Xeago has joined #ruby
joeycarmello has quit [Remote host closed the connection]
lahwran has joined #ruby
MrSaku has joined #ruby
<MrSaku> How to repeat holocaust, fast
<MrSaku> Whats difference between nigger and barrel of shit? its the barrel hhaahaha@!
MrSaku has quit [K-Lined]
<benjamin__> is anyone familiar with watir?
<benjamin__> im trying to automate school enrollment and i can't seem to pin down the links
etcetera has joined #ruby
_jc has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
ewilliam has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
havenn_ has joined #ruby
billy_ran_away has quit [Ping timeout: 248 seconds]
randomenduser has quit [Quit: Lost terminal]
robbyoconnor has joined #ruby
chimkan has joined #ruby
billy_ran_away has joined #ruby
uris has quit [Ping timeout: 248 seconds]
benlieb has quit [Client Quit]
Monie has joined #ruby
ngoldman has quit [Remote host closed the connection]
chimkan has quit [Client Quit]
ryanf has quit [Quit: leaving]
mando has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
atyz has joined #ruby
Virunga has joined #ruby
philcrissman has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
kmurph has quit [Quit: kmurph]
Virunga has quit [Remote host closed the connection]
klj613 has joined #ruby
JoeyJoeJo has quit [Read error: Connection reset by peer]
jrist-afk is now known as jrist
templaedhel has joined #ruby
templaedhel has quit [Client Quit]
hoelzro|away is now known as hoelzro
angusiguess has quit [Ping timeout: 256 seconds]
<klj613> hello - i got a hash... how can i assign/create an array to a symbol?
bawigga has quit [Ping timeout: 248 seconds]
JoeyJoeJo has joined #ruby
grayson has quit [Quit: Textual IRC Client: www.textualapp.com]
<klj613> foo = { :bar => [:foo, :bar]}
dougireton has joined #ruby
chimkan has joined #ruby
DrShoggoth has quit [Ping timeout: 240 seconds]
<Hanmac_> didnt you solv your own question?
bawigga has joined #ruby
<klj613> well some reason when i do that a error coming up.. so i guess its something else.
<canton7> what error?
<canton7> (that usually helps)
<havenn_> klj613: Are you using Ruby 1.9?
<klj613> probably. im new to ruby and i can bearly get it to work sometimes (even with rvm)
<klj613> it was a different error anyway..
phinfonet has quit [Ping timeout: 252 seconds]
<bean> >> foo = { :bar => [ :foo, bar] }
<eval-in> bean: Output: "/tmp/execpad-ae83d91aa35c/source-ae83d91aa35c:1:in `<main>': undefined local variable or method `bar' for main:Object (NameError)\n" (http://eval.in/9159)
<bean> >> foo = { :bar => [ :foo, :bar] }
<eval-in> bean: Output: "" (http://eval.in/9160)
<bean> >> foo = { :bar => [ :foo, :bar] }; p foo.inspect
<eval-in> bean: Output: "\"{:bar=>[:foo, :bar]}\"\n" (http://eval.in/9161)
angusiguess has joined #ruby
uris has joined #ruby
jpfuentes2 has joined #ruby
Elhu has joined #ruby
<runixo> foo = `kill #{$$}`
<runixo> eval-in: c'mon, do your thingy :)
JMcAfreak has joined #ruby
<apeiros_> I have that as Kernel#t!
<Muz> runixo: you're missing your preceding >>
<havenn_> eval-in is kinda evil
AndChat| has joined #ruby
<apeiros_> actually, kill -9 $$
<runixo> >> foo = `kill #{$$}`
<eval-in> runixo: Output: "" (http://eval.in/9164)
bawigga has quit [Quit: Computer has gone to sleep.]
baphled has joined #ruby
<canton7> even so, "Forbidden syscall pipe". Unsurprisingly, they've anticipated you...
<apeiros_> runixo: playing around with eval-in is not tolerated, please stop.
Banistergalaxy has quit [Ping timeout: 255 seconds]
<havenn_> i'd rather not have the bot, personally :P
<hoelzro> I like having it around
voodoofish has quit [Ping timeout: 245 seconds]
<hoelzro> makes it easy to demonstrate code
<apeiros_> just that the output format of eval-in is ugly
<havenn_> apeiros_: agreed!
whowantstolivef1 has quit [Quit: quit]
<havenn_> does keep us company on those cold nights though... my only friend, a bot
kmurph has joined #ruby
dmiller has joined #ruby
carloslopes has joined #ruby
Criztian has joined #ruby
piotr_ has joined #ruby
grayson has joined #ruby
fmcgeough has joined #ruby
bawigga has joined #ruby
<Hanmac_> apeiros_ the bot has still the problem that you cant use it in private chat ... :(
<apeiros_> I know
klj613 has quit [Quit: Leaving]
ryanf has joined #ruby
philcrissman has joined #ruby
* apeiros_ continues working on his i18n utility
BRMatt has joined #ruby
bricker is now known as bricker`LA
bricker`1ork is now known as bricker
fphilipe has quit [Remote host closed the connection]
havenn_ is now known as havenwood
Elhu has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Ping timeout: 248 seconds]
phinfonet has joined #ruby
voodoofish has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
ngoldman has joined #ruby
maxmanders has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
poikon_ has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
pavilionXP has quit [Ping timeout: 276 seconds]
rmartin has quit [Remote host closed the connection]
rezzack has joined #ruby
emocakes has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<Hanmac_> shevy i get the pattern NICE working ... they even work when you use "*/*.rb"
maxmanders has joined #ruby
<emocakes> hallo hanmac
<emocakes> moin
<emocakes> :p
the_mentat has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Remote host closed the connection]
mattbl has quit [Quit: This computer has gone to sleep]
tokime06 has joined #ruby
shashin has quit [Quit: shashin]
poikon has joined #ruby
vlad_starkov has joined #ruby
pavilionXP has joined #ruby
tokime06 has left #ruby [#ruby]
pyrac has quit [Quit: pyrac]
benjamin__ has quit [Ping timeout: 260 seconds]
joeycarmello has joined #ruby
pavilionXP has quit [Client Quit]
mephux has quit [Excess Flood]
mephux has joined #ruby
toekutr has joined #ruby
byped has quit [Quit: byped]
aantix_ has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
joofsh has joined #ruby
joofsh has quit [Remote host closed the connection]
chrisnicola has quit [Quit: Leaving]
pen has joined #ruby
pyrac has joined #ruby
ngoldman has quit [Remote host closed the connection]
ngoldman has joined #ruby
aantix has quit [Ping timeout: 244 seconds]
aantix_ is now known as aantix
LouisRoR has quit [Ping timeout: 260 seconds]
jlast has quit [Ping timeout: 245 seconds]
Goles has joined #ruby
johndouthat has quit [Quit: johndouthat]
<xybre> So, I'm wanting to maintain a fixed environment, and then have multiple different pieces of code (methods, objects, whatever) potentially modify the environment - locally, without interfering with eachother. I can do this with `fork`, but its less portable. (rspec does something like this, I believe)
joofsh has joined #ruby
johndouthat has joined #ruby
johndouthat has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
poikon has quit [Remote host closed the connection]
carloslopes has joined #ruby
poikon has joined #ruby
<angelixd> xybre: what you are thinking of is called dynamic scoping
<angelixd> also, what is up :-P
Proshot has joined #ruby
poikon_ has joined #ruby
<Muz> /w 32
poikon_ has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
bradleyprice has joined #ruby
poikon_ has joined #ruby
zigomir has joined #ruby
poikon__ has joined #ruby
lurch_ has quit [Quit: lurch_]
havenwoo_ has joined #ruby
statarb3 has quit [Quit: Leaving]
poikon has quit [Ping timeout: 245 seconds]
<heftig> xybre: that's provided by the ruby 2.0 refinements, i guess
poikon__ is now known as poikon
interactionjaxsn has quit [Remote host closed the connection]
<ner0x> Has anyone done any work with iCalendars or vCards? Know of any gems to look up as a reference/guide etc. Any leads would be appreciated.
SCommette_ has joined #ruby
poikon_ has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 256 seconds]
nomenkun has quit [Remote host closed the connection]
SCommette has quit [Ping timeout: 276 seconds]
SCommette_ is now known as SCommette
colonolGron has joined #ruby
poikon has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
madhatter has quit [Ping timeout: 245 seconds]
mpfundstein has joined #ruby
razibog has joined #ruby
etcetera has quit []
raddazong has joined #ruby
etcetera has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
etcetera has quit [Client Quit]
codecop has quit [Quit: Išeinu]
elico has quit [Ping timeout: 264 seconds]
phinfonet has quit [Ping timeout: 244 seconds]
hackerdude has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
elico has joined #ruby
powe has quit [Quit: powe]
Nisstyre has quit [Quit: Leaving]
mando has joined #ruby
<xybre> heftig: not exactly, but it is a related concept :)
elplatt has joined #ruby
pyrac has quit [Quit: pyrac]
kmicinski has joined #ruby
<xybre> angelixd: Ideally a sort of copy on write mechanism would be the best. I don't think dynamic scoping covers it.
pencilcheck has joined #ruby
<xybre> Also hey angelixd long time no see :p
<kmicinski> I am confused by some behavior in 1.9.3 relating to lambdas and Proc#binding
havenwoo_ has quit [Ping timeout: 256 seconds]
<kmicinski> Why does line 4 print 'local-varaible' and line 5 print nil
benlieb has joined #ruby
<kmicinski> It was my understanding that both of them should print nil, but I don't see why line 4 gives a local variable
<kmicinski> (It seems lambda causes the interpreter to "reach out" into the scope)
havenwood has joined #ruby
kmurph has quit [Quit: kmurph]
<xybre> What I want is an immutable environment with each actor being able to "change" the objects in the environment, but only for their context. It's not a local variable, its the entire global context of the application. This is why I said "fork" would work.
powe has joined #ruby
<xybre> However, fork isn't particularly portable. (noop on Windows, and Jruby requires special options to enable it)
braoru has quit [Read error: Operation timed out]
dougireton has joined #ruby
tjbiddle_ has joined #ruby
fedza has quit [Ping timeout: 256 seconds]
<heftig> xybre: there's been some multi-vm work
punkrawkR has quit [Read error: Connection reset by peer]
zeade has joined #ruby
mparodi has quit [Ping timeout: 248 seconds]
gilligan_ has joined #ruby
dougireton has quit [Client Quit]
chrisja has quit [Quit: leaving]
aantix has quit [Read error: Connection reset by peer]
jarred has quit [Ping timeout: 240 seconds]
aantix has joined #ruby
<xybre> Rspec does reset objects between tests right? So it must be doing something similar to this. I was hoping for the name of the tecnique or something so I could avoid reading all of Rspec's source code to figure it out :)
atmosx has joined #ruby
pencilcheck has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
<atmosx> hello
tjbiddle_ is now known as tjbiddle
chimkan has quit [Quit: chimkan]
theRoUS has joined #ruby
Hanmac_ has quit [Ping timeout: 245 seconds]
<Spooner> xybre, Rspec doesn't reset anything any more than you do in #before/#after/#let
dougireton has joined #ruby
jarred has joined #ruby
horrror has quit [Quit: horrror]
AndChat| has quit [Ping timeout: 248 seconds]
rezzack has quit [Quit: Leaving.]
Chinorro has joined #ruby
_nitti has quit [Remote host closed the connection]
<gilligan_> any vim users in here ? 'require nokogiri' doesn't work when run inside a vim ruby code block - i'm trying to understand what paths i might have to specify or configs i need to fiddle with
niklasb has quit [Ping timeout: 260 seconds]
kmicinski has quit [Quit: leaving]
_nitti has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
<xybre> Spooner: Ah right. So does it not do anything other than overwrite the objects each time? That would produce errors for Constants.
_nitti_ has joined #ruby
_carloslopes has joined #ruby
allaire has joined #ruby
<hoelzro> gilligan_: your Vim was probably built against /usr/bin/ruby
<hoelzro> so you have to find out which paths it uses
<gilligan_> hoelzro, right thanks.. i just figured out looking at $:
<hoelzro> /usr/bin/ruby -e 'puts $:' should tell you
<hoelzro> ok, cool
<gilligan_> hoelzro, thanks though
mityaz has joined #ruby
alesguzik has joined #ruby
mityaz is now known as Guest76618
kmurph has joined #ruby
Guest76618 is now known as mityaz_
Banistergalaxy has joined #ruby
carloslopes has quit [Ping timeout: 256 seconds]
etcetera has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
fedza has joined #ruby
_nitti has quit [Ping timeout: 276 seconds]
DaltonUS has quit [Quit: DaltonUS]
jarred has left #ruby [#ruby]
mityaz_ has quit [Client Quit]
ForSpareParts has quit [Disconnected by services]
elux has quit [Quit: Bye!]
beandip has quit [Quit: WeeChat 0.3.2]
ForSpareParts_ has joined #ruby
abcdefg_ has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
geekbri has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 245 seconds]
mityaz_ has joined #ruby
havenwood has quit [Remote host closed the connection]
mityaz_ has left #ruby [#ruby]
skrewler has joined #ruby
skrewler has quit [Client Quit]
kpshek has quit []
tjbiddle has quit [Quit: tjbiddle]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jlast has joined #ruby
colonolGron has quit [Quit: leaving]
timeout has quit [Quit: leaving]
tjbiddle has joined #ruby
horrror has joined #ruby
_nitti_ has quit [Ping timeout: 256 seconds]
horrror has quit [Client Quit]
wmoxam has joined #ruby
_nitti has joined #ruby
__BigO__ has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
yshh has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
elico has quit [Remote host closed the connection]
moos3 is now known as KB1ZIB
wakoinc has quit [Quit: wakoinc]
pskosinski has quit [Read error: No route to host]
fedza has quit [Ping timeout: 248 seconds]
pskosinski_ has joined #ruby
renanoronfle has quit [Quit: Saindo]
DrShoggoth has quit [Ping timeout: 256 seconds]
chrishough has quit [Quit: chrishough]
gosshedd has quit [Ping timeout: 245 seconds]
pskosinski_ is now known as pskosinski
tjbiddle_ has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
yshh_ has joined #ruby
iamjarvo has quit [Quit: Leaving.]
yshh has quit [Ping timeout: 245 seconds]
francisfish has joined #ruby
jonahR has quit [Quit: jonahR]
breakingthings has quit []
brianpWins has quit [Quit: brianpWins]
ddd has quit [Ping timeout: 244 seconds]
cupakromer has joined #ruby
francisfish has quit [Remote host closed the connection]
rotor_ has joined #ruby
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
<rotor_> does anyone know howto make a ruby script launch into the background and stay there similar to using & on the cmd line from within the script itself
<rotor_> ?
<yfeldblum> rotor_, Process.detach
<rotor_> rthanks yfeldblum
<dustint> away not busy
rotor_ has left #ruby [#ruby]
brianpWins has joined #ruby
mityaz_ has joined #ruby
dougireton has quit [Quit: Leaving.]
SeanLazer has quit [Quit: SeanLazer]
emocakes has quit [Quit: emocakes]
yshh has joined #ruby
mityaz_ has left #ruby [#ruby]
codezombie has joined #ruby
yshh_ has quit [Read error: Connection reset by peer]
_jc has quit [Quit: Textual IRC Client: www.textualapp.com]
winchester has quit [Quit: Leaving]
ako has joined #ruby
rdark has quit [Read error: Operation timed out]
axl_ has quit [Quit: axl_]
emocakes has joined #ruby
aquaranto has quit []
invisime has quit [Quit: Leaving.]
chrishough has joined #ruby
DrShoggoth has joined #ruby
pskosinski has quit [Ping timeout: 260 seconds]
<apeiros_> can glob expressions be escaped?
carloslopes has joined #ruby
interactionjaxsn has joined #ruby
aho has quit [Ping timeout: 248 seconds]
allaire has quit []
interactionjaxsn has quit [Remote host closed the connection]
yshh has quit [Read error: Connection reset by peer]
strtok has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
ako is now known as aho
vlad_starkov has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
JensenDied has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh_ has joined #ruby
_carloslopes has quit [Ping timeout: 248 seconds]
x82_nicole has joined #ruby
pskosinski has joined #ruby
postmodern has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<apeiros_> seems like the answer is yes
<Trudko> Guys I want to use my custom error messages in my language so I need to use spec chars, but I get syntax error http://pastie.org/6090740
<Trudko> i have no problem if I use a instead of á
yshh has joined #ruby
<Xeago> Trudko: mark your file as utf8
DrCode has quit [Ping timeout: 276 seconds]
carlyle has quit [Remote host closed the connection]
yshh_ has quit [Ping timeout: 255 seconds]
mando has quit [Remote host closed the connection]
bawigga has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
hoelzro is now known as hoelzro|away
yshh has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
therod has joined #ruby
yshh has joined #ruby
<greenarrow> How can i debug why my app is not sending emails
<greenarrow> I've added config.action_mailer.default_url_options
idkazuma has joined #ruby
banisterfiend has joined #ruby
megha has joined #ruby
Squarepy has quit [Quit: Leaving]
gyre007 has quit [Ping timeout: 248 seconds]
Goles has quit [Ping timeout: 245 seconds]
baba has quit [Ping timeout: 264 seconds]
<greenarrow> Getting No connection could be made because the target machine actively refused it
ner0x has quit [Remote host closed the connection]
jarred has joined #ruby
bawigga has joined #ruby
ahokaomaeha has joined #ruby
s1n4 has joined #ruby
<jarred> say I'm a complete idiot and I have a method that calls another method based on user input, e.g. Object.send(params[:method].to_sym), what's the worst thing that someone could do?
jsilver has joined #ruby
<Trudko> xeago k did the trick somehow i think that my ide managed that automaticallz "/
dougireton has joined #ruby
salonso has joined #ruby
blacktulip has quit [Remote host closed the connection]
s1n4 has left #ruby [#ruby]
Criztian has quit [Ping timeout: 255 seconds]
bawigga has quit [Client Quit]
bawigga has joined #ruby
DrShoggoth has quit [Ping timeout: 248 seconds]
gilligan_ has quit [Quit: Leaving]
DaltonUS has joined #ruby
Morkel has quit [Quit: Morkel]
Criztian has joined #ruby
grayson has quit [Ping timeout: 252 seconds]
imami|afk has quit [Read error: Operation timed out]
<banisterfiend> jarred: delete your whole hard drive?
jimeh has quit [Quit: Computer has gone to sleep.]
* greenarrow slaps banisterfiend around with a large trout
phantasm66 has quit [Quit: *sleeeep….]
jpfuentes2 has quit [Read error: Connection reset by peer]
<csmrfx> jarred: install a malware command computer, gather all your nude photos and make a pron site with them and steal your cc #
Criztian has quit [Remote host closed the connection]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
<banisterfiend> jarred: take over your whole past and future and leave memories that disgust you
jsilver has quit [Remote host closed the connection]
<Kuifje> that sounds about right
cyro has joined #ruby
plotter has quit [Quit: Leaving]
plotter has joined #ruby
emmanuelux has joined #ruby
rezzack has joined #ruby
DrCode has joined #ruby
Monie has quit [Ping timeout: 256 seconds]
banseljaj has joined #ruby
plotter has quit [Client Quit]
wendallsan has joined #ruby
* csmrfx one simply doesnt walk into the user input
_jc has joined #ruby
ryanh has joined #ruby
<jarred> and what if it was a subclass of Object?
<jarred> Would that change anything at all?
__BigO__ has joined #ruby
<banisterfiend> jarred: every object is an instance of a subclass of Object
<csmrfx> only thing that changes is proper sanitation and safe parsing of user input
dmiller has quit [Ping timeout: 256 seconds]
bawigga has quit [Ping timeout: 246 seconds]
<jarred> yeah I'll just sanitize it properly instead of being lazy
strtok has joined #ruby
<csmrfx> sanitytize
bawigga has joined #ruby
powe has left #ruby [#ruby]
<Trudko> I am validation model for uniquenese but when I get validation error exception is thrown and I got nastz looking web page rather then nice error message on my page , what to do about it? my code http://pastie.org/6090899
jsilver has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
nimred has quit [Ping timeout: 245 seconds]
yshh has quit [Ping timeout: 245 seconds]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
nimred has joined #ruby
zigomir has quit [Quit: zigomir]
<Xeago> Trudko: catch it, or use some rack plugin that displays stuff
<wildcard0> Trudko: from a quick glance, you hve the view looking at @league, but your controller uses a local variable "league" (without the @)
<Xeago> or redirect errors to 500.html
<Xeago> or similar
<Trudko> wildcard0 ok i knew it would be something stupid because bz defualt error messages are prettz nice afaik
ngoldman has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
twoism has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
kmurph has quit [Quit: kmurph]
staafl has joined #ruby
hit has joined #ruby
alanp has quit [Read error: Connection reset by peer]
graft has quit [Ping timeout: 255 seconds]
alanp has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
razibog has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
ccooke has quit [Quit: Lost terminal]
bwlang has left #ruby [#ruby]
ccooke has joined #ruby
razibog has joined #ruby
butblack has joined #ruby
xclite has quit [Remote host closed the connection]
butblack has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
seba4 has quit [Ping timeout: 264 seconds]
fedza has joined #ruby
samuel02 has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 276 seconds]
danielpcox has quit [Ping timeout: 245 seconds]
piotr__ has joined #ruby
axl_ has joined #ruby
piotr_ has quit [Ping timeout: 276 seconds]
staafl has quit [Quit: Leaving]
jpfuentes2 has joined #ruby
elplatt has quit [Quit: elplatt]
pu22l3r_ has joined #ruby
jonathanwallace has joined #ruby
Xeago has quit [Remote host closed the connection]
stopbit has quit [Quit: Leaving]
s1n4 has joined #ruby
s1n4 has quit [Client Quit]
Monie has joined #ruby
jimeh has joined #ruby
s1n4 has joined #ruby
stormetrooper has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
pu22l3r has quit [Ping timeout: 256 seconds]
noxoc has quit [Quit: noxoc]
backjlack_ has quit [Remote host closed the connection]
angusiguess has joined #ruby
kmurph has joined #ruby
arya has quit [Read error: Connection reset by peer]
gestahlt has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.2/20130201065344]]
segv- has quit [Quit: segv-]
seba4 has joined #ruby
Kuifje has quit [Ping timeout: 260 seconds]
plotter has joined #ruby
ahokaomaeha has quit [Ping timeout: 245 seconds]
arya has joined #ruby
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has quit [Ping timeout: 252 seconds]
rakun has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
jsilver has quit [Read error: No route to host]
atyz has quit [Quit: Leaving...]
jrist has quit [Quit: o no u din't]
rakun has quit [Client Quit]
peteyg has quit [Ping timeout: 272 seconds]
rakun has joined #ruby
onemanjujitsu has joined #ruby
nari has joined #ruby
peteyg has joined #ruby
benlieb has quit [Quit: benlieb]
etcetera has quit []
havenn has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
generalizzimo has quit [Remote host closed the connection]
kmurph has quit [Quit: kmurph]
Virunga has joined #ruby
therod has quit [Quit: Leaving...]
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
alx- has quit [Ping timeout: 252 seconds]
zastern has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
TomJ has quit [Ping timeout: 248 seconds]
TomJ_ is now known as TomJ
khayes_ has joined #ruby
carloslopes has quit [Remote host closed the connection]
jimeh has quit [Quit: Computer has gone to sleep.]
khayes_ has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
s__dana has quit [Quit: s__dana]
Banistergalaxy has joined #ruby
slainer68 has quit [Remote host closed the connection]
khayes has quit [Ping timeout: 276 seconds]
hit has quit [Quit: hit]
EPIK has joined #ruby
rakun has quit [Quit: Saliendo]
rakun has joined #ruby
baphled has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 252 seconds]
beiter has quit [Quit: beiter]
wroberts has joined #ruby
bawigga has quit [Quit: Computer has gone to sleep.]
awkwords has quit [Quit: Lost terminal]
jonathanwallace has quit [Ping timeout: 256 seconds]
wroberts has quit [Read error: Connection reset by peer]
wroberts has joined #ruby
wroberts has quit [Read error: Connection reset by peer]
wr has joined #ruby
_nitti has quit [Remote host closed the connection]
wr has quit [Read error: Connection reset by peer]
rakun has quit [Client Quit]
wr has joined #ruby
rakun has joined #ruby
erlingur has quit [Quit: Textual IRC Client: www.textualapp.com]
wr has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
solidoodlesuppor has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]]
rakun has quit [Client Quit]
rakun has joined #ruby
ahokaomaeha has joined #ruby
wroberts has joined #ruby
bawigga has joined #ruby
wroberts has quit [Read error: Connection reset by peer]
wr has joined #ruby
__BigO__ has quit [Remote host closed the connection]
kmurph has joined #ruby
bawigga has quit [Client Quit]
<banisterfiend> postmodern: ping
kmurph has quit [Client Quit]
<banisterfiend> nm
maxmanders has quit [Quit: Computer has gone to sleep.]
DaltonUS has quit [Quit: DaltonUS]
BlackBladeX has joined #ruby
atmosx has quit [Quit: And so the story goes…]
ThePicard has quit [Ping timeout: 246 seconds]
tjbiddle_ has joined #ruby
forced_request has joined #ruby
wargasm has left #ruby [#ruby]
Mchl has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle_ is now known as tjbiddle
samlt has quit [Ping timeout: 246 seconds]
f0ster has quit [Ping timeout: 240 seconds]
kmurph has joined #ruby
dmiller has joined #ruby
Xeago has joined #ruby
jaygen has joined #ruby
kmurph has quit [Client Quit]
jerius has quit [Read error: Operation timed out]
yourmysin has joined #ruby
djwonk has joined #ruby
jimeh has joined #ruby
<djwonk> I'm thinking about giving a plain ruby object an arel-type interface … #all #where etc. Any recommended examples?
forced_request has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
nari has quit [Ping timeout: 276 seconds]
Nisstyre-laptop has joined #ruby
yourmysin has quit [Remote host closed the connection]
chussenot has joined #ruby
<csmrfx> array of tags as strings, you mean?
<djwonk> csmrfx: I guess I'm hunting for examples of arel on top of something minimal, maybe just an array
carloslopes has joined #ruby
<csmrfx> lol, you want examples?
<djwonk> csmrfx: I'm hunting on github and whatnot to see if this is somewhat un-crazy, yes
<csmrfx> just slap em in an array