apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
<apeiros_> well, 3 actually
<apeiros_> good night yugui_zzz
z3ndrag0n has quit [Ping timeout: 265 seconds]
<shevy> hehe
<shevy> is yugui ever writing on the channel here ... :D
<apeiros_> I don't think I've ever seen her write something
<apeiros_> but that may be due to the timezones
<codestorm> I'm looking for opinions on a stack for a social game REST API. No html, just JSON. It'll need to scale in case the game takes off, so it''ll most likely end up as a could soltuon a cloud most likely, should
<codestorm> oops, it'll most likely end up as a cloud solution.
brianpWins_ has joined #ruby
brianpWins has quit [Ping timeout: 246 seconds]
brianpWins_ is now known as brianpWins
jonathan_ has quit [Remote host closed the connection]
<codestorm> offhand, I'm thinking Ruby/sinatra and maybe mongoDB
<apeiros_> scaling is a hard problem. hard problems are expensive to solve. which is why you usually should concentrate on it when it becomes necessary.
<apeiros_> because usually when it becomes necessary, you also get the financial tools to pay for the solutions.
<banisterfiend> apeiros_: which do u prefer tmux or screen
<apeiros_> I don't use either
Karmaon has joined #ruby
<oz> codestorm: Sinatra's a good choice, I've heard good things about Grape too if you're building an API, but never got to use it.
<codestorm> thanks, i hadn't heard of Grape
<oz> you should check it out to see if it fits your needs better than a bare Sinatra ^^
RainbowDashh has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
lolsuper_ has joined #ruby
lolsuper_ has quit [Changing host]
lolsuper_ has joined #ruby
<codestorm> yeah, I'll look into it
sorbo_ has joined #ruby
iocor has joined #ruby
<codestorm> any thoughts on a back end? MongoDB? something else?
<oz> well, what do you know?
<codestorm> nothing that I'd want to use, really, I know MS-SQL, I've used noSQL on google app engine… so I'd rather pick the best tool and learn it
nfk has quit [Quit: yawn]
<oz> well mysql or mongodb are both fine, and have good support in ruby
<oz> postgresql is another good choice if you don't like Oracle :P
ukd1 has joined #ruby
<oz> I'd run a few benchs if unsure
freeayu has joined #ruby
<codestorm> thanks again, you too apeiros_
<oz> you're welcome
jimeh has quit [Ping timeout: 248 seconds]
looopy has quit [Remote host closed the connection]
hunglin has quit [Quit: Leaving.]
axiak has quit [Remote host closed the connection]
bwlang has quit [Quit: bwlang]
Ravi has joined #ruby
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
Karmaon has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
fantazo has quit [Ping timeout: 240 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
nobitanobi has joined #ruby
fulmato has joined #ruby
wpaulson has joined #ruby
Sheehan has quit [Quit: Sheehan]
GuidovanPossum has quit [Quit: GuidovanPossum]
IrishGringo has quit [Ping timeout: 244 seconds]
emdub has quit [Quit: .]
looopy has joined #ruby
emdub has joined #ruby
fantazo has joined #ruby
flip_digits has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
fzf has joined #ruby
Sheehan has joined #ruby
yxhuvud has quit [Ping timeout: 252 seconds]
jeff_sebring has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Quit: ukd1]
yugui is now known as yugui_zzz
freeayu has quit [Ping timeout: 252 seconds]
akem has joined #ruby
miho has quit [Read error: Connection reset by peer]
miho has joined #ruby
freeayu has joined #ruby
IrishGringo has joined #ruby
ipoval has quit [Quit: ipoval]
robozahn has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 246 seconds]
Ravi has quit [Read error: Connection timed out]
Sheehan has quit [Quit: Sheehan]
robozahn has joined #ruby
Ravi has joined #ruby
adamramadhan has quit [Ping timeout: 240 seconds]
Markvilla has quit [Quit: Markvilla]
ramblex has quit [Quit: ramblex]
tomb_ has joined #ruby
nytew has quit [Ping timeout: 260 seconds]
dnyy has quit [Remote host closed the connection]
Sheehan has joined #ruby
Sheehan has quit [Client Quit]
binaryplease has quit [Quit: WeeChat 0.3.8]
dnyy has joined #ruby
b0llo has joined #ruby
<b0llo> need help with ruby code
Ethan has quit [Ping timeout: 244 seconds]
fulmato has quit [Ping timeout: 248 seconds]
wpaulson has joined #ruby
sorbo_ has left #ruby [#ruby]
nytew has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
yugui_zzz is now known as yugui
brianpWins has quit [Quit: brianpWins]
b0llo has quit [Quit: leaving]
wpaulson_ has joined #ruby
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
Ravi has quit [Read error: Connection timed out]
wpaulson has quit [Ping timeout: 244 seconds]
wpaulson_ is now known as wpaulson
Ravi has joined #ruby
RainbowDashh has joined #ruby
pLameN_4o has joined #ruby
apeiros_ has quit [Remote host closed the connection]
pLameN_4o has left #ruby [#ruby]
bluOxigen has quit [Ping timeout: 265 seconds]
wvms has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
Karmaon has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
Guest42126 has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
nobitanobi has quit [Quit: Leaving.]
Progster has joined #ruby
graft_ has joined #ruby
ringotwo_ has joined #ruby
dhruvasagar has joined #ruby
ringotwo has quit [Ping timeout: 244 seconds]
jsilver has joined #ruby
<jsilver> hello #ruby
<jsilver> how can I write an evented server in Ruby with a proper framework like Node? i know about event machine but want to deploy to heroku
<jsilver> i know Node isn't for Ruby btw, but I wanna Use Ruby
<shadoi> jsilver: why can't you run EM on heroku?
<jsilver> i just need like a guide or something to do it, i am sure you can
<shadoi> google eventmachine heroku.
<shadoi> :)
<jsilver> also, i have another deeper question. how can i combine this method with long-polling, is it supported?
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
<jsilver> ok
<jsilver> .g eventmachine heroku
<jsilver> oh no railsbot :\
<shadoi> I assume you want long-polling for something like comet?
SecretFire has joined #ruby
Markvilla has joined #ruby
<shadoi> Check out cramp: https://github.com/lifo/cramp
<jsilver> actually, I'm trying to create an HTTP chat that runs on the cloud, but don't use short polling
<jsilver> and no javascript
<jsilver> k
<shadoi> You want websockets.
<jsilver> yes, i've seen cramp, it looks good
<jsilver> websockets ah
<Progster> is there a way to specify multiple ranges as one?
<Progster> like 'a'..'z' and '1'..'9'
<jsilver> regex?
hunglin has joined #ruby
<jsilver> use character class like [a-z0-9]. or w/e cant remember exact syntax
<shadoi> Progster: a range is an instance of a class, so no.
<jsilver> yeah
<jsilver> Range itself is a single range
<jsilver> you could use an array though
<jsilver> [(a..z), (1..9)]
Hanmac has joined #ruby
<samuelkadolph> [*("a".."z"), *("1".."9")]
ringotwo_ has quit [Remote host closed the connection]
<shadoi> splatter
amh345 has joined #ruby
<Progster> ahh you splat the range
<Progster> nice
<samuelkadolph> splat works with anything that responds to to_ary
billiamii has quit [Ping timeout: 244 seconds]
nso95 has joined #ruby
<jsilver> wow Cramp looks better than rails!
<amh345> has anyone here used amazons s3 bucket with and read the s3 directory?? on my nix file system Dir.glob("path/to/file/*.*) do | file | files << file end worked like a charm. but on s3. no dice.
bwlang has joined #ruby
* Enekoos se despide
<shadoi> jsilver: it's much more focused on a specific problem. :)
<nso95> I'm going to begin my adventure from Python to Ruby
<jsilver> ah
<jsilver> inddeed
medik has quit [Ping timeout: 260 seconds]
<jsilver> nso95: cool! let us kno if u have any questions
<nso95> Sure will, Thank you :)
<shadoi> amh345: you could use the s3fs (fuse I think) thing and then the same thing would work.
Enekoos has quit [Quit: Saliendo]
RainbowDashh has joined #ruby
bwlang has quit [Client Quit]
billiamii has joined #ruby
<jsilver> aw no websockets on heroku
<amh345> shadoi: sorry. is that on the s3 side of things or the ruby side ?
<shadoi> amh345: linux
<jsilver> whats the point of cloud if yr that efficient and scalable tho
Dreamer3 has quit [Quit: Computer has gone to sleep.]
nytew has quit []
alexim has quit [Ping timeout: 246 seconds]
medik has joined #ruby
strnx has quit [Excess Flood]
<jsilver> shadoi: sweeeet!
<shadoi> jsilver: the problem with getting all your info from IRC is there are too many opinions and not enough googling. :)
<amh345> shadoi: that's pretty cool. i'll look into it if i cant get Dir.glob to work
<jsilver> ah i barely come on here, ive been doin googling wrong or something
<jsilver> i really really neeeded it lol :)
<jsilver> seems like, if i can write a good enough stack, it shouldnt need heroku and i can have n connections
<jsilver> just want my customers to be able to use it
<jsilver> so this is good
<deryl> How can you have any pudding if you don't eat your meat? See? Pink Floyd knew about the link between google and knowledge way before they became! pudding == knowledge, eat your meat == learn to google!
<deryl> yeah thats my story and I'm stickin to it!
<shadoi> drop the crack pipe.
<deryl> hahaha
lolsuper_ has quit [Quit: Leaving]
noganex has quit [Ping timeout: 246 seconds]
strnx has joined #ruby
boredomist has joined #ruby
<jsilver> i swear thats the last of my easily googleable questions i swear
noganex has joined #ruby
<G_pSp_r_> ALLAH AKBAR!!!!!!!!!!!!
<deryl> speaking of pudding. think its time to make some chocolate pudding for that instant gratification fix
kingfishr has quit [Quit: WeeChat 0.3.5]
yugui is now known as yugui_zzz
nobitanobi has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
Prometheus has quit [Ping timeout: 265 seconds]
sepp2k1 has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
z3ndrag0n has joined #ruby
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
Dreamer3 has joined #ruby
yugui is now known as yugui_zzz
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
digitalcakestudi has quit [Quit: Leaving.]
neku has quit [Read error: Connection reset by peer]
Zuperbot has joined #ruby
superguenter has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
codestorm has quit [Read error: Connection reset by peer]
ronnie_ has joined #ruby
codestorm has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Banistergalaxy has joined #ruby
neersighted is now known as neersight[d]
khakimov has quit [Ping timeout: 244 seconds]
boredomist has quit [Quit: ZNC - http://znc.sourceforge.net]
boredomist has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
khakimov has joined #ruby
superguenter has quit [Quit: Leaving.]
uris has joined #ruby
johnjohnson has quit []
brianpWins has joined #ruby
reftis has joined #ruby
Corey has joined #ruby
bwlang has joined #ruby
G_pSp_r_ has left #ruby [#ruby]
wpaulson has joined #ruby
umttumt has joined #ruby
VegetableSpoon has joined #ruby
sbanwart has quit [Ping timeout: 265 seconds]
amh345 has left #ruby [#ruby]
igotnolegs has quit [Quit: Computer has gone to sleep.]
Ravi has quit [Read error: Connection timed out]
Ravi has joined #ruby
mikepack has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
z3ndrag0n has quit [Remote host closed the connection]
Markvilla has quit [Quit: Markvilla]
nari has joined #ruby
neersight[d] is now known as neersighted
Sheehan has joined #ruby
bwlang has quit [Quit: bwlang]
yugui_zzz is now known as yugui
Zuperbot has quit [Quit: Leaving...]
ipoval has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
Sheehan has quit [Quit: Sheehan]
Ravi has quit [Read error: Connection timed out]
Sheehan has joined #ruby
Ravi has joined #ruby
silentpost has joined #ruby
SecretFire has quit [Quit: Leaving]
Guedes has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
igotnolegs has joined #ruby
z3ndrag0n has joined #ruby
ronnie_ has quit [Ping timeout: 265 seconds]
noyb has joined #ruby
z3ndrag0n has quit [Client Quit]
ciopte7 has joined #ruby
noesis82 has joined #ruby
ryanf has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
rohit has joined #ruby
silentpost has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
williamcotton has joined #ruby
noesis82 has quit [Ping timeout: 245 seconds]
QE4sleep is now known as QE4
brianpWins has quit [Quit: brianpWins]
noesis82_ has joined #ruby
nazty has quit [Quit: WeeChat 0.3.7]
araujo has quit [Quit: Leaving]
rippa has quit [Ping timeout: 260 seconds]
rohit has quit [Ping timeout: 246 seconds]
reftis has quit [Quit: reftis]
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
umttumt has quit [Remote host closed the connection]
tomku has quit [Quit: WeeChat 0.3.7]
macmartine has quit [Quit: macmartine]
umttumt has joined #ruby
tomku has joined #ruby
thecreators has quit [Remote host closed the connection]
silentpost has joined #ruby
umttumt has quit [Remote host closed the connection]
macmartine has joined #ruby
silentpost has quit [Ping timeout: 265 seconds]
RainbowDashh has joined #ruby
nso95 has quit [Quit: nso95]
nso95 has joined #ruby
nso95 has quit [Changing host]
nso95 has joined #ruby
Ravi has left #ruby [#ruby]
ananthakumaran has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
fzf has quit [Remote host closed the connection]
sonkei has quit [Ping timeout: 246 seconds]
fayimora has quit [Quit: Busy…..zzzzz]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
neku has joined #ruby
RainbowDashh is now known as Rabbit67890
grantbdev has quit [Quit: Leaving]
Rabbit67890 is now known as RainbowDashh
bruder has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
tobago has joined #ruby
jarednorman has quit [Ping timeout: 265 seconds]
Prometheus has joined #ruby
Juul has joined #ruby
jarednorman has joined #ruby
tk___ has joined #ruby
vitor-br has quit [Read error: Connection timed out]
vitor-br has joined #ruby
ronnieBoy has joined #ruby
vitor-br has quit [Max SendQ exceeded]
ronnie_ has joined #ruby
ParadoxQuine has left #ruby [#ruby]
vitor-br has joined #ruby
miho has quit [Read error: Connection reset by peer]
Sheehan has quit [Quit: Sheehan]
snearch has joined #ruby
miho has joined #ruby
Sheehan has joined #ruby
seanstickle has joined #ruby
vitor-br has quit [Max SendQ exceeded]
vitor-br has joined #ruby
olrrai has quit [Ping timeout: 246 seconds]
looopy has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
tyman_ has quit [Ping timeout: 265 seconds]
yugui_zzz is now known as yugui
jfarmer has joined #ruby
alexmin has joined #ruby
macmartine has quit [Quit: macmartine]
tyman has joined #ruby
moted has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 265 seconds]
looopy has joined #ruby
jfarmer has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kevinbond has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
umttumt has joined #ruby
yoklov has quit [Quit: bye!]
umttumt has quit [Remote host closed the connection]
Karmaon has quit [Remote host closed the connection]
thecreators has joined #ruby
cj3kim has joined #ruby
Karmaon has joined #ruby
Sheehan has quit [Quit: Sheehan]
charliesome has joined #ruby
wookiehangover has quit [Quit: i'm out]
tewecske has joined #ruby
<nso95> Is there any real difference between puts and print?
mockra has quit [Remote host closed the connection]
<heftig> nso95: puts ensures a newline
<nso95> Thanks
wookiehangover has joined #ruby
uris has quit [Quit: leaving]
techno has joined #ruby
randym has joined #ruby
Prometheus has quit [Ping timeout: 265 seconds]
nightzpy_ has quit [Quit: Saliendo]
emmanuelux has joined #ruby
mockra has joined #ruby
noyb has joined #ruby
Progster has quit [Ping timeout: 250 seconds]
emmanuelux has quit [Remote host closed the connection]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
daniel_hinojosa1 has joined #ruby
buharin has joined #ruby
<buharin> hello :)
<buharin> can y give me some advice?
daniel_hinojosa has quit [Ping timeout: 265 seconds]
<seanstickle> Nope.
<Mon_Ouie> I can give you one: don't ask for the permission to ask a question
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
elyos has joined #ruby
elyos has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
ardianys has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
shadoi has quit [Quit: Leaving.]
<undyingrage> in other languages, switch statements often require a return to prevent each case from following onto the next, in ruby you dont need to add return to exit the case anymore right?
<undyingrage> ^ but what if i want certain cases to have the same statements?
Banistergalaxy has quit [Ping timeout: 252 seconds]
<graspee> add them with commas
<undyingrage> what if they overlap with the default case, the else
<graspee> how do you mean, sorry
<graspee> i mean like do
<graspee> case variable
<graspee> when 1
<graspee> do stuff
<graspee> when 2
<graspee> do stuff
<graspee> when 5,9,45
<graspee> do stuff
<graspee> else
maletor has joined #ruby
<Paradox> pastebin pls
<graspee> do default stuff
<Paradox> lol
<graspee> sorry
<Paradox> i didnt come here to bitch, actually
<Paradox> im using rbenv
quest88 has quit [Quit: quest88]
<Paradox> and just did a painful upgrade which entailed gem list --local > gems.txt
<Paradox> then reinstalled them all after the upgrade to p194
<Paradox> which got me wondering
<undyingrage> graspee: yup got it thanks
<Paradox> is there any way to list all installed gems on a system in a Gemfile format?
<Mon_Ouie> em::Specification.each {|s| p [s.name, s.version.to_s] }em::Specification.each {|s| p [s.name, s.version] }
<Mon_Ouie> 448.mkv
<Mon_Ouie> 449.mkv
<Mon_Ouie> Weird.
<Mon_Ouie> Gem::Specification.each {|s| p [s.name, s.version.to_s] } <- what I actually meant
<Paradox> thats close
<Paradox> but not quite gemfile
<Paradox> but i see what i could do now
<Paradox> thanks
yugui is now known as yugui_zzz
hunglin has quit [Quit: Leaving.]
<Paradox> Mon_Ouie, thats an awesome one-liner btw
<Paradox> you just saved me a shitfuckload of trouble
Juul has quit [Ping timeout: 252 seconds]
umttumt has joined #ruby
ipoval has quit [Quit: ipoval]
francisfish has joined #ruby
superguenter has joined #ruby
mdw has joined #ruby
<Paradox> banisterfiend, hey, pry-coolline seems to break ^U clearing of the input buffer
brianpWins has joined #ruby
<Paradox> Mon_Ouie, or is that a feature of coolline
cyong has joined #ruby
RainbowDashh has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
SegFaultAX has joined #ruby
<aces1up> if i have a string "my string with $variable" -- what would be a good way to do a gsub on the $variable to replace it with the object variables using a send($variable.to_sym) ?
virtualsue has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> aces1up: string.gsub("$variable"){$variable}
<Hanmac> or do you want an more generic method?
<Paradox> Hanmac, gotta escape $
<Paradox> \$
workmad3 has joined #ruby
mohits has quit [Read error: Connection reset by peer]
looopy has quit [Remote host closed the connection]
<Mon_Ouie> Paradox: That's because it's not one of the defaults bindings in the last gem release
<Mon_Ouie> Coolline::Settings[:handlers] << Handler.new("\C-u") { |cool| cool.line.clear; self.pos = 0 }
<Paradox> Mon_Ouie, ah, im using pry-coolline for real-time highlighting in pry
Synthead has quit [Remote host closed the connection]
<Paradox> so i guess i'd have to monkeypatch that in
Synthead has joined #ruby
<Paradox> or get banisterfiend to accept a pull-request on it, which he'd probably do since he's a good guy
miho has quit [Ping timeout: 260 seconds]
daniel_hinojosa1 has quit [Ping timeout: 248 seconds]
mdw has quit [Remote host closed the connection]
<ryanf> Paradox: you can probably just put that line in your .pryrc
looopy has joined #ruby
<Paradox> ryanf, ah, good thinking
<Paradox> doh, it barfs on it
<Paradox> uninitialized constant
<ryanf> probably need to require 'coolline' inside the pryrc
<ryanf> should work fine
<Paradox> yeah thats what i was just adding
<Paradox> heh
Vert has joined #ruby
ardianys has quit [Ping timeout: 245 seconds]
<Paradox> ugh ffs now its barfing on Handler
<Paradox> hold on, i gots this
<Paradox> ಠ_ಠ
<Paradox> im requiring coolline
<Paradox> but it get angry when i attempt to use handler
<aces1up> new_value = myvalue.gsub(/<~.+?~>/) { |tag_element| send(tag_element.to_sym)}
<aces1up> this brings up <~variable~> how can i get the tag_element without the <~ ~> removed?
<Paradox> you want the <~ removed ?
<Paradox> or not
<Paradox> i didnt quite grok
qwerxy has joined #ruby
<aces1up> yes, when i do the evaluation on send.. its including the <~~> which results in error.
<aces1up> i want them removed.
workmad3 has quit [Ping timeout: 265 seconds]
<Paradox> use /<~(.+?)~>/ as the regex
<Paradox> and then only target the first capture group
<aces1up> so tag_element[0][0] ?
<Paradox> i cant remember where the capture group is dumped
andrew_ has quit [Remote host closed the connection]
<Paradox> something in me says $1
tyman has quit [Quit: tyman]
<Paradox> but im not sure
<aces1up> how would i reference that on tag_element?
<Paradox> you can use named references
<Paradox> but thats not ideal
yxhuvud has joined #ruby
<aces1up> damn ok well.. what is the best way to do what I want just by placeing a $before the string so if i have multiple $tags in my string it would replace with object vars?
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
<Paradox> ah
<Paradox> in your gsub
<Paradox> reference capture groups via \1
<aces1up> have an example?
<Paradox> hold on
<Paradox> you use a block
fgwaegeawgfwa has joined #ruby
<Paradox> yeah
<Paradox> use $1
<Paradox> thats the match
<aces1up> yeh, i'm not getting how to connect the whole thing with that
Gavilan has quit [Ping timeout: 245 seconds]
kemplu has joined #ruby
<Paradox> new_value = myvalue.gsub(/<~(.+?)~>/) { |tag_element| send($1.to_sym)}
<Paradox> that might work
<aces1up> i see ok.
<Paradox> probably dont need the |tag_element| art
virtualsue has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0/20120601045813]]
ardianys has joined #ruby
francisfish has quit [Remote host closed the connection]
<aces1up> seems to be working thanks.
bfig has joined #ruby
<aces1up> for future ref.. is $1 thread safe?
kemplu has quit []
fantazo has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
RainbowDashh has joined #ruby
<Paradox> its a global
<bfig> how are function calls supposed to work? i'm calling puts "a" "b" and "a" gets put, then "b" is computed?
<bfig> ie, puts "a" "b" ~ puts "a"; "b"; ?
<Mon_Ouie> Paradox: Coolline::Handler instead of Handler
<Paradox> Mon_Ouie, thanks
seitensei has joined #ruby
<Paradox> unfortunately it doesn't seem to be doing anything
<Paradox> probably need to run load_config again
eurbach has joined #ruby
workmad3 has joined #ruby
kevin20 has joined #ruby
khakimov has joined #ruby
<bfig> how are function calls supposed to work? i'm calling puts "a" "b" and "a" gets put, then "b" is computed?
khakimov has quit [Client Quit]
<Paradox> no…
mockra has quit [Remote host closed the connection]
<banisterfiend> bgupta: "a" and "b" get concatenated
<banisterfiend> bfig: *
seitensei has quit [Ping timeout: 248 seconds]
<banisterfiend> bfig: so its' the same as doing: puts "ab"
<bfig> banisterfiend, no they don't
<bfig> ohh yes they do
<bfig> why am i getting a => Nil ?
<bfig> is that the return value?
<banisterfiend> bfig: puts returns nil
<bfig> ok
Xethron has quit [Ping timeout: 244 seconds]
<bfig> so the behavior of puts is to concatenate all values if they are strings, if they are not it throws an exception?
<bfig> (and print them of course)
<bfig> (and return Nil)
<banisterfiend> bfig: puts can display other objects by calling to_s on it
<banisterfiend> bfig: read a book :P
<bfig> if i write puts "a" 3, it collapses
<bfig> syntax error: unexpected tINTEGER
<banisterfiend> bfig: ah, you were talking about concantenation
<banisterfiend> bfig: yeah, basically you should never use puts "a" "b" anyway
<bfig> i'm trying to reproduce the behavior of the irb in c++
<banisterfiend> bfig: it's highly unidiomatic, if u want to concatenate two strings together use "a" + "b"
<banisterfiend> bfig: why?
<bfig> why not?
<bfig> (school project)
nari has quit [Ping timeout: 240 seconds]
rdg has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<bfig> so, idiomatically, i'd like to have (Show a) => puts :: a -> IO () ?
<seanstickle> Ha, I was going to link you to the draft ISO spec
<seanstickle> But it seems that it is now password protected, as it is now an *official* and quite expensive spec
<bfig> (i know that is haskell code but i feel it is sufficiently understandable and i don't know the ruby equivalent)
<bfig> lol
<bfig> dumbasses at iso
maletor has quit [Quit: Computer has gone to sleep.]
<seanstickle> Yes, darn them and their self-financing ways
<seanstickle> Their independent operational ability is to be mocked and jeered!
<bfig> hey, it was a continuation of your sarcasm, don't start flaming me
seitensei has joined #ruby
kevin20 has quit [Ping timeout: 245 seconds]
<Paradox> banisterfiend, while you're here, i'm trying to get pry-coolline to respect ^U to clear the line. I've got a snippet provided by Mon_Ouie added to my .pryrc, but it doesnt seem to work: https://gist.github.com/2943857
<Paradox> doh
<Paradox> ignore that gist
<Paradox> thats the right one
<banisterfiend> Paradox: Mon_Ouie wrote coolline, he's the dude to ask ;)
<seanstickle> Nothing sarcastic about an officially sanctioned ISO spec.
<seanstickle> :)
<Paradox> i've been bothering him about it throughout the evening
<Paradox> just wondered if you might know why
<banisterfiend> Paradox: he's a native french speaker, maybe you should ask in french
<banisterfiend> hehe
<Paradox> my french is atrocious
<Paradox> like…enough to get me around geneva and switzerland
<Paradox> but no where near fluent
<banisterfiend> Paradox: so long as it's french-sounding i think it's enough for Mon_Ouie
<Mon_Ouie> Oh, should probably be cool.pos = 0
<banisterfiend> just throw a few le and la in there and neglect to pronounce 'h' and he'll get what u mean
billiamii has quit [Read error: Connection reset by peer]
<Paradox> Mon_Ouie, nope, that doesnt do it either :(
<Paradox> isn't line readonly?
billiamii has joined #ruby
octarine is now known as rcsheets-
workmad3 has quit [Ping timeout: 265 seconds]
<Mon_Ouie> No, it's definitely meant to be read/write
<Paradox> huh, your yardoc says its RO
<Paradox> - (String) line (readonly)
<Mon_Ouie> https://gist.github.com/2943862 what about that?
<Mon_Ouie> That's because there's no #line= method
getbitcoin1 has quit [Ping timeout: 245 seconds]
<Mon_Ouie> You can't change the object it refers to, but you can mutate that object
<Paradox> oh derp
<Paradox> ah
jimeh has joined #ruby
<Paradox> https://github.com/pry/pry-coolline/blob/master/lib/pry-coolline.rb might have to fork and edit that to make it work right
<Paradox> i'll do it, its not your issue :)
<banisterfiend> Paradox: i thought Mon_Ouie was adding it to coolline itself?
<Mon_Ouie> The C-u binding is already on the git version actually
<Mon_Ouie> I just didn't bother to release another gem just for that change
<Paradox> ah, guess i'll just wait for a new gem then ;)
<Paradox> or build my own
<banisterfiend> Mon_Ouie: do you care about semver
<Paradox> its being added, but for some reason ^u doesnt run
ryanf has quit [Quit: leaving]
graspee has quit [Quit: leaving]
<Paradox> ah well, thanks for the help anyway
hatoishi has joined #ruby
remmy444 has joined #ruby
ananthakumaran has quit [Ping timeout: 265 seconds]
twinturbo has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
robdodson has quit [Quit: robdodson]
EskiMag has joined #ruby
ananthakumaran has joined #ruby
<csmrfx> 8)
jackiechan0 has joined #ruby
<banisterfiend> csmrfx: hey carl
CheeToS has quit [Ping timeout: 246 seconds]
schovi has joined #ruby
Banistergalaxy has joined #ruby
looopy has quit [Remote host closed the connection]
A124 has joined #ruby
jsilver has quit [Remote host closed the connection]
dekroning has joined #ruby
<csmrfx> wudzap Mr. Banner
<dekroning> good morning
<csmrfx> mornz
Criztian has joined #ruby
<banisterfiend> csmrfx: do u have a personal website
superguenter has quit [Quit: Leaving.]
eft has quit [Ping timeout: 250 seconds]
eft has joined #ruby
rdg has quit [Quit: ttfn]
<fowl> csmrfx, ideally one with details
<seanstickle> secret details!
muse has quit [Quit: weeeebooooooooot better not talk about me behind my back]
jeff_sebring has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
jeff_sebring has quit [Client Quit]
<dekroning> seems like I missed out on something cool :-)
<seanstickle> dekroning: csmrfx has a complete mirror of library.nu
dekronin1 has joined #ruby
<dekronin1> and then my internet connection died :-)
<csmrfx> huh
<csmrfx> banisterfiend: koti.kapsi.fi/csmr
<csmrfx> it's more like the backyard scrap heap
musee has joined #ruby
<seanstickle> More like a backyard scrap heap that has been used to conjure a lesser baron of hell
<banisterfiend> csmrfx: skull and cross bones in the middle of your page?
<csmrfx> heym ocaml isn't that bad, baron maybe, but hell?
<csmrfx> banisterfiend: to the left of the middle, technically
dekroning has quit [Ping timeout: 246 seconds]
<banisterfiend> csmrfx: let me show u a screnshot
A124 has left #ruby [#ruby]
<csmrfx> yes, it depends on your screen size
<banisterfiend> csmrfx: http://cl.ly/061g3U1c3P0H0X0h451H
deryl has quit [Ping timeout: 265 seconds]
dekroning has joined #ruby
<csmrfx> "To view this wep sait corretly, 1200p HD display is neededs"
deryl has joined #ruby
dekronin1 has quit [Ping timeout: 240 seconds]
<banisterfiend> csmrfx: your website sux :)
<banisterfiend> csmrfx: thoug u have some good links there, e.g pry
<csmrfx> I am thinking of making my website pay-per-view
<dekroning> I'm writing some integration specs, and currently i'm wondering when or perhaps if it's even advised to do mocking there? Reason is I want to double check that my CarRadio object is able to play a song, so when i run radio.play(song) I want to assert that the song receives a play message, thus mocking out the song interface
<csmrfx> Me, I am a simple person and to me mocking is too complicated
<csmrfx> sometimes you have to
<csmrfx> but I usually go around in other ways than mocking, then
* csmrfx is like the worst test engineer
<dekroning> hehe :-)
<dekroning> still i'll take your thoughts into consideration ;-)
zommi has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
relix has quit [Quit: Connection closed for inactivity]
mohits has joined #ruby
<dekroning> I have a reason to mock it, and a nother reason so don't mock it :-) reason to Mock it, is that I don't want to implement all the dependencies yet (on the other hand, maybe I should because this is the integration test)
<banisterfiend> dekroning: you've been obsessed with testing for the last few months iirc :P
<dekroning> and the reason not to mock it, is that i'm not certain if everything works when I mock in my integration suite. (mocking external interfaces would be a different matter I think)
<dekroning> banisterfiend: hahaha yeah :-)
<banisterfiend> dekroning: i wonder if u ever write software, or just write endless tests instead? :)
<dekroning> banisterfiend: at the moment, you are right. I'm not even writing software just endless tests indeed, which is a sad thing perhaps :)
<dekroning> it's just that if I don't understand something, writing software doesn't feel good to me
<csmrfx> mocking can lead to an interesting problem of re-engineering whatever you're mocking
<csmrfx> then you'd need to write tests for that
<csmrfx> and then...
<banisterfiend> dekroning: why not pick an interesting opensource project, and analyse their tests
<banisterfiend> dekroning: then you can make commits to the project, and write tests for your commits, and get feedback that way
<csmrfx> I just friggin make a bunch of code blocks that print out "test ok" or "test failed" for testing
charliesome has quit [Quit: Computer has gone to sleep.]
araujo has joined #ruby
araujo has joined #ruby
<csmrfx> imo best thing about having tests is you can feel confident youre not breaking things when fixing other things or adding features
<dekroning> banisterfiend: intresting idea indeed. On the first issue, analyzing their tests... when looking at the test end restults. You just mis a lot of information on how it was formed. Ofcourse I could look at each individual commits to reveal some of those evolutions
<dekroning> csmrfx: yeah and that's why in my integrationt tests. It feels unnatural to mock out some stuff, e.g. in my cause mock out the "song interface"
<dekroning> on the other hand maybe it's not. Because the current "song interface" should in a sense be pretty stable for a certain brand of car radio's
<dekroning> hope that makes sense :)
<csmrfx> sure
kevinbond has quit [Quit: kevinbond]
deryl has quit [Ping timeout: 265 seconds]
<csmrfx> but, can you just plug in the car radio and have tests actually run on that env
<dekroning> an "on that env" you mean the "real" unstubbed/unmocked environment you mean right ?
<dekroning> e.g. the integration team at BWM would really plug in a music CD and listen if the radio works
<banisterfiend> csmrfx: this robot creeps around like you on a night mission http://i.imgur.com/6CpEc.gif
<csmrfx> dekroning: yeah, plug in hardware, run tests in that env, presto, 60 second deal vs. hours of mocking
* csmrfx wonders how did banisterfiend know....
ipoval has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
<bnagy> well. bollocks.
<bnagy> drb mysteriously fails to work under windows jruby
<csmrfx> interersting
mmsequeira has quit [Quit: mmsequeira]
<csmrfx> windoze + jruby + drb
<bnagy> right now I can't even think of a theory to try and test
<csmrfx> I have some very vague recollections about that
fayimora has joined #ruby
<bnagy> my minimal drb test works, so it's something to do with the real object
<bnagy> which works perfectly under jruby in a normal process
<csmrfx> I think my recollections related to plain mruby drb and sockets and windows
eighty4 has quit [Ping timeout: 245 seconds]
<banisterfiend> csmrfx: mruby is something different
<banisterfiend> you mean cruby / mri
<csmrfx> mri yea
<csmrfx> coffee time!
eighty4 has joined #ruby
eighty4 has quit [Changing host]
eighty4 has joined #ruby
eighty4 has quit [Excess Flood]
heftig has quit [Ping timeout: 245 seconds]
eighty4 has joined #ruby
yugui_zzz is now known as yugui
vitor-br has quit [Read error: Connection timed out]
yugui is now known as yugui_zzz
schovi has quit [Remote host closed the connection]
Croms has quit [Quit: Linkinus - http://linkinus.com]
apeiros_ has joined #ruby
mohits has quit [Read error: Connection reset by peer]
schovi has joined #ruby
yekta has joined #ruby
tobago has quit [Ping timeout: 244 seconds]
tobago has joined #ruby
snearch has quit [Quit: Verlassend]
jimeh has quit [Ping timeout: 240 seconds]
dekroning has quit [Ping timeout: 248 seconds]
jimeh has joined #ruby
foofoobar has joined #ruby
bluOxigen has joined #ruby
<foofoobar> Hi guys. I want to write a small GUI with ruby which replaces some stuff I currently do with excel. It's not that complex, just some saving of values, nicely printing them out and saving it to a sqlite database.
<foofoobar> Why GUI framework can you suggest me? I had a look at ruby shoes, but is it really for "production" ?
francisfish has joined #ruby
<foofoobar> My app is not that complex, but it should look nice and structured and I do not know if I can achieve this with ruby shoes
vitor-br has joined #ruby
<csmrfx> foofoobar: how about http://monkeybars.rubyforge.org/
<csmrfx> or just plain jruby + swing
<csmrfx> or just plain ruby + gtk2
<csmrfx> I guess, jruby would be the most cross platform
moshee has quit [Ping timeout: 245 seconds]
<foofoobar> csmrfx: So if I want to give my application to a friend, what does he have to install for running something like monkey bars? jruby + monkey bars toolkit? Or Can I bundle all in one .exe for him? (he is on windows)
<csmrfx> but old but gives you the idea http://wiki.netbeans.org/SwingJRuby
moshee has joined #ruby
<banisterfiend> csmrfx: Hey carl.
<csmrfx> *bit
nfk has joined #ruby
yonggu has quit [Read error: Connection timed out]
<foofoobar> Nice, so when it's a .jar file.. All I need is java installed?
<shevy> yea
<shevy> which was always a problem for me
<shevy> because I dont use java
<shevy> you can bundle things however
<foofoobar> Sounds good, because I guess java is installed on most computers
<shevy> foofoobar, http://ocra.rubyforge.org/
SmoothSage has joined #ruby
<foofoobar> shevy: Thanks, I will have a look at it.
<foofoobar> But I think when I can pack all in a .jar then I will choose this way
<foofoobar> Because no additional stuff has to be installed on most machines
ardianys has quit [Ping timeout: 246 seconds]
twinturbo has quit [Quit: twinturbo]
yonggu has joined #ruby
ardianys has joined #ruby
asaelko has joined #ruby
ardianys has quit [Client Quit]
yekta has quit [Quit: yekta]
cheater_ has joined #ruby
umttumt has quit [Remote host closed the connection]
EskiMag has quit [Quit: EskiMag]
cheater__ has quit [Ping timeout: 260 seconds]
tomb_ has quit [Quit: Computer has gone to sleep.]
joch_n has joined #ruby
asaelko has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
subbyyy has quit [Quit: Leaving.]
prtksxna has joined #ruby
buharin has quit [Remote host closed the connection]
mdw has joined #ruby
cyong has quit [Quit: Leaving.]
hatoishi has quit [Quit: leaving]
<csmrfx> banisterfiend: my night mission moves look more like this tho http://payload55.cargocollective.com/1/3/111342/3413001/IMG_7782_866.jpg
<banisterfiend> csmrfx: which one r u
heftig has joined #ruby
<csmrfx> ha!
<csmrfx> now thats the right question...
yekta has joined #ruby
mdw has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
umttumt has joined #ruby
d34th4ck3r has joined #ruby
schovi has quit [Remote host closed the connection]
d34th4ck3r has quit [Remote host closed the connection]
netogallo has joined #ruby
linoj has quit [Quit: linoj]
pk1001100011 has joined #ruby
tobago has quit [Ping timeout: 240 seconds]
Enekoos has joined #ruby
VictorMartins has joined #ruby
<Enekoos> I try use "torrentsync" gem, only install gem and create file: t = Torrentsync::Transmission.new("localhost", "9091")
<Enekoos> puts t.list
<Enekoos> but console errors :/
foofoobar has quit [Quit: Computer has gone to sleep]
<Enekoos> any can help me?
tobago has joined #ruby
<bnagy> unlikely, without the actual error
<Enekoos> /root/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- nokogiri (LoadError)
<henn1nk> https://gist.github.com/2944173 how can i access an active record param like this?
<Enekoos> not know gen i put require "torrentsync" and "rubygems"
foofoobar has joined #ruby
<bnagy> Enekoos: looks like you don't have nokogiri installed
<bnagy> and whoever made that gem didn't include it as a dependency for some reason
Beoran_ has quit [Ping timeout: 245 seconds]
<shevy> hmm
<Enekoos> oh thanks "gem install nokogiri
<Enekoos> noob error
<bnagy> henn1nk: I'd suggest #rubyonrails because you said 'active record' but I don't know if this is just a plan ruby question - it's not clear what you want to do / what's not working
yugui is now known as yugui_zzz
<henn1nk> bnagy: i know. but there is no anwer at the moment :P ... i would like to receive for get_type(:agb) source.agb
xbob has joined #ruby
rdg has joined #ruby
<bnagy> try source.send type
<shevy> try bnagy.eat :cat
Sou|cutter has quit [Quit: WeeChat 0.3.0]
<henn1nk> bnagy: runs thanks
ph^ has joined #ruby
dnyy has quit [Remote host closed the connection]
ramblex has joined #ruby
joch_n has left #ruby ["Linkinus - http://linkinus.com"]
dnyy has joined #ruby
dnyy has quit [Remote host closed the connection]
Beoran_ has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
jbw_ has quit [Ping timeout: 246 seconds]
davidcelis has joined #ruby
rdg has quit [Quit: ttfn]
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
Kn|t3 has joined #ruby
<xbob> hi, ruby noob needs some help after hours being stuck on something that has to be trivial but I don't get it (work based on "The Well-Grounded Rubyist" book)
<xbob> I would really appreciate some help
<xbob> If someone would like to spend a minute on my issue: https://gist.github.com/2944205
<xbob> I try to populate an array with hashes
charliesome has joined #ruby
<xbob> but the array holds 3 times the last hash returned instead of 3 different hashes as I expected
<xbob> I just don't get it
<xbob> I tried with 1.8.7 and 1.9.3: same result obviously
ph^ has quit [Ping timeout: 260 seconds]
dekroning has joined #ruby
<bnagy> you shouldn't be using @@classvars
tobago has quit [Ping timeout: 244 seconds]
Siphonblast has quit [Remote host closed the connection]
<shevy> xbob just output the datastructures via pp, then you find where precisely it happens that your array is filled
<xbob> bnagy, aah
<Hanmac> xbob: you use instance variables where you should use local variables and you use class variables where you should use instance variables
<shevy> I keep on saying that @@ should be removed entirely
<apeiros_> shevy: it'd be nice if it'd just be shared between a class and its instances.
perryh is now known as perryh_away
<xbob> so I should not use class variable for the hash and revise my use of instance variables
<xbob> thanks, I will try to do it again without @@ and try to understand where I went wrong with my instance variables
<bnagy> never use class variables for anything ever
<xbob> ok
<xbob> noted
<bnagy> in this case I think if you move @@matches into initialize as @matches and clean up you might have more luck
<bnagy> try that and let us know :)
jbw_ has joined #ruby
<xbob> will do, thanks bnagy
zommi has quit [Remote host closed the connection]
burgestrand has joined #ruby
niklasb has joined #ruby
qwerxy has quit [Quit: offski]
Xethron has joined #ruby
Kn|t3 has quit [Ping timeout: 240 seconds]
Kn|t3 has joined #ruby
tobago has joined #ruby
sbanwart has joined #ruby
xbob has quit [Quit: This computer has gone to sleep]
yonggu has quit [Remote host closed the connection]
yonggu has joined #ruby
lxsameer has joined #ruby
xbob has joined #ruby
<xbob> bnagy, what you suggested works :) thank you
<xbob> the road is going to be long … ;)
bwlang has joined #ruby
<bnagy> cool
jimeh has quit [Ping timeout: 246 seconds]
moshef has joined #ruby
strnx has quit [Read error: Connection reset by peer]
yannis has joined #ruby
bwlang has quit [Quit: bwlang]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
iocor has joined #ruby
<Enekoos> I create this -> " http://pastebin.com/G0RcSLa4 " use this gem -> " http://rubydoc.info/gems/transmission-rss/0.1.9/frames " any can help me all time say " type has to be :url or :file." but I put File and text
darthdeus has quit [Read error: Connection reset by peer]
cousine has joined #ruby
<bnagy> just use :file and not "file"
<shevy> Enekoos notice the :
<Enekoos> t.add_torrent(fichero, ":file") ->type has to be :url or :file. (ArgumentError) ||||| t.add_torrent(fichero, :file) -> `get_session_id': undefined method `debug' for nil:NilClass (NoMethodError)
<shevy> the class is nil
yonggu has quit [Remote host closed the connection]
<shevy> given how many problems you have with this project, I wonder if the project sucks ;)
<Enekoos> :(
yonggu has joined #ruby
<csmrfx> kalinihta
<csmrfx> a torrent gem!?
<Enekoos> I try around 5 gems for torrent all have problems
liluo has joined #ruby
foofoobar has quit [Quit: bb]
<Enekoos> shevy-> I´m not sure can resolve proyect :/
francisfish has quit [Remote host closed the connection]
<Enekoos> need add and remove torrent only!!! :(
bradhe has quit [Remote host closed the connection]
darthdeus has joined #ruby
darthdeus has quit [Client Quit]
<azariah4> How come the parse method is not documented in http://www.ruby-doc.org/core-1.9.3/Time.html ?
<csmrfx> moved?
<csmrfx> renamed?
<azariah4> oh right, I'm using 1.8.7
qwerxy has joined #ruby
VictorMartins has quit [Quit: Sleeping]
<freeayu> when run rake db:migrate, it appears Unable to activate rails-3.1.3
<csmrfx> ruby-doc.org search is annoyingly js only
_br_ has quit [Quit: Bye, thanks for all the fish.]
<shevy> Enekoos you could try to write your own torrent library :-)
Xethron has quit [Ping timeout: 252 seconds]
<bnagy> Enekoos: make sure you can hit that url on your local machine
<Enekoos> is file in the dir
Xethron has joined #ruby
<Enekoos> yes
<Enekoos> Your request had an invalid session-id header.
_br_ has joined #ruby
<bnagy> something is broken between the gem's code and that rest api then
<Enekoos> :/
<Enekoos> I go to eat
<Enekoos> thanks all for help :)
<Enekoos> try now in 1 hour
neku has quit [Quit: Leaving...]
sbanwart has quit [Ping timeout: 260 seconds]
miho has joined #ruby
liluo has quit [Remote host closed the connection]
ronnie_ has quit [Quit: Leaving...]
gtuckerkellogg has joined #ruby
saschagehlich has joined #ruby
nari has joined #ruby
jimeh has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
foofoobar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby
ZachBeta has joined #ruby
strnx has joined #ruby
schaerli has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
seanstickle has joined #ruby
KillerFox has quit [Ping timeout: 265 seconds]
umttumt has quit [Remote host closed the connection]
darthdeus has joined #ruby
KillerFox has joined #ruby
Croms has joined #ruby
Banistergalaxy has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
twelvechairs has joined #ruby
ZachBeta has joined #ruby
SmoothSage has quit [Ping timeout: 244 seconds]
nytew has joined #ruby
liluo has joined #ruby
Markvilla has joined #ruby
johnjohnson has joined #ruby
tijmencc has joined #ruby
Progster has joined #ruby
gfuggiano has joined #ruby
<shevy> everyone make more gems!
berkes has joined #ruby
<dekroning> shevy: i'm doing my best ;-)
qwerxy has quit [Quit: offski]
<shevy> :)
<seanstickle> My ACT!, SugarCRM, and Goldmine gems will be forthcoming
<shevy> ACT! ?
<shevy> hmm gem names can include a ! ?
<shevy> whoa this would be cool... look
<shevy> module Dangerous!
<apeiros_> SugarCRM?
<apeiros_> sounds unhealthy… what's its usp?
emmanuelux has joined #ruby
miho has quit [Read error: Connection reset by peer]
<shevy> we have require 'thin'
<shevy> so it's a prerequisitive for SugarCRM
vitor-br has quit [Quit: Saindo]
vitor-br has joined #ruby
<dekroning> seanstickle: your working on sugarcrm ?
<seanstickle> apeiros_: It's good enough replacement for SalesForce is the typical USP
<seanstickle> dekroning: sure nuff
miho has joined #ruby
<dekroning> seanstickle: cool, lately i've been look at it :-)
sailias has joined #ruby
federic has joined #ruby
<seanstickle> dekroning: it's a piece of crap
moshef has quit [Quit: moshef]
<dekroning> seanstickle: really briefly actually
mickn has joined #ruby
<dekroning> seanstickle: ow hehehe :)
<seanstickle> dekroning: I am making a gem only to help out those who are stuck with it
Jackneill has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
Banistergalaxy has quit [Ping timeout: 248 seconds]
yekta has quit [Quit: yekta]
qwerxy has joined #ruby
ben_alman has quit [Excess Flood]
saschagehlich has joined #ruby
_Rix has joined #ruby
foofoobar has quit [Quit: bb]
<_Rix> hey guys, how do i add an array [1, 2] to another [3, 4] to end up with [[1,2],[3,4]]?
<seanstickle> a=[1,2]; b=[3,4]; c=[a,b]
bosphorus has quit [Remote host closed the connection]
ben_alman has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
Kn|t3 has quit [Ping timeout: 265 seconds]
sailias has quit [Ping timeout: 246 seconds]
<_Rix> seanstickle, if i now have an array of numbers A and another array B, how do i go about iterating the array A and: append a new array of even numbers everytime i encounter an odd number
<_Rix> (append the array of even numbers to B to end up with a multi-array)
<seanstickle> Give example
<seanstickle> That description is too vague for this time of the morning
dekroning has quit [Ping timeout: 245 seconds]
<_Rix> sorry. A = [1, 2, 3, 3, 4, 6, 8, 9, 10, 12] and i need to end up with B = [[2], [4,6,8], [10,12]]
gfuggiano has quit [Quit: Sto andando via]
strnx has quit [Quit: Hosted by rdlBNC (Server 4 - United Kingdom)]
ananthakumaran has joined #ruby
johnjohnson has quit []
<_Rix> with my current code i just end up with [2, 4, 6, 8, 10, 12]
<fowl> with iteration
DuHasT1911 has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
Kn|t3 has joined #ruby
<_Rix> fowl, i am already iterating through the array A, care to elaborate?
<seanstickle> _Rix: [1, 2, 3, 3, 4, 6, 8, 9, 10, 12].chunk{|x| x.even?}.select{|x| x[0] }.map{|x| x[1]}
<seanstickle> Or [1, 2, 3, 3, 4, 6, 8, 9, 10, 12].chunk{|x| x.even?}.map{|x| x[1] if x[0]}.compact
nari_ has joined #ruby
DuHasT1911 has quit [Quit: im off]
<bnagy> <3 Enumerable - that's really nice
tobago|away has joined #ruby
<_Rix> hmm thanks seanstickle i'll try and work with it
<seanstickle> _Rix: doesn't do what you were looking for?
shevy has joined #ruby
<_Rix> it will get me on the right track
nari has quit [Ping timeout: 248 seconds]
<_Rix> i just discovered Enumerable#chunk http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-chunk :)
mayankkohaley has joined #ruby
tobago has quit [Ping timeout: 244 seconds]
darthdeu has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
johnjohnson has joined #ruby
nateberkopec has joined #ruby
Svitkona has joined #ruby
liluo has quit [Remote host closed the connection]
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
wpaulson has joined #ruby
emmanuelux has quit [Ping timeout: 264 seconds]
Kn|t3 has quit [Ping timeout: 246 seconds]
emmanuelux has joined #ruby
<burgestrand> seanstickle: you can return nil or :_separator in the chunk block to avoid iterating over all elements later on
<burgestrand> or, to avoid doing the select/compact
adambeynon has joined #ruby
<seanstickle> burgestrand: [1, 2, 3, 3, 4, 6, 8, 9, 10, 12].chunk{|x| x.even? || nil}.map{|x| x[1]}
<seanstickle> burgestrand: thus?
<burgestrand> Yeah, pretty much!
<seanstickle> Nice
<burgestrand> I did "true if x.even?", looks a bit funny :P
<burgestrand> how’s that for API design D:
Kn|t3 has joined #ruby
silentpost has joined #ruby
techno has quit [Quit: Leaving]
lkba has quit [Ping timeout: 252 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ph^ has joined #ruby
silentpost has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Quit: Leaving.]
zemanel has joined #ruby
chrismcg is now known as zz_chrismcg
mickn has quit [Quit: Leaving]
wpaulson has joined #ruby
m_3 has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
<shevy> nytew please do not PRIVMSG, if you have a question ask here on #ruby
vlad_starkov has joined #ruby
<Spaceghostc2c> hm?
burgestrand has quit [Read error: Connection reset by peer]
bosphorus_ has joined #ruby
twelvechairs has quit [Read error: Connection reset by peer]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
deryl has joined #ruby
_Rix has quit [Quit: Leaving]
Ethan has joined #ruby
Sheehan has joined #ruby
<shevy> he /queried me whether he can ask questions. it is a lot easier to ask here on #ruby rather than /query. I dont reply to query, is why I write here in general
<apeiros_> shevy: same here. referred him to the channel as well
<shevy> :)
ciopte7 has quit [Quit: ciopte7]
<shevy> maaaaan Spaceghostc2c
<apeiros_> nytew: it's generally not appreciated to pm (= send private messages). ask your questions in the channel.
twock_ has joined #ruby
<Spaceghostc2c> seanstickle: :D
<shevy> what's like that, pm attack now :P
<seanstickle> What's with all the smiling?
<shevy> and everyone is innocent here!
wpaulson has joined #ruby
Ethan has quit [Client Quit]
<shevy> huh... really thought there would be FileUtils.delete ...
ciopte7 has joined #ruby
<apeiros_> I think there's File.delete
red5 has joined #ruby
silentpost has joined #ruby
red5 has quit [Client Quit]
<shevy> my brain mixes things up again
<shevy> I hate my brain, can't I get a new one?
Jake232 has joined #ruby
<shevy> whoa...
<shevy> "Repushing of gem versions is not allowed.
<shevy> Please use `gem yank` to remove bad gem releases."
<shevy> and then... when trying this
<shevy> gem yank
<shevy> Unknown command yank
<shevy> ERROR: While executing gem ... (RuntimeError)
noyb has joined #ruby
francisfish has joined #ruby
zz_chrismcg is now known as chrismcg
macmartine has joined #ruby
chrismcg is now known as zz_chrismcg
jmeeuwen has quit [Ping timeout: 252 seconds]
<Spaceghostc2c> shevy: Evidently you just can't yank correctly. Should I show you how? :p
yannis has quit [Quit: yannis]
<shevy> I am great at yanking
<Spaceghostc2c> shevy: gem install gemcutter
<shevy> but incompetent when it comes to rubygem yanking
<shevy> gemcutter can yank?
Sheehan has quit [Quit: Sheehan]
<shevy> gem install gemyanker
<shevy> ERROR: Could not find a valid gem 'gemyanker' (>= 0) in any repository
<shevy> pffft nothing known about yanking
<shevy> oh well
<shevy> gem yank
<shevy> A version argument is required: gem yank GEM -v VERSION [-p PLATFORM] [--undo] [--key KEY_NAME]
qwerxy has quit [Quit: offski]
<shevy> it's never as simple as suggested!
<shevy> gem god damn it, yank already
<Spaceghostc2c> Shazam.
LowKey has quit [Ping timeout: 248 seconds]
<shevy> I actually like gems nowadays though
<shevy> I am going to become a gem whore
tomb_ has joined #ruby
wpaulson_ has joined #ruby
macmartine has quit [Quit: macmartine]
Sheehan has joined #ruby
wpaulson has quit [Ping timeout: 265 seconds]
wpaulson_ is now known as wpaulson
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
LowKey has joined #ruby
IrishGringo has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
mario123 has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
<mario123> hi
yannis has joined #ruby
<mario123> welcome yannis
<shevy> hi supermario
m_3 has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
<mario123> im not supermario
<seanstickle> He's just ordinary Mario
<seanstickle> Which is a big let down
<mario123> i'm indonesian
<mario123> i'm not good in english
_iMBA has joined #ruby
fantazo has joined #ruby
noyb has quit [Ping timeout: 240 seconds]
<mario123> \quit
<Spaceghostc2c> mario123: Neither am I, and it's my native language.
nari_ has quit [Ping timeout: 265 seconds]
digitalcakestudi has joined #ruby
ananthakumaran has joined #ruby
<shevy> lol
<shevy> mario123 it would be /quit
<mario123> hehehehehe
<mario123> i'm never using irc before
Asher1 has quit [Quit: Leaving.]
<mario123> why this channel quiet?
macmartine has joined #ruby
Asher- has joined #ruby
emmanuelux has quit [Remote host closed the connection]
mario123 has quit [Quit: Ex-Chat]
<shevy> :\
<shevy> the 10 seconds question...
Yarou has quit [Quit: Leaving]
ciopte7 has quit [Quit: ciopte7]
RainbowDashh has joined #ruby
gentz has quit [Ping timeout: 248 seconds]
pk1001100011 has joined #ruby
tk___ has quit [Quit: ばいばい]
bosphorus_ has quit [Read error: Connection reset by peer]
LowKey has quit [Ping timeout: 252 seconds]
bosphorus has joined #ruby
lkba has joined #ruby
LowKey has joined #ruby
<any-key> I am bored and tired
<shevy> perfect time to code
<any-key> working full-time coding this summer has ruined my drive for personal projects
<any-key> it's a good sign, though, since I like my job enough I don't have to seek out more interesting projects on my own time
blacktulip has joined #ruby
<any-key> okay, I have a command named "ebong" that I stumbled across tab completing
<any-key> no manpage entry
<any-key> google shows nothing
gentz has joined #ruby
sonkei has joined #ruby
cousine_ has joined #ruby
cousine has quit [Read error: Connection reset by peer]
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
<shevy> manpages must die
deryl has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.8]
ZachBeta has quit [Quit: Computer has gone to sleep.]
hunglin has joined #ruby
<any-key> are there any good biographies on famous programmers that I should check out?
<any-key> I just got a kindle, I need reading material
deryl has quit [Client Quit]
deryl has joined #ruby
johnjohnson has quit []
flip_digits has joined #ruby
niklasb has joined #ruby
<seanstickle> any-key: Have you already read Levy's "Hackers" ?
<any-key> nope, is it good?
<seanstickle> Yes
<seanstickle> Read that first.
<seanstickle> It is required reading for programmers
<any-key> awesome, thanks
<any-key> this looks like a great read
<apeiros_> is it also a required reading for master programmers?
<seanstickle> apeiros_: yes
<apeiros_> damit!
<apeiros_> I don't read! only sci-fi
<seanstickle> apeiros_: you haven't read it yet?
<apeiros_> and some fantasy
<shevy> should non-programmers read it as well?
<apeiros_> no. I barely read books on programming.
<seanstickle> shevy: it doesn't hurt
<any-key> looks like it's not about programming as much as neat things
<any-key> people doing cool things for the sake of doing cool things
<apeiros_> they're usually 90% "know, know, know, yeah, yeah, yeah" or "no, that's bs, no that can be done better, no that's broken code"
<any-key> like Woz
<apeiros_> hm, more like 98% actually
<apeiros_> and 2% genuinely new and useful info
<seanstickle> It's the key history of the personal computer revolution
<seanstickle> And the minicomputers before that
<apeiros_> but… we're already in post personal computer era…
shevy is now known as Asher
<seanstickle> apeiros_: Well, I did say it was a history
Asher is now known as shevy
thone_ has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
bfig has quit [Read error: Connection reset by peer]
Asher- is now known as Asher
bfig has joined #ruby
<apeiros_> but I love repeating it :-S
<apeiros_> so I don't need to know history :)
* apeiros_ is actually sooo old, he witnessed those things…
thone has quit [Ping timeout: 248 seconds]
<any-key> ha!
bwlang has joined #ruby
fmcgeough has joined #ruby
Sheehan has quit [Quit: Sheehan]
bwlang has quit [Client Quit]
* Enekoos se retira
Enekoos has quit [Remote host closed the connection]
<shevy> titties!
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
ZachBeta has joined #ruby
johnjohnson has joined #ruby
<azariah4> What's the recommended way to escape a Ruby string so it conforms to postgresql escaping? (for example '' for ')
<seanstickle> Don't
tijmencc has quit [Read error: Connection reset by peer]
<seanstickle> Use a parameterized query and be safe
hemanth has quit [Read error: Connection reset by peer]
bier has quit [Ping timeout: 240 seconds]
looopy has joined #ruby
tijmencc has joined #ruby
hemanth has joined #ruby
<nytew> someone that knows c++ and ruby ?
yonggu_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
RainbowDashh has quit [Quit: Computer has gone to sleep. DERPY HOOVES SLAMMING THE LAPTOP LID MISTAKE?]
<azariah4> seanstickle: is there a function in pg for that?
rcsheets- is now known as octarine
yonggu has quit [Ping timeout: 248 seconds]
schaerli has quit [Remote host closed the connection]
<azariah4> nevermind, I found the escape_string method
<Hanmac> nytew i do
<apeiros_> azariah4: aaaaaaah, DONT DO THAT
uris has joined #ruby
<apeiros_> seriously
<apeiros_> mind seanstickle's advice to use parametrized queries
Ethan has quit [Ping timeout: 245 seconds]
<apeiros_> quoting is f'ing stupid. srsly.
schaerli has joined #ruby
<apeiros_> parametrized queries, aka bind variables. pg can do that.
<apeiros_> consult your friendly docs on bind variables.
adamramadhan has joined #ruby
<azariah4> My google-fu fails me in finding a "hello-world" example of doing that (I'm new to Ruby and the pg gem)
BlasterBlade has joined #ruby
king313 has joined #ruby
king313 has joined #ruby
BlasterBlade has left #ruby [#ruby]
bier has joined #ruby
fulmato has joined #ruby
ipoval has quit [Quit: ipoval]
adamramadhan has quit [Ping timeout: 265 seconds]
andrew__ has joined #ruby
<apeiros_> it's a bit sad that postgres only has bind params by index, not by name
<seanstickle> postgres has a lot of problems
<apeiros_> do tell?
<apeiros_> pm if you feel necessary
Prometheus has joined #ruby
<deryl> thankfully less than mysql
<apeiros_> and hopefully less than oracle… since I totally want to scrap oracle at work…
Sheehan has joined #ruby
<seanstickle> Oh, it's much better than Oracle.
<apeiros_> one thing I ran into was a lack of "show create table" :(
<seanstickle> And it may be -- technically -- better than MySQL.
<seanstickle> But MySQL has a community, documentation, and available know-how that tends to trump PostgreSQL.
<seanstickle> So it has the sweet spot for me.
<deryl> not in agreement with the documentation apsect, however, ok.. i can see your ppoint on the community aspect
<apeiros_> mysql being owned by oracle makes it slightly less attractive…
<deryl> hehe typo king this morning methinks
<seanstickle> apeiros_: yeah, that certainly is a point in favor of PostgreSQL
<seanstickle> apeiros_: although we'll see how these various MySQL fork projects do
keanehsiao has joined #ruby
<vandemar> percona is good. mariadb tends to lag further behind.
sailias has joined #ruby
<deryl> to my mind though i think mysql got more of a push than it deserved with the coupling to the php world. and yes, i admit thats a subjective statement
schaerli has quit [Ping timeout: 245 seconds]
<seanstickle> Well, deserved or not, it happened
<seanstickle> And PostgreSQL on Windows sucked for a long time, which didn't help
<deryl> true :shudder:
schaerli has joined #ruby
<azariah4> I built a query as "insert into foo (col1, col2) values ('$1', '$2'), and the $1 and $2 was not substitued by the params to PGconn.exec
<matled> is there any reason that #take and #drop eagerly create an array instead of yielding another enumerable?
<any-key> .to_a
<any-key> you can convert an enumerable to an array
<matled> any-key: yeah, but not the other way around
<matled> if the original enumerable takes long to iterate completely, then so does foo.drop(20).take(100)
<any-key> Array::enum_for
mayankkohaley has quit [Ping timeout: 252 seconds]
<matled> because .drop(20) will enumerate over foo exhaustively, instead of yielding another enumerable
<any-key> ah yeah
<azariah4> news_source, news_headline, news_body, news_date are Ruby strings
<any-key> azariah4: #rubyonrails
<azariah4> any-key: ok, pg is in rails?
<any-key> well, I mean, I guess it's reasonable to ask here too
wbook has joined #ruby
andrew__ has quit [Ping timeout: 252 seconds]
<azariah4> hmm, can't talk in #rubyonrails despite being registered
<politoed> hm, I can
quest88 has joined #ruby
<samuelkadolph> azariah4: You aren't identified
nateberkopec has quit [Quit: Leaving...]
hmans has joined #ruby
<Hanmac> shevy i think the register needing should be switched, so that you can talk free on rails but need reg on this channel :P
<azariah4> samuelkadolph: thanks
bfig has quit [Read error: Connection reset by peer]
umttumt has joined #ruby
centipedefarmer has quit [Quit: This computer has gone to sleep]
andrew__ has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
mneorr1 has joined #ruby
centipedefarmer has joined #ruby
fgwaegeawgfwa has left #ruby [#ruby]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
centipedefarmer has quit [Client Quit]
rippa has joined #ruby
mneorr has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
kevinbond has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
jmeeuwen has joined #ruby
VictorMartins has joined #ruby
cousine_ has quit [Remote host closed the connection]
<_axx> hey guys, if you have application related code, do you put that code in app/modules or in lib/modules?
<apeiros_> anybody got a recommendation for server hardware akin to the macmini, but for gentoo?
nateberkopec has joined #ruby
yoklov has joined #ruby
<apeiros_> may be a bit bigger than the mini. 3.5" HDD, i7, 4GB Ram, on board graphics are sufficient…
workmad3 has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
wpaulson has quit [Ping timeout: 248 seconds]
centipedefarmer has joined #ruby
Eldariof-ru has joined #ruby
silentpost has quit [Ping timeout: 252 seconds]
td123 has joined #ruby
maletor has joined #ruby
fulmato has quit [Ping timeout: 240 seconds]
<shevy> Hanmac heeh
<shevy> _axx I never have app/ directory. sounds like rails to me.
IrishGringo has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby
fulmato has joined #ruby
<samuelkadolph> apeiros_: You could buy a mini and put gentoo on it.
mockra has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
SeySayux has quit [Ping timeout: 252 seconds]
wpaulson has joined #ruby
twock_ has quit [Quit: Lost terminal]
wpaulson_ has joined #ruby
JohnBat26 has joined #ruby
mdw has joined #ruby
mdw has quit [Remote host closed the connection]
selvakumaran has joined #ruby
n1x has joined #ruby
<_axx> shevy: oh, wrong channel. :) my bad
wpaulson has quit [Ping timeout: 240 seconds]
VictorMartins has quit [Quit: Sleeping]
wpaulson_ is now known as wpaulson
<_axx> i have them both in my irssi session and choose the wrong window :D
francisfish has quit [Remote host closed the connection]
qwerxy has joined #ruby
n1x has quit [Read error: Connection reset by peer]
<aces1up> when I do a find on an array of hashes, I find a hash, but then when I change that hash to be a different hash, it doesn't change in the original array? I thought this should happen? why not?
umttumt has quit [Remote host closed the connection]
<politoed> how are you changing the hash to be a different hash?
<samuelkadolph> aces1up: How are you changing it? If you are doing ary.find(x) { |hash| hash = {} }, then that won't work.
twock has joined #ruby
<aces1up> just myfoundhash = mynewhash
<apeiros_> samuelkadolph: I thought there were probably cheaper machines out than apple's mini
SeySayux has joined #ruby
<aces1up> samuelkadolph weird cause I have done it before on arrays..
<aces1up> just not on a array of hashes.
<samuelkadolph> apeiros_: Not in the same form factor with an i7.
<samuelkadolph> aces1up: That will never work.
<apeiros_> samuelkadolph: slightly bigger is ok too…
<samuelkadolph> Don't know if that includes a CPU though
<apeiros_> ah, shuttle
<apeiros_> yeah
looopy has quit [Remote host closed the connection]
<samuelkadolph> That's the smallest you're going to get without a slim media center one. And those don't have beefy stats
<aces1up> samuelkadolph what do you suggest?
<samuelkadolph> aces1up: What are you trying to do exactly?
<samuelkadolph> The cheater way out is to do array.find(x) { |hash| hash.replace({}) }
Resure has joined #ruby
<aces1up> match a hash to an array of hashes.. if a match is found then replace that hash in the array with a different hash.
<aces1up> i ended up doing it with find_index.
schaerli has quit [Ping timeout: 244 seconds]
Resure has quit [Remote host closed the connection]
<aces1up> and replacing the index.
<aces1up> good solution
<aces1up> ?
Resure has joined #ruby
<samuelkadolph> I would use find_index and then delete and insert
<samuelkadolph> delete_at*
fulmato has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
Resure has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 248 seconds]
looopy has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
Resure has joined #ruby
saschagehlich has joined #ruby
mockra has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
CheeToS has joined #ruby
selvakumaran has quit [Ping timeout: 246 seconds]
cpruitt has joined #ruby
subbyyy has joined #ruby
mdw has joined #ruby
td123 has quit [Read error: Connection reset by peer]
tijmencc_ has joined #ruby
mneorr1 is now known as mneorr
Vert has joined #ruby
tijmencc has quit [Ping timeout: 245 seconds]
tijmencc_ is now known as tijmencc
tyman has joined #ruby
mdw has quit [Read error: Connection reset by peer]
tyman has quit [Remote host closed the connection]
mdw has joined #ruby
hippyphysicist has joined #ruby
wbook has quit [Quit: Leaving]
flak has joined #ruby
rippa has quit [Read error: Connection reset by peer]
flak has quit [Client Quit]
hippyphysicist has quit [Read error: Connection reset by peer]
rippa has joined #ruby
tyman has joined #ruby
Kn|t3 has quit [Ping timeout: 245 seconds]
khakimov has joined #ruby
<ub|k> is there a ruby equivalent for Python's "a = b or c"? meaning that if b is an empty list, dict or none, c is used instead
qwerxy has quit [Ping timeout: 248 seconds]
Kn|t3 has joined #ruby
tijmencc_ has joined #ruby
<Mon_Ouie> more or less a = b || c, except in Ruby only nil and false are falsy
<ub|k> Mon_Ouie: yes, I know, so, that doesn't work
<Mon_Ouie> Empty arrays or strings still are considered true
<Mon_Ouie> Just explicitly use #empty? if you need to
bradhe has joined #ruby
bfig has joined #ruby
francisfish has joined #ruby
selvakumaran has joined #ruby
tijmencc has quit [Ping timeout: 260 seconds]
tijmencc_ is now known as tijmencc
<ub|k> Mon_Ouie: but then "a = b.empty? || c" won't work either, since b.empty returns true :/
qwerxy has joined #ruby
<Mon_Ouie> Ruby has if … then … else … end
<ub|k> i was just wondering whether there was a short way to do this, i know i can use an if
<Mon_Ouie> Also ternary operator
<ub|k> thanks
schaerli has quit [Remote host closed the connection]
zeromodulus has quit [Remote host closed the connection]
wpaulson has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
srji has joined #ruby
bwlang has joined #ruby
list has joined #ruby
<list> virtua tennis 3 psp
list has quit [Client Quit]
tommyvyo has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
amh345 has joined #ruby
bwlang has quit [Client Quit]
ebanoid has quit [Ping timeout: 246 seconds]
tijmencc_ has joined #ruby
subbyyy has quit [Remote host closed the connection]
subbyyy has joined #ruby
tijmencc has quit [Ping timeout: 246 seconds]
tijmencc_ is now known as tijmencc
silentpost has joined #ruby
jcromartie has joined #ruby
jcromartie has quit [Client Quit]
nowthatsamatt has joined #ruby
srji has quit [Quit: leaving]
nowthatsamatt has left #ruby [#ruby]
burgestrand has joined #ruby
blacktulip has quit [Ping timeout: 252 seconds]
eft has quit [Ping timeout: 244 seconds]
silentpost has quit [Ping timeout: 246 seconds]
bubu\a has quit [Quit: Leaving]
imami|afk is now known as banseljaj
vitor-br has quit [Quit: Saindo]
cpruitt has quit [Quit: cpruitt]
timepilot has joined #ruby
francisfish has quit [Remote host closed the connection]
ZachBeta has joined #ruby
zomgbie has joined #ruby
TorpedoSkyline has joined #ruby
vitor-br has joined #ruby
adamramadhan has joined #ruby
VegetableSpoon has joined #ruby
kevinbond has quit [Quit: kevinbond]
blacktulip has joined #ruby
mikepack has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
tobago|away has quit [Ping timeout: 240 seconds]
kevinbond has joined #ruby
kevinbond has quit [Client Quit]
eurbach has quit [Remote host closed the connection]
Vendethiel has joined #ruby
blacktulip has quit [Read error: Connection reset by peer]
blacktulip has joined #ruby
igotnolegs has joined #ruby
tijmencc has quit [Ping timeout: 252 seconds]
uris has quit [Quit: leaving]
JohnBat26 has quit [Read error: No route to host]
JohnBat26 has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
Sheehan has quit [Quit: Sheehan]
hmans has quit [Quit: Linkinus - http://linkinus.com]
tobago|away has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
tobago has quit [Ping timeout: 240 seconds]
robin__ has joined #ruby
<robin__> hi
<robin__> i need a request for add x element in my Db, i used sqlite3
nyuszika7h has quit [Ping timeout: 264 seconds]
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
mdw has joined #ruby
kirun has joined #ruby
mdw_ has joined #ruby
mdw has quit [Read error: Connection reset by peer]
remmy444 has quit [Ping timeout: 244 seconds]
looopy has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 260 seconds]
adamramadhan has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
perryh_away is now known as perryh
Guest14217 has quit [Ping timeout: 248 seconds]
looopy has joined #ruby
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
kaneda has joined #ruby
kaneda is now known as Guest22319
srji has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
tobago|away has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
red-panda has joined #ruby
JohnBat26 has quit [Ping timeout: 265 seconds]
francisfish has joined #ruby
prtksxna has quit [Remote host closed the connection]
mohits has quit [Ping timeout: 246 seconds]
<shevy> foundation.rb:2986:in `gsub': invalid byte sequence in US-ASCII (ArgumentError)
schaerli has joined #ruby
<shevy> hmm
<shevy> seems to happen when I do a File.readlines on a text file that is non-UTF 8 and contains german umlauts
randomautomator has joined #ruby
centipedefarmer has quit [Quit: This computer has gone to sleep]
<shevy> .encoding seems to be Encoding:US-ASCII
<shevy> it confuses me though because the ruby .cgi page has # Encoding: ASCII-8BIT on its second line
schaerli has quit [Remote host closed the connection]
flak has joined #ruby
flak has quit [Client Quit]
mockra has quit [Remote host closed the connection]
ryanf has joined #ruby
TorpedoSkyline has quit [Quit: TorpedoSkyline]
qwerxy has quit [Quit: offski]
superguenter has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
wpaulson has joined #ruby
ipoval has joined #ruby
superguenter has quit [Client Quit]
ryanf has quit [Ping timeout: 265 seconds]
<shevy> oh
<shevy> there is Encoding.default_external
ebanoid has joined #ruby
andreime has joined #ruby
tamaldeaca has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
mdw_ has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
mrbrdo has joined #ruby
Kn|t3 has joined #ruby
<mrbrdo> where can I learn how to use extconf.rb properly? I want to build some .o file and then link it in another project
<mrbrdo> I was able to build the .o file for now, but I don't know how to link it in the other extconf
EstanislaoStan has joined #ruby
randomautomator has quit [Remote host closed the connection]
<EstanislaoStan> How do I break out of my code block when I have elsif's? http://pastie.org/4104331
johnjohnson has quit []
bosphorus has quit [Remote host closed the connection]
alexim has joined #ruby
bluOxigen has joined #ruby
<Hanmac> mrbrdo: extconf.rb is normaly designd for makeing bindings ... not single .o files ...
<deryl> return
<deryl> but i don't remember if its return or exit that completely breaks out of the loop
jimeh has joined #ruby
<mrbrdo> Hanmac: well actually I need just to include some files from another directory, and to compile and link some c files from another directory. and I need to specify optimization level for those c files
<deryl> like break will break that run of the loop but stay in the loop 9goes next iteration), think its return you want
daniel_hinojosa has joined #ruby
<EstanislaoStan> Return goes too far. I have more that's not in the pastie.
<deryl> ok
eurbach has joined #ruby
<deryl> eval break, return, and exit
<deryl> se
<deryl> e
<deryl> see which works best for your particular situation
<mrbrdo> EstanislaoStan: I don't think there's a proper way to do that… perhaps wrapping the if/else in begin/rescue/end and raise exception
<deryl> what *I* am afraid of is saying use 'exit' because from ri exit it looks like it would cause the *entire* script to quit, not what i think you want
rippa has joined #ruby
<mrbrdo> btw why can't you just use nested if? if something then ; work… ; end
<mrbrdo> otherwise it will go out of the if anyway
<deryl> could that be converted into a case?
<deryl> (probably an aside, was just wondering)
<mrbrdo> if is not really designed so you could "break out" of it
<mrbrdo> so trying to do that is wrong imo
qwerxy has joined #ruby
<mrbrdo> I don't even understand why you need that
<mrbrdo> Hanmac: is there a way to tell extconf "also compile and link something.c"?
<mrbrdo> and use -O3 for compiling it
<EstanislaoStan> My main goal is to stop iterating through the array when I get a value that I need. Some of that might work. I'm not too familiar with case, so I guess I'll start there.
<selvakumaran> can i use Qt interface for my Ruby prog?
<srji> you can
<deryl> EstanislaoStan: i would surmise case would be better for you
ZachBeta has joined #ruby
<deryl> value match and execute something for that match are case's forte
<mrbrdo> EstanislaoStan: so what is wrong with "break"?
mengu has joined #ruby
<deryl> :)
selvakumaran has quit [Remote host closed the connection]
<deryl> sorry, was testing turning off emoticons
<EstanislaoStan> I was trying to break out of the code block. Not just from the first if.
_madcoder_ has joined #ruby
shadoi has joined #ruby
socomm has quit [Quit: WeeChat 0.3.7]
<mrbrdo> EstanislaoStan: break doesn't break out of if, it breaks out of the loop
<mrbrdo> as far as I know
nisstyre has quit [Quit: Leaving]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
lxsameer has quit [Quit: Leaving]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
looopy has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 246 seconds]
<EstanislaoStan> For some reason, its not breaking out of the loop for this http://pastie.org/4104331.
_iMBA has quit [Quit: Leaving.]
<mrbrdo> yes it does
<mrbrdo> it has to, that's how each works
<mrbrdo> you probably have a logic error
<mrbrdo> and you're blaming the wrong reason for it not working
nisstyre has joined #ruby
<EstanislaoStan> Oh, ok.
<tectonic> I did a bit of experimental research on the compressibility of different Ruby libraries.
jimeh has quit [Ping timeout: 246 seconds]
schovi has joined #ruby
<tectonic> Octopress is the least compressible, Mongoid is the most. Which is interesting, since I think compressibility indicates code repetition.
<tectonic> And less-compressible code is (possibly) better.
shadoi1 has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
mdw has joined #ruby
wpaulson has joined #ruby
<deryl> i see the logic to your idea, for some reason i question it in my head, but i don't know how to prove the opposite
mdw has quit [Read error: Connection reset by peer]
<deryl> not that you asked me, just piping up :)
mdw has joined #ruby
A124 has joined #ruby
nisstyre has quit [Remote host closed the connection]
<tectonic> I wrote up the results http://news.ycombinator.com/item?id=4123563
<tectonic> Not sure if they mean anything :)
dr_diamond has joined #ruby
dr_diamond has quit [Changing host]
dr_diamond has joined #ruby
zz_chrismcg is now known as chrismcg
Siphonblast has joined #ruby
Kn|t3 has quit [Quit: Kn|t3]
looopy has joined #ruby
schovi has quit [Ping timeout: 252 seconds]
saschagehlich_ has joined #ruby
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich_ is now known as saschagehlich
<EstanislaoStan> Thanks mrbrdo, I should've figured that out myself.
_iMBA has joined #ruby
jimeh has joined #ruby
red-panda has quit [Remote host closed the connection]
red-panda has joined #ruby
daniel_hinojosa has quit [Ping timeout: 246 seconds]
saschagehlich has quit [Client Quit]
looopy has quit [Remote host closed the connection]
<EstanislaoStan> That's pretty interesting tectonic!
<tectonic> EstanislaoStan: thanks
pLameN_4o has joined #ruby
daniel_hinojosa has joined #ruby
<tectonic> Appreciate an upvote on Hacker News if you found it useful.
workmad3 has joined #ruby
yoklov has quit [Quit: computer sleeping]
nisstyre has joined #ruby
schaerli has joined #ruby
s1n4 has joined #ruby
<shevy> hehe
shvelo has joined #ruby
digitalcakestudi has quit [Ping timeout: 246 seconds]
<shevy> you need positive karma for upvotes there?
netogallo has quit [Read error: Connection reset by peer]
<tectonic> Probably
<deryl> which means it was built with the idea that at least one person HAD to start out WITH positive karma or else no body would have been able to upvote for you TO gain karma
<tectonic> Heh. Maybe the karma limitation was added later.
<shevy> quite the elitist club
<shevy> don't dare write anything controversial or you'll get voted down!
<deryl> yeah no shit
<tectonic> I think you have to engage in the community with comments and stuff first.
<shevy> I tried!
<shevy> ok ok I did not really try
<shevy> the only times I wanted to use ycombinator was because people on IRC asked for article upvotes
Eldariof-ru has quit []
<tectonic> :)
zomgbie has quit [Ping timeout: 244 seconds]
timepilot has quit [Quit: timepilot]
grantbdev has joined #ruby
CheeToS has quit [Ping timeout: 252 seconds]
looopy has joined #ruby
zomgbie has joined #ruby
<wpaulson> EstanislaoStan: re: loop / break: if what you want is to process the first match, use detect or find instead of each.
vlad_starkov has quit [Remote host closed the connection]
Prometheus has quit [Ping timeout: 260 seconds]
Jackneill has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
looopy has quit [Remote host closed the connection]
<shvelo> is there a ruby on rails channel?
<shevy> shvelo #rubyonrails
<shvelo> shevy, thanks
<shevy> btw there is a guy called shlevy on #nixos
<shevy> shvelo ... you could be the brother of shlevy and shevy !
<shvelo> shevy, no :D
<s1n4> lol
<shevy> lol
<shvelo> my surname is Shvelidze , so nickname is shvelo
<shvelo> lol
* s1n4 has no brother on IRC :(
<shvelo> s1n4, how do i post actions with XChat?
<s1n4> shvelo, what do you mean ?
<shevy> what kind of actions. there is emote via /me test
* shevy test
<shvelo> ah
* shvelo understood
<shevy> lol
<s1n4> :D
andreime has quit [Quit: leaving]
<shevy> and most clients can do coloursjust fine
andreime has joined #ruby
<shevy> good old mIRC days...
<shvelo> test
* s1n4 likes irssi so much
<shevy> on my client, it works when I press control+k and then a number like 11
<shevy> this is number 11
<shevy> this is number 12
<shvelo> test
<shevy> <press-control-key>+k then followed by 11
<shevy> mIRC had a nice usage chart there
<shevy> I never knew xchat used the same, until I just tried it
* s1n4 hates windows applications
<shvelo> hmm
<shevy> I need to try this with my ruby irc client :D
<shvelo> wow
<shvelo> I'm kinda beginner
wpaulson_ has joined #ruby
schaerli has quit [Remote host closed the connection]
<shvelo> shevy, here's my latest script https://www.dropbox.com/sh/z15xu9k5r7veah1/DfPzC97FhE
yoklov has joined #ruby
saschagehlich has joined #ruby
twock has quit [Quit: Lost terminal]
rippa has quit [Ping timeout: 240 seconds]
jimeh has quit [Read error: Connection reset by peer]
<EstanislaoStan> Hello.
jimeh has joined #ruby
<shvelo> EstanislaoStan, Ahoy!
<shevy> shvelo seems complicated
<shevy> @firstname = @@firstnames.sample
<shvelo> shevy, just see the output
<shevy> also the @@class variables make things complicated
looopy has joined #ruby
<shevy> what output
<shvelo> yea i should have used YAML for that
<shevy> dropbox is strange
<shvelo> shevy, 100years.log
<shvelo> i'm new so i'm experimenting with stuff
techno has joined #ruby
<shevy> I cant view it online
<shevy> it tells me to download it
<shevy> I wont do that, sorry. sites like pastie.org are much nicer, or gist github. one can view the file online
<shevy> https://gist.github.com/ (but I like pastie more)
strnx has joined #ruby
sepp2k has joined #ruby
Prometheus has joined #ruby
Sheehan has joined #ruby
robin__ has quit [Ping timeout: 244 seconds]
<shvelo> shevy, ok
shevy_test has joined #ruby
enigma has joined #ruby
Kn|t3 has joined #ruby
<Xethron> Trying to get the ID of a row always returns 1: http://pastebin.com/ycqSEWir
<shevy_test> test
<Xethron> getting info from the "link" coloumb works, but id always returns 1
<Xethron> Any help would be appreciated
<shevy_test> \00306 this should be a colour test ...
<shevy> grrrr
<Xethron> lol
bosphorus has joined #ruby
<wpaulson_> shvelo: i'm impressed with your energy.
snearch has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
zommi has joined #ruby
alexmin has quit [Ping timeout: 265 seconds]
miho has quit [Ping timeout: 260 seconds]
s1n4 has left #ruby ["Leaving"]
<shvelo> shevy, here: https://gist.github.com/2945617
<shvelo> wpaulson, thanks
Sheehan has quit [Quit: Sheehan]
Sheehan has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
eurbach has quit [Quit: Leaving.]
<mrbrdo> how can I call puts from a C extension?
sepp2k has quit [Ping timeout: 246 seconds]
<Xethron> Trying to get the ID of a row always returns 1. LINK returns the correct LINK but ID keeps failing. : http://pastebin.com/ycqSEWir
<Hanmac> mrbrdo: rb_funccall(rb_mKernel,rb_intern("puts"),1,string);
<mrbrdo> thanks
Kn|t3 has quit [Quit: Kn|t3]
perryh is now known as perryh_away
ipoval has quit [Quit: ipoval]
ryanf has joined #ruby
Resure has quit [Remote host closed the connection]
Sheehan has quit [Quit: Sheehan]
khakimov has quit [Quit: Computer has gone to sleep.]
pLameN_4o has left #ruby [#ruby]
Sheehan has joined #ruby
red-panda has quit [Remote host closed the connection]
<shevy_test> "\002" test
<shevy_test> \00301gaaah
<shevy> oh man
<shevy> this is ad
sepp2k has joined #ruby
<shevy> sad
wpaulson has quit [Ping timeout: 244 seconds]
federic has quit [Remote host closed the connection]
<shvelo> :tumbleweed:
tommyvyo has joined #ruby
xbob has quit [Quit: Leaving]
VictorMartins has joined #ruby
<mrbrdo> Hanmac: I get symbol not found _rb_funccall
Gavilan has joined #ruby
<mrbrdo> is this for ruby 1.9?
zommi has quit [Remote host closed the connection]
wpaulson has joined #ruby
qwerxy has quit [Quit: offski]
francisfish has quit [Remote host closed the connection]
looopy has quit [Remote host closed the connection]
<mrbrdo> ok nvm you had a typo (funcall instead of funccall)
shevy_test has quit [Remote host closed the connection]
shevy_test has joined #ruby
<shevy_test> \00301test
fayimora has quit [Ping timeout: 264 seconds]
<TTilus> shevy_test: ?
<shevy> why does this not work
<shevy> it should do some colours
<shevy_test> "\00304" hmm
<shevy> it used to work in my old IRC bot :(
<TTilus> just go priv msg yoursef or some test channel with your tests :-/
fayimora has joined #ruby
shevy_test has quit [Remote host closed the connection]
<TTilus> you should know better than to use this channel for testing...
<srji> uh! irc can haz colorz?
<shvelo> totally
<TTilus> but imo they belong to rainbow, not here ;)
<srji> all the years... my life was a lie
<mrbrdo> how to get main object in C extension?
<shvelo> shevy, did you see output?
<mrbrdo> e.g. the same thing that you get if you make a ruby file and just put "self" into it
<shvelo> btw i removed the class vars
<shevy> yeah, odd output
Morkel has quit [Quit: Morkel]
Kn|t3 has joined #ruby
Sheehan has quit [Quit: Sheehan]
tatsuya_o has joined #ruby
eurbach has joined #ruby
snearch has quit [Quit: Verlassend]
wpaulson__ has joined #ruby
i8igmac has joined #ruby
tijmencc has joined #ruby
tijmencc has quit [Client Quit]
robin has joined #ruby
robin is now known as Guest47139
wpaulson_ has quit [Ping timeout: 246 seconds]
fayimora has quit [Ping timeout: 264 seconds]
mdw has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Sheehan has joined #ruby
sailias has joined #ruby
cyong has joined #ruby
neku has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
Kn|t3 has quit [Quit: Kn|t3]
rdg has joined #ruby
looopy has joined #ruby
fayimora has joined #ruby
stewart_ has joined #ruby
mdw has joined #ruby
<shevy> hey shvelo
<shevy> you could change your nick to ... shvely :D
<shvelo> no i can't
<shvelo> :D
<shevy> lol damn
<shvelo> or wait
<shevy> we could annoy shlevy on #nixos then :D
<shevy> he even used to be on #ruby for a while
<shvelo> it's 1:13AM here
<shvelo> gonna sleep soon
<shevy> on IRC we do not sleep
<shevy> we idle :D
<shevy> you'll idle into a better tomorrow
sailias has quit [Quit: Leaving.]
ciopte7 has joined #ruby
zeromodulus has joined #ruby
zomgbie_ has joined #ruby
wpaulson_ has joined #ruby
Vendethiel has quit [Ping timeout: 245 seconds]
Sheehan has quit [Quit: Sheehan]
LordDoskias has joined #ruby
fayimora has quit [Ping timeout: 246 seconds]
srji_ has joined #ruby
zomgbie has quit [Ping timeout: 244 seconds]
wpaulson has quit [Ping timeout: 246 seconds]
wpaulson_ is now known as wpaulson
srji has quit [Ping timeout: 265 seconds]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<i8igmac> im having a stupid moment... 03/18/11 20:03:55 . . . 20*:03*:55 <--- this is hour : minute and second?
Sheehan has joined #ruby
rdg has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<apeiros_> i8igmac: yes, that looks like hour:minute:second
banseljaj is now known as imami|afk
blacktulip has quit [Remote host closed the connection]
fayimora has joined #ruby
graspee has joined #ruby
iaj has quit [Ping timeout: 265 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
dwon has joined #ruby
berkes has quit [Quit: Ex-Chat]
ebanoid has quit []
yxhuvud has quit [Ping timeout: 260 seconds]
emmanuelux has joined #ruby
zeromodulus has quit [Remote host closed the connection]
i8igmac has quit [Quit: Leaving]
dr_diamond has quit [Quit: Bye !]
dr_diamond has joined #ruby
sbanwart has joined #ruby
iaj has joined #ruby
looopy has quit [Remote host closed the connection]
noyb has joined #ruby
vikhyat has joined #ruby
Enekoos has joined #ruby
looopy has joined #ruby
dwon has quit [Quit: Leaving]
andreime has quit [Ping timeout: 252 seconds]
EskiMag has joined #ruby
shvelo has quit [Quit: Leaving]
seanstickle has joined #ruby
zinjacoder has quit [Quit: Peace!]
cj3kim has joined #ruby
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
zeromodulus has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
perryh_away is now known as perryh
LordDoskias has quit [Quit: Leaving]
billiamii has quit [Ping timeout: 246 seconds]
srji_ has quit [Quit: leaving]
philips has quit [Excess Flood]
<Markvilla> how do I release a frozen object so that I can reassign it?
noyb has quit [Ping timeout: 240 seconds]
neku has quit [Quit: Linkinus - http://linkinus.com]
ph^ has joined #ruby
philips has joined #ruby
<heftig> Markvilla: there is no "unfreeze"
<apeiros_> assignment and freeze are unrelated
workmad3 has joined #ruby
<apeiros_> x = "hello".freeze; x = "something else" # this works. freeze doesn't affect assignment.
<heftig> objects can be frozen, not variables
Vert has quit [Remote host closed the connection]
digitalcakestudi has joined #ruby
<Markvilla> x = {:foo => "bar"}; x.freeze; x[:foo] = "oof";
<Markvilla> I guess that doesn't work
zemanel has quit [Quit: zemanel]
king313 has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
<heftig> x[:foo] = tries to mutate the hash which you've frozen
<apeiros_> Markvilla: well, that's not assignment
<apeiros_> you can dup your hash. dup won't copy the frozen state.
<heftig> at least not a simple one. it's actually a method call
A1241 has joined #ruby
<apeiros_> yes. it's a method call. therefore not assignment :)
<Markvilla> cool, solved that :P
<Markvilla> also learned that dup == clone except it doesn't copy the frozen state
A1241 has left #ruby [#ruby]
snip_it_ has joined #ruby
amh345 has left #ruby [#ruby]
VictorMartins_ has joined #ruby
Nanuq has quit [Quit: refresh]
<apeiros_> that's incomplete
<apeiros_> dup also doesn't copy singleton methods
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
Nanuq has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
maletor_ has joined #ruby
Criztian has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 248 seconds]
Sgeo has left #ruby ["Leaving"]
eighty4_ has joined #ruby
zeromodulus has quit [*.net *.split]
Sheehan has quit [*.net *.split]
akem has quit [*.net *.split]
VictorMartins has quit [*.net *.split]
A124 has quit [*.net *.split]
maletor has quit [*.net *.split]
niklasb has quit [*.net *.split]
pk1001100011 has quit [*.net *.split]
yannis has quit [*.net *.split]
techno has quit [*.net *.split]
eighty4 has quit [*.net *.split]
VictorMartins_ is now known as VictorMartins
zeromodu_ has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
khakimov has joined #ruby
zeromodu_ has quit [Remote host closed the connection]
ryan0x2 has joined #ruby
yannis has joined #ruby
ciopte7 has quit [Quit: ciopte7]
jimeh has quit [Read error: Connection reset by peer]
jimeh has joined #ruby
pk1001100011 has joined #ruby
nowthatsamatt_ has joined #ruby
Axsuul has quit [Remote host closed the connection]
techno has joined #ruby
niklasb has joined #ruby
ipoval has joined #ruby
nowthatsamatt_ has quit [Client Quit]
fulmato has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
heftig has joined #ruby
EskiMag has quit [Quit: EskiMag]
heftig has quit [Client Quit]
randomautomator has joined #ruby
cantonic has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
VictorMartins has quit [Quit: Sleeping]
silentpost has joined #ruby
randomautomator has quit [Remote host closed the connection]
billiamii has joined #ruby
Axsuul has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
quest88 has quit [Quit: quest88]
ciopte7 has joined #ruby
mdw has left #ruby ["[self release]"]
wunz has quit [Ping timeout: 265 seconds]
berserkr has joined #ruby
wunz has joined #ruby
ryanf has quit [Quit: leaving]
heftig has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
Xai has joined #ruby
Guest47139 has quit [Ping timeout: 248 seconds]
graspee has quit [Ping timeout: 265 seconds]
graspee has joined #ruby
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
freeayu has joined #ruby
goraxe has quit [Quit: WeeChat 0.3.5]
Aristata has joined #ruby
<Aristata> Does anyone here have an idea where I can look at what the different "transform" symbols mean in paperclip? I always see :dimensions => "400x400#" or "400x400>", I know that irc://irc.freenode.net:6667/# and > do something with the resizing, but I haven't been able to find anything that tells me what my options are or what each one does. 
Codif has joined #ruby
<apeiros_> Aristata: that's the straight commands to imagemagick
<Aristata> Oh nm I forgot that's being passed to image magik
<Aristata> lol
<Aristata> Thanks :)
nari_ has joined #ruby
snip_it_ has quit [Quit: snip_it_]
Codif has quit [Remote host closed the connection]
jimeh has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ben_m has joined #ruby
hemanth has joined #ruby
bosphorus has quit [Remote host closed the connection]
Vert has joined #ruby
slap has joined #ruby
centipedefarmer has joined #ruby
nowthatsamatt_ has joined #ruby
nowthatsamatt_ has quit [Client Quit]
wpaulson__ has quit [Read error: Connection reset by peer]
wpaulson has joined #ruby
graspee has quit [Ping timeout: 250 seconds]
malkomalko has joined #ruby
fantazo has quit [Remote host closed the connection]
graspee has joined #ruby
Bosma has joined #ruby
burntbit has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
<nso95> Ruby is strangely natural
jbw_ has quit [Ping timeout: 246 seconds]
tightwork has joined #ruby
<tightwork> Hi... What is the hot way to parse xml in ruby? xmlsimple?
heftig has joined #ruby
perryh is now known as perry
<vikhyat> tightwork: nokogiri might be a better choice.
<tightwork> awesome, thanks for the answer
<seanstickle> Nokogiri
<seanstickle> Is the only sane choice
<tightwork> im building a site where people can search for friends and send pictures to each other.. it will be like nothing anyone has ever seen ever
<graspee> are you sure about that
<graspee> my comediy is reliant on you being serious. if you're joking then i have failed my country
<tightwork> jokes
malkomalko has quit [Remote host closed the connection]
saschagehlich has quit [Quit: saschagehlich]
slap has quit [Quit: slap]
wpaulson has quit [Read error: Connection reset by peer]
burntbit has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
vikhyat has left #ruby ["Leaving"]
burntbit has joined #ruby
vikhyat has joined #ruby
looopy has quit [Remote host closed the connection]
tommyvyo has joined #ruby
jbw_ has joined #ruby
wpaulson has joined #ruby
perry is now known as perryh_away
apeiros_ has quit [Remote host closed the connection]
marknyc has joined #ruby
pablo_ has joined #ruby
berserkr has quit [Quit: Leaving.]
MrGando has joined #ruby
heftig has quit [Quit: leaving]
deryldoucette has joined #ruby
ipoval has quit [Quit: ipoval]
deryl has quit [Ping timeout: 240 seconds]
deryldoucette is now known as deryl
pablo_ has quit [Quit: Ex-Chat]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
williamcotton has quit [Ping timeout: 248 seconds]
MissionCritical has quit [Ping timeout: 245 seconds]
williamcotton has joined #ruby
bwlang has joined #ruby
williamcotton has quit [Client Quit]
bluOxigen has quit [Ping timeout: 252 seconds]
eurbach has quit [Quit: Leaving.]
tomb_ has quit [Quit: Computer has gone to sleep.]
jimeh has quit [Ping timeout: 240 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
tomb_ has joined #ruby
dr_diamond has quit [Ping timeout: 246 seconds]
MrGando has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 255 seconds]
nfk has quit [Quit: yawn]
kirun has quit [Quit: Client exiting]
slap has joined #ruby
queequeg1 has quit [Ping timeout: 245 seconds]
vladiim has joined #ruby
MrGando has joined #ruby
cantonic_ has joined #ruby
vladiim has quit [Client Quit]
freeayu has quit [Ping timeout: 265 seconds]